hldesigner 0.0.1

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 (173) hide show
  1. package/FileSaver.min-b57403e6.js +103 -0
  2. package/_commonjsHelpers-e7ea1525.js +36 -0
  3. package/_plugin-vue_export-helper-dad06003.js +9 -0
  4. package/affix-widget-94198099.js +38 -0
  5. package/anchor-link-widget-919ac0ee.js +5 -0
  6. package/anchor-link-widget.vue_vue_type_script_setup_true_name_anchor-link-widget_lang-7df7e7c1.js +35 -0
  7. package/anchor-widget-77003871.js +57 -0
  8. package/auto-complete-widget-8d76ea70.js +74 -0
  9. package/avatar-widget-3cd63f01.js +38 -0
  10. package/backtop-widget-6fc3db98.js +38 -0
  11. package/badge-widget-f36a769c.js +44 -0
  12. package/baseImp-8c4be88e.js +11050 -0
  13. package/breadcrumb-widget-422a9d28.js +79 -0
  14. package/button-widget-918dde3f.js +48 -0
  15. package/cache-widget-a1637f5f.js +53 -0
  16. package/card-widget-2db8e9d4.js +112 -0
  17. package/carousel-widget-838cc8c9.js +75 -0
  18. package/cascader-widget-42482528.js +97 -0
  19. package/chart-widget-ac07a466.js +44285 -0
  20. package/checkbox-widget-ee1fcb0c.js +79 -0
  21. package/clipboard-fc4d858d.js +497 -0
  22. package/code-cf4fbc89.js +82 -0
  23. package/collapse-widget-1a93bdb5.js +89 -0
  24. package/color-picker-widget-e893711a.js +56 -0
  25. package/common-editor-76ac2e32.js +24 -0
  26. package/common-editor.vue_vue_type_script_setup_true_name_common-editor_lang-634a504e.js +25 -0
  27. package/configItem-6bfa74e0.js +113 -0
  28. package/cont-cell-widget-42f96421.js +8 -0
  29. package/cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-d3be593a.js +59 -0
  30. package/cont-widget-9dda9135.js +42 -0
  31. package/content-wrapper-20c559ac.js +14 -0
  32. package/content-wrapper.vue_vue_type_script_setup_true_lang-4a97c453.js +37 -0
  33. package/customClass-editor-9088a8cf.js +43 -0
  34. package/date-picker-range-widget-b9287f93.js +72 -0
  35. package/date-picker-widget-21595fd5.js +78 -0
  36. package/default-slot-widget-fc87ed0a.js +24 -0
  37. package/default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-0fb8e1cc.js +59 -0
  38. package/descriptions-widget-33a02f1a.js +83 -0
  39. package/designer.es.js +42 -0
  40. package/designer.style.css +11 -0
  41. package/designer.umd.js +161882 -0
  42. package/dialog-5e196819.js +124 -0
  43. package/dialog-widget-22714c34.js +33 -0
  44. package/divider-widget-adf656f2.js +38 -0
  45. package/drag-wrapper-f9fb1533.js +259 -0
  46. package/drawer-widget-404cb6db.js +33 -0
  47. package/dropdown-widget-a4a1e2f7.js +92 -0
  48. package/editor-wrapper-e6b30023.js +779 -0
  49. package/emitter-2b9b9409.js +53 -0
  50. package/empty-widget-c53b07dd.js +64 -0
  51. package/enum-type-255ade69.js +543 -0
  52. package/enum-type-287a50b6.js +2054 -0
  53. package/expression-ea95606e.js +2181 -0
  54. package/feedback-widget-c041b474.js +26 -0
  55. package/feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-efe168a5.js +82 -0
  56. package/field-base-5547436d.js +7 -0
  57. package/field-editor-3e1ce4f3.js +69 -0
  58. package/file-upload-widget-941b9493.js +98 -0
  59. package/form-item-wrapper-8039c512.js +113 -0
  60. package/form-widget-98a02c28.js +184 -0
  61. package/grid-col-widget-3ea371ea.js +8 -0
  62. package/grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-f40c8e16.js +41 -0
  63. package/grid-widget-f0635d43.js +43 -0
  64. package/html-text-widget-c440e86d.js +50 -0
  65. package/icon-2bb9fa65.js +129 -0
  66. package/iframe-widget-37ef665f.js +77 -0
  67. package/image-widget-871d5987.js +64 -0
  68. package/import-config-1eb9a66b.js +13156 -0
  69. package/index-0a2f2997.js +225 -0
  70. package/index-12505eec.js +42 -0
  71. package/index-18720c06.js +138 -0
  72. package/index-188b745d.js +132 -0
  73. package/index-28f32a55.js +216 -0
  74. package/index-2936e7cf.js +3265 -0
  75. package/index-2d29f8d3.js +7233 -0
  76. package/index-3d5d5fac.js +23 -0
  77. package/index-50c3e002.js +227 -0
  78. package/index-6a276ef7.js +131 -0
  79. package/index-6d56f058.js +45 -0
  80. package/index-7b38fd82.js +330 -0
  81. package/index-7c2a8e33.js +17993 -0
  82. package/index-7fa591e3.js +4817 -0
  83. package/index-82f2c56a.js +135 -0
  84. package/index-8713c192.js +344 -0
  85. package/index-8d537d38.js +2393 -0
  86. package/index-9fd4a537.js +99 -0
  87. package/index-ad538d7e.js +832 -0
  88. package/index-c1b1f59f.js +88 -0
  89. package/index-d6fa09d6.js +39 -0
  90. package/index-db2305dc.js +117 -0
  91. package/index-ddd23411.js +4884 -0
  92. package/index-e795786b.js +119 -0
  93. package/index-f146282d.js +1356 -0
  94. package/index-f849ef29.js +216 -0
  95. package/index-ffbcbc43.js +65 -0
  96. package/input-number-widget-64f89b9d.js +66 -0
  97. package/input-widget-0fe7c3d7.js +71 -0
  98. package/install-designer-bed2e18a.js +4752 -0
  99. package/item-4be3cb5b.js +34 -0
  100. package/item-ddbdee11.js +24 -0
  101. package/itemDetail-b31192a5.js +43 -0
  102. package/label-wrapper-91b95fb0.js +12 -0
  103. package/label-wrapper.vue_vue_type_style_index_0_lang-0a7f6bdd.js +80 -0
  104. package/link-widget-0f2bb61c.js +56 -0
  105. package/ltable-col-widget-9f26b93d.js +8 -0
  106. package/ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-639ee976.js +256 -0
  107. package/ltable-widget-b78a72ee.js +69 -0
  108. package/menu-widget-15fdd710.js +96 -0
  109. package/model-widget-3f2b1368.js +122 -0
  110. package/multirow-e1e1205c.js +292 -0
  111. package/multirow-widget copy-671ebd9c.js +858 -0
  112. package/multirow-widget-d256cac6.js +694 -0
  113. package/name-editor-05685151.js +104 -0
  114. package/optionItem-0ac4a3ae.js +4667 -0
  115. package/package.json +13 -0
  116. package/pagination-widget-31a7301d.js +81 -0
  117. package/picture-upload-widget-46ea42a0.js +102 -0
  118. package/postcss-2c4d92ea.js +2285 -0
  119. package/progress-widget-fc1f9557.js +52 -0
  120. package/property-base-e63e2f28.js +78 -0
  121. package/propresult-8fdf23e2.js +22 -0
  122. package/radio-widget-fbc63c11.js +79 -0
  123. package/range-widget-b0882319.js +74 -0
  124. package/rate-widget-9719ca7d.js +56 -0
  125. package/reg-editor.vue_vue_type_script_setup_true_lang-56504fb0.js +61 -0
  126. package/result-widget-925a5426.js +67 -0
  127. package/rich-editor-widget-426f0b19.js +77 -0
  128. package/router-widget-209f0eb1.js +54 -0
  129. package/schemaData-ab87bd49.js +333 -0
  130. package/select-widget-0b560a2f.js +288 -0
  131. package/setView-de8aaf40.js +84 -0
  132. package/sfc-10e3d29c.js +2570 -0
  133. package/share-editor-27d43940.js +448 -0
  134. package/share-event-dd8ff2ba.js +26 -0
  135. package/share-field-451430de.js +690 -0
  136. package/share-file-124a4d83.js +121 -0
  137. package/size-editor-ea05760c.js +92 -0
  138. package/slider-widget-fb4efa96.js +62 -0
  139. package/slot-04a83a27.js +17 -0
  140. package/static-text-widget-2efdd909.js +51 -0
  141. package/steps-widget-6f283f21.js +91 -0
  142. package/subMenu-widget-77e295cb.js +16 -0
  143. package/subMenu-widget.vue_vue_type_script_setup_true_lang-b051a10e.js +69 -0
  144. package/switch-widget-f1120b6c.js +56 -0
  145. package/tab-pane-widget-99c21615.js +8 -0
  146. package/tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-bc962788.js +35 -0
  147. package/table-col-widget-d6d5d21f.js +23 -0
  148. package/table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-2efa4d60.js +80 -0
  149. package/table-widget-9b8d9798.js +163 -0
  150. package/tabs-widget-88393072.js +68 -0
  151. package/tag-widget-33c17c06.js +38 -0
  152. package/target-code-48e9d055.js +33 -0
  153. package/target-datasource-35dfcb1d.js +221 -0
  154. package/target-link-3ffd0149.js +126 -0
  155. package/target-saveForm-012b7de1.js +136 -0
  156. package/target-widget-3d7f6104.js +59 -0
  157. package/target-window-7556d301.js +54 -0
  158. package/template-c30585f4.js +251740 -0
  159. package/text-widget-8b5ece83.js +38 -0
  160. package/textarea-widget-e7c1d9ed.js +56 -0
  161. package/time-picker-range-widget-b8dfcc3b.js +58 -0
  162. package/time-picker-widget-73bde0a3.js +57 -0
  163. package/time-select-widget-08008b76.js +57 -0
  164. package/tmpl-widget-7d245d41.js +92 -0
  165. package/tooltip-wrapper-2922e49e.js +31 -0
  166. package/tree-select-widget-67231123.js +94 -0
  167. package/tree-widget-ab91165f.js +90 -0
  168. package/uuid-39f0308a.js +196 -0
  169. package/value-editor-27783d6c.js +89 -0
  170. package/vue3-sfc-loader-b70bdce4.js +34688 -0
  171. package/widget-base-4c2d6265.js +27 -0
  172. package/widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-bbe0cabe.js +277 -0
  173. package/wrapper-widget-5702502d.js +78 -0
