@gobolt/genesis 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (142) hide show
  1. package/README.md +86 -0
  2. package/dist/AntdIcon-Bsnbyy6g.js +200 -0
  3. package/dist/CheckOutlined-DAynWe12.js +527 -0
  4. package/dist/CloseCircleFilled-ZIY-u-27.js +13 -0
  5. package/dist/Compact-CJBo3f0u.js +185 -0
  6. package/dist/ContextIsolator-CGkdKtc3.js +20 -0
  7. package/dist/ExclamationCircleFilled-BICVVQIg.js +21 -0
  8. package/dist/Form-Cylpi4M4.js +1815 -0
  9. package/dist/Overflow-CP1M4Z0s.js +369 -0
  10. package/dist/SearchOutlined-DuzJkIiQ.js +52 -0
  11. package/dist/TextArea-3MOYYuAQ.js +1680 -0
  12. package/dist/bundle.css +1 -0
  13. package/dist/button-BNV2qdrP.js +1392 -0
  14. package/dist/compact-item-DH13cl8A.js +61 -0
  15. package/dist/components/atoms/button/Button.d.ts +12 -0
  16. package/dist/components/atoms/button/Button.js +27 -0
  17. package/dist/components/atoms/button/__stories__/Button.stories.d.ts +13 -0
  18. package/dist/components/atoms/button/index.d.ts +2 -0
  19. package/dist/components/atoms/button/index.js +4 -0
  20. package/dist/components/atoms/button/styles.d.ts +12 -0
  21. package/dist/components/atoms/button/styles.js +71 -0
  22. package/dist/components/atoms/checkbox/Checkbox.d.ts +10 -0
  23. package/dist/components/atoms/checkbox/Checkbox.js +13 -0
  24. package/dist/components/atoms/checkbox/__stories__/Checkbox.stories.d.ts +8 -0
  25. package/dist/components/atoms/checkbox/__tests__/Checkbox.test.d.ts +1 -0
  26. package/dist/components/atoms/checkbox/__tests__/Checkbox.test.js +18 -0
  27. package/dist/components/atoms/checkbox/index.d.ts +2 -0
  28. package/dist/components/atoms/checkbox/index.js +4 -0
  29. package/dist/components/atoms/checkbox/styles.d.ts +11 -0
  30. package/dist/components/atoms/checkbox/styles.js +582 -0
  31. package/dist/components/atoms/index.d.ts +1 -0
  32. package/dist/components/atoms/index.js +3 -0
  33. package/dist/components/atoms/input/Input.d.ts +11 -0
  34. package/dist/components/atoms/input/Input.js +12 -0
  35. package/dist/components/atoms/input/__stories__/Input.stories.d.ts +10 -0
  36. package/dist/components/atoms/input/__tests__/Input.test.d.ts +1 -0
  37. package/dist/components/atoms/input/__tests__/Input.test.js +28 -0
  38. package/dist/components/atoms/input/index.d.ts +2 -0
  39. package/dist/components/atoms/input/index.js +4 -0
  40. package/dist/components/atoms/input/styles.d.ts +14 -0
  41. package/dist/components/atoms/input/styles.js +415 -0
  42. package/dist/components/atoms/select/Select.d.ts +11 -0
  43. package/dist/components/atoms/select/Select.js +24 -0
  44. package/dist/components/atoms/select/__stories__/Select.stories.d.ts +8 -0
  45. package/dist/components/atoms/select/__tests__/Select.test.d.ts +1 -0
  46. package/dist/components/atoms/select/__tests__/Select.test.js +10735 -0
  47. package/dist/components/atoms/select/index.d.ts +2 -0
  48. package/dist/components/atoms/select/index.js +4 -0
  49. package/dist/components/atoms/select/styles.d.ts +15 -0
  50. package/dist/components/atoms/select/styles.js +3868 -0
  51. package/dist/components/atoms/typography/Typography.d.ts +11 -0
  52. package/dist/components/atoms/typography/Typography.js +44 -0
  53. package/dist/components/atoms/typography/__stories__/Typography.stories.d.ts +12 -0
  54. package/dist/components/atoms/typography/__tests__/Typography.test.d.ts +1 -0
  55. package/dist/components/atoms/typography/__tests__/Typography.test.js +16 -0
  56. package/dist/components/atoms/typography/index.d.ts +2 -0
  57. package/dist/components/atoms/typography/index.js +4 -0
  58. package/dist/components/atoms/typography/styles.d.ts +11 -0
  59. package/dist/components/atoms/typography/styles.js +28 -0
  60. package/dist/components/index.d.js +1 -0
  61. package/dist/components/index.d.ts +14 -0
  62. package/dist/components/index.js +16 -0
  63. package/dist/components/molecules/error-boundary-fallback/ErrorBoundaryFallback.d.ts +10 -0
  64. package/dist/components/molecules/error-boundary-fallback/ErrorBoundaryFallback.js +35 -0
  65. package/dist/components/molecules/error-boundary-fallback/__stories__/ErrorBoundaryFallback.stories.d.ts +8 -0
  66. package/dist/components/molecules/error-boundary-fallback/index.d.ts +1 -0
  67. package/dist/components/molecules/error-boundary-fallback/index.js +4 -0
  68. package/dist/components/molecules/error-boundary-fallback/styles.d.ts +1 -0
  69. package/dist/components/molecules/error-boundary-fallback/styles.js +930 -0
  70. package/dist/components/molecules/form/Form.d.ts +15 -0
  71. package/dist/components/molecules/form/Form.js +7 -0
  72. package/dist/components/molecules/form/__stories__/Form.stories.d.ts +7 -0
  73. package/dist/components/molecules/form/__stories__/FormStory.d.ts +1 -0
  74. package/dist/components/molecules/form/__stories__/FormStory.js +90 -0
  75. package/dist/components/molecules/form/index.d.ts +2 -0
  76. package/dist/components/molecules/form/index.js +4 -0
  77. package/dist/constants/index.d.ts +51 -0
  78. package/dist/constants/index.js +54 -0
  79. package/dist/context-CZsFJmh6.js +2093 -0
  80. package/dist/declaration.d.js +1 -0
  81. package/dist/genesis/GenesisThemeBreakdown.d.ts +4 -0
  82. package/dist/genesis/GenesisThemeBreakdown.js +56 -0
  83. package/dist/genesis/GenesisThemeDemo.d.ts +8 -0
  84. package/dist/genesis/GenesisThemeDemo.js +8 -0
  85. package/dist/genesis/GenesisThemeDemo.stories.d.ts +7 -0
  86. package/dist/genesis/styles.d.ts +12 -0
  87. package/dist/genesis/styles.js +4038 -0
  88. package/dist/index-3MWkSVA1.js +96 -0
  89. package/dist/index-BPtFqhcp.js +19110 -0
  90. package/dist/index-BQO27mgE.js +402 -0
  91. package/dist/index-BWys7dkb.js +4462 -0
  92. package/dist/index-C7kFNqp2.js +276 -0
  93. package/dist/index-D1v_7IIx.js +1057 -0
  94. package/dist/index-SAAXFt-P.js +946 -0
  95. package/dist/index-VDH3iLaC.js +884 -0
  96. package/dist/index.d.ts +2 -0
  97. package/dist/index.js +20 -0
  98. package/dist/isVisible-CNQjrJPN.js +366 -0
  99. package/dist/magic-string.es-BkUFmFT4.js +858 -0
  100. package/dist/presetColors-Cl8UP3Nw.js +4 -0
  101. package/dist/providers/GenesisProvider.d.ts +8 -0
  102. package/dist/providers/GenesisProvider.js +7 -0
  103. package/dist/providers/ThemeProvider.d.ts +9 -0
  104. package/dist/providers/ThemeProvider.js +18 -0
  105. package/dist/providers/index.d.ts +2 -0
  106. package/dist/providers/index.js +6 -0
  107. package/dist/reactNode-sKPeiqPL.js +12 -0
  108. package/dist/setup-CMYVZCPF.js +33883 -0
  109. package/dist/styled-components.browser.esm-CZ1XM4o4.js +1144 -0
  110. package/dist/styles/design-tokens/border-tokens/BorderTokenList.d.ts +1 -0
  111. package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +37 -0
  112. package/dist/styles/design-tokens/border-tokens/BorderTokens.stories.d.ts +6 -0
  113. package/dist/styles/design-tokens/color-tokens/ColorTokens.stories.d.ts +7 -0
  114. package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.d.ts +3 -0
  115. package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +36 -0
  116. package/dist/styles/design-tokens/sizing-tokens/index.stories.d.ts +7 -0
  117. package/dist/styles/design-tokens/typography/TypographyTokens.stories.d.ts +7 -0
  118. package/dist/styles/design-tokens/variables.d.ts +704 -0
  119. package/dist/styles/design-tokens/variables.js +697 -0
  120. package/dist/styles/global-styles.d.ts +1 -0
  121. package/dist/styles/global-styles.js +35 -0
  122. package/dist/styles/theme/genesis-theme.d.ts +75 -0
  123. package/dist/styles/theme/genesis-theme.js +896 -0
  124. package/dist/styles/theme/genesis-theme.types.d.ts +162 -0
  125. package/dist/styles/theme/genesis-theme.types.js +4 -0
  126. package/dist/styles/theme/global-styles.d.ts +1 -0
  127. package/dist/styles/theme/global-styles.js +35 -0
  128. package/dist/styles/theme/index.d.ts +1 -0
  129. package/dist/styles/theme/index.js +9 -0
  130. package/dist/test/setup.d.ts +5 -0
  131. package/dist/test/setup.js +7 -0
  132. package/dist/useVariants-CEpw6Ww6.js +29 -0
  133. package/dist/utils/getAppointmentColor.d.ts +4 -0
  134. package/dist/utils/getAppointmentColor.js +91 -0
  135. package/dist/utils/isAllEnglishString.d.ts +1 -0
  136. package/dist/utils/isAllEnglishString.js +8 -0
  137. package/dist/utils/isAllEnglishString.test.d.ts +1 -0
  138. package/dist/utils/isAllEnglishString.test.js +8 -0
  139. package/dist/utils/parseAddress.d.ts +3 -0
  140. package/dist/utils/parseAddress.js +19 -0
  141. package/dist/vite-env.d.js +1 -0
  142. package/package.json +115 -0