@@ -0,0 +1,2570 @@
1
+ var Me = Object.defineProperty;
2
+ var We = (t, i, s) => i in t ? Me(t, i, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[i] = s;
3
+ var Y = (t, i, s) => (We(t, typeof i != "symbol" ? i + "" : i, s), s);
4
+ import { d as I, t as H, o as _t, I as Ke, h as Bt, J as Ue, H as q, f as ze, K as qe, k as Oe, b as Ve } from "./enum-type-287a50b6.js";
5
+ import { B as w, P as B, F as Fe, G as Xe, H as Ge, b as mt, J as Qe } from "./baseImp-8c4be88e.js";
6
+ import { d as E, e as He, H as Ht, f as Jt, ae as Je } from "./enum-type-255ade69.js";
7
+ import { c as Mt } from "./uuid-39f0308a.js";
8
+ import { t as Ye, n as Te, o as Ee } from "./index-f146282d.js";
9
+ import { c as J, y as F, s as rt, z as ke } from "./template-c30585f4.js";
10
+ import { a as Re } from "./slot-04a83a27.js";
11
+ import "./icon-2bb9fa65.js";
12
+ import "vue";
13
+ import "./dialog-5e196819.js";
14
+ import "element-plus";
15
+ import "./_commonjsHelpers-e7ea1525.js";
16
+ import "./optionItem-0ac4a3ae.js";
17
+ import "./index-7fa591e3.js";
18
+ const Ze = (t) => {
19
+ let i = {};
20
+ const s = t.type, e = w.getName(t);
21
+ s === E.tabs ? t.tabs.length > 0 && I(i, {
22
+ [`${e}ActiveTab`]: w.getName(t.tabs[0])
23
+ }) : [
24
+ E.radio,
25
+ E.checkbox,
26
+ E.select,
27
+ E.cascader,
28
+ E.breadcrumb,
29
+ E.descriptions,
30
+ E.dropdown,
31
+ E.steps,
32
+ E.collapse
33
+ ].includes(s) ? I(i, {
34
+ [`${e}Options`]: B.getValue(w.getOrgOption(t, J.optionItems))
35
+ }) : [E.pictureUpload, E.fileUpload].includes(s) && I(i, {
36
+ [`${e}FileList`]: [],
37
+ [`${e}UploadHeaders`]: {},
38
+ [`${e}UploadData`]: {}
39
+ });
40
+ let a = Se(t);
41
+ return !a && e && (a = Ae(t)), a && I(i, a), i;
42
+ }, Se = (t) => {
43
+ const i = w.getName(t);
44
+ if (t.formItemFlag) {
45
+ const s = w.getOptions(t, "defaultValue");
46
+ return { [i]: Bt(s) ? null : s };
47
+ }
48
+ }, Ae = (t) => {
49
+ var i = Ee(t);
50
+ return Ce(i);
51
+ }, Ce = (t) => {
52
+ let i = {};
53
+ var s = Te(t, E.form);
54
+ const e = s == null ? void 0 : s.map((a) => w.getName(a));
55
+ return s == null || s.map((a) => {
56
+ var l;
57
+ let r = {};
58
+ const u = w.getName(a), o = w.getOptions(a, "modelName") || u;
59
+ (l = a.widgetList) == null || l.map((v) => {
60
+ const x = w.getName(v);
61
+ let b = Se(v);
62
+ e != null && e.includes(x) && (b = Ae(v)), I(r, b);
63
+ }), I(i, { [o]: r });
64
+ }), i;
65
+ }, Wt = (t) => {
66
+ var a;
67
+ let i = {};
68
+ Ye(t, (r) => {
69
+ I(i, Ze(r));
70
+ });
71
+ const s = Ce(t);
72
+ I(i, s);
73
+ const e = Ke(s, !0);
74
+ return (a = _t(i)) == null || a.forEach((r) => {
75
+ e != null && e.includes(r) && delete i[r];
76
+ }), i;
77
+ }, ti = (t) => {
78
+ t.options;
79
+ let i = [];
80
+ var s = w.getOptions(t, "required");
81
+ s && i.push({
82
+ required: !0,
83
+ message: `${Ue("render.hint.fieldRequired")}`
84
+ });
85
+ var e = w.getOptions(t, "expValidate", !0);
86
+ const a = Mt(e == null ? void 0 : e.options);
87
+ if (e && a && a.enable) {
88
+ let r = a == null ? void 0 : a.expression;
89
+ const u = Fe[r] ? Xe(r) : new RegExp(r);
90
+ i.push({
91
+ pattern: `${u}`,
92
+ trigger: ["blur", "change"],
93
+ message: `${a.errorMsg}`
94
+ });
95
+ }
96
+ return i;
97
+ }, Kt = (t) => {
98
+ let i = {};
99
+ var s = Te(t, E.form);
100
+ return s == null || s.map((e) => {
101
+ var u;
102
+ let a = {};
103
+ const r = w.getOptions(e, "rulesName") || name + "_rules";
104
+ (u = e.widgetList) == null || u.map((o) => {
105
+ const l = w.getOptions(o, "name");
106
+ let v = {};
107
+ if (o.formItemFlag)
108
+ v = { [l]: ti(o) };
109
+ else if (o.type !== E.form) {
110
+ var x = Ee(o);
111
+ v = Kt(x);
112
+ }
113
+ I(a, v);
114
+ }), I(i, { [r]: a });
115
+ }), i;
116
+ }, ei = function(t) {
117
+ const i = Wt(t), s = Kt(t), e = I(i, s);
118
+ return `
119
+ export default {
120
+ components: {},
121
+ props: {},
122
+ data() {
123
+ return
124
+ ${H(e)};
125
+ },
126
+ computed: {},
127
+ watch: {},
128
+ created() {},
129
+ mounted() {},
130
+ methods: {}
131
+ }`;
132
+ }, ii = function(t) {
133
+ var o, l;
134
+ const i = Wt(t), s = Kt(t), e = I(i, s), a = (o = _t(e)) == null ? void 0 : o.map((v) => `const ${v} = reactive(${H(e == null ? void 0 : e[v])});`);
135
+ return `
136
+ ${((l = _t(e)) == null ? void 0 : l.length) > 0 ? "import { reactive } from 'vue';" : ""}
137
+ ${a.join(`
138
+ `)}
139
+ `;
140
+ };
141
+ var it = {}, si = {
142
+ get exports() {
143
+ return it;
144
+ },
145
+ set exports(t) {
146
+ it = t;
147
+ }
148
+ }, Z = {}, st = {}, ni = {
149
+ get exports() {
150
+ return st;
151
+ },
152
+ set exports(t) {
153
+ st = t;
154
+ }
155
+ }, wt = {}, Ot = {}, Yt;
156
+ function Ut() {
157
+ if (Yt)
158
+ return Ot;
159
+ Yt = 1;
160
+ function t(e) {
161
+ this.__parent = e, this.__character_count = 0, this.__indent_count = -1, this.__alignment_count = 0, this.__wrap_point_index = 0, this.__wrap_point_character_count = 0, this.__wrap_point_indent_count = -1, this.__wrap_point_alignment_count = 0, this.__items = [];
162
+ }
163
+ t.prototype.clone_empty = function() {
164
+ var e = new t(this.__parent);
165
+ return e.set_indent(this.__indent_count, this.__alignment_count), e;
166
+ }, t.prototype.item = function(e) {
167
+ return e < 0 ? this.__items[this.__items.length + e] : this.__items[e];
168
+ }, t.prototype.has_match = function(e) {
169
+ for (var a = this.__items.length - 1; a >= 0; a--)
170
+ if (this.__items[a].match(e))
171
+ return !0;
172
+ return !1;
173
+ }, t.prototype.set_indent = function(e, a) {
174
+ this.is_empty() && (this.__indent_count = e || 0, this.__alignment_count = a || 0, this.__character_count = this.__parent.get_indent_size(this.__indent_count, this.__alignment_count));
175
+ }, t.prototype._set_wrap_point = function() {
176
+ this.__parent.wrap_line_length && (this.__wrap_point_index = this.__items.length, this.__wrap_point_character_count = this.__character_count, this.__wrap_point_indent_count = this.__parent.next_line.__indent_count, this.__wrap_point_alignment_count = this.__parent.next_line.__alignment_count);
177
+ }, t.prototype._should_wrap = function() {
178
+ return this.__wrap_point_index && this.__character_count > this.__parent.wrap_line_length && this.__wrap_point_character_count > this.__parent.next_line.__character_count;
179
+ }, t.prototype._allow_wrap = function() {
180
+ if (this._should_wrap()) {
181
+ this.__parent.add_new_line();
182
+ var e = this.__parent.current_line;
183
+ return e.set_indent(this.__wrap_point_indent_count, this.__wrap_point_alignment_count), e.__items = this.__items.slice(this.__wrap_point_index), this.__items = this.__items.slice(0, this.__wrap_point_index), e.__character_count += this.__character_count - this.__wrap_point_character_count, this.__character_count = this.__wrap_point_character_count, e.__items[0] === " " && (e.__items.splice(0, 1), e.__character_count -= 1), !0;
184
+ }
185
+ return !1;
186
+ }, t.prototype.is_empty = function() {
187
+ return this.__items.length === 0;
188
+ }, t.prototype.last = function() {
189
+ return this.is_empty() ? null : this.__items[this.__items.length - 1];
190
+ }, t.prototype.push = function(e) {
191
+ this.__items.push(e);
192
+ var a = e.lastIndexOf(`
193
+ `);
194
+ a !== -1 ? this.__character_count = e.length - a : this.__character_count += e.length;
195
+ }, t.prototype.pop = function() {
196
+ var e = null;
197
+ return this.is_empty() || (e = this.__items.pop(), this.__character_count -= e.length), e;
198
+ }, t.prototype._remove_indent = function() {
199
+ this.__indent_count > 0 && (this.__indent_count -= 1, this.__character_count -= this.__parent.indent_size);
200
+ }, t.prototype._remove_wrap_indent = function() {
201
+ this.__wrap_point_indent_count > 0 && (this.__wrap_point_indent_count -= 1);
202
+ }, t.prototype.trim = function() {
203
+ for (; this.last() === " "; )
204
+ this.__items.pop(), this.__character_count -= 1;
205
+ }, t.prototype.toString = function() {
206
+ var e = "";
207
+ return this.is_empty() ? this.__parent.indent_empty_lines && (e = this.__parent.get_indent_string(this.__indent_count)) : (e = this.__parent.get_indent_string(this.__indent_count, this.__alignment_count), e += this.__items.join("")), e;
208
+ };
209
+ function i(e, a) {
210
+ this.__cache = [""], this.__indent_size = e.indent_size, this.__indent_string = e.indent_char, e.indent_with_tabs || (this.__indent_string = new Array(e.indent_size + 1).join(e.indent_char)), a = a || "", e.indent_level > 0 && (a = new Array(e.indent_level + 1).join(this.__indent_string)), this.__base_string = a, this.__base_string_length = a.length;
211
+ }
212
+ i.prototype.get_indent_size = function(e, a) {
213
+ var r = this.__base_string_length;
214
+ return a = a || 0, e < 0 && (r = 0), r += e * this.__indent_size, r += a, r;
215
+ }, i.prototype.get_indent_string = function(e, a) {
216
+ var r = this.__base_string;
217
+ return a = a || 0, e < 0 && (e = 0, r = ""), a += e * this.__indent_size, this.__ensure_cache(a), r += this.__cache[a], r;
218
+ }, i.prototype.__ensure_cache = function(e) {
219
+ for (; e >= this.__cache.length; )
220
+ this.__add_column();
221
+ }, i.prototype.__add_column = function() {
222
+ var e = this.__cache.length, a = 0, r = "";
223
+ this.__indent_size && e >= this.__indent_size && (a = Math.floor(e / this.__indent_size), e -= a * this.__indent_size, r = new Array(a + 1).join(this.__indent_string)), e && (r += new Array(e + 1).join(" ")), this.__cache.push(r);
224
+ };
225
+ function s(e, a) {
226
+ this.__indent_cache = new i(e, a), this.raw = !1, this._end_with_newline = e.end_with_newline, this.indent_size = e.indent_size, this.wrap_line_length = e.wrap_line_length, this.indent_empty_lines = e.indent_empty_lines, this.__lines = [], this.previous_line = null, this.current_line = null, this.next_line = new t(this), this.space_before_token = !1, this.non_breaking_space = !1, this.previous_token_wrapped = !1, this.__add_outputline();
227
+ }
228
+ return s.prototype.__add_outputline = function() {
229
+ this.previous_line = this.current_line, this.current_line = this.next_line.clone_empty(), this.__lines.push(this.current_line);
230
+ }, s.prototype.get_line_number = function() {
231
+ return this.__lines.length;
232
+ }, s.prototype.get_indent_string = function(e, a) {
233
+ return this.__indent_cache.get_indent_string(e, a);
234
+ }, s.prototype.get_indent_size = function(e, a) {
235
+ return this.__indent_cache.get_indent_size(e, a);
236
+ }, s.prototype.is_empty = function() {
237
+ return !this.previous_line && this.current_line.is_empty();
238
+ }, s.prototype.add_new_line = function(e) {
239
+ return this.is_empty() || !e && this.just_added_newline() ? !1 : (this.raw || this.__add_outputline(), !0);
240
+ }, s.prototype.get_code = function(e) {
241
+ this.trim(!0);
242
+ var a = this.current_line.pop();
243
+ a && (a[a.length - 1] === `
244
+ ` && (a = a.replace(/\n+$/g, "")), this.current_line.push(a)), this._end_with_newline && this.__add_outputline();
245
+ var r = this.__lines.join(`
246
+ `);
247
+ return e !== `
248
+ ` && (r = r.replace(/[\n]/g, e)), r;
249
+ }, s.prototype.set_wrap_point = function() {
250
+ this.current_line._set_wrap_point();
251
+ }, s.prototype.set_indent = function(e, a) {
252
+ return e = e || 0, a = a || 0, this.next_line.set_indent(e, a), this.__lines.length > 1 ? (this.current_line.set_indent(e, a), !0) : (this.current_line.set_indent(), !1);
253
+ }, s.prototype.add_raw_token = function(e) {
254
+ for (var a = 0; a < e.newlines; a++)
255
+ this.__add_outputline();
256
+ this.current_line.set_indent(-1), this.current_line.push(e.whitespace_before), this.current_line.push(e.text), this.space_before_token = !1, this.non_breaking_space = !1, this.previous_token_wrapped = !1;
257
+ }, s.prototype.add_token = function(e) {
258
+ this.__add_space_before_token(), this.current_line.push(e), this.space_before_token = !1, this.non_breaking_space = !1, this.previous_token_wrapped = this.current_line._allow_wrap();
259
+ }, s.prototype.__add_space_before_token = function() {
260
+ this.space_before_token && !this.just_added_newline() && (this.non_breaking_space || this.set_wrap_point(), this.current_line.push(" "));
261
+ }, s.prototype.remove_indent = function(e) {
262
+ for (var a = this.__lines.length; e < a; )
263
+ this.__lines[e]._remove_indent(), e++;
264
+ this.current_line._remove_wrap_indent();
265
+ }, s.prototype.trim = function(e) {
266
+ for (e = e === void 0 ? !1 : e, this.current_line.trim(); e && this.__lines.length > 1 && this.current_line.is_empty(); )
267
+ this.__lines.pop(), this.current_line = this.__lines[this.__lines.length - 1], this.current_line.trim();
268
+ this.previous_line = this.__lines.length > 1 ? this.__lines[this.__lines.length - 2] : null;
269
+ }, s.prototype.just_added_newline = function() {
270
+ return this.current_line.is_empty();
271
+ }, s.prototype.just_added_blankline = function() {
272
+ return this.is_empty() || this.current_line.is_empty() && this.previous_line.is_empty();
273
+ }, s.prototype.ensure_empty_line_above = function(e, a) {
274
+ for (var r = this.__lines.length - 2; r >= 0; ) {
275
+ var u = this.__lines[r];
276
+ if (u.is_empty())
277
+ break;
278
+ if (u.item(0).indexOf(e) !== 0 && u.item(-1) !== a) {
279
+ this.__lines.splice(r + 1, 0, new t(this)), this.previous_line = this.__lines[this.__lines.length - 2];
280
+ break;
281
+ }
282
+ r--;
283
+ }
284
+ }, Ot.Output = s, Ot;
285
+ }
286
+ var Tt = {}, Zt;
287
+ function Ne() {
288
+ if (Zt)
289
+ return Tt;
290
+ Zt = 1;
291
+ function t(i, s, e, a) {
292
+ this.type = i, this.text = s, this.comments_before = null, this.newlines = e || 0, this.whitespace_before = a || "", this.parent = null, this.next = null, this.previous = null, this.opened = null, this.closed = null, this.directives = null;
293
+ }
294
+ return Tt.Token = t, Tt;
295
+ }
296
+ var Et = {}, te;
297
+ function $e() {
298
+ return te || (te = 1, function(t) {
299
+ var i = "\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a", s = "\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a", e = "\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc", a = "\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f", r = "(?:\\\\u[0-9a-fA-F]{4}|[" + i + e + "])", u = "(?:\\\\u[0-9a-fA-F]{4}|[" + s + e + a + "])*";
300
+ t.identifier = new RegExp(r + u, "g"), t.identifierStart = new RegExp(r), t.identifierMatch = new RegExp("(?:\\\\u[0-9a-fA-F]{4}|[" + s + e + a + "])+"), t.newline = /[\n\r\u2028\u2029]/, t.lineBreak = new RegExp(`\r
301
+ |` + t.newline.source), t.allLineBreaks = new RegExp(t.lineBreak.source, "g");
302
+ }(Et)), Et;
303
+ }
304
+ var kt = {}, tt = {}, ee;
305
+ function zt() {
306
+ if (ee)
307
+ return tt;
308
+ ee = 1;
309
+ function t(e, a) {
310
+ this.raw_options = i(e, a), this.disabled = this._get_boolean("disabled"), this.eol = this._get_characters("eol", "auto"), this.end_with_newline = this._get_boolean("end_with_newline"), this.indent_size = this._get_number("indent_size", 4), this.indent_char = this._get_characters("indent_char", " "), this.indent_level = this._get_number("indent_level"), this.preserve_newlines = this._get_boolean("preserve_newlines", !0), this.max_preserve_newlines = this._get_number("max_preserve_newlines", 32786), this.preserve_newlines || (this.max_preserve_newlines = 0), this.indent_with_tabs = this._get_boolean("indent_with_tabs", this.indent_char === " "), this.indent_with_tabs && (this.indent_char = " ", this.indent_size === 1 && (this.indent_size = 4)), this.wrap_line_length = this._get_number("wrap_line_length", this._get_number("max_char")), this.indent_empty_lines = this._get_boolean("indent_empty_lines"), this.templating = this._get_selection_list("templating", ["auto", "none", "django", "erb", "handlebars", "php", "smarty"], ["auto"]);
311
+ }
312
+ t.prototype._get_array = function(e, a) {
313
+ var r = this.raw_options[e], u = a || [];
314
+ return typeof r == "object" ? r !== null && typeof r.concat == "function" && (u = r.concat()) : typeof r == "string" && (u = r.split(/[^a-zA-Z0-9_\/\-]+/)), u;
315
+ }, t.prototype._get_boolean = function(e, a) {
316
+ var r = this.raw_options[e], u = r === void 0 ? !!a : !!r;
317
+ return u;
318
+ }, t.prototype._get_characters = function(e, a) {
319
+ var r = this.raw_options[e], u = a || "";
320
+ return typeof r == "string" && (u = r.replace(/\\r/, "\r").replace(/\\n/, `
321
+ `).replace(/\\t/, " ")), u;
322
+ }, t.prototype._get_number = function(e, a) {
323
+ var r = this.raw_options[e];
324
+ a = parseInt(a, 10), isNaN(a) && (a = 0);
325
+ var u = parseInt(r, 10);
326
+ return isNaN(u) && (u = a), u;
327
+ }, t.prototype._get_selection = function(e, a, r) {
328
+ var u = this._get_selection_list(e, a, r);
329
+ if (u.length !== 1)
330
+ throw new Error(
331
+ "Invalid Option Value: The option '" + e + `' can only be one of the following values:
332
+ ` + a + `
333
+ You passed in: '` + this.raw_options[e] + "'"
334
+ );
335
+ return u[0];
336
+ }, t.prototype._get_selection_list = function(e, a, r) {
337
+ if (!a || a.length === 0)
338
+ throw new Error("Selection list cannot be empty.");
339
+ if (r = r || [a[0]], !this._is_valid_selection(r, a))
340
+ throw new Error("Invalid Default Value!");
341
+ var u = this._get_array(e, r);
342
+ if (!this._is_valid_selection(u, a))
343
+ throw new Error(
344
+ "Invalid Option Value: The option '" + e + `' can contain only the following values:
345
+ ` + a + `
346
+ You passed in: '` + this.raw_options[e] + "'"
347
+ );
348
+ return u;
349
+ }, t.prototype._is_valid_selection = function(e, a) {
350
+ return e.length && a.length && !e.some(function(r) {
351
+ return a.indexOf(r) === -1;
352
+ });
353
+ };
354
+ function i(e, a) {
355
+ var r = {};
356
+ e = s(e);
357
+ var u;
358
+ for (u in e)
359
+ u !== a && (r[u] = e[u]);
360
+ if (a && e[a])
361
+ for (u in e[a])
362
+ r[u] = e[a][u];
363
+ return r;
364
+ }
365
+ function s(e) {
366
+ var a = {}, r;
367
+ for (r in e) {
368
+ var u = r.replace(/-/g, "_");
369
+ a[u] = e[r];
370
+ }
371
+ return a;
372
+ }
373
+ return tt.Options = t, tt.normalizeOpts = s, tt.mergeOpts = i, tt;
374
+ }
375
+ var ie;
376
+ function Pe() {
377
+ if (ie)
378
+ return kt;
379
+ ie = 1;
380
+ var t = zt().Options, i = ["before-newline", "after-newline", "preserve-newline"];
381
+ function s(e) {
382
+ t.call(this, e, "js");
383
+ var a = this.raw_options.brace_style || null;
384
+ a === "expand-strict" ? this.raw_options.brace_style = "expand" : a === "collapse-preserve-inline" ? this.raw_options.brace_style = "collapse,preserve-inline" : this.raw_options.braces_on_own_line !== void 0 && (this.raw_options.brace_style = this.raw_options.braces_on_own_line ? "expand" : "collapse");
385
+ var r = this._get_selection_list("brace_style", ["collapse", "expand", "end-expand", "none", "preserve-inline"]);
386
+ this.brace_preserve_inline = !1, this.brace_style = "collapse";
387
+ for (var u = 0; u < r.length; u++)
388
+ r[u] === "preserve-inline" ? this.brace_preserve_inline = !0 : this.brace_style = r[u];
389
+ this.unindent_chained_methods = this._get_boolean("unindent_chained_methods"), this.break_chained_methods = this._get_boolean("break_chained_methods"), this.space_in_paren = this._get_boolean("space_in_paren"), this.space_in_empty_paren = this._get_boolean("space_in_empty_paren"), this.jslint_happy = this._get_boolean("jslint_happy"), this.space_after_anon_function = this._get_boolean("space_after_anon_function"), this.space_after_named_function = this._get_boolean("space_after_named_function"), this.keep_array_indentation = this._get_boolean("keep_array_indentation"), this.space_before_conditional = this._get_boolean("space_before_conditional", !0), this.unescape_strings = this._get_boolean("unescape_strings"), this.e4x = this._get_boolean("e4x"), this.comma_first = this._get_boolean("comma_first"), this.operator_position = this._get_selection("operator_position", i), this.test_output_raw = this._get_boolean("test_output_raw"), this.jslint_happy && (this.space_after_anon_function = !0);
390
+ }
391
+ return s.prototype = new t(), kt.Options = s, kt;
392
+ }
393
+ var Q = {}, Rt = {}, se;
394
+ function qt() {
395
+ if (se)
396
+ return Rt;
397
+ se = 1;
398
+ var t = RegExp.prototype.hasOwnProperty("sticky");
399
+ function i(s) {
400
+ this.__input = s || "", this.__input_length = this.__input.length, this.__position = 0;
401
+ }
402
+ return i.prototype.restart = function() {
403
+ this.__position = 0;
404
+ }, i.prototype.back = function() {
405
+ this.__position > 0 && (this.__position -= 1);
406
+ }, i.prototype.hasNext = function() {
407
+ return this.__position < this.__input_length;
408
+ }, i.prototype.next = function() {
409
+ var s = null;
410
+ return this.hasNext() && (s = this.__input.charAt(this.__position), this.__position += 1), s;
411
+ }, i.prototype.peek = function(s) {
412
+ var e = null;
413
+ return s = s || 0, s += this.__position, s >= 0 && s < this.__input_length && (e = this.__input.charAt(s)), e;
414
+ }, i.prototype.__match = function(s, e) {
415
+ s.lastIndex = e;
416
+ var a = s.exec(this.__input);
417
+ return a && !(t && s.sticky) && a.index !== e && (a = null), a;
418
+ }, i.prototype.test = function(s, e) {
419
+ return e = e || 0, e += this.__position, e >= 0 && e < this.__input_length ? !!this.__match(s, e) : !1;
420
+ }, i.prototype.testChar = function(s, e) {
421
+ var a = this.peek(e);
422
+ return s.lastIndex = 0, a !== null && s.test(a);
423
+ }, i.prototype.match = function(s) {
424
+ var e = this.__match(s, this.__position);
425
+ return e ? this.__position += e[0].length : e = null, e;
426
+ }, i.prototype.read = function(s, e, a) {
427
+ var r = "", u;
428
+ return s && (u = this.match(s), u && (r += u[0])), e && (u || !s) && (r += this.readUntil(e, a)), r;
429
+ }, i.prototype.readUntil = function(s, e) {
430
+ var a = "", r = this.__position;
431
+ s.lastIndex = this.__position;
432
+ var u = s.exec(this.__input);
433
+ return u ? (r = u.index, e && (r += u[0].length)) : r = this.__input_length, a = this.__input.substring(this.__position, r), this.__position = r, a;
434
+ }, i.prototype.readUntilAfter = function(s) {
435
+ return this.readUntil(s, !0);
436
+ }, i.prototype.get_regexp = function(s, e) {
437
+ var a = null, r = "g";
438
+ return e && t && (r = "y"), typeof s == "string" && s !== "" ? a = new RegExp(s, r) : s && (a = new RegExp(s.source, r)), a;
439
+ }, i.prototype.get_literal_regexp = function(s) {
440
+ return RegExp(s.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&"));
441
+ }, i.prototype.peekUntilAfter = function(s) {
442
+ var e = this.__position, a = this.readUntilAfter(s);
443
+ return this.__position = e, a;
444
+ }, i.prototype.lookBack = function(s) {
445
+ var e = this.__position - 1;
446
+ return e >= s.length && this.__input.substring(e - s.length, e).toLowerCase() === s;
447
+ }, Rt.InputScanner = i, Rt;
448
+ }
449
+ var ut = {}, St = {}, ne;
450
+ function ai() {
451
+ if (ne)
452
+ return St;
453
+ ne = 1;
454
+ function t(i) {
455
+ this.__tokens = [], this.__tokens_length = this.__tokens.length, this.__position = 0, this.__parent_token = i;
456
+ }
457
+ return t.prototype.restart = function() {
458
+ this.__position = 0;
459
+ }, t.prototype.isEmpty = function() {
460
+ return this.__tokens_length === 0;
461
+ }, t.prototype.hasNext = function() {
462
+ return this.__position < this.__tokens_length;
463
+ }, t.prototype.next = function() {
464
+ var i = null;
465
+ return this.hasNext() && (i = this.__tokens[this.__position], this.__position += 1), i;
466
+ }, t.prototype.peek = function(i) {
467
+ var s = null;
468
+ return i = i || 0, i += this.__position, i >= 0 && i < this.__tokens_length && (s = this.__tokens[i]), s;
469
+ }, t.prototype.add = function(i) {
470
+ this.__parent_token && (i.parent = this.__parent_token), this.__tokens.push(i), this.__tokens_length += 1;
471
+ }, St.TokenStream = t, St;
472
+ }
473
+ var At = {}, Ct = {}, ae;
474
+ function gt() {
475
+ if (ae)
476
+ return Ct;
477
+ ae = 1;
478
+ function t(i, s) {
479
+ this._input = i, this._starting_pattern = null, this._match_pattern = null, this._until_pattern = null, this._until_after = !1, s && (this._starting_pattern = this._input.get_regexp(s._starting_pattern, !0), this._match_pattern = this._input.get_regexp(s._match_pattern, !0), this._until_pattern = this._input.get_regexp(s._until_pattern), this._until_after = s._until_after);
480
+ }
481
+ return t.prototype.read = function() {
482
+ var i = this._input.read(this._starting_pattern);
483
+ return (!this._starting_pattern || i) && (i += this._input.read(this._match_pattern, this._until_pattern, this._until_after)), i;
484
+ }, t.prototype.read_match = function() {
485
+ return this._input.match(this._match_pattern);
486
+ }, t.prototype.until_after = function(i) {
487
+ var s = this._create();
488
+ return s._until_after = !0, s._until_pattern = this._input.get_regexp(i), s._update(), s;
489
+ }, t.prototype.until = function(i) {
490
+ var s = this._create();
491
+ return s._until_after = !1, s._until_pattern = this._input.get_regexp(i), s._update(), s;
492
+ }, t.prototype.starting_with = function(i) {
493
+ var s = this._create();
494
+ return s._starting_pattern = this._input.get_regexp(i, !0), s._update(), s;
495
+ }, t.prototype.matching = function(i) {
496
+ var s = this._create();
497
+ return s._match_pattern = this._input.get_regexp(i, !0), s._update(), s;
498
+ }, t.prototype._create = function() {
499
+ return new t(this._input, this);
500
+ }, t.prototype._update = function() {
501
+ }, Ct.Pattern = t, Ct;
502
+ }
503
+ var _e;
504
+ function _i() {
505
+ if (_e)
506
+ return At;
507
+ _e = 1;
508
+ var t = gt().Pattern;
509
+ function i(s, e) {
510
+ t.call(this, s, e), e ? this._line_regexp = this._input.get_regexp(e._line_regexp) : this.__set_whitespace_patterns("", ""), this.newline_count = 0, this.whitespace_before_token = "";
511
+ }
512
+ return i.prototype = new t(), i.prototype.__set_whitespace_patterns = function(s, e) {
513
+ s += "\\t ", e += "\\n\\r", this._match_pattern = this._input.get_regexp(
514
+ "[" + s + e + "]+",
515
+ !0
516
+ ), this._newline_regexp = this._input.get_regexp(
517
+ "\\r\\n|[" + e + "]"
518
+ );
519
+ }, i.prototype.read = function() {
520
+ this.newline_count = 0, this.whitespace_before_token = "";
521
+ var s = this._input.read(this._match_pattern);
522
+ if (s === " ")
523
+ this.whitespace_before_token = " ";
524
+ else if (s) {
525
+ var e = this.__split(this._newline_regexp, s);
526
+ this.newline_count = e.length - 1, this.whitespace_before_token = e[this.newline_count];
527
+ }
528
+ return s;
529
+ }, i.prototype.matching = function(s, e) {
530
+ var a = this._create();
531
+ return a.__set_whitespace_patterns(s, e), a._update(), a;
532
+ }, i.prototype._create = function() {
533
+ return new i(this._input, this);
534
+ }, i.prototype.__split = function(s, e) {
535
+ s.lastIndex = 0;
536
+ for (var a = 0, r = [], u = s.exec(e); u; )
537
+ r.push(e.substring(a, u.index)), a = u.index + u[0].length, u = s.exec(e);
538
+ return a < e.length ? r.push(e.substring(a, e.length)) : r.push(""), r;
539
+ }, At.WhitespacePattern = i, At;
540
+ }
541
+ var re;
542
+ function dt() {
543
+ if (re)
544
+ return ut;
545
+ re = 1;
546
+ var t = qt().InputScanner, i = Ne().Token, s = ai().TokenStream, e = _i().WhitespacePattern, a = {
547
+ START: "TK_START",
548
+ RAW: "TK_RAW",
549
+ EOF: "TK_EOF"
550
+ }, r = function(u, o) {
551
+ this._input = new t(u), this._options = o || {}, this.__tokens = null, this._patterns = {}, this._patterns.whitespace = new e(this._input);
552
+ };
553
+ return r.prototype.tokenize = function() {
554
+ this._input.restart(), this.__tokens = new s(), this._reset();
555
+ for (var u, o = new i(a.START, ""), l = null, v = [], x = new s(); o.type !== a.EOF; ) {
556
+ for (u = this._get_next_token(o, l); this._is_comment(u); )
557
+ x.add(u), u = this._get_next_token(o, l);
558
+ x.isEmpty() || (u.comments_before = x, x = new s()), u.parent = l, this._is_opening(u) ? (v.push(l), l = u) : l && this._is_closing(u, l) && (u.opened = l, l.closed = u, l = v.pop(), u.parent = l), u.previous = o, o.next = u, this.__tokens.add(u), o = u;
559
+ }
560
+ return this.__tokens;
561
+ }, r.prototype._is_first_token = function() {
562
+ return this.__tokens.isEmpty();
563
+ }, r.prototype._reset = function() {
564
+ }, r.prototype._get_next_token = function(u, o) {
565
+ this._readWhitespace();
566
+ var l = this._input.read(/.+/g);
567
+ return l ? this._create_token(a.RAW, l) : this._create_token(a.EOF, "");
568
+ }, r.prototype._is_comment = function(u) {
569
+ return !1;
570
+ }, r.prototype._is_opening = function(u) {
571
+ return !1;
572
+ }, r.prototype._is_closing = function(u, o) {
573
+ return !1;
574
+ }, r.prototype._create_token = function(u, o) {
575
+ var l = new i(
576
+ u,
577
+ o,
578
+ this._patterns.whitespace.newline_count,
579
+ this._patterns.whitespace.whitespace_before_token
580
+ );
581
+ return l;
582
+ }, r.prototype._readWhitespace = function() {
583
+ return this._patterns.whitespace.read();
584
+ }, ut.Tokenizer = r, ut.TOKEN = a, ut;
585
+ }
586
+ var Nt = {}, oe;
587
+ function Vt() {
588
+ if (oe)
589
+ return Nt;
590
+ oe = 1;
591
+ function t(i, s) {
592
+ i = typeof i == "string" ? i : i.source, s = typeof s == "string" ? s : s.source, this.__directives_block_pattern = new RegExp(i + / beautify( \w+[:]\w+)+ /.source + s, "g"), this.__directive_pattern = / (\w+)[:](\w+)/g, this.__directives_end_ignore_pattern = new RegExp(i + /\sbeautify\signore:end\s/.source + s, "g");
593
+ }
594
+ return t.prototype.get_directives = function(i) {
595
+ if (!i.match(this.__directives_block_pattern))
596
+ return null;
597
+ var s = {};
598
+ this.__directive_pattern.lastIndex = 0;
599
+ for (var e = this.__directive_pattern.exec(i); e; )
600
+ s[e[1]] = e[2], e = this.__directive_pattern.exec(i);
601
+ return s;
602
+ }, t.prototype.readIgnored = function(i) {
603
+ return i.readUntilAfter(this.__directives_end_ignore_pattern);
604
+ }, Nt.Directives = t, Nt;
605
+ }
606
+ var $t = {}, le;
607
+ function je() {
608
+ if (le)
609
+ return $t;
610
+ le = 1;
611
+ var t = gt().Pattern, i = {
612
+ django: !1,
613
+ erb: !1,
614
+ handlebars: !1,
615
+ php: !1,
616
+ smarty: !1
617
+ };
618
+ function s(e, a) {
619
+ t.call(this, e, a), this.__template_pattern = null, this._disabled = Object.assign({}, i), this._excluded = Object.assign({}, i), a && (this.__template_pattern = this._input.get_regexp(a.__template_pattern), this._excluded = Object.assign(this._excluded, a._excluded), this._disabled = Object.assign(this._disabled, a._disabled));
620
+ var r = new t(e);
621
+ this.__patterns = {
622
+ handlebars_comment: r.starting_with(/{{!--/).until_after(/--}}/),
623
+ handlebars_unescaped: r.starting_with(/{{{/).until_after(/}}}/),
624
+ handlebars: r.starting_with(/{{/).until_after(/}}/),
625
+ php: r.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),
626
+ erb: r.starting_with(/<%[^%]/).until_after(/[^%]%>/),
627
+ // django coflicts with handlebars a bit.
628
+ django: r.starting_with(/{%/).until_after(/%}/),
629
+ django_value: r.starting_with(/{{/).until_after(/}}/),
630
+ django_comment: r.starting_with(/{#/).until_after(/#}/),
631
+ smarty: r.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),
632
+ smarty_comment: r.starting_with(/{\*/).until_after(/\*}/),
633
+ smarty_literal: r.starting_with(/{literal}/).until_after(/{\/literal}/)
634
+ };
635
+ }
636
+ return s.prototype = new t(), s.prototype._create = function() {
637
+ return new s(this._input, this);
638
+ }, s.prototype._update = function() {
639
+ this.__set_templated_pattern();
640
+ }, s.prototype.disable = function(e) {
641
+ var a = this._create();
642
+ return a._disabled[e] = !0, a._update(), a;
643
+ }, s.prototype.read_options = function(e) {
644
+ var a = this._create();
645
+ for (var r in i)
646
+ a._disabled[r] = e.templating.indexOf(r) === -1;
647
+ return a._update(), a;
648
+ }, s.prototype.exclude = function(e) {
649
+ var a = this._create();
650
+ return a._excluded[e] = !0, a._update(), a;
651
+ }, s.prototype.read = function() {
652
+ var e = "";
653
+ this._match_pattern ? e = this._input.read(this._starting_pattern) : e = this._input.read(this._starting_pattern, this.__template_pattern);
654
+ for (var a = this._read_template(); a; )
655
+ this._match_pattern ? a += this._input.read(this._match_pattern) : a += this._input.readUntil(this.__template_pattern), e += a, a = this._read_template();
656
+ return this._until_after && (e += this._input.readUntilAfter(this._until_pattern)), e;
657
+ }, s.prototype.__set_templated_pattern = function() {
658
+ var e = [];
659
+ this._disabled.php || e.push(this.__patterns.php._starting_pattern.source), this._disabled.handlebars || e.push(this.__patterns.handlebars._starting_pattern.source), this._disabled.erb || e.push(this.__patterns.erb._starting_pattern.source), this._disabled.django || (e.push(this.__patterns.django._starting_pattern.source), e.push(this.__patterns.django_value._starting_pattern.source), e.push(this.__patterns.django_comment._starting_pattern.source)), this._disabled.smarty || e.push(this.__patterns.smarty._starting_pattern.source), this._until_pattern && e.push(this._until_pattern.source), this.__template_pattern = this._input.get_regexp("(?:" + e.join("|") + ")");
660
+ }, s.prototype._read_template = function() {
661
+ var e = "", a = this._input.peek();
662
+ if (a === "<") {
663
+ var r = this._input.peek(1);
664
+ !this._disabled.php && !this._excluded.php && r === "?" && (e = e || this.__patterns.php.read()), !this._disabled.erb && !this._excluded.erb && r === "%" && (e = e || this.__patterns.erb.read());
665
+ } else
666
+ a === "{" && (!this._disabled.handlebars && !this._excluded.handlebars && (e = e || this.__patterns.handlebars_comment.read(), e = e || this.__patterns.handlebars_unescaped.read(), e = e || this.__patterns.handlebars.read()), this._disabled.django || (!this._excluded.django && !this._excluded.handlebars && (e = e || this.__patterns.django_value.read()), this._excluded.django || (e = e || this.__patterns.django_comment.read(), e = e || this.__patterns.django.read())), this._disabled.smarty || this._disabled.django && this._disabled.handlebars && (e = e || this.__patterns.smarty_comment.read(), e = e || this.__patterns.smarty_literal.read(), e = e || this.__patterns.smarty.read()));
667
+ return e;
668
+ }, $t.TemplatablePattern = s, $t;
669
+ }
670
+ var ue;
671
+ function pt() {
672
+ if (ue)
673
+ return Q;
674
+ ue = 1;
675
+ var t = qt().InputScanner, i = dt().Tokenizer, s = dt().TOKEN, e = Vt().Directives, a = $e(), r = gt().Pattern, u = je().TemplatablePattern;
676
+ function o(c, g) {
677
+ return g.indexOf(c) !== -1;
678
+ }
679
+ var l = {
680
+ START_EXPR: "TK_START_EXPR",
681
+ END_EXPR: "TK_END_EXPR",
682
+ START_BLOCK: "TK_START_BLOCK",
683
+ END_BLOCK: "TK_END_BLOCK",
684
+ WORD: "TK_WORD",
685
+ RESERVED: "TK_RESERVED",
686
+ SEMICOLON: "TK_SEMICOLON",
687
+ STRING: "TK_STRING",
688
+ EQUALS: "TK_EQUALS",
689
+ OPERATOR: "TK_OPERATOR",
690
+ COMMA: "TK_COMMA",
691
+ BLOCK_COMMENT: "TK_BLOCK_COMMENT",
692
+ COMMENT: "TK_COMMENT",
693
+ DOT: "TK_DOT",
694
+ UNKNOWN: "TK_UNKNOWN",
695
+ START: s.START,
696
+ RAW: s.RAW,
697
+ EOF: s.EOF
698
+ }, v = new e(/\/\*/, /\*\//), x = /0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/, b = /[0-9]/, y = /[^\d\.]/, A = ">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "), N = ">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";
699
+ N = N.replace(/[-[\]{}()*+?.,\\^$|#]/g, "\\$&"), N = "\\?\\.(?!\\d) " + N, N = N.replace(/ /g, "|");
700
+ var $ = new RegExp(N), p = "continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","), _ = p.concat(["do", "in", "of", "else", "get", "set", "new", "catch", "finally", "typeof", "yield", "async", "await", "from", "as", "class", "extends"]), h = new RegExp("^(?:" + _.join("|") + ")$"), k, O = function(c, g) {
701
+ i.call(this, c, g), this._patterns.whitespace = this._patterns.whitespace.matching(
702
+ /\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,
703
+ /\u2028\u2029/.source
704
+ );
705
+ var f = new r(this._input), T = new u(this._input).read_options(this._options);
706
+ this.__patterns = {
707
+ template: T,
708
+ identifier: T.starting_with(a.identifier).matching(a.identifierMatch),
709
+ number: f.matching(x),
710
+ punct: f.matching($),
711
+ // comment ends just before nearest linefeed or end of file
712
+ comment: f.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),
713
+ // /* ... */ comment ends with nearest */ or end of file
714
+ block_comment: f.starting_with(/\/\*/).until_after(/\*\//),
715
+ html_comment_start: f.matching(/<!--/),
716
+ html_comment_end: f.matching(/-->/),
717
+ include: f.starting_with(/#include/).until_after(a.lineBreak),
718
+ shebang: f.starting_with(/#!/).until_after(a.lineBreak),
719
+ xml: f.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),
720
+ single_quote: T.until(/['\\\n\r\u2028\u2029]/),
721
+ double_quote: T.until(/["\\\n\r\u2028\u2029]/),
722
+ template_text: T.until(/[`\\$]/),
723
+ template_expression: T.until(/[`}\\]/)
724
+ };
725
+ };
726
+ O.prototype = new i(), O.prototype._is_comment = function(c) {
727
+ return c.type === l.COMMENT || c.type === l.BLOCK_COMMENT || c.type === l.UNKNOWN;
728
+ }, O.prototype._is_opening = function(c) {
729
+ return c.type === l.START_BLOCK || c.type === l.START_EXPR;
730
+ }, O.prototype._is_closing = function(c, g) {
731
+ return (c.type === l.END_BLOCK || c.type === l.END_EXPR) && g && (c.text === "]" && g.text === "[" || c.text === ")" && g.text === "(" || c.text === "}" && g.text === "{");
732
+ }, O.prototype._reset = function() {
733
+ k = !1;
734
+ }, O.prototype._get_next_token = function(c, g) {
735
+ var f = null;
736
+ this._readWhitespace();
737
+ var T = this._input.peek();
738
+ return T === null ? this._create_token(l.EOF, "") : (f = f || this._read_non_javascript(T), f = f || this._read_string(T), f = f || this._read_pair(T, this._input.peek(1)), f = f || this._read_word(c), f = f || this._read_singles(T), f = f || this._read_comment(T), f = f || this._read_regexp(T, c), f = f || this._read_xml(T, c), f = f || this._read_punctuation(), f = f || this._create_token(l.UNKNOWN, this._input.next()), f);
739
+ }, O.prototype._read_word = function(c) {
740
+ var g;
741
+ if (g = this.__patterns.identifier.read(), g !== "")
742
+ return g = g.replace(a.allLineBreaks, `
743
+ `), !(c.type === l.DOT || c.type === l.RESERVED && (c.text === "set" || c.text === "get")) && h.test(g) ? (g === "in" || g === "of") && (c.type === l.WORD || c.type === l.STRING) ? this._create_token(l.OPERATOR, g) : this._create_token(l.RESERVED, g) : this._create_token(l.WORD, g);
744
+ if (g = this.__patterns.number.read(), g !== "")
745
+ return this._create_token(l.WORD, g);
746
+ }, O.prototype._read_singles = function(c) {
747
+ var g = null;
748
+ return c === "(" || c === "[" ? g = this._create_token(l.START_EXPR, c) : c === ")" || c === "]" ? g = this._create_token(l.END_EXPR, c) : c === "{" ? g = this._create_token(l.START_BLOCK, c) : c === "}" ? g = this._create_token(l.END_BLOCK, c) : c === ";" ? g = this._create_token(l.SEMICOLON, c) : c === "." && y.test(this._input.peek(1)) ? g = this._create_token(l.DOT, c) : c === "," && (g = this._create_token(l.COMMA, c)), g && this._input.next(), g;
749
+ }, O.prototype._read_pair = function(c, g) {
750
+ var f = null;
751
+ return c === "#" && g === "{" && (f = this._create_token(l.START_BLOCK, c + g)), f && (this._input.next(), this._input.next()), f;
752
+ }, O.prototype._read_punctuation = function() {
753
+ var c = this.__patterns.punct.read();
754
+ if (c !== "")
755
+ return c === "=" ? this._create_token(l.EQUALS, c) : c === "?." ? this._create_token(l.DOT, c) : this._create_token(l.OPERATOR, c);
756
+ }, O.prototype._read_non_javascript = function(c) {
757
+ var g = "";
758
+ if (c === "#") {
759
+ if (this._is_first_token() && (g = this.__patterns.shebang.read(), g))
760
+ return this._create_token(l.UNKNOWN, g.trim() + `
761
+ `);
762
+ if (g = this.__patterns.include.read(), g)
763
+ return this._create_token(l.UNKNOWN, g.trim() + `
764
+ `);
765
+ c = this._input.next();
766
+ var f = "#";
767
+ if (this._input.hasNext() && this._input.testChar(b)) {
768
+ do
769
+ c = this._input.next(), f += c;
770
+ while (this._input.hasNext() && c !== "#" && c !== "=");
771
+ return c === "#" || (this._input.peek() === "[" && this._input.peek(1) === "]" ? (f += "[]", this._input.next(), this._input.next()) : this._input.peek() === "{" && this._input.peek(1) === "}" && (f += "{}", this._input.next(), this._input.next())), this._create_token(l.WORD, f);
772
+ }
773
+ this._input.back();
774
+ } else if (c === "<" && this._is_first_token()) {
775
+ if (g = this.__patterns.html_comment_start.read(), g) {
776
+ for (; this._input.hasNext() && !this._input.testChar(a.newline); )
777
+ g += this._input.next();
778
+ return k = !0, this._create_token(l.COMMENT, g);
779
+ }
780
+ } else if (k && c === "-" && (g = this.__patterns.html_comment_end.read(), g))
781
+ return k = !1, this._create_token(l.COMMENT, g);
782
+ return null;
783
+ }, O.prototype._read_comment = function(c) {
784
+ var g = null;
785
+ if (c === "/") {
786
+ var f = "";
787
+ if (this._input.peek(1) === "*") {
788
+ f = this.__patterns.block_comment.read();
789
+ var T = v.get_directives(f);
790
+ T && T.ignore === "start" && (f += v.readIgnored(this._input)), f = f.replace(a.allLineBreaks, `
791
+ `), g = this._create_token(l.BLOCK_COMMENT, f), g.directives = T;
792
+ } else
793
+ this._input.peek(1) === "/" && (f = this.__patterns.comment.read(), g = this._create_token(l.COMMENT, f));
794
+ }
795
+ return g;
796
+ }, O.prototype._read_string = function(c) {
797
+ if (c === "`" || c === "'" || c === '"') {
798
+ var g = this._input.next();
799
+ return this.has_char_escapes = !1, c === "`" ? g += this._read_string_recursive("`", !0, "${") : g += this._read_string_recursive(c), this.has_char_escapes && this._options.unescape_strings && (g = S(g)), this._input.peek() === c && (g += this._input.next()), g = g.replace(a.allLineBreaks, `
800
+ `), this._create_token(l.STRING, g);
801
+ }
802
+ return null;
803
+ }, O.prototype._allow_regexp_or_xml = function(c) {
804
+ return c.type === l.RESERVED && o(c.text, ["return", "case", "throw", "else", "do", "typeof", "yield"]) || c.type === l.END_EXPR && c.text === ")" && c.opened.previous.type === l.RESERVED && o(c.opened.previous.text, ["if", "while", "for"]) || o(c.type, [
805
+ l.COMMENT,
806
+ l.START_EXPR,
807
+ l.START_BLOCK,
808
+ l.START,
809
+ l.END_BLOCK,
810
+ l.OPERATOR,
811
+ l.EQUALS,
812
+ l.EOF,
813
+ l.SEMICOLON,
814
+ l.COMMA
815
+ ]);
816
+ }, O.prototype._read_regexp = function(c, g) {
817
+ if (c === "/" && this._allow_regexp_or_xml(g)) {
818
+ for (var f = this._input.next(), T = !1, n = !1; this._input.hasNext() && (T || n || this._input.peek() !== c) && !this._input.testChar(a.newline); )
819
+ f += this._input.peek(), T ? T = !1 : (T = this._input.peek() === "\\", this._input.peek() === "[" ? n = !0 : this._input.peek() === "]" && (n = !1)), this._input.next();
820
+ return this._input.peek() === c && (f += this._input.next(), f += this._input.read(a.identifier)), this._create_token(l.STRING, f);
821
+ }
822
+ return null;
823
+ }, O.prototype._read_xml = function(c, g) {
824
+ if (this._options.e4x && c === "<" && this._allow_regexp_or_xml(g)) {
825
+ var f = "", T = this.__patterns.xml.read_match();
826
+ if (T) {
827
+ for (var n = T[2].replace(/^{\s+/, "{").replace(/\s+}$/, "}"), d = n.indexOf("{") === 0, m = 0; T; ) {
828
+ var R = !!T[1], C = T[2], P = !!T[T.length - 1] || C.slice(0, 8) === "![CDATA[";
829
+ if (!P && (C === n || d && C.replace(/^{\s+/, "{").replace(/\s+}$/, "}")) && (R ? --m : ++m), f += T[0], m <= 0)
830
+ break;
831
+ T = this.__patterns.xml.read_match();
832
+ }
833
+ return T || (f += this._input.match(/[\s\S]*/g)[0]), f = f.replace(a.allLineBreaks, `
834
+ `), this._create_token(l.STRING, f);
835
+ }
836
+ }
837
+ return null;
838
+ };
839
+ function S(c) {
840
+ for (var g = "", f = 0, T = new t(c), n = null; T.hasNext(); )
841
+ if (n = T.match(/([\s]|[^\\]|\\\\)+/g), n && (g += n[0]), T.peek() === "\\") {
842
+ if (T.next(), T.peek() === "x")
843
+ n = T.match(/x([0-9A-Fa-f]{2})/g);
844
+ else if (T.peek() === "u")
845
+ n = T.match(/u([0-9A-Fa-f]{4})/g);
846
+ else {
847
+ g += "\\", T.hasNext() && (g += T.next());
848
+ continue;
849
+ }
850
+ if (!n || (f = parseInt(n[1], 16), f > 126 && f <= 255 && n[0].indexOf("x") === 0))
851
+ return c;
852
+ if (f >= 0 && f < 32) {
853
+ g += "\\" + n[0];
854
+ continue;
855
+ } else
856
+ f === 34 || f === 39 || f === 92 ? g += "\\" + String.fromCharCode(f) : g += String.fromCharCode(f);
857
+ }
858
+ return g;
859
+ }
860
+ return O.prototype._read_string_recursive = function(c, g, f) {
861
+ var T, n;
862
+ c === "'" ? n = this.__patterns.single_quote : c === '"' ? n = this.__patterns.double_quote : c === "`" ? n = this.__patterns.template_text : c === "}" && (n = this.__patterns.template_expression);
863
+ for (var d = n.read(), m = ""; this._input.hasNext(); ) {
864
+ if (m = this._input.next(), m === c || !g && a.newline.test(m)) {
865
+ this._input.back();
866
+ break;
867
+ } else
868
+ m === "\\" && this._input.hasNext() ? (T = this._input.peek(), T === "x" || T === "u" ? this.has_char_escapes = !0 : T === "\r" && this._input.peek(1) === `
869
+ ` && this._input.next(), m += this._input.next()) : f && (f === "${" && m === "$" && this._input.peek() === "{" && (m += this._input.next()), f === m && (c === "`" ? m += this._read_string_recursive("}", g, "`") : m += this._read_string_recursive("`", g, "${"), this._input.hasNext() && (m += this._input.next())));
870
+ m += n.read(), d += m;
871
+ }
872
+ return d;
873
+ }, Q.Tokenizer = O, Q.TOKEN = l, Q.positionable_operators = A.slice(), Q.line_starters = p.slice(), Q;
874
+ }
875
+ var pe;
876
+ function ri() {
877
+ if (pe)
878
+ return wt;
879
+ pe = 1;
880
+ var t = Ut().Output, i = Ne().Token, s = $e(), e = Pe().Options, a = pt().Tokenizer, r = pt().line_starters, u = pt().positionable_operators, o = pt().TOKEN;
881
+ function l(n, d) {
882
+ return d.indexOf(n) !== -1;
883
+ }
884
+ function v(n) {
885
+ return n.replace(/^\s+/g, "");
886
+ }
887
+ function x(n) {
888
+ for (var d = {}, m = 0; m < n.length; m++)
889
+ d[n[m].replace(/-/g, "_")] = n[m];
890
+ return d;
891
+ }
892
+ function b(n, d) {
893
+ return n && n.type === o.RESERVED && n.text === d;
894
+ }
895
+ function y(n, d) {
896
+ return n && n.type === o.RESERVED && l(n.text, d);
897
+ }
898
+ var A = ["case", "return", "do", "if", "throw", "else", "await", "break", "continue", "async"], N = ["before-newline", "after-newline", "preserve-newline"], $ = x(N), p = [$.before_newline, $.preserve_newline], _ = {
899
+ BlockStatement: "BlockStatement",
900
+ // 'BLOCK'
901
+ Statement: "Statement",
902
+ // 'STATEMENT'
903
+ ObjectLiteral: "ObjectLiteral",
904
+ // 'OBJECT',
905
+ ArrayLiteral: "ArrayLiteral",
906
+ //'[EXPRESSION]',
907
+ ForInitializer: "ForInitializer",
908
+ //'(FOR-EXPRESSION)',
909
+ Conditional: "Conditional",
910
+ //'(COND-EXPRESSION)',
911
+ Expression: "Expression"
912
+ //'(EXPRESSION)'
913
+ };
914
+ function h(n, d) {
915
+ d.multiline_frame || d.mode === _.ForInitializer || d.mode === _.Conditional || n.remove_indent(d.start_line_index);
916
+ }
917
+ function k(n) {
918
+ n = n.replace(s.allLineBreaks, `
919
+ `);
920
+ for (var d = [], m = n.indexOf(`
921
+ `); m !== -1; )
922
+ d.push(n.substring(0, m)), n = n.substring(m + 1), m = n.indexOf(`
923
+ `);
924
+ return n.length && d.push(n), d;
925
+ }
926
+ function O(n) {
927
+ return n === _.ArrayLiteral;
928
+ }
929
+ function S(n) {
930
+ return l(n, [_.Expression, _.ForInitializer, _.Conditional]);
931
+ }
932
+ function c(n, d) {
933
+ for (var m = 0; m < n.length; m++) {
934
+ var R = n[m].trim();
935
+ if (R.charAt(0) !== d)
936
+ return !1;
937
+ }
938
+ return !0;
939
+ }
940
+ function g(n, d) {
941
+ for (var m = 0, R = n.length, C; m < R; m++)
942
+ if (C = n[m], C && C.indexOf(d) !== 0)
943
+ return !1;
944
+ return !0;
945
+ }
946
+ function f(n, d) {
947
+ d = d || {}, this._source_text = n || "", this._output = null, this._tokens = null, this._last_last_text = null, this._flags = null, this._previous_flags = null, this._flag_store = null, this._options = new e(d);
948
+ }
949
+ f.prototype.create_flags = function(n, d) {
950
+ var m = 0;
951
+ n && (m = n.indentation_level, !this._output.just_added_newline() && n.line_indent_level > m && (m = n.line_indent_level));
952
+ var R = {
953
+ mode: d,
954
+ parent: n,
955
+ last_token: n ? n.last_token : new i(o.START_BLOCK, ""),
956
+ // last token text
957
+ last_word: n ? n.last_word : "",
958
+ // last TOKEN.WORD passed
959
+ declaration_statement: !1,
960
+ declaration_assignment: !1,
961
+ multiline_frame: !1,
962
+ inline_frame: !1,
963
+ if_block: !1,
964
+ else_block: !1,
965
+ class_start_block: !1,
966
+ // class A { INSIDE HERE } or class B extends C { INSIDE HERE }
967
+ do_block: !1,
968
+ do_while: !1,
969
+ import_block: !1,
970
+ in_case_statement: !1,
971
+ // switch(..){ INSIDE HERE }
972
+ in_case: !1,
973
+ // we're on the exact line with "case 0:"
974
+ case_body: !1,
975
+ // the indented case-action block
976
+ case_block: !1,
977
+ // the indented case-action block is wrapped with {}
978
+ indentation_level: m,
979
+ alignment: 0,
980
+ line_indent_level: n ? n.line_indent_level : m,
981
+ start_line_index: this._output.get_line_number(),
982
+ ternary_depth: 0
983
+ };
984
+ return R;
985
+ }, f.prototype._reset = function(n) {
986
+ var d = n.match(/^[\t ]*/)[0];
987
+ this._last_last_text = "", this._output = new t(this._options, d), this._output.raw = this._options.test_output_raw, this._flag_store = [], this.set_mode(_.BlockStatement);
988
+ var m = new a(n, this._options);
989
+ return this._tokens = m.tokenize(), n;
990
+ }, f.prototype.beautify = function() {
991
+ if (this._options.disabled)
992
+ return this._source_text;
993
+ var n, d = this._reset(this._source_text), m = this._options.eol;
994
+ this._options.eol === "auto" && (m = `
995
+ `, d && s.lineBreak.test(d || "") && (m = d.match(s.lineBreak)[0]));
996
+ for (var R = this._tokens.next(); R; )
997
+ this.handle_token(R), this._last_last_text = this._flags.last_token.text, this._flags.last_token = R, R = this._tokens.next();
998
+ return n = this._output.get_code(m), n;
999
+ }, f.prototype.handle_token = function(n, d) {
1000
+ n.type === o.START_EXPR ? this.handle_start_expr(n) : n.type === o.END_EXPR ? this.handle_end_expr(n) : n.type === o.START_BLOCK ? this.handle_start_block(n) : n.type === o.END_BLOCK ? this.handle_end_block(n) : n.type === o.WORD ? this.handle_word(n) : n.type === o.RESERVED ? this.handle_word(n) : n.type === o.SEMICOLON ? this.handle_semicolon(n) : n.type === o.STRING ? this.handle_string(n) : n.type === o.EQUALS ? this.handle_equals(n) : n.type === o.OPERATOR ? this.handle_operator(n) : n.type === o.COMMA ? this.handle_comma(n) : n.type === o.BLOCK_COMMENT ? this.handle_block_comment(n, d) : n.type === o.COMMENT ? this.handle_comment(n, d) : n.type === o.DOT ? this.handle_dot(n) : n.type === o.EOF ? this.handle_eof(n) : n.type === o.UNKNOWN ? this.handle_unknown(n, d) : this.handle_unknown(n, d);
1001
+ }, f.prototype.handle_whitespace_and_comments = function(n, d) {
1002
+ var m = n.newlines, R = this._options.keep_array_indentation && O(this._flags.mode);
1003
+ if (n.comments_before)
1004
+ for (var C = n.comments_before.next(); C; )
1005
+ this.handle_whitespace_and_comments(C, d), this.handle_token(C, d), C = n.comments_before.next();
1006
+ if (R)
1007
+ for (var P = 0; P < m; P += 1)
1008
+ this.print_newline(P > 0, d);
1009
+ else if (this._options.max_preserve_newlines && m > this._options.max_preserve_newlines && (m = this._options.max_preserve_newlines), this._options.preserve_newlines && m > 1) {
1010
+ this.print_newline(!1, d);
1011
+ for (var L = 1; L < m; L += 1)
1012
+ this.print_newline(!0, d);
1013
+ }
1014
+ };
1015
+ var T = ["async", "break", "continue", "return", "throw", "yield"];
1016
+ return f.prototype.allow_wrap_or_preserved_newline = function(n, d) {
1017
+ if (d = d === void 0 ? !1 : d, !this._output.just_added_newline()) {
1018
+ var m = this._options.preserve_newlines && n.newlines || d, R = l(this._flags.last_token.text, u) || l(n.text, u);
1019
+ if (R) {
1020
+ var C = l(this._flags.last_token.text, u) && l(this._options.operator_position, p) || l(n.text, u);
1021
+ m = m && C;
1022
+ }
1023
+ if (m)
1024
+ this.print_newline(!1, !0);
1025
+ else if (this._options.wrap_line_length) {
1026
+ if (y(this._flags.last_token, T))
1027
+ return;
1028
+ this._output.set_wrap_point();
1029
+ }
1030
+ }
1031
+ }, f.prototype.print_newline = function(n, d) {
1032
+ if (!d && this._flags.last_token.text !== ";" && this._flags.last_token.text !== "," && this._flags.last_token.text !== "=" && (this._flags.last_token.type !== o.OPERATOR || this._flags.last_token.text === "--" || this._flags.last_token.text === "++"))
1033
+ for (var m = this._tokens.peek(); this._flags.mode === _.Statement && !(this._flags.if_block && b(m, "else")) && !this._flags.do_block; )
1034
+ this.restore_mode();
1035
+ this._output.add_new_line(n) && (this._flags.multiline_frame = !0);
1036
+ }, f.prototype.print_token_line_indentation = function(n) {
1037
+ this._output.just_added_newline() && (this._options.keep_array_indentation && n.newlines && (n.text === "[" || O(this._flags.mode)) ? (this._output.current_line.set_indent(-1), this._output.current_line.push(n.whitespace_before), this._output.space_before_token = !1) : this._output.set_indent(this._flags.indentation_level, this._flags.alignment) && (this._flags.line_indent_level = this._flags.indentation_level));
1038
+ }, f.prototype.print_token = function(n) {
1039
+ if (this._output.raw) {
1040
+ this._output.add_raw_token(n);
1041
+ return;
1042
+ }
1043
+ if (this._options.comma_first && n.previous && n.previous.type === o.COMMA && this._output.just_added_newline() && this._output.previous_line.last() === ",") {
1044
+ var d = this._output.previous_line.pop();
1045
+ this._output.previous_line.is_empty() && (this._output.previous_line.push(d), this._output.trim(!0), this._output.current_line.pop(), this._output.trim()), this.print_token_line_indentation(n), this._output.add_token(","), this._output.space_before_token = !0;
1046
+ }
1047
+ this.print_token_line_indentation(n), this._output.non_breaking_space = !0, this._output.add_token(n.text), this._output.previous_token_wrapped && (this._flags.multiline_frame = !0);
1048
+ }, f.prototype.indent = function() {
1049
+ this._flags.indentation_level += 1, this._output.set_indent(this._flags.indentation_level, this._flags.alignment);
1050
+ }, f.prototype.deindent = function() {
1051
+ this._flags.indentation_level > 0 && (!this._flags.parent || this._flags.indentation_level > this._flags.parent.indentation_level) && (this._flags.indentation_level -= 1, this._output.set_indent(this._flags.indentation_level, this._flags.alignment));
1052
+ }, f.prototype.set_mode = function(n) {
1053
+ this._flags ? (this._flag_store.push(this._flags), this._previous_flags = this._flags) : this._previous_flags = this.create_flags(null, n), this._flags = this.create_flags(this._previous_flags, n), this._output.set_indent(this._flags.indentation_level, this._flags.alignment);
1054
+ }, f.prototype.restore_mode = function() {
1055
+ this._flag_store.length > 0 && (this._previous_flags = this._flags, this._flags = this._flag_store.pop(), this._previous_flags.mode === _.Statement && h(this._output, this._previous_flags), this._output.set_indent(this._flags.indentation_level, this._flags.alignment));
1056
+ }, f.prototype.start_of_object_property = function() {
1057
+ return this._flags.parent.mode === _.ObjectLiteral && this._flags.mode === _.Statement && (this._flags.last_token.text === ":" && this._flags.ternary_depth === 0 || y(this._flags.last_token, ["get", "set"]));
1058
+ }, f.prototype.start_of_statement = function(n) {
1059
+ var d = !1;
1060
+ return d = d || y(this._flags.last_token, ["var", "let", "const"]) && n.type === o.WORD, d = d || b(this._flags.last_token, "do"), d = d || !(this._flags.parent.mode === _.ObjectLiteral && this._flags.mode === _.Statement) && y(this._flags.last_token, T) && !n.newlines, d = d || b(this._flags.last_token, "else") && !(b(n, "if") && !n.comments_before), d = d || this._flags.last_token.type === o.END_EXPR && (this._previous_flags.mode === _.ForInitializer || this._previous_flags.mode === _.Conditional), d = d || this._flags.last_token.type === o.WORD && this._flags.mode === _.BlockStatement && !this._flags.in_case && !(n.text === "--" || n.text === "++") && this._last_last_text !== "function" && n.type !== o.WORD && n.type !== o.RESERVED, d = d || this._flags.mode === _.ObjectLiteral && (this._flags.last_token.text === ":" && this._flags.ternary_depth === 0 || y(this._flags.last_token, ["get", "set"])), d ? (this.set_mode(_.Statement), this.indent(), this.handle_whitespace_and_comments(n, !0), this.start_of_object_property() || this.allow_wrap_or_preserved_newline(
1061
+ n,
1062
+ y(n, ["do", "for", "if", "while"])
1063
+ ), !0) : !1;
1064
+ }, f.prototype.handle_start_expr = function(n) {
1065
+ this.start_of_statement(n) || this.handle_whitespace_and_comments(n);
1066
+ var d = _.Expression;
1067
+ if (n.text === "[") {
1068
+ if (this._flags.last_token.type === o.WORD || this._flags.last_token.text === ")") {
1069
+ y(this._flags.last_token, r) && (this._output.space_before_token = !0), this.print_token(n), this.set_mode(d), this.indent(), this._options.space_in_paren && (this._output.space_before_token = !0);
1070
+ return;
1071
+ }
1072
+ d = _.ArrayLiteral, O(this._flags.mode) && (this._flags.last_token.text === "[" || this._flags.last_token.text === "," && (this._last_last_text === "]" || this._last_last_text === "}")) && (this._options.keep_array_indentation || this.print_newline()), l(this._flags.last_token.type, [o.START_EXPR, o.END_EXPR, o.WORD, o.OPERATOR, o.DOT]) || (this._output.space_before_token = !0);
1073
+ } else {
1074
+ if (this._flags.last_token.type === o.RESERVED)
1075
+ this._flags.last_token.text === "for" ? (this._output.space_before_token = this._options.space_before_conditional, d = _.ForInitializer) : l(this._flags.last_token.text, ["if", "while", "switch"]) ? (this._output.space_before_token = this._options.space_before_conditional, d = _.Conditional) : l(this._flags.last_word, ["await", "async"]) ? this._output.space_before_token = !0 : this._flags.last_token.text === "import" && n.whitespace_before === "" ? this._output.space_before_token = !1 : (l(this._flags.last_token.text, r) || this._flags.last_token.text === "catch") && (this._output.space_before_token = !0);
1076
+ else if (this._flags.last_token.type === o.EQUALS || this._flags.last_token.type === o.OPERATOR)
1077
+ this.start_of_object_property() || this.allow_wrap_or_preserved_newline(n);
1078
+ else if (this._flags.last_token.type === o.WORD) {
1079
+ this._output.space_before_token = !1;
1080
+ var m = this._tokens.peek(-3);
1081
+ if (this._options.space_after_named_function && m) {
1082
+ var R = this._tokens.peek(-4);
1083
+ y(m, ["async", "function"]) || m.text === "*" && y(R, ["async", "function"]) ? this._output.space_before_token = !0 : this._flags.mode === _.ObjectLiteral ? (m.text === "{" || m.text === "," || m.text === "*" && (R.text === "{" || R.text === ",")) && (this._output.space_before_token = !0) : this._flags.parent && this._flags.parent.class_start_block && (this._output.space_before_token = !0);
1084
+ }
1085
+ } else
1086
+ this.allow_wrap_or_preserved_newline(n);
1087
+ (this._flags.last_token.type === o.RESERVED && (this._flags.last_word === "function" || this._flags.last_word === "typeof") || this._flags.last_token.text === "*" && (l(this._last_last_text, ["function", "yield"]) || this._flags.mode === _.ObjectLiteral && l(this._last_last_text, ["{", ","]))) && (this._output.space_before_token = this._options.space_after_anon_function);
1088
+ }
1089
+ this._flags.last_token.text === ";" || this._flags.last_token.type === o.START_BLOCK ? this.print_newline() : (this._flags.last_token.type === o.END_EXPR || this._flags.last_token.type === o.START_EXPR || this._flags.last_token.type === o.END_BLOCK || this._flags.last_token.text === "." || this._flags.last_token.type === o.COMMA) && this.allow_wrap_or_preserved_newline(n, n.newlines), this.print_token(n), this.set_mode(d), this._options.space_in_paren && (this._output.space_before_token = !0), this.indent();
1090
+ }, f.prototype.handle_end_expr = function(n) {
1091
+ for (; this._flags.mode === _.Statement; )
1092
+ this.restore_mode();
1093
+ this.handle_whitespace_and_comments(n), this._flags.multiline_frame && this.allow_wrap_or_preserved_newline(
1094
+ n,
1095
+ n.text === "]" && O(this._flags.mode) && !this._options.keep_array_indentation
1096
+ ), this._options.space_in_paren && (this._flags.last_token.type === o.START_EXPR && !this._options.space_in_empty_paren ? (this._output.trim(), this._output.space_before_token = !1) : this._output.space_before_token = !0), this.deindent(), this.print_token(n), this.restore_mode(), h(this._output, this._previous_flags), this._flags.do_while && this._previous_flags.mode === _.Conditional && (this._previous_flags.mode = _.Expression, this._flags.do_block = !1, this._flags.do_while = !1);
1097
+ }, f.prototype.handle_start_block = function(n) {
1098
+ this.handle_whitespace_and_comments(n);
1099
+ var d = this._tokens.peek(), m = this._tokens.peek(1);
1100
+ this._flags.last_word === "switch" && this._flags.last_token.type === o.END_EXPR ? (this.set_mode(_.BlockStatement), this._flags.in_case_statement = !0) : this._flags.case_body ? this.set_mode(_.BlockStatement) : m && (l(m.text, [":", ","]) && l(d.type, [o.STRING, o.WORD, o.RESERVED]) || l(d.text, ["get", "set", "..."]) && l(m.type, [o.WORD, o.RESERVED])) ? l(this._last_last_text, ["class", "interface"]) && !l(m.text, [":", ","]) ? this.set_mode(_.BlockStatement) : this.set_mode(_.ObjectLiteral) : this._flags.last_token.type === o.OPERATOR && this._flags.last_token.text === "=>" ? this.set_mode(_.BlockStatement) : l(this._flags.last_token.type, [o.EQUALS, o.START_EXPR, o.COMMA, o.OPERATOR]) || y(this._flags.last_token, ["return", "throw", "import", "default"]) ? this.set_mode(_.ObjectLiteral) : this.set_mode(_.BlockStatement), this._flags.last_token && y(this._flags.last_token.previous, ["class", "extends"]) && (this._flags.class_start_block = !0);
1101
+ var R = !d.comments_before && d.text === "}", C = R && this._flags.last_word === "function" && this._flags.last_token.type === o.END_EXPR;
1102
+ if (this._options.brace_preserve_inline) {
1103
+ var P = 0, L = null;
1104
+ this._flags.inline_frame = !0;
1105
+ do
1106
+ if (P += 1, L = this._tokens.peek(P - 1), L.newlines) {
1107
+ this._flags.inline_frame = !1;
1108
+ break;
1109
+ }
1110
+ while (L.type !== o.EOF && !(L.type === o.END_BLOCK && L.opened === n));
1111
+ }
1112
+ (this._options.brace_style === "expand" || this._options.brace_style === "none" && n.newlines) && !this._flags.inline_frame ? this._flags.last_token.type !== o.OPERATOR && (C || this._flags.last_token.type === o.EQUALS || y(this._flags.last_token, A) && this._flags.last_token.text !== "else") ? this._output.space_before_token = !0 : this.print_newline(!1, !0) : (O(this._previous_flags.mode) && (this._flags.last_token.type === o.START_EXPR || this._flags.last_token.type === o.COMMA) && ((this._flags.last_token.type === o.COMMA || this._options.space_in_paren) && (this._output.space_before_token = !0), (this._flags.last_token.type === o.COMMA || this._flags.last_token.type === o.START_EXPR && this._flags.inline_frame) && (this.allow_wrap_or_preserved_newline(n), this._previous_flags.multiline_frame = this._previous_flags.multiline_frame || this._flags.multiline_frame, this._flags.multiline_frame = !1)), this._flags.last_token.type !== o.OPERATOR && this._flags.last_token.type !== o.START_EXPR && (l(this._flags.last_token.type, [o.START_BLOCK, o.SEMICOLON]) && !this._flags.inline_frame ? this.print_newline() : this._output.space_before_token = !0)), this.print_token(n), this.indent(), !R && !(this._options.brace_preserve_inline && this._flags.inline_frame) && this.print_newline();
1113
+ }, f.prototype.handle_end_block = function(n) {
1114
+ for (this.handle_whitespace_and_comments(n); this._flags.mode === _.Statement; )
1115
+ this.restore_mode();
1116
+ var d = this._flags.last_token.type === o.START_BLOCK;
1117
+ this._flags.inline_frame && !d ? this._output.space_before_token = !0 : this._options.brace_style === "expand" ? d || this.print_newline() : d || (O(this._flags.mode) && this._options.keep_array_indentation ? (this._options.keep_array_indentation = !1, this.print_newline(), this._options.keep_array_indentation = !0) : this.print_newline()), this.restore_mode(), this.print_token(n);
1118
+ }, f.prototype.handle_word = function(n) {
1119
+ if (n.type === o.RESERVED) {
1120
+ if (l(n.text, ["set", "get"]) && this._flags.mode !== _.ObjectLiteral)
1121
+ n.type = o.WORD;
1122
+ else if (n.text === "import" && l(this._tokens.peek().text, ["(", "."]))
1123
+ n.type = o.WORD;
1124
+ else if (l(n.text, ["as", "from"]) && !this._flags.import_block)
1125
+ n.type = o.WORD;
1126
+ else if (this._flags.mode === _.ObjectLiteral) {
1127
+ var d = this._tokens.peek();
1128
+ d.text === ":" && (n.type = o.WORD);
1129
+ }
1130
+ }
1131
+ if (this.start_of_statement(n) ? y(this._flags.last_token, ["var", "let", "const"]) && n.type === o.WORD && (this._flags.declaration_statement = !0) : n.newlines && !S(this._flags.mode) && (this._flags.last_token.type !== o.OPERATOR || this._flags.last_token.text === "--" || this._flags.last_token.text === "++") && this._flags.last_token.type !== o.EQUALS && (this._options.preserve_newlines || !y(this._flags.last_token, ["var", "let", "const", "set", "get"])) ? (this.handle_whitespace_and_comments(n), this.print_newline()) : this.handle_whitespace_and_comments(n), this._flags.do_block && !this._flags.do_while)
1132
+ if (b(n, "while")) {
1133
+ this._output.space_before_token = !0, this.print_token(n), this._output.space_before_token = !0, this._flags.do_while = !0;
1134
+ return;
1135
+ } else
1136
+ this.print_newline(), this._flags.do_block = !1;
1137
+ if (this._flags.if_block)
1138
+ if (!this._flags.else_block && b(n, "else"))
1139
+ this._flags.else_block = !0;
1140
+ else {
1141
+ for (; this._flags.mode === _.Statement; )
1142
+ this.restore_mode();
1143
+ this._flags.if_block = !1, this._flags.else_block = !1;
1144
+ }
1145
+ if (this._flags.in_case_statement && y(n, ["case", "default"])) {
1146
+ this.print_newline(), !this._flags.case_block && (this._flags.case_body || this._options.jslint_happy) && this.deindent(), this._flags.case_body = !1, this.print_token(n), this._flags.in_case = !0;
1147
+ return;
1148
+ }
1149
+ if ((this._flags.last_token.type === o.COMMA || this._flags.last_token.type === o.START_EXPR || this._flags.last_token.type === o.EQUALS || this._flags.last_token.type === o.OPERATOR) && (this.start_of_object_property() || this.allow_wrap_or_preserved_newline(n)), b(n, "function")) {
1150
+ (l(this._flags.last_token.text, ["}", ";"]) || this._output.just_added_newline() && !(l(this._flags.last_token.text, ["(", "[", "{", ":", "=", ","]) || this._flags.last_token.type === o.OPERATOR)) && !this._output.just_added_blankline() && !n.comments_before && (this.print_newline(), this.print_newline(!0)), this._flags.last_token.type === o.RESERVED || this._flags.last_token.type === o.WORD ? y(this._flags.last_token, ["get", "set", "new", "export"]) || y(this._flags.last_token, T) ? this._output.space_before_token = !0 : b(this._flags.last_token, "default") && this._last_last_text === "export" ? this._output.space_before_token = !0 : this._flags.last_token.text === "declare" ? this._output.space_before_token = !0 : this.print_newline() : this._flags.last_token.type === o.OPERATOR || this._flags.last_token.text === "=" ? this._output.space_before_token = !0 : !this._flags.multiline_frame && (S(this._flags.mode) || O(this._flags.mode)) || this.print_newline(), this.print_token(n), this._flags.last_word = n.text;
1151
+ return;
1152
+ }
1153
+ var m = "NONE";
1154
+ if (this._flags.last_token.type === o.END_BLOCK ? this._previous_flags.inline_frame ? m = "SPACE" : y(n, ["else", "catch", "finally", "from"]) ? this._options.brace_style === "expand" || this._options.brace_style === "end-expand" || this._options.brace_style === "none" && n.newlines ? m = "NEWLINE" : (m = "SPACE", this._output.space_before_token = !0) : m = "NEWLINE" : this._flags.last_token.type === o.SEMICOLON && this._flags.mode === _.BlockStatement ? m = "NEWLINE" : this._flags.last_token.type === o.SEMICOLON && S(this._flags.mode) ? m = "SPACE" : this._flags.last_token.type === o.STRING ? m = "NEWLINE" : this._flags.last_token.type === o.RESERVED || this._flags.last_token.type === o.WORD || this._flags.last_token.text === "*" && (l(this._last_last_text, ["function", "yield"]) || this._flags.mode === _.ObjectLiteral && l(this._last_last_text, ["{", ","])) ? m = "SPACE" : this._flags.last_token.type === o.START_BLOCK ? this._flags.inline_frame ? m = "SPACE" : m = "NEWLINE" : this._flags.last_token.type === o.END_EXPR && (this._output.space_before_token = !0, m = "NEWLINE"), y(n, r) && this._flags.last_token.text !== ")" && (this._flags.inline_frame || this._flags.last_token.text === "else" || this._flags.last_token.text === "export" ? m = "SPACE" : m = "NEWLINE"), y(n, ["else", "catch", "finally"]))
1155
+ if ((!(this._flags.last_token.type === o.END_BLOCK && this._previous_flags.mode === _.BlockStatement) || this._options.brace_style === "expand" || this._options.brace_style === "end-expand" || this._options.brace_style === "none" && n.newlines) && !this._flags.inline_frame)
1156
+ this.print_newline();
1157
+ else {
1158
+ this._output.trim(!0);
1159
+ var R = this._output.current_line;
1160
+ R.last() !== "}" && this.print_newline(), this._output.space_before_token = !0;
1161
+ }
1162
+ else
1163
+ m === "NEWLINE" ? y(this._flags.last_token, A) ? this._output.space_before_token = !0 : this._flags.last_token.text === "declare" && y(n, ["var", "let", "const"]) ? this._output.space_before_token = !0 : this._flags.last_token.type !== o.END_EXPR ? (this._flags.last_token.type !== o.START_EXPR || !y(n, ["var", "let", "const"])) && this._flags.last_token.text !== ":" && (b(n, "if") && b(n.previous, "else") ? this._output.space_before_token = !0 : this.print_newline()) : y(n, r) && this._flags.last_token.text !== ")" && this.print_newline() : this._flags.multiline_frame && O(this._flags.mode) && this._flags.last_token.text === "," && this._last_last_text === "}" ? this.print_newline() : m === "SPACE" && (this._output.space_before_token = !0);
1164
+ n.previous && (n.previous.type === o.WORD || n.previous.type === o.RESERVED) && (this._output.space_before_token = !0), this.print_token(n), this._flags.last_word = n.text, n.type === o.RESERVED && (n.text === "do" ? this._flags.do_block = !0 : n.text === "if" ? this._flags.if_block = !0 : n.text === "import" ? this._flags.import_block = !0 : this._flags.import_block && b(n, "from") && (this._flags.import_block = !1));
1165
+ }, f.prototype.handle_semicolon = function(n) {
1166
+ this.start_of_statement(n) ? this._output.space_before_token = !1 : this.handle_whitespace_and_comments(n);
1167
+ for (var d = this._tokens.peek(); this._flags.mode === _.Statement && !(this._flags.if_block && b(d, "else")) && !this._flags.do_block; )
1168
+ this.restore_mode();
1169
+ this._flags.import_block && (this._flags.import_block = !1), this.print_token(n);
1170
+ }, f.prototype.handle_string = function(n) {
1171
+ n.text.startsWith("`") && n.newlines === 0 && n.whitespace_before === "" && (n.previous.text === ")" || this._flags.last_token.type === o.WORD) || (this.start_of_statement(n) ? this._output.space_before_token = !0 : (this.handle_whitespace_and_comments(n), this._flags.last_token.type === o.RESERVED || this._flags.last_token.type === o.WORD || this._flags.inline_frame ? this._output.space_before_token = !0 : this._flags.last_token.type === o.COMMA || this._flags.last_token.type === o.START_EXPR || this._flags.last_token.type === o.EQUALS || this._flags.last_token.type === o.OPERATOR ? this.start_of_object_property() || this.allow_wrap_or_preserved_newline(n) : n.text.startsWith("`") && this._flags.last_token.type === o.END_EXPR && (n.previous.text === "]" || n.previous.text === ")") && n.newlines === 0 ? this._output.space_before_token = !0 : this.print_newline())), this.print_token(n);
1172
+ }, f.prototype.handle_equals = function(n) {
1173
+ this.start_of_statement(n) || this.handle_whitespace_and_comments(n), this._flags.declaration_statement && (this._flags.declaration_assignment = !0), this._output.space_before_token = !0, this.print_token(n), this._output.space_before_token = !0;
1174
+ }, f.prototype.handle_comma = function(n) {
1175
+ this.handle_whitespace_and_comments(n, !0), this.print_token(n), this._output.space_before_token = !0, this._flags.declaration_statement ? (S(this._flags.parent.mode) && (this._flags.declaration_assignment = !1), this._flags.declaration_assignment ? (this._flags.declaration_assignment = !1, this.print_newline(!1, !0)) : this._options.comma_first && this.allow_wrap_or_preserved_newline(n)) : this._flags.mode === _.ObjectLiteral || this._flags.mode === _.Statement && this._flags.parent.mode === _.ObjectLiteral ? (this._flags.mode === _.Statement && this.restore_mode(), this._flags.inline_frame || this.print_newline()) : this._options.comma_first && this.allow_wrap_or_preserved_newline(n);
1176
+ }, f.prototype.handle_operator = function(n) {
1177
+ var d = n.text === "*" && (y(this._flags.last_token, ["function", "yield"]) || l(this._flags.last_token.type, [o.START_BLOCK, o.COMMA, o.END_BLOCK, o.SEMICOLON])), m = l(n.text, ["-", "+"]) && (l(this._flags.last_token.type, [o.START_BLOCK, o.START_EXPR, o.EQUALS, o.OPERATOR]) || l(this._flags.last_token.text, r) || this._flags.last_token.text === ",");
1178
+ if (!this.start_of_statement(n)) {
1179
+ var R = !d;
1180
+ this.handle_whitespace_and_comments(n, R);
1181
+ }
1182
+ if (n.text === "*" && this._flags.last_token.type === o.DOT) {
1183
+ this.print_token(n);
1184
+ return;
1185
+ }
1186
+ if (n.text === "::") {
1187
+ this.print_token(n);
1188
+ return;
1189
+ }
1190
+ if (this._flags.last_token.type === o.OPERATOR && l(this._options.operator_position, p) && this.allow_wrap_or_preserved_newline(n), n.text === ":" && this._flags.in_case) {
1191
+ this.print_token(n), this._flags.in_case = !1, this._flags.case_body = !0, this._tokens.peek().type !== o.START_BLOCK ? (this.indent(), this.print_newline(), this._flags.case_block = !1) : (this._flags.case_block = !0, this._output.space_before_token = !0);
1192
+ return;
1193
+ }
1194
+ var C = !0, P = !0, L = !1;
1195
+ if (n.text === ":" ? this._flags.ternary_depth === 0 ? C = !1 : (this._flags.ternary_depth -= 1, L = !0) : n.text === "?" && (this._flags.ternary_depth += 1), !m && !d && this._options.preserve_newlines && l(n.text, u)) {
1196
+ var z = n.text === ":", lt = z && L, xt = z && !L;
1197
+ switch (this._options.operator_position) {
1198
+ case $.before_newline:
1199
+ this._output.space_before_token = !xt, this.print_token(n), (!z || lt) && this.allow_wrap_or_preserved_newline(n), this._output.space_before_token = !0;
1200
+ return;
1201
+ case $.after_newline:
1202
+ this._output.space_before_token = !0, !z || lt ? this._tokens.peek().newlines ? this.print_newline(!1, !0) : this.allow_wrap_or_preserved_newline(n) : this._output.space_before_token = !1, this.print_token(n), this._output.space_before_token = !0;
1203
+ return;
1204
+ case $.preserve_newline:
1205
+ xt || this.allow_wrap_or_preserved_newline(n), C = !(this._output.just_added_newline() || xt), this._output.space_before_token = C, this.print_token(n), this._output.space_before_token = !0;
1206
+ return;
1207
+ }
1208
+ }
1209
+ if (d) {
1210
+ this.allow_wrap_or_preserved_newline(n), C = !1;
1211
+ var Gt = this._tokens.peek();
1212
+ P = Gt && l(Gt.type, [o.WORD, o.RESERVED]);
1213
+ } else if (n.text === "...")
1214
+ this.allow_wrap_or_preserved_newline(n), C = this._flags.last_token.type === o.START_BLOCK, P = !1;
1215
+ else if (l(n.text, ["--", "++", "!", "~"]) || m) {
1216
+ if ((this._flags.last_token.type === o.COMMA || this._flags.last_token.type === o.START_EXPR) && this.allow_wrap_or_preserved_newline(n), C = !1, P = !1, n.newlines && (n.text === "--" || n.text === "++" || n.text === "~")) {
1217
+ var Qt = y(this._flags.last_token, A) && n.newlines;
1218
+ Qt && (this._previous_flags.if_block || this._previous_flags.else_block) && this.restore_mode(), this.print_newline(Qt, !0);
1219
+ }
1220
+ this._flags.last_token.text === ";" && S(this._flags.mode) && (C = !0), this._flags.last_token.type === o.RESERVED ? C = !0 : this._flags.last_token.type === o.END_EXPR ? C = !(this._flags.last_token.text === "]" && (n.text === "--" || n.text === "++")) : this._flags.last_token.type === o.OPERATOR && (C = l(n.text, ["--", "-", "++", "+"]) && l(this._flags.last_token.text, ["--", "-", "++", "+"]), l(n.text, ["+", "-"]) && l(this._flags.last_token.text, ["--", "++"]) && (P = !0)), (this._flags.mode === _.BlockStatement && !this._flags.inline_frame || this._flags.mode === _.Statement) && (this._flags.last_token.text === "{" || this._flags.last_token.text === ";") && this.print_newline();
1221
+ }
1222
+ this._output.space_before_token = this._output.space_before_token || C, this.print_token(n), this._output.space_before_token = P;
1223
+ }, f.prototype.handle_block_comment = function(n, d) {
1224
+ if (this._output.raw) {
1225
+ this._output.add_raw_token(n), n.directives && n.directives.preserve === "end" && (this._output.raw = this._options.test_output_raw);
1226
+ return;
1227
+ }
1228
+ if (n.directives) {
1229
+ this.print_newline(!1, d), this.print_token(n), n.directives.preserve === "start" && (this._output.raw = !0), this.print_newline(!1, !0);
1230
+ return;
1231
+ }
1232
+ if (!s.newline.test(n.text) && !n.newlines) {
1233
+ this._output.space_before_token = !0, this.print_token(n), this._output.space_before_token = !0;
1234
+ return;
1235
+ } else
1236
+ this.print_block_commment(n, d);
1237
+ }, f.prototype.print_block_commment = function(n, d) {
1238
+ var m = k(n.text), R, C = !1, P = !1, L = n.whitespace_before, z = L.length;
1239
+ if (this.print_newline(!1, d), this.print_token_line_indentation(n), this._output.add_token(m[0]), this.print_newline(!1, d), m.length > 1) {
1240
+ for (m = m.slice(1), C = c(m, "*"), P = g(m, L), C && (this._flags.alignment = 1), R = 0; R < m.length; R++)
1241
+ C ? (this.print_token_line_indentation(n), this._output.add_token(v(m[R]))) : P && m[R] ? (this.print_token_line_indentation(n), this._output.add_token(m[R].substring(z))) : (this._output.current_line.set_indent(-1), this._output.add_token(m[R])), this.print_newline(!1, d);
1242
+ this._flags.alignment = 0;
1243
+ }
1244
+ }, f.prototype.handle_comment = function(n, d) {
1245
+ n.newlines ? this.print_newline(!1, d) : this._output.trim(!0), this._output.space_before_token = !0, this.print_token(n), this.print_newline(!1, d);
1246
+ }, f.prototype.handle_dot = function(n) {
1247
+ this.start_of_statement(n) || this.handle_whitespace_and_comments(n, !0), this._flags.last_token.text.match("^[0-9]+$") && (this._output.space_before_token = !0), y(this._flags.last_token, A) ? this._output.space_before_token = !1 : this.allow_wrap_or_preserved_newline(
1248
+ n,
1249
+ this._flags.last_token.text === ")" && this._options.break_chained_methods
1250
+ ), this._options.unindent_chained_methods && this._output.just_added_newline() && this.deindent(), this.print_token(n);
1251
+ }, f.prototype.handle_unknown = function(n, d) {
1252
+ this.print_token(n), n.text[n.text.length - 1] === `
1253
+ ` && this.print_newline(!1, d);
1254
+ }, f.prototype.handle_eof = function(n) {
1255
+ for (; this._flags.mode === _.Statement; )
1256
+ this.restore_mode();
1257
+ this.handle_whitespace_and_comments(n);
1258
+ }, wt.Beautifier = f, wt;
1259
+ }
1260
+ var he;
1261
+ function oi() {
1262
+ if (he)
1263
+ return st;
1264
+ he = 1;
1265
+ var t = ri().Beautifier, i = Pe().Options;
1266
+ function s(e, a) {
1267
+ var r = new t(e, a);
1268
+ return r.beautify();
1269
+ }
1270
+ return ni.exports = s, st.defaultOptions = function() {
1271
+ return new i();
1272
+ }, st;
1273
+ }
1274
+ var nt = {}, li = {
1275
+ get exports() {
1276
+ return nt;
1277
+ },
1278
+ set exports(t) {
1279
+ nt = t;
1280
+ }
1281
+ }, Pt = {}, jt = {}, fe;
1282
+ function Le() {
1283
+ if (fe)
1284
+ return jt;
1285
+ fe = 1;
1286
+ var t = zt().Options;
1287
+ function i(s) {
1288
+ t.call(this, s, "css"), this.selector_separator_newline = this._get_boolean("selector_separator_newline", !0), this.newline_between_rules = this._get_boolean("newline_between_rules", !0);
1289
+ var e = this._get_boolean("space_around_selector_separator");
1290
+ this.space_around_combinator = this._get_boolean("space_around_combinator") || e;
1291
+ var a = this._get_selection_list("brace_style", ["collapse", "expand", "end-expand", "none", "preserve-inline"]);
1292
+ this.brace_style = "collapse";
1293
+ for (var r = 0; r < a.length; r++)
1294
+ a[r] !== "expand" ? this.brace_style = "collapse" : this.brace_style = a[r];
1295
+ }
1296
+ return i.prototype = new t(), jt.Options = i, jt;
1297
+ }
1298
+ var ce;
1299
+ function ui() {
1300
+ if (ce)
1301
+ return Pt;
1302
+ ce = 1;
1303
+ var t = Le().Options, i = Ut().Output, s = qt().InputScanner, e = Vt().Directives, a = new e(/\/\*/, /\*\//), r = /\r\n|[\r\n]/, u = /\r\n|[\r\n]/g, o = /\s/, l = /(?:\s|\n)+/g, v = /\/\*(?:[\s\S]*?)((?:\*\/)|$)/g, x = /\/\/(?:[^\n\r\u2028\u2029]*)/g;
1304
+ function b(y, A) {
1305
+ this._source_text = y || "", this._options = new t(A), this._ch = null, this._input = null, this.NESTED_AT_RULE = {
1306
+ page: !0,
1307
+ "font-face": !0,
1308
+ keyframes: !0,
1309
+ // also in CONDITIONAL_GROUP_RULE below
1310
+ media: !0,
1311
+ supports: !0,
1312
+ document: !0
1313
+ }, this.CONDITIONAL_GROUP_RULE = {
1314
+ media: !0,
1315
+ supports: !0,
1316
+ document: !0
1317
+ }, this.NON_SEMICOLON_NEWLINE_PROPERTY = [
1318
+ "grid-template-areas",
1319
+ "grid-template"
1320
+ ];
1321
+ }
1322
+ return b.prototype.eatString = function(y) {
1323
+ var A = "";
1324
+ for (this._ch = this._input.next(); this._ch; ) {
1325
+ if (A += this._ch, this._ch === "\\")
1326
+ A += this._input.next();
1327
+ else if (y.indexOf(this._ch) !== -1 || this._ch === `
1328
+ `)
1329
+ break;
1330
+ this._ch = this._input.next();
1331
+ }
1332
+ return A;
1333
+ }, b.prototype.eatWhitespace = function(y) {
1334
+ for (var A = o.test(this._input.peek()), N = 0; o.test(this._input.peek()); )
1335
+ this._ch = this._input.next(), y && this._ch === `
1336
+ ` && (N === 0 || N < this._options.max_preserve_newlines) && (N++, this._output.add_new_line(!0));
1337
+ return A;
1338
+ }, b.prototype.foundNestedPseudoClass = function() {
1339
+ for (var y = 0, A = 1, N = this._input.peek(A); N; ) {
1340
+ if (N === "{")
1341
+ return !0;
1342
+ if (N === "(")
1343
+ y += 1;
1344
+ else if (N === ")") {
1345
+ if (y === 0)
1346
+ return !1;
1347
+ y -= 1;
1348
+ } else if (N === ";" || N === "}")
1349
+ return !1;
1350
+ A++, N = this._input.peek(A);
1351
+ }
1352
+ return !1;
1353
+ }, b.prototype.print_string = function(y) {
1354
+ this._output.set_indent(this._indentLevel), this._output.non_breaking_space = !0, this._output.add_token(y);
1355
+ }, b.prototype.preserveSingleSpace = function(y) {
1356
+ y && (this._output.space_before_token = !0);
1357
+ }, b.prototype.indent = function() {
1358
+ this._indentLevel++;
1359
+ }, b.prototype.outdent = function() {
1360
+ this._indentLevel > 0 && this._indentLevel--;
1361
+ }, b.prototype.beautify = function() {
1362
+ if (this._options.disabled)
1363
+ return this._source_text;
1364
+ var y = this._source_text, A = this._options.eol;
1365
+ A === "auto" && (A = `
1366
+ `, y && r.test(y || "") && (A = y.match(r)[0])), y = y.replace(u, `
1367
+ `);
1368
+ var N = y.match(/^[\t ]*/)[0];
1369
+ this._output = new i(this._options, N), this._input = new s(y), this._indentLevel = 0, this._nestedLevel = 0, this._ch = null;
1370
+ for (var $ = 0, p = !1, _ = !1, h = !1, k = !1, O = !1, S = this._ch, c = !1, g, f, T; g = this._input.read(l), f = g !== "", T = S, this._ch = this._input.next(), this._ch === "\\" && this._input.hasNext() && (this._ch += this._input.next()), S = this._ch, this._ch; )
1371
+ if (this._ch === "/" && this._input.peek() === "*") {
1372
+ this._output.add_new_line(), this._input.back();
1373
+ var n = this._input.read(v), d = a.get_directives(n);
1374
+ d && d.ignore === "start" && (n += a.readIgnored(this._input)), this.print_string(n), this.eatWhitespace(!0), this._output.add_new_line();
1375
+ } else if (this._ch === "/" && this._input.peek() === "/")
1376
+ this._output.space_before_token = !0, this._input.back(), this.print_string(this._input.read(x)), this.eatWhitespace(!0);
1377
+ else if (this._ch === "$") {
1378
+ this.preserveSingleSpace(f), this.print_string(this._ch);
1379
+ var m = this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);
1380
+ m.match(/[ :]$/) && (m = this.eatString(": ").replace(/\s$/, ""), this.print_string(m), this._output.space_before_token = !0), m = m.replace(/\s$/, ""), $ === 0 && m.indexOf(":") !== -1 && (_ = !0, this.indent());
1381
+ } else if (this._ch === "@")
1382
+ if (this.preserveSingleSpace(f), this._input.peek() === "{")
1383
+ this.print_string(this._ch + this.eatString("}"));
1384
+ else {
1385
+ this.print_string(this._ch);
1386
+ var R = this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);
1387
+ R.match(/[ :]$/) && (R = this.eatString(": ").replace(/\s$/, ""), this.print_string(R), this._output.space_before_token = !0), R = R.replace(/\s$/, ""), $ === 0 && R.indexOf(":") !== -1 ? (_ = !0, this.indent()) : R in this.NESTED_AT_RULE ? (this._nestedLevel += 1, R in this.CONDITIONAL_GROUP_RULE && (h = !0)) : $ === 0 && !_ && (k = !0);
1388
+ }
1389
+ else if (this._ch === "#" && this._input.peek() === "{")
1390
+ this.preserveSingleSpace(f), this.print_string(this._ch + this.eatString("}"));
1391
+ else if (this._ch === "{")
1392
+ _ && (_ = !1, this.outdent()), k = !1, h ? (h = !1, p = this._indentLevel >= this._nestedLevel) : p = this._indentLevel >= this._nestedLevel - 1, this._options.newline_between_rules && p && this._output.previous_line && this._output.previous_line.item(-1) !== "{" && this._output.ensure_empty_line_above("/", ","), this._output.space_before_token = !0, this._options.brace_style === "expand" ? (this._output.add_new_line(), this.print_string(this._ch), this.indent(), this._output.set_indent(this._indentLevel)) : (T === "(" ? this._output.space_before_token = !1 : T !== "," && this.indent(), this.print_string(this._ch)), this.eatWhitespace(!0), this._output.add_new_line();
1393
+ else if (this._ch === "}")
1394
+ this.outdent(), this._output.add_new_line(), T === "{" && this._output.trim(!0), _ && (this.outdent(), _ = !1), this.print_string(this._ch), p = !1, this._nestedLevel && this._nestedLevel--, this.eatWhitespace(!0), this._output.add_new_line(), this._options.newline_between_rules && !this._output.just_added_blankline() && this._input.peek() !== "}" && this._output.add_new_line(!0), this._input.peek() === ")" && (this._output.trim(!0), this._options.brace_style === "expand" && this._output.add_new_line(!0));
1395
+ else if (this._ch === ":") {
1396
+ for (var C = 0; C < this.NON_SEMICOLON_NEWLINE_PROPERTY.length; C++)
1397
+ if (this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[C])) {
1398
+ c = !0;
1399
+ break;
1400
+ }
1401
+ (p || h) && !(this._input.lookBack("&") || this.foundNestedPseudoClass()) && !this._input.lookBack("(") && !k && $ === 0 ? (this.print_string(":"), _ || (_ = !0, this._output.space_before_token = !0, this.eatWhitespace(!0), this.indent())) : (this._input.lookBack(" ") && (this._output.space_before_token = !0), this._input.peek() === ":" ? (this._ch = this._input.next(), this.print_string("::")) : this.print_string(":"));
1402
+ } else if (this._ch === '"' || this._ch === "'") {
1403
+ var P = T === '"' || T === "'";
1404
+ this.preserveSingleSpace(P || f), this.print_string(this._ch + this.eatString(this._ch)), this.eatWhitespace(!0);
1405
+ } else if (this._ch === ";")
1406
+ c = !1, $ === 0 ? (_ && (this.outdent(), _ = !1), k = !1, this.print_string(this._ch), this.eatWhitespace(!0), this._input.peek() !== "/" && this._output.add_new_line()) : (this.print_string(this._ch), this.eatWhitespace(!0), this._output.space_before_token = !0);
1407
+ else if (this._ch === "(")
1408
+ if (this._input.lookBack("url"))
1409
+ this.print_string(this._ch), this.eatWhitespace(), $++, this.indent(), this._ch = this._input.next(), this._ch === ")" || this._ch === '"' || this._ch === "'" ? this._input.back() : this._ch && (this.print_string(this._ch + this.eatString(")")), $ && ($--, this.outdent()));
1410
+ else {
1411
+ var L = !1;
1412
+ this._input.lookBack("with") && (L = !0), this.preserveSingleSpace(f || L), this.print_string(this._ch), _ && T === "$" && this._options.selector_separator_newline ? (this._output.add_new_line(), O = !0) : (this.eatWhitespace(), $++, this.indent());
1413
+ }
1414
+ else if (this._ch === ")")
1415
+ $ && ($--, this.outdent()), O && this._input.peek() === ";" && this._options.selector_separator_newline && (O = !1, this.outdent(), this._output.add_new_line()), this.print_string(this._ch);
1416
+ else if (this._ch === ",")
1417
+ this.print_string(this._ch), this.eatWhitespace(!0), this._options.selector_separator_newline && (!_ || O) && $ === 0 && !k ? this._output.add_new_line() : this._output.space_before_token = !0;
1418
+ else if ((this._ch === ">" || this._ch === "+" || this._ch === "~") && !_ && $ === 0)
1419
+ this._options.space_around_combinator ? (this._output.space_before_token = !0, this.print_string(this._ch), this._output.space_before_token = !0) : (this.print_string(this._ch), this.eatWhitespace(), this._ch && o.test(this._ch) && (this._ch = ""));
1420
+ else if (this._ch === "]")
1421
+ this.print_string(this._ch);
1422
+ else if (this._ch === "[")
1423
+ this.preserveSingleSpace(f), this.print_string(this._ch);
1424
+ else if (this._ch === "=")
1425
+ this.eatWhitespace(), this.print_string("="), o.test(this._ch) && (this._ch = "");
1426
+ else if (this._ch === "!" && !this._input.lookBack("\\"))
1427
+ this._output.space_before_token = !0, this.print_string(this._ch);
1428
+ else {
1429
+ var z = T === '"' || T === "'";
1430
+ this.preserveSingleSpace(z || f), this.print_string(this._ch), !this._output.just_added_newline() && this._input.peek() === `
1431
+ ` && c && this._output.add_new_line();
1432
+ }
1433
+ var lt = this._output.get_code(A);
1434
+ return lt;
1435
+ }, Pt.Beautifier = b, Pt;
1436
+ }
1437
+ var de;
1438
+ function pi() {
1439
+ if (de)
1440
+ return nt;
1441
+ de = 1;
1442
+ var t = ui().Beautifier, i = Le().Options;
1443
+ function s(e, a) {
1444
+ var r = new t(e, a);
1445
+ return r.beautify();
1446
+ }
1447
+ return li.exports = s, nt.defaultOptions = function() {
1448
+ return new i();
1449
+ }, nt;
1450
+ }
1451
+ var at = {}, hi = {
1452
+ get exports() {
1453
+ return at;
1454
+ },
1455
+ set exports(t) {
1456
+ at = t;
1457
+ }
1458
+ }, Lt = {}, Dt = {}, me;
1459
+ function De() {
1460
+ if (me)
1461
+ return Dt;
1462
+ me = 1;
1463
+ var t = zt().Options;
1464
+ function i(s) {
1465
+ t.call(this, s, "html"), this.templating.length === 1 && this.templating[0] === "auto" && (this.templating = ["django", "erb", "handlebars", "php"]), this.indent_inner_html = this._get_boolean("indent_inner_html"), this.indent_body_inner_html = this._get_boolean("indent_body_inner_html", !0), this.indent_head_inner_html = this._get_boolean("indent_head_inner_html", !0), this.indent_handlebars = this._get_boolean("indent_handlebars", !0), this.wrap_attributes = this._get_selection(
1466
+ "wrap_attributes",
1467
+ ["auto", "force", "force-aligned", "force-expand-multiline", "aligned-multiple", "preserve", "preserve-aligned"]
1468
+ ), this.wrap_attributes_min_attrs = this._get_number("wrap_attributes_min_attrs", 2), this.wrap_attributes_indent_size = this._get_number("wrap_attributes_indent_size", this.indent_size), this.extra_liners = this._get_array("extra_liners", ["head", "body", "/html"]), this.inline = this._get_array("inline", [
1469
+ "a",
1470
+ "abbr",
1471
+ "area",
1472
+ "audio",
1473
+ "b",
1474
+ "bdi",
1475
+ "bdo",
1476
+ "br",
1477
+ "button",
1478
+ "canvas",
1479
+ "cite",
1480
+ "code",
1481
+ "data",
1482
+ "datalist",
1483
+ "del",
1484
+ "dfn",
1485
+ "em",
1486
+ "embed",
1487
+ "i",
1488
+ "iframe",
1489
+ "img",
1490
+ "input",
1491
+ "ins",
1492
+ "kbd",
1493
+ "keygen",
1494
+ "label",
1495
+ "map",
1496
+ "mark",
1497
+ "math",
1498
+ "meter",
1499
+ "noscript",
1500
+ "object",
1501
+ "output",
1502
+ "progress",
1503
+ "q",
1504
+ "ruby",
1505
+ "s",
1506
+ "samp",
1507
+ /* 'script', */
1508
+ "select",
1509
+ "small",
1510
+ "span",
1511
+ "strong",
1512
+ "sub",
1513
+ "sup",
1514
+ "svg",
1515
+ "template",
1516
+ "textarea",
1517
+ "time",
1518
+ "u",
1519
+ "var",
1520
+ "video",
1521
+ "wbr",
1522
+ "text",
1523
+ // obsolete inline tags
1524
+ "acronym",
1525
+ "big",
1526
+ "strike",
1527
+ "tt"
1528
+ ]), this.inline_custom_elements = this._get_boolean("inline_custom_elements", !0), this.void_elements = this._get_array("void_elements", [
1529
+ // HTLM void elements - aka self-closing tags - aka singletons
1530
+ // https://www.w3.org/html/wg/drafts/html/master/syntax.html#void-elements
1531
+ "area",
1532
+ "base",
1533
+ "br",
1534
+ "col",
1535
+ "embed",
1536
+ "hr",
1537
+ "img",
1538
+ "input",
1539
+ "keygen",
1540
+ "link",
1541
+ "menuitem",
1542
+ "meta",
1543
+ "param",
1544
+ "source",
1545
+ "track",
1546
+ "wbr",
1547
+ // NOTE: Optional tags are too complex for a simple list
1548
+ // they are hard coded in _do_optional_end_element
1549
+ // Doctype and xml elements
1550
+ "!doctype",
1551
+ "?xml",
1552
+ // obsolete tags
1553
+ // basefont: https://www.computerhope.com/jargon/h/html-basefont-tag.htm
1554
+ // isndex: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/isindex
1555
+ "basefont",
1556
+ "isindex"
1557
+ ]), this.unformatted = this._get_array("unformatted", []), this.content_unformatted = this._get_array("content_unformatted", [
1558
+ "pre",
1559
+ "textarea"
1560
+ ]), this.unformatted_content_delimiter = this._get_characters("unformatted_content_delimiter"), this.indent_scripts = this._get_selection("indent_scripts", ["normal", "keep", "separate"]);
1561
+ }
1562
+ return i.prototype = new t(), Dt.Options = i, Dt;
1563
+ }
1564
+ var ht = {}, ge;
1565
+ function be() {
1566
+ if (ge)
1567
+ return ht;
1568
+ ge = 1;
1569
+ var t = dt().Tokenizer, i = dt().TOKEN, s = Vt().Directives, e = je().TemplatablePattern, a = gt().Pattern, r = {
1570
+ TAG_OPEN: "TK_TAG_OPEN",
1571
+ TAG_CLOSE: "TK_TAG_CLOSE",
1572
+ ATTRIBUTE: "TK_ATTRIBUTE",
1573
+ EQUALS: "TK_EQUALS",
1574
+ VALUE: "TK_VALUE",
1575
+ COMMENT: "TK_COMMENT",
1576
+ TEXT: "TK_TEXT",
1577
+ UNKNOWN: "TK_UNKNOWN",
1578
+ START: i.START,
1579
+ RAW: i.RAW,
1580
+ EOF: i.EOF
1581
+ }, u = new s(/<\!--/, /-->/), o = function(l, v) {
1582
+ t.call(this, l, v), this._current_tag_name = "";
1583
+ var x = new e(this._input).read_options(this._options), b = new a(this._input);
1584
+ if (this.__patterns = {
1585
+ word: x.until(/[\n\r\t <]/),
1586
+ single_quote: x.until_after(/'/),
1587
+ double_quote: x.until_after(/"/),
1588
+ attribute: x.until(/[\n\r\t =>]|\/>/),
1589
+ element_name: x.until(/[\n\r\t >\/]/),
1590
+ handlebars_comment: b.starting_with(/{{!--/).until_after(/--}}/),
1591
+ handlebars: b.starting_with(/{{/).until_after(/}}/),
1592
+ handlebars_open: b.until(/[\n\r\t }]/),
1593
+ handlebars_raw_close: b.until(/}}/),
1594
+ comment: b.starting_with(/<!--/).until_after(/-->/),
1595
+ cdata: b.starting_with(/<!\[CDATA\[/).until_after(/]]>/),
1596
+ // https://en.wikipedia.org/wiki/Conditional_comment
1597
+ conditional_comment: b.starting_with(/<!\[/).until_after(/]>/),
1598
+ processing: b.starting_with(/<\?/).until_after(/\?>/)
1599
+ }, this._options.indent_handlebars && (this.__patterns.word = this.__patterns.word.exclude("handlebars")), this._unformatted_content_delimiter = null, this._options.unformatted_content_delimiter) {
1600
+ var y = this._input.get_literal_regexp(this._options.unformatted_content_delimiter);
1601
+ this.__patterns.unformatted_content_delimiter = b.matching(y).until_after(y);
1602
+ }
1603
+ };
1604
+ return o.prototype = new t(), o.prototype._is_comment = function(l) {
1605
+ return !1;
1606
+ }, o.prototype._is_opening = function(l) {
1607
+ return l.type === r.TAG_OPEN;
1608
+ }, o.prototype._is_closing = function(l, v) {
1609
+ return l.type === r.TAG_CLOSE && v && ((l.text === ">" || l.text === "/>") && v.text[0] === "<" || l.text === "}}" && v.text[0] === "{" && v.text[1] === "{");
1610
+ }, o.prototype._reset = function() {
1611
+ this._current_tag_name = "";
1612
+ }, o.prototype._get_next_token = function(l, v) {
1613
+ var x = null;
1614
+ this._readWhitespace();
1615
+ var b = this._input.peek();
1616
+ return b === null ? this._create_token(r.EOF, "") : (x = x || this._read_open_handlebars(b, v), x = x || this._read_attribute(b, l, v), x = x || this._read_close(b, v), x = x || this._read_raw_content(b, l, v), x = x || this._read_content_word(b), x = x || this._read_comment_or_cdata(b), x = x || this._read_processing(b), x = x || this._read_open(b, v), x = x || this._create_token(r.UNKNOWN, this._input.next()), x);
1617
+ }, o.prototype._read_comment_or_cdata = function(l) {
1618
+ var v = null, x = null, b = null;
1619
+ if (l === "<") {
1620
+ var y = this._input.peek(1);
1621
+ y === "!" && (x = this.__patterns.comment.read(), x ? (b = u.get_directives(x), b && b.ignore === "start" && (x += u.readIgnored(this._input))) : x = this.__patterns.cdata.read()), x && (v = this._create_token(r.COMMENT, x), v.directives = b);
1622
+ }
1623
+ return v;
1624
+ }, o.prototype._read_processing = function(l) {
1625
+ var v = null, x = null, b = null;
1626
+ if (l === "<") {
1627
+ var y = this._input.peek(1);
1628
+ (y === "!" || y === "?") && (x = this.__patterns.conditional_comment.read(), x = x || this.__patterns.processing.read()), x && (v = this._create_token(r.COMMENT, x), v.directives = b);
1629
+ }
1630
+ return v;
1631
+ }, o.prototype._read_open = function(l, v) {
1632
+ var x = null, b = null;
1633
+ return v || l === "<" && (x = this._input.next(), this._input.peek() === "/" && (x += this._input.next()), x += this.__patterns.element_name.read(), b = this._create_token(r.TAG_OPEN, x)), b;
1634
+ }, o.prototype._read_open_handlebars = function(l, v) {
1635
+ var x = null, b = null;
1636
+ return v || this._options.indent_handlebars && l === "{" && this._input.peek(1) === "{" && (this._input.peek(2) === "!" ? (x = this.__patterns.handlebars_comment.read(), x = x || this.__patterns.handlebars.read(), b = this._create_token(r.COMMENT, x)) : (x = this.__patterns.handlebars_open.read(), b = this._create_token(r.TAG_OPEN, x))), b;
1637
+ }, o.prototype._read_close = function(l, v) {
1638
+ var x = null, b = null;
1639
+ return v && (v.text[0] === "<" && (l === ">" || l === "/" && this._input.peek(1) === ">") ? (x = this._input.next(), l === "/" && (x += this._input.next()), b = this._create_token(r.TAG_CLOSE, x)) : v.text[0] === "{" && l === "}" && this._input.peek(1) === "}" && (this._input.next(), this._input.next(), b = this._create_token(r.TAG_CLOSE, "}}"))), b;
1640
+ }, o.prototype._read_attribute = function(l, v, x) {
1641
+ var b = null, y = "";
1642
+ if (x && x.text[0] === "<")
1643
+ if (l === "=")
1644
+ b = this._create_token(r.EQUALS, this._input.next());
1645
+ else if (l === '"' || l === "'") {
1646
+ var A = this._input.next();
1647
+ l === '"' ? A += this.__patterns.double_quote.read() : A += this.__patterns.single_quote.read(), b = this._create_token(r.VALUE, A);
1648
+ } else
1649
+ y = this.__patterns.attribute.read(), y && (v.type === r.EQUALS ? b = this._create_token(r.VALUE, y) : b = this._create_token(r.ATTRIBUTE, y));
1650
+ return b;
1651
+ }, o.prototype._is_content_unformatted = function(l) {
1652
+ return this._options.void_elements.indexOf(l) === -1 && (this._options.content_unformatted.indexOf(l) !== -1 || this._options.unformatted.indexOf(l) !== -1);
1653
+ }, o.prototype._read_raw_content = function(l, v, x) {
1654
+ var b = "";
1655
+ if (x && x.text[0] === "{")
1656
+ b = this.__patterns.handlebars_raw_close.read();
1657
+ else if (v.type === r.TAG_CLOSE && v.opened.text[0] === "<" && v.text[0] !== "/") {
1658
+ var y = v.opened.text.substr(1).toLowerCase();
1659
+ if (y === "script" || y === "style") {
1660
+ var A = this._read_comment_or_cdata(l);
1661
+ if (A)
1662
+ return A.type = r.TEXT, A;
1663
+ b = this._input.readUntil(new RegExp("</" + y + "[\\n\\r\\t ]*?>", "ig"));
1664
+ } else
1665
+ this._is_content_unformatted(y) && (b = this._input.readUntil(new RegExp("</" + y + "[\\n\\r\\t ]*?>", "ig")));
1666
+ }
1667
+ return b ? this._create_token(r.TEXT, b) : null;
1668
+ }, o.prototype._read_content_word = function(l) {
1669
+ var v = "";
1670
+ if (this._options.unformatted_content_delimiter && l === this._options.unformatted_content_delimiter[0] && (v = this.__patterns.unformatted_content_delimiter.read()), v || (v = this.__patterns.word.read()), v)
1671
+ return this._create_token(r.TEXT, v);
1672
+ }, ht.Tokenizer = o, ht.TOKEN = r, ht;
1673
+ }
1674
+ var ve;
1675
+ function fi() {
1676
+ if (ve)
1677
+ return Lt;
1678
+ ve = 1;
1679
+ var t = De().Options, i = Ut().Output, s = be().Tokenizer, e = be().TOKEN, a = /\r\n|[\r\n]/, r = /\r\n|[\r\n]/g, u = function(p, _) {
1680
+ this.indent_level = 0, this.alignment_size = 0, this.max_preserve_newlines = p.max_preserve_newlines, this.preserve_newlines = p.preserve_newlines, this._output = new i(p, _);
1681
+ };
1682
+ u.prototype.current_line_has_match = function(p) {
1683
+ return this._output.current_line.has_match(p);
1684
+ }, u.prototype.set_space_before_token = function(p, _) {
1685
+ this._output.space_before_token = p, this._output.non_breaking_space = _;
1686
+ }, u.prototype.set_wrap_point = function() {
1687
+ this._output.set_indent(this.indent_level, this.alignment_size), this._output.set_wrap_point();
1688
+ }, u.prototype.add_raw_token = function(p) {
1689
+ this._output.add_raw_token(p);
1690
+ }, u.prototype.print_preserved_newlines = function(p) {
1691
+ var _ = 0;
1692
+ p.type !== e.TEXT && p.previous.type !== e.TEXT && (_ = p.newlines ? 1 : 0), this.preserve_newlines && (_ = p.newlines < this.max_preserve_newlines + 1 ? p.newlines : this.max_preserve_newlines + 1);
1693
+ for (var h = 0; h < _; h++)
1694
+ this.print_newline(h > 0);
1695
+ return _ !== 0;
1696
+ }, u.prototype.traverse_whitespace = function(p) {
1697
+ return p.whitespace_before || p.newlines ? (this.print_preserved_newlines(p) || (this._output.space_before_token = !0), !0) : !1;
1698
+ }, u.prototype.previous_token_wrapped = function() {
1699
+ return this._output.previous_token_wrapped;
1700
+ }, u.prototype.print_newline = function(p) {
1701
+ this._output.add_new_line(p);
1702
+ }, u.prototype.print_token = function(p) {
1703
+ p.text && (this._output.set_indent(this.indent_level, this.alignment_size), this._output.add_token(p.text));
1704
+ }, u.prototype.indent = function() {
1705
+ this.indent_level++;
1706
+ }, u.prototype.get_full_indent = function(p) {
1707
+ return p = this.indent_level + (p || 0), p < 1 ? "" : this._output.get_indent_string(p);
1708
+ };
1709
+ var o = function(p) {
1710
+ for (var _ = null, h = p.next; h.type !== e.EOF && p.closed !== h; ) {
1711
+ if (h.type === e.ATTRIBUTE && h.text === "type") {
1712
+ h.next && h.next.type === e.EQUALS && h.next.next && h.next.next.type === e.VALUE && (_ = h.next.next.text);
1713
+ break;
1714
+ }
1715
+ h = h.next;
1716
+ }
1717
+ return _;
1718
+ }, l = function(p, _) {
1719
+ var h = null, k = null;
1720
+ return _.closed ? (p === "script" ? h = "text/javascript" : p === "style" && (h = "text/css"), h = o(_) || h, h.search("text/css") > -1 ? k = "css" : h.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/) > -1 ? k = "javascript" : h.search(/(text|application|dojo)\/(x-)?(html)/) > -1 ? k = "html" : h.search(/test\/null/) > -1 && (k = "null"), k) : null;
1721
+ };
1722
+ function v(p, _) {
1723
+ return _.indexOf(p) !== -1;
1724
+ }
1725
+ function x(p, _, h) {
1726
+ this.parent = p || null, this.tag = _ ? _.tag_name : "", this.indent_level = h || 0, this.parser_token = _ || null;
1727
+ }
1728
+ function b(p) {
1729
+ this._printer = p, this._current_frame = null;
1730
+ }
1731
+ b.prototype.get_parser_token = function() {
1732
+ return this._current_frame ? this._current_frame.parser_token : null;
1733
+ }, b.prototype.record_tag = function(p) {
1734
+ var _ = new x(this._current_frame, p, this._printer.indent_level);
1735
+ this._current_frame = _;
1736
+ }, b.prototype._try_pop_frame = function(p) {
1737
+ var _ = null;
1738
+ return p && (_ = p.parser_token, this._printer.indent_level = p.indent_level, this._current_frame = p.parent), _;
1739
+ }, b.prototype._get_frame = function(p, _) {
1740
+ for (var h = this._current_frame; h && p.indexOf(h.tag) === -1; ) {
1741
+ if (_ && _.indexOf(h.tag) !== -1) {
1742
+ h = null;
1743
+ break;
1744
+ }
1745
+ h = h.parent;
1746
+ }
1747
+ return h;
1748
+ }, b.prototype.try_pop = function(p, _) {
1749
+ var h = this._get_frame([p], _);
1750
+ return this._try_pop_frame(h);
1751
+ }, b.prototype.indent_to_tag = function(p) {
1752
+ var _ = this._get_frame(p);
1753
+ _ && (this._printer.indent_level = _.indent_level);
1754
+ };
1755
+ function y(p, _, h, k) {
1756
+ this._source_text = p || "", _ = _ || {}, this._js_beautify = h, this._css_beautify = k, this._tag_stack = null;
1757
+ var O = new t(_, "html");
1758
+ this._options = O, this._is_wrap_attributes_force = this._options.wrap_attributes.substr(0, 5) === "force", this._is_wrap_attributes_force_expand_multiline = this._options.wrap_attributes === "force-expand-multiline", this._is_wrap_attributes_force_aligned = this._options.wrap_attributes === "force-aligned", this._is_wrap_attributes_aligned_multiple = this._options.wrap_attributes === "aligned-multiple", this._is_wrap_attributes_preserve = this._options.wrap_attributes.substr(0, 8) === "preserve", this._is_wrap_attributes_preserve_aligned = this._options.wrap_attributes === "preserve-aligned";
1759
+ }
1760
+ y.prototype.beautify = function() {
1761
+ if (this._options.disabled)
1762
+ return this._source_text;
1763
+ var p = this._source_text, _ = this._options.eol;
1764
+ this._options.eol === "auto" && (_ = `
1765
+ `, p && a.test(p) && (_ = p.match(a)[0])), p = p.replace(r, `
1766
+ `);
1767
+ var h = p.match(/^[\t ]*/)[0], k = {
1768
+ text: "",
1769
+ type: ""
1770
+ }, O = new A(), S = new u(this._options, h), c = new s(p, this._options).tokenize();
1771
+ this._tag_stack = new b(S);
1772
+ for (var g = null, f = c.next(); f.type !== e.EOF; )
1773
+ f.type === e.TAG_OPEN || f.type === e.COMMENT ? (g = this._handle_tag_open(S, f, O, k, c), O = g) : f.type === e.ATTRIBUTE || f.type === e.EQUALS || f.type === e.VALUE || f.type === e.TEXT && !O.tag_complete ? g = this._handle_inside_tag(S, f, O, k) : f.type === e.TAG_CLOSE ? g = this._handle_tag_close(S, f, O) : f.type === e.TEXT ? g = this._handle_text(S, f, O) : S.add_raw_token(f), k = g, f = c.next();
1774
+ var T = S._output.get_code(_);
1775
+ return T;
1776
+ }, y.prototype._handle_tag_close = function(p, _, h) {
1777
+ var k = {
1778
+ text: _.text,
1779
+ type: _.type
1780
+ };
1781
+ return p.alignment_size = 0, h.tag_complete = !0, p.set_space_before_token(_.newlines || _.whitespace_before !== "", !0), h.is_unformatted ? p.add_raw_token(_) : (h.tag_start_char === "<" && (p.set_space_before_token(_.text[0] === "/", !0), this._is_wrap_attributes_force_expand_multiline && h.has_wrapped_attrs && p.print_newline(!1)), p.print_token(_)), h.indent_content && !(h.is_unformatted || h.is_content_unformatted) && (p.indent(), h.indent_content = !1), !h.is_inline_element && !(h.is_unformatted || h.is_content_unformatted) && p.set_wrap_point(), k;
1782
+ }, y.prototype._handle_inside_tag = function(p, _, h, k) {
1783
+ var O = h.has_wrapped_attrs, S = {
1784
+ text: _.text,
1785
+ type: _.type
1786
+ };
1787
+ return p.set_space_before_token(_.newlines || _.whitespace_before !== "", !0), h.is_unformatted ? p.add_raw_token(_) : h.tag_start_char === "{" && _.type === e.TEXT ? p.print_preserved_newlines(_) ? (_.newlines = 0, p.add_raw_token(_)) : p.print_token(_) : (_.type === e.ATTRIBUTE ? p.set_space_before_token(!0) : (_.type === e.EQUALS || _.type === e.VALUE && _.previous.type === e.EQUALS) && p.set_space_before_token(!1), _.type === e.ATTRIBUTE && h.tag_start_char === "<" && ((this._is_wrap_attributes_preserve || this._is_wrap_attributes_preserve_aligned) && (p.traverse_whitespace(_), O = O || _.newlines !== 0), this._is_wrap_attributes_force && h.attr_count >= this._options.wrap_attributes_min_attrs && (k.type !== e.TAG_OPEN || // ie. second attribute and beyond
1788
+ this._is_wrap_attributes_force_expand_multiline) && (p.print_newline(!1), O = !0)), p.print_token(_), O = O || p.previous_token_wrapped(), h.has_wrapped_attrs = O), S;
1789
+ }, y.prototype._handle_text = function(p, _, h) {
1790
+ var k = {
1791
+ text: _.text,
1792
+ type: "TK_CONTENT"
1793
+ };
1794
+ return h.custom_beautifier_name ? this._print_custom_beatifier_text(p, _, h) : h.is_unformatted || h.is_content_unformatted ? p.add_raw_token(_) : (p.traverse_whitespace(_), p.print_token(_)), k;
1795
+ }, y.prototype._print_custom_beatifier_text = function(p, _, h) {
1796
+ var k = this;
1797
+ if (_.text !== "") {
1798
+ var O = _.text, S, c = 1, g = "", f = "";
1799
+ h.custom_beautifier_name === "javascript" && typeof this._js_beautify == "function" ? S = this._js_beautify : h.custom_beautifier_name === "css" && typeof this._css_beautify == "function" ? S = this._css_beautify : h.custom_beautifier_name === "html" && (S = function(C, P) {
1800
+ var L = new y(C, P, k._js_beautify, k._css_beautify);
1801
+ return L.beautify();
1802
+ }), this._options.indent_scripts === "keep" ? c = 0 : this._options.indent_scripts === "separate" && (c = -p.indent_level);
1803
+ var T = p.get_full_indent(c);
1804
+ if (O = O.replace(/\n[ \t]*$/, ""), h.custom_beautifier_name !== "html" && O[0] === "<" && O.match(/^(<!--|<!\[CDATA\[)/)) {
1805
+ var n = /^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(O);
1806
+ if (!n) {
1807
+ p.add_raw_token(_);
1808
+ return;
1809
+ }
1810
+ g = T + n[1] + `
1811
+ `, O = n[4], n[5] && (f = T + n[5]), O = O.replace(/\n[ \t]*$/, ""), (n[2] || n[3].indexOf(`
1812
+ `) !== -1) && (n = n[3].match(/[ \t]+$/), n && (_.whitespace_before = n[0]));
1813
+ }
1814
+ if (O)
1815
+ if (S) {
1816
+ var d = function() {
1817
+ this.eol = `
1818
+ `;
1819
+ };
1820
+ d.prototype = this._options.raw_options;
1821
+ var m = new d();
1822
+ O = S(T + O, m);
1823
+ } else {
1824
+ var R = _.whitespace_before;
1825
+ R && (O = O.replace(new RegExp(`
1826
+ (` + R + ")?", "g"), `
1827
+ `)), O = T + O.replace(/\n/g, `
1828
+ ` + T);
1829
+ }
1830
+ g && (O ? O = g + O + `
1831
+ ` + f : O = g + f), p.print_newline(!1), O && (_.text = O, _.whitespace_before = "", _.newlines = 0, p.add_raw_token(_), p.print_newline(!0));
1832
+ }
1833
+ }, y.prototype._handle_tag_open = function(p, _, h, k, O) {
1834
+ var S = this._get_tag_open_token(_);
1835
+ if ((h.is_unformatted || h.is_content_unformatted) && !h.is_empty_element && _.type === e.TAG_OPEN && !S.is_start_tag ? (p.add_raw_token(_), S.start_tag_token = this._tag_stack.try_pop(S.tag_name)) : (p.traverse_whitespace(_), this._set_tag_position(p, _, S, h, k), S.is_inline_element || p.set_wrap_point(), p.print_token(_)), S.is_start_tag && this._is_wrap_attributes_force) {
1836
+ var c = 0, g;
1837
+ do
1838
+ g = O.peek(c), g.type === e.ATTRIBUTE && (S.attr_count += 1), c += 1;
1839
+ while (g.type !== e.EOF && g.type !== e.TAG_CLOSE);
1840
+ }
1841
+ return (this._is_wrap_attributes_force_aligned || this._is_wrap_attributes_aligned_multiple || this._is_wrap_attributes_preserve_aligned) && (S.alignment_size = _.text.length + 1), !S.tag_complete && !S.is_unformatted && (p.alignment_size = S.alignment_size), S;
1842
+ };
1843
+ var A = function(p, _) {
1844
+ if (this.parent = p || null, this.text = "", this.type = "TK_TAG_OPEN", this.tag_name = "", this.is_inline_element = !1, this.is_unformatted = !1, this.is_content_unformatted = !1, this.is_empty_element = !1, this.is_start_tag = !1, this.is_end_tag = !1, this.indent_content = !1, this.multiline_content = !1, this.custom_beautifier_name = null, this.start_tag_token = null, this.attr_count = 0, this.has_wrapped_attrs = !1, this.alignment_size = 0, this.tag_complete = !1, this.tag_start_char = "", this.tag_check = "", !_)
1845
+ this.tag_complete = !0;
1846
+ else {
1847
+ var h;
1848
+ this.tag_start_char = _.text[0], this.text = _.text, this.tag_start_char === "<" ? (h = _.text.match(/^<([^\s>]*)/), this.tag_check = h ? h[1] : "") : (h = _.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/), this.tag_check = h ? h[1] : "", (_.text.startsWith("{{#>") || _.text.startsWith("{{~#>")) && this.tag_check[0] === ">" && (this.tag_check === ">" && _.next !== null ? this.tag_check = _.next.text.split(" ")[0] : this.tag_check = _.text.split(">")[1])), this.tag_check = this.tag_check.toLowerCase(), _.type === e.COMMENT && (this.tag_complete = !0), this.is_start_tag = this.tag_check.charAt(0) !== "/", this.tag_name = this.is_start_tag ? this.tag_check : this.tag_check.substr(1), this.is_end_tag = !this.is_start_tag || _.closed && _.closed.text === "/>";
1849
+ var k = 2;
1850
+ this.tag_start_char === "{" && this.text.length >= 3 && this.text.charAt(2) === "~" && (k = 3), this.is_end_tag = this.is_end_tag || this.tag_start_char === "{" && (this.text.length < 3 || /[^#\^]/.test(this.text.charAt(k)));
1851
+ }
1852
+ };
1853
+ y.prototype._get_tag_open_token = function(p) {
1854
+ var _ = new A(this._tag_stack.get_parser_token(), p);
1855
+ return _.alignment_size = this._options.wrap_attributes_indent_size, _.is_end_tag = _.is_end_tag || v(_.tag_check, this._options.void_elements), _.is_empty_element = _.tag_complete || _.is_start_tag && _.is_end_tag, _.is_unformatted = !_.tag_complete && v(_.tag_check, this._options.unformatted), _.is_content_unformatted = !_.is_empty_element && v(_.tag_check, this._options.content_unformatted), _.is_inline_element = v(_.tag_name, this._options.inline) || this._options.inline_custom_elements && _.tag_name.includes("-") || _.tag_start_char === "{", _;
1856
+ }, y.prototype._set_tag_position = function(p, _, h, k, O) {
1857
+ if (h.is_empty_element || (h.is_end_tag ? h.start_tag_token = this._tag_stack.try_pop(h.tag_name) : (this._do_optional_end_element(h) && (h.is_inline_element || p.print_newline(!1)), this._tag_stack.record_tag(h), (h.tag_name === "script" || h.tag_name === "style") && !(h.is_unformatted || h.is_content_unformatted) && (h.custom_beautifier_name = l(h.tag_check, _)))), v(h.tag_check, this._options.extra_liners) && (p.print_newline(!1), p._output.just_added_blankline() || p.print_newline(!0)), h.is_empty_element) {
1858
+ if (h.tag_start_char === "{" && h.tag_check === "else") {
1859
+ this._tag_stack.indent_to_tag(["if", "unless", "each"]), h.indent_content = !0;
1860
+ var S = p.current_line_has_match(/{{#if/);
1861
+ S || p.print_newline(!1);
1862
+ }
1863
+ h.tag_name === "!--" && O.type === e.TAG_CLOSE && k.is_end_tag && h.text.indexOf(`
1864
+ `) === -1 || (h.is_inline_element || h.is_unformatted || p.print_newline(!1), this._calcluate_parent_multiline(p, h));
1865
+ } else if (h.is_end_tag) {
1866
+ var c = !1;
1867
+ c = h.start_tag_token && h.start_tag_token.multiline_content, c = c || !h.is_inline_element && !(k.is_inline_element || k.is_unformatted) && !(O.type === e.TAG_CLOSE && h.start_tag_token === k) && O.type !== "TK_CONTENT", (h.is_content_unformatted || h.is_unformatted) && (c = !1), c && p.print_newline(!1);
1868
+ } else
1869
+ h.indent_content = !h.custom_beautifier_name, h.tag_start_char === "<" && (h.tag_name === "html" ? h.indent_content = this._options.indent_inner_html : h.tag_name === "head" ? h.indent_content = this._options.indent_head_inner_html : h.tag_name === "body" && (h.indent_content = this._options.indent_body_inner_html)), !(h.is_inline_element || h.is_unformatted) && (O.type !== "TK_CONTENT" || h.is_content_unformatted) && p.print_newline(!1), this._calcluate_parent_multiline(p, h);
1870
+ }, y.prototype._calcluate_parent_multiline = function(p, _) {
1871
+ _.parent && p._output.just_added_newline() && !((_.is_inline_element || _.is_unformatted) && _.parent.is_inline_element) && (_.parent.multiline_content = !0);
1872
+ };
1873
+ var N = ["address", "article", "aside", "blockquote", "details", "div", "dl", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hr", "main", "menu", "nav", "ol", "p", "pre", "section", "table", "ul"], $ = ["a", "audio", "del", "ins", "map", "noscript", "video"];
1874
+ return y.prototype._do_optional_end_element = function(p) {
1875
+ var _ = null;
1876
+ if (!(p.is_empty_element || !p.is_start_tag || !p.parent)) {
1877
+ if (p.tag_name === "body")
1878
+ _ = _ || this._tag_stack.try_pop("head");
1879
+ else if (p.tag_name === "li")
1880
+ _ = _ || this._tag_stack.try_pop("li", ["ol", "ul", "menu"]);
1881
+ else if (p.tag_name === "dd" || p.tag_name === "dt")
1882
+ _ = _ || this._tag_stack.try_pop("dt", ["dl"]), _ = _ || this._tag_stack.try_pop("dd", ["dl"]);
1883
+ else if (p.parent.tag_name === "p" && N.indexOf(p.tag_name) !== -1) {
1884
+ var h = p.parent.parent;
1885
+ (!h || $.indexOf(h.tag_name) === -1) && (_ = _ || this._tag_stack.try_pop("p"));
1886
+ } else
1887
+ p.tag_name === "rp" || p.tag_name === "rt" ? (_ = _ || this._tag_stack.try_pop("rt", ["ruby", "rtc"]), _ = _ || this._tag_stack.try_pop("rp", ["ruby", "rtc"])) : p.tag_name === "optgroup" ? _ = _ || this._tag_stack.try_pop("optgroup", ["select"]) : p.tag_name === "option" ? _ = _ || this._tag_stack.try_pop("option", ["select", "datalist", "optgroup"]) : p.tag_name === "colgroup" ? _ = _ || this._tag_stack.try_pop("caption", ["table"]) : p.tag_name === "thead" ? (_ = _ || this._tag_stack.try_pop("caption", ["table"]), _ = _ || this._tag_stack.try_pop("colgroup", ["table"])) : p.tag_name === "tbody" || p.tag_name === "tfoot" ? (_ = _ || this._tag_stack.try_pop("caption", ["table"]), _ = _ || this._tag_stack.try_pop("colgroup", ["table"]), _ = _ || this._tag_stack.try_pop("thead", ["table"]), _ = _ || this._tag_stack.try_pop("tbody", ["table"])) : p.tag_name === "tr" ? (_ = _ || this._tag_stack.try_pop("caption", ["table"]), _ = _ || this._tag_stack.try_pop("colgroup", ["table"]), _ = _ || this._tag_stack.try_pop("tr", ["table", "thead", "tbody", "tfoot"])) : (p.tag_name === "th" || p.tag_name === "td") && (_ = _ || this._tag_stack.try_pop("td", ["table", "thead", "tbody", "tfoot", "tr"]), _ = _ || this._tag_stack.try_pop("th", ["table", "thead", "tbody", "tfoot", "tr"]));
1888
+ return p.parent = this._tag_stack.get_parser_token(), _;
1889
+ }
1890
+ }, Lt.Beautifier = y, Lt;
1891
+ }
1892
+ var ye;
1893
+ function ci() {
1894
+ if (ye)
1895
+ return at;
1896
+ ye = 1;
1897
+ var t = fi().Beautifier, i = De().Options;
1898
+ function s(e, a, r, u) {
1899
+ var o = new t(e, a, r, u);
1900
+ return o.beautify();
1901
+ }
1902
+ return hi.exports = s, at.defaultOptions = function() {
1903
+ return new i();
1904
+ }, at;
1905
+ }
1906
+ var xe;
1907
+ function di() {
1908
+ if (xe)
1909
+ return Z;
1910
+ xe = 1;
1911
+ var t = oi(), i = pi(), s = ci();
1912
+ function e(a, r, u, o) {
1913
+ return u = u || t, o = o || i, s(a, r, u, o);
1914
+ }
1915
+ return e.defaultOptions = s.defaultOptions, Z.js = t, Z.css = i, Z.html = e, Z;
1916
+ }
1917
+ (function(t) {
1918
+ function i(s, e, a) {
1919
+ var r = function(u, o) {
1920
+ return s.js_beautify(u, o);
1921
+ };
1922
+ return r.js = s.js_beautify, r.css = e.css_beautify, r.html = a.html_beautify, r.js_beautify = s.js_beautify, r.css_beautify = e.css_beautify, r.html_beautify = a.html_beautify, r;
1923
+ }
1924
+ (function(s) {
1925
+ var e = di();
1926
+ e.js_beautify = e.js, e.css_beautify = e.css, e.html_beautify = e.html, s.exports = i(e, e, e);
1927
+ })(t);
1928
+ })(si);
1929
+ const It = {
1930
+ html: {
1931
+ indent_size: "2",
1932
+ indent_char: " ",
1933
+ max_preserve_newlines: "-1",
1934
+ preserve_newlines: !1,
1935
+ keep_array_indentation: !1,
1936
+ break_chained_methods: !1,
1937
+ indent_scripts: "separate",
1938
+ brace_style: "end-expand",
1939
+ space_before_conditional: !0,
1940
+ unescape_strings: !1,
1941
+ jslint_happy: !1,
1942
+ end_with_newline: !0,
1943
+ wrap_line_length: "110",
1944
+ indent_inner_html: !0,
1945
+ comma_first: !1,
1946
+ e4x: !0,
1947
+ indent_empty_lines: !0
1948
+ },
1949
+ js: {
1950
+ indent_size: "2",
1951
+ indent_char: " ",
1952
+ max_preserve_newlines: "-1",
1953
+ preserve_newlines: !1,
1954
+ keep_array_indentation: !1,
1955
+ break_chained_methods: !1,
1956
+ indent_scripts: "normal",
1957
+ brace_style: "end-expand",
1958
+ space_before_conditional: !0,
1959
+ unescape_strings: !1,
1960
+ jslint_happy: !0,
1961
+ end_with_newline: !0,
1962
+ wrap_line_length: "110",
1963
+ indent_inner_html: !0,
1964
+ comma_first: !1,
1965
+ e4x: !0,
1966
+ indent_empty_lines: !0
1967
+ },
1968
+ css: {
1969
+ indent_size: "2",
1970
+ indent_char: " ",
1971
+ max_preserve_newlines: "-1",
1972
+ preserve_newlines: !1,
1973
+ keep_array_indentation: !1,
1974
+ break_chained_methods: !1,
1975
+ indent_scripts: "normal",
1976
+ brace_style: "end-expand",
1977
+ space_before_conditional: !0,
1978
+ unescape_strings: !1,
1979
+ jslint_happy: !0,
1980
+ end_with_newline: !0,
1981
+ wrap_line_length: "110",
1982
+ indent_inner_html: !0,
1983
+ comma_first: !1,
1984
+ e4x: !0,
1985
+ indent_empty_lines: !0
1986
+ }
1987
+ };
1988
+ function ft(t, i) {
1989
+ switch (t) {
1990
+ case q.html:
1991
+ return it.html(i, It.html);
1992
+ case q.css:
1993
+ return it.css(i, It.css);
1994
+ case q.javascript:
1995
+ return it.js(i, It.js);
1996
+ case q.json: {
1997
+ var s = ze(i);
1998
+ return Bt(s) && i ? i : H(s, void 0, " ");
1999
+ }
2000
+ default:
2001
+ return i;
2002
+ }
2003
+ }
2004
+ const mi = (t) => t ? t.replace(/[A-Z]/g, function(i) {
2005
+ return "-" + i.toLowerCase();
2006
+ }) : "";
2007
+ class W {
2008
+ constructor() {
2009
+ Y(this, "exContent");
2010
+ Y(this, "tag");
2011
+ Y(this, "exProp");
2012
+ Y(this, "autoProp");
2013
+ }
2014
+ }
2015
+ const gi = (t, i) => `<el-row ${U(t)}>
2016
+ ${t.cols.map((a) => bi(a, i)).join("")}
2017
+ </el-row>
2018
+ `, bi = (t, i) => {
2019
+ const s = w.getOptions(t, "responsive");
2020
+ ["span", "xs", "sm", "md", "lg", "xl"].forEach((r) => {
2021
+ let u = null;
2022
+ const o = !!s, l = w.getOptions(t, r);
2023
+ r == "span" ? u = o ? null : l : u = o ? l : null, w.setOrgOption(t, r, u);
2024
+ }), delete t.options.responsive;
2025
+ const a = vt(t, i);
2026
+ return bt(t, { wdName: "el-col", props: a });
2027
+ }, vi = (t, i) => `<div class="table-container">
2028
+ <table ${U(t, "table-layout")}>
2029
+ <tbody>
2030
+ ${t.rows.map((a) => yi(a, i)).join("")}
2031
+ </tbody>
2032
+ </table>
2033
+ </div>`, yi = (t, i) => `<tr>${t.cols.filter((s) => !s.merged).map((s) => xi(s, i)).join("")}</tr>`, xi = (t, i) => {
2034
+ const s = t.options, e = U(t);
2035
+ ["colspan", "rowspan"].forEach((o) => {
2036
+ let l = w.getOptions(t, o);
2037
+ const v = Ve(l) && !isNaN(l) && l !== 1 ? l : "";
2038
+ w.setOptions(t, o, String(v));
2039
+ }), delete t.options.name;
2040
+ const r = vt(t, i);
2041
+ let u = [];
2042
+ return s.cellWidth && u.push("width: " + s.cellWidth + " !important"), s.cellHeight && u.push("height: " + s.cellHeight + " !important"), bt(t, { wdName: "td", props: r, classAttr: e, styleArray: u });
2043
+ }, wi = (t, i) => {
2044
+ const s = U(t), e = t.tabs && t.tabs.length > 0 ? `v-model="${w.getName(t)}ActiveTab"` : "", a = vt(t, i);
2045
+ return `
2046
+ <el-tabs ${e} type="${t.displayType}" ${a} ${s}>
2047
+ ${t.tabs.map((u) => {
2048
+ const o = w.getOptions(u, "disabled"), l = w.getOptions(u, "name"), v = w.getOptions(u, "label");
2049
+ return `
2050
+ <el-tab-pane name="${l}" label="${v}" ${o === !0 ? "disabled" : ""}>
2051
+ ${X(u.widgetList)}
2052
+ </el-tab-pane>
2053
+ `;
2054
+ }).join("")}
2055
+ </el-tabs>
2056
+ `;
2057
+ }, Oi = (t) => {
2058
+ var a;
2059
+ const { slots: i } = mt(t, void 0, { s_slots: !0 });
2060
+ var s = [
2061
+ D("header", w.getOptions(t, "label")),
2062
+ D("default", X((a = Re(i.value, "default")) == null ? void 0 : a.widgetList), !0)
2063
+ ];
2064
+ let e = {
2065
+ exContent: s.join("")
2066
+ };
2067
+ return M(t, e);
2068
+ }, Ti = (t) => {
2069
+ const i = w.getOptions(t, "label"), s = w.getOptions(t, "labelTooltip"), e = w.getOptions(t, "labelIconClass"), a = w.getOptions(t, "labelIconPosition");
2070
+ if (!s && !e)
2071
+ return i;
2072
+ let r = F(e, '<i class="', '"></i>'), u = F(r, `<el-tooltip content="${s}" effect="light">`, "</el-tooltip>"), o = `${a === Jt.rear ? i : ""}${u}${a === Jt.front ? i : ""}`;
2073
+ return o ? F(o, "<template #label>", "</template>") : i;
2074
+ }, Ei = (t, i) => {
2075
+ var o;
2076
+ const s = U(t), e = w.getOptions(t, "modelName") || w.getName(t), a = t.widgetList && t.widgetList.length > 0 ? `:model="${e}"` : "", r = vt(t, {});
2077
+ return `
2078
+ <el-form ${a} ${r} ${s}>
2079
+ ${(o = t.widgetList) == null ? void 0 : o.map((l) => {
2080
+ const v = w.getOptions(l, "labelHidden"), x = w.getOptions(l, "label"), b = w.getOptions(l, "labelWidth"), y = w.getOptions(l, "labelPosition"), A = v ? "" : x, N = v ? 'label-width="0"' : b ? `label-width="${b}"` : "", $ = !v && y ? `label-position="${y}"` : "", p = Ti(l);
2081
+ let _ = X([l], i);
2082
+ const h = ` prop="${w.getName(t)}"`, k = `<el-form-item label="${A}" ${N} ${$} ${s} ${h}>
2083
+ ${p}
2084
+ ${_}
2085
+ </el-form-item>`;
2086
+ return l != null && l.formItemFlag ? k : _;
2087
+ }).join("")}
2088
+ </el-form>
2089
+ `;
2090
+ }, ki = (t) => {
2091
+ var s;
2092
+ const i = ke((s = _t(t)) == null ? void 0 : s.map((e) => t[e] ? `${e}:${t[e]}` : ""), ";");
2093
+ return i ? `style="${i}"` : "";
2094
+ }, Ri = (t) => {
2095
+ var s;
2096
+ return ke((s = _t(t)) == null ? void 0 : s.map((e) => t[e] ? `${e}="${t[e]}"` : ""), " ");
2097
+ }, Si = (t) => `${t.cols.map((s) => Ft(s)).join("")}`, Ft = (t) => {
2098
+ var b, y;
2099
+ const i = t, s = `${B.getValue(i.partName)}`, e = `${B.getValue(i.direction)}`, a = `${B.getValue(i.cellWidth)}`, r = `${B.getValue(i.cellHeight)}`, u = U({ type: E.contCell, options: i }), o = { width: a, height: r }, l = { direction: e }, v = `el-${s}`;
2100
+ return v ? `
2101
+ <${v} ${u} ${Ri(l)} ${ki(o)}>
2102
+ ${(y = (b = t == null ? void 0 : t.children) == null ? void 0 : b.map((A) => Ft(A))) == null ? void 0 : y.join("")}
2103
+ ${bt(Mt(t))}
2104
+ </${v}>
2105
+ ` : "";
2106
+ }, Ai = (t, i) => M(t, {
2107
+ tag: "el-input",
2108
+ exProp: 'type="textarea"'
2109
+ }, i), Ci = (t, i) => {
2110
+ const s = G(t, i), e = Ni(t);
2111
+ return `<el-radio-group ${s}>${e}</el-radio-group>`;
2112
+ };
2113
+ function Ni(t) {
2114
+ const i = w.getOptions(t, "buttonStyle") ? "el-radio-button" : "el-radio", s = w.getOptions(t, "border") ? "border" : "", e = `style="display: ${w.getOptions(t, "displayStyle")}"`, a = new W();
2115
+ return a.tag = i, a.autoProp = !1, a.exContent = "{{item.label}}", a.exProp = [
2116
+ s,
2117
+ e,
2118
+ j("item.value", ":label"),
2119
+ j(w.getOptions(t, "disabled") ? "true" : "item.disabled", ":disabled"),
2120
+ j(w.getOptions(t, "border") ? "true" : "item.border", ":border")
2121
+ ].join(" "), K(t, a);
2122
+ }
2123
+ const $i = (t, i) => {
2124
+ const s = G(t, i), e = Pi(t);
2125
+ return `<el-checkbox-group ${s}>${e}</el-checkbox-group>`;
2126
+ };
2127
+ function Pi(t) {
2128
+ const i = w.getOptions(t, "buttonStyle") ? "el-checkbox-button" : "el-checkbox", s = w.getOptions(t, "border") ? "border" : "", e = `style="display: ${w.getOptions(t, "displayStyle")}"`, a = new W();
2129
+ return a.tag = i, a.autoProp = !1, a.exContent = "{{item.label}}", a.exProp = [
2130
+ s,
2131
+ e,
2132
+ j("item.value", ":label"),
2133
+ j(w.getOptions(t, "disabled") ? "true" : "item.disabled", ":disabled"),
2134
+ j(w.getOptions(t, "border") ? "true" : "item.border", ":border")
2135
+ ].join(" "), K(t, a);
2136
+ }
2137
+ const ji = (t, i) => {
2138
+ const s = G(t, i), e = Li(t);
2139
+ var a = [
2140
+ D("prefix", w.getOptions(t, "slotPrefix"))
2141
+ ];
2142
+ return `<el-select ${s}>${e}${a.join("")}</el-select>`;
2143
+ };
2144
+ function Li(t) {
2145
+ var i = w.getOptions(t, J.optionItems);
2146
+ return i != null && i.length ? i.some((s) => {
2147
+ var e;
2148
+ return ((e = s.children) == null ? void 0 : e.length) > 0;
2149
+ }) ? Ii(t) : Di(t) : "";
2150
+ }
2151
+ function Di(t) {
2152
+ const i = "el-option", s = new W();
2153
+ return s.tag = i, s.autoProp = !0, K(t, s);
2154
+ }
2155
+ function Ii(t) {
2156
+ var i = w.getOptions(t, J.optionItems);
2157
+ if (!(i != null && i.length))
2158
+ return "";
2159
+ var s = i == null ? void 0 : i.map((e) => Bi(e));
2160
+ return s == null ? void 0 : s.join("");
2161
+ }
2162
+ function Bi(t) {
2163
+ var s;
2164
+ if (((s = t == null ? void 0 : t.children) == null ? void 0 : s.length) > 0) {
2165
+ var i = "el-option-group";
2166
+ return `
2167
+ <${i}>${we(t.children)}</${i}>
2168
+ `;
2169
+ } else
2170
+ return we(t);
2171
+ }
2172
+ function we(t) {
2173
+ var i = [
2174
+ j(t.value, "value"),
2175
+ j(t.label, "label")
2176
+ ];
2177
+ return `
2178
+ <el-option ${i}></el-option>
2179
+ `;
2180
+ }
2181
+ const Mi = (t, i) => {
2182
+ const s = U(t, "");
2183
+ var e = w.getOptions(t, J.optionItems);
2184
+ const a = G(t, i);
2185
+ return `
2186
+ <el-table ${s} ${a}>
2187
+ ${e == null ? void 0 : e.map((u) => Ie(u, i)).join("")}
2188
+ </el-table>
2189
+ `;
2190
+ }, Ie = (t, i) => {
2191
+ var l, v;
2192
+ const s = Oe(t);
2193
+ delete s.children;
2194
+ const e = Mt({ type: E.eltableCol, options: s }), a = G(e, i), { slots: r } = mt(e, void 0, { s_slots: !0 });
2195
+ var u = [
2196
+ D("default", X((l = Re(r.value, "default")) == null ? void 0 : l.widgetList), !1)
2197
+ ];
2198
+ return `
2199
+ <el-table-column ${a}>
2200
+ ${((v = t == null ? void 0 : t.children) == null ? void 0 : v.map((x) => Ie(x, i))) || ""}
2201
+ ${u}
2202
+ </el-table-column>
2203
+ `;
2204
+ }, Wi = (t, i) => {
2205
+ const { pictureUploadIconChild: s, uploadTipSlotChild: e } = yt(t), a = G(t, i);
2206
+ let r = t.options, u = r == null ? void 0 : r.name;
2207
+ return `<el-upload
2208
+ :file-list="${u}FileList"
2209
+ :headers="${u}UploadHeaders"
2210
+ :data="${u}UploadData"
2211
+ list-type="picture-card"
2212
+ ${a}>
2213
+ ${D(rt.tip, e)}
2214
+ ${D(rt.default, s)}
2215
+ </el-upload>`;
2216
+ }, Ki = (t, i) => {
2217
+ const { fileUploadIconChild: s, uploadTipSlotChild: e } = yt(t), a = G(t, i);
2218
+ let r = t.options, u = r == null ? void 0 : r.name;
2219
+ return `<el-upload
2220
+ :file-list="${u}FileList"
2221
+ :headers="${u}UploadHeaders"
2222
+ :data="${u}UploadData"
2223
+ list-type="picture-card"
2224
+ ${a}>
2225
+ ${D(rt.tip, e)}
2226
+ ${D(rt.default, s)}
2227
+ </el-upload>`;
2228
+ }, Ui = (t) => M(t, {
2229
+ tag: "vue-editor"
2230
+ }), zi = (t) => {
2231
+ let i = t.options;
2232
+ var s = ["checkStrictly", "multiple", "expandTrigger", "lazy", "emitPath", "hoverThreshold"], e = {};
2233
+ s.forEach((r) => {
2234
+ (i == null ? void 0 : i[r]) !== void 0 && (e[r] = i == null ? void 0 : i[r]);
2235
+ });
2236
+ let a = {
2237
+ exProp: [
2238
+ `:options="${w.getOptions(t, "name")}Options"`,
2239
+ `:props="${H(e).replaceAll('"', "'")}"`
2240
+ ].join(" ")
2241
+ };
2242
+ return M(t, a);
2243
+ }, qi = (t) => {
2244
+ var i = Oe(t);
2245
+ const { linkPrefixIcon: s, linkSuffixIcon: e } = yt(i);
2246
+ return B.getValue(i.defalut) || B.setValue(i, "default", ` ${s}${w.getOptions(t, "content")}${e}`), M(i);
2247
+ }, Vi = (t) => {
2248
+ var e;
2249
+ let i = t.options, s = {
2250
+ // exContent: arr.join(''),
2251
+ exProp: `:preview-src-list=${H((e = B.getValue(i.optionItems)) == null ? void 0 : e.map((a) => a.label))}`
2252
+ };
2253
+ return M(t, s);
2254
+ }, Fi = (t) => {
2255
+ const i = w.getOptions(t, "label"), s = U(t, "");
2256
+ return `<router-view name="${i}" :key="$route.fullPath" ${s}></router-view>`;
2257
+ };
2258
+ function Xi(t) {
2259
+ const i = ot(t);
2260
+ var s = [
2261
+ '<div v-html="item?.content"></div>'
2262
+ ], e = [
2263
+ V("name", "item?.name"),
2264
+ V("label", "item?.label")
2265
+ ];
2266
+ const a = new W();
2267
+ return a.tag = i, a.autoProp = !1, a.exContent = s.join(""), a.exProp = e.join(""), K(t, a);
2268
+ }
2269
+ const Gi = (t) => {
2270
+ t.options;
2271
+ const i = Qi(t);
2272
+ var e = [
2273
+ `<div v-html="${w.getOptions(t, "label")}"></div>`,
2274
+ D("dropdown", i)
2275
+ ];
2276
+ let a = {
2277
+ exContent: e.join("")
2278
+ };
2279
+ return M(t, a);
2280
+ };
2281
+ function Qi(t) {
2282
+ const i = ot(t);
2283
+ var s = [
2284
+ "{{item.label}}"
2285
+ ], e = [
2286
+ 'v-bind="item"'
2287
+ ];
2288
+ const a = new W();
2289
+ return a.tag = i, a.autoProp = !1, a.exContent = s.join(""), a.exProp = e.join(""), K(t, a);
2290
+ }
2291
+ function Hi(t) {
2292
+ const i = ot(t);
2293
+ var s = [
2294
+ D("title", '<span v-html="item?.label"></span>'),
2295
+ '<div v-html="item?.content"></div>'
2296
+ ], e = [
2297
+ 'v-bind="item"',
2298
+ V("name", "item?.value")
2299
+ ];
2300
+ const a = new W();
2301
+ return a.tag = i, a.autoProp = !1, a.exContent = s.join(""), a.exProp = e.join(""), K(t, a);
2302
+ }
2303
+ const Ji = (t) => {
2304
+ const i = Yi(t), s = w.getOptions(t, "title"), e = w.getOptions(t, "extra");
2305
+ var a = [
2306
+ D("title", `${s}`),
2307
+ D("extra", `${e}`),
2308
+ i
2309
+ ];
2310
+ let r = {
2311
+ exContent: a.join("")
2312
+ };
2313
+ return M(t, r);
2314
+ };
2315
+ function Yi(t) {
2316
+ const i = ot(t);
2317
+ var s = [
2318
+ '<div v-html="item?.content"></div>',
2319
+ D("label", "{{item?.label}}")
2320
+ ];
2321
+ const e = new W();
2322
+ return e.tag = i, e.autoProp = !0, e.exContent = s.join(""), K(t, e);
2323
+ }
2324
+ function Zi(t) {
2325
+ const i = ot(t);
2326
+ var s = [
2327
+ `<a :href="item.to" :target="item.replace===true?'_self':'_blank'">{{ item.label }}</a>`
2328
+ ];
2329
+ const e = new W();
2330
+ return e.tag = i, e.autoProp = !1, e.exContent = s.join(""), K(t, e);
2331
+ }
2332
+ function Be(t) {
2333
+ if (!(t != null && t.length))
2334
+ return "";
2335
+ var i = t == null ? void 0 : t.map((s) => ts(s));
2336
+ return i == null ? void 0 : i.join("");
2337
+ }
2338
+ function ts(t) {
2339
+ var s;
2340
+ if (t != null && t.children && ((s = t == null ? void 0 : t.children) == null ? void 0 : s.length) > 0) {
2341
+ var i = (t == null ? void 0 : t.menuItemType) === Je.MenuItemGroup ? "el-menu-item-group" : "el-sub-menu";
2342
+ return `
2343
+ <${i}>${Be(t.children)}</${i}>
2344
+ `;
2345
+ } else
2346
+ return es(t);
2347
+ }
2348
+ function es(t) {
2349
+ return `
2350
+ <el-menu-item>
2351
+ <template #title>
2352
+ ${t != null && t.icon ? `<i :class="el-icon-${t == null ? void 0 : t.icon}"></i>` : ""}${t.label}
2353
+ </template>
2354
+ </el-menu-item>
2355
+ `;
2356
+ }
2357
+ function is(t) {
2358
+ const i = "el-step";
2359
+ var s = [
2360
+ D("title", "{{item.label}}"),
2361
+ D("description", "{{item.description}}"),
2362
+ D("icon", '<i class="el-icon-" + item.icon></i>')
2363
+ ], e = [
2364
+ V("status", "item?.status")
2365
+ ];
2366
+ const a = new W();
2367
+ return a.tag = i, a.autoProp = !1, a.exContent = s.join(""), a.exProp = e.join(""), K(t, a);
2368
+ }
2369
+ const ss = (t) => M(t, { tag: "div", exContent: w.getOptions(t, "content"), autoProp: !1 }), ns = (t) => {
2370
+ var i = t == null ? void 0 : t.options;
2371
+ return i == null ? void 0 : i.content;
2372
+ }, as = (t, i) => M(t, void 0, i), M = (t, i, s) => {
2373
+ var $, p, _;
2374
+ const e = i == null ? void 0 : i.exContent, a = i == null ? void 0 : i.tag, r = i == null ? void 0 : i.exProp, u = i == null ? void 0 : i.autoProp, o = Xt(t, s);
2375
+ let l = u !== !1 ? (p = ($ = Object.values(o)) == null ? void 0 : $.filter((h) => !!h)) == null ? void 0 : p.join(" ") : "";
2376
+ l = [r || "", l || ""].join(" ");
2377
+ const v = w.getOptions(t, "content"), x = w.getOptions(t, "label"), { originSlots: b } = mt(t, void 0, { s_slots: !0 }), y = (_ = b.value) == null ? void 0 : _.map((h) => {
2378
+ var k;
2379
+ return ((k = h == null ? void 0 : h.widgetList) == null ? void 0 : k.length) > 0 ? bt(h, { wdName: "template", props: `#${h == null ? void 0 : h.slotName}` }) : D(h == null ? void 0 : h.slotName, Qe(h.default) || h.default || ((h == null ? void 0 : h.slotName) == rt.default ? v || x : ""));
2380
+ }).join(" ");
2381
+ let A = [e, y].join(" ");
2382
+ const N = a || `el-${t == null ? void 0 : t.type}`;
2383
+ return `<${N} ${l}>${A}</${N}>`;
2384
+ };
2385
+ function K(t, i) {
2386
+ var a;
2387
+ const s = w.getOptions(t, J.optionItems);
2388
+ (a = B.getValue(s)) == null || a[0];
2389
+ const e = i.autoProp !== !1 ? 'v-bind="item"' : "";
2390
+ return `
2391
+ <${i.tag} v-for="(item, index) in ${w.getOptions(t, "name")}Options" :key="index" ${e || ""} ${i.exProp || ""}>
2392
+ ${i.exContent || ""}
2393
+ </${i.tag}>
2394
+ `;
2395
+ }
2396
+ const ot = (t) => `el-${t == null ? void 0 : t.type}-item`, et = (t) => {
2397
+ let i = "";
2398
+ switch (t == null ? void 0 : t.type) {
2399
+ case E.menu:
2400
+ i = Be(w.getOptions(t, J.optionItems));
2401
+ break;
2402
+ case E.collapse:
2403
+ i = Hi(t);
2404
+ break;
2405
+ case E.breadcrumb:
2406
+ i = Zi(t);
2407
+ break;
2408
+ case E.steps:
2409
+ i = is(t);
2410
+ break;
2411
+ case E.carousel:
2412
+ i = Xi(t);
2413
+ break;
2414
+ }
2415
+ return M(t, { exContent: i });
2416
+ };
2417
+ function U(t, i = "") {
2418
+ const s = t == null ? void 0 : t.options;
2419
+ let e = [];
2420
+ i && i !== "" && e.push(i);
2421
+ const a = B.getValue(s == null ? void 0 : s.customClass);
2422
+ return a && Array.isArray(a) && a.length > 0 && e.push(Array.from(a).join(" ")), e.length > 0 ? `class="${e.join(" ")}"` : "";
2423
+ }
2424
+ const bt = (t, i) => {
2425
+ const s = U(t) || "", e = (i == null ? void 0 : i.wdName) || "", a = i == null ? void 0 : i.styleArray, r = (i == null ? void 0 : i.classAttr) || "", u = (i == null ? void 0 : i.props) || "";
2426
+ let o = (a == null ? void 0 : a.length) > 0 ? `style="${a == null ? void 0 : a.join(";")}"` : "";
2427
+ return e ? `
2428
+ <${e} ${s} ${o} ${r} ${u}>
2429
+ ${X(t == null ? void 0 : t.widgetList)}
2430
+ </${e}>
2431
+ ` : `
2432
+ ${X(t == null ? void 0 : t.widgetList)}
2433
+ `;
2434
+ }, _s = () => {
2435
+ var t = {};
2436
+ return t[E.grid + ""] = gi, t[E.table + ""] = vi, t[E.tabs + ""] = wi, t[E.cont + ""] = Si, t[E.contCell + ""] = Ft, t[E.form + ""] = Ei, t;
2437
+ }, rs = _s();
2438
+ function X(t, i) {
2439
+ var s = [];
2440
+ return t == null || t.forEach((e) => {
2441
+ e.category === He.container ? s.push(os(e, i)) : s.push(ps(e, i));
2442
+ }), s.length ? s.join(`
2443
+ `) : "";
2444
+ }
2445
+ function os(t, i) {
2446
+ const s = rs[t.type];
2447
+ return s ? s(t, i) : null;
2448
+ }
2449
+ function G(t, i) {
2450
+ var e, a;
2451
+ const s = Xt(t, i);
2452
+ return (a = (e = Object.values(s)) == null ? void 0 : e.filter((r) => !!r)) == null ? void 0 : a.join(" ");
2453
+ }
2454
+ function vt(t, i) {
2455
+ var e, a;
2456
+ var s = Xt(t, i);
2457
+ return (a = (e = Object.values(s)) == null ? void 0 : e.filter((r) => !!r)) == null ? void 0 : a.join(" ");
2458
+ }
2459
+ function Xt(t, i) {
2460
+ var l;
2461
+ let s = t.options, e = {};
2462
+ const { attrs: a } = mt(t, void 0, { s_attr: !0 });
2463
+ var r = a.value;
2464
+ let u = yt(t, i);
2465
+ (l = Object.keys(r)) == null || l.map((v) => {
2466
+ var x = mi(v), b = B.getValue(s[v]);
2467
+ e[v] = u[v] || j(b, x);
2468
+ });
2469
+ var o = "vModel";
2470
+ return u[o] && (e[o] = u[o]), e;
2471
+ }
2472
+ function yt(t, i) {
2473
+ var a;
2474
+ const s = w.getOptions(t, "name"), e = (a = i == null ? void 0 : i.getFieldModel) == null ? void 0 : a.call(i, s);
2475
+ return {
2476
+ vModel: (t == null ? void 0 : t.formItemFlag) === !0 && e ? `v-model="${e}"` : "",
2477
+ defaultFirstOption: j(w.getOptions(t, "filterable") && w.getOptions(t, "allowCreate"), "default-first-option"),
2478
+ type: j(w.getOptions(t, "type") === "number" ? "text" : w.getOptions(t, "type"), "type"),
2479
+ // rows: buildProp((!isNone(wop.rows) && !isNaN(wop.rows)) ? wop.rows : '', 'rows'),
2480
+ controlsPosition: j(w.getOptions(t, "controlsPosition") === Ht.right ? w.getOptions(t, "controlsPosition") : "", "controls-position"),
2481
+ contentPosition: j(w.getOptions(t, "contentPosition") !== Ht.center ? w.getOptions(t, "contentPosition") : "", "content-position"),
2482
+ readonly: j(w.getOptions(t, "readonly"), "readonly"),
2483
+ // disabled: buildProp(wop.disabled, `:disabled="true"`),
2484
+ // showWordLimit: buildProp(wop.showWordLimit, `:show-word-limit="true"`),
2485
+ rateMax: j(!isNaN(w.getOptions(t, "max") || 0) && w.getOptions(t, "max") !== 5 ? w.getOptions(t, "max") : "", "max"),
2486
+ sliderMin: j(w.getOptions(t, "min") !== 0 ? w.getOptions(t, "min") : "", "min"),
2487
+ sliderMax: j(w.getOptions(t, "max") !== 100 ? w.getOptions(t, "max") : "", "max"),
2488
+ sliderStep: j(w.getOptions(t, "step") !== 1 ? w.getOptions(t, "step") : "", "step"),
2489
+ // multipleLimit: buildProp((wop.multipleLimit > 0) ? wop.multipleLimit : '', 'multiple-limit'),
2490
+ switchWidth: j(w.getOptions(t, "switchWidth") !== 40 ? w.getOptions(t, "switchWidth") : "", "width"),
2491
+ lowThreshold: j(w.getOptions(t, "lowThreshold") !== 2 ? w.getOptions(t, "lowThreshold") : "", "low-threshold"),
2492
+ highThreshold: j(w.getOptions(t, "highThreshold") !== 4 ? w.getOptions(t, "highThreshold") : "", "high-threshold"),
2493
+ uploadTipSlotChild: w.getOptions(t, "uploadTip") ? `<div class="el-upload__tip">${w.getOptions(t, "uploadTip")}</div>` : "",
2494
+ //!!wop.uploadTip ? `<template #tip><div class="el-upload__tip">${wop.uploadTip}</div></template>` : '',
2495
+ // appendButtonChild: !!wop.appendButton ? getSlotTemplate('append', `<el-button class="${wop.buttonIcon}" ${!!wop.appendButtonDisabled ? 'disabled' : ''}></el-button>`) : '',
2496
+ //!!wop.appendButton ? `<template #append><el-button class="${wop.buttonIcon}" ${!!wop.appendButtonDisabled ? 'disabled' : ''}></el-button></template>` : '',
2497
+ linkPrefixIcon: ct(w.getOptions(t, "prefixIcon")),
2498
+ linkSuffixIcon: ct(w.getOptions(t, "suffixIcon")),
2499
+ pictureUploadIconChild: ct("plus"),
2500
+ fileUploadIconChild: ct("plus")
2501
+ };
2502
+ }
2503
+ function ct(t) {
2504
+ return t ? (t + "").trim().startsWith("<svg") ? t : `
2505
+ <el-icon><${t} /></el-icon>
2506
+ ` : "";
2507
+ }
2508
+ function V(t, i, s = ":") {
2509
+ return `${s}${t}="${i}"`;
2510
+ }
2511
+ function D(t, i, s = !1) {
2512
+ return (i || s) && t ? `
2513
+ <template #${t}>
2514
+ ${i}
2515
+ </template>
2516
+ ` : "";
2517
+ }
2518
+ function j(t, i) {
2519
+ if (t) {
2520
+ var s = typeof t;
2521
+ if (s == "boolean")
2522
+ return V(i, t, ":");
2523
+ if (s == "number") {
2524
+ if (!Bt(t) && !isNaN(t))
2525
+ return V(i, t, ":");
2526
+ } else
2527
+ return s == "object" ? V(i, H(t), ":") : V(i, t, "");
2528
+ }
2529
+ return "";
2530
+ }
2531
+ const ls = () => {
2532
+ var t = {};
2533
+ return Ge(E).forEach((i) => {
2534
+ t[i.label] = as;
2535
+ }), t[E.textarea + ""] = Ai, t[E.radio + ""] = Ci, t[E.checkbox + ""] = $i, t[E.select + ""] = ji, t[E.pictureUpload + ""] = Wi, t[E.fileUpload + ""] = Ki, t[E.richEditor + ""] = Ui, t[E.cascader + ""] = zi, t[E.link + ""] = qi, t[E.staticText + ""] = ss, t[E.htmlText + ""] = ns, t[E.card + ""] = Oi, t[E.router + ""] = Fi, t[E.descriptions + ""] = Ji, t[E.dropdown + ""] = Gi, t[E.image + ""] = Vi, t[E.eltable + ""] = Mi, t[E.carousel + ""] = et, t[E.steps + ""] = et, t[E.collapse + ""] = et, t[E.breadcrumb + ""] = et, t[E.menu + ""] = et, t;
2536
+ }, us = ls();
2537
+ function ps(t, i) {
2538
+ const s = us[t.type];
2539
+ return ` ${s ? s(t, i) : null}`;
2540
+ }
2541
+ function hs(t, i = !1) {
2542
+ const s = Wt(t), e = qe(s, !0);
2543
+ var r = X(t, {
2544
+ getFieldModel: (u) => {
2545
+ var o;
2546
+ return (o = e == null ? void 0 : e.find((l) => l.key === u)) == null ? void 0 : o.path;
2547
+ }
2548
+ });
2549
+ return r;
2550
+ }
2551
+ const fs = function(t) {
2552
+ return `
2553
+ ${B.getValue(t == null ? void 0 : t.cssCode) || ""}
2554
+ `;
2555
+ }, cs = function(t, i = !1) {
2556
+ return "";
2557
+ }, Cs = (t, i, s = !1) => {
2558
+ var e = hs(i, s), a = s ? ii(i) : ei(i), r = fs(t), u = cs(t, s);
2559
+ const o = ft(q.html, e), l = ft(q.javascript, a), v = ft(q.css, r), x = ft(q.css, u);
2560
+ return `
2561
+ ${F(o, "<template>", "</template>", void 0, !0)}
2562
+ ${F(l, `<script${s ? " setup" : ""}>`, "<\/script>", void 0, !0)}
2563
+
2564
+ ${F(v, "<style>", "</style>", void 0, !0)}
2565
+ ${F(x, "<style scoped>", "</style>", void 0, !0)}
2566
+ `;
2567
+ };
2568
+ export {
2569
+ Cs as genSFC
2570
+ };