@@ -0,0 +1,858 @@
1
+ import { c as ht } from "./index-BPtFqhcp.js";
2
+ var q = { exports: {} };
3
+ (function(E, t) {
4
+ (function(e, n) {
5
+ n(t);
6
+ })(ht, function(e) {
7
+ const r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", u = new Uint8Array(64), f = new Uint8Array(128);
8
+ for (let a = 0; a < r.length; a++) {
9
+ const h = r.charCodeAt(a);
10
+ u[a] = h, f[h] = a;
11
+ }
12
+ function o(a, h) {
13
+ let i = 0, l = 0, d = 0;
14
+ do {
15
+ const b = a.next();
16
+ d = f[b], i |= (d & 31) << l, l += 5;
17
+ } while (d & 32);
18
+ const g = i & 1;
19
+ return i >>>= 1, g && (i = -2147483648 | -i), h + i;
20
+ }
21
+ function c(a, h, i) {
22
+ let l = h - i;
23
+ l = l < 0 ? -l << 1 | 1 : l << 1;
24
+ do {
25
+ let d = l & 31;
26
+ l >>>= 5, l > 0 && (d |= 32), a.write(u[d]);
27
+ } while (l > 0);
28
+ return h;
29
+ }
30
+ function k(a, h) {
31
+ return a.pos >= h ? !1 : a.peek() !== 44;
32
+ }
33
+ const O = 1024 * 16, z = typeof TextDecoder < "u" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer < "u" ? {
34
+ decode(a) {
35
+ return Buffer.from(a.buffer, a.byteOffset, a.byteLength).toString();
36
+ }
37
+ } : {
38
+ decode(a) {
39
+ let h = "";
40
+ for (let i = 0; i < a.length; i++)
41
+ h += String.fromCharCode(a[i]);
42
+ return h;
43
+ }
44
+ };
45
+ class P {
46
+ constructor() {
47
+ this.pos = 0, this.out = "", this.buffer = new Uint8Array(O);
48
+ }
49
+ write(h) {
50
+ const { buffer: i } = this;
51
+ i[this.pos++] = h, this.pos === O && (this.out += z.decode(i), this.pos = 0);
52
+ }
53
+ flush() {
54
+ const { buffer: h, out: i, pos: l } = this;
55
+ return l > 0 ? i + z.decode(h.subarray(0, l)) : i;
56
+ }
57
+ }
58
+ class G {
59
+ constructor(h) {
60
+ this.pos = 0, this.buffer = h;
61
+ }
62
+ next() {
63
+ return this.buffer.charCodeAt(this.pos++);
64
+ }
65
+ peek() {
66
+ return this.buffer.charCodeAt(this.pos);
67
+ }
68
+ indexOf(h) {
69
+ const { buffer: i, pos: l } = this, d = i.indexOf(h, l);
70
+ return d === -1 ? i.length : d;
71
+ }
72
+ }
73
+ const F = [];
74
+ function X(a) {
75
+ const { length: h } = a, i = new G(a), l = [], d = [];
76
+ let g = 0;
77
+ for (; i.pos < h; i.pos++) {
78
+ g = o(i, g);
79
+ const b = o(i, 0);
80
+ if (!k(i, h)) {
81
+ const v = d.pop();
82
+ v[2] = g, v[3] = b;
83
+ continue;
84
+ }
85
+ const m = o(i, 0), w = o(i, 0) & 1 ? [g, b, 0, 0, m, o(i, 0)] : [g, b, 0, 0, m];
86
+ let y = F;
87
+ if (k(i, h)) {
88
+ y = [];
89
+ do {
90
+ const v = o(i, 0);
91
+ y.push(v);
92
+ } while (k(i, h));
93
+ }
94
+ w.vars = y, l.push(w), d.push(w);
95
+ }
96
+ return l;
97
+ }
98
+ function Z(a) {
99
+ const h = new P();
100
+ for (let i = 0; i < a.length; )
101
+ i = H(a, i, h, [0]);
102
+ return h.flush();
103
+ }
104
+ function H(a, h, i, l) {
105
+ const d = a[h], { 0: g, 1: b, 2: m, 3: S, 4: C, vars: w } = d;
106
+ h > 0 && i.write(44), l[0] = c(i, g, l[0]), c(i, b, 0), c(i, C, 0);
107
+ const y = d.length === 6 ? 1 : 0;
108
+ c(i, y, 0), d.length === 6 && c(i, d[5], 0);
109
+ for (const v of w)
110
+ c(i, v, 0);
111
+ for (h++; h < a.length; ) {
112
+ const v = a[h], { 0: p, 1: x } = v;
113
+ if (p > m || p === m && x >= S)
114
+ break;
115
+ h = H(a, h, i, l);
116
+ }
117
+ return i.write(44), l[0] = c(i, m, l[0]), c(i, S, 0), h;
118
+ }
119
+ function V(a) {
120
+ const { length: h } = a, i = new G(a), l = [], d = [];
121
+ let g = 0, b = 0, m = 0, S = 0, C = 0, w = 0, y = 0, v = 0;
122
+ do {
123
+ const p = i.indexOf(";");
124
+ let x = 0;
125
+ for (; i.pos < p; i.pos++) {
126
+ if (x = o(i, x), !k(i, p)) {
127
+ const L = d.pop();
128
+ L[2] = g, L[3] = x;
129
+ continue;
130
+ }
131
+ const R = o(i, 0), U = R & 1, A = R & 2, T = R & 4;
132
+ let Y = null, D = F, _;
133
+ if (U) {
134
+ const L = o(i, b);
135
+ m = o(i, b === L ? m : 0), b = L, _ = [g, x, 0, 0, L, m];
136
+ } else
137
+ _ = [g, x, 0, 0];
138
+ if (_.isScope = !!T, A) {
139
+ const L = S, I = C;
140
+ S = o(i, S);
141
+ const j = L === S;
142
+ C = o(i, j ? C : 0), w = o(i, j && I === C ? w : 0), Y = [S, C, w];
143
+ }
144
+ if (_.callsite = Y, k(i, p)) {
145
+ D = [];
146
+ do {
147
+ y = g, v = x;
148
+ const L = o(i, 0);
149
+ let I;
150
+ if (L < -1) {
151
+ I = [[o(i, 0)]];
152
+ for (let j = -1; j > L; j--) {
153
+ const rt = y;
154
+ y = o(i, y), v = o(i, y === rt ? v : 0);
155
+ const ot = o(i, 0);
156
+ I.push([ot, y, v]);
157
+ }
158
+ } else
159
+ I = [[L]];
160
+ D.push(I);
161
+ } while (k(i, p));
162
+ }
163
+ _.bindings = D, l.push(_), d.push(_);
164
+ }
165
+ g++, i.pos = p + 1;
166
+ } while (i.pos < h);
167
+ return l;
168
+ }
169
+ function tt(a) {
170
+ if (a.length === 0)
171
+ return "";
172
+ const h = new P();
173
+ for (let i = 0; i < a.length; )
174
+ i = J(a, i, h, [0, 0, 0, 0, 0, 0, 0]);
175
+ return h.flush();
176
+ }
177
+ function J(a, h, i, l) {
178
+ const d = a[h], { 0: g, 1: b, 2: m, 3: S, isScope: C, callsite: w, bindings: y } = d;
179
+ l[0] < g ? (W(i, l[0], g), l[0] = g, l[1] = 0) : h > 0 && i.write(44), l[1] = c(i, d[1], l[1]);
180
+ const v = (d.length === 6 ? 1 : 0) | (w ? 2 : 0) | (C ? 4 : 0);
181
+ if (c(i, v, 0), d.length === 6) {
182
+ const { 4: p, 5: x } = d;
183
+ p !== l[2] && (l[3] = 0), l[2] = c(i, p, l[2]), l[3] = c(i, x, l[3]);
184
+ }
185
+ if (w) {
186
+ const { 0: p, 1: x, 2: R } = d.callsite;
187
+ p !== l[4] ? (l[5] = 0, l[6] = 0) : x !== l[5] && (l[6] = 0), l[4] = c(i, p, l[4]), l[5] = c(i, x, l[5]), l[6] = c(i, R, l[6]);
188
+ }
189
+ if (y)
190
+ for (const p of y) {
191
+ p.length > 1 && c(i, -p.length, 0);
192
+ const x = p[0][0];
193
+ c(i, x, 0);
194
+ let R = g, U = b;
195
+ for (let A = 1; A < p.length; A++) {
196
+ const T = p[A];
197
+ R = c(i, T[1], R), U = c(i, T[2], U), c(i, T[0], 0);
198
+ }
199
+ }
200
+ for (h++; h < a.length; ) {
201
+ const p = a[h], { 0: x, 1: R } = p;
202
+ if (x > m || x === m && R >= S)
203
+ break;
204
+ h = J(a, h, i, l);
205
+ }
206
+ return l[0] < m ? (W(i, l[0], m), l[0] = m, l[1] = 0) : i.write(44), l[1] = c(i, S, l[1]), h;
207
+ }
208
+ function W(a, h, i) {
209
+ do
210
+ a.write(59);
211
+ while (++h < i);
212
+ }
213
+ function et(a) {
214
+ const { length: h } = a, i = new G(a), l = [];
215
+ let d = 0, g = 0, b = 0, m = 0, S = 0;
216
+ do {
217
+ const C = i.indexOf(";"), w = [];
218
+ let y = !0, v = 0;
219
+ for (d = 0; i.pos < C; ) {
220
+ let p;
221
+ d = o(i, d), d < v && (y = !1), v = d, k(i, C) ? (g = o(i, g), b = o(i, b), m = o(i, m), k(i, C) ? (S = o(i, S), p = [d, g, b, m, S]) : p = [d, g, b, m]) : p = [d], w.push(p), i.pos++;
222
+ }
223
+ y || nt(w), l.push(w), i.pos = C + 1;
224
+ } while (i.pos <= h);
225
+ return l;
226
+ }
227
+ function nt(a) {
228
+ a.sort(it);
229
+ }
230
+ function it(a, h) {
231
+ return a[0] - h[0];
232
+ }
233
+ function st(a) {
234
+ const h = new P();
235
+ let i = 0, l = 0, d = 0, g = 0;
236
+ for (let b = 0; b < a.length; b++) {
237
+ const m = a[b];
238
+ if (b > 0 && h.write(59), m.length === 0)
239
+ continue;
240
+ let S = 0;
241
+ for (let C = 0; C < m.length; C++) {
242
+ const w = m[C];
243
+ C > 0 && h.write(44), S = c(h, w[0], S), w.length !== 1 && (i = c(h, w[1], i), l = c(h, w[2], l), d = c(h, w[3], d), w.length !== 4 && (g = c(h, w[4], g)));
244
+ }
245
+ }
246
+ return h.flush();
247
+ }
248
+ e.decode = et, e.decodeGeneratedRanges = V, e.decodeOriginalScopes = X, e.encode = st, e.encodeGeneratedRanges = tt, e.encodeOriginalScopes = Z, Object.defineProperty(e, "__esModule", { value: !0 });
249
+ });
250
+ })(q, q.exports);
251
+ var lt = q.exports;
252
+ class B {
253
+ constructor(t) {
254
+ this.bits = t instanceof B ? t.bits.slice() : [];
255
+ }
256
+ add(t) {
257
+ this.bits[t >> 5] |= 1 << (t & 31);
258
+ }
259
+ has(t) {
260
+ return !!(this.bits[t >> 5] & 1 << (t & 31));
261
+ }
262
+ }
263
+ class M {
264
+ constructor(t, e, n) {
265
+ this.start = t, this.end = e, this.original = n, this.intro = "", this.outro = "", this.content = n, this.storeName = !1, this.edited = !1, this.previous = null, this.next = null;
266
+ }
267
+ appendLeft(t) {
268
+ this.outro += t;
269
+ }
270
+ appendRight(t) {
271
+ this.intro = this.intro + t;
272
+ }
273
+ clone() {
274
+ const t = new M(this.start, this.end, this.original);
275
+ return t.intro = this.intro, t.outro = this.outro, t.content = this.content, t.storeName = this.storeName, t.edited = this.edited, t;
276
+ }
277
+ contains(t) {
278
+ return this.start < t && t < this.end;
279
+ }
280
+ eachNext(t) {
281
+ let e = this;
282
+ for (; e; )
283
+ t(e), e = e.next;
284
+ }
285
+ eachPrevious(t) {
286
+ let e = this;
287
+ for (; e; )
288
+ t(e), e = e.previous;
289
+ }
290
+ edit(t, e, n) {
291
+ return this.content = t, n || (this.intro = "", this.outro = ""), this.storeName = e, this.edited = !0, this;
292
+ }
293
+ prependLeft(t) {
294
+ this.outro = t + this.outro;
295
+ }
296
+ prependRight(t) {
297
+ this.intro = t + this.intro;
298
+ }
299
+ reset() {
300
+ this.intro = "", this.outro = "", this.edited && (this.content = this.original, this.storeName = !1, this.edited = !1);
301
+ }
302
+ split(t) {
303
+ const e = t - this.start, n = this.original.slice(0, e), s = this.original.slice(e);
304
+ this.original = n;
305
+ const r = new M(t, this.end, s);
306
+ return r.outro = this.outro, this.outro = "", this.end = t, this.edited ? (r.edit("", !1), this.content = "") : this.content = n, r.next = this.next, r.next && (r.next.previous = r), r.previous = this, this.next = r, r;
307
+ }
308
+ toString() {
309
+ return this.intro + this.content + this.outro;
310
+ }
311
+ trimEnd(t) {
312
+ if (this.outro = this.outro.replace(t, ""), this.outro.length) return !0;
313
+ const e = this.content.replace(t, "");
314
+ if (e.length)
315
+ return e !== this.content && (this.split(this.start + e.length).edit("", void 0, !0), this.edited && this.edit(e, this.storeName, !0)), !0;
316
+ if (this.edit("", void 0, !0), this.intro = this.intro.replace(t, ""), this.intro.length) return !0;
317
+ }
318
+ trimStart(t) {
319
+ if (this.intro = this.intro.replace(t, ""), this.intro.length) return !0;
320
+ const e = this.content.replace(t, "");
321
+ if (e.length) {
322
+ if (e !== this.content) {
323
+ const n = this.split(this.end - e.length);
324
+ this.edited && n.edit(e, this.storeName, !0), this.edit("", void 0, !0);
325
+ }
326
+ return !0;
327
+ } else if (this.edit("", void 0, !0), this.outro = this.outro.replace(t, ""), this.outro.length) return !0;
328
+ }
329
+ }
330
+ function ut() {
331
+ return typeof globalThis < "u" && typeof globalThis.btoa == "function" ? (E) => globalThis.btoa(unescape(encodeURIComponent(E))) : typeof Buffer == "function" ? (E) => Buffer.from(E, "utf-8").toString("base64") : () => {
332
+ throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.");
333
+ };
334
+ }
335
+ const ct = /* @__PURE__ */ ut();
336
+ class at {
337
+ constructor(t) {
338
+ this.version = 3, this.file = t.file, this.sources = t.sources, this.sourcesContent = t.sourcesContent, this.names = t.names, this.mappings = lt.encode(t.mappings), typeof t.x_google_ignoreList < "u" && (this.x_google_ignoreList = t.x_google_ignoreList), typeof t.debugId < "u" && (this.debugId = t.debugId);
339
+ }
340
+ toString() {
341
+ return JSON.stringify(this);
342
+ }
343
+ toUrl() {
344
+ return "data:application/json;charset=utf-8;base64," + ct(this.toString());
345
+ }
346
+ }
347
+ function ft(E) {
348
+ const t = E.split(`
349
+ `), e = t.filter((r) => /^\t+/.test(r)), n = t.filter((r) => /^ {2,}/.test(r));
350
+ if (e.length === 0 && n.length === 0)
351
+ return null;
352
+ if (e.length >= n.length)
353
+ return " ";
354
+ const s = n.reduce((r, u) => {
355
+ const f = /^ +/.exec(u)[0].length;
356
+ return Math.min(f, r);
357
+ }, 1 / 0);
358
+ return new Array(s + 1).join(" ");
359
+ }
360
+ function dt(E, t) {
361
+ const e = E.split(/[/\\]/), n = t.split(/[/\\]/);
362
+ for (e.pop(); e[0] === n[0]; )
363
+ e.shift(), n.shift();
364
+ if (e.length) {
365
+ let s = e.length;
366
+ for (; s--; ) e[s] = "..";
367
+ }
368
+ return e.concat(n).join("/");
369
+ }
370
+ const gt = Object.prototype.toString;
371
+ function pt(E) {
372
+ return gt.call(E) === "[object Object]";
373
+ }
374
+ function K(E) {
375
+ const t = E.split(`
376
+ `), e = [];
377
+ for (let n = 0, s = 0; n < t.length; n++)
378
+ e.push(s), s += t[n].length + 1;
379
+ return function(s) {
380
+ let r = 0, u = e.length;
381
+ for (; r < u; ) {
382
+ const c = r + u >> 1;
383
+ s < e[c] ? u = c : r = c + 1;
384
+ }
385
+ const f = r - 1, o = s - e[f];
386
+ return { line: f, column: o };
387
+ };
388
+ }
389
+ const mt = /\w/;
390
+ class wt {
391
+ constructor(t) {
392
+ this.hires = t, this.generatedCodeLine = 0, this.generatedCodeColumn = 0, this.raw = [], this.rawSegments = this.raw[this.generatedCodeLine] = [], this.pending = null;
393
+ }
394
+ addEdit(t, e, n, s) {
395
+ if (e.length) {
396
+ const r = e.length - 1;
397
+ let u = e.indexOf(`
398
+ `, 0), f = -1;
399
+ for (; u >= 0 && r > u; ) {
400
+ const c = [this.generatedCodeColumn, t, n.line, n.column];
401
+ s >= 0 && c.push(s), this.rawSegments.push(c), this.generatedCodeLine += 1, this.raw[this.generatedCodeLine] = this.rawSegments = [], this.generatedCodeColumn = 0, f = u, u = e.indexOf(`
402
+ `, u + 1);
403
+ }
404
+ const o = [this.generatedCodeColumn, t, n.line, n.column];
405
+ s >= 0 && o.push(s), this.rawSegments.push(o), this.advance(e.slice(f + 1));
406
+ } else this.pending && (this.rawSegments.push(this.pending), this.advance(e));
407
+ this.pending = null;
408
+ }
409
+ addUneditedChunk(t, e, n, s, r) {
410
+ let u = e.start, f = !0, o = !1;
411
+ for (; u < e.end; ) {
412
+ if (n[u] === `
413
+ `)
414
+ s.line += 1, s.column = 0, this.generatedCodeLine += 1, this.raw[this.generatedCodeLine] = this.rawSegments = [], this.generatedCodeColumn = 0, f = !0, o = !1;
415
+ else {
416
+ if (this.hires || f || r.has(u)) {
417
+ const c = [this.generatedCodeColumn, t, s.line, s.column];
418
+ this.hires === "boundary" ? mt.test(n[u]) ? o || (this.rawSegments.push(c), o = !0) : (this.rawSegments.push(c), o = !1) : this.rawSegments.push(c);
419
+ }
420
+ s.column += 1, this.generatedCodeColumn += 1, f = !1;
421
+ }
422
+ u += 1;
423
+ }
424
+ this.pending = null;
425
+ }
426
+ advance(t) {
427
+ if (!t) return;
428
+ const e = t.split(`
429
+ `);
430
+ if (e.length > 1) {
431
+ for (let n = 0; n < e.length - 1; n++)
432
+ this.generatedCodeLine++, this.raw[this.generatedCodeLine] = this.rawSegments = [];
433
+ this.generatedCodeColumn = 0;
434
+ }
435
+ this.generatedCodeColumn += e[e.length - 1].length;
436
+ }
437
+ }
438
+ const $ = `
439
+ `, N = {
440
+ insertLeft: !1,
441
+ insertRight: !1,
442
+ storeName: !1
443
+ };
444
+ class Q {
445
+ constructor(t, e = {}) {
446
+ const n = new M(0, t.length, t);
447
+ Object.defineProperties(this, {
448
+ original: { writable: !0, value: t },
449
+ outro: { writable: !0, value: "" },
450
+ intro: { writable: !0, value: "" },
451
+ firstChunk: { writable: !0, value: n },
452
+ lastChunk: { writable: !0, value: n },
453
+ lastSearchedChunk: { writable: !0, value: n },
454
+ byStart: { writable: !0, value: {} },
455
+ byEnd: { writable: !0, value: {} },
456
+ filename: { writable: !0, value: e.filename },
457
+ indentExclusionRanges: { writable: !0, value: e.indentExclusionRanges },
458
+ sourcemapLocations: { writable: !0, value: new B() },
459
+ storedNames: { writable: !0, value: {} },
460
+ indentStr: { writable: !0, value: void 0 },
461
+ ignoreList: { writable: !0, value: e.ignoreList },
462
+ offset: { writable: !0, value: e.offset || 0 }
463
+ }), this.byStart[0] = n, this.byEnd[t.length] = n;
464
+ }
465
+ addSourcemapLocation(t) {
466
+ this.sourcemapLocations.add(t);
467
+ }
468
+ append(t) {
469
+ if (typeof t != "string") throw new TypeError("outro content must be a string");
470
+ return this.outro += t, this;
471
+ }
472
+ appendLeft(t, e) {
473
+ if (t = t + this.offset, typeof e != "string") throw new TypeError("inserted content must be a string");
474
+ this._split(t);
475
+ const n = this.byEnd[t];
476
+ return n ? n.appendLeft(e) : this.intro += e, this;
477
+ }
478
+ appendRight(t, e) {
479
+ if (t = t + this.offset, typeof e != "string") throw new TypeError("inserted content must be a string");
480
+ this._split(t);
481
+ const n = this.byStart[t];
482
+ return n ? n.appendRight(e) : this.outro += e, this;
483
+ }
484
+ clone() {
485
+ const t = new Q(this.original, { filename: this.filename, offset: this.offset });
486
+ let e = this.firstChunk, n = t.firstChunk = t.lastSearchedChunk = e.clone();
487
+ for (; e; ) {
488
+ t.byStart[n.start] = n, t.byEnd[n.end] = n;
489
+ const s = e.next, r = s && s.clone();
490
+ r && (n.next = r, r.previous = n, n = r), e = s;
491
+ }
492
+ return t.lastChunk = n, this.indentExclusionRanges && (t.indentExclusionRanges = this.indentExclusionRanges.slice()), t.sourcemapLocations = new B(this.sourcemapLocations), t.intro = this.intro, t.outro = this.outro, t;
493
+ }
494
+ generateDecodedMap(t) {
495
+ t = t || {};
496
+ const e = 0, n = Object.keys(this.storedNames), s = new wt(t.hires), r = K(this.original);
497
+ return this.intro && s.advance(this.intro), this.firstChunk.eachNext((u) => {
498
+ const f = r(u.start);
499
+ u.intro.length && s.advance(u.intro), u.edited ? s.addEdit(
500
+ e,
501
+ u.content,
502
+ f,
503
+ u.storeName ? n.indexOf(u.original) : -1
504
+ ) : s.addUneditedChunk(e, u, this.original, f, this.sourcemapLocations), u.outro.length && s.advance(u.outro);
505
+ }), {
506
+ file: t.file ? t.file.split(/[/\\]/).pop() : void 0,
507
+ sources: [
508
+ t.source ? dt(t.file || "", t.source) : t.file || ""
509
+ ],
510
+ sourcesContent: t.includeContent ? [this.original] : void 0,
511
+ names: n,
512
+ mappings: s.raw,
513
+ x_google_ignoreList: this.ignoreList ? [e] : void 0
514
+ };
515
+ }
516
+ generateMap(t) {
517
+ return new at(this.generateDecodedMap(t));
518
+ }
519
+ _ensureindentStr() {
520
+ this.indentStr === void 0 && (this.indentStr = ft(this.original));
521
+ }
522
+ _getRawIndentString() {
523
+ return this._ensureindentStr(), this.indentStr;
524
+ }
525
+ getIndentString() {
526
+ return this._ensureindentStr(), this.indentStr === null ? " " : this.indentStr;
527
+ }
528
+ indent(t, e) {
529
+ const n = /^[^\r\n]/gm;
530
+ if (pt(t) && (e = t, t = void 0), t === void 0 && (this._ensureindentStr(), t = this.indentStr || " "), t === "") return this;
531
+ e = e || {};
532
+ const s = {};
533
+ e.exclude && (typeof e.exclude[0] == "number" ? [e.exclude] : e.exclude).forEach((k) => {
534
+ for (let O = k[0]; O < k[1]; O += 1)
535
+ s[O] = !0;
536
+ });
537
+ let r = e.indentStart !== !1;
538
+ const u = (c) => r ? `${t}${c}` : (r = !0, c);
539
+ this.intro = this.intro.replace(n, u);
540
+ let f = 0, o = this.firstChunk;
541
+ for (; o; ) {
542
+ const c = o.end;
543
+ if (o.edited)
544
+ s[f] || (o.content = o.content.replace(n, u), o.content.length && (r = o.content[o.content.length - 1] === `
545
+ `));
546
+ else
547
+ for (f = o.start; f < c; ) {
548
+ if (!s[f]) {
549
+ const k = this.original[f];
550
+ k === `
551
+ ` ? r = !0 : k !== "\r" && r && (r = !1, f === o.start || (this._splitChunk(o, f), o = o.next), o.prependRight(t));
552
+ }
553
+ f += 1;
554
+ }
555
+ f = o.end, o = o.next;
556
+ }
557
+ return this.outro = this.outro.replace(n, u), this;
558
+ }
559
+ insert() {
560
+ throw new Error(
561
+ "magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)"
562
+ );
563
+ }
564
+ insertLeft(t, e) {
565
+ return N.insertLeft || (console.warn(
566
+ "magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"
567
+ ), N.insertLeft = !0), this.appendLeft(t, e);
568
+ }
569
+ insertRight(t, e) {
570
+ return N.insertRight || (console.warn(
571
+ "magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"
572
+ ), N.insertRight = !0), this.prependRight(t, e);
573
+ }
574
+ move(t, e, n) {
575
+ if (t = t + this.offset, e = e + this.offset, n = n + this.offset, n >= t && n <= e) throw new Error("Cannot move a selection inside itself");
576
+ this._split(t), this._split(e), this._split(n);
577
+ const s = this.byStart[t], r = this.byEnd[e], u = s.previous, f = r.next, o = this.byStart[n];
578
+ if (!o && r === this.lastChunk) return this;
579
+ const c = o ? o.previous : this.lastChunk;
580
+ return u && (u.next = f), f && (f.previous = u), c && (c.next = s), o && (o.previous = r), s.previous || (this.firstChunk = r.next), r.next || (this.lastChunk = s.previous, this.lastChunk.next = null), s.previous = c, r.next = o || null, c || (this.firstChunk = s), o || (this.lastChunk = r), this;
581
+ }
582
+ overwrite(t, e, n, s) {
583
+ return s = s || {}, this.update(t, e, n, { ...s, overwrite: !s.contentOnly });
584
+ }
585
+ update(t, e, n, s) {
586
+ if (t = t + this.offset, e = e + this.offset, typeof n != "string") throw new TypeError("replacement content must be a string");
587
+ if (this.original.length !== 0) {
588
+ for (; t < 0; ) t += this.original.length;
589
+ for (; e < 0; ) e += this.original.length;
590
+ }
591
+ if (e > this.original.length) throw new Error("end is out of bounds");
592
+ if (t === e)
593
+ throw new Error(
594
+ "Cannot overwrite a zero-length range – use appendLeft or prependRight instead"
595
+ );
596
+ this._split(t), this._split(e), s === !0 && (N.storeName || (console.warn(
597
+ "The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"
598
+ ), N.storeName = !0), s = { storeName: !0 });
599
+ const r = s !== void 0 ? s.storeName : !1, u = s !== void 0 ? s.overwrite : !1;
600
+ if (r) {
601
+ const c = this.original.slice(t, e);
602
+ Object.defineProperty(this.storedNames, c, {
603
+ writable: !0,
604
+ value: !0,
605
+ enumerable: !0
606
+ });
607
+ }
608
+ const f = this.byStart[t], o = this.byEnd[e];
609
+ if (f) {
610
+ let c = f;
611
+ for (; c !== o; ) {
612
+ if (c.next !== this.byStart[c.end])
613
+ throw new Error("Cannot overwrite across a split point");
614
+ c = c.next, c.edit("", !1);
615
+ }
616
+ f.edit(n, r, !u);
617
+ } else {
618
+ const c = new M(t, e, "").edit(n, r);
619
+ o.next = c, c.previous = o;
620
+ }
621
+ return this;
622
+ }
623
+ prepend(t) {
624
+ if (typeof t != "string") throw new TypeError("outro content must be a string");
625
+ return this.intro = t + this.intro, this;
626
+ }
627
+ prependLeft(t, e) {
628
+ if (t = t + this.offset, typeof e != "string") throw new TypeError("inserted content must be a string");
629
+ this._split(t);
630
+ const n = this.byEnd[t];
631
+ return n ? n.prependLeft(e) : this.intro = e + this.intro, this;
632
+ }
633
+ prependRight(t, e) {
634
+ if (t = t + this.offset, typeof e != "string") throw new TypeError("inserted content must be a string");
635
+ this._split(t);
636
+ const n = this.byStart[t];
637
+ return n ? n.prependRight(e) : this.outro = e + this.outro, this;
638
+ }
639
+ remove(t, e) {
640
+ if (t = t + this.offset, e = e + this.offset, this.original.length !== 0) {
641
+ for (; t < 0; ) t += this.original.length;
642
+ for (; e < 0; ) e += this.original.length;
643
+ }
644
+ if (t === e) return this;
645
+ if (t < 0 || e > this.original.length) throw new Error("Character is out of bounds");
646
+ if (t > e) throw new Error("end must be greater than start");
647
+ this._split(t), this._split(e);
648
+ let n = this.byStart[t];
649
+ for (; n; )
650
+ n.intro = "", n.outro = "", n.edit(""), n = e > n.end ? this.byStart[n.end] : null;
651
+ return this;
652
+ }
653
+ reset(t, e) {
654
+ if (t = t + this.offset, e = e + this.offset, this.original.length !== 0) {
655
+ for (; t < 0; ) t += this.original.length;
656
+ for (; e < 0; ) e += this.original.length;
657
+ }
658
+ if (t === e) return this;
659
+ if (t < 0 || e > this.original.length) throw new Error("Character is out of bounds");
660
+ if (t > e) throw new Error("end must be greater than start");
661
+ this._split(t), this._split(e);
662
+ let n = this.byStart[t];
663
+ for (; n; )
664
+ n.reset(), n = e > n.end ? this.byStart[n.end] : null;
665
+ return this;
666
+ }
667
+ lastChar() {
668
+ if (this.outro.length) return this.outro[this.outro.length - 1];
669
+ let t = this.lastChunk;
670
+ do {
671
+ if (t.outro.length) return t.outro[t.outro.length - 1];
672
+ if (t.content.length) return t.content[t.content.length - 1];
673
+ if (t.intro.length) return t.intro[t.intro.length - 1];
674
+ } while (t = t.previous);
675
+ return this.intro.length ? this.intro[this.intro.length - 1] : "";
676
+ }
677
+ lastLine() {
678
+ let t = this.outro.lastIndexOf($);
679
+ if (t !== -1) return this.outro.substr(t + 1);
680
+ let e = this.outro, n = this.lastChunk;
681
+ do {
682
+ if (n.outro.length > 0) {
683
+ if (t = n.outro.lastIndexOf($), t !== -1) return n.outro.substr(t + 1) + e;
684
+ e = n.outro + e;
685
+ }
686
+ if (n.content.length > 0) {
687
+ if (t = n.content.lastIndexOf($), t !== -1) return n.content.substr(t + 1) + e;
688
+ e = n.content + e;
689
+ }
690
+ if (n.intro.length > 0) {
691
+ if (t = n.intro.lastIndexOf($), t !== -1) return n.intro.substr(t + 1) + e;
692
+ e = n.intro + e;
693
+ }
694
+ } while (n = n.previous);
695
+ return t = this.intro.lastIndexOf($), t !== -1 ? this.intro.substr(t + 1) + e : this.intro + e;
696
+ }
697
+ slice(t = 0, e = this.original.length - this.offset) {
698
+ if (t = t + this.offset, e = e + this.offset, this.original.length !== 0) {
699
+ for (; t < 0; ) t += this.original.length;
700
+ for (; e < 0; ) e += this.original.length;
701
+ }
702
+ let n = "", s = this.firstChunk;
703
+ for (; s && (s.start > t || s.end <= t); ) {
704
+ if (s.start < e && s.end >= e)
705
+ return n;
706
+ s = s.next;
707
+ }
708
+ if (s && s.edited && s.start !== t)
709
+ throw new Error(`Cannot use replaced character ${t} as slice start anchor.`);
710
+ const r = s;
711
+ for (; s; ) {
712
+ s.intro && (r !== s || s.start === t) && (n += s.intro);
713
+ const u = s.start < e && s.end >= e;
714
+ if (u && s.edited && s.end !== e)
715
+ throw new Error(`Cannot use replaced character ${e} as slice end anchor.`);
716
+ const f = r === s ? t - s.start : 0, o = u ? s.content.length + e - s.end : s.content.length;
717
+ if (n += s.content.slice(f, o), s.outro && (!u || s.end === e) && (n += s.outro), u)
718
+ break;
719
+ s = s.next;
720
+ }
721
+ return n;
722
+ }
723
+ // TODO deprecate this? not really very useful
724
+ snip(t, e) {
725
+ const n = this.clone();
726
+ return n.remove(0, t), n.remove(e, n.original.length), n;
727
+ }
728
+ _split(t) {
729
+ if (this.byStart[t] || this.byEnd[t]) return;
730
+ let e = this.lastSearchedChunk;
731
+ const n = t > e.end;
732
+ for (; e; ) {
733
+ if (e.contains(t)) return this._splitChunk(e, t);
734
+ e = n ? this.byStart[e.end] : this.byEnd[e.start];
735
+ }
736
+ }
737
+ _splitChunk(t, e) {
738
+ if (t.edited && t.content.length) {
739
+ const s = K(this.original)(e);
740
+ throw new Error(
741
+ `Cannot split a chunk that has already been edited (${s.line}:${s.column} – "${t.original}")`
742
+ );
743
+ }
744
+ const n = t.split(e);
745
+ return this.byEnd[e] = t, this.byStart[e] = n, this.byEnd[n.end] = n, t === this.lastChunk && (this.lastChunk = n), this.lastSearchedChunk = t, !0;
746
+ }
747
+ toString() {
748
+ let t = this.intro, e = this.firstChunk;
749
+ for (; e; )
750
+ t += e.toString(), e = e.next;
751
+ return t + this.outro;
752
+ }
753
+ isEmpty() {
754
+ let t = this.firstChunk;
755
+ do
756
+ if (t.intro.length && t.intro.trim() || t.content.length && t.content.trim() || t.outro.length && t.outro.trim())
757
+ return !1;
758
+ while (t = t.next);
759
+ return !0;
760
+ }
761
+ length() {
762
+ let t = this.firstChunk, e = 0;
763
+ do
764
+ e += t.intro.length + t.content.length + t.outro.length;
765
+ while (t = t.next);
766
+ return e;
767
+ }
768
+ trimLines() {
769
+ return this.trim("[\\r\\n]");
770
+ }
771
+ trim(t) {
772
+ return this.trimStart(t).trimEnd(t);
773
+ }
774
+ trimEndAborted(t) {
775
+ const e = new RegExp((t || "\\s") + "+$");
776
+ if (this.outro = this.outro.replace(e, ""), this.outro.length) return !0;
777
+ let n = this.lastChunk;
778
+ do {
779
+ const s = n.end, r = n.trimEnd(e);
780
+ if (n.end !== s && (this.lastChunk === n && (this.lastChunk = n.next), this.byEnd[n.end] = n, this.byStart[n.next.start] = n.next, this.byEnd[n.next.end] = n.next), r) return !0;
781
+ n = n.previous;
782
+ } while (n);
783
+ return !1;
784
+ }
785
+ trimEnd(t) {
786
+ return this.trimEndAborted(t), this;
787
+ }
788
+ trimStartAborted(t) {
789
+ const e = new RegExp("^" + (t || "\\s") + "+");
790
+ if (this.intro = this.intro.replace(e, ""), this.intro.length) return !0;
791
+ let n = this.firstChunk;
792
+ do {
793
+ const s = n.end, r = n.trimStart(e);
794
+ if (n.end !== s && (n === this.lastChunk && (this.lastChunk = n.next), this.byEnd[n.end] = n, this.byStart[n.next.start] = n.next, this.byEnd[n.next.end] = n.next), r) return !0;
795
+ n = n.next;
796
+ } while (n);
797
+ return !1;
798
+ }
799
+ trimStart(t) {
800
+ return this.trimStartAborted(t), this;
801
+ }
802
+ hasChanged() {
803
+ return this.original !== this.toString();
804
+ }
805
+ _replaceRegexp(t, e) {
806
+ function n(r, u) {
807
+ return typeof e == "string" ? e.replace(/\$(\$|&|\d+)/g, (f, o) => o === "$" ? "$" : o === "&" ? r[0] : +o < r.length ? r[+o] : `$${o}`) : e(...r, r.index, u, r.groups);
808
+ }
809
+ function s(r, u) {
810
+ let f;
811
+ const o = [];
812
+ for (; f = r.exec(u); )
813
+ o.push(f);
814
+ return o;
815
+ }
816
+ if (t.global)
817
+ s(t, this.original).forEach((u) => {
818
+ if (u.index != null) {
819
+ const f = n(u, this.original);
820
+ f !== u[0] && this.overwrite(u.index, u.index + u[0].length, f);
821
+ }
822
+ });
823
+ else {
824
+ const r = this.original.match(t);
825
+ if (r && r.index != null) {
826
+ const u = n(r, this.original);
827
+ u !== r[0] && this.overwrite(r.index, r.index + r[0].length, u);
828
+ }
829
+ }
830
+ return this;
831
+ }
832
+ _replaceString(t, e) {
833
+ const { original: n } = this, s = n.indexOf(t);
834
+ return s !== -1 && this.overwrite(s, s + t.length, e), this;
835
+ }
836
+ replace(t, e) {
837
+ return typeof t == "string" ? this._replaceString(t, e) : this._replaceRegexp(t, e);
838
+ }
839
+ _replaceAllString(t, e) {
840
+ const { original: n } = this, s = t.length;
841
+ for (let r = n.indexOf(t); r !== -1; r = n.indexOf(t, r + s))
842
+ n.slice(r, r + s) !== e && this.overwrite(r, r + s, e);
843
+ return this;
844
+ }
845
+ replaceAll(t, e) {
846
+ if (typeof t == "string")
847
+ return this._replaceAllString(t, e);
848
+ if (!t.global)
849
+ throw new TypeError(
850
+ "MagicString.prototype.replaceAll called with a non-global RegExp argument"
851
+ );
852
+ return this._replaceRegexp(t, e);
853
+ }
854
+ }
855
+ export {
856
+ at as SourceMap,
857
+ Q as default
858
+ };