vzcode 3.2.0 → 3.4.0

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 (67) hide show
  1. package/README.md +185 -40
  2. package/dist/assets/App-BSFvLn9Z.js +387 -0
  3. package/dist/assets/App-DbKY-mb6.css +1 -0
  4. package/dist/assets/bindings_wasm_bg-IWNG_AjZ.wasm +0 -0
  5. package/dist/assets/buildWorker-N5tFTOqM.js +794 -0
  6. package/dist/assets/index-Acvr-XWK.js +43 -0
  7. package/dist/assets/index-CZT-v4sH.css +1 -0
  8. package/dist/assets/rolldown-runtime-COiEfhsA.js +1 -0
  9. package/dist/assets/worker-BpV7Ustv.js +223 -0
  10. package/dist/assets/worker-CLeezw6h.js +458 -0
  11. package/dist/assets/worker-DaSIYBQX.js +327 -0
  12. package/dist/cli.js +170 -99
  13. package/dist/index.html +3 -2
  14. package/dist/server/accessControl.js +104 -0
  15. package/dist/server/computeInitialDocument.js +4 -1
  16. package/dist/server/createServer.js +356 -104
  17. package/dist/server/index.js +4 -3
  18. package/dist/server/workspaceSecurity.js +115 -0
  19. package/dist/server/workspaceSync.js +141 -0
  20. package/package.json +74 -72
  21. package/src/cli.ts +203 -182
  22. package/src/client/App/index.tsx +2 -0
  23. package/src/client/App/usePending.ts +3 -1
  24. package/src/client/RunCodeWidget/index.tsx +1 -0
  25. package/src/client/SplitPaneResizeContext.tsx +94 -11
  26. package/src/client/VZCodeContext/types.ts +6 -0
  27. package/src/client/VZCodeContext/useVZCodeState.ts +2 -0
  28. package/src/client/VZResizer/index.tsx +25 -0
  29. package/src/client/VZSidebar/AIChatWrapper.tsx +2 -0
  30. package/src/client/VZSidebar/VisualEditor/CheckboxWidget.tsx +22 -30
  31. package/src/client/VZSidebar/VisualEditor/ColorWidget.tsx +198 -126
  32. package/src/client/VZSidebar/VisualEditor/DropdownWidget.tsx +25 -67
  33. package/src/client/VZSidebar/VisualEditor/PropertySection.tsx +41 -0
  34. package/src/client/VZSidebar/VisualEditor/SegmentedWidget.tsx +34 -0
  35. package/src/client/VZSidebar/VisualEditor/SliderWidget.tsx +60 -12
  36. package/src/client/VZSidebar/VisualEditor/VisualEditor.tsx +31 -393
  37. package/src/client/VZSidebar/VisualEditor/VisualEditorControls.tsx +478 -0
  38. package/src/client/VZSidebar/VisualEditor/colorUtils.ts +12 -0
  39. package/src/client/VZSidebar/VisualEditor/status.ts +47 -0
  40. package/src/client/VZSidebar/VisualEditor/updateConfig.ts +51 -24
  41. package/src/client/VZSidebar/VisualEditor/utils.ts +1 -1
  42. package/src/client/VZSidebar/styles.scss +424 -0
  43. package/src/client/WorkspaceConflictBanner.tsx +120 -0
  44. package/src/client/index.ts +2 -0
  45. package/src/client/main.jsx +54 -12
  46. package/src/llm-streaming-server/README.md +4 -16
  47. package/src/llm-streaming-ui/README.md +41 -2
  48. package/src/llm-streaming-ui/components/ChatInput.tsx +65 -13
  49. package/src/llm-streaming-ui/components/index.tsx +2 -0
  50. package/src/llm-streaming-ui/components/styles.scss +14 -0
  51. package/src/llm-streaming-ui/hooks/useAutoScroll.ts +1 -1
  52. package/src/llm-streaming-ui/index.ts +1 -0
  53. package/src/llm-streaming-ui/props.ts +26 -2
  54. package/src/server/accessControl.ts +151 -0
  55. package/src/server/computeInitialDocument.ts +6 -2
  56. package/src/server/createServer.ts +487 -138
  57. package/src/server/index.ts +4 -5
  58. package/src/server/workspaceSecurity.ts +160 -0
  59. package/src/server/workspaceSync.ts +203 -0
  60. package/src/types.ts +29 -27
  61. package/dist/assets/bindings_wasm_bg-9w8E-TmY.wasm +0 -0
  62. package/dist/assets/buildWorker-BZlya278.js +0 -687
  63. package/dist/assets/index-B7NRhsN6.js +0 -356
  64. package/dist/assets/index-D1V1AKed.css +0 -1
  65. package/dist/assets/worker-1oQYaz-F.js +0 -342
  66. package/dist/assets/worker-BfgPD8zR.js +0 -125
  67. package/dist/assets/worker-CoJaqtpi.js +0 -436
@@ -0,0 +1,794 @@
1
+ (function(){var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,o)=>(o=n==null?{}:e(i(n)),s(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));function l(e){return e=u(e,`link`,`href`),e=u(e,`script`,`src`),e=u(e,`img`,`src`),e}function u(e,t,n){let r=`<${t.toLowerCase()}`,i=0,a=e.toLowerCase();for(;;){let t=a.indexOf(r,i);if(t===-1)return e;let o=a[t+r.length];if(o&&o!==`>`&&o!==`/`&&!/\s/.test(o)){i=t+r.length;continue}let s=d(e,t);if(s===-1)return e;let c=e.slice(t,s+1),l=c.replace(RegExp(`(\\b${n}\\s*=\\s*)(?:(["'])([^"']*)\\2|([^\\s>]+))`,`i`),(e,t,n,r,i)=>{let a=r??i??``,o=a.trim();if(!/^(?:\/\/|http:\/\/)/i.test(o))return e;let s=o.replace(/^(?:\/\/|http:\/\/)/i,`https://`);return n?`${t}${n}${a.match(/^\s*/)?.[0]??``}${s}${a.match(/\s*$/)?.[0]??``}${n}`:`${t}${s}`});l===c?i=s+1:(e=`${e.slice(0,t)}${l}${e.slice(s+1)}`,a=e.toLowerCase(),i=t+l.length)}}function d(e,t){let n=``;for(let r=t;r<e.length;r+=1){let t=e[r];if(n)t===n&&(n=``);else if(t===`"`||t===`'`)n=t;else if(t===`>`)return r}return-1}function f(e,t,n,r){let i=n?JSON.stringify(n):`null`,a=r??3e4;return`<script>
2
+ (function() {
3
+ // Store file data for interception
4
+ const __filesURI = "${t}";
5
+ const __files = JSON.parse(decodeURIComponent(__filesURI));
6
+ const __fileNames = ${JSON.stringify(e)};
7
+ const __proxyRoutes = ${i} || (window.__magicSandboxProxyRoutes || null);
8
+
9
+ // If proxy routes were provided via window variable, use them
10
+ if (!__proxyRoutes && window.__magicSandboxProxyRoutes) {
11
+ __proxyRoutes = window.__magicSandboxProxyRoutes;
12
+ }
13
+
14
+ // Helper: normalise a URL for matching
15
+ function __normalizeUrl(url) {
16
+ if (typeof url !== 'string') return '';
17
+ let u = url;
18
+ // Remove ./ prefix
19
+ if (u.startsWith('./')) u = u.substring(2);
20
+ // Fix blob:// protocol
21
+ u = u.replace('blob://', 'http://');
22
+ return u;
23
+ }
24
+
25
+ // Helper: check if a URL matches a proxy route path pattern
26
+ function __matchesProxy(url, pattern) {
27
+ if (url === pattern) return true;
28
+ // Pattern like "/data/*" matches "/data/foo.csv"
29
+ if (pattern.endsWith('/*') && url.startsWith(pattern.slice(0, -1))) return true;
30
+ // Pattern like "*.csv" matches any CSV file
31
+ if (pattern.startsWith('*') && url.endsWith(pattern.slice(1))) return true;
32
+ return false;
33
+ }
34
+
35
+ // Helper: resolve a proxied request via postMessage to parent
36
+ function __proxyFetch(url, normalizedUrl) {
37
+ return new Promise(function(resolve, reject) {
38
+ var requestId = Math.random().toString(36).slice(2);
39
+ var timedOut = false;
40
+ var timeoutId = setTimeout(function() {
41
+ timedOut = true;
42
+ window.removeEventListener('message', handler);
43
+ resolve({
44
+ ok: false, status: 504, statusText: 'Proxy Timeout',
45
+ url: url,
46
+ text: function() { return Promise.resolve(''); },
47
+ json: function() { return Promise.reject(new Error('Proxy timeout')); },
48
+ blob: function() { return Promise.reject(new Error('Proxy timeout')); },
49
+ arrayBuffer: function() { return Promise.reject(new Error('Proxy timeout')); },
50
+ });
51
+ }, ${a});
52
+ function handler(event) {
53
+ if (timedOut) return;
54
+ if (event.data.type === 'proxyResponse' && event.data.requestId === requestId) {
55
+ clearTimeout(timeoutId);
56
+ window.removeEventListener('message', handler);
57
+ var d = event.data;
58
+ if (d.error) {
59
+ resolve({
60
+ ok: false, status: 404, statusText: 'Not Found',
61
+ url: url,
62
+ text: function() { return Promise.resolve(''); },
63
+ json: function() { return Promise.reject(new Error(d.error)); },
64
+ blob: function() { return Promise.reject(new Error(d.error)); },
65
+ arrayBuffer: function() { return Promise.reject(new Error(d.error)); },
66
+ });
67
+ } else {
68
+ resolve({
69
+ ok: true, status: 200, statusText: 'OK', url: url,
70
+ text: function() { return Promise.resolve(d.content); },
71
+ json: function() { return Promise.resolve(JSON.parse(d.content)); },
72
+ blob: function() { return Promise.resolve(new Blob([d.content])); },
73
+ arrayBuffer: function() {
74
+ var buf = new ArrayBuffer(d.content.length * 2);
75
+ var view = new Uint16Array(buf);
76
+ for (var i = 0; i < d.content.length; i++) view[i] = d.content.charCodeAt(i);
77
+ return Promise.resolve(buf);
78
+ },
79
+ });
80
+ }
81
+ }
82
+ }
83
+ window.addEventListener('message', handler);
84
+ window.parent.postMessage({
85
+ type: 'proxyRequest',
86
+ requestId: requestId,
87
+ path: normalizedUrl,
88
+ }, '*');
89
+ });
90
+ }
91
+
92
+ // Check if a URL matches any proxy route (returns the matching pattern or null)
93
+ // Lazily re-checks window.__magicSandboxProxyRoutes at request time for runtime injection.
94
+ function __findProxyRoute(url) {
95
+ var routes = __proxyRoutes;
96
+ if (!routes && window.__magicSandboxProxyRoutes) {
97
+ routes = window.__magicSandboxProxyRoutes;
98
+ }
99
+ if (!routes) return null;
100
+ for (var i = 0; i < routes.length; i++) {
101
+ var route = routes[i];
102
+ for (var j = 0; j < route.paths.length; j++) {
103
+ if (__matchesProxy(url, route.paths[j])) {
104
+ return route;
105
+ }
106
+ }
107
+ }
108
+ return null;
109
+ }
110
+
111
+ // Override XMLHttpRequest
112
+ const OriginalXHR = window.XMLHttpRequest;
113
+ window.XMLHttpRequest = function() {
114
+ this.xhr = new OriginalXHR();
115
+ return this;
116
+ };
117
+
118
+ // Override open method to intercept file requests
119
+ window.XMLHttpRequest.prototype.open = function(method, url, async, user, password) {
120
+ const normalizedUrl = __normalizeUrl(url);
121
+
122
+ const proxyRoute = __findProxyRoute(normalizedUrl);
123
+ if (proxyRoute) {
124
+ this.proxyPath = normalizedUrl;
125
+ this.readyState = 4;
126
+ this.status = 200;
127
+ return;
128
+ }
129
+
130
+ if (__fileNames.includes(normalizedUrl)) {
131
+ this.file = normalizedUrl;
132
+ this.responseText = __files[normalizedUrl];
133
+
134
+ // Handle XML files
135
+ if (normalizedUrl.endsWith(".xml")) {
136
+ try {
137
+ const parser = new DOMParser();
138
+ this.responseXML = parser.parseFromString(this.responseText, "text/xml");
139
+ } catch (e) {}
140
+ }
141
+
142
+ // Mark as completed
143
+ this.readyState = 4;
144
+ this.status = 200;
145
+ } else {
146
+ // Pass through to real XHR
147
+ this.xhr.open(method, url, async, user, password);
148
+ }
149
+ };
150
+
151
+ // Implement other XHR methods
152
+ window.XMLHttpRequest.prototype.setRequestHeader = function(header, value) {
153
+ if (this.file || this.proxyPath) return;
154
+ return this.xhr.setRequestHeader(header, value);
155
+ };
156
+
157
+ window.XMLHttpRequest.prototype.abort = function() {
158
+ return this.xhr.abort();
159
+ };
160
+
161
+ window.XMLHttpRequest.prototype.getAllResponseHeaders = function() {
162
+ return this.xhr.getAllResponseHeaders();
163
+ };
164
+
165
+ window.XMLHttpRequest.prototype.getResponseHeader = function(header) {
166
+ return this.xhr.getResponseHeader(header);
167
+ };
168
+
169
+ window.XMLHttpRequest.prototype.overrideMimeType = function(mime) {
170
+ return this.xhr.overrideMimeType(mime);
171
+ };
172
+
173
+ window.XMLHttpRequest.prototype.send = function(data) {
174
+ const that = this;
175
+
176
+ // Handle proxy routes via postMessage
177
+ if (that.proxyPath) {
178
+ __proxyFetch(null, that.proxyPath).then(function(response) {
179
+ response.text().then(function(text) {
180
+ that.responseText = text;
181
+ if (that.onreadystatechange) that.onreadystatechange();
182
+ if (that.onload) that.onload();
183
+ });
184
+ });
185
+ return;
186
+ }
187
+
188
+ // Process in next tick to support libraries that attach handlers after send
189
+ setTimeout(() => {
190
+ // Wire up event handlers
191
+ that.xhr.onerror = that.onerror;
192
+ that.xhr.onprogress = that.onprogress;
193
+
194
+ if (that.responseType || that.responseType === '') {
195
+ that.xhr.responseType = that.responseType;
196
+ }
197
+
198
+ // Handle onload
199
+ if (that.onload) {
200
+ const onload = that.onload;
201
+ that.xhr.onload = that.onload = function() {
202
+ try {
203
+ that.response = this.response;
204
+ that.readyState = this.readyState;
205
+ that.status = this.status;
206
+ that.statusText = this.statusText;
207
+ } catch (e) {}
208
+
209
+ try {
210
+ if (that.responseType === '') {
211
+ that.responseXML = this.responseXML;
212
+ that.responseText = this.responseText;
213
+ }
214
+ if (that.responseType === 'text') {
215
+ that.responseText = this.responseText;
216
+ }
217
+ } catch (e) {}
218
+
219
+ onload();
220
+ };
221
+ }
222
+
223
+ // Handle onreadystatechange
224
+ if (that.onreadystatechange) {
225
+ const ready = that.onreadystatechange;
226
+ that.xhr.onreadystatechange = function() {
227
+ try {
228
+ that.readyState = this.readyState;
229
+ that.responseText = this.responseText;
230
+ that.responseXML = this.responseXML;
231
+ that.responseType = this.responseType;
232
+ that.status = this.status;
233
+ that.statusText = this.statusText;
234
+ } catch (e) {}
235
+
236
+ ready();
237
+ };
238
+ }
239
+
240
+ // For local files, trigger callbacks directly
241
+ if (that.file) {
242
+ if (that.onreadystatechange) {
243
+ return that.onreadystatechange();
244
+ }
245
+ if (that.onload) {
246
+ return that.onload();
247
+ }
248
+ }
249
+
250
+ // For real requests, pass through
251
+ that.xhr.send(data);
252
+ }, 0);
253
+ };
254
+
255
+ // Override fetch API
256
+ const originalFetch = window.fetch;
257
+ window.fetch = function(input, init) {
258
+ let url = input;
259
+
260
+ if (input instanceof Request) {
261
+ url = input.url;
262
+ }
263
+
264
+ const normalizedUrl = __normalizeUrl(url);
265
+
266
+ // Check proxy routes FIRST
267
+ const proxyRoute = __findProxyRoute(normalizedUrl);
268
+ if (proxyRoute) {
269
+ return __proxyFetch(url, normalizedUrl);
270
+ }
271
+
272
+ // Intercept requests for local files
273
+ if (__fileNames.includes(normalizedUrl)) {
274
+ const responseText = __files[normalizedUrl];
275
+
276
+ return Promise.resolve({
277
+ ok: true,
278
+ status: 200,
279
+ statusText: 'ok',
280
+ url: url,
281
+ text: () => Promise.resolve(responseText),
282
+ json: () => Promise.resolve(JSON.parse(responseText)),
283
+ blob: () => Promise.resolve(new Blob([responseText])),
284
+ arrayBuffer: () => {
285
+ const buffer = new ArrayBuffer(responseText.length * 2);
286
+ const bufferView = new Uint16Array(buffer);
287
+
288
+ for (let i = 0; i < responseText.length; i++) {
289
+ bufferView[i] = responseText.charCodeAt(i);
290
+ }
291
+
292
+ return Promise.resolve(buffer);
293
+ }
294
+ });
295
+ }
296
+
297
+ // Pass through to original fetch
298
+ return originalFetch(input, init);
299
+ };
300
+ })();
301
+ <\/script>`}function p(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function m(e,t){let n=e[`index.html`]||``,{"index.html":r,...i}=e;n=l(n);let a={};for(let[e,t]of Object.entries(i))if(t){if(e.endsWith(`.js`)){let r=RegExp(`<script(.*?)src=["']${p(e)}["'](.*?)>[\\s\\S]*?<\\/script>`,`g`);if(n.match(r)){let e=t.replace(/\$/g,`$$$$`);n=n.replace(r,`<script$1$2>${e}<\/script>`);continue}}if(e.endsWith(`.css`)){let r=RegExp(`<link.*?href=["']${p(e)}["'].*?>`,`g`);if(n.match(r)){n=n.replace(r,`<style>${t}</style>`);continue}}e.endsWith(`.html`)||(a[e]=t)}let o=`<meta charset="utf-8">${f(Object.keys(a),encodeURIComponent(JSON.stringify(a)),t?.proxyRoutes,t?.proxyTimeoutMs)}`,s=``,c=n.match(/<!DOCTYPE[^>]*>/i);if(c&&(s=c[0],n=n.replace(c[0],``)),n.includes(`<head>`))n=n.replace(`<head>`,`<head>${o}`);else if(n.includes(`<html>`))n=n.replace(`<html>`,`<html><head>${o}</head>`);else return`${s}<html><head>${o}</head><body>${n}</body></html>`;return`${s}${n}`}var h=/* @__PURE__ */ o(((e,t)=>{t.exports={}}));let g=e=>e.length!==32||!/^[0-9a-f]{32}$/i.test(e)?!1:e[12]===`4`,_=typeof globalThis.crypto<`u`?globalThis.crypto:h().webcrypto,ee=()=>{let e=/* @__PURE__ */ new Uint8Array(16);return _.getRandomValues(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128,Array.from(e,e=>e.toString(16).padStart(2,`0`)).join(``)},te=()=>ee().substring(0,8),v=(e,t)=>{if(e&&e.files){for(let n of Object.keys(e.files))if(e.files[n].name===t)return n}return null},y=(e,t)=>{let n=v(e,t);return n&&e&&e.files?e.files[n].text:null},ne=e=>{let t={};if(!e)return t;for(let n of Object.values(e))t[n.name]=n.text;return t},re=e=>Object.entries(e).reduce((e,[t,n])=>(e[te()]={name:t,text:n},e),{});var b;(function(e){e[e.NONE=0]=`NONE`,e[e._abstract=1]=`_abstract`,e[e._accessor=2]=`_accessor`,e[e._as=3]=`_as`,e[e._assert=4]=`_assert`,e[e._asserts=5]=`_asserts`,e[e._async=6]=`_async`,e[e._await=7]=`_await`,e[e._checks=8]=`_checks`,e[e._constructor=9]=`_constructor`,e[e._declare=10]=`_declare`,e[e._enum=11]=`_enum`,e[e._exports=12]=`_exports`,e[e._from=13]=`_from`,e[e._get=14]=`_get`,e[e._global=15]=`_global`,e[e._implements=16]=`_implements`,e[e._infer=17]=`_infer`,e[e._interface=18]=`_interface`,e[e._is=19]=`_is`,e[e._keyof=20]=`_keyof`,e[e._mixins=21]=`_mixins`,e[e._module=22]=`_module`,e[e._namespace=23]=`_namespace`,e[e._of=24]=`_of`,e[e._opaque=25]=`_opaque`,e[e._out=26]=`_out`,e[e._override=27]=`_override`,e[e._private=28]=`_private`,e[e._protected=29]=`_protected`,e[e._proto=30]=`_proto`,e[e._public=31]=`_public`,e[e._readonly=32]=`_readonly`,e[e._require=33]=`_require`,e[e._satisfies=34]=`_satisfies`,e[e._set=35]=`_set`,e[e._static=36]=`_static`,e[e._symbol=37]=`_symbol`,e[e._type=38]=`_type`,e[e._unique=39]=`_unique`,e[e._using=40]=`_using`})(b||={});
302
+ /* istanbul ignore file */
303
+ var x;(function(e){e[e.PRECEDENCE_MASK=15]=`PRECEDENCE_MASK`,e[e.IS_KEYWORD=16]=`IS_KEYWORD`,e[e.IS_ASSIGN=32]=`IS_ASSIGN`,e[e.IS_RIGHT_ASSOCIATIVE=64]=`IS_RIGHT_ASSOCIATIVE`,e[e.IS_PREFIX=128]=`IS_PREFIX`,e[e.IS_POSTFIX=256]=`IS_POSTFIX`,e[e.IS_EXPRESSION_START=512]=`IS_EXPRESSION_START`,e[e.num=512]=`num`,e[e.bigint=1536]=`bigint`,e[e.decimal=2560]=`decimal`,e[e.regexp=3584]=`regexp`,e[e.string=4608]=`string`,e[e.name=5632]=`name`,e[e.eof=6144]=`eof`,e[e.bracketL=7680]=`bracketL`,e[e.bracketR=8192]=`bracketR`,e[e.braceL=9728]=`braceL`,e[e.braceBarL=10752]=`braceBarL`,e[e.braceR=11264]=`braceR`,e[e.braceBarR=12288]=`braceBarR`,e[e.parenL=13824]=`parenL`,e[e.parenR=14336]=`parenR`,e[e.comma=15360]=`comma`,e[e.semi=16384]=`semi`,e[e.colon=17408]=`colon`,e[e.doubleColon=18432]=`doubleColon`,e[e.dot=19456]=`dot`,e[e.question=20480]=`question`,e[e.questionDot=21504]=`questionDot`,e[e.arrow=22528]=`arrow`,e[e.template=23552]=`template`,e[e.ellipsis=24576]=`ellipsis`,e[e.backQuote=25600]=`backQuote`,e[e.dollarBraceL=27136]=`dollarBraceL`,e[e.at=27648]=`at`,e[e.hash=29184]=`hash`,e[e.eq=29728]=`eq`,e[e.assign=30752]=`assign`,e[e.preIncDec=32640]=`preIncDec`,e[e.postIncDec=33664]=`postIncDec`,e[e.bang=34432]=`bang`,e[e.tilde=35456]=`tilde`,e[e.pipeline=35841]=`pipeline`,e[e.nullishCoalescing=36866]=`nullishCoalescing`,e[e.logicalOR=37890]=`logicalOR`,e[e.logicalAND=38915]=`logicalAND`,e[e.bitwiseOR=39940]=`bitwiseOR`,e[e.bitwiseXOR=40965]=`bitwiseXOR`,e[e.bitwiseAND=41990]=`bitwiseAND`,e[e.equality=43015]=`equality`,e[e.lessThan=44040]=`lessThan`,e[e.greaterThan=45064]=`greaterThan`,e[e.relationalOrEqual=46088]=`relationalOrEqual`,e[e.bitShiftL=47113]=`bitShiftL`,e[e.bitShiftR=48137]=`bitShiftR`,e[e.plus=49802]=`plus`,e[e.minus=50826]=`minus`,e[e.modulo=51723]=`modulo`,e[e.star=52235]=`star`,e[e.slash=53259]=`slash`,e[e.exponent=54348]=`exponent`,e[e.jsxName=55296]=`jsxName`,e[e.jsxText=56320]=`jsxText`,e[e.jsxEmptyText=57344]=`jsxEmptyText`,e[e.jsxTagStart=58880]=`jsxTagStart`,e[e.jsxTagEnd=59392]=`jsxTagEnd`,e[e.typeParameterStart=60928]=`typeParameterStart`,e[e.nonNullAssertion=61440]=`nonNullAssertion`,e[e._break=62480]=`_break`,e[e._case=63504]=`_case`,e[e._catch=64528]=`_catch`,e[e._continue=65552]=`_continue`,e[e._debugger=66576]=`_debugger`,e[e._default=67600]=`_default`,e[e._do=68624]=`_do`,e[e._else=69648]=`_else`,e[e._finally=70672]=`_finally`,e[e._for=71696]=`_for`,e[e._function=73232]=`_function`,e[e._if=73744]=`_if`,e[e._return=74768]=`_return`,e[e._switch=75792]=`_switch`,e[e._throw=77456]=`_throw`,e[e._try=77840]=`_try`,e[e._var=78864]=`_var`,e[e._let=79888]=`_let`,e[e._const=80912]=`_const`,e[e._while=81936]=`_while`,e[e._with=82960]=`_with`,e[e._new=84496]=`_new`,e[e._this=85520]=`_this`,e[e._super=86544]=`_super`,e[e._class=87568]=`_class`,e[e._extends=88080]=`_extends`,e[e._export=89104]=`_export`,e[e._import=90640]=`_import`,e[e._yield=91664]=`_yield`,e[e._null=92688]=`_null`,e[e._true=93712]=`_true`,e[e._false=94736]=`_false`,e[e._in=95256]=`_in`,e[e._instanceof=96280]=`_instanceof`,e[e._typeof=97936]=`_typeof`,e[e._void=98960]=`_void`,e[e._delete=99984]=`_delete`,e[e._async=100880]=`_async`,e[e._get=101904]=`_get`,e[e._set=102928]=`_set`,e[e._declare=103952]=`_declare`,e[e._readonly=104976]=`_readonly`,e[e._abstract=106e3]=`_abstract`,e[e._static=107024]=`_static`,e[e._public=107536]=`_public`,e[e._private=108560]=`_private`,e[e._protected=109584]=`_protected`,e[e._override=110608]=`_override`,e[e._as=112144]=`_as`,e[e._enum=113168]=`_enum`,e[e._type=114192]=`_type`,e[e._implements=115216]=`_implements`})(x||={});function S(e){switch(e){case x.num:return`num`;case x.bigint:return`bigint`;case x.decimal:return`decimal`;case x.regexp:return`regexp`;case x.string:return`string`;case x.name:return`name`;case x.eof:return`eof`;case x.bracketL:return`[`;case x.bracketR:return`]`;case x.braceL:return`{`;case x.braceBarL:return`{|`;case x.braceR:return`}`;case x.braceBarR:return`|}`;case x.parenL:return`(`;case x.parenR:return`)`;case x.comma:return`,`;case x.semi:return`;`;case x.colon:return`:`;case x.doubleColon:return`::`;case x.dot:return`.`;case x.question:return`?`;case x.questionDot:return`?.`;case x.arrow:return`=>`;case x.template:return`template`;case x.ellipsis:return`...`;case x.backQuote:return"`";case x.dollarBraceL:return"${";case x.at:return`@`;case x.hash:return`#`;case x.eq:return`=`;case x.assign:return`_=`;case x.preIncDec:return`++/--`;case x.postIncDec:return`++/--`;case x.bang:return`!`;case x.tilde:return`~`;case x.pipeline:return`|>`;case x.nullishCoalescing:return`??`;case x.logicalOR:return`||`;case x.logicalAND:return`&&`;case x.bitwiseOR:return`|`;case x.bitwiseXOR:return`^`;case x.bitwiseAND:return`&`;case x.equality:return`==/!=`;case x.lessThan:return`<`;case x.greaterThan:return`>`;case x.relationalOrEqual:return`<=/>=`;case x.bitShiftL:return`<<`;case x.bitShiftR:return`>>/>>>`;case x.plus:return`+`;case x.minus:return`-`;case x.modulo:return`%`;case x.star:return`*`;case x.slash:return`/`;case x.exponent:return`**`;case x.jsxName:return`jsxName`;case x.jsxText:return`jsxText`;case x.jsxEmptyText:return`jsxEmptyText`;case x.jsxTagStart:return`jsxTagStart`;case x.jsxTagEnd:return`jsxTagEnd`;case x.typeParameterStart:return`typeParameterStart`;case x.nonNullAssertion:return`nonNullAssertion`;case x._break:return`break`;case x._case:return`case`;case x._catch:return`catch`;case x._continue:return`continue`;case x._debugger:return`debugger`;case x._default:return`default`;case x._do:return`do`;case x._else:return`else`;case x._finally:return`finally`;case x._for:return`for`;case x._function:return`function`;case x._if:return`if`;case x._return:return`return`;case x._switch:return`switch`;case x._throw:return`throw`;case x._try:return`try`;case x._var:return`var`;case x._let:return`let`;case x._const:return`const`;case x._while:return`while`;case x._with:return`with`;case x._new:return`new`;case x._this:return`this`;case x._super:return`super`;case x._class:return`class`;case x._extends:return`extends`;case x._export:return`export`;case x._import:return`import`;case x._yield:return`yield`;case x._null:return`null`;case x._true:return`true`;case x._false:return`false`;case x._in:return`in`;case x._instanceof:return`instanceof`;case x._typeof:return`typeof`;case x._void:return`void`;case x._delete:return`delete`;case x._async:return`async`;case x._get:return`get`;case x._set:return`set`;case x._declare:return`declare`;case x._readonly:return`readonly`;case x._abstract:return`abstract`;case x._static:return`static`;case x._public:return`public`;case x._private:return`private`;case x._protected:return`protected`;case x._override:return`override`;case x._as:return`as`;case x._enum:return`enum`;case x._type:return`type`;case x._implements:return`implements`;default:return``}}var C=class{constructor(e,t,n){this.startTokenIndex=e,this.endTokenIndex=t,this.isFunctionScope=n}},ie=class{constructor(e,t,n,r,i,a,o,s,c,l,u,d,f){this.potentialArrowAt=e,this.noAnonFunctionType=t,this.inDisallowConditionalTypesContext=n,this.tokensLength=r,this.scopesLength=i,this.pos=a,this.type=o,this.contextualKeyword=s,this.start=c,this.end=l,this.isType=u,this.scopeDepth=d,this.error=f}},ae=class e{constructor(){e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),e.prototype.__init5.call(this),e.prototype.__init6.call(this),e.prototype.__init7.call(this),e.prototype.__init8.call(this),e.prototype.__init9.call(this),e.prototype.__init10.call(this),e.prototype.__init11.call(this),e.prototype.__init12.call(this),e.prototype.__init13.call(this)}__init(){this.potentialArrowAt=-1}__init2(){this.noAnonFunctionType=!1}__init3(){this.inDisallowConditionalTypesContext=!1}__init4(){this.tokens=[]}__init5(){this.scopes=[]}__init6(){this.pos=0}__init7(){this.type=x.eof}__init8(){this.contextualKeyword=b.NONE}__init9(){this.start=0}__init10(){this.end=0}__init11(){this.isType=!1}__init12(){this.scopeDepth=0}__init13(){this.error=null}snapshot(){return new ie(this.potentialArrowAt,this.noAnonFunctionType,this.inDisallowConditionalTypesContext,this.tokens.length,this.scopes.length,this.pos,this.type,this.contextualKeyword,this.start,this.end,this.isType,this.scopeDepth,this.error)}restoreFromSnapshot(e){this.potentialArrowAt=e.potentialArrowAt,this.noAnonFunctionType=e.noAnonFunctionType,this.inDisallowConditionalTypesContext=e.inDisallowConditionalTypesContext,this.tokens.length=e.tokensLength,this.scopes.length=e.scopesLength,this.pos=e.pos,this.type=e.type,this.contextualKeyword=e.contextualKeyword,this.start=e.start,this.end=e.end,this.isType=e.isType,this.scopeDepth=e.scopeDepth,this.error=e.error}},w;(function(e){e[e.backSpace=8]=`backSpace`,e[e.lineFeed=10]=`lineFeed`,e[e.tab=9]=`tab`,e[e.carriageReturn=13]=`carriageReturn`,e[e.shiftOut=14]=`shiftOut`,e[e.space=32]=`space`,e[e.exclamationMark=33]=`exclamationMark`,e[e.quotationMark=34]=`quotationMark`,e[e.numberSign=35]=`numberSign`,e[e.dollarSign=36]=`dollarSign`,e[e.percentSign=37]=`percentSign`,e[e.ampersand=38]=`ampersand`,e[e.apostrophe=39]=`apostrophe`,e[e.leftParenthesis=40]=`leftParenthesis`,e[e.rightParenthesis=41]=`rightParenthesis`,e[e.asterisk=42]=`asterisk`,e[e.plusSign=43]=`plusSign`,e[e.comma=44]=`comma`,e[e.dash=45]=`dash`,e[e.dot=46]=`dot`,e[e.slash=47]=`slash`,e[e.digit0=48]=`digit0`,e[e.digit1=49]=`digit1`,e[e.digit2=50]=`digit2`,e[e.digit3=51]=`digit3`,e[e.digit4=52]=`digit4`,e[e.digit5=53]=`digit5`,e[e.digit6=54]=`digit6`,e[e.digit7=55]=`digit7`,e[e.digit8=56]=`digit8`,e[e.digit9=57]=`digit9`,e[e.colon=58]=`colon`,e[e.semicolon=59]=`semicolon`,e[e.lessThan=60]=`lessThan`,e[e.equalsTo=61]=`equalsTo`,e[e.greaterThan=62]=`greaterThan`,e[e.questionMark=63]=`questionMark`,e[e.atSign=64]=`atSign`,e[e.uppercaseA=65]=`uppercaseA`,e[e.uppercaseB=66]=`uppercaseB`,e[e.uppercaseC=67]=`uppercaseC`,e[e.uppercaseD=68]=`uppercaseD`,e[e.uppercaseE=69]=`uppercaseE`,e[e.uppercaseF=70]=`uppercaseF`,e[e.uppercaseG=71]=`uppercaseG`,e[e.uppercaseH=72]=`uppercaseH`,e[e.uppercaseI=73]=`uppercaseI`,e[e.uppercaseJ=74]=`uppercaseJ`,e[e.uppercaseK=75]=`uppercaseK`,e[e.uppercaseL=76]=`uppercaseL`,e[e.uppercaseM=77]=`uppercaseM`,e[e.uppercaseN=78]=`uppercaseN`,e[e.uppercaseO=79]=`uppercaseO`,e[e.uppercaseP=80]=`uppercaseP`,e[e.uppercaseQ=81]=`uppercaseQ`,e[e.uppercaseR=82]=`uppercaseR`,e[e.uppercaseS=83]=`uppercaseS`,e[e.uppercaseT=84]=`uppercaseT`,e[e.uppercaseU=85]=`uppercaseU`,e[e.uppercaseV=86]=`uppercaseV`,e[e.uppercaseW=87]=`uppercaseW`,e[e.uppercaseX=88]=`uppercaseX`,e[e.uppercaseY=89]=`uppercaseY`,e[e.uppercaseZ=90]=`uppercaseZ`,e[e.leftSquareBracket=91]=`leftSquareBracket`,e[e.backslash=92]=`backslash`,e[e.rightSquareBracket=93]=`rightSquareBracket`,e[e.caret=94]=`caret`,e[e.underscore=95]=`underscore`,e[e.graveAccent=96]=`graveAccent`,e[e.lowercaseA=97]=`lowercaseA`,e[e.lowercaseB=98]=`lowercaseB`,e[e.lowercaseC=99]=`lowercaseC`,e[e.lowercaseD=100]=`lowercaseD`,e[e.lowercaseE=101]=`lowercaseE`,e[e.lowercaseF=102]=`lowercaseF`,e[e.lowercaseG=103]=`lowercaseG`,e[e.lowercaseH=104]=`lowercaseH`,e[e.lowercaseI=105]=`lowercaseI`,e[e.lowercaseJ=106]=`lowercaseJ`,e[e.lowercaseK=107]=`lowercaseK`,e[e.lowercaseL=108]=`lowercaseL`,e[e.lowercaseM=109]=`lowercaseM`,e[e.lowercaseN=110]=`lowercaseN`,e[e.lowercaseO=111]=`lowercaseO`,e[e.lowercaseP=112]=`lowercaseP`,e[e.lowercaseQ=113]=`lowercaseQ`,e[e.lowercaseR=114]=`lowercaseR`,e[e.lowercaseS=115]=`lowercaseS`,e[e.lowercaseT=116]=`lowercaseT`,e[e.lowercaseU=117]=`lowercaseU`,e[e.lowercaseV=118]=`lowercaseV`,e[e.lowercaseW=119]=`lowercaseW`,e[e.lowercaseX=120]=`lowercaseX`,e[e.lowercaseY=121]=`lowercaseY`,e[e.lowercaseZ=122]=`lowercaseZ`,e[e.leftCurlyBrace=123]=`leftCurlyBrace`,e[e.verticalBar=124]=`verticalBar`,e[e.rightCurlyBrace=125]=`rightCurlyBrace`,e[e.tilde=126]=`tilde`,e[e.nonBreakingSpace=160]=`nonBreakingSpace`,e[e.oghamSpaceMark=5760]=`oghamSpaceMark`,e[e.lineSeparator=8232]=`lineSeparator`,e[e.paragraphSeparator=8233]=`paragraphSeparator`})(w||={});let oe,T,E,D,O,se;function k(){return se++}function ce(e){if(`pos`in e){let t=ue(e.pos);e.message+=` (${t.line}:${t.column})`,e.loc=t}return e}var le=class{constructor(e,t){this.line=e,this.column=t}};function ue(e){let t=1,n=1;for(let r=0;r<e;r++)O.charCodeAt(r)===w.lineFeed?(t++,n=1):n++;return new le(t,n)}function A(e,t,n,r){O=e,D=new ae,se=1,oe=t,T=n,E=r}function j(e){return D.contextualKeyword===e}function de(e){let t=Be();return t.type===x.name&&t.contextualKeyword===e}function fe(e){return D.contextualKeyword===e&&R(x.name)}function pe(e){fe(e)||N()}function me(){return z(x.eof)||z(x.braceR)||he()}function he(){let e=D.tokens[D.tokens.length-1],t=e?e.end:0;for(let e=t;e<D.start;e++){let t=O.charCodeAt(e);if(t===w.lineFeed||t===w.carriageReturn||t===8232||t===8233)return!0}return!1}function ge(){let e=Ve();for(let t=D.end;t<e;t++){let e=O.charCodeAt(t);if(e===w.lineFeed||e===w.carriageReturn||e===8232||e===8233)return!0}return!1}function _e(){return R(x.semi)||me()}function ve(){_e()||N(`Unexpected token, expected ";"`)}function M(e){R(e)||N(`Unexpected token, expected "${S(e)}"`)}function N(e=`Unexpected token`,t=D.start){if(D.error)return;let n=SyntaxError(e);n.pos=t,D.error=n,D.pos=O.length,Ye(x.eof)}let ye=[9,11,12,w.space,w.nonBreakingSpace,w.oghamSpaceMark,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],be=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,xe=/* @__PURE__ */ new Uint8Array(65536);for(let e of ye)xe[e]=1;function Se(e){if(e<48)return e===36;if(e<58)return!0;if(e<65)return!1;if(e<91)return!0;if(e<97)return e===95;if(e<123)return!0;if(e<128)return!1;throw Error(`Should not be called with non-ASCII char code.`)}let Ce=/* @__PURE__ */ new Uint8Array(65536);for(let e=0;e<128;e++)Ce[e]=+!!Se(e);for(let e=128;e<65536;e++)Ce[e]=1;for(let e of ye)Ce[e]=0;Ce[8232]=0,Ce[8233]=0;let we=Ce.slice();for(let e=w.digit0;e<=w.digit9;e++)we[e]=0;let Te=new Int32Array([-1,27,783,918,1755,2376,2862,3483,-1,3699,-1,4617,4752,4833,5130,5508,5940,-1,6480,6939,7749,8181,8451,8613,-1,8829,-1,-1,-1,54,243,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,432,-1,-1,-1,675,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,81,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,108,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,135,-1,-1,-1,-1,-1,-1,-1,-1,-1,162,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,189,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,216,-1,-1,-1,-1,-1,-1,b._abstract<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,270,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,297,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,324,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,351,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,378,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,405,-1,-1,-1,-1,-1,-1,-1,-1,b._accessor<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,b._as<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,459,-1,-1,-1,-1,-1,594,-1,-1,-1,-1,-1,-1,486,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,513,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,540,-1,-1,-1,-1,-1,-1,b._assert<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,567,-1,-1,-1,-1,-1,-1,-1,b._asserts<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,621,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,648,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,b._async<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,702,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,729,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,756,-1,-1,-1,-1,-1,-1,b._await<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,810,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,837,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,864,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,891,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(x._break<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,945,-1,-1,-1,-1,-1,-1,1107,-1,-1,-1,1242,-1,-1,1350,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,972,1026,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,999,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(x._case<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1053,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1080,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(x._catch<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1134,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1161,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1188,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1215,-1,-1,-1,-1,-1,-1,-1,b._checks<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1269,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1296,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1323,-1,-1,-1,-1,-1,-1,-1,(x._class<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1377,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1404,1620,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1431,-1,-1,-1,-1,-1,-1,(x._const<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1458,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1485,-1,-1,-1,-1,-1,-1,-1,-1,1512,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1539,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1566,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1593,-1,-1,-1,-1,-1,-1,-1,-1,b._constructor<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1647,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1674,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1701,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1728,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(x._continue<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1782,-1,-1,-1,-1,-1,-1,-1,-1,-1,2349,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1809,1971,-1,-1,2106,-1,-1,-1,-1,-1,2241,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1836,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1863,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1890,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1917,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1944,-1,-1,-1,-1,-1,-1,-1,-1,(x._debugger<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1998,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2025,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2052,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2079,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,b._declare<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2133,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2160,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2187,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2214,-1,-1,-1,-1,-1,-1,(x._default<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2268,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2295,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2322,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(x._delete<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(x._do<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2403,-1,2484,-1,-1,-1,-1,-1,-1,-1,-1,-1,2565,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2430,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2457,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(x._else<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2511,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2538,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,b._enum<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2592,-1,-1,-1,2727,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2619,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2646,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2673,-1,-1,-1,-1,-1,-1,(x._export<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2700,-1,-1,-1,-1,-1,-1,-1,b._exports<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2754,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2781,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2808,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2835,-1,-1,-1,-1,-1,-1,-1,(x._extends<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2889,-1,-1,-1,-1,-1,-1,-1,2997,-1,-1,-1,-1,-1,3159,-1,-1,3213,-1,-1,3294,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2916,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2943,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2970,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(x._false<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3024,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3051,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3078,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3105,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3132,-1,(x._finally<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3186,-1,-1,-1,-1,-1,-1,-1,-1,(x._for<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3240,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3267,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,b._from<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3321,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3348,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3375,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3402,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3429,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3456,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(x._function<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3510,-1,-1,-1,-1,-1,-1,3564,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3537,-1,-1,-1,-1,-1,-1,b._get<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3591,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3618,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3645,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3672,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,b._global<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3726,-1,-1,-1,-1,-1,-1,3753,4077,-1,-1,-1,-1,4590,-1,-1,-1,-1,-1,-1,-1,(x._if<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3780,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3807,-1,-1,3996,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3834,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3861,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3888,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3915,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3942,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3969,-1,-1,-1,-1,-1,-1,-1,b._implements<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4023,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4050,-1,-1,-1,-1,-1,-1,(x._import<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(x._in<<1)+1,-1,-1,-1,-1,-1,4104,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4185,4401,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4131,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4158,-1,-1,-1,-1,-1,-1,-1,-1,b._infer<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4212,-1,-1,-1,-1,-1,-1,-1,4239,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4266,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4293,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4320,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4347,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4374,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(x._instanceof<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4428,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4455,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4482,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4509,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4536,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4563,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,b._interface<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,b._is<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4644,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4671,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4698,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4725,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,b._keyof<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4779,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4806,-1,-1,-1,-1,-1,-1,(x._let<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4860,-1,-1,-1,-1,-1,4995,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4887,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4914,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4941,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4968,-1,-1,-1,-1,-1,-1,-1,b._mixins<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5022,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5049,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5076,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5103,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,b._module<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5157,-1,-1,-1,5373,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5427,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5184,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5211,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5238,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5265,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5292,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5319,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5346,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,b._namespace<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5400,-1,-1,-1,(x._new<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5454,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5481,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(x._null<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5535,-1,-1,-1,-1,-1,-1,-1,-1,-1,5562,-1,-1,-1,-1,5697,5751,-1,-1,-1,-1,b._of<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5589,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5616,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5643,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5670,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,b._opaque<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5724,-1,-1,-1,-1,-1,-1,b._out<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5778,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5805,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5832,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5859,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5886,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5913,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,b._override<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5967,-1,-1,6345,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5994,-1,-1,-1,-1,-1,6129,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6021,-1,-1,-1,-1,-1,6048,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6075,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6102,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,b._private<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6156,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6183,-1,-1,-1,-1,-1,-1,-1,-1,-1,6318,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6210,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6237,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6264,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6291,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,b._protected<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,b._proto<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6372,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6399,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6426,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6453,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,b._public<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6507,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6534,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6696,-1,-1,6831,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6561,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6588,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6615,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6642,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6669,-1,b._readonly<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6723,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6750,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6777,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6804,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,b._require<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6858,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6885,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6912,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(x._return<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6966,-1,-1,-1,7182,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7236,7371,-1,7479,-1,7614,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6993,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7020,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7047,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7074,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7101,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7128,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7155,-1,-1,-1,-1,-1,-1,-1,b._satisfies<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7209,-1,-1,-1,-1,-1,-1,b._set<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7263,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7290,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7317,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7344,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,b._static<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7398,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7425,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7452,-1,-1,-1,-1,-1,-1,-1,-1,(x._super<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7506,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7533,-1,-1,-1,-1,-1,-1,-1,-1,-1,7560,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7587,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(x._switch<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7641,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7668,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7695,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7722,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,b._symbol<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7776,-1,-1,-1,-1,-1,-1,-1,-1,-1,7938,-1,-1,-1,-1,-1,-1,8046,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7803,-1,-1,-1,-1,-1,-1,-1,-1,7857,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7830,-1,-1,-1,-1,-1,-1,-1,(x._this<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7884,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7911,-1,-1,-1,(x._throw<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7965,-1,-1,-1,8019,-1,-1,-1,-1,-1,-1,7992,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(x._true<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(x._try<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8073,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8100,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,b._type<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8127,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8154,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(x._typeof<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8208,-1,-1,-1,-1,8343,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8235,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8262,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8289,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8316,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,b._unique<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8370,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8397,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8424,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,b._using<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8478,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8532,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8505,-1,-1,-1,-1,-1,-1,-1,-1,(x._var<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8559,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8586,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(x._void<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8640,8748,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8667,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8694,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8721,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(x._while<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8775,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8802,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(x._with<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8856,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8883,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8910,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8937,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(x._yield<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1]);function Ee(){let e=0,t=0,n=D.pos;for(;n<O.length&&(t=O.charCodeAt(n),!(t<w.lowercaseA||t>w.lowercaseZ));){let r=Te[e+(t-w.lowercaseA)+1];if(r===-1)break;e=r,n++}let r=Te[e];if(r>-1&&!Ce[t])D.pos=n,r&1?Ye(r>>>1):Ye(x.name,r>>>1);else{for(;n<O.length;){let e=O.charCodeAt(n);if(Ce[e])n++;else if(e===w.backslash){if(n+=2,O.charCodeAt(n)===w.leftCurlyBrace){for(;n<O.length&&O.charCodeAt(n)!==w.rightCurlyBrace;)n++;n++}}else if(e===w.atSign&&O.charCodeAt(n+1)===w.atSign)n+=2;else break}D.pos=n,Ye(x.name)}}var P;(function(e){e[e.Access=0]=`Access`,e[e.ExportAccess=1]=`ExportAccess`,e[e.TopLevelDeclaration=2]=`TopLevelDeclaration`,e[e.FunctionScopedDeclaration=3]=`FunctionScopedDeclaration`,e[e.BlockScopedDeclaration=4]=`BlockScopedDeclaration`,e[e.ObjectShorthandTopLevelDeclaration=5]=`ObjectShorthandTopLevelDeclaration`,e[e.ObjectShorthandFunctionScopedDeclaration=6]=`ObjectShorthandFunctionScopedDeclaration`,e[e.ObjectShorthandBlockScopedDeclaration=7]=`ObjectShorthandBlockScopedDeclaration`,e[e.ObjectShorthand=8]=`ObjectShorthand`,e[e.ImportDeclaration=9]=`ImportDeclaration`,e[e.ObjectKey=10]=`ObjectKey`,e[e.ImportAccess=11]=`ImportAccess`})(P||={});var De;(function(e){e[e.NoChildren=0]=`NoChildren`,e[e.OneChild=1]=`OneChild`,e[e.StaticChildren=2]=`StaticChildren`,e[e.KeyAfterPropSpread=3]=`KeyAfterPropSpread`})(De||={});function Oe(e){let t=e.identifierRole;return t===P.TopLevelDeclaration||t===P.FunctionScopedDeclaration||t===P.BlockScopedDeclaration||t===P.ObjectShorthandTopLevelDeclaration||t===P.ObjectShorthandFunctionScopedDeclaration||t===P.ObjectShorthandBlockScopedDeclaration}function ke(e){let t=e.identifierRole;return t===P.FunctionScopedDeclaration||t===P.BlockScopedDeclaration||t===P.ObjectShorthandFunctionScopedDeclaration||t===P.ObjectShorthandBlockScopedDeclaration}function Ae(e){let t=e.identifierRole;return t===P.TopLevelDeclaration||t===P.ObjectShorthandTopLevelDeclaration||t===P.ImportDeclaration}function je(e){let t=e.identifierRole;return t===P.TopLevelDeclaration||t===P.BlockScopedDeclaration||t===P.ObjectShorthandTopLevelDeclaration||t===P.ObjectShorthandBlockScopedDeclaration}function Me(e){let t=e.identifierRole;return t===P.FunctionScopedDeclaration||t===P.ObjectShorthandFunctionScopedDeclaration}function Ne(e){return e.identifierRole===P.ObjectShorthandTopLevelDeclaration||e.identifierRole===P.ObjectShorthandBlockScopedDeclaration||e.identifierRole===P.ObjectShorthandFunctionScopedDeclaration}var Pe=class{constructor(){this.type=D.type,this.contextualKeyword=D.contextualKeyword,this.start=D.start,this.end=D.end,this.scopeDepth=D.scopeDepth,this.isType=D.isType,this.identifierRole=null,this.jsxRole=null,this.shadowsGlobal=!1,this.isAsyncOperation=!1,this.contextId=null,this.rhsEndIndex=null,this.isExpression=!1,this.numNullishCoalesceStarts=0,this.numNullishCoalesceEnds=0,this.isOptionalChainStart=!1,this.isOptionalChainEnd=!1,this.subscriptStartIndex=null,this.nullishStartIndex=null}};function F(){D.tokens.push(new Pe),We()}function Fe(){D.tokens.push(new Pe),D.start=D.pos,mt()}function Ie(){D.type===x.assign&&--D.pos,lt()}function I(e){for(let t=D.tokens.length-e;t<D.tokens.length;t++)D.tokens[t].isType=!0;let t=D.isType;return D.isType=!0,t}function L(e){D.isType=e}function R(e){return z(e)?(F(),!0):!1}function Le(e){let t=D.isType;D.isType=!0,R(e),D.isType=t}function z(e){return D.type===e}function Re(){let e=D.snapshot();F();let t=D.type;return D.restoreFromSnapshot(e),t}var ze=class{constructor(e,t){this.type=e,this.contextualKeyword=t}};function Be(){let e=D.snapshot();F();let t=D.type,n=D.contextualKeyword;return D.restoreFromSnapshot(e),new ze(t,n)}function Ve(){return He(D.pos)}function He(e){return be.lastIndex=e,e+be.exec(O)[0].length}function Ue(){return O.charCodeAt(Ve())}function We(){if(Je(),D.start=D.pos,D.pos>=O.length){let e=D.tokens;e.length>=2&&e[e.length-1].start>=O.length&&e[e.length-2].start>=O.length&&N(`Unexpectedly reached the end of input.`),Ye(x.eof)}else Ge(O.charCodeAt(D.pos))}function Ge(e){we[e]||e===w.backslash||e===w.atSign&&O.charCodeAt(D.pos+1)===w.atSign?Ee():st(e)}function Ke(){for(;O.charCodeAt(D.pos)!==w.asterisk||O.charCodeAt(D.pos+1)!==w.slash;)if(D.pos++,D.pos>O.length){N(`Unterminated comment`,D.pos-2);return}D.pos+=2}function qe(e){let t=O.charCodeAt(D.pos+=e);if(D.pos<O.length)for(;t!==w.lineFeed&&t!==w.carriageReturn&&t!==w.lineSeparator&&t!==w.paragraphSeparator&&++D.pos<O.length;)t=O.charCodeAt(D.pos)}function Je(){for(;D.pos<O.length;){let e=O.charCodeAt(D.pos);switch(e){case w.carriageReturn:O.charCodeAt(D.pos+1)===w.lineFeed&&++D.pos;case w.lineFeed:case w.lineSeparator:case w.paragraphSeparator:++D.pos;break;case w.slash:switch(O.charCodeAt(D.pos+1)){case w.asterisk:D.pos+=2,Ke();break;case w.slash:qe(2);break;default:return}break;default:if(xe[e])++D.pos;else return}}}function Ye(e,t=b.NONE){D.end=D.pos,D.type=e,D.contextualKeyword=t}function Xe(){let e=O.charCodeAt(D.pos+1);e>=w.digit0&&e<=w.digit9?ft(!0):e===w.dot&&O.charCodeAt(D.pos+2)===w.dot?(D.pos+=3,Ye(x.ellipsis)):(++D.pos,Ye(x.dot))}function Ze(){O.charCodeAt(D.pos+1)===w.equalsTo?ct(x.assign,2):ct(x.slash,1)}function Qe(e){let t=e===w.asterisk?x.star:x.modulo,n=1,r=O.charCodeAt(D.pos+1);e===w.asterisk&&r===w.asterisk&&(n++,r=O.charCodeAt(D.pos+2),t=x.exponent),r===w.equalsTo&&O.charCodeAt(D.pos+2)!==w.greaterThan&&(n++,t=x.assign),ct(t,n)}function $e(e){let t=O.charCodeAt(D.pos+1);if(t===e)O.charCodeAt(D.pos+2)===w.equalsTo?ct(x.assign,3):ct(e===w.verticalBar?x.logicalOR:x.logicalAND,2);else{if(e===w.verticalBar){if(t===w.greaterThan){ct(x.pipeline,2);return}if(t===w.rightCurlyBrace&&E){ct(x.braceBarR,2);return}}t===w.equalsTo?ct(x.assign,2):ct(e===w.verticalBar?x.bitwiseOR:x.bitwiseAND,1)}}function et(){O.charCodeAt(D.pos+1)===w.equalsTo?ct(x.assign,2):ct(x.bitwiseXOR,1)}function tt(e){let t=O.charCodeAt(D.pos+1);t===e?ct(x.preIncDec,2):t===w.equalsTo?ct(x.assign,2):e===w.plusSign?ct(x.plus,1):ct(x.minus,1)}function nt(){let e=O.charCodeAt(D.pos+1);if(e===w.lessThan){if(O.charCodeAt(D.pos+2)===w.equalsTo){ct(x.assign,3);return}D.isType?ct(x.lessThan,1):ct(x.bitShiftL,2)}else e===w.equalsTo?ct(x.relationalOrEqual,2):ct(x.lessThan,1)}function rt(){if(D.isType){ct(x.greaterThan,1);return}let e=O.charCodeAt(D.pos+1);if(e===w.greaterThan){let e=O.charCodeAt(D.pos+2)===w.greaterThan?3:2;if(O.charCodeAt(D.pos+e)===w.equalsTo){ct(x.assign,e+1);return}ct(x.bitShiftR,e)}else e===w.equalsTo?ct(x.relationalOrEqual,2):ct(x.greaterThan,1)}function it(){D.type===x.greaterThan&&(--D.pos,rt())}function at(e){let t=O.charCodeAt(D.pos+1);t===w.equalsTo?ct(x.equality,O.charCodeAt(D.pos+2)===w.equalsTo?3:2):e===w.equalsTo&&t===w.greaterThan?(D.pos+=2,Ye(x.arrow)):ct(e===w.equalsTo?x.eq:x.bang,1)}function ot(){let e=O.charCodeAt(D.pos+1),t=O.charCodeAt(D.pos+2);e===w.questionMark&&!(E&&D.isType)?t===w.equalsTo?ct(x.assign,3):ct(x.nullishCoalescing,2):e===w.dot&&!(t>=w.digit0&&t<=w.digit9)?(D.pos+=2,Ye(x.questionDot)):(++D.pos,Ye(x.question))}function st(e){switch(e){case w.numberSign:++D.pos,Ye(x.hash);return;case w.dot:Xe();return;case w.leftParenthesis:++D.pos,Ye(x.parenL);return;case w.rightParenthesis:++D.pos,Ye(x.parenR);return;case w.semicolon:++D.pos,Ye(x.semi);return;case w.comma:++D.pos,Ye(x.comma);return;case w.leftSquareBracket:++D.pos,Ye(x.bracketL);return;case w.rightSquareBracket:++D.pos,Ye(x.bracketR);return;case w.leftCurlyBrace:E&&O.charCodeAt(D.pos+1)===w.verticalBar?ct(x.braceBarL,2):(++D.pos,Ye(x.braceL));return;case w.rightCurlyBrace:++D.pos,Ye(x.braceR);return;case w.colon:O.charCodeAt(D.pos+1)===w.colon?ct(x.doubleColon,2):(++D.pos,Ye(x.colon));return;case w.questionMark:ot();return;case w.atSign:++D.pos,Ye(x.at);return;case w.graveAccent:++D.pos,Ye(x.backQuote);return;case w.digit0:{let e=O.charCodeAt(D.pos+1);if(e===w.lowercaseX||e===w.uppercaseX||e===w.lowercaseO||e===w.uppercaseO||e===w.lowercaseB||e===w.uppercaseB){dt();return}}case w.digit1:case w.digit2:case w.digit3:case w.digit4:case w.digit5:case w.digit6:case w.digit7:case w.digit8:case w.digit9:ft(!1);return;case w.quotationMark:case w.apostrophe:pt(e);return;case w.slash:Ze();return;case w.percentSign:case w.asterisk:Qe(e);return;case w.verticalBar:case w.ampersand:$e(e);return;case w.caret:et();return;case w.plusSign:case w.dash:tt(e);return;case w.lessThan:nt();return;case w.greaterThan:rt();return;case w.equalsTo:case w.exclamationMark:at(e);return;case w.tilde:ct(x.tilde,1);return}N(`Unexpected character '${String.fromCharCode(e)}'`,D.pos)}function ct(e,t){D.pos+=t,Ye(e)}function lt(){let e=D.pos,t=!1,n=!1;for(;;){if(D.pos>=O.length){N(`Unterminated regular expression`,e);return}let r=O.charCodeAt(D.pos);if(t)t=!1;else{if(r===w.leftSquareBracket)n=!0;else if(r===w.rightSquareBracket&&n)n=!1;else if(r===w.slash&&!n)break;t=r===w.backslash}++D.pos}++D.pos,ht(),Ye(x.regexp)}function ut(){for(;;){let e=O.charCodeAt(D.pos);if(e>=w.digit0&&e<=w.digit9||e===w.underscore)D.pos++;else break}}function dt(){for(D.pos+=2;;){let e=O.charCodeAt(D.pos);if(e>=w.digit0&&e<=w.digit9||e>=w.lowercaseA&&e<=w.lowercaseF||e>=w.uppercaseA&&e<=w.uppercaseF||e===w.underscore)D.pos++;else break}O.charCodeAt(D.pos)===w.lowercaseN?(++D.pos,Ye(x.bigint)):Ye(x.num)}function ft(e){let t=!1,n=!1;e||ut();let r=O.charCodeAt(D.pos);r===w.dot&&(++D.pos,ut(),r=O.charCodeAt(D.pos)),(r===w.uppercaseE||r===w.lowercaseE)&&(r=O.charCodeAt(++D.pos),(r===w.plusSign||r===w.dash)&&++D.pos,ut(),r=O.charCodeAt(D.pos)),r===w.lowercaseN?(++D.pos,t=!0):r===w.lowercaseM&&(++D.pos,n=!0),Ye(t?x.bigint:n?x.decimal:x.num)}function pt(e){for(D.pos++;;){if(D.pos>=O.length){N(`Unterminated string constant`);return}let t=O.charCodeAt(D.pos);if(t===w.backslash)D.pos++;else if(t===e)break;D.pos++}D.pos++,Ye(x.string)}function mt(){for(;;){if(D.pos>=O.length){N(`Unterminated template`);return}let e=O.charCodeAt(D.pos);if(e===w.graveAccent||e===w.dollarSign&&O.charCodeAt(D.pos+1)===w.leftCurlyBrace){if(D.pos===D.start&&z(x.template)){if(e===w.dollarSign){D.pos+=2,Ye(x.dollarBraceL);return}++D.pos,Ye(x.backQuote);return}Ye(x.template);return}e===w.backslash&&D.pos++,D.pos++}}function ht(){for(;D.pos<O.length;){let e=O.charCodeAt(D.pos);if(Ce[e])D.pos++;else if(e===w.backslash){if(D.pos+=2,O.charCodeAt(D.pos)===w.leftCurlyBrace){for(;D.pos<O.length&&O.charCodeAt(D.pos)!==w.rightCurlyBrace;)D.pos++;D.pos++}}else break}}function gt(e,t=e.currentIndex()){let n=t+1;if(_t(e,n)){let r=e.identifierNameAtIndex(t);return{isType:!1,leftName:r,rightName:r,endIndex:n}}if(n++,_t(e,n))return{isType:!0,leftName:null,rightName:null,endIndex:n};if(n++,_t(e,n))return{isType:!1,leftName:e.identifierNameAtIndex(t),rightName:e.identifierNameAtIndex(t+2),endIndex:n};if(n++,_t(e,n))return{isType:!0,leftName:null,rightName:null,endIndex:n};throw Error(`Unexpected import/export specifier at ${t}`)}function _t(e,t){let n=e.tokens[t];return n.type===x.braceR||n.type===x.comma}var vt=/* @__PURE__ */ new Map([[`quot`,`"`],[`amp`,`&`],[`apos`,`'`],[`lt`,`<`],[`gt`,`>`],[`nbsp`,`\xA0`],[`iexcl`,`¡`],[`cent`,`¢`],[`pound`,`£`],[`curren`,`¤`],[`yen`,`¥`],[`brvbar`,`¦`],[`sect`,`§`],[`uml`,`¨`],[`copy`,`©`],[`ordf`,`ª`],[`laquo`,`«`],[`not`,`¬`],[`shy`,`­`],[`reg`,`®`],[`macr`,`¯`],[`deg`,`°`],[`plusmn`,`±`],[`sup2`,`²`],[`sup3`,`³`],[`acute`,`´`],[`micro`,`µ`],[`para`,`¶`],[`middot`,`·`],[`cedil`,`¸`],[`sup1`,`¹`],[`ordm`,`º`],[`raquo`,`»`],[`frac14`,`¼`],[`frac12`,`½`],[`frac34`,`¾`],[`iquest`,`¿`],[`Agrave`,`À`],[`Aacute`,`Á`],[`Acirc`,`Â`],[`Atilde`,`Ã`],[`Auml`,`Ä`],[`Aring`,`Å`],[`AElig`,`Æ`],[`Ccedil`,`Ç`],[`Egrave`,`È`],[`Eacute`,`É`],[`Ecirc`,`Ê`],[`Euml`,`Ë`],[`Igrave`,`Ì`],[`Iacute`,`Í`],[`Icirc`,`Î`],[`Iuml`,`Ï`],[`ETH`,`Ð`],[`Ntilde`,`Ñ`],[`Ograve`,`Ò`],[`Oacute`,`Ó`],[`Ocirc`,`Ô`],[`Otilde`,`Õ`],[`Ouml`,`Ö`],[`times`,`×`],[`Oslash`,`Ø`],[`Ugrave`,`Ù`],[`Uacute`,`Ú`],[`Ucirc`,`Û`],[`Uuml`,`Ü`],[`Yacute`,`Ý`],[`THORN`,`Þ`],[`szlig`,`ß`],[`agrave`,`à`],[`aacute`,`á`],[`acirc`,`â`],[`atilde`,`ã`],[`auml`,`ä`],[`aring`,`å`],[`aelig`,`æ`],[`ccedil`,`ç`],[`egrave`,`è`],[`eacute`,`é`],[`ecirc`,`ê`],[`euml`,`ë`],[`igrave`,`ì`],[`iacute`,`í`],[`icirc`,`î`],[`iuml`,`ï`],[`eth`,`ð`],[`ntilde`,`ñ`],[`ograve`,`ò`],[`oacute`,`ó`],[`ocirc`,`ô`],[`otilde`,`õ`],[`ouml`,`ö`],[`divide`,`÷`],[`oslash`,`ø`],[`ugrave`,`ù`],[`uacute`,`ú`],[`ucirc`,`û`],[`uuml`,`ü`],[`yacute`,`ý`],[`thorn`,`þ`],[`yuml`,`ÿ`],[`OElig`,`Œ`],[`oelig`,`œ`],[`Scaron`,`Š`],[`scaron`,`š`],[`Yuml`,`Ÿ`],[`fnof`,`ƒ`],[`circ`,`ˆ`],[`tilde`,`˜`],[`Alpha`,`Α`],[`Beta`,`Β`],[`Gamma`,`Γ`],[`Delta`,`Δ`],[`Epsilon`,`Ε`],[`Zeta`,`Ζ`],[`Eta`,`Η`],[`Theta`,`Θ`],[`Iota`,`Ι`],[`Kappa`,`Κ`],[`Lambda`,`Λ`],[`Mu`,`Μ`],[`Nu`,`Ν`],[`Xi`,`Ξ`],[`Omicron`,`Ο`],[`Pi`,`Π`],[`Rho`,`Ρ`],[`Sigma`,`Σ`],[`Tau`,`Τ`],[`Upsilon`,`Υ`],[`Phi`,`Φ`],[`Chi`,`Χ`],[`Psi`,`Ψ`],[`Omega`,`Ω`],[`alpha`,`α`],[`beta`,`β`],[`gamma`,`γ`],[`delta`,`δ`],[`epsilon`,`ε`],[`zeta`,`ζ`],[`eta`,`η`],[`theta`,`θ`],[`iota`,`ι`],[`kappa`,`κ`],[`lambda`,`λ`],[`mu`,`μ`],[`nu`,`ν`],[`xi`,`ξ`],[`omicron`,`ο`],[`pi`,`π`],[`rho`,`ρ`],[`sigmaf`,`ς`],[`sigma`,`σ`],[`tau`,`τ`],[`upsilon`,`υ`],[`phi`,`φ`],[`chi`,`χ`],[`psi`,`ψ`],[`omega`,`ω`],[`thetasym`,`ϑ`],[`upsih`,`ϒ`],[`piv`,`ϖ`],[`ensp`,` `],[`emsp`,` `],[`thinsp`,` `],[`zwnj`,`‌`],[`zwj`,`‍`],[`lrm`,`‎`],[`rlm`,`‏`],[`ndash`,`–`],[`mdash`,`—`],[`lsquo`,`‘`],[`rsquo`,`’`],[`sbquo`,`‚`],[`ldquo`,`“`],[`rdquo`,`”`],[`bdquo`,`„`],[`dagger`,`†`],[`Dagger`,`‡`],[`bull`,`•`],[`hellip`,`…`],[`permil`,`‰`],[`prime`,`′`],[`Prime`,`″`],[`lsaquo`,`‹`],[`rsaquo`,`›`],[`oline`,`‾`],[`frasl`,`⁄`],[`euro`,`€`],[`image`,`ℑ`],[`weierp`,`℘`],[`real`,`ℜ`],[`trade`,`™`],[`alefsym`,`ℵ`],[`larr`,`←`],[`uarr`,`↑`],[`rarr`,`→`],[`darr`,`↓`],[`harr`,`↔`],[`crarr`,`↵`],[`lArr`,`⇐`],[`uArr`,`⇑`],[`rArr`,`⇒`],[`dArr`,`⇓`],[`hArr`,`⇔`],[`forall`,`∀`],[`part`,`∂`],[`exist`,`∃`],[`empty`,`∅`],[`nabla`,`∇`],[`isin`,`∈`],[`notin`,`∉`],[`ni`,`∋`],[`prod`,`∏`],[`sum`,`∑`],[`minus`,`−`],[`lowast`,`∗`],[`radic`,`√`],[`prop`,`∝`],[`infin`,`∞`],[`ang`,`∠`],[`and`,`∧`],[`or`,`∨`],[`cap`,`∩`],[`cup`,`∪`],[`int`,`∫`],[`there4`,`∴`],[`sim`,`∼`],[`cong`,`≅`],[`asymp`,`≈`],[`ne`,`≠`],[`equiv`,`≡`],[`le`,`≤`],[`ge`,`≥`],[`sub`,`⊂`],[`sup`,`⊃`],[`nsub`,`⊄`],[`sube`,`⊆`],[`supe`,`⊇`],[`oplus`,`⊕`],[`otimes`,`⊗`],[`perp`,`⊥`],[`sdot`,`⋅`],[`lceil`,`⌈`],[`rceil`,`⌉`],[`lfloor`,`⌊`],[`rfloor`,`⌋`],[`lang`,`〈`],[`rang`,`〉`],[`loz`,`◊`],[`spades`,`♠`],[`clubs`,`♣`],[`hearts`,`♥`],[`diams`,`♦`]]);function yt(e){let[t,n]=bt(e.jsxPragma||`React.createElement`),[r,i]=bt(e.jsxFragmentPragma||`React.Fragment`);return{base:t,suffix:n,fragmentBase:r,fragmentSuffix:i}}function bt(e){let t=e.indexOf(`.`);return t===-1&&(t=e.length),[e.slice(0,t),e.slice(t)]}var xt=class{getPrefixCode(){return``}getHoistedCode(){return``}getSuffixCode(){return``}},St=class e extends xt{__init(){this.lastLineNumber=1}__init2(){this.lastIndex=0}__init3(){this.filenameVarName=null}__init4(){this.esmAutomaticImportNameResolutions={}}__init5(){this.cjsAutomaticModuleNameResolutions={}}constructor(t,n,r,i,a){super(),this.rootTransformer=t,this.tokens=n,this.importProcessor=r,this.nameManager=i,this.options=a,e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),e.prototype.__init5.call(this),this.jsxPragmaInfo=yt(a),this.isAutomaticRuntime=a.jsxRuntime===`automatic`,this.jsxImportSource=a.jsxImportSource||`react`}process(){return this.tokens.matches1(x.jsxTagStart)?(this.processJSXTag(),!0):!1}getPrefixCode(){let e=``;if(this.filenameVarName&&(e+=`const ${this.filenameVarName} = ${JSON.stringify(this.options.filePath||``)};`),this.isAutomaticRuntime){if(this.importProcessor)for(let[t,n]of Object.entries(this.cjsAutomaticModuleNameResolutions))e+=`var ${n} = require("${t}");`;else{let{createElement:t,...n}=this.esmAutomaticImportNameResolutions;t&&(e+=`import {createElement as ${t}} from "${this.jsxImportSource}";`);let r=Object.entries(n).map(([e,t])=>`${e} as ${t}`).join(`, `);if(r){let t=this.jsxImportSource+(this.options.production?`/jsx-runtime`:`/jsx-dev-runtime`);e+=`import {${r}} from "${t}";`}}}return e}processJSXTag(){let{jsxRole:e,start:t}=this.tokens.currentToken(),n=this.options.production?null:this.getElementLocationCode(t);this.isAutomaticRuntime&&e!==De.KeyAfterPropSpread?this.transformTagToJSXFunc(n,e):this.transformTagToCreateElement(n)}getElementLocationCode(e){return`lineNumber: ${this.getLineNumberForIndex(e)}`}getLineNumberForIndex(e){let t=this.tokens.code;for(;this.lastIndex<e&&this.lastIndex<t.length;)t[this.lastIndex]===`
304
+ `&&this.lastLineNumber++,this.lastIndex++;return this.lastLineNumber}transformTagToJSXFunc(e,t){let n=t===De.StaticChildren;this.tokens.replaceToken(this.getJSXFuncInvocationCode(n));let r=null;if(this.tokens.matches1(x.jsxTagEnd))this.tokens.replaceToken(`${this.getFragmentCode()}, {`),this.processAutomaticChildrenAndEndProps(t);else{if(this.processTagIntro(),this.tokens.appendCode(`, {`),r=this.processProps(!0),this.tokens.matches2(x.slash,x.jsxTagEnd))this.tokens.appendCode(`}`);else if(this.tokens.matches1(x.jsxTagEnd))this.tokens.removeToken(),this.processAutomaticChildrenAndEndProps(t);else throw Error(`Expected either /> or > at the end of the tag.`);r&&this.tokens.appendCode(`, ${r}`)}for(this.options.production||(r===null&&this.tokens.appendCode(`, void 0`),this.tokens.appendCode(`, ${n}, ${this.getDevSource(e)}, this`)),this.tokens.removeInitialToken();!this.tokens.matches1(x.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(`)`)}transformTagToCreateElement(e){if(this.tokens.replaceToken(this.getCreateElementInvocationCode()),this.tokens.matches1(x.jsxTagEnd))this.tokens.replaceToken(`${this.getFragmentCode()}, null`),this.processChildren(!0);else if(this.processTagIntro(),this.processPropsObjectWithDevInfo(e),!this.tokens.matches2(x.slash,x.jsxTagEnd)){if(this.tokens.matches1(x.jsxTagEnd))this.tokens.removeToken(),this.processChildren(!0);else throw Error(`Expected either /> or > at the end of the tag.`)}for(this.tokens.removeInitialToken();!this.tokens.matches1(x.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(`)`)}getJSXFuncInvocationCode(e){return this.options.production?e?this.claimAutoImportedFuncInvocation(`jsxs`,`/jsx-runtime`):this.claimAutoImportedFuncInvocation(`jsx`,`/jsx-runtime`):this.claimAutoImportedFuncInvocation(`jsxDEV`,`/jsx-dev-runtime`)}getCreateElementInvocationCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedFuncInvocation(`createElement`,``);{let{jsxPragmaInfo:e}=this;return`${this.importProcessor&&this.importProcessor.getIdentifierReplacement(e.base)||e.base}${e.suffix}(`}}getFragmentCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedName(`Fragment`,this.options.production?`/jsx-runtime`:`/jsx-dev-runtime`);{let{jsxPragmaInfo:e}=this;return(this.importProcessor&&this.importProcessor.getIdentifierReplacement(e.fragmentBase)||e.fragmentBase)+e.fragmentSuffix}}claimAutoImportedFuncInvocation(e,t){let n=this.claimAutoImportedName(e,t);return this.importProcessor?`${n}.call(void 0, `:`${n}(`}claimAutoImportedName(e,t){if(this.importProcessor){let n=this.jsxImportSource+t;return this.cjsAutomaticModuleNameResolutions[n]||(this.cjsAutomaticModuleNameResolutions[n]=this.importProcessor.getFreeIdentifierForPath(n)),`${this.cjsAutomaticModuleNameResolutions[n]}.${e}`}return this.esmAutomaticImportNameResolutions[e]||(this.esmAutomaticImportNameResolutions[e]=this.nameManager.claimFreeName(`_${e}`)),this.esmAutomaticImportNameResolutions[e]}processTagIntro(){let e=this.tokens.currentIndex()+1;for(;this.tokens.tokens[e].isType||!this.tokens.matches2AtIndex(e-1,x.jsxName,x.jsxName)&&!this.tokens.matches2AtIndex(e-1,x.greaterThan,x.jsxName)&&!this.tokens.matches1AtIndex(e,x.braceL)&&!this.tokens.matches1AtIndex(e,x.jsxTagEnd)&&!this.tokens.matches2AtIndex(e,x.slash,x.jsxTagEnd);)e++;if(e===this.tokens.currentIndex()+1){let e=this.tokens.identifierName();Ct(e)&&this.tokens.replaceToken(`'${e}'`)}for(;this.tokens.currentIndex()<e;)this.rootTransformer.processToken()}processPropsObjectWithDevInfo(e){let t=this.options.production?``:`__self: this, __source: ${this.getDevSource(e)}`;!this.tokens.matches1(x.jsxName)&&!this.tokens.matches1(x.braceL)?t?this.tokens.appendCode(`, {${t}}`):this.tokens.appendCode(`, null`):(this.tokens.appendCode(`, {`),this.processProps(!1),t?this.tokens.appendCode(` ${t}}`):this.tokens.appendCode(`}`))}processProps(e){let t=null;for(;;){if(this.tokens.matches2(x.jsxName,x.eq)){let n=this.tokens.identifierName();if(e&&n===`key`){t!==null&&this.tokens.appendCode(t.replace(/[^\n]/g,``)),this.tokens.removeToken(),this.tokens.removeToken();let e=this.tokens.snapshot();this.processPropValue(),t=this.tokens.dangerouslyGetAndRemoveCodeSinceSnapshot(e);continue}this.processPropName(n),this.tokens.replaceToken(`: `),this.processPropValue()}else if(this.tokens.matches1(x.jsxName)){let e=this.tokens.identifierName();this.processPropName(e),this.tokens.appendCode(`: true`)}else if(this.tokens.matches1(x.braceL))this.tokens.replaceToken(``),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken(``);else break;this.tokens.appendCode(`,`)}return t}processPropName(e){e.includes(`-`)?this.tokens.replaceToken(`'${e}'`):this.tokens.copyToken()}processPropValue(){this.tokens.matches1(x.braceL)?(this.tokens.replaceToken(``),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken(``)):this.tokens.matches1(x.jsxTagStart)?this.processJSXTag():this.processStringPropValue()}processStringPropValue(){let e=this.tokens.currentToken(),t=this.tokens.code.slice(e.start+1,e.end-1),n=Tt(t),r=Et(t);this.tokens.replaceToken(r+n)}processAutomaticChildrenAndEndProps(e){e===De.StaticChildren?(this.tokens.appendCode(` children: [`),this.processChildren(!1),this.tokens.appendCode(`]}`)):(e===De.OneChild&&this.tokens.appendCode(` children: `),this.processChildren(!1),this.tokens.appendCode(`}`))}processChildren(e){let t=e;for(;;){if(this.tokens.matches2(x.jsxTagStart,x.slash))return;let e=!1;if(this.tokens.matches1(x.braceL))this.tokens.matches2(x.braceL,x.braceR)?(this.tokens.replaceToken(``),this.tokens.replaceToken(``)):(this.tokens.replaceToken(t?`, `:``),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken(``),e=!0);else if(this.tokens.matches1(x.jsxTagStart))this.tokens.appendCode(t?`, `:``),this.processJSXTag(),e=!0;else if(this.tokens.matches1(x.jsxText)||this.tokens.matches1(x.jsxEmptyText))e=this.processChildTextElement(t);else throw Error(`Unexpected token when processing JSX children.`);e&&(t=!0)}}processChildTextElement(e){let t=this.tokens.currentToken(),n=this.tokens.code.slice(t.start,t.end),r=Tt(n),i=wt(n);return i===`""`?(this.tokens.replaceToken(r),!1):(this.tokens.replaceToken(`${e?`, `:``}${i}${r}`),!0)}getDevSource(e){return`{fileName: ${this.getFilenameVarName()}, ${e}}`}getFilenameVarName(){return this.filenameVarName||=this.nameManager.claimFreeName(`_jsxFileName`),this.filenameVarName}};function Ct(e){let t=e.charCodeAt(0);return t>=w.lowercaseA&&t<=w.lowercaseZ}function wt(e){let t=``,n=``,r=!1,i=!1;for(let a=0;a<e.length;a++){let o=e[a];if(o===` `||o===` `||o===`\r`)r||(n+=o);else if(o===`
305
+ `)n=``,r=!0;else{if(i&&r&&(t+=` `),t+=n,n=``,o===`&`){let{entity:n,newI:r}=Dt(e,a+1);a=r-1,t+=n}else t+=o;i=!0,r=!1}}return r||(t+=n),JSON.stringify(t)}function Tt(e){let t=0,n=0;for(let r of e)r===`
306
+ `?(t++,n=0):r===` `&&n++;return`
307
+ `.repeat(t)+` `.repeat(n)}function Et(e){let t=``;for(let n=0;n<e.length;n++){let r=e[n];if(r===`
308
+ `){if(/\s/.test(e[n+1]))for(t+=` `;n<e.length&&/\s/.test(e[n+1]);)n++;else t+=`
309
+ `}else if(r===`&`){let{entity:r,newI:i}=Dt(e,n+1);t+=r,n=i-1}else t+=r}return JSON.stringify(t)}function Dt(e,t){let n=``,r=0,i,a=t;if(e[a]===`#`){let t=10;a++;let n;if(e[a]===`x`)for(t=16,a++,n=a;a<e.length&&kt(e.charCodeAt(a));)a++;else for(n=a;a<e.length&&Ot(e.charCodeAt(a));)a++;if(e[a]===`;`){let r=e.slice(n,a);r&&(a++,i=String.fromCodePoint(parseInt(r,t)))}}else for(;a<e.length&&r++<10;){let t=e[a];if(a++,t===`;`){i=vt.get(n);break}n+=t}return i?{entity:i,newI:a}:{entity:`&`,newI:t}}function Ot(e){return e>=w.digit0&&e<=w.digit9}function kt(e){return e>=w.digit0&&e<=w.digit9||e>=w.lowercaseA&&e<=w.lowercaseF||e>=w.uppercaseA&&e<=w.uppercaseF}function At(e,t){let n=yt(t),r=/* @__PURE__ */ new Set;for(let t=0;t<e.tokens.length;t++){let i=e.tokens[t];i.type!==x.name||i.isType||i.identifierRole!==P.Access&&i.identifierRole!==P.ObjectShorthand&&i.identifierRole!==P.ExportAccess||i.shadowsGlobal||r.add(e.identifierNameForToken(i)),i.type===x.jsxTagStart&&r.add(n.base),i.type===x.jsxTagStart&&t+1<e.tokens.length&&e.tokens[t+1].type===x.jsxTagEnd&&(r.add(n.base),r.add(n.fragmentBase)),i.type===x.jsxName&&i.identifierRole===P.Access&&(Ct(e.identifierNameForToken(i))&&e.tokens[t+1].type!==x.dot||r.add(e.identifierNameForToken(i)))}return r}var jt=class e{__init(){this.nonTypeIdentifiers=/* @__PURE__ */ new Set}__init2(){this.importInfoByPath=/* @__PURE__ */ new Map}__init3(){this.importsToReplace=/* @__PURE__ */ new Map}__init4(){this.identifierReplacements=/* @__PURE__ */ new Map}__init5(){this.exportBindingsByLocalName=/* @__PURE__ */ new Map}constructor(t,n,r,i,a,o,s){this.nameManager=t,this.tokens=n,this.enableLegacyTypeScriptModuleInterop=r,this.options=i,this.isTypeScriptTransformEnabled=a,this.keepUnusedImports=o,this.helperManager=s,e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),e.prototype.__init5.call(this)}preprocessTokens(){for(let e=0;e<this.tokens.tokens.length;e++)this.tokens.matches1AtIndex(e,x._import)&&!this.tokens.matches3AtIndex(e,x._import,x.name,x.eq)&&this.preprocessImportAtIndex(e),this.tokens.matches1AtIndex(e,x._export)&&!this.tokens.matches2AtIndex(e,x._export,x.eq)&&this.preprocessExportAtIndex(e);this.generateImportReplacements()}pruneTypeOnlyImports(){this.nonTypeIdentifiers=At(this.tokens,this.options);for(let[e,t]of this.importInfoByPath.entries())t.hasBareImport||t.hasStarExport||t.exportStarNames.length>0||t.namedExports.length>0||[...t.defaultNames,...t.wildcardNames,...t.namedImports.map(({localName:e})=>e)].every(e=>this.shouldAutomaticallyElideImportedName(e))&&this.importsToReplace.set(e,``)}shouldAutomaticallyElideImportedName(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.nonTypeIdentifiers.has(e)}generateImportReplacements(){for(let[e,t]of this.importInfoByPath.entries()){let{defaultNames:n,wildcardNames:r,namedImports:i,namedExports:a,exportStarNames:o,hasStarExport:s}=t;if(n.length===0&&r.length===0&&i.length===0&&a.length===0&&o.length===0&&!s){this.importsToReplace.set(e,`require('${e}');`);continue}let c=this.getFreeIdentifierForPath(e),l;l=this.enableLegacyTypeScriptModuleInterop?c:r.length>0?r[0]:this.getFreeIdentifierForPath(e);let u=`var ${c} = require('${e}');`;if(r.length>0)for(let e of r){let t=this.enableLegacyTypeScriptModuleInterop?c:`${this.helperManager.getHelperName(`interopRequireWildcard`)}(${c})`;u+=` var ${e} = ${t};`}else o.length>0&&l!==c?u+=` var ${l} = ${this.helperManager.getHelperName(`interopRequireWildcard`)}(${c});`:n.length>0&&l!==c&&(u+=` var ${l} = ${this.helperManager.getHelperName(`interopRequireDefault`)}(${c});`);for(let{importedName:e,localName:t}of a)u+=` ${this.helperManager.getHelperName(`createNamedExportFrom`)}(${c}, '${t}', '${e}');`;for(let e of o)u+=` exports.${e} = ${l};`;s&&(u+=` ${this.helperManager.getHelperName(`createStarExport`)}(${c});`),this.importsToReplace.set(e,u);for(let e of n)this.identifierReplacements.set(e,`${l}.default`);for(let{importedName:e,localName:t}of i)this.identifierReplacements.set(t,`${c}.${e}`)}}getFreeIdentifierForPath(e){let t=e.split(`/`),n=t[t.length-1].replace(/\W/g,``);return this.nameManager.claimFreeName(`_${n}`)}preprocessImportAtIndex(e){let t=[],n=[],r=[];if(e++,(this.tokens.matchesContextualAtIndex(e,b._type)||this.tokens.matches1AtIndex(e,x._typeof))&&!this.tokens.matches1AtIndex(e+1,x.comma)&&!this.tokens.matchesContextualAtIndex(e+1,b._from)||this.tokens.matches1AtIndex(e,x.parenL))return;if(this.tokens.matches1AtIndex(e,x.name)&&(t.push(this.tokens.identifierNameAtIndex(e)),e++,this.tokens.matches1AtIndex(e,x.comma)&&e++),this.tokens.matches1AtIndex(e,x.star)&&(e+=2,n.push(this.tokens.identifierNameAtIndex(e)),e++),this.tokens.matches1AtIndex(e,x.braceL)){let n=this.getNamedImports(e+1);e=n.newIndex;for(let e of n.namedImports)e.importedName==="default"?t.push(e.localName):r.push(e)}if(this.tokens.matchesContextualAtIndex(e,b._from)&&e++,!this.tokens.matches1AtIndex(e,x.string))throw Error(`Expected string token at the end of import statement.`);let i=this.tokens.stringValueAtIndex(e),a=this.getImportInfo(i);a.defaultNames.push(...t),a.wildcardNames.push(...n),a.namedImports.push(...r),t.length===0&&n.length===0&&r.length===0&&(a.hasBareImport=!0)}preprocessExportAtIndex(e){if(this.tokens.matches2AtIndex(e,x._export,x._var)||this.tokens.matches2AtIndex(e,x._export,x._let)||this.tokens.matches2AtIndex(e,x._export,x._const))this.preprocessVarExportAtIndex(e);else if(this.tokens.matches2AtIndex(e,x._export,x._function)||this.tokens.matches2AtIndex(e,x._export,x._class)){let t=this.tokens.identifierNameAtIndex(e+2);this.addExportBinding(t,t)}else if(this.tokens.matches3AtIndex(e,x._export,x.name,x._function)){let t=this.tokens.identifierNameAtIndex(e+3);this.addExportBinding(t,t)}else this.tokens.matches2AtIndex(e,x._export,x.braceL)?this.preprocessNamedExportAtIndex(e):this.tokens.matches2AtIndex(e,x._export,x.star)&&this.preprocessExportStarAtIndex(e)}preprocessVarExportAtIndex(e){let t=0;for(let n=e+2;;n++)if(this.tokens.matches1AtIndex(n,x.braceL)||this.tokens.matches1AtIndex(n,x.dollarBraceL)||this.tokens.matches1AtIndex(n,x.bracketL))t++;else if(this.tokens.matches1AtIndex(n,x.braceR)||this.tokens.matches1AtIndex(n,x.bracketR))t--;else if(t===0&&!this.tokens.matches1AtIndex(n,x.name))break;else if(this.tokens.matches1AtIndex(1,x.eq)){let e=this.tokens.currentToken().rhsEndIndex;if(e==null)throw Error(`Expected = token with an end index.`);n=e-1}else{let e=this.tokens.tokens[n];if(Oe(e)){let e=this.tokens.identifierNameAtIndex(n);this.identifierReplacements.set(e,`exports.${e}`)}}}preprocessNamedExportAtIndex(e){e+=2;let{newIndex:t,namedImports:n}=this.getNamedImports(e);if(e=t,this.tokens.matchesContextualAtIndex(e,b._from))e++;else{for(let{importedName:e,localName:t}of n)this.addExportBinding(e,t);return}if(!this.tokens.matches1AtIndex(e,x.string))throw Error(`Expected string token at the end of import statement.`);let r=this.tokens.stringValueAtIndex(e);this.getImportInfo(r).namedExports.push(...n)}preprocessExportStarAtIndex(e){let t=null;if(this.tokens.matches3AtIndex(e,x._export,x.star,x._as)?(e+=3,t=this.tokens.identifierNameAtIndex(e),e+=2):e+=3,!this.tokens.matches1AtIndex(e,x.string))throw Error(`Expected string token at the end of star export statement.`);let n=this.tokens.stringValueAtIndex(e),r=this.getImportInfo(n);t===null?r.hasStarExport=!0:r.exportStarNames.push(t)}getNamedImports(e){let t=[];for(;;){if(this.tokens.matches1AtIndex(e,x.braceR)){e++;break}let n=gt(this.tokens,e);if(e=n.endIndex,n.isType||t.push({importedName:n.leftName,localName:n.rightName}),this.tokens.matches2AtIndex(e,x.comma,x.braceR)){e+=2;break}if(this.tokens.matches1AtIndex(e,x.braceR)){e++;break}if(this.tokens.matches1AtIndex(e,x.comma))e++;else throw Error(`Unexpected token: ${JSON.stringify(this.tokens.tokens[e])}`)}return{newIndex:e,namedImports:t}}getImportInfo(e){let t=this.importInfoByPath.get(e);if(t)return t;let n={defaultNames:[],wildcardNames:[],namedImports:[],namedExports:[],hasBareImport:!1,exportStarNames:[],hasStarExport:!1};return this.importInfoByPath.set(e,n),n}addExportBinding(e,t){this.exportBindingsByLocalName.has(e)||this.exportBindingsByLocalName.set(e,[]),this.exportBindingsByLocalName.get(e).push(t)}claimImportCode(e){let t=this.importsToReplace.get(e);return this.importsToReplace.set(e,``),t||``}getIdentifierReplacement(e){return this.identifierReplacements.get(e)||null}resolveExportBinding(e){let t=this.exportBindingsByLocalName.get(e);return!t||t.length===0?null:t.map(e=>`exports.${e}`).join(` = `)}getGlobalNames(){return/* @__PURE__ */ new Set([...this.identifierReplacements.keys(),...this.exportBindingsByLocalName.keys()])}},Mt=44,Nt=59,Pt=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,Ft=/* @__PURE__ */ new Uint8Array(64),It=/* @__PURE__ */ new Uint8Array(128);for(let e=0;e<Pt.length;e++){let t=Pt.charCodeAt(e);Ft[e]=t,It[t]=e}function Lt(e,t){do{let n=t&31;t>>>=5,t>0&&(n|=32),e.write(Ft[n])}while(t>0)}function Rt(e){return e<0?-e<<1|1:e<<1}var zt=16384,Bt=typeof TextDecoder<`u`?/* @__PURE__ */ new TextDecoder:typeof Buffer<`u`?{decode(e){return Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}}:{decode(e){let t=``;for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}},Vt=class{constructor(){this.pos=0,this.out=``,this.buffer=new Uint8Array(zt)}write(e){let{buffer:t}=this;t[this.pos++]=e,this.pos===zt&&(this.out+=Bt.decode(t),this.pos=0)}flush(){let{buffer:e,out:t,pos:n}=this;return n>0?t+Bt.decode(e.subarray(0,n)):t}};function Ht(e){let t=new Vt,n=0,r=0,i=0,a=0;for(let o=0;o<e.length;o++){let s=e[o];if(o>0&&t.write(Nt),s.length===0)continue;let c=0;for(let e=0;e<s.length;e++){let o=s[e];e>0&&t.write(Mt),Lt(t,Rt(o[0]-c)),c=o[0],o.length!==1&&(Lt(t,Rt(o[1]-n)),Lt(t,Rt(o[2]-r)),Lt(t,Rt(o[3]-i)),n=o[1],r=o[2],i=o[3],o.length!==4&&(Lt(t,Rt(o[4]-a)),a=o[4]))}}return t.flush()}(/* @__PURE__ */ o(((e,t,n)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self,n.resolveURI=r())})(n,(function(){"use strict";let e=/^[\w+.-]+:\/\//,t=/^([\w+.-]+:)\/\/([^@/#?]*@)?(\[[^\]]+\]|[^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,n=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function r(t){return e.test(t)}function i(e){return e.startsWith(`//`)}function a(e){return e.startsWith(`/`)}function o(e){return e.startsWith(`file:`)}function s(e){return/^[.?#]/.test(e)}function c(e){let n=t.exec(e);return u(n[1],n[2]||``,n[3],n[4]||``,n[5]||`/`,n[6]||``,n[7]||``)}function l(e){let t=n.exec(e),r=t[2];return u(`file:`,``,t[1]||``,``,a(r)?r:`/`+r,t[3]||``,t[4]||``)}function u(e,t,n,r,i,a,o){return{scheme:e,user:t,host:n,port:r,path:i,query:a,hash:o,type:7}}function d(e){if(i(e)){let t=c(`http:`+e);return t.scheme=``,t.type=6,t}if(a(e)){let t=c(`http://foo.com`+e);return t.scheme=``,t.host=``,t.type=5,t}if(o(e))return l(e);if(r(e))return c(e);let t=c(`http://foo.com/`+e);return t.scheme=``,t.host=``,t.type=e?e.startsWith(`?`)?3:e.startsWith(`#`)?2:4:1,t}function f(e){if(e.endsWith(`/..`))return e;let t=e.lastIndexOf(`/`);return e.slice(0,t+1)}function p(e,t){m(t,t.type),e.path=e.path===`/`?t.path:f(t.path)+e.path}function m(e,t){let n=t<=4,r=e.path.split(`/`),i=1,a=0,o=!1;for(let e=1;e<r.length;e++){let t=r[e];t?(o=!1,t!==`.`&&(t===`..`?a?(o=!0,a--,i--):n&&(r[i++]=t):(r[i++]=t,a++))):o=!0}let s=``;for(let e=1;e<i;e++)s+=`/`+r[e];(!s||o&&!s.endsWith(`/..`))&&(s+=`/`),e.path=s}function h(e,t){if(!e&&!t)return``;let n=d(e),r=n.type;if(t&&r!==7){let e=d(t),i=e.type;switch(r){case 1:n.hash=e.hash;case 2:n.query=e.query;case 3:case 4:p(n,e);case 5:n.user=e.user,n.host=e.host,n.port=e.port;case 6:n.scheme=e.scheme}i>r&&(r=i)}m(n,r);let i=n.query+n.hash;switch(r){case 2:case 3:return i;case 4:{let r=n.path.slice(1);return r?s(t||e)&&!s(r)?`./`+r+i:r+i:i||`.`}case 5:return n.path+i;default:return n.scheme+`//`+n.user+n.host+n.port+n.path+i}}return h}))})))();var Ut=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function Wt(e){return e}function Gt(e,t){return Wt(e)._indexes[t]}function Kt(e,t){let n=Gt(e,t);if(n!==void 0)return n;let{array:r,_indexes:i}=Wt(e);return i[t]=r.push(t)-1}var qt=0,Jt=1,Yt=2,Xt=3,Zt=4,Qt=-1,$t=class{constructor({file:e,sourceRoot:t}={}){this._names=new Ut,this._sources=new Ut,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=t,this._ignoreList=new Ut}};function en(e){return e}var tn=(e,t,n,r,i,a,o,s)=>an(!0,e,t,n,r,i,a,o,s);function nn(e){let{_mappings:t,_sources:n,_sourcesContent:r,_names:i,_ignoreList:a}=en(e);return ln(t),{version:3,file:e.file||void 0,names:i.array,sourceRoot:e.sourceRoot||void 0,sources:n.array,sourcesContent:r,mappings:t,ignoreList:a.array}}function rn(e){let t=nn(e);return Object.assign({},t,{mappings:Ht(t.mappings)})}function an(e,t,n,r,i,a,o,s,c){let{_mappings:l,_sources:u,_sourcesContent:d,_names:f}=en(t),p=on(l,n),m=sn(p,r);if(!i)return e&&un(p,m)?void 0:cn(p,m,[r]);let h=Kt(u,i),g=s?Kt(f,s):Qt;if(h===d.length&&(d[h]=c??null),!(e&&dn(p,m,h,a,o,g)))return cn(p,m,s?[r,h,a,o,g]:[r,h,a,o])}function on(e,t){for(let n=e.length;n<=t;n++)e[n]=[];return e[t]}function sn(e,t){let n=e.length;for(let r=n-1;r>=0&&!(t>=e[r][qt]);n=r--);return n}function cn(e,t,n){for(let n=e.length;n>t;n--)e[n]=e[n-1];e[t]=n}function ln(e){let{length:t}=e,n=t;for(let t=n-1;t>=0&&!(e[t].length>0);n=t,t--);n<t&&(e.length=n)}function un(e,t){return t===0||e[t-1].length===1}function dn(e,t,n,r,i,a){if(t===0)return!1;let o=e[t-1];return o.length!==1&&n===o[Jt]&&r===o[Yt]&&i===o[Xt]&&a===(o.length===5?o[Zt]:Qt)}function fn({code:e,mappings:t},n,r,i,a){let o=pn(i,a),s=new $t({file:r.compiledFilename}),c=0,l=t[0];for(;l===void 0&&c<t.length-1;)c++,l=t[c];let u=0,d=0;l!==d&&tn(s,u,0,n,u,0);for(let r=0;r<e.length;r++){if(r===l){let e=l-d,i=o[c];for(tn(s,u,e,n,u,i);(l===r||l===void 0)&&c<t.length-1;)c++,l=t[c]}e.charCodeAt(r)===w.lineFeed&&(u++,d=r+1,l!==d&&tn(s,u,0,n,u,0))}let{sourceRoot:f,sourcesContent:p,...m}=rn(s);return m}function pn(e,t){let n=Array(t.length),r=0,i=t[r].start,a=0;for(let o=0;o<e.length;o++)o===i&&(n[r]=i-a,r++,i=t[r].start),e.charCodeAt(o)===w.lineFeed&&(a=o+1);return n}let mn={require:`
310
+ import {createRequire as CREATE_REQUIRE_NAME} from "module";
311
+ const require = CREATE_REQUIRE_NAME(import.meta.url);
312
+ `,interopRequireWildcard:`
313
+ function interopRequireWildcard(obj) {
314
+ if (obj && obj.__esModule) {
315
+ return obj;
316
+ } else {
317
+ var newObj = {};
318
+ if (obj != null) {
319
+ for (var key in obj) {
320
+ if (Object.prototype.hasOwnProperty.call(obj, key)) {
321
+ newObj[key] = obj[key];
322
+ }
323
+ }
324
+ }
325
+ newObj.default = obj;
326
+ return newObj;
327
+ }
328
+ }
329
+ `,interopRequireDefault:`
330
+ function interopRequireDefault(obj) {
331
+ return obj && obj.__esModule ? obj : { default: obj };
332
+ }
333
+ `,createNamedExportFrom:`
334
+ function createNamedExportFrom(obj, localName, importedName) {
335
+ Object.defineProperty(exports, localName, {enumerable: true, configurable: true, get: () => obj[importedName]});
336
+ }
337
+ `,createStarExport:`
338
+ function createStarExport(obj) {
339
+ Object.keys(obj)
340
+ .filter((key) => key !== "default" && key !== "__esModule")
341
+ .forEach((key) => {
342
+ if (exports.hasOwnProperty(key)) {
343
+ return;
344
+ }
345
+ Object.defineProperty(exports, key, {enumerable: true, configurable: true, get: () => obj[key]});
346
+ });
347
+ }
348
+ `,nullishCoalesce:`
349
+ function nullishCoalesce(lhs, rhsFn) {
350
+ if (lhs != null) {
351
+ return lhs;
352
+ } else {
353
+ return rhsFn();
354
+ }
355
+ }
356
+ `,asyncNullishCoalesce:`
357
+ async function asyncNullishCoalesce(lhs, rhsFn) {
358
+ if (lhs != null) {
359
+ return lhs;
360
+ } else {
361
+ return await rhsFn();
362
+ }
363
+ }
364
+ `,optionalChain:`
365
+ function optionalChain(ops) {
366
+ let lastAccessLHS = undefined;
367
+ let value = ops[0];
368
+ let i = 1;
369
+ while (i < ops.length) {
370
+ const op = ops[i];
371
+ const fn = ops[i + 1];
372
+ i += 2;
373
+ if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {
374
+ return undefined;
375
+ }
376
+ if (op === 'access' || op === 'optionalAccess') {
377
+ lastAccessLHS = value;
378
+ value = fn(value);
379
+ } else if (op === 'call' || op === 'optionalCall') {
380
+ value = fn((...args) => value.call(lastAccessLHS, ...args));
381
+ lastAccessLHS = undefined;
382
+ }
383
+ }
384
+ return value;
385
+ }
386
+ `,asyncOptionalChain:`
387
+ async function asyncOptionalChain(ops) {
388
+ let lastAccessLHS = undefined;
389
+ let value = ops[0];
390
+ let i = 1;
391
+ while (i < ops.length) {
392
+ const op = ops[i];
393
+ const fn = ops[i + 1];
394
+ i += 2;
395
+ if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {
396
+ return undefined;
397
+ }
398
+ if (op === 'access' || op === 'optionalAccess') {
399
+ lastAccessLHS = value;
400
+ value = await fn(value);
401
+ } else if (op === 'call' || op === 'optionalCall') {
402
+ value = await fn((...args) => value.call(lastAccessLHS, ...args));
403
+ lastAccessLHS = undefined;
404
+ }
405
+ }
406
+ return value;
407
+ }
408
+ `,optionalChainDelete:`
409
+ function optionalChainDelete(ops) {
410
+ const result = OPTIONAL_CHAIN_NAME(ops);
411
+ return result == null ? true : result;
412
+ }
413
+ `,asyncOptionalChainDelete:`
414
+ async function asyncOptionalChainDelete(ops) {
415
+ const result = await ASYNC_OPTIONAL_CHAIN_NAME(ops);
416
+ return result == null ? true : result;
417
+ }
418
+ `};var hn=class e{__init(){this.helperNames={}}__init2(){this.createRequireName=null}constructor(t){this.nameManager=t,e.prototype.__init.call(this),e.prototype.__init2.call(this)}getHelperName(e){let t=this.helperNames[e];return t||(t=this.nameManager.claimFreeName(`_${e}`),this.helperNames[e]=t,t)}emitHelpers(){let e=``;this.helperNames.optionalChainDelete&&this.getHelperName(`optionalChain`),this.helperNames.asyncOptionalChainDelete&&this.getHelperName(`asyncOptionalChain`);for(let[t,n]of Object.entries(mn)){let r=this.helperNames[t],i=n;t===`optionalChainDelete`?i=i.replace(`OPTIONAL_CHAIN_NAME`,this.helperNames.optionalChain):t===`asyncOptionalChainDelete`?i=i.replace(`ASYNC_OPTIONAL_CHAIN_NAME`,this.helperNames.asyncOptionalChain):t===`require`&&(this.createRequireName===null&&(this.createRequireName=this.nameManager.claimFreeName(`_createRequire`)),i=i.replace(/CREATE_REQUIRE_NAME/g,this.createRequireName)),r&&(e+=` `,e+=i.replace(t,r).replace(/\s+/g,` `).trim())}return e}};function gn(e,t,n){_n(e,n)&&vn(e,t,n)}function _n(e,t){for(let n of e.tokens)if(n.type===x.name&&!n.isType&&ke(n)&&t.has(e.identifierNameForToken(n)))return!0;return!1}function vn(e,t,n){let r=[],i=t.length-1;for(let a=e.tokens.length-1;;a--){for(;r.length>0&&r[r.length-1].startTokenIndex===a+1;)r.pop();for(;i>=0&&t[i].endTokenIndex===a+1;)r.push(t[i]),i--;if(a<0)break;let o=e.tokens[a],s=e.identifierNameForToken(o);if(r.length>1&&!o.isType&&o.type===x.name&&n.has(s)){if(je(o))yn(r[r.length-1],e,s);else if(Me(o)){let t=r.length-1;for(;t>0&&!r[t].isFunctionScope;)t--;if(t<0)throw Error(`Did not find parent function scope.`);yn(r[t],e,s)}}}if(r.length>0)throw Error(`Expected empty scope stack after processing file.`)}function yn(e,t,n){for(let r=e.startTokenIndex;r<e.endTokenIndex;r++){let e=t.tokens[r];(e.type===x.name||e.type===x.jsxName)&&t.identifierNameForToken(e)===n&&(e.shadowsGlobal=!0)}}function bn(e,t){let n=[];for(let r of t)r.type===x.name&&n.push(e.slice(r.start,r.end));return n}var xn=class e{__init(){this.usedNames=/* @__PURE__ */ new Set}constructor(t,n){e.prototype.__init.call(this),this.usedNames=new Set(bn(t,n))}claimFreeName(e){let t=this.findFreeName(e);return this.usedNames.add(t),t}findFreeName(e){if(!this.usedNames.has(e))return e;let t=2;for(;this.usedNames.has(e+String(t));)t++;return e+String(t)}},Sn=/* @__PURE__ */ o(((e,t,n)=>{var r=n&&n.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.DetailContext=e.NoopContext=e.VError=void 0;var i=function(e){r(t,e);function t(n,r){var i=e.call(this,r)||this;return i.path=n,Object.setPrototypeOf(i,t.prototype),i}return t}(Error);e.VError=i,e.NoopContext=function(){function e(){}return e.prototype.fail=function(e,t,n){return!1},e.prototype.unionResolver=function(){return this},e.prototype.createContext=function(){return this},e.prototype.resolveUnion=function(e){},e}();var a=function(){function e(){this._propNames=[``],this._messages=[null],this._score=0}return e.prototype.fail=function(e,t,n){return this._propNames.push(e),this._messages.push(t),this._score+=n,!1},e.prototype.unionResolver=function(){return new o},e.prototype.resolveUnion=function(e){for(var t,n,r=e,i=null,a=0,o=r.contexts;a<o.length;a++){var s=o[a];(!i||s._score>=i._score)&&(i=s)}i&&i._score>0&&((t=this._propNames).push.apply(t,i._propNames),(n=this._messages).push.apply(n,i._messages))},e.prototype.getError=function(e){for(var t=[],n=this._propNames.length-1;n>=0;n--){var r=this._propNames[n];e+=typeof r==`number`?`[`+r+`]`:r?`.`+r:``;var a=this._messages[n];a&&t.push(e+` `+a)}return new i(e,t.join(`; `))},e.prototype.getErrorDetail=function(e){for(var t=[],n=this._propNames.length-1;n>=0;n--){var r=this._propNames[n];e+=typeof r==`number`?`[`+r+`]`:r?`.`+r:``;var i=this._messages[n];i&&t.push({path:e,message:i})}for(var a=null,n=t.length-1;n>=0;n--)a&&(t[n].nested=[a]),a=t[n];return a},e}();e.DetailContext=a;var o=function(){function e(){this.contexts=[]}return e.prototype.createContext=function(){var e=new a;return this.contexts.push(e),e},e}()})),Cn=/* @__PURE__ */ o(((e,t,n)=>{var r=n&&n.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.basicTypes=e.BasicType=e.TParamList=e.TParam=e.param=e.TFunc=e.func=e.TProp=e.TOptional=e.opt=e.TIface=e.iface=e.TEnumLiteral=e.enumlit=e.TEnumType=e.enumtype=e.TIntersection=e.intersection=e.TUnion=e.union=e.TTuple=e.tuple=e.TArray=e.array=e.TLiteral=e.lit=e.TName=e.name=e.TType=void 0;var i=Sn(),a=function(){function e(){}return e}();e.TType=a;function o(e){return typeof e==`string`?c(e):e}function s(e,t){var n=e[t];if(!n)throw Error(`Unknown type `+t);return n}function c(e){return new l(e)}e.name=c;var l=function(e){r(t,e);function t(t){var n=e.call(this)||this;return n.name=t,n._failMsg=`is not a `+t,n}return t.prototype.getChecker=function(e,n,r){var i=this,a=s(e,this.name),o=a.getChecker(e,n,r);return a instanceof se||a instanceof t?o:function(e,t){return o(e,t)?!0:t.fail(null,i._failMsg,0)}},t}(a);e.TName=l;function u(e){return new d(e)}e.lit=u;var d=function(e){r(t,e);function t(t){var n=e.call(this)||this;return n.value=t,n.name=JSON.stringify(t),n._failMsg=`is not `+n.name,n}return t.prototype.getChecker=function(e,t){var n=this;return function(e,t){return e===n.value||t.fail(null,n._failMsg,-1)}},t}(a);e.TLiteral=d;function f(e){return new p(o(e))}e.array=f;var p=function(e){r(t,e);function t(t){var n=e.call(this)||this;return n.ttype=t,n}return t.prototype.getChecker=function(e,t){var n=this.ttype.getChecker(e,t);return function(e,t){if(!Array.isArray(e))return t.fail(null,`is not an array`,0);for(var r=0;r<e.length;r++)if(!n(e[r],t))return t.fail(r,null,1);return!0}},t}(a);e.TArray=p;function m(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new h(e.map(function(e){return o(e)}))}e.tuple=m;var h=function(e){r(t,e);function t(t){var n=e.call(this)||this;return n.ttypes=t,n}return t.prototype.getChecker=function(e,t){var n=this.ttypes.map(function(n){return n.getChecker(e,t)}),r=function(e,t){if(!Array.isArray(e))return t.fail(null,`is not an array`,0);for(var r=0;r<n.length;r++)if(!n[r](e[r],t))return t.fail(r,null,1);return!0};return t?function(e,t){return r(e,t)?e.length<=n.length||t.fail(n.length,`is extraneous`,2):!1}:r},t}(a);e.TTuple=h;function g(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new _(e.map(function(e){return o(e)}))}e.union=g;var _=function(e){r(t,e);function t(t){var n=e.call(this)||this;n.ttypes=t;var r=t.map(function(e){return e instanceof l||e instanceof d?e.name:null}).filter(function(e){return e}),i=t.length-r.length;return r.length?(i>0&&r.push(i+` more`),n._failMsg=`is none of `+r.join(`, `)):n._failMsg=`is none of `+i+` types`,n}return t.prototype.getChecker=function(e,t){var n=this,r=this.ttypes.map(function(n){return n.getChecker(e,t)});return function(e,t){for(var i=t.unionResolver(),a=0;a<r.length;a++)if(r[a](e,i.createContext()))return!0;return t.resolveUnion(i),t.fail(null,n._failMsg,0)}},t}(a);e.TUnion=_;function ee(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new te(e.map(function(e){return o(e)}))}e.intersection=ee;var te=function(e){r(t,e);function t(t){var n=e.call(this)||this;return n.ttypes=t,n}return t.prototype.getChecker=function(e,t){var n=/* @__PURE__ */ new Set,r=this.ttypes.map(function(r){return r.getChecker(e,t,n)});return function(e,t){return r.every(function(n){return n(e,t)})?!0:t.fail(null,null,0)}},t}(a);e.TIntersection=te;function v(e){return new y(e)}e.enumtype=v;var y=function(e){r(t,e);function t(t){var n=e.call(this)||this;return n.members=t,n.validValues=/* @__PURE__ */ new Set,n._failMsg=`is not a valid enum value`,n.validValues=new Set(Object.keys(t).map(function(e){return t[e]})),n}return t.prototype.getChecker=function(e,t){var n=this;return function(e,t){return n.validValues.has(e)?!0:t.fail(null,n._failMsg,0)}},t}(a);e.TEnumType=y;function ne(e,t){return new re(e,t)}e.enumlit=ne;var re=function(e){r(t,e);function t(t,n){var r=e.call(this)||this;return r.enumName=t,r.prop=n,r._failMsg=`is not `+t+`.`+n,r}return t.prototype.getChecker=function(e,t){var n=this,r=s(e,this.enumName);if(!(r instanceof y))throw Error(`Type `+this.enumName+` used in enumlit is not an enum type`);var i=r.members[this.prop];if(!r.members.hasOwnProperty(this.prop))throw Error(`Unknown value `+this.enumName+`.`+this.prop+` used in enumlit`);return function(e,t){return e===i||t.fail(null,n._failMsg,-1)}},t}(a);e.TEnumLiteral=re;function b(e){return Object.keys(e).map(function(t){return x(t,e[t])})}function x(e,t){return t instanceof ae?new w(e,t.ttype,!0):new w(e,o(t),!1)}function S(e,t){return new C(e,b(t))}e.iface=S;var C=function(e){r(t,e);function t(t,n){var r=e.call(this)||this;return r.bases=t,r.props=n,r.propSet=new Set(n.map(function(e){return e.name})),r}return t.prototype.getChecker=function(e,t,n){var r=this,a=this.bases.map(function(n){return s(e,n).getChecker(e,t)}),o=this.props.map(function(n){return n.ttype.getChecker(e,t)}),c=new i.NoopContext,l=this.props.map(function(e,t){return!e.isOpt&&!o[t](void 0,c)}),u=function(e,t){if(typeof e!=`object`||!e)return t.fail(null,`is not an object`,0);for(var n=0;n<a.length;n++)if(!a[n](e,t))return!1;for(var n=0;n<o.length;n++){var i=r.props[n].name,s=e[i];if(s===void 0){if(l[n])return t.fail(i,`is missing`,1)}else if(!o[n](s,t))return t.fail(i,null,1)}return!0};if(!t)return u;var d=this.propSet;return n&&(this.propSet.forEach(function(e){return n.add(e)}),d=n),function(e,t){if(!u(e,t))return!1;for(var n in e)if(!d.has(n))return t.fail(n,`is extraneous`,2);return!0}},t}(a);e.TIface=C;function ie(e){return new ae(o(e))}e.opt=ie;var ae=function(e){r(t,e);function t(t){var n=e.call(this)||this;return n.ttype=t,n}return t.prototype.getChecker=function(e,t){var n=this.ttype.getChecker(e,t);return function(e,t){return e===void 0||n(e,t)}},t}(a);e.TOptional=ae;var w=function(){function e(e,t,n){this.name=e,this.ttype=t,this.isOpt=n}return e}();e.TProp=w;function oe(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new T(new O(t),o(e))}e.func=oe;var T=function(e){r(t,e);function t(t,n){var r=e.call(this)||this;return r.paramList=t,r.result=n,r}return t.prototype.getChecker=function(e,t){return function(e,t){return typeof e==`function`||t.fail(null,`is not a function`,0)}},t}(a);e.TFunc=T;function E(e,t,n){return new D(e,o(t),!!n)}e.param=E;var D=function(){function e(e,t,n){this.name=e,this.ttype=t,this.isOpt=n}return e}();e.TParam=D;var O=function(e){r(t,e);function t(t){var n=e.call(this)||this;return n.params=t,n}return t.prototype.getChecker=function(e,t){var n=this,r=this.params.map(function(n){return n.ttype.getChecker(e,t)}),a=new i.NoopContext,o=this.params.map(function(e,t){return!e.isOpt&&!r[t](void 0,a)}),s=function(e,t){if(!Array.isArray(e))return t.fail(null,`is not an array`,0);for(var i=0;i<r.length;i++){var a=n.params[i];if(e[i]===void 0){if(o[i])return t.fail(a.name,`is missing`,1)}else if(!r[i](e[i],t))return t.fail(a.name,null,1)}return!0};return t?function(e,t){return s(e,t)?e.length<=r.length||t.fail(r.length,`is extraneous`,2):!1}:s},t}(a);e.TParamList=O;var se=function(e){r(t,e);function t(t,n){var r=e.call(this)||this;return r.validator=t,r.message=n,r}return t.prototype.getChecker=function(e,t){var n=this;return function(e,t){return n.validator(e)?!0:t.fail(null,n.message,0)}},t}(a);e.BasicType=se,e.basicTypes={any:new se(function(e){return!0},`is invalid`),number:new se(function(e){return typeof e==`number`},`is not a number`),object:new se(function(e){return typeof e==`object`&&e},`is not an object`),boolean:new se(function(e){return typeof e==`boolean`},`is not a boolean`),string:new se(function(e){return typeof e==`string`},`is not a string`),symbol:new se(function(e){return typeof e==`symbol`},`is not a symbol`),void:new se(function(e){return e==null},`is not void`),undefined:new se(function(e){return e===void 0},`is not undefined`),null:new se(function(e){return e===null},`is not null`),never:new se(function(e){return!1},`is unexpected`),Date:new se(ce(`[object Date]`),`is not a Date`),RegExp:new se(ce(`[object RegExp]`),`is not a RegExp`)};var k=Object.prototype.toString;function ce(e){return function(t){return typeof t==`object`&&t&&k.call(t)===e}}typeof Buffer<`u`&&(e.basicTypes.Buffer=new se(function(e){return Buffer.isBuffer(e)},`is not a Buffer`));for(var le=function(t){e.basicTypes[t.name]=new se(function(e){return e instanceof t},`is not a `+t.name)},ue=0,A=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,ArrayBuffer];ue<A.length;ue++){var j=A[ue];le(j)}})),wn=/* @__PURE__ */ c((/* @__PURE__ */ o(((e,t,n)=>{var r=n&&n.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r};Object.defineProperty(e,"__esModule",{value:!0}),e.Checker=e.createCheckers=void 0;var i=Cn(),a=Sn(),o=Cn();Object.defineProperty(e,"TArray",{enumerable:!0,get:function(){return o.TArray}}),Object.defineProperty(e,"TEnumType",{enumerable:!0,get:function(){return o.TEnumType}}),Object.defineProperty(e,"TEnumLiteral",{enumerable:!0,get:function(){return o.TEnumLiteral}}),Object.defineProperty(e,"TFunc",{enumerable:!0,get:function(){return o.TFunc}}),Object.defineProperty(e,"TIface",{enumerable:!0,get:function(){return o.TIface}}),Object.defineProperty(e,"TLiteral",{enumerable:!0,get:function(){return o.TLiteral}}),Object.defineProperty(e,"TName",{enumerable:!0,get:function(){return o.TName}}),Object.defineProperty(e,"TOptional",{enumerable:!0,get:function(){return o.TOptional}}),Object.defineProperty(e,"TParam",{enumerable:!0,get:function(){return o.TParam}}),Object.defineProperty(e,"TParamList",{enumerable:!0,get:function(){return o.TParamList}}),Object.defineProperty(e,"TProp",{enumerable:!0,get:function(){return o.TProp}}),Object.defineProperty(e,"TTuple",{enumerable:!0,get:function(){return o.TTuple}}),Object.defineProperty(e,"TType",{enumerable:!0,get:function(){return o.TType}}),Object.defineProperty(e,"TUnion",{enumerable:!0,get:function(){return o.TUnion}}),Object.defineProperty(e,"TIntersection",{enumerable:!0,get:function(){return o.TIntersection}}),Object.defineProperty(e,"array",{enumerable:!0,get:function(){return o.array}}),Object.defineProperty(e,"enumlit",{enumerable:!0,get:function(){return o.enumlit}}),Object.defineProperty(e,"enumtype",{enumerable:!0,get:function(){return o.enumtype}}),Object.defineProperty(e,"func",{enumerable:!0,get:function(){return o.func}}),Object.defineProperty(e,"iface",{enumerable:!0,get:function(){return o.iface}}),Object.defineProperty(e,"lit",{enumerable:!0,get:function(){return o.lit}}),Object.defineProperty(e,"name",{enumerable:!0,get:function(){return o.name}}),Object.defineProperty(e,"opt",{enumerable:!0,get:function(){return o.opt}}),Object.defineProperty(e,"param",{enumerable:!0,get:function(){return o.param}}),Object.defineProperty(e,"tuple",{enumerable:!0,get:function(){return o.tuple}}),Object.defineProperty(e,"union",{enumerable:!0,get:function(){return o.union}}),Object.defineProperty(e,"intersection",{enumerable:!0,get:function(){return o.intersection}}),Object.defineProperty(e,"BasicType",{enumerable:!0,get:function(){return o.BasicType}});var s=Sn();Object.defineProperty(e,"VError",{enumerable:!0,get:function(){return s.VError}});function c(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=Object.assign.apply(Object,r([{},i.basicTypes],e)),a={},o=0,s=e;o<s.length;o++)for(var c=s[o],u=0,d=Object.keys(c);u<d.length;u++){var f=d[u];a[f]=new l(n,c[f])}return a}e.createCheckers=c;var l=function(){function e(e,t,n){if(n===void 0&&(n=`value`),this.suite=e,this.ttype=t,this._path=n,this.props=/* @__PURE__ */ new Map,t instanceof i.TIface)for(var r=0,a=t.props;r<a.length;r++){var o=a[r];this.props.set(o.name,o.ttype)}this.checkerPlain=this.ttype.getChecker(e,!1),this.checkerStrict=this.ttype.getChecker(e,!0)}return e.prototype.setReportedPath=function(e){this._path=e},e.prototype.check=function(e){return this._doCheck(this.checkerPlain,e)},e.prototype.test=function(e){return this.checkerPlain(e,new a.NoopContext)},e.prototype.validate=function(e){return this._doValidate(this.checkerPlain,e)},e.prototype.strictCheck=function(e){return this._doCheck(this.checkerStrict,e)},e.prototype.strictTest=function(e){return this.checkerStrict(e,new a.NoopContext)},e.prototype.strictValidate=function(e){return this._doValidate(this.checkerStrict,e)},e.prototype.getProp=function(t){var n=this.props.get(t);if(!n)throw Error(`Type has no property `+t);return new e(this.suite,n,this._path+`.`+t)},e.prototype.methodArgs=function(t){var n=this._getMethod(t);return new e(this.suite,n.paramList)},e.prototype.methodResult=function(t){var n=this._getMethod(t);return new e(this.suite,n.result)},e.prototype.getArgs=function(){if(!(this.ttype instanceof i.TFunc))throw Error(`getArgs() applied to non-function`);return new e(this.suite,this.ttype.paramList)},e.prototype.getResult=function(){if(!(this.ttype instanceof i.TFunc))throw Error(`getResult() applied to non-function`);return new e(this.suite,this.ttype.result)},e.prototype.getType=function(){return this.ttype},e.prototype._doCheck=function(e,t){if(!e(t,new a.NoopContext)){var n=new a.DetailContext;throw e(t,n),n.getError(this._path)}},e.prototype._doValidate=function(e,t){if(e(t,new a.NoopContext))return null;var n=new a.DetailContext;return e(t,n),n.getErrorDetail(this._path)},e.prototype._getMethod=function(e){var t=this.props.get(e);if(!t)throw Error(`Type has no property `+e);if(!(t instanceof i.TFunc))throw Error(`Property `+e+` is not a method`);return t},e}();e.Checker=l})))());let Tn={Transform:wn.union(wn.lit(`jsx`),wn.lit(`typescript`),wn.lit(`flow`),wn.lit(`imports`),wn.lit(`react-hot-loader`),wn.lit(`jest`)),SourceMapOptions:wn.iface([],{compiledFilename:`string`}),Options:wn.iface([],{transforms:wn.array(`Transform`),disableESTransforms:wn.opt(`boolean`),jsxRuntime:wn.opt(wn.union(wn.lit(`classic`),wn.lit(`automatic`),wn.lit(`preserve`))),production:wn.opt(`boolean`),jsxImportSource:wn.opt(`string`),jsxPragma:wn.opt(`string`),jsxFragmentPragma:wn.opt(`string`),keepUnusedImports:wn.opt(`boolean`),preserveDynamicImport:wn.opt(`boolean`),injectCreateRequireForImportRequire:wn.opt(`boolean`),enableLegacyTypeScriptModuleInterop:wn.opt(`boolean`),enableLegacyBabel5ModuleInterop:wn.opt(`boolean`),sourceMapOptions:wn.opt(`SourceMapOptions`),filePath:wn.opt(`string`)})},{Options:En}=(0,wn.createCheckers)(Tn);function Dn(e){En.strictCheck(e)}function On(){F(),Ki(!1)}function kn(e){F(),Nn(e)}function An(e){B(),Mn(e)}function jn(){B(),D.tokens[D.tokens.length-1].identifierRole=P.ImportDeclaration}function Mn(e){let t;t=D.scopeDepth===0?P.TopLevelDeclaration:e?P.BlockScopedDeclaration:P.FunctionScopedDeclaration,D.tokens[D.tokens.length-1].identifierRole=t}function Nn(e){switch(D.type){case x._this:{let e=I(0);F(),L(e);return}case x._yield:case x.name:D.type=x.name,An(e);return;case x.bracketL:F(),Pn(x.bracketR,e,!0);return;case x.braceL:Sa(!0,e);return;default:N()}}function Pn(e,t,n=!1,r=!1,i=0){let a=!0,o=!1,s=D.tokens.length;for(;!R(e)&&!D.error;)if(a?a=!1:(M(x.comma),D.tokens[D.tokens.length-1].contextId=i,!o&&D.tokens[s].isType&&(D.tokens[D.tokens.length-1].isType=!0,o=!0)),!(n&&z(x.comma))){if(R(e))break;if(z(x.ellipsis)){kn(t),In(),R(x.comma),M(e);break}Fn(r,t)}}function Fn(e,t){e&&Vn([b._public,b._protected,b._private,b._readonly,b._override]),Ln(t),In(),Ln(t,!0)}function In(){E?Go():T&&Ei()}function Ln(e,t=!1){if(t||Nn(e),!R(x.eq))return;let n=D.tokens.length-1;Ki(),D.tokens[n].rhsEndIndex=D.tokens.length}function Rn(){return z(x.name)}function zn(){return z(x.name)||!!(D.type&x.IS_KEYWORD)||z(x.string)||z(x.num)||z(x.bigint)||z(x.decimal)}function Bn(){let e=D.snapshot();return F(),(z(x.bracketL)||z(x.braceL)||z(x.star)||z(x.ellipsis)||z(x.hash)||zn())&&!he()?!0:(D.restoreFromSnapshot(e),!1)}function Vn(e){for(;Hn(e)!==null;);}function Hn(e){if(!z(x.name))return null;let t=D.contextualKeyword;if(e.indexOf(t)!==-1&&Bn()){switch(t){case b._readonly:D.tokens[D.tokens.length-1].type=x._readonly;break;case b._abstract:D.tokens[D.tokens.length-1].type=x._abstract;break;case b._static:D.tokens[D.tokens.length-1].type=x._static;break;case b._public:D.tokens[D.tokens.length-1].type=x._public;break;case b._private:D.tokens[D.tokens.length-1].type=x._private;break;case b._protected:D.tokens[D.tokens.length-1].type=x._protected;break;case b._override:D.tokens[D.tokens.length-1].type=x._override;break;case b._declare:D.tokens[D.tokens.length-1].type=x._declare}return t}return null}function Un(){for(B();R(x.dot);)B()}function Wn(){Un(),!he()&&z(x.lessThan)&&ai()}function Gn(){F(),Nr()}function Kn(){F()}function qn(){M(x._typeof),z(x._import)?Jn():Un(),!he()&&z(x.lessThan)&&ai()}function Jn(){M(x._import),M(x.parenL),M(x.string),M(x.parenR),R(x.dot)&&Un(),z(x.lessThan)&&ai()}function Yn(){R(x._const);let e=R(x._in),t=fe(b._out);R(x._const),(e||t)&&!z(x.name)?D.tokens[D.tokens.length-1].type=x.name:B(),R(x._extends)&&Pr(),R(x.eq)&&Pr()}function Xn(){z(x.lessThan)&&Zn()}function Zn(){let e=I(0);for(z(x.lessThan)||z(x.typeParameterStart)?F():N();!R(x.greaterThan)&&!D.error;)Yn(),R(x.comma);L(e)}function Qn(e){let t=e===x.arrow;Xn(),M(x.parenL),D.scopeDepth++,$n(!1),D.scopeDepth--,(t||z(e))&&Or(e)}function $n(e){Pn(x.parenR,e)}function er(){R(x.comma)||ve()}function tr(){Qn(x.colon),er()}function nr(){let e=D.snapshot();F();let t=R(x.name)&&z(x.colon);return D.restoreFromSnapshot(e),t}function rr(){if(!(z(x.bracketL)&&nr()))return!1;let e=I(0);return M(x.bracketL),B(),Nr(),M(x.bracketR),Ar(),er(),L(e),!0}function ir(e){R(x.question),!e&&(z(x.parenL)||z(x.lessThan))?(Qn(x.colon),er()):(Ar(),er())}function ar(){if(z(x.parenL)||z(x.lessThan)){tr();return}if(z(x._new)){F(),z(x.parenL)||z(x.lessThan)?tr():ir(!1);return}let e=!!Hn([b._readonly]);rr()||((j(b._get)||j(b._set))&&Bn(),Da(-1),ir(e))}function or(){sr()}function sr(){for(M(x.braceL);!R(x.braceR)&&!D.error;)ar()}function cr(){let e=D.snapshot(),t=lr();return D.restoreFromSnapshot(e),t}function lr(){return F(),R(x.plus)||R(x.minus)?j(b._readonly):(j(b._readonly)&&F(),!z(x.bracketL)||(F(),!Rn())?!1:(F(),z(x._in)))}function ur(){B(),M(x._in),Pr()}function dr(){M(x.braceL),z(x.plus)||z(x.minus)?(F(),pe(b._readonly)):fe(b._readonly),M(x.bracketL),ur(),fe(b._as)&&Pr(),M(x.bracketR),z(x.plus)||z(x.minus)?(F(),M(x.question)):R(x.question),jr(),ve(),M(x.braceR)}function fr(){for(M(x.bracketL);!R(x.bracketR)&&!D.error;)pr(),R(x.comma)}function pr(){R(x.ellipsis)?Pr():(Pr(),R(x.question)),R(x.colon)&&Pr()}function mr(){M(x.parenL),Pr(),M(x.parenR)}function hr(){for(Fe(),Fe();!z(x.backQuote)&&!D.error;)M(x.dollarBraceL),Pr(),Fe(),Fe();F()}var gr;(function(e){e[e.TSFunctionType=0]=`TSFunctionType`,e[e.TSConstructorType=1]=`TSConstructorType`,e[e.TSAbstractConstructorType=2]=`TSAbstractConstructorType`})(gr||={});function _r(e){e===gr.TSAbstractConstructorType&&pe(b._abstract),(e===gr.TSConstructorType||e===gr.TSAbstractConstructorType)&&M(x._new);let t=D.inDisallowConditionalTypesContext;D.inDisallowConditionalTypesContext=!1,Qn(x.arrow),D.inDisallowConditionalTypesContext=t}function vr(){switch(D.type){case x.name:Wn();return;case x._void:case x._null:F();return;case x.string:case x.num:case x.bigint:case x.decimal:case x._true:case x._false:pa();return;case x.minus:F(),pa();return;case x._this:Kn(),j(b._is)&&!he()&&Gn();return;case x._typeof:qn();return;case x._import:Jn();return;case x.braceL:cr()?dr():or();return;case x.bracketL:fr();return;case x.parenL:mr();return;case x.backQuote:hr();return;default:if(D.type&x.IS_KEYWORD){F(),D.tokens[D.tokens.length-1].type=x.name;return}}N()}function yr(){for(vr();!he()&&R(x.bracketL);)R(x.bracketR)||(Pr(),M(x.bracketR))}function br(){if(pe(b._infer),B(),z(x._extends)){let e=D.snapshot();M(x._extends);let t=D.inDisallowConditionalTypesContext;D.inDisallowConditionalTypesContext=!0,Pr(),D.inDisallowConditionalTypesContext=t,(D.error||!D.inDisallowConditionalTypesContext&&z(x.question))&&D.restoreFromSnapshot(e)}}function xr(){if(j(b._keyof)||j(b._unique)||j(b._readonly))F(),xr();else if(j(b._infer))br();else{let e=D.inDisallowConditionalTypesContext;D.inDisallowConditionalTypesContext=!1,yr(),D.inDisallowConditionalTypesContext=e}}function Sr(){if(R(x.bitwiseAND),xr(),z(x.bitwiseAND))for(;R(x.bitwiseAND);)xr()}function Cr(){if(R(x.bitwiseOR),Sr(),z(x.bitwiseOR))for(;R(x.bitwiseOR);)Sr()}function wr(){return z(x.lessThan)?!0:z(x.parenL)&&Er()}function Tr(){if(z(x.name)||z(x._this))return F(),!0;if(z(x.braceL)||z(x.bracketL)){let e=1;for(F();e>0&&!D.error;)z(x.braceL)||z(x.bracketL)?e++:(z(x.braceR)||z(x.bracketR))&&e--,F();return!0}return!1}function Er(){let e=D.snapshot(),t=Dr();return D.restoreFromSnapshot(e),t}function Dr(){return F(),!!(z(x.parenR)||z(x.ellipsis)||Tr()&&(z(x.colon)||z(x.comma)||z(x.question)||z(x.eq)||z(x.parenR)&&(F(),z(x.arrow))))}function Or(e){let t=I(0);M(e),Mr()||Pr(),L(t)}function kr(){z(x.colon)&&Or(x.colon)}function Ar(){z(x.colon)&&Nr()}function jr(){R(x.colon)&&Pr()}function Mr(){let e=D.snapshot();return j(b._asserts)?(F(),fe(b._is)?(Pr(),!0):Rn()||z(x._this)?(F(),fe(b._is)&&Pr(),!0):(D.restoreFromSnapshot(e),!1)):Rn()||z(x._this)?(F(),j(b._is)&&!he()?(F(),Pr(),!0):(D.restoreFromSnapshot(e),!1)):!1}function Nr(){let e=I(0);M(x.colon),Pr(),L(e)}function Pr(){if(Ir(),D.inDisallowConditionalTypesContext||he()||!R(x._extends))return;let e=D.inDisallowConditionalTypesContext;D.inDisallowConditionalTypesContext=!0,Ir(),D.inDisallowConditionalTypesContext=e,M(x.question),Pr(),M(x.colon),Pr()}function Fr(){return j(b._abstract)&&Re()===x._new}function Ir(){wr()?_r(gr.TSFunctionType):z(x._new)?_r(gr.TSConstructorType):Fr()?_r(gr.TSAbstractConstructorType):Cr()}function Lr(){let e=I(1);Pr(),M(x.greaterThan),L(e),$i()}function Rr(){if(R(x.jsxTagStart)){D.tokens[D.tokens.length-1].type=x.typeParameterStart;let e=I(1);for(;!z(x.greaterThan)&&!D.error;)Pr(),R(x.comma);Bi(),L(e)}}function zr(){for(;!z(x.braceL)&&!D.error;)Br(),R(x.comma)}function Br(){Un(),z(x.lessThan)&&ai()}function Vr(){An(!1),Xn(),R(x._extends)&&zr(),sr()}function Hr(){An(!1),Xn(),M(x.eq),Pr(),ve()}function Ur(){if(z(x.string)?pa():B(),R(x.eq)){let e=D.tokens.length-1;Ki(),D.tokens[e].rhsEndIndex=D.tokens.length}}function Wr(){for(An(!1),M(x.braceL);!R(x.braceR)&&!D.error;)Ur(),R(x.comma)}function Gr(){M(x.braceL),Ms(x.braceR)}function Kr(){An(!1),R(x.dot)?Kr():Gr()}function qr(){j(b._global)?B():z(x.string)?ua():N(),z(x.braceL)?Gr():ve()}function Jr(){jn(),M(x.eq),Xr(),ve()}function Yr(){return j(b._require)&&Re()===x.parenL}function Xr(){Yr()?Zr():Un()}function Zr(){pe(b._require),M(x.parenL),z(x.string)||N(),pa(),M(x.parenR)}function Qr(){if(_e())return!1;switch(D.type){case x._function:{let e=I(1);F();let t=D.start;return Ls(t,!0),L(e),!0}case x._class:{let e=I(1);return zs(!0,!1),L(e),!0}case x._const:if(z(x._const)&&de(b._enum)){let e=I(1);return M(x._const),pe(b._enum),D.tokens[D.tokens.length-1].type=x._enum,Wr(),L(e),!0}case x._var:case x._let:{let e=I(1);return Es(D.type!==x._var),L(e),!0}case x.name:{let e=I(1),t=D.contextualKeyword,n=!1;return t===b._global?(qr(),n=!0):n=ti(t,!0),L(e),n}default:return!1}}function $r(){return ti(D.contextualKeyword,!0)}function ei(e){switch(e){case b._declare:{let e=D.tokens.length-1;if(Qr())return D.tokens[e].type=x._declare,!0;break}case b._global:if(z(x.braceL))return Gr(),!0;break;default:return ti(e,!1)}return!1}function ti(e,t){switch(e){case b._abstract:if(ni(t)&&z(x._class))return D.tokens[D.tokens.length-1].type=x._abstract,zs(!0,!1),!0;break;case b._enum:if(ni(t)&&z(x.name))return D.tokens[D.tokens.length-1].type=x._enum,Wr(),!0;break;case b._interface:if(ni(t)&&z(x.name)){let e=I(t?2:1);return Vr(),L(e),!0}break;case b._module:if(ni(t)){if(z(x.string)){let e=I(t?2:1);return qr(),L(e),!0}if(z(x.name)){let e=I(t?2:1);return Kr(),L(e),!0}}break;case b._namespace:if(ni(t)&&z(x.name)){let e=I(t?2:1);return Kr(),L(e),!0}break;case b._type:if(ni(t)&&z(x.name)){let e=I(t?2:1);return Hr(),L(e),!0}}return!1}function ni(e){return e?(F(),!0):!_e()}function ri(){let e=D.snapshot();return Zn(),Rs(),kr(),M(x.arrow),D.error?(D.restoreFromSnapshot(e),!1):(ja(!0),!0)}function ii(){D.type===x.bitShiftL&&(--D.pos,Ye(x.lessThan)),ai()}function ai(){let e=I(0);for(M(x.lessThan);!z(x.greaterThan)&&!D.error;)Pr(),R(x.comma);e?(M(x.greaterThan),L(e)):(L(e),it(),M(x.greaterThan),D.tokens[D.tokens.length-1].isType=!0)}function oi(){if(z(x.name))switch(D.contextualKeyword){case b._abstract:case b._declare:case b._enum:case b._interface:case b._module:case b._namespace:case b._type:return!0}return!1}function si(e,t){if(z(x.colon)&&Or(x.colon),!z(x.braceL)&&_e()){let t=D.tokens.length-1;for(;t>=0&&(D.tokens[t].start>=e||D.tokens[t].type===x._default||D.tokens[t].type===x._export);)D.tokens[t].isType=!0,t--}else ja(!1,t)}function ci(e,t,n){if(!he()&&R(x.bang))D.tokens[D.tokens.length-1].type=x.nonNullAssertion;else{if(z(x.lessThan)||z(x.bitShiftL)){let n=D.snapshot();if(!t&&aa()&&ri())return;if(ii(),!t&&R(x.parenL)?(D.tokens[D.tokens.length-1].subscriptStartIndex=e,oa()):z(x.backQuote)?xa():(D.type===x.greaterThan||D.type!==x.parenL&&D.type&x.IS_EXPRESSION_START&&!he())&&N(),D.error)D.restoreFromSnapshot(n);else return}else!t&&z(x.questionDot)&&Re()===x.lessThan&&(F(),D.tokens[e].isOptionalChainStart=!0,D.tokens[D.tokens.length-1].subscriptStartIndex=e,ai(),M(x.parenL),oa());ia(e,t,n)}}function li(){if(R(x._import))return j(b._type)&&Re()!==x.eq&&pe(b._type),Jr(),!0;if(R(x.eq))return Gi(),ve(),!0;if(fe(b._as))return pe(b._namespace),B(),ve(),!0;if(j(b._type)){let e=Re();(e===x.braceL||e===x.star)&&F()}return!1}function ui(){B(),z(x.comma)||z(x.braceR)?D.tokens[D.tokens.length-1].identifierRole=P.ImportDeclaration:(B(),z(x.comma)||z(x.braceR)?(D.tokens[D.tokens.length-1].identifierRole=P.ImportDeclaration,D.tokens[D.tokens.length-2].isType=!0,D.tokens[D.tokens.length-1].isType=!0):(B(),z(x.comma)||z(x.braceR)?(D.tokens[D.tokens.length-3].identifierRole=P.ImportAccess,D.tokens[D.tokens.length-1].identifierRole=P.ImportDeclaration):(B(),D.tokens[D.tokens.length-3].identifierRole=P.ImportAccess,D.tokens[D.tokens.length-1].identifierRole=P.ImportDeclaration,D.tokens[D.tokens.length-4].isType=!0,D.tokens[D.tokens.length-3].isType=!0,D.tokens[D.tokens.length-2].isType=!0,D.tokens[D.tokens.length-1].isType=!0)))}function di(){B(),z(x.comma)||z(x.braceR)?D.tokens[D.tokens.length-1].identifierRole=P.ExportAccess:(B(),z(x.comma)||z(x.braceR)?(D.tokens[D.tokens.length-1].identifierRole=P.ExportAccess,D.tokens[D.tokens.length-2].isType=!0,D.tokens[D.tokens.length-1].isType=!0):(B(),z(x.comma)||z(x.braceR)?D.tokens[D.tokens.length-3].identifierRole=P.ExportAccess:(B(),D.tokens[D.tokens.length-3].identifierRole=P.ExportAccess,D.tokens[D.tokens.length-4].isType=!0,D.tokens[D.tokens.length-3].isType=!0,D.tokens[D.tokens.length-2].isType=!0,D.tokens[D.tokens.length-1].isType=!0)))}function fi(){if(j(b._abstract)&&Re()===x._class)return D.type=x._abstract,F(),zs(!0,!0),!0;if(j(b._interface)){let e=I(2);return ti(b._interface,!0),L(e),!0}return!1}function pi(){if(D.type===x._const){let e=Be();if(e.type===x.name&&e.contextualKeyword===b._enum)return M(x._const),pe(b._enum),D.tokens[D.tokens.length-1].type=x._enum,Wr(),!0}return!1}function mi(e){let t=D.tokens.length;Vn([b._abstract,b._readonly,b._declare,b._static,b._override]);let n=D.tokens.length;if(rr()){let r=e?t-1:t;for(let e=r;e<n;e++)D.tokens[e].isType=!0;return!0}return!1}function hi(e){ei(e)||ve()}function gi(){let e=fe(b._declare);e&&(D.tokens[D.tokens.length-1].type=x._declare);let t=!1;if(z(x.name)){if(e){let e=I(2);t=$r(),L(e)}else t=$r()}if(!t){if(e){let e=I(2);os(!0),L(e)}else os(!0)}}function _i(e){if(e&&(z(x.lessThan)||z(x.bitShiftL))&&ii(),fe(b._implements)){D.tokens[D.tokens.length-1].type=x._implements;let e=I(1);zr(),L(e)}}function vi(){Xn()}function yi(){Xn()}function bi(){let e=I(0);he()||R(x.bang),Ar(),L(e)}function xi(){z(x.colon)&&Nr()}function Si(e,t){return oe?Ci(e,t):wi(e,t)}function Ci(e,t){if(!z(x.lessThan))return qi(e,t);let n=D.snapshot(),r=qi(e,t);if(D.error)D.restoreFromSnapshot(n);else return r;return D.type=x.typeParameterStart,Zn(),r=qi(e,t),r||N(),r}function wi(e,t){if(!z(x.lessThan))return qi(e,t);let n=D.snapshot();Zn();let r=qi(e,t);if(r||N(),D.error)D.restoreFromSnapshot(n);else return r;return qi(e,t)}function Ti(){if(z(x.colon)){let e=D.snapshot();Or(x.colon),me()&&N(),z(x.arrow)||N(),D.error&&D.restoreFromSnapshot(e)}return R(x.arrow)}function Ei(){let e=I(0);R(x.question),Ar(),L(e)}function Di(){(z(x.lessThan)||z(x.bitShiftL))&&ii(),fs()}function Oi(){let e=!1,t=!1;for(;;){if(D.pos>=O.length){N(`Unterminated JSX contents`);return}let n=O.charCodeAt(D.pos);if(n===w.lessThan||n===w.leftCurlyBrace){if(D.pos===D.start){if(n===w.lessThan){D.pos++,Ye(x.jsxTagStart);return}st(n);return}Ye(e&&!t?x.jsxEmptyText:x.jsxText);return}n===w.lineFeed?e=!0:n!==w.space&&n!==w.carriageReturn&&n!==w.tab&&(t=!0),D.pos++}}function ki(e){for(D.pos++;;){if(D.pos>=O.length){N(`Unterminated string constant`);return}if(O.charCodeAt(D.pos)===e){D.pos++;break}D.pos++}Ye(x.string)}function Ai(){let e;do{if(D.pos>O.length){N(`Unexpectedly reached the end of input.`);return}e=O.charCodeAt(++D.pos)}while(Ce[e]||e===w.dash);Ye(x.jsxName)}function ji(){Bi()}function Mi(e){ji(),R(x.colon)?ji():D.tokens[D.tokens.length-1].identifierRole=e}function Ni(){let e=D.tokens.length;Mi(P.Access);let t=!1;for(;z(x.dot);)t=!0,Bi(),ji();if(!t){let t=D.tokens[e],n=O.charCodeAt(t.start);n>=w.lowercaseA&&n<=w.lowercaseZ&&(t.identifierRole=null)}}function Pi(){switch(D.type){case x.braceL:F(),Gi(),Bi();return;case x.jsxTagStart:zi(),Bi();return;case x.string:Bi();return;default:N(`JSX value should be either an expression or a quoted JSX text`)}}function Fi(){M(x.ellipsis),Gi()}function Ii(e){if(z(x.jsxTagEnd))return!1;Ni(),T&&Rr();let t=!1;for(;!z(x.slash)&&!z(x.jsxTagEnd)&&!D.error;)R(x.braceL)?(t=!0,M(x.ellipsis),Ki(),Bi()):(t&&D.end-D.start===3&&O.charCodeAt(D.start)===w.lowercaseK&&O.charCodeAt(D.start+1)===w.lowercaseE&&O.charCodeAt(D.start+2)===w.lowercaseY&&(D.tokens[e].jsxRole=De.KeyAfterPropSpread),Mi(P.ObjectKey),z(x.eq)&&(Bi(),Pi()));let n=z(x.slash);return n&&Bi(),n}function Li(){z(x.jsxTagEnd)||Ni()}function Ri(){let e=D.tokens.length-1;D.tokens[e].jsxRole=De.NoChildren;let t=0;if(!Ii(e))for(Vi();;)switch(D.type){case x.jsxTagStart:if(Bi(),z(x.slash)){Bi(),Li(),D.tokens[e].jsxRole!==De.KeyAfterPropSpread&&(t===1?D.tokens[e].jsxRole=De.OneChild:t>1&&(D.tokens[e].jsxRole=De.StaticChildren));return}t++,Ri(),Vi();break;case x.jsxText:t++,Vi();break;case x.jsxEmptyText:Vi();break;case x.braceL:F(),z(x.ellipsis)?(Fi(),Vi(),t+=2):(z(x.braceR)||(t++,Gi()),Vi());break;
419
+ // istanbul ignore next - should never happen
420
+ default:N();return}}function zi(){Bi(),Ri()}function Bi(){D.tokens.push(new Pe),Je(),D.start=D.pos;let e=O.charCodeAt(D.pos);if(we[e])Ai();else if(e===w.quotationMark||e===w.apostrophe)ki(e);else switch(++D.pos,e){case w.greaterThan:Ye(x.jsxTagEnd);break;case w.lessThan:Ye(x.jsxTagStart);break;case w.slash:Ye(x.slash);break;case w.equalsTo:Ye(x.eq);break;case w.leftCurlyBrace:Ye(x.braceL);break;case w.dot:Ye(x.dot);break;case w.colon:Ye(x.colon);break;default:N()}}function Vi(){D.tokens.push(new Pe),D.start=D.pos,Oi()}function Hi(e){if(z(x.question)){let e=Re();if(e===x.colon||e===x.comma||e===x.parenR)return}Xi(e)}function Ui(){Le(x.question),z(x.colon)&&(T?Nr():E&&ko())}var Wi=class{constructor(e){this.stop=e}};function Gi(e=!1){if(Ki(e),z(x.comma))for(;R(x.comma);)Ki(e)}function Ki(e=!1,t=!1){return T?Si(e,t):E?Zo(e,t):qi(e,t)}function qi(e,t){if(z(x._yield))return Fa(),!1;(z(x.parenL)||z(x.name)||z(x._yield))&&(D.potentialArrowAt=D.start);let n=Ji(e);return t&&va(),D.type&x.IS_ASSIGN?(F(),Ki(e),!1):n}function Ji(e){return Zi(e)?!0:(Yi(e),!1)}function Yi(e){T||E?Hi(e):Xi(e)}function Xi(e){R(x.question)&&(Ki(),M(x.colon),Ki(e))}function Zi(e){let t=D.tokens.length;return $i()?!0:(Qi(t,-1,e),!1)}function Qi(e,t,n){if(T&&(x._in&x.PRECEDENCE_MASK)>t&&!he()&&(fe(b._as)||fe(b._satisfies))){let r=I(1);Pr(),L(r),it(),Qi(e,t,n);return}let r=D.type&x.PRECEDENCE_MASK;if(r>0&&(!n||!z(x._in))&&r>t){let i=D.type;F(),i===x.nullishCoalescing&&(D.tokens[D.tokens.length-1].nullishStartIndex=e);let a=D.tokens.length;$i(),Qi(a,i&x.IS_RIGHT_ASSOCIATIVE?r-1:r,n),i===x.nullishCoalescing&&(D.tokens[e].numNullishCoalesceStarts++,D.tokens[D.tokens.length-1].numNullishCoalesceEnds++),Qi(e,t,n)}}function $i(){if(T&&!oe&&R(x.lessThan))return Lr(),!1;if(j(b._module)&&Ue()===w.leftCurlyBrace&&!ge())return Ia(),!1;if(D.type&x.IS_PREFIX)return F(),$i(),!1;if(ea())return!0;for(;D.type&x.IS_POSTFIX&&!me();)D.type===x.preIncDec&&(D.type=x.postIncDec),F();return!1}function ea(){let e=D.tokens.length;return ua()?!0:(ta(e),D.tokens.length>e&&D.tokens[e].isOptionalChainStart&&(D.tokens[D.tokens.length-1].isOptionalChainEnd=!0),!1)}function ta(e,t=!1){E?$o(e,t):na(e,t)}function na(e,t=!1){let n=new Wi(!1);do ra(e,t,n);while(!n.stop&&!D.error)}function ra(e,t,n){T?ci(e,t,n):E?No(e,t,n):ia(e,t,n)}function ia(e,t,n){if(!t&&R(x.doubleColon))la(),n.stop=!0,ta(e,t);else if(z(x.questionDot)){if(D.tokens[e].isOptionalChainStart=!0,t&&Re()===x.parenL){n.stop=!0;return}F(),D.tokens[D.tokens.length-1].subscriptStartIndex=e,R(x.bracketL)?(Gi(),M(x.bracketR)):R(x.parenL)?oa():da()}else if(R(x.dot))D.tokens[D.tokens.length-1].subscriptStartIndex=e,da();else if(R(x.bracketL))D.tokens[D.tokens.length-1].subscriptStartIndex=e,Gi(),M(x.bracketR);else if(!t&&z(x.parenL)){if(aa()){let t=D.snapshot(),r=D.tokens.length;F(),D.tokens[D.tokens.length-1].subscriptStartIndex=e;let i=k();D.tokens[D.tokens.length-1].contextId=i,oa(),D.tokens[D.tokens.length-1].contextId=i,sa()&&(D.restoreFromSnapshot(t),n.stop=!0,D.scopeDepth++,Rs(),ca(r))}else{F(),D.tokens[D.tokens.length-1].subscriptStartIndex=e;let t=k();D.tokens[D.tokens.length-1].contextId=t,oa(),D.tokens[D.tokens.length-1].contextId=t}}else z(x.backQuote)?xa():n.stop=!0}function aa(){return D.tokens[D.tokens.length-1].contextualKeyword===b._async&&!me()}function oa(){let e=!0;for(;!R(x.parenR)&&!D.error;){if(e)e=!1;else if(M(x.comma),R(x.parenR))break;Na(!1)}}function sa(){return z(x.colon)||z(x.arrow)}function ca(e){T?xi():E&&Xo(),M(x.arrow),ka(e)}function la(){let e=D.tokens.length;ua(),ta(e,!0)}function ua(){if(R(x.modulo))return B(),!1;if(z(x.jsxText)||z(x.jsxEmptyText))return pa(),!1;if(z(x.lessThan)&&oe)return D.type=x.jsxTagStart,zi(),F(),!1;let e=D.potentialArrowAt===D.start;switch(D.type){case x.slash:case x.assign:Ie();case x._super:case x._this:case x.regexp:case x.num:case x.bigint:case x.decimal:case x.string:case x._null:case x._true:case x._false:return F(),!1;case x._import:return F(),z(x.dot)&&(D.tokens[D.tokens.length-1].type=x.name,F(),B()),!1;case x.name:{let t=D.tokens.length,n=D.start,r=D.contextualKeyword;return B(),r===b._await?(Pa(),!1):r===b._async&&z(x._function)&&!me()?(F(),Ls(n,!1),!1):e&&r===b._async&&!me()&&z(x.name)?(D.scopeDepth++,An(!1),M(x.arrow),ka(t),!0):z(x._do)&&!me()?(F(),js(),!1):e&&!me()&&z(x.arrow)?(D.scopeDepth++,Mn(!1),M(x.arrow),ka(t),!0):(D.tokens[D.tokens.length-1].identifierRole=P.Access,!1)}case x._do:return F(),js(),!1;case x.parenL:return ha(e);case x.bracketL:return F(),Ma(x.bracketR,!0),!1;case x.braceL:return Sa(!1,!1),!1;case x._function:return fa(),!1;case x.at:ls();case x._class:return zs(!1),!1;case x._new:return ya(),!1;case x.backQuote:return xa(),!1;case x.doubleColon:return F(),la(),!1;case x.hash:{let e=Ue();return we[e]||e===w.backslash?da():F(),!1}default:return N(),!1}}function da(){R(x.hash),B()}function fa(){let e=D.start;B(),R(x.dot)&&B(),Ls(e,!1)}function pa(){F()}function ma(){M(x.parenL),Gi(),M(x.parenR)}function ha(e){let t=D.snapshot(),n=D.tokens.length;M(x.parenL);let r=!0;for(;!z(x.parenR)&&!D.error;){if(r)r=!1;else if(M(x.comma),z(x.parenR))break;if(z(x.ellipsis)){kn(!1),va();break}Ki(!1,!0)}return M(x.parenR),e&&ga()&&_a()?(D.restoreFromSnapshot(t),D.scopeDepth++,Rs(),_a(),ka(n),!D.error||(D.restoreFromSnapshot(t),ha(!1),!1)):!1}function ga(){return z(x.colon)||!me()}function _a(){return T?Ti():E?Qo():R(x.arrow)}function va(){(T||E)&&Ui()}function ya(){M(x._new),R(x.dot)?B():(ba(),E&&Po(),R(x.parenL)&&Ma(x.parenR))}function ba(){la(),R(x.questionDot)}function xa(){for(Fe(),Fe();!z(x.backQuote)&&!D.error;)M(x.dollarBraceL),Gi(),Fe(),Fe();F()}function Sa(e,t){let n=k(),r=!0;for(F(),D.tokens[D.tokens.length-1].contextId=n;!R(x.braceR)&&!D.error;){if(r)r=!1;else if(M(x.comma),R(x.braceR))break;let i=!1;if(z(x.ellipsis)){let n=D.tokens.length;if(On(),e&&(D.tokens.length===n+2&&Mn(t),R(x.braceR)))break}else e||(i=R(x.star)),!e&&j(b._async)?(i&&N(),B(),z(x.colon)||z(x.parenL)||z(x.braceR)||z(x.eq)||z(x.comma)||(z(x.star)&&(F(),i=!0),Da(n))):Da(n),Ea(e,t,n)}D.tokens[D.tokens.length-1].contextId=n}function Ca(e){return!e&&(z(x.string)||z(x.num)||z(x.bracketL)||z(x.name)||!!(D.type&x.IS_KEYWORD))}function wa(e,t){let n=D.start;return z(x.parenL)?(e&&N(),Oa(n,!1),!0):Ca(e)?(Da(t),Oa(n,!1),!0):!1}function Ta(e,t){if(R(x.colon)){e?Ln(t):Ki(!1);return}let n;n=e?D.scopeDepth===0?P.ObjectShorthandTopLevelDeclaration:t?P.ObjectShorthandBlockScopedDeclaration:P.ObjectShorthandFunctionScopedDeclaration:P.ObjectShorthand,D.tokens[D.tokens.length-1].identifierRole=n,Ln(t,!0)}function Ea(e,t,n){T?vi():E&&Wo(),wa(e,n)||Ta(e,t)}function Da(e){E&&jo(),R(x.bracketL)?(D.tokens[D.tokens.length-1].contextId=e,Ki(),M(x.bracketR),D.tokens[D.tokens.length-1].contextId=e):(z(x.num)||z(x.string)||z(x.bigint)||z(x.decimal)?ua():da(),D.tokens[D.tokens.length-1].identifierRole=P.ObjectKey,D.tokens[D.tokens.length-1].contextId=e)}function Oa(e,t){let n=k();D.scopeDepth++;let r=D.tokens.length;Rs(t,n),Aa(e,n);let i=D.tokens.length;D.scopes.push(new C(r,i,!0)),D.scopeDepth--}function ka(e){ja(!0);let t=D.tokens.length;D.scopes.push(new C(e,t,!0)),D.scopeDepth--}function Aa(e,t=0){T?si(e,t):E?Mo(t):ja(!1,t)}function ja(e,t=0){e&&!z(x.braceL)?Ki():js(!0,t)}function Ma(e,t=!1){let n=!0;for(;!R(e)&&!D.error;){if(n)n=!1;else if(M(x.comma),R(e))break;Na(t)}}function Na(e){e&&z(x.comma)||(z(x.ellipsis)?(On(),va()):z(x.question)?F():Ki(!1,!0))}function B(){F(),D.tokens[D.tokens.length-1].type=x.name}function Pa(){$i()}function Fa(){F(),!z(x.semi)&&!me()&&(R(x.star),Ki())}function Ia(){pe(b._module),M(x.braceL),Ms(x.braceR)}function La(e){return(e.type===x.name||!!(e.type&x.IS_KEYWORD))&&e.contextualKeyword!==b._from}function Ra(e){let t=I(0);M(e||x.colon),Oo(),L(t)}function za(){M(x.modulo),pe(b._checks),R(x.parenL)&&(Gi(),M(x.parenR))}function Ba(){let e=I(0);M(x.colon),z(x.modulo)?za():(Oo(),z(x.modulo)&&za()),L(e)}function Va(){F(),Za(!0)}function Ha(){F(),B(),z(x.lessThan)&&io(),M(x.parenL),xo(),M(x.parenR),Ba(),ve()}function Ua(){z(x._class)?Va():z(x._function)?Ha():z(x._var)?Wa():fe(b._module)?R(x.dot)?qa():Ga():j(b._type)?Ja():j(b._opaque)?Ya():j(b._interface)?Xa():z(x._export)?Ka():N()}function Wa(){F(),Ao(),ve()}function Ga(){for(z(x.string)?ua():B(),M(x.braceL);!z(x.braceR)&&!D.error;)z(x._import)?(F(),fc()):N();M(x.braceR)}function Ka(){M(x._export),R(x._default)?z(x._function)||z(x._class)?Ua():(Oo(),ve()):z(x._var)||z(x._function)||z(x._class)||j(b._opaque)?Ua():z(x.star)||z(x.braceL)||j(b._interface)||j(b._type)||j(b._opaque)?Zs():N()}function qa(){pe(b._exports),ko(),ve()}function Ja(){F(),to()}function Ya(){F(),no(!0)}function Xa(){F(),Za()}function Za(e=!1){if(eo(),z(x.lessThan)&&io(),R(x._extends))do Qa();while(!e&&R(x.comma));if(j(b._mixins)){F();do Qa();while(R(x.comma))}if(j(b._implements)){F();do Qa();while(R(x.comma))}po(e,!1,e)}function Qa(){go(!1),z(x.lessThan)&&ao()}function $a(){Za()}function eo(){B()}function to(){eo(),z(x.lessThan)&&io(),Ra(x.eq),ve()}function no(e){pe(b._type),eo(),z(x.lessThan)&&io(),z(x.colon)&&Ra(x.colon),e||Ra(x.eq),ve()}function ro(){jo(),Ao(),R(x.eq)&&Oo()}function io(){let e=I(0);
421
+ // istanbul ignore else: this condition is already checked at all call sites
422
+ z(x.lessThan)||z(x.typeParameterStart)?F():N();do ro(),z(x.greaterThan)||M(x.comma);while(!z(x.greaterThan)&&!D.error);M(x.greaterThan),L(e)}function ao(){let e=I(0);for(M(x.lessThan);!z(x.greaterThan)&&!D.error;)Oo(),z(x.greaterThan)||M(x.comma);M(x.greaterThan),L(e)}function oo(){if(pe(b._interface),R(x._extends))do Qa();while(R(x.comma));po(!1,!1,!1)}function so(){z(x.num)||z(x.string)?ua():B()}function co(){Re()===x.colon?(so(),Ra()):Oo(),M(x.bracketR),Ra()}function lo(){so(),M(x.bracketR),M(x.bracketR),z(x.lessThan)||z(x.parenL)?uo():(R(x.question),Ra())}function uo(){for(z(x.lessThan)&&io(),M(x.parenL);!z(x.parenR)&&!z(x.ellipsis)&&!D.error;)bo(),z(x.parenR)||M(x.comma);R(x.ellipsis)&&bo(),M(x.parenR),Ra()}function fo(){uo()}function po(e,t,n){let r;for(t&&z(x.braceBarL)?(M(x.braceBarL),r=x.braceBarR):(M(x.braceL),r=x.braceR);!z(r)&&!D.error;){if(n&&j(b._proto)){let t=Re();t!==x.colon&&t!==x.question&&(F(),e=!1)}if(e&&j(b._static)){let e=Re();e!==x.colon&&e!==x.question&&F()}if(jo(),R(x.bracketL))R(x.bracketL)?lo():co();else if(z(x.parenL)||z(x.lessThan))fo();else{if(j(b._get)||j(b._set)){let e=Re();(e===x.name||e===x.string||e===x.num)&&F()}mo()}ho()}M(r)}function mo(){if(z(x.ellipsis)){if(M(x.ellipsis),R(x.comma)||R(x.semi),z(x.braceR))return;Oo()}else so(),z(x.lessThan)||z(x.parenL)?uo():(R(x.question),Ra())}function ho(){R(x.semi)||R(x.comma)||z(x.braceR)||z(x.braceBarR)||N()}function go(e){for(e||B();R(x.dot);)B()}function _o(){go(!0),z(x.lessThan)&&ao()}function vo(){M(x._typeof),So()}function yo(){for(M(x.bracketL);D.pos<O.length&&!z(x.bracketR)&&(Oo(),!z(x.bracketR));)M(x.comma);M(x.bracketR)}function bo(){let e=Re();e===x.colon||e===x.question?(B(),R(x.question),Ra()):Oo()}function xo(){for(;!z(x.parenR)&&!z(x.ellipsis)&&!D.error;)bo(),z(x.parenR)||M(x.comma);R(x.ellipsis)&&bo()}function So(){let e=!1,t=D.noAnonFunctionType;switch(D.type){case x.name:if(j(b._interface)){oo();return}B(),_o();return;case x.braceL:po(!1,!1,!1);return;case x.braceBarL:po(!1,!0,!1);return;case x.bracketL:yo();return;case x.lessThan:io(),M(x.parenL),xo(),M(x.parenR),M(x.arrow),Oo();return;case x.parenL:if(F(),!z(x.parenR)&&!z(x.ellipsis)){if(z(x.name)){let t=Re();e=t!==x.question&&t!==x.colon}else e=!0}if(e){if(D.noAnonFunctionType=!1,Oo(),D.noAnonFunctionType=t,D.noAnonFunctionType||!(z(x.comma)||z(x.parenR)&&Re()===x.arrow)){M(x.parenR);return}R(x.comma)}xo(),M(x.parenR),M(x.arrow),Oo();return;case x.minus:F(),pa();return;case x.string:case x.num:case x._true:case x._false:case x._null:case x._this:case x._void:case x.star:F();return;default:if(D.type===x._typeof){vo();return}if(D.type&x.IS_KEYWORD){F(),D.tokens[D.tokens.length-1].type=x.name;return}}N()}function Co(){for(So();!me()&&(z(x.bracketL)||z(x.questionDot));)R(x.questionDot),M(x.bracketL),R(x.bracketR)||(Oo(),M(x.bracketR))}function wo(){R(x.question)?wo():Co()}function To(){wo(),!D.noAnonFunctionType&&R(x.arrow)&&Oo()}function Eo(){for(R(x.bitwiseAND),To();R(x.bitwiseAND);)To()}function Do(){for(R(x.bitwiseOR),Eo();R(x.bitwiseOR);)Eo()}function Oo(){Do()}function ko(){Ra()}function Ao(){B(),z(x.colon)&&ko()}function jo(){(z(x.plus)||z(x.minus))&&(F(),D.tokens[D.tokens.length-1].isType=!0)}function Mo(e){z(x.colon)&&Ba(),ja(!1,e)}function No(e,t,n){if(z(x.questionDot)&&Re()===x.lessThan){if(t){n.stop=!0;return}F(),ao(),M(x.parenL),oa()}else{if(!t&&z(x.lessThan)){let e=D.snapshot();if(ao(),M(x.parenL),oa(),D.error)D.restoreFromSnapshot(e);else return}ia(e,t,n)}}function Po(){if(z(x.lessThan)){let e=D.snapshot();ao(),D.error&&D.restoreFromSnapshot(e)}}function Fo(){if(z(x.name)&&D.contextualKeyword===b._interface){let e=I(0);return F(),$a(),L(e),!0}return j(b._enum)?(ts(),!0):!1}function Io(){return j(b._enum)?(ts(),!0):!1}function Lo(e){if(e===b._declare){if(z(x._class)||z(x.name)||z(x._function)||z(x._var)||z(x._export)){let e=I(1);Ua(),L(e)}}else if(z(x.name)){if(e===b._interface){let e=I(1);$a(),L(e)}else if(e===b._type){let e=I(1);to(),L(e)}else if(e===b._opaque){let e=I(1);no(!1),L(e)}}ve()}function Ro(){return j(b._type)||j(b._interface)||j(b._opaque)||j(b._enum)}function zo(){return z(x.name)&&(D.contextualKeyword===b._type||D.contextualKeyword===b._interface||D.contextualKeyword===b._opaque||D.contextualKeyword===b._enum)}function Bo(){if(j(b._type)){let e=I(1);F(),z(x.braceL)?(cc(),nc()):to(),L(e)}else if(j(b._opaque)){let e=I(1);F(),no(!1),L(e)}else if(j(b._interface)){let e=I(1);F(),$a(),L(e)}else os(!0)}function Vo(){return z(x.star)||j(b._type)&&Re()===x.star}function Ho(){if(fe(b._type)){let e=I(2);ac(),L(e)}else ac()}function Uo(e){if(e&&z(x.lessThan)&&ao(),j(b._implements)){let e=I(0);F(),D.tokens[D.tokens.length-1].type=x._implements;do eo(),z(x.lessThan)&&ao();while(R(x.comma));L(e)}}function Wo(){z(x.lessThan)&&(io(),z(x.parenL)||N())}function Go(){let e=I(0);R(x.question),z(x.colon)&&ko(),L(e)}function Ko(){if(z(x._typeof)||j(b._type)){let e=Be();(La(e)||e.type===x.braceL||e.type===x.star)&&F()}}function qo(){let e=D.contextualKeyword===b._type||D.type===x._typeof;e?F():B(),j(b._as)&&!de(b._as)?(B(),e&&!z(x.name)&&!(D.type&x.IS_KEYWORD)||B()):(e&&(z(x.name)||D.type&x.IS_KEYWORD)&&B(),fe(b._as)&&B())}function Jo(){if(z(x.lessThan)){let e=I(0);io(),L(e)}}function Yo(){z(x.colon)&&ko()}function Xo(){if(z(x.colon)){let e=D.noAnonFunctionType;D.noAnonFunctionType=!0,ko(),D.noAnonFunctionType=e}}function Zo(e,t){if(z(x.lessThan)){let n=D.snapshot(),r=qi(e,t);if(D.error)D.restoreFromSnapshot(n),D.type=x.typeParameterStart;else return r;let i=I(0);if(io(),L(i),r=qi(e,t),r)return!0;N()}return qi(e,t)}function Qo(){if(z(x.colon)){let e=I(0),t=D.snapshot(),n=D.noAnonFunctionType;D.noAnonFunctionType=!0,Ba(),D.noAnonFunctionType=n,me()&&N(),z(x.arrow)||N(),D.error&&D.restoreFromSnapshot(t),L(e)}return R(x.arrow)}function $o(e,t=!1){if(D.tokens[D.tokens.length-1].contextualKeyword===b._async&&z(x.lessThan)){let e=D.snapshot();if(es()&&!D.error)return;D.restoreFromSnapshot(e)}na(e,t)}function es(){D.scopeDepth++;let e=D.tokens.length;return Rs(),_a()?(ka(e),!0):!1}function ts(){pe(b._enum),D.tokens[D.tokens.length-1].type=x._enum,B(),ns()}function ns(){fe(b._of)&&F(),M(x.braceL),rs(),M(x.braceR)}function rs(){for(;!z(x.braceR)&&!D.error&&!R(x.ellipsis);)is(),z(x.braceR)||M(x.comma)}function is(){B(),R(x.eq)&&F()}function as(){if(Ms(x.eof),D.scopes.push(new C(0,D.tokens.length,!0)),D.scopeDepth!==0)throw Error(`Invalid scope depth at end of file: ${D.scopeDepth}`);return new yc(D.tokens,D.scopes)}function os(e){E&&Fo()||(z(x.at)&&ls(),ss(e))}function ss(e){if(T&&pi())return;let t=D.type;switch(t){case x._break:case x._continue:ps();return;case x._debugger:ms();return;case x._do:hs();return;case x._for:gs();return;case x._function:if(Re()===x.dot)break;e||N(),ys();return;case x._class:e||N(),zs(!0);return;case x._if:bs();return;case x._return:xs();return;case x._switch:Ss();return;case x._throw:Cs();return;case x._try:Ts();return;case x._let:case x._const:e||N();case x._var:Es(t!==x._var);return;case x._while:Ds();return;case x.braceL:js();return;case x.semi:Os();return;case x._export:case x._import:{let e=Re();if(e===x.parenL||e===x.dot)break;F(),t===x._import?fc():Zs();return}case x.name:if(D.contextualKeyword===b._async){let e=D.start,t=D.snapshot();if(F(),z(x._function)&&!me()){M(x._function),Ls(e,!0);return}D.restoreFromSnapshot(t)}else if(D.contextualKeyword===b._using&&!ge()&&Re()===x.name){Es(!0);return}else if(cs()){pe(b._await),Es(!0);return}}let n=D.tokens.length;Gi();let r=null;if(D.tokens.length===n+1){let e=D.tokens[D.tokens.length-1];e.type===x.name&&(r=e.contextualKeyword)}r==null?ve():R(x.colon)?ks():As(r)}function cs(){if(!j(b._await))return!1;let e=D.snapshot();return F(),!j(b._using)||he()||(F(),!z(x.name)||he())?(D.restoreFromSnapshot(e),!1):(D.restoreFromSnapshot(e),!0)}function ls(){for(;z(x.at);)us()}function us(){if(F(),R(x.parenL))Gi(),M(x.parenR);else{for(B();R(x.dot);)B();ds()}}function ds(){T?Di():fs()}function fs(){R(x.parenL)&&oa()}function ps(){F(),_e()||(B(),ve())}function ms(){F(),ve()}function hs(){F(),os(!1),M(x._while),ma(),R(x.semi)}function gs(){D.scopeDepth++;let e=D.tokens.length;vs();let t=D.tokens.length;D.scopes.push(new C(e,t,!1)),D.scopeDepth--}function _s(){return!(!j(b._using)||de(b._of))}function vs(){F();let e=!1;if(j(b._await)&&(e=!0,F()),M(x.parenL),z(x.semi)){e&&N(),Ns();return}let t=cs();if(t||z(x._var)||z(x._let)||z(x._const)||_s()){if(t&&pe(b._await),F(),Fs(!0,D.type!==x._var),z(x._in)||j(b._of)){Ps(e);return}Ns()}else Gi(!0),z(x._in)||j(b._of)?Ps(e):(e&&N(),Ns())}function ys(){let e=D.start;F(),Ls(e,!0)}function bs(){F(),ma(),os(!1),R(x._else)&&os(!1)}function xs(){F(),_e()||(Gi(),ve())}function Ss(){F(),ma(),D.scopeDepth++;let e=D.tokens.length;for(M(x.braceL);!z(x.braceR)&&!D.error;)if(z(x._case)||z(x._default)){let e=z(x._case);F(),e&&Gi(),M(x.colon)}else os(!0);F();let t=D.tokens.length;D.scopes.push(new C(e,t,!1)),D.scopeDepth--}function Cs(){F(),Gi(),ve()}function ws(){Nn(!0),T&&Ar()}function Ts(){if(F(),js(),z(x._catch)){F();let e=null;if(z(x.parenL)&&(D.scopeDepth++,e=D.tokens.length,M(x.parenL),ws(),M(x.parenR)),js(),e!=null){let t=D.tokens.length;D.scopes.push(new C(e,t,!1)),D.scopeDepth--}}R(x._finally)&&js()}function Es(e){F(),Fs(!1,e),ve()}function Ds(){F(),ma(),os(!1)}function Os(){F()}function ks(){os(!0)}function As(e){T?hi(e):E?Lo(e):ve()}function js(e=!1,t=0){let n=D.tokens.length;D.scopeDepth++,M(x.braceL),t&&(D.tokens[D.tokens.length-1].contextId=t),Ms(x.braceR),t&&(D.tokens[D.tokens.length-1].contextId=t);let r=D.tokens.length;D.scopes.push(new C(n,r,e)),D.scopeDepth--}function Ms(e){for(;!R(e)&&!D.error;)os(!0)}function Ns(){M(x.semi),z(x.semi)||Gi(),M(x.semi),z(x.parenR)||Gi(),M(x.parenR),os(!1)}function Ps(e){e?fe(b._of):F(),Gi(),M(x.parenR),os(!1)}function Fs(e,t){for(;;){if(Is(t),R(x.eq)){let t=D.tokens.length-1;Ki(e),D.tokens[t].rhsEndIndex=D.tokens.length}if(!R(x.comma))break}}function Is(e){Nn(e),T?bi():E&&Yo()}function Ls(e,t,n=!1){z(x.star)&&F(),t&&!n&&!z(x.name)&&!z(x._yield)&&N();let r=null;z(x.name)&&(t||(r=D.tokens.length,D.scopeDepth++),An(!1));let i=D.tokens.length;D.scopeDepth++,Rs(),Aa(e);let a=D.tokens.length;D.scopes.push(new C(i,a,!0)),D.scopeDepth--,r!==null&&(D.scopes.push(new C(r,a,!0)),D.scopeDepth--)}function Rs(e=!1,t=0){T?yi():E&&Jo(),M(x.parenL),t&&(D.tokens[D.tokens.length-1].contextId=t),Pn(x.parenR,!1,!1,e,t),t&&(D.tokens[D.tokens.length-1].contextId=t)}function zs(e,t=!1){let n=k();F(),D.tokens[D.tokens.length-1].contextId=n,D.tokens[D.tokens.length-1].isExpression=!e;let r=null;e||(r=D.tokens.length,D.scopeDepth++),Ys(e,t),Xs();let i=D.tokens.length;if(Hs(n),!D.error&&(D.tokens[i].contextId=n,D.tokens[D.tokens.length-1].contextId=n,r!==null)){let e=D.tokens.length;D.scopes.push(new C(r,e,!1)),D.scopeDepth--}}function Bs(){return z(x.eq)||z(x.semi)||z(x.braceR)||z(x.bang)||z(x.colon)}function Vs(){return z(x.parenL)||z(x.lessThan)}function Hs(e){for(M(x.braceL);!R(x.braceR)&&!D.error;){if(R(x.semi))continue;if(z(x.at)){us();continue}let t=D.start;Us(t,e)}}function Us(e,t){T&&Vn([b._declare,b._public,b._protected,b._private,b._override]);let n=!1;if(z(x.name)&&D.contextualKeyword===b._static){if(B(),Vs()){Gs(e,!1);return}if(Bs()){Js();return}if(D.tokens[D.tokens.length-1].type=x._static,n=!0,z(x.braceL)){D.tokens[D.tokens.length-1].contextId=t,js();return}}Ws(e,n,t)}function Ws(e,t,n){if(T&&mi(t))return;if(R(x.star)){Ks(n),Gs(e,!1);return}Ks(n);let r=!1,i=D.tokens[D.tokens.length-1];i.contextualKeyword===b._constructor&&(r=!0),qs(),Vs()?Gs(e,r):Bs()?Js():i.contextualKeyword===b._async&&!_e()?(D.tokens[D.tokens.length-1].type=x._async,z(x.star)&&F(),Ks(n),qs(),Gs(e,!1)):(i.contextualKeyword===b._get||i.contextualKeyword===b._set)&&!(_e()&&z(x.star))?(i.contextualKeyword===b._get?D.tokens[D.tokens.length-1].type=x._get:D.tokens[D.tokens.length-1].type=x._set,Ks(n),Gs(e,!1)):i.contextualKeyword===b._accessor&&!_e()?(Ks(n),Js()):_e()?Js():N()}function Gs(e,t){T?Xn():E&&z(x.lessThan)&&io(),Oa(e,t)}function Ks(e){Da(e)}function qs(){if(T){let e=I(0);R(x.question),L(e)}}function Js(){if(T?(Le(x.bang),Ar()):E&&z(x.colon)&&ko(),z(x.eq)){let e=D.tokens.length;F(),Ki(),D.tokens[e].rhsEndIndex=D.tokens.length}ve()}function Ys(e,t=!1){(!T||e&&!t||!j(b._implements))&&(z(x.name)&&An(!0),T?Xn():E&&z(x.lessThan)&&io())}function Xs(){let e=!1;R(x._extends)?(ea(),e=!0):e=!1,T?_i(e):E&&Uo(e)}function Zs(){let e=D.tokens.length-1;T&&li()||(rc()?ic():ec()?(B(),z(x.comma)&&Re()===x.star?(M(x.comma),M(x.star),pe(b._as),B()):tc(),nc()):R(x._default)?Qs():sc()?$s():(cc(),nc()),D.tokens[e].rhsEndIndex=D.tokens.length)}function Qs(){if(T&&fi()||E&&Io())return;let e=D.start;R(x._function)?Ls(e,!0,!0):j(b._async)&&Re()===x._function?(fe(b._async),R(x._function),Ls(e,!0,!0)):z(x._class)?zs(!0,!0):z(x.at)?(ls(),zs(!0,!0)):(Ki(),ve())}function $s(){T?gi():E?Bo():os(!0)}function ec(){if(T&&oi()||E&&zo())return!1;if(z(x.name))return D.contextualKeyword!==b._async;if(!z(x._default))return!1;let e=Ve(),t=Be(),n=t.type===x.name&&t.contextualKeyword===b._from;if(t.type===x.comma)return!0;if(n){let t=O.charCodeAt(He(e+4));return t===w.quotationMark||t===w.apostrophe}return!1}function tc(){R(x.comma)&&cc()}function nc(){fe(b._from)&&(ua(),_c()),ve()}function rc(){return E?Vo():z(x.star)}function ic(){E?Ho():ac()}function ac(){M(x.star),j(b._as)?oc():nc()}function oc(){F(),D.tokens[D.tokens.length-1].type=x._as,B(),tc(),nc()}function sc(){return T&&oi()||E&&Ro()||D.type===x._var||D.type===x._const||D.type===x._let||D.type===x._function||D.type===x._class||j(b._async)||z(x.at)}function cc(){let e=!0;for(M(x.braceL);!R(x.braceR)&&!D.error;){if(e)e=!1;else if(M(x.comma),R(x.braceR))break;lc()}}function lc(){T?di():(B(),D.tokens[D.tokens.length-1].identifierRole=P.ExportAccess,fe(b._as)&&B())}function uc(){let e=D.snapshot();return pe(b._module),fe(b._from)?j(b._from)?(D.restoreFromSnapshot(e),!0):(D.restoreFromSnapshot(e),!1):z(x.comma)?(D.restoreFromSnapshot(e),!1):(D.restoreFromSnapshot(e),!0)}function dc(){j(b._module)&&uc()&&F()}function fc(){if(T&&z(x.name)&&Re()===x.eq)Jr();else{if(T&&j(b._type)){let e=Be();if(e.type===x.name&&e.contextualKeyword!==b._from){if(pe(b._type),Re()===x.eq){Jr();return}}else(e.type===x.star||e.type===x.braceL)&&pe(b._type)}z(x.string)||(dc(),hc(),pe(b._from)),ua(),_c(),ve()}}function pc(){return z(x.name)}function mc(){jn()}function hc(){E&&Ko();let e=!0;if(!(pc()&&(mc(),!R(x.comma)))){if(z(x.star))F(),pe(b._as),mc();else for(M(x.braceL);!R(x.braceR)&&!D.error;){if(e)e=!1;else if(R(x.colon)&&N(`ES2015 named imports do not destructure. Use another statement for destructuring after the import.`),M(x.comma),R(x.braceR))break;gc()}}}function gc(){T?ui():E?qo():(jn(),j(b._as)&&(D.tokens[D.tokens.length-1].identifierRole=P.ImportAccess,F(),jn()))}function _c(){(z(x._with)||j(b._assert)&&!he())&&(F(),Sa(!1,!1))}function vc(){return D.pos===0&&O.charCodeAt(0)===w.numberSign&&O.charCodeAt(1)===w.exclamationMark&&qe(2),We(),as()}var yc=class{constructor(e,t){this.tokens=e,this.scopes=t}};function bc(e,t,n,r){if(r&&n)throw Error(`Cannot combine flow and typescript plugins.`);A(e,t,n,r);let i=vc();if(D.error)throw ce(D.error);return i}function xc(e){let t=e.currentIndex(),n=0,r=e.currentToken();do{let i=e.tokens[t];if(i.isOptionalChainStart&&n++,i.isOptionalChainEnd&&n--,n+=i.numNullishCoalesceStarts,n-=i.numNullishCoalesceEnds,i.contextualKeyword===b._await&&i.identifierRole==null&&i.scopeDepth===r.scopeDepth)return!0;t+=1}while(n>0&&t<e.tokens.length);return!1}var Sc=class e{__init(){this.resultCode=``}__init2(){this.resultMappings=Array(this.tokens.length)}__init3(){this.tokenIndex=0}constructor(t,n,r,i,a){this.code=t,this.tokens=n,this.isFlowEnabled=r,this.disableESTransforms=i,this.helperManager=a,e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this)}snapshot(){return{resultCode:this.resultCode,tokenIndex:this.tokenIndex}}restoreToSnapshot(e){this.resultCode=e.resultCode,this.tokenIndex=e.tokenIndex}dangerouslyGetAndRemoveCodeSinceSnapshot(e){let t=this.resultCode.slice(e.resultCode.length);return this.resultCode=e.resultCode,t}reset(){this.resultCode=``,this.resultMappings=Array(this.tokens.length),this.tokenIndex=0}matchesContextualAtIndex(e,t){return this.matches1AtIndex(e,x.name)&&this.tokens[e].contextualKeyword===t}identifierNameAtIndex(e){return this.identifierNameForToken(this.tokens[e])}identifierNameAtRelativeIndex(e){return this.identifierNameForToken(this.tokenAtRelativeIndex(e))}identifierName(){return this.identifierNameForToken(this.currentToken())}identifierNameForToken(e){return this.code.slice(e.start,e.end)}rawCodeForToken(e){return this.code.slice(e.start,e.end)}stringValueAtIndex(e){return this.stringValueForToken(this.tokens[e])}stringValue(){return this.stringValueForToken(this.currentToken())}stringValueForToken(e){return this.code.slice(e.start+1,e.end-1)}matches1AtIndex(e,t){return this.tokens[e].type===t}matches2AtIndex(e,t,n){return this.tokens[e].type===t&&this.tokens[e+1].type===n}matches3AtIndex(e,t,n,r){return this.tokens[e].type===t&&this.tokens[e+1].type===n&&this.tokens[e+2].type===r}matches1(e){return this.tokens[this.tokenIndex].type===e}matches2(e,t){return this.tokens[this.tokenIndex].type===e&&this.tokens[this.tokenIndex+1].type===t}matches3(e,t,n){return this.tokens[this.tokenIndex].type===e&&this.tokens[this.tokenIndex+1].type===t&&this.tokens[this.tokenIndex+2].type===n}matches4(e,t,n,r){return this.tokens[this.tokenIndex].type===e&&this.tokens[this.tokenIndex+1].type===t&&this.tokens[this.tokenIndex+2].type===n&&this.tokens[this.tokenIndex+3].type===r}matches5(e,t,n,r,i){return this.tokens[this.tokenIndex].type===e&&this.tokens[this.tokenIndex+1].type===t&&this.tokens[this.tokenIndex+2].type===n&&this.tokens[this.tokenIndex+3].type===r&&this.tokens[this.tokenIndex+4].type===i}matchesContextual(e){return this.matchesContextualAtIndex(this.tokenIndex,e)}matchesContextIdAndLabel(e,t){return this.matches1(e)&&this.currentToken().contextId===t}previousWhitespaceAndComments(){let e=this.code.slice(this.tokenIndex>0?this.tokens[this.tokenIndex-1].end:0,this.tokenIndex<this.tokens.length?this.tokens[this.tokenIndex].start:this.code.length);return this.isFlowEnabled&&(e=e.replace(/@flow/g,``)),e}replaceToken(e){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=e,this.appendTokenSuffix(),this.tokenIndex++}replaceTokenTrimmingLeftWhitespace(e){this.resultCode+=this.previousWhitespaceAndComments().replace(/[^\r\n]/g,``),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=e,this.appendTokenSuffix(),this.tokenIndex++}removeInitialToken(){this.replaceToken(``)}removeToken(){this.replaceTokenTrimmingLeftWhitespace(``)}removeBalancedCode(){let e=0;for(;!this.isAtEnd();){if(this.matches1(x.braceL))e++;else if(this.matches1(x.braceR)){if(e===0)return;e--}this.removeToken()}}copyExpectedToken(e){if(this.tokens[this.tokenIndex].type!==e)throw Error(`Expected token ${e}`);this.copyToken()}copyToken(){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=this.code.slice(this.tokens[this.tokenIndex].start,this.tokens[this.tokenIndex].end),this.appendTokenSuffix(),this.tokenIndex++}copyTokenWithPrefix(e){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultCode+=e,this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=this.code.slice(this.tokens[this.tokenIndex].start,this.tokens[this.tokenIndex].end),this.appendTokenSuffix(),this.tokenIndex++}appendTokenPrefix(){let e=this.currentToken();if((e.numNullishCoalesceStarts||e.isOptionalChainStart)&&(e.isAsyncOperation=xc(this)),!this.disableESTransforms){if(e.numNullishCoalesceStarts)for(let t=0;t<e.numNullishCoalesceStarts;t++)e.isAsyncOperation?(this.resultCode+=`await `,this.resultCode+=this.helperManager.getHelperName(`asyncNullishCoalesce`)):this.resultCode+=this.helperManager.getHelperName(`nullishCoalesce`),this.resultCode+=`(`;e.isOptionalChainStart&&(e.isAsyncOperation&&(this.resultCode+=`await `),this.tokenIndex>0&&this.tokenAtRelativeIndex(-1).type===x._delete?e.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName(`asyncOptionalChainDelete`):this.resultCode+=this.helperManager.getHelperName(`optionalChainDelete`):e.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName(`asyncOptionalChain`):this.resultCode+=this.helperManager.getHelperName(`optionalChain`),this.resultCode+=`([`)}}appendTokenSuffix(){let e=this.currentToken();if(e.isOptionalChainEnd&&!this.disableESTransforms&&(this.resultCode+=`])`),e.numNullishCoalesceEnds&&!this.disableESTransforms)for(let t=0;t<e.numNullishCoalesceEnds;t++)this.resultCode+=`))`}appendCode(e){this.resultCode+=e}currentToken(){return this.tokens[this.tokenIndex]}currentTokenCode(){let e=this.currentToken();return this.code.slice(e.start,e.end)}tokenAtRelativeIndex(e){return this.tokens[this.tokenIndex+e]}currentIndex(){return this.tokenIndex}nextToken(){if(this.tokenIndex===this.tokens.length)throw Error(`Unexpectedly reached end of input.`);this.tokenIndex++}previousToken(){this.tokenIndex--}finish(){if(this.tokenIndex!==this.tokens.length)throw Error(`Tried to finish processing tokens before reaching the end.`);return this.resultCode+=this.previousWhitespaceAndComments(),{code:this.resultCode,mappings:this.resultMappings}}isAtEnd(){return this.tokenIndex===this.tokens.length}};function Cc(e,t,n,r){let i=t.snapshot(),a=Tc(t),o=[],s=[],c=[],l=null,u=[],d=[],f=t.currentToken().contextId;if(f==null)throw Error(`Expected non-null class context ID on class open-brace.`);for(t.nextToken();!t.matchesContextIdAndLabel(x.braceR,f);)if(t.matchesContextual(b._constructor)&&!t.currentToken().isType)({constructorInitializerStatements:o,constructorInsertPos:l}=Ec(t));else if(t.matches1(x.semi))r||d.push({start:t.currentIndex(),end:t.currentIndex()+1}),t.nextToken();else if(t.currentToken().isType)t.nextToken();else{let i=t.currentIndex(),a=!1,p=!1,m=!1;for(;Dc(t.currentToken());)t.matches1(x._static)&&(a=!0),t.matches1(x.hash)&&(p=!0),(t.matches1(x._declare)||t.matches1(x._abstract))&&(m=!0),t.nextToken();if(a&&t.matches1(x.braceL)||p){wc(t,f);continue}if(t.matchesContextual(b._constructor)&&!t.currentToken().isType){({constructorInitializerStatements:o,constructorInsertPos:l}=Ec(t));continue}let h=t.currentIndex();if(Oc(t),t.matches1(x.lessThan)||t.matches1(x.parenL)){wc(t,f);continue}for(;t.currentToken().isType;)t.nextToken();if(t.matches1(x.eq)){let r=t.currentIndex(),i=t.currentToken().rhsEndIndex;if(i==null)throw Error(`Expected rhsEndIndex on class field assignment.`);for(t.nextToken();t.currentIndex()<i;)e.processToken();let o;a?(o=n.claimFreeName(`__initStatic`),c.push(o)):(o=n.claimFreeName(`__init`),s.push(o)),u.push({initializerName:o,equalsIndex:r,start:h,end:t.currentIndex()})}else(!r||m)&&d.push({start:i,end:t.currentIndex()})}return t.restoreToSnapshot(i),r?{headerInfo:a,constructorInitializerStatements:o,instanceInitializerNames:[],staticInitializerNames:[],constructorInsertPos:l,fields:[],rangesToRemove:d}:{headerInfo:a,constructorInitializerStatements:o,instanceInitializerNames:s,staticInitializerNames:c,constructorInsertPos:l,fields:u,rangesToRemove:d}}function wc(e,t){for(e.nextToken();e.currentToken().contextId!==t;)e.nextToken();for(;Dc(e.tokenAtRelativeIndex(-1));)e.previousToken()}function Tc(e){let t=e.currentToken(),n=t.contextId;if(n==null)throw Error(`Expected context ID on class token.`);let r=t.isExpression;if(r==null)throw Error(`Expected isExpression on class token.`);let i=null,a=!1;for(e.nextToken(),e.matches1(x.name)&&(i=e.identifierName());!e.matchesContextIdAndLabel(x.braceL,n);)e.matches1(x._extends)&&!e.currentToken().isType&&(a=!0),e.nextToken();return{isExpression:r,className:i,hasSuperclass:a}}function Ec(e){let t=[];e.nextToken();let n=e.currentToken().contextId;if(n==null)throw Error(`Expected context ID on open-paren starting constructor params.`);for(;!e.matchesContextIdAndLabel(x.parenR,n);)if(e.currentToken().contextId===n){if(e.nextToken(),Dc(e.currentToken())){for(e.nextToken();Dc(e.currentToken());)e.nextToken();let n=e.currentToken();if(n.type!==x.name)throw Error(`Expected identifier after access modifiers in constructor arg.`);let r=e.identifierNameForToken(n);t.push(`this.${r} = ${r}`)}}else e.nextToken();for(e.nextToken();e.currentToken().isType;)e.nextToken();let r=e.currentIndex(),i=!1;for(;!e.matchesContextIdAndLabel(x.braceR,n);){if(!i&&e.matches2(x._super,x.parenL)){e.nextToken();let t=e.currentToken().contextId;if(t==null)throw Error(`Expected a context ID on the super call`);for(;!e.matchesContextIdAndLabel(x.parenR,t);)e.nextToken();r=e.currentIndex(),i=!0}e.nextToken()}return e.nextToken(),{constructorInitializerStatements:t,constructorInsertPos:r}}function Dc(e){return[x._async,x._get,x._set,x.plus,x.minus,x._readonly,x._static,x._public,x._private,x._protected,x._override,x._abstract,x.star,x._declare,x.hash].includes(e.type)}function Oc(e){if(e.matches1(x.bracketL)){let t=e.currentToken().contextId;if(t==null)throw Error(`Expected class context ID on computed name open bracket.`);for(;!e.matchesContextIdAndLabel(x.bracketR,t);)e.nextToken();e.nextToken()}else e.nextToken()}function kc(e){if(e.removeInitialToken(),e.removeToken(),e.removeToken(),e.removeToken(),e.matches1(x.parenL))e.removeToken(),e.removeToken(),e.removeToken();else for(;e.matches1(x.dot);)e.removeToken(),e.removeToken()}let Ac={typeDeclarations:/* @__PURE__ */ new Set,valueDeclarations:/* @__PURE__ */ new Set};function jc(e){let t=/* @__PURE__ */ new Set,n=/* @__PURE__ */ new Set;for(let r=0;r<e.tokens.length;r++){let i=e.tokens[r];i.type===x.name&&Ae(i)&&(i.isType?t.add(e.identifierNameForToken(i)):n.add(e.identifierNameForToken(i)))}return{typeDeclarations:t,valueDeclarations:n}}function Mc(e){let t=e.currentIndex();for(;!e.matches1AtIndex(t,x.braceR);)t++;return e.matchesContextualAtIndex(t+1,b._from)&&e.matches1AtIndex(t+2,x.string)}function Nc(e){(e.matches2(x._with,x.braceL)||e.matches2(x.name,x.braceL)&&e.matchesContextual(b._assert))&&(e.removeToken(),e.removeToken(),e.removeBalancedCode(),e.removeToken())}function Pc(e,t,n,r){if(!e||t)return!1;let i=n.currentToken();if(i.rhsEndIndex==null)throw Error(`Expected non-null rhsEndIndex on export token.`);let a=i.rhsEndIndex-n.currentIndex();if(a!==3&&!(a===4&&n.matches1AtIndex(i.rhsEndIndex-1,x.semi)))return!1;let o=n.tokenAtRelativeIndex(2);if(o.type!==x.name)return!1;let s=n.identifierNameForToken(o);return r.typeDeclarations.has(s)&&!r.valueDeclarations.has(s)}var Fc=class e extends xt{__init(){this.hadExport=!1}__init2(){this.hadNamedExport=!1}__init3(){this.hadDefaultExport=!1}constructor(t,n,r,i,a,o,s,c,l,u,d,f){super(),this.rootTransformer=t,this.tokens=n,this.importProcessor=r,this.nameManager=i,this.helperManager=a,this.reactHotLoaderTransformer=o,this.enableLegacyBabel5ModuleInterop=s,this.enableLegacyTypeScriptModuleInterop=c,this.isTypeScriptTransformEnabled=l,this.isFlowTransformEnabled=u,this.preserveDynamicImport=d,this.keepUnusedImports=f,e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),this.declarationInfo=l?jc(n):Ac}getPrefixCode(){let e=``;return this.hadExport&&(e+=`Object.defineProperty(exports, "__esModule", {value: true});`),e}getSuffixCode(){return this.enableLegacyBabel5ModuleInterop&&this.hadDefaultExport&&!this.hadNamedExport?`
423
+ module.exports = exports.default;
424
+ `:``}process(){return this.tokens.matches3(x._import,x.name,x.eq)?this.processImportEquals():this.tokens.matches1(x._import)?(this.processImport(),!0):this.tokens.matches2(x._export,x.eq)?(this.tokens.replaceToken(`module.exports`),!0):this.tokens.matches1(x._export)&&!this.tokens.currentToken().isType?(this.hadExport=!0,this.processExport()):this.tokens.matches2(x.name,x.postIncDec)&&this.processPostIncDec()?!0:this.tokens.matches1(x.name)||this.tokens.matches1(x.jsxName)?this.processIdentifier():this.tokens.matches1(x.eq)?this.processAssignment():this.tokens.matches1(x.assign)?this.processComplexAssignment():this.tokens.matches1(x.preIncDec)?this.processPreIncDec():!1}processImportEquals(){let e=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.importProcessor.shouldAutomaticallyElideImportedName(e)?kc(this.tokens):this.tokens.replaceToken(`const`),!0}processImport(){if(this.tokens.matches2(x._import,x.parenL)){if(this.preserveDynamicImport){this.tokens.copyToken();return}let e=this.enableLegacyTypeScriptModuleInterop?``:`${this.helperManager.getHelperName(`interopRequireWildcard`)}(`;this.tokens.replaceToken(`Promise.resolve().then(() => ${e}require`);let t=this.tokens.currentToken().contextId;if(t==null)throw Error(`Expected context ID on dynamic import invocation.`);for(this.tokens.copyToken();!this.tokens.matchesContextIdAndLabel(x.parenR,t);)this.rootTransformer.processToken();this.tokens.replaceToken(e?`)))`:`))`)}else{if(this.removeImportAndDetectIfShouldElide())this.tokens.removeToken();else{let e=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(e)),this.tokens.appendCode(this.importProcessor.claimImportCode(e))}Nc(this.tokens),this.tokens.matches1(x.semi)&&this.tokens.removeToken()}}removeImportAndDetectIfShouldElide(){if(this.tokens.removeInitialToken(),this.tokens.matchesContextual(b._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,x.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,b._from))return this.removeRemainingImport(),!0;if(this.tokens.matches1(x.name)||this.tokens.matches1(x.star))return this.removeRemainingImport(),!1;if(this.tokens.matches1(x.string))return!1;let e=!1,t=!1;for(;!this.tokens.matches1(x.string);)(!e&&this.tokens.matches1(x.braceL)||this.tokens.matches1(x.comma))&&(this.tokens.removeToken(),this.tokens.matches1(x.braceR)||(t=!0),(this.tokens.matches2(x.name,x.comma)||this.tokens.matches2(x.name,x.braceR)||this.tokens.matches4(x.name,x.name,x.name,x.comma)||this.tokens.matches4(x.name,x.name,x.name,x.braceR))&&(e=!0)),this.tokens.removeToken();return this.keepUnusedImports?!1:this.isTypeScriptTransformEnabled?!e:this.isFlowTransformEnabled?t&&!e:!1}removeRemainingImport(){for(;!this.tokens.matches1(x.string);)this.tokens.removeToken()}processIdentifier(){let e=this.tokens.currentToken();if(e.shadowsGlobal)return!1;if(e.identifierRole===P.ObjectShorthand)return this.processObjectShorthand();if(e.identifierRole!==P.Access)return!1;let t=this.importProcessor.getIdentifierReplacement(this.tokens.identifierNameForToken(e));if(!t)return!1;let n=this.tokens.currentIndex()+1;for(;n<this.tokens.tokens.length&&this.tokens.tokens[n].type===x.parenR;)n++;return this.tokens.tokens[n].type===x.parenL?this.tokens.tokenAtRelativeIndex(1).type===x.parenL&&this.tokens.tokenAtRelativeIndex(-1).type!==x._new?(this.tokens.replaceToken(`${t}.call(void 0, `),this.tokens.removeToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(x.parenR)):this.tokens.replaceToken(`(0, ${t})`):this.tokens.replaceToken(t),!0}processObjectShorthand(){let e=this.tokens.identifierName(),t=this.importProcessor.getIdentifierReplacement(e);return t?(this.tokens.replaceToken(`${e}: ${t}`),!0):!1}processExport(){if(this.tokens.matches2(x._export,x._enum)||this.tokens.matches3(x._export,x._const,x._enum))return this.hadNamedExport=!0,!1;if(this.tokens.matches2(x._export,x._default))return this.tokens.matches3(x._export,x._default,x._enum)?(this.hadDefaultExport=!0,!1):(this.processExportDefault(),!0);if(this.tokens.matches2(x._export,x.braceL))return this.processExportBindings(),!0;if(this.tokens.matches2(x._export,x.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,b._type)){if(this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.matches1(x.braceL)){for(;!this.tokens.matches1(x.braceR);)this.tokens.removeToken();this.tokens.removeToken()}else this.tokens.removeToken(),this.tokens.matches1(x._as)&&(this.tokens.removeToken(),this.tokens.removeToken());return this.tokens.matchesContextual(b._from)&&this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,x.string)&&(this.tokens.removeToken(),this.tokens.removeToken(),Nc(this.tokens)),!0}if(this.hadNamedExport=!0,this.tokens.matches2(x._export,x._var)||this.tokens.matches2(x._export,x._let)||this.tokens.matches2(x._export,x._const))return this.processExportVar(),!0;if(this.tokens.matches2(x._export,x._function)||this.tokens.matches3(x._export,x.name,x._function))return this.processExportFunction(),!0;if(this.tokens.matches2(x._export,x._class)||this.tokens.matches3(x._export,x._abstract,x._class)||this.tokens.matches2(x._export,x.at))return this.processExportClass(),!0;if(this.tokens.matches2(x._export,x.star))return this.processExportStar(),!0;throw Error(`Unrecognized export syntax.`)}processAssignment(){let e=this.tokens.currentIndex(),t=this.tokens.tokens[e-1];if(t.isType||t.type!==x.name||t.shadowsGlobal||e>=2&&this.tokens.matches1AtIndex(e-2,x.dot)||e>=2&&[x._var,x._let,x._const].includes(this.tokens.tokens[e-2].type))return!1;let n=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(t));return n?(this.tokens.copyToken(),this.tokens.appendCode(` ${n} =`),!0):!1}processComplexAssignment(){let e=this.tokens.currentIndex(),t=this.tokens.tokens[e-1];if(t.type!==x.name||t.shadowsGlobal||e>=2&&this.tokens.matches1AtIndex(e-2,x.dot))return!1;let n=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(t));return n?(this.tokens.appendCode(` = ${n}`),this.tokens.copyToken(),!0):!1}processPreIncDec(){let e=this.tokens.currentIndex(),t=this.tokens.tokens[e+1];if(t.type!==x.name||t.shadowsGlobal||e+2<this.tokens.tokens.length&&(this.tokens.matches1AtIndex(e+2,x.dot)||this.tokens.matches1AtIndex(e+2,x.bracketL)||this.tokens.matches1AtIndex(e+2,x.parenL)))return!1;let n=this.tokens.identifierNameForToken(t),r=this.importProcessor.resolveExportBinding(n);return r?(this.tokens.appendCode(`${r} = `),this.tokens.copyToken(),!0):!1}processPostIncDec(){let e=this.tokens.currentIndex(),t=this.tokens.tokens[e],n=this.tokens.tokens[e+1];if(t.type!==x.name||t.shadowsGlobal||e>=1&&this.tokens.matches1AtIndex(e-1,x.dot))return!1;let r=this.tokens.identifierNameForToken(t),i=this.importProcessor.resolveExportBinding(r);if(!i)return!1;let a=this.tokens.rawCodeForToken(n),o=this.importProcessor.getIdentifierReplacement(r)||r;if(a===`++`)this.tokens.replaceToken(`(${o} = ${i} = ${o} + 1, ${o} - 1)`);else if(a===`--`)this.tokens.replaceToken(`(${o} = ${i} = ${o} - 1, ${o} + 1)`);else throw Error(`Unexpected operator: ${a}`);return this.tokens.removeToken(),!0}processExportDefault(){let e=!0;if(this.tokens.matches4(x._export,x._default,x._function,x.name)||this.tokens.matches5(x._export,x._default,x.name,x._function,x.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,b._async)){this.tokens.removeInitialToken(),this.tokens.removeToken();let e=this.processNamedFunction();this.tokens.appendCode(` exports.default = ${e};`)}else if(this.tokens.matches4(x._export,x._default,x._class,x.name)||this.tokens.matches5(x._export,x._default,x._abstract,x._class,x.name)||this.tokens.matches3(x._export,x._default,x.at)){this.tokens.removeInitialToken(),this.tokens.removeToken(),this.copyDecorators(),this.tokens.matches1(x._abstract)&&this.tokens.removeToken();let e=this.rootTransformer.processNamedClass();this.tokens.appendCode(` exports.default = ${e};`)}else if(Pc(this.isTypeScriptTransformEnabled,this.keepUnusedImports,this.tokens,this.declarationInfo))e=!1,this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.removeToken();else if(this.reactHotLoaderTransformer){let e=this.nameManager.claimFreeName(`_default`);this.tokens.replaceToken(`let ${e}; exports.`),this.tokens.copyToken(),this.tokens.appendCode(` = ${e} =`),this.reactHotLoaderTransformer.setExtractedDefaultExportName(e)}else this.tokens.replaceToken(`exports.`),this.tokens.copyToken(),this.tokens.appendCode(` =`);e&&(this.hadDefaultExport=!0)}copyDecorators(){for(;this.tokens.matches1(x.at);)if(this.tokens.copyToken(),this.tokens.matches1(x.parenL))this.tokens.copyExpectedToken(x.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(x.parenR);else{for(this.tokens.copyExpectedToken(x.name);this.tokens.matches1(x.dot);)this.tokens.copyExpectedToken(x.dot),this.tokens.copyExpectedToken(x.name);this.tokens.matches1(x.parenL)&&(this.tokens.copyExpectedToken(x.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(x.parenR))}}processExportVar(){this.isSimpleExportVar()?this.processSimpleExportVar():this.processComplexExportVar()}isSimpleExportVar(){let e=this.tokens.currentIndex();if(e++,e++,!this.tokens.matches1AtIndex(e,x.name))return!1;for(e++;e<this.tokens.tokens.length&&this.tokens.tokens[e].isType;)e++;return!!this.tokens.matches1AtIndex(e,x.eq)}processSimpleExportVar(){this.tokens.removeInitialToken(),this.tokens.copyToken();let e=this.tokens.identifierName();for(;!this.tokens.matches1(x.eq);)this.rootTransformer.processToken();let t=this.tokens.currentToken().rhsEndIndex;if(t==null)throw Error(`Expected = token with an end index.`);for(;this.tokens.currentIndex()<t;)this.rootTransformer.processToken();this.tokens.appendCode(`; exports.${e} = ${e}`)}processComplexExportVar(){this.tokens.removeInitialToken(),this.tokens.removeToken();let e=this.tokens.matches1(x.braceL);e&&this.tokens.appendCode(`(`);let t=0;for(;;)if(this.tokens.matches1(x.braceL)||this.tokens.matches1(x.dollarBraceL)||this.tokens.matches1(x.bracketL))t++,this.tokens.copyToken();else if(this.tokens.matches1(x.braceR)||this.tokens.matches1(x.bracketR))t--,this.tokens.copyToken();else if(t===0&&!this.tokens.matches1(x.name)&&!this.tokens.currentToken().isType)break;else if(this.tokens.matches1(x.eq)){let e=this.tokens.currentToken().rhsEndIndex;if(e==null)throw Error(`Expected = token with an end index.`);for(;this.tokens.currentIndex()<e;)this.rootTransformer.processToken()}else{let e=this.tokens.currentToken();if(Oe(e)){let t=this.tokens.identifierName(),n=this.importProcessor.getIdentifierReplacement(t);if(n===null)throw Error(`Expected a replacement for ${t} in \`export var\` syntax.`);Ne(e)&&(n=`${t}: ${n}`),this.tokens.replaceToken(n)}else this.rootTransformer.processToken()}if(e){let e=this.tokens.currentToken().rhsEndIndex;if(e==null)throw Error(`Expected = token with an end index.`);for(;this.tokens.currentIndex()<e;)this.rootTransformer.processToken();this.tokens.appendCode(`)`)}}processExportFunction(){this.tokens.replaceToken(``);let e=this.processNamedFunction();this.tokens.appendCode(` exports.${e} = ${e};`)}processNamedFunction(){if(this.tokens.matches1(x._function))this.tokens.copyToken();else if(this.tokens.matches2(x.name,x._function)){if(!this.tokens.matchesContextual(b._async))throw Error(`Expected async keyword in function export.`);this.tokens.copyToken(),this.tokens.copyToken()}if(this.tokens.matches1(x.star)&&this.tokens.copyToken(),!this.tokens.matches1(x.name))throw Error(`Expected identifier for exported function name.`);let e=this.tokens.identifierName();if(this.tokens.copyToken(),this.tokens.currentToken().isType)for(this.tokens.removeInitialToken();this.tokens.currentToken().isType;)this.tokens.removeToken();return this.tokens.copyExpectedToken(x.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(x.parenR),this.rootTransformer.processPossibleTypeRange(),this.tokens.copyExpectedToken(x.braceL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(x.braceR),e}processExportClass(){this.tokens.removeInitialToken(),this.copyDecorators(),this.tokens.matches1(x._abstract)&&this.tokens.removeToken();let e=this.rootTransformer.processNamedClass();this.tokens.appendCode(` exports.${e} = ${e};`)}processExportBindings(){this.tokens.removeInitialToken(),this.tokens.removeToken();let e=Mc(this.tokens),t=[];for(;;){if(this.tokens.matches1(x.braceR)){this.tokens.removeToken();break}let n=gt(this.tokens);for(;this.tokens.currentIndex()<n.endIndex;)this.tokens.removeToken();if(!(n.isType||!e&&this.shouldElideExportedIdentifier(n.leftName))){let e=n.rightName;e==="default"?this.hadDefaultExport=!0:this.hadNamedExport=!0;let r=n.leftName,i=this.importProcessor.getIdentifierReplacement(r);t.push(`exports.${e} = ${i||r};`)}if(this.tokens.matches1(x.braceR)){this.tokens.removeToken();break}if(this.tokens.matches2(x.comma,x.braceR)){this.tokens.removeToken(),this.tokens.removeToken();break}if(this.tokens.matches1(x.comma))this.tokens.removeToken();else throw Error(`Unexpected token: ${JSON.stringify(this.tokens.currentToken())}`)}if(this.tokens.matchesContextual(b._from)){this.tokens.removeToken();let e=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(e)),Nc(this.tokens)}else this.tokens.appendCode(t.join(` `));this.tokens.matches1(x.semi)&&this.tokens.removeToken()}processExportStar(){for(this.tokens.removeInitialToken();!this.tokens.matches1(x.string);)this.tokens.removeToken();let e=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(e)),Nc(this.tokens),this.tokens.matches1(x.semi)&&this.tokens.removeToken()}shouldElideExportedIdentifier(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.declarationInfo.valueDeclarations.has(e)}},Ic=class extends xt{constructor(e,t,n,r,i,a,o,s){super(),this.tokens=e,this.nameManager=t,this.helperManager=n,this.reactHotLoaderTransformer=r,this.isTypeScriptTransformEnabled=i,this.isFlowTransformEnabled=a,this.keepUnusedImports=o,this.nonTypeIdentifiers=i&&!o?At(e,s):/* @__PURE__ */ new Set,this.declarationInfo=i&&!o?jc(e):Ac,this.injectCreateRequireForImportRequire=!!s.injectCreateRequireForImportRequire}process(){if(this.tokens.matches3(x._import,x.name,x.eq))return this.processImportEquals();if(this.tokens.matches4(x._import,x.name,x.name,x.eq)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,b._type)){this.tokens.removeInitialToken();for(let e=0;e<7;e++)this.tokens.removeToken();return!0}if(this.tokens.matches2(x._export,x.eq))return this.tokens.replaceToken(`module.exports`),!0;if(this.tokens.matches5(x._export,x._import,x.name,x.name,x.eq)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,b._type)){this.tokens.removeInitialToken();for(let e=0;e<8;e++)this.tokens.removeToken();return!0}if(this.tokens.matches1(x._import))return this.processImport();if(this.tokens.matches2(x._export,x._default))return this.processExportDefault();if(this.tokens.matches2(x._export,x.braceL))return this.processNamedExports();if(this.tokens.matches2(x._export,x.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,b._type)){if(this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.matches1(x.braceL)){for(;!this.tokens.matches1(x.braceR);)this.tokens.removeToken();this.tokens.removeToken()}else this.tokens.removeToken(),this.tokens.matches1(x._as)&&(this.tokens.removeToken(),this.tokens.removeToken());return this.tokens.matchesContextual(b._from)&&this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,x.string)&&(this.tokens.removeToken(),this.tokens.removeToken(),Nc(this.tokens)),!0}return!1}processImportEquals(){let e=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.shouldAutomaticallyElideImportedName(e)?kc(this.tokens):this.injectCreateRequireForImportRequire?(this.tokens.replaceToken(`const`),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.replaceToken(this.helperManager.getHelperName(`require`))):this.tokens.replaceToken(`const`),!0}processImport(){if(this.tokens.matches2(x._import,x.parenL))return!1;let e=this.tokens.snapshot();if(this.removeImportTypeBindings()){for(this.tokens.restoreToSnapshot(e);!this.tokens.matches1(x.string);)this.tokens.removeToken();this.tokens.removeToken(),Nc(this.tokens),this.tokens.matches1(x.semi)&&this.tokens.removeToken()}return!0}removeImportTypeBindings(){if(this.tokens.copyExpectedToken(x._import),this.tokens.matchesContextual(b._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,x.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,b._from))return!0;if(this.tokens.matches1(x.string))return this.tokens.copyToken(),!1;this.tokens.matchesContextual(b._module)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,b._from)&&this.tokens.copyToken();let e=!1,t=!1,n=!1;if(this.tokens.matches1(x.name)&&(this.shouldAutomaticallyElideImportedName(this.tokens.identifierName())?(this.tokens.removeToken(),this.tokens.matches1(x.comma)&&this.tokens.removeToken()):(e=!0,this.tokens.copyToken(),this.tokens.matches1(x.comma)&&(n=!0,this.tokens.removeToken()))),this.tokens.matches1(x.star))this.shouldAutomaticallyElideImportedName(this.tokens.identifierNameAtRelativeIndex(2))?(this.tokens.removeToken(),this.tokens.removeToken(),this.tokens.removeToken()):(n&&this.tokens.appendCode(`,`),e=!0,this.tokens.copyExpectedToken(x.star),this.tokens.copyExpectedToken(x.name),this.tokens.copyExpectedToken(x.name));else if(this.tokens.matches1(x.braceL)){for(n&&this.tokens.appendCode(`,`),this.tokens.copyToken();!this.tokens.matches1(x.braceR);){t=!0;let n=gt(this.tokens);if(n.isType||this.shouldAutomaticallyElideImportedName(n.rightName)){for(;this.tokens.currentIndex()<n.endIndex;)this.tokens.removeToken();this.tokens.matches1(x.comma)&&this.tokens.removeToken()}else{for(e=!0;this.tokens.currentIndex()<n.endIndex;)this.tokens.copyToken();this.tokens.matches1(x.comma)&&this.tokens.copyToken()}}this.tokens.copyExpectedToken(x.braceR)}return this.keepUnusedImports?!1:this.isTypeScriptTransformEnabled?!e:this.isFlowTransformEnabled?t&&!e:!1}shouldAutomaticallyElideImportedName(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.nonTypeIdentifiers.has(e)}processExportDefault(){if(Pc(this.isTypeScriptTransformEnabled,this.keepUnusedImports,this.tokens,this.declarationInfo))return this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.removeToken(),!0;if(!(this.tokens.matches4(x._export,x._default,x._function,x.name)||this.tokens.matches5(x._export,x._default,x.name,x._function,x.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,b._async)||this.tokens.matches4(x._export,x._default,x._class,x.name)||this.tokens.matches5(x._export,x._default,x._abstract,x._class,x.name))&&this.reactHotLoaderTransformer){let e=this.nameManager.claimFreeName(`_default`);return this.tokens.replaceToken(`let ${e}; export`),this.tokens.copyToken(),this.tokens.appendCode(` ${e} =`),this.reactHotLoaderTransformer.setExtractedDefaultExportName(e),!0}return!1}processNamedExports(){if(!this.isTypeScriptTransformEnabled)return!1;this.tokens.copyExpectedToken(x._export),this.tokens.copyExpectedToken(x.braceL);let e=Mc(this.tokens),t=!1;for(;!this.tokens.matches1(x.braceR);){let n=gt(this.tokens);if(n.isType||!e&&this.shouldElideExportedName(n.leftName)){for(;this.tokens.currentIndex()<n.endIndex;)this.tokens.removeToken();this.tokens.matches1(x.comma)&&this.tokens.removeToken()}else{for(t=!0;this.tokens.currentIndex()<n.endIndex;)this.tokens.copyToken();this.tokens.matches1(x.comma)&&this.tokens.copyToken()}}return this.tokens.copyExpectedToken(x.braceR),!this.keepUnusedImports&&e&&!t&&(this.tokens.removeToken(),this.tokens.removeToken(),Nc(this.tokens)),!0}shouldElideExportedName(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&this.declarationInfo.typeDeclarations.has(e)&&!this.declarationInfo.valueDeclarations.has(e)}},Lc=class extends xt{constructor(e,t,n){super(),this.rootTransformer=e,this.tokens=t,this.isImportsTransformEnabled=n}process(){return this.rootTransformer.processPossibleArrowParamEnd()||this.rootTransformer.processPossibleAsyncArrowWithTypeParams()||this.rootTransformer.processPossibleTypeRange()?!0:this.tokens.matches1(x._enum)?(this.processEnum(),!0):this.tokens.matches2(x._export,x._enum)?(this.processNamedExportEnum(),!0):this.tokens.matches3(x._export,x._default,x._enum)?(this.processDefaultExportEnum(),!0):!1}processNamedExportEnum(){if(this.isImportsTransformEnabled){this.tokens.removeInitialToken();let e=this.tokens.identifierNameAtRelativeIndex(1);this.processEnum(),this.tokens.appendCode(` exports.${e} = ${e};`)}else this.tokens.copyToken(),this.processEnum()}processDefaultExportEnum(){this.tokens.removeInitialToken(),this.tokens.removeToken();let e=this.tokens.identifierNameAtRelativeIndex(1);this.processEnum(),this.isImportsTransformEnabled?this.tokens.appendCode(` exports.default = ${e};`):this.tokens.appendCode(` export default ${e};`)}processEnum(){this.tokens.replaceToken(`const`),this.tokens.copyExpectedToken(x.name);let e=!1;this.tokens.matchesContextual(b._of)&&(this.tokens.removeToken(),e=this.tokens.matchesContextual(b._symbol),this.tokens.removeToken());let t=this.tokens.matches3(x.braceL,x.name,x.eq);this.tokens.appendCode(` = require("flow-enums-runtime")`);let n=!e&&!t;for(this.tokens.replaceTokenTrimmingLeftWhitespace(n?`.Mirrored([`:`({`);!this.tokens.matches1(x.braceR);){if(this.tokens.matches1(x.ellipsis)){this.tokens.removeToken();break}this.processEnumElement(e,t),this.tokens.matches1(x.comma)&&this.tokens.copyToken()}this.tokens.replaceToken(n?`]);`:`});`)}processEnumElement(e,t){if(e){let e=this.tokens.identifierName();this.tokens.copyToken(),this.tokens.appendCode(`: Symbol("${e}")`)}else t?(this.tokens.copyToken(),this.tokens.replaceTokenTrimmingLeftWhitespace(`:`),this.tokens.copyToken()):this.tokens.replaceToken(`"${this.tokens.identifierName()}"`)}};function Rc(e){let t,n=e[0],r=1;for(;r<e.length;){let i=e[r],a=e[r+1];if(r+=2,(i===`optionalAccess`||i===`optionalCall`)&&n==null)return;i===`access`||i===`optionalAccess`?(t=n,n=a(n)):(i===`call`||i===`optionalCall`)&&(n=a((...e)=>n.call(t,...e)),t=void 0)}return n}let zc=`jest`,Bc=[`mock`,`unmock`,`enableAutomock`,`disableAutomock`];var Vc=class e extends xt{__init(){this.hoistedFunctionNames=[]}constructor(t,n,r,i){super(),this.rootTransformer=t,this.tokens=n,this.nameManager=r,this.importProcessor=i,e.prototype.__init.call(this)}process(){return this.tokens.currentToken().scopeDepth===0&&this.tokens.matches4(x.name,x.dot,x.name,x.parenL)&&this.tokens.identifierName()===zc?!Rc([this,`access`,e=>e.importProcessor,`optionalAccess`,e=>e.getGlobalNames,`call`,e=>e(),`optionalAccess`,e=>e.has,`call`,e=>e(zc)])&&this.extractHoistedCalls():!1}getHoistedCode(){return this.hoistedFunctionNames.length>0?this.hoistedFunctionNames.map(e=>`${e}();`).join(``):``}extractHoistedCalls(){this.tokens.removeToken();let e=!1;for(;this.tokens.matches3(x.dot,x.name,x.parenL);){let t=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);if(Bc.includes(t)){let t=this.nameManager.claimFreeName(`__jestHoist`);this.hoistedFunctionNames.push(t),this.tokens.replaceToken(`function ${t}(){${zc}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(x.parenR),this.tokens.appendCode(`;}`),e=!1}else e?this.tokens.copyToken():this.tokens.replaceToken(`${zc}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(x.parenR),e=!0}return!0}},Hc=class extends xt{constructor(e){super(),this.tokens=e}process(){if(this.tokens.matches1(x.num)){let e=this.tokens.currentTokenCode();if(e.includes(`_`))return this.tokens.replaceToken(e.replace(/_/g,``)),!0}return!1}},Uc=class extends xt{constructor(e,t){super(),this.tokens=e,this.nameManager=t}process(){return this.tokens.matches2(x._catch,x.braceL)?(this.tokens.copyToken(),this.tokens.appendCode(` (${this.nameManager.claimFreeName(`e`)})`),!0):!1}},Wc=class extends xt{constructor(e,t){super(),this.tokens=e,this.nameManager=t}process(){if(this.tokens.matches1(x.nullishCoalescing)){let e=this.tokens.currentToken();return this.tokens.tokens[e.nullishStartIndex].isAsyncOperation?this.tokens.replaceTokenTrimmingLeftWhitespace(`, async () => (`):this.tokens.replaceTokenTrimmingLeftWhitespace(`, () => (`),!0}if(this.tokens.matches1(x._delete)&&this.tokens.tokenAtRelativeIndex(1).isOptionalChainStart)return this.tokens.removeInitialToken(),!0;let e=this.tokens.currentToken().subscriptStartIndex;if(e!=null&&this.tokens.tokens[e].isOptionalChainStart&&this.tokens.tokenAtRelativeIndex(-1).type!==x._super){let t=this.nameManager.claimFreeName(`_`),n;if(n=e>0&&this.tokens.matches1AtIndex(e-1,x._delete)&&this.isLastSubscriptInChain()?`${t} => delete ${t}`:`${t} => ${t}`,this.tokens.tokens[e].isAsyncOperation&&(n=`async ${n}`),this.tokens.matches2(x.questionDot,x.parenL)||this.tokens.matches2(x.questionDot,x.lessThan))this.justSkippedSuper()&&this.tokens.appendCode(`.bind(this)`),this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalCall', ${n}`);else if(this.tokens.matches2(x.questionDot,x.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${n}`);else if(this.tokens.matches1(x.questionDot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${n}.`);else if(this.tokens.matches1(x.dot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${n}.`);else if(this.tokens.matches1(x.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${n}[`);else if(this.tokens.matches1(x.parenL))this.justSkippedSuper()&&this.tokens.appendCode(`.bind(this)`),this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'call', ${n}(`);else throw Error(`Unexpected subscript operator in optional chain.`);return!0}return!1}isLastSubscriptInChain(){let e=0;for(let t=this.tokens.currentIndex()+1;;t++){if(t>=this.tokens.tokens.length)throw Error(`Reached the end of the code while finding the end of the access chain.`);if(this.tokens.tokens[t].isOptionalChainStart?e++:this.tokens.tokens[t].isOptionalChainEnd&&e--,e<0)return!0;if(e===0&&this.tokens.tokens[t].subscriptStartIndex!=null)return!1}}justSkippedSuper(){let e=0,t=this.tokens.currentIndex()-1;for(;;){if(t<0)throw Error(`Reached the start of the code while finding the start of the access chain.`);if(this.tokens.tokens[t].isOptionalChainStart?e--:this.tokens.tokens[t].isOptionalChainEnd&&e++,e<0)return!1;if(e===0&&this.tokens.tokens[t].subscriptStartIndex!=null)return this.tokens.tokens[t-1].type===x._super;t--}}},Gc=class extends xt{constructor(e,t,n,r){super(),this.rootTransformer=e,this.tokens=t,this.importProcessor=n,this.options=r}process(){let e=this.tokens.currentIndex();if(this.tokens.identifierName()===`createReactClass`){let t=this.importProcessor&&this.importProcessor.getIdentifierReplacement(`createReactClass`);return t?this.tokens.replaceToken(`(0, ${t})`):this.tokens.copyToken(),this.tryProcessCreateClassCall(e),!0}if(this.tokens.matches3(x.name,x.dot,x.name)&&this.tokens.identifierName()===`React`&&this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+2)===`createClass`){let t=this.importProcessor&&this.importProcessor.getIdentifierReplacement(`React`)||`React`;return t?(this.tokens.replaceToken(t),this.tokens.copyToken(),this.tokens.copyToken()):(this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.copyToken()),this.tryProcessCreateClassCall(e),!0}return!1}tryProcessCreateClassCall(e){let t=this.findDisplayName(e);t&&this.classNeedsDisplayName()&&(this.tokens.copyExpectedToken(x.parenL),this.tokens.copyExpectedToken(x.braceL),this.tokens.appendCode(`displayName: '${t}',`),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(x.braceR),this.tokens.copyExpectedToken(x.parenR))}findDisplayName(e){return e<2?null:this.tokens.matches2AtIndex(e-2,x.name,x.eq)||e>=2&&this.tokens.tokens[e-2].identifierRole===P.ObjectKey?this.tokens.identifierNameAtIndex(e-2):this.tokens.matches2AtIndex(e-2,x._export,x._default)?this.getDisplayNameFromFilename():null}getDisplayNameFromFilename(){let e=(this.options.filePath||`unknown`).split(`/`),t=e[e.length-1],n=t.lastIndexOf(`.`),r=n===-1?t:t.slice(0,n);return r===`index`&&e[e.length-2]?e[e.length-2]:r}classNeedsDisplayName(){let e=this.tokens.currentIndex();if(!this.tokens.matches2(x.parenL,x.braceL))return!1;let t=e+1,n=this.tokens.tokens[t].contextId;if(n==null)throw Error(`Expected non-null context ID on object open-brace.`);for(;e<this.tokens.tokens.length;e++){let t=this.tokens.tokens[e];if(t.type===x.braceR&&t.contextId===n){e++;break}if(this.tokens.identifierNameAtIndex(e)===`displayName`&&this.tokens.tokens[e].identifierRole===P.ObjectKey&&t.contextId===n)return!1}if(e===this.tokens.tokens.length)throw Error(`Unexpected end of input when processing React class.`);return this.tokens.matches1AtIndex(e,x.parenR)||this.tokens.matches2AtIndex(e,x.comma,x.parenR)}},Kc=class e extends xt{__init(){this.extractedDefaultExportName=null}constructor(t,n){super(),this.tokens=t,this.filePath=n,e.prototype.__init.call(this)}setExtractedDefaultExportName(e){this.extractedDefaultExportName=e}getPrefixCode(){return`
425
+ (function () {
426
+ var enterModule = require('react-hot-loader').enterModule;
427
+ enterModule && enterModule(module);
428
+ })();`.replace(/\s+/g,` `).trim()}getSuffixCode(){let e=/* @__PURE__ */ new Set;for(let t of this.tokens.tokens)!t.isType&&Ae(t)&&t.identifierRole!==P.ImportDeclaration&&e.add(this.tokens.identifierNameForToken(t));let t=Array.from(e).map(e=>({variableName:e,uniqueLocalName:e}));return this.extractedDefaultExportName&&t.push({variableName:this.extractedDefaultExportName,uniqueLocalName:`default`}),`
429
+ ;(function () {
430
+ var reactHotLoader = require('react-hot-loader').default;
431
+ var leaveModule = require('react-hot-loader').leaveModule;
432
+ if (!reactHotLoader) {
433
+ return;
434
+ }
435
+ ${t.map(({variableName:e,uniqueLocalName:t})=>` reactHotLoader.register(${e}, "${t}", ${JSON.stringify(this.filePath||``)});`).join(`
436
+ `)}
437
+ leaveModule(module);
438
+ })();`}process(){return!1}};let qc=/* @__PURE__ */ new Set(/* @__PURE__ */ `break.case.catch.class.const.continue.debugger.default.delete.do.else.export.extends.finally.for.function.if.import.in.instanceof.new.return.super.switch.this.throw.try.typeof.var.void.while.with.yield.enum.implements.interface.let.package.private.protected.public.static.await.false.null.true`.split(`.`));function Jc(e){if(e.length===0||!we[e.charCodeAt(0)])return!1;for(let t=1;t<e.length;t++)if(!Ce[e.charCodeAt(t)])return!1;return!qc.has(e)}var Yc=class extends xt{constructor(e,t,n){super(),this.rootTransformer=e,this.tokens=t,this.isImportsTransformEnabled=n}process(){return this.rootTransformer.processPossibleArrowParamEnd()||this.rootTransformer.processPossibleAsyncArrowWithTypeParams()||this.rootTransformer.processPossibleTypeRange()?!0:this.tokens.matches1(x._public)||this.tokens.matches1(x._protected)||this.tokens.matches1(x._private)||this.tokens.matches1(x._abstract)||this.tokens.matches1(x._readonly)||this.tokens.matches1(x._override)||this.tokens.matches1(x.nonNullAssertion)?(this.tokens.removeInitialToken(),!0):this.tokens.matches1(x._enum)||this.tokens.matches2(x._const,x._enum)?(this.processEnum(),!0):this.tokens.matches2(x._export,x._enum)||this.tokens.matches3(x._export,x._const,x._enum)?(this.processEnum(!0),!0):!1}processEnum(e=!1){for(this.tokens.removeInitialToken();this.tokens.matches1(x._const)||this.tokens.matches1(x._enum);)this.tokens.removeToken();let t=this.tokens.identifierName();this.tokens.removeToken(),e&&!this.isImportsTransformEnabled&&this.tokens.appendCode(`export `),this.tokens.appendCode(`var ${t}; (function (${t})`),this.tokens.copyExpectedToken(x.braceL),this.processEnumBody(t),this.tokens.copyExpectedToken(x.braceR),e&&this.isImportsTransformEnabled?this.tokens.appendCode(`)(${t} || (exports.${t} = ${t} = {}));`):this.tokens.appendCode(`)(${t} || (${t} = {}));`)}processEnumBody(e){let t=null;for(;!this.tokens.matches1(x.braceR);){let{nameStringCode:n,variableName:r}=this.extractEnumKeyInfo(this.tokens.currentToken());this.tokens.removeInitialToken(),this.tokens.matches3(x.eq,x.string,x.comma)||this.tokens.matches3(x.eq,x.string,x.braceR)?this.processStringLiteralEnumMember(e,n,r):this.tokens.matches1(x.eq)?this.processExplicitValueEnumMember(e,n,r):this.processImplicitValueEnumMember(e,n,r,t),this.tokens.matches1(x.comma)&&this.tokens.removeToken(),t=r??`${e}[${n}]`}}extractEnumKeyInfo(e){if(e.type===x.name){let t=this.tokens.identifierNameForToken(e);return{nameStringCode:`"${t}"`,variableName:Jc(t)?t:null}}if(e.type===x.string){let t=this.tokens.stringValueForToken(e);return{nameStringCode:this.tokens.code.slice(e.start,e.end),variableName:Jc(t)?t:null}}throw Error(`Expected name or string at beginning of enum element.`)}processStringLiteralEnumMember(e,t,n){n==null?(this.tokens.appendCode(`${e}[${t}]`),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode(`;`)):(this.tokens.appendCode(`const ${n}`),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode(`; ${e}[${t}] = ${n};`))}processExplicitValueEnumMember(e,t,n){let r=this.tokens.currentToken().rhsEndIndex;if(r==null)throw Error(`Expected rhsEndIndex on enum assign.`);if(n!=null){for(this.tokens.appendCode(`const ${n}`),this.tokens.copyToken();this.tokens.currentIndex()<r;)this.rootTransformer.processToken();this.tokens.appendCode(`; ${e}[${e}[${t}] = ${n}] = ${t};`)}else{for(this.tokens.appendCode(`${e}[${e}[${t}]`),this.tokens.copyToken();this.tokens.currentIndex()<r;)this.rootTransformer.processToken();this.tokens.appendCode(`] = ${t};`)}}processImplicitValueEnumMember(e,t,n,r){let i=r==null?`0`:`${r} + 1`;n!=null&&(this.tokens.appendCode(`const ${n} = ${i}; `),i=n),this.tokens.appendCode(`${e}[${e}[${t}] = ${i}] = ${t};`)}},Xc=class e{__init(){this.transformers=[]}__init2(){this.generatedVariables=[]}constructor(t,n,r,i){e.prototype.__init.call(this),e.prototype.__init2.call(this),this.nameManager=t.nameManager,this.helperManager=t.helperManager;let{tokenProcessor:a,importProcessor:o}=t;this.tokens=a,this.isImportsTransformEnabled=n.includes(`imports`),this.isReactHotLoaderTransformEnabled=n.includes(`react-hot-loader`),this.disableESTransforms=!!i.disableESTransforms,i.disableESTransforms||(this.transformers.push(new Wc(a,this.nameManager)),this.transformers.push(new Hc(a)),this.transformers.push(new Uc(a,this.nameManager))),n.includes(`jsx`)&&(i.jsxRuntime!==`preserve`&&this.transformers.push(new St(this,a,o,this.nameManager,i)),this.transformers.push(new Gc(this,a,o,i)));let s=null;if(n.includes(`react-hot-loader`)){if(!i.filePath)throw Error(`filePath is required when using the react-hot-loader transform.`);s=new Kc(a,i.filePath),this.transformers.push(s)}if(n.includes(`imports`)){if(o===null)throw Error(`Expected non-null importProcessor with imports transform enabled.`);this.transformers.push(new Fc(this,a,o,this.nameManager,this.helperManager,s,r,!!i.enableLegacyTypeScriptModuleInterop,n.includes(`typescript`),n.includes(`flow`),!!i.preserveDynamicImport,!!i.keepUnusedImports))}else this.transformers.push(new Ic(a,this.nameManager,this.helperManager,s,n.includes(`typescript`),n.includes(`flow`),!!i.keepUnusedImports,i));n.includes(`flow`)&&this.transformers.push(new Lc(this,a,n.includes(`imports`))),n.includes(`typescript`)&&this.transformers.push(new Yc(this,a,n.includes(`imports`))),n.includes(`jest`)&&this.transformers.push(new Vc(this,a,this.nameManager,o))}transform(){this.tokens.reset(),this.processBalancedCode();let e=this.isImportsTransformEnabled?`"use strict";`:``;for(let t of this.transformers)e+=t.getPrefixCode();e+=this.helperManager.emitHelpers(),e+=this.generatedVariables.map(e=>` var ${e};`).join(``);for(let t of this.transformers)e+=t.getHoistedCode();let t=``;for(let e of this.transformers)t+=e.getSuffixCode();let n=this.tokens.finish(),{code:r}=n;if(r.startsWith(`#!`)){let i=r.indexOf(`
439
+ `);return i===-1&&(i=r.length,r+=`
440
+ `),{code:r.slice(0,i+1)+e+r.slice(i+1)+t,mappings:this.shiftMappings(n.mappings,e.length)}}return{code:e+r+t,mappings:this.shiftMappings(n.mappings,e.length)}}processBalancedCode(){let e=0,t=0;for(;!this.tokens.isAtEnd();){if(this.tokens.matches1(x.braceL)||this.tokens.matches1(x.dollarBraceL))e++;else if(this.tokens.matches1(x.braceR)){if(e===0)return;e--}if(this.tokens.matches1(x.parenL))t++;else if(this.tokens.matches1(x.parenR)){if(t===0)return;t--}this.processToken()}}processToken(){if(this.tokens.matches1(x._class))this.processClass();else{for(let e of this.transformers)if(e.process())return;this.tokens.copyToken()}}processNamedClass(){if(!this.tokens.matches2(x._class,x.name))throw Error(`Expected identifier for exported class name.`);let e=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.processClass(),e}processClass(){let e=Cc(this,this.tokens,this.nameManager,this.disableESTransforms),t=(e.headerInfo.isExpression||!e.headerInfo.className)&&e.staticInitializerNames.length+e.instanceInitializerNames.length>0,n=e.headerInfo.className;t&&(n=this.nameManager.claimFreeName(`_class`),this.generatedVariables.push(n),this.tokens.appendCode(` (${n} =`));let r=this.tokens.currentToken().contextId;if(r==null)throw Error(`Expected class to have a context ID.`);for(this.tokens.copyExpectedToken(x._class);!this.tokens.matchesContextIdAndLabel(x.braceL,r);)this.processToken();this.processClassBody(e,n);let i=e.staticInitializerNames.map(e=>`${n}.${e}()`);t?this.tokens.appendCode(`, ${i.map(e=>`${e}, `).join(``)}${n})`):e.staticInitializerNames.length>0&&this.tokens.appendCode(` ${i.map(e=>`${e};`).join(` `)}`)}processClassBody(e,t){let{headerInfo:n,constructorInsertPos:r,constructorInitializerStatements:i,fields:a,instanceInitializerNames:o,rangesToRemove:s}=e,c=0,l=0,u=this.tokens.currentToken().contextId;if(u==null)throw Error(`Expected non-null context ID on class.`);this.tokens.copyExpectedToken(x.braceL),this.isReactHotLoaderTransformEnabled&&this.tokens.appendCode(`__reactstandin__regenerateByEval(key, code) {this[key] = eval(code);}`);let d=i.length+o.length>0;if(r===null&&d){let e=this.makeConstructorInitCode(i,o,t);if(n.hasSuperclass){let t=this.nameManager.claimFreeName(`args`);this.tokens.appendCode(`constructor(...${t}) { super(...${t}); ${e}; }`)}else this.tokens.appendCode(`constructor() { ${e}; }`)}for(;!this.tokens.matchesContextIdAndLabel(x.braceR,u);)if(c<a.length&&this.tokens.currentIndex()===a[c].start){let e=!1;for(this.tokens.matches1(x.bracketL)?this.tokens.copyTokenWithPrefix(`${a[c].initializerName}() {this`):this.tokens.matches1(x.string)||this.tokens.matches1(x.num)?(this.tokens.copyTokenWithPrefix(`${a[c].initializerName}() {this[`),e=!0):this.tokens.copyTokenWithPrefix(`${a[c].initializerName}() {this.`);this.tokens.currentIndex()<a[c].end;)e&&this.tokens.currentIndex()===a[c].equalsIndex&&this.tokens.appendCode(`]`),this.processToken();this.tokens.appendCode(`}`),c++}else if(l<s.length&&this.tokens.currentIndex()>=s[l].start){for(this.tokens.currentIndex()<s[l].end&&this.tokens.removeInitialToken();this.tokens.currentIndex()<s[l].end;)this.tokens.removeToken();l++}else this.tokens.currentIndex()===r&&(this.tokens.copyToken(),d&&this.tokens.appendCode(`;${this.makeConstructorInitCode(i,o,t)};`)),this.processToken();this.tokens.copyExpectedToken(x.braceR)}makeConstructorInitCode(e,t,n){return[...e,...t.map(e=>`${n}.prototype.${e}.call(this)`)].join(`;`)}processPossibleArrowParamEnd(){if(this.tokens.matches2(x.parenR,x.colon)&&this.tokens.tokenAtRelativeIndex(1).isType){let e=this.tokens.currentIndex()+1;for(;this.tokens.tokens[e].isType;)e++;if(this.tokens.matches1AtIndex(e,x.arrow)){for(this.tokens.removeInitialToken();this.tokens.currentIndex()<e;)this.tokens.removeToken();return this.tokens.replaceTokenTrimmingLeftWhitespace(`) =>`),!0}}return!1}processPossibleAsyncArrowWithTypeParams(){if(!this.tokens.matchesContextual(b._async)&&!this.tokens.matches1(x._async))return!1;let e=this.tokens.tokenAtRelativeIndex(1);if(e.type!==x.lessThan||!e.isType)return!1;let t=this.tokens.currentIndex()+1;for(;this.tokens.tokens[t].isType;)t++;if(this.tokens.matches1AtIndex(t,x.parenL)){for(this.tokens.replaceToken(`async (`),this.tokens.removeInitialToken();this.tokens.currentIndex()<t;)this.tokens.removeToken();return this.tokens.removeToken(),this.processBalancedCode(),this.processToken(),!0}return!1}processPossibleTypeRange(){if(this.tokens.currentToken().isType){for(this.tokens.removeInitialToken();this.tokens.currentToken().isType;)this.tokens.removeToken();return!0}return!1}shiftMappings(e,t){for(let n=0;n<e.length;n++){let r=e[n];r!==void 0&&(e[n]=r+t)}return e}};(/* @__PURE__ */ o((e=>{e.__esModule=!0,e.LinesAndColumns=void 0;var t=`
441
+ `,n=`\r`;e.LinesAndColumns=function(){function e(e){this.string=e;for(var r=[0],i=0;i<e.length;)switch(e[i]){case t:i+=t.length,r.push(i);break;case n:i+=n.length,e[i]===t&&(i+=t.length),r.push(i);break;default:i++}this.offsets=r}return e.prototype.locationForIndex=function(e){if(e<0||e>this.string.length)return null;for(var t=0,n=this.offsets;n[t+1]<=e;)t++;var r=e-n[t];return{line:t,column:r}},e.prototype.indexForLocation=function(e){var t=e.line,n=e.column;return t<0||t>=this.offsets.length||n<0||n>this.lengthOfLine(t)?null:this.offsets[t]+n},e.prototype.lengthOfLine=function(e){var t=this.offsets[e];return(e===this.offsets.length-1?this.string.length:this.offsets[e+1])-t},e}()})))();function Zc(e){let t=/* @__PURE__ */ new Set;for(let n=0;n<e.tokens.length;n++)e.matches1AtIndex(n,x._import)&&!e.matches3AtIndex(n,x._import,x.name,x.eq)&&Qc(e,n,t);return t}function Qc(e,t,n){t++,e.matches1AtIndex(t,x.parenL)||(e.matches1AtIndex(t,x.name)&&(n.add(e.identifierNameAtIndex(t)),t++,e.matches1AtIndex(t,x.comma)&&t++),e.matches1AtIndex(t,x.star)&&(t+=2,n.add(e.identifierNameAtIndex(t)),t++),e.matches1AtIndex(t,x.braceL)&&(t++,$c(e,t,n)))}function $c(e,t,n){for(;;){if(e.matches1AtIndex(t,x.braceR))return;let r=gt(e,t);if(t=r.endIndex,r.isType||n.add(r.rightName),e.matches2AtIndex(t,x.comma,x.braceR)||e.matches1AtIndex(t,x.braceR))return;if(e.matches1AtIndex(t,x.comma))t++;else throw Error(`Unexpected token: ${JSON.stringify(e.tokens[t])}`)}}function el(e,t){Dn(t);try{let n=tl(e,t),r=new Xc(n,t.transforms,!!t.enableLegacyBabel5ModuleInterop,t).transform(),i={code:r.code};if(t.sourceMapOptions){if(!t.filePath)throw Error(`filePath must be specified when generating a source map.`);i={...i,sourceMap:fn(r,t.filePath,t.sourceMapOptions,e,n.tokenProcessor.tokens)}}return i}catch(e){throw t.filePath&&(e.message=`Error transforming ${t.filePath}: ${e.message}`),e}}function tl(e,t){let n=t.transforms.includes(`jsx`),r=t.transforms.includes(`typescript`),i=t.transforms.includes(`flow`),a=t.disableESTransforms===!0,o=bc(e,n,r,i),s=o.tokens,c=o.scopes,l=new xn(e,s),u=new hn(l),d=new Sc(e,s,i,a,u),f=!!t.enableLegacyTypeScriptModuleInterop,p=null;return t.transforms.includes(`imports`)?(p=new jt(l,d,f,t,t.transforms.includes(`typescript`),!!t.keepUnusedImports,u),p.preprocessTokens(),gn(d,c,p.getGlobalNames()),t.transforms.includes(`typescript`)&&!t.keepUnusedImports&&p.pruneTypeOnlyImports()):t.transforms.includes(`typescript`)&&!t.keepUnusedImports&&gn(d,c,Zc(d)),{tokenProcessor:d,scopes:c,nameManager:l,importProcessor:p,helperManager:u}}var nl=Object.create,rl=Object.defineProperty,il=Object.getOwnPropertyDescriptor,al=Object.getOwnPropertyNames,ol=Object.getPrototypeOf,sl=Object.prototype.hasOwnProperty,cl=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),ll=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=al(t),a=0,o=i.length,s;a<o;a++)s=i[a],!sl.call(e,s)&&s!==n&&rl(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=il(t,s))||r.enumerable});return e},ul=(e,t,n)=>(n=e==null?{}:nl(ol(e)),ll(t||!e||!e.__esModule?rl(n,`default`,{value:e,enumerable:!0}):n,e)),dl=()=>(Math.random()+``).slice(2);function fl(e={}){return{name:`sucrase`,transform(t,n){if(!n.match(/\.(?:js|[jt]sx)$/))return null;let r=el(t,{transforms:[`jsx`,`typescript`],filePath:n,sourceMapOptions:{compiledFilename:`bundle.js`},production:!0,...e});return{code:r.code,map:r.sourceMap}}}}var pl={dependencies:{},vizhub:{},license:`MIT`},ml=e=>{let t=e[`package.json`];try{return t?JSON.parse(t):pl}catch{return pl}},hl=e=>ml(e).dependencies||{},gl=e=>(ml(e).vizhub||{}).libraries||{},_l=({name:e,version:t},n,r=`jsdelivr`)=>{let i=n[e]&&n[e].path||``;return r===`jsdelivr`?`https://cdn.jsdelivr.net/npm/${e}@${t}${i}`:`https://unpkg.com/${e}@${t}${i}`},vl=e=>{let t=e?.vizhub?.libraries;return t?Object.entries(t).reduce((e,[t,n])=>(n.global&&(e[t]=n.global),e),{}):{}},yl={d3:`d3`,react:`React`,"react-dom":`ReactDOM`},bl=e=>{let t=vl(e);return{...yl,...t}},xl=e=>{let[t,...n]=e.split(`/`);return{vizId:t,fileName:n.join(`/`)}},Sl=`var EOL = {},
442
+ EOF = {},
443
+ QUOTE = 34,
444
+ NEWLINE = 10,
445
+ RETURN = 13;
446
+
447
+ function objectConverter(columns) {
448
+ return new Function(
449
+ 'd',
450
+ 'return {' +
451
+ columns
452
+ .map(function (name, i) {
453
+ return (
454
+ JSON.stringify(name) + ': d[' + i + '] || ""'
455
+ );
456
+ })
457
+ .join(',') +
458
+ '}',
459
+ );
460
+ }
461
+
462
+ function customConverter(columns, f) {
463
+ var object = objectConverter(columns);
464
+ return function (row, i) {
465
+ return f(object(row), i, columns);
466
+ };
467
+ }
468
+
469
+ function dsv(delimiter) {
470
+ var DELIMITER = delimiter.charCodeAt(0);
471
+
472
+ function parse(text, f) {
473
+ var convert,
474
+ columns,
475
+ rows = parseRows(text, function (row, i) {
476
+ if (convert) return convert(row, i - 1);
477
+ (columns = row),
478
+ (convert = f
479
+ ? customConverter(row, f)
480
+ : objectConverter(row));
481
+ });
482
+ rows.columns = columns || [];
483
+ return rows;
484
+ }
485
+
486
+ function parseRows(text, f) {
487
+ var rows = [], // output rows
488
+ N = text.length,
489
+ I = 0, // current character index
490
+ n = 0, // current line number
491
+ t, // current token
492
+ eof = N <= 0, // current token followed by EOF?
493
+ eol = false; // current token followed by EOL?
494
+
495
+ // Strip the trailing newline.
496
+ if (text.charCodeAt(N - 1) === NEWLINE) --N;
497
+ if (text.charCodeAt(N - 1) === RETURN) --N;
498
+
499
+ function token() {
500
+ if (eof) return EOF;
501
+ if (eol) return (eol = false), EOL;
502
+
503
+ // Unescape quotes.
504
+ var i,
505
+ j = I,
506
+ c;
507
+ if (text.charCodeAt(j) === QUOTE) {
508
+ while (
509
+ (I++ < N && text.charCodeAt(I) !== QUOTE) ||
510
+ text.charCodeAt(++I) === QUOTE
511
+ );
512
+ if ((i = I) >= N) eof = true;
513
+ else if ((c = text.charCodeAt(I++)) === NEWLINE)
514
+ eol = true;
515
+ else if (c === RETURN) {
516
+ eol = true;
517
+ if (text.charCodeAt(I) === NEWLINE) ++I;
518
+ }
519
+ return text.slice(j + 1, i - 1).replace(/""/g, '"');
520
+ }
521
+
522
+ // Find next delimiter or newline.
523
+ while (I < N) {
524
+ if ((c = text.charCodeAt((i = I++))) === NEWLINE)
525
+ eol = true;
526
+ else if (c === RETURN) {
527
+ eol = true;
528
+ if (text.charCodeAt(I) === NEWLINE) ++I;
529
+ } else if (c !== DELIMITER) continue;
530
+ return text.slice(j, i);
531
+ }
532
+
533
+ // Return last token before EOF.
534
+ return (eof = true), text.slice(j, N);
535
+ }
536
+
537
+ while ((t = token()) !== EOF) {
538
+ var row = [];
539
+ while (t !== EOL && t !== EOF)
540
+ row.push(t), (t = token());
541
+ if (f && (row = f(row, n++)) == null) continue;
542
+ rows.push(row);
543
+ }
544
+
545
+ return rows;
546
+ }
547
+
548
+ return {
549
+ parse: parse,
550
+ };
551
+ }
552
+
553
+ var csv = dsv(',');
554
+
555
+ var csvParse = csv.parse;
556
+
557
+ var tsv = dsv(' ');
558
+
559
+ var tsvParse = tsv.parse;
560
+
561
+ export { csvParse, tsvParse };`,Cl=e=>e.replace(/\\/g,`\\\\`).replace(/`/g,"\\`"),wl=()=>({name:`transformDSV`,transform:async(e,t)=>{let{vizId:n,fileName:r}=xl(t),i=r.endsWith(`.csv`),a=r.endsWith(`.tsv`);if(i||a)return{code:`
562
+ ${Sl}
563
+ const data = ${i?`csvParse`:`tsvParse`}(\`${Cl(e)}\`);
564
+ export default data;
565
+ `,map:{mappings:``}}}}),Tl=e=>{let t=e.match(/^@([a-zA-Z0-9_-]+)\/([a-zA-Z0-9_-]+)$/);return t?{userName:t[1],idOrSlug:t[2]}:null},El=({vizId:e,slugCache:t})=>({name:`vizResolve`,resolveId:async(n,r)=>{if(n.startsWith(`./`)&&!r?.startsWith(`https://`)){let t=n.substring(2);if(t.endsWith(`.js`)||t.endsWith(`.css`)||t.endsWith(`.csv`)||t.endsWith(`.svelte`)||t.endsWith(`.png`)||t.endsWith(`.jpg`)||t.endsWith(`.jpeg`)||t.endsWith(`.gif`)||t.endsWith(`.svg`)||t.endsWith(`.webp`)||t.endsWith(`.bmp`)||(t+=`.js`),r){let{vizId:e,fileName:n}=xl(r),i=n.split(`/`).slice(0,-1).join(`/`);return`${e}/${i?`${i}/${t}`:t}`}return e+`/`+t}let i=Tl(n);if(i){let e;if(g(i.idOrSlug))e=i.idOrSlug;else{if(!t)throw Error(`slugCache is required to import by slug in v3 runtime`);e=await t.get(`${i.userName}/${i.idOrSlug}`)}return e+`/index.js`}}}),Dl=[`.jpg`,`.jpeg`,`.png`,`.gif`,`.svg`,`.webp`,`.bmp`],Ol=e=>{let t=e.toLowerCase().split(`.`).pop();return t?Dl.includes(`.${t}`):!1},kl=e=>{switch(e.toLowerCase().split(`.`).pop()){case`jpg`:case`jpeg`:return`image/jpeg`;case`png`:return`image/png`;case`gif`:return`image/gif`;case`svg`:return`image/svg+xml`;case`webp`:return`image/webp`;case`bmp`:return`image/bmp`;default:return`image/png`}},Al=e=>{let t=e.replace(/\s/g,``);return/^[A-Za-z0-9+/]*={0,2}$/.test(t)},jl=(e,t)=>{let n=kl(e);return e.toLowerCase().split(`.`).pop()===`svg`&&!Al(t)?`data:${n};utf8,${encodeURIComponent(t)}`:`data:${n};base64,${t}`},Ml=(e,t)=>e.replace(/<img([^>]*)\s+src=["']([^"']+)["']([^>]*)>/gi,(e,n,r,i)=>t[r]!==void 0&&Ol(r)?`<img${n} src="${jl(r,t[r])}"${i}>`:e),Nl=({vizCache:e,trackCSSImport:t,vizId:n,files:r})=>({name:`vizLoad`,load:async i=>{let a=xl(i),o=a.vizId,s=a.fileName;if(s.endsWith(`.css`))return t(i),``;let c=null;if(c=o===n&&r?r[s]||null:y(await e.get(o),s),c===null)throw Error(`Imported file "${s}" not found.`);return Ol(s)?`export default "${jl(s,c)}";`:c}}),Pl=/* @__PURE__ */ new Map,Fl=/* @__PURE__ */ new Map,Il,Ll=`https://cdn.jsdelivr.net/npm/svelte@5.37.1`,Rl=`${Ll}/compiler/index.js`;async function zl(e){let t=Fl.get(e);if(t)return t;for(let t of[`.js`,`/index.js`]){let n=`${e}${t}`;try{if((await fetch(n,{method:`HEAD`})).ok)return Fl.set(e,n),n}catch{continue}}let n=`${e}.js`;return Fl.set(e,n),n}var Bl=({getSvelteCompiler:e})=>({name:`transformSvelte`,load:async e=>{if(e===`virtual:esm-env`)return`
566
+ export const BROWSER = true;
567
+ export const DEV = true;
568
+ export const NODE = false;
569
+ export const PROD = false;
570
+ `;if(!e.startsWith(Ll))return;let t=Pl.get(e);if(t)return t;let n=await fetch(e).then(e=>e.text());return Pl.set(e,n),n},resolveId:async(e,t)=>{if(e===`esm-env`)return`virtual:esm-env`;if(e===`svelte`)return`${Ll}/src/index-client.js`;if(e.startsWith(`svelte/`))return await zl(`${Ll}/src/${e.slice(7)}`);if(e.startsWith(`#client/`))return await zl(`${Ll}/src/internal/client/${e.slice(8)}`);if(/^https?:/.test(e))return e;if(e.startsWith(`.`)&&t&&t.startsWith(Ll)){let n=new URL(e,t).href;return new URL(e,t).href,n}},transform:async(t,n)=>{let{fileName:r}=xl(n);if(r.endsWith(`.svelte`)){if(!Il){if(!e)throw Error(`Svelte compiler not available`);Il=await e()}let n=Il(t,{filename:r,generate:`client`,css:`external`,dev:!1}),i=n.js.code;return n.css&&n.css.code&&(i=`
571
+ // Auto-inject CSS for Svelte component
572
+ (function() {
573
+ if (typeof document !== 'undefined') {
574
+ const style = document.createElement('style');
575
+ style.textContent = ${JSON.stringify(n.css.code)};
576
+ document.head.appendChild(style);
577
+ }
578
+ })();
579
+ `+i),i}}}),Vl=async({files:e,rollup:t,enableSourcemap:n=!0,vizCache:r,vizId:i,slugCache:a,getSvelteCompiler:o})=>{let s=/* @__PURE__ */ new Set,c=e=>{s.add(e)};if(!e[`index.js`])throw Error(`Missing index.js`);let l={name:`replace`,transform(e,t){let n=!1,r=e;return r.includes(`process.env.NODE_ENV`)&&(r=r.replace(/\bprocess\.env\.NODE_ENV\b/g,JSON.stringify(`production`)),n=!0),n?{code:r,map:null}:null}},u={input:`./index.js`,plugins:[...i?[El({vizId:i,slugCache:a})]:[],wl(),fl(),Bl({getSvelteCompiler:o}),l,...r?[Nl({vizCache:r,trackCSSImport:c,vizId:i,files:e})]:[]],onwarn(e,t){e.code!==`UNRESOLVED_IMPORT`&&t(e)}},d={format:`umd`,name:`Viz`,sourcemap:!!n,compact:!0},f=ml(e);if(f){let e=bl(f);e&&(u.external=Object.keys(e),d.globals=e)}u.external||=[],d.globals||={},Array.isArray(u.external)&&(u.external=u.external.filter(e=>typeof e==`string`&&!e.startsWith(`#client/`)));let{output:p}=await(await t(u)).generate(d);return{src:p[0].code,cssFiles:Array.from(s)}},Hl=e=>{if(e instanceof Error){let t=e.stack||``,n=e.message||`Unknown error`;return`${e.name||`Error`}: ${n}\n${t}`}if(`error`in e&&e.error instanceof Error){let t=e.error,n=t.stack||``,r=t.message||`Unknown error`,i=`filename`in e?e.filename:``,a=`lineno`in e?e.lineno:``,o=`colno`in e?e.colno:``,s=``;return i&&a&&(s=` at ${i}:${a}`,o&&(s+=`:${o}`)),`${t.name||`Error`}: ${r}${s}\n${n}`}if(`reason`in e){let t=e.reason;if(t instanceof Error){let e=t.stack||``,n=t.message||`Unknown error`;return`Unhandled Promise Rejection - ${t.name||`Error`}: ${n}\n${e}`}return`Unhandled Promise Rejection: ${String(t)}`}return`Unknown runtime error: ${String(e)}`},Ul=()=>`
580
+ // Global error handling for runtime errors
581
+ (() => {
582
+ const formatRuntimeError = ${Hl.toString()};
583
+
584
+ // Handle uncaught JavaScript errors
585
+ window.addEventListener('error', (event) => {
586
+ const formattedErrorMessage = formatRuntimeError(event);
587
+ parent.postMessage({
588
+ type: 'runtimeError',
589
+ formattedErrorMessage
590
+ }, "*");
591
+ });
592
+
593
+ // Handle unhandled promise rejections
594
+ window.addEventListener('unhandledrejection', (event) => {
595
+ const formattedErrorMessage = formatRuntimeError(event);
596
+ parent.postMessage({
597
+ type: 'runtimeError',
598
+ formattedErrorMessage
599
+ }, "*");
600
+ });
601
+ })();
602
+ `;function Wl(){return Math.random().toString().slice(2,7)}var Gl=({cdn:e,src:t,styles:n})=>{let r=`viz-container-${Wl()}`;return`<!DOCTYPE html>
603
+ <html>
604
+ <head>
605
+ <meta charset="utf-8">${e}${n}
606
+ <style>
607
+ body {
608
+ margin: 0;
609
+ overflow: hidden;
610
+ }
611
+ #${r} {
612
+ height: 100vh;
613
+ }
614
+ </style>
615
+ </head>
616
+ <body>
617
+ <div id="${r}"></div>
618
+ <script>${Ul()}<\/script>
619
+ <script id="injected-script">${t}<\/script>
620
+ <script>
621
+ (() => {
622
+ let cleanup;
623
+ const render = () => {
624
+ const container = document.getElementById('${r}');
625
+ typeof cleanup === 'function' && cleanup();
626
+ cleanup = (Viz.viz || Viz.main)(container, { state: window.state, setState, writeFile });
627
+ };
628
+ const setState = (next) => {
629
+ window.state = next(window.state);
630
+ render();
631
+ };
632
+ const writeFile = (fileName, content) => {
633
+ parent.postMessage({ type: 'writeFile', fileName, content }, "*");
634
+ };
635
+ const run = () => {
636
+ try {
637
+ setState((state) => state || {});
638
+ } catch (error) {
639
+ console.error(error);
640
+ parent.postMessage({ type: 'runError', error }, "*");
641
+ }
642
+ }
643
+ run();
644
+ const runJS = (src) => {
645
+ document.getElementById('injected-script')?.remove();
646
+ const script = document.createElement('script');
647
+ script.textContent = src;
648
+ script.id = 'injected-script';
649
+ document.body.appendChild(script);
650
+ run();
651
+ };
652
+ const runCSS = (css) => {
653
+ let style = document.getElementById('injected-style');
654
+ if (!style) {
655
+ style = document.createElement('style');
656
+ style.type = 'text/css';
657
+ style.id = 'injected-style';
658
+ document.head.appendChild(style);
659
+ }
660
+ style.textContent = css;
661
+ };
662
+ onmessage = (message) => {
663
+ switch (message.data.type) {
664
+ case 'runJS':
665
+ runJS(message.data.js);
666
+ parent.postMessage({ type: 'runDone' }, "*");
667
+ break;
668
+ case 'runCSS':
669
+ runCSS(message.data.css);
670
+ break;
671
+ case 'ping':
672
+ parent.postMessage({ type: 'pong' }, "*");
673
+ break;
674
+ default:
675
+ break;
676
+ }
677
+ }
678
+ })();
679
+ <\/script>
680
+ </body>
681
+ </html>`},Kl=async({files:e,rollup:t,enableSourcemap:n=!0,vizCache:r,vizId:i,slugCache:a,getSvelteCompiler:o})=>{let{src:s,cssFiles:c}=await Vl({files:e,rollup:t,enableSourcemap:n,vizCache:r,vizId:i,slugCache:a,getSvelteCompiler:o}),l=[];if(c.length>0)for(let t=0;t<c.length;t++){let n=c[t],a=xl(n),o=a.vizId,s=a.fileName,u=null;u=o===i&&e?e[s]||null:y(await r.get(o),s),u&&l.push(u)}let u=l.join(`
682
+ `),d=`\n <style id="injected-style">${u}</style>`,f=``,p=Object.entries(hl(e));if(p.length>0){let t=gl(e);f=p.map(([e,n],r)=>{let i=_l({name:e,version:n},t);return`${r>0?` `:`
683
+ `}<script src="${i}"><\/script>`}).join(``)}return{html:Gl({cdn:f,src:s,styles:d}),css:u,js:s,runtimeVersion:`v3`}},ql=({initialContents:e,handleCacheMiss:t})=>{let n=new Map(e.map(e=>[e.id,e]));return{get:async e=>{let r=n.get(e);if(r!==void 0)return r;if(!t)throw Error(`Unresolved import from vizId ${e}, cache miss handler not provided.`);let i=await t(e);if(i)return n.set(e,i),i;throw Error(`Unresolved import from vizId ${e}`)},set:e=>{n.set(e.id,e)},invalidate:e=>{n.delete(e)}}},Jl=({initialMappings:e={},handleCacheMiss:t})=>({get:async n=>{let r=e[n];if(r!==void 0)return r;if(!t)throw Error(`Unresolved slug ${n}, cache miss handler not provided.`);let i=await t(n);if(i)return e[n]=i,i;throw Error(`Unresolved slug ${n}`)},set:(t,n)=>{e[t]=n},invalidate:t=>{delete e[t]}}),Yl=(e,t=`Sample Content for Exporting`,n=ee())=>({id:n,files:re(e),title:t}),Xl=e=>{if(Object.keys(e).length===0)return null;let t=`index.html`in e,n=`index.js`in e,r=`index.jsx`in e;return t?e[`index.html`].includes(`type="module"`)?`v4`:n||r?`v2`:`v1`:!t&&n?`v3`:null},Zl=(e,t)=>RegExp(`<${t}\\b`,`i`).test(e)&&RegExp(`</${t}>`,`i`).test(e),Ql=e=>{let t=e.trim();return Zl(t,`html`)&&Zl(t,`head`)&&Zl(t,`body`)?t:`<html><head></head><body>${t}</body></html>`},$l=(e,t)=>e.replace(RegExp(`<script[^>]*src=["'][^"']*${t.source}[^"']*["'][^>]*>\\s*<\/script>`,`gi`),``),eu=(e,t,n)=>e.replace(new RegExp(t,`i`),`${n}${t}`),tu=(e,t)=>{let n=Ql(e),r=Object.entries(hl(t));if(r.length){let e=gl(t);r.forEach(([e])=>{n=$l(n,RegExp(`${e}@`))});let i=r.map(([t,n])=>_l({name:t,version:n},e)).map(e=>`<script src="${e}"><\/script>`).join(`
684
+ `);n=eu(n,`</head>`,i+`
685
+ `)}if(t[`bundle.js`]!==void 0||t[`index.js`]!==void 0){let e=/<script\b[^>]*\bsrc=["']bundle\.js["'][^>]*>\s*<\/script>/gi,t=[...n.matchAll(e)];t.length===1&&(()=>{let e=t[0].index??-1;if(e===-1)return!1;let r=n.search(/<body\b[^>]*>/i),i=n.search(/<\/body>/i);return r!==-1&&i!==-1&&e>r&&e<i})()||(n=n.replace(e,``),n=eu(n,`</body>`,`<script src="bundle.js"><\/script>`))}let i=`<script>${Ul()}<\/script>\n`;return n=eu(n,`</head>`,i),/^\s*<!DOCTYPE/i.test(n)?n:`<!DOCTYPE html>${n}`},nu=e=>{let t=e[`index.html`];return!t&&!e[`index.js`]&&!e[`bundle.js`]?``:tu(t||`<!DOCTYPE html><html><head></head><body></body></html>`,e)},ru=/* @__PURE__ */ ul((/* @__PURE__ */ cl(((e,t)=>{t.exports={d3:`d3`,"d3-array":`d3`,"d3-axis":`d3`,"d3-brush":`d3`,"d3-chord":`d3`,"d3-collection":`d3`,"d3-color":`d3`,"d3-contour":`d3`,"d3-dispatch":`d3`,"d3-drag":`d3`,"d3-dsv":`d3`,"d3-ease":`d3`,"d3-fetch":`d3`,"d3-force":`d3`,"d3-format":`d3`,"d3-geo":`d3`,"d3-hierarchy":`d3`,"d3-interpolate":`d3`,"d3-path":`d3`,"d3-polygon":`d3`,"d3-quadtree":`d3`,"d3-random":`d3`,"d3-scale":`d3`,"d3-scale-chromatic":`d3`,"d3-selection":`d3`,"d3-shape":`d3`,"d3-tile":`d3`,"d3-time":`d3`,"d3-time-format":`d3`,"d3-timer":`d3`,"d3-transition":`d3`,"d3-voronoi":`d3`,"d3-zoom":`d3`,react:`React`,"react-dom":`ReactDOM`,"react-dropdown-browser":`ReactDropdown`,"react-dropdown":`ReactDropdown`,three:`THREE`,vega:`vega`,"vega-embed":`vegaEmbed`,"vega-lite":`vegaLite`,"vega-lite-api":`vl`,"vega-tooltip":`vegaTooltip`,"vega-themes":`vegaThemes`,"vizhub-vega-lite-config":`vizhubVegaLiteConfig`,semiotic:`Semiotic`,"viz.js":`Viz`}})))(),1),iu=`\0virtual:`,au=e=>{let t=e.replace(/^\.\//,``);return t=t.replace(/\/+/g,`/`),t=t.replace(/\/$/,``),t},ou=(e,t)=>{let n=e.includes(`/`)?e.slice(0,e.lastIndexOf(`/`)):``,r=t.split(`/`),i=n?n.split(`/`):[];for(let e of r)e===`..`?i.pop():e!==`.`&&e!==``&&i.push(e);return i.join(`/`)},su=e=>({name:`virtual-file-system`,resolveId(t,n){let r=n?.startsWith(`\0virtual:`)?n.slice(9):n;if(t.startsWith(`./`)||t.startsWith(`../`)){let n=au(r?ou(r,t):t);if(e[n])return iu+n;for(let t of[`.js`,`.jsx`,`.ts`,`.tsx`]){let r=n+t;if(e[r])return iu+r}}if(e[t])return iu+t;for(let n of[`.js`,`.jsx`,`.ts`,`.tsx`]){let r=t+n;if(e[r])return iu+r}return null},load(t){if(t.startsWith(`\0virtual:`)){let n=t.slice(9);if(e[n])return Ol(n)?`export default "${jl(n,e[n])}";`:e[n]}return null}}),cu=async({files:e,rollup:t,enableSourcemap:n=!0})=>{let r=`index.js`;if(!e[r]&&(r=`index.jsx`,!e[r]))throw Error(`Missing entry point, can't find index.js or index.jsx`);let i={input:`./`+r,plugins:[su(e),fl()],onwarn(e,t){e.code!==`UNRESOLVED_IMPORT`&&t(e)}},a={format:`iife`,sourcemap:n},o=ml(e);if(o){let e={...ru.default,...bl(o)};e&&(i.external=Object.keys(e),a.globals=e)}let{output:s}=await(await t(i)).generate(a);return s[0].code},lu=async({files:e,rollup:t,enableSourcemap:n})=>({...e,"bundle.js":await cu({files:e,rollup:t,enableSourcemap:n}),"index.html":nu(e)}),uu=e=>{let t=[],n=[],r=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,i,a=0;for(;(i=r.exec(e))!==null;){let e=i[1],r=i[2];if(!/\btype\s*=\s*["']module["']/i.test(e))continue;let o=e.match(/\bsrc\s*=\s*["']([^"']+)["']/i);if(o)t.push(o[1]);else if(r.trim()){let e=`__inline_script_${a++}.js`;n.push({id:e,content:r.trim()}),t.push(e)}}return{entryPoints:t,inlineScripts:n}},du=()=>({name:`catch-all-prevent-fs`,resolveId(e,t){return{id:e,external:!0}}}),fu=async({entryPoint:e,files:t,rollup:n,enableSourcemap:r=!0})=>{let{output:i}=await(await n({input:e.startsWith(`./`)?e:`./${e}`,plugins:[su(t),fl({jsxRuntime:`automatic`}),du()],onwarn(e,t){}})).generate({format:`es`,sourcemap:r});return i[0].code},pu=(e,t)=>RegExp(`<${t}\\b`,`i`).test(e)&&RegExp(`</${t}>`,`i`).test(e),mu=e=>{let t=e.trim();return pu(t,`html`)&&pu(t,`head`)&&pu(t,`body`)?t:`<html><head></head><body>${t}</body></html>`},hu=e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),gu=(e,t,n)=>e.replace(new RegExp(t,`i`),`${n}${t}`),_u=e=>{let t=hl(e);if(Object.keys(t).length===0)return null;let n=gl(e),r={};for(let[e,i]of Object.entries(t))r[e]=_l({name:e,version:i},n);return JSON.stringify({imports:r},null,2)},vu=()=>`
686
+ // V4 Hot Reloading Support
687
+ (() => {
688
+ const runJS = (js) => {
689
+ // Remove all existing bundled module scripts
690
+ const existingScripts = document.querySelectorAll('script[type="module"]');
691
+ existingScripts.forEach(script => {
692
+ // Only remove scripts that contain bundled code (not import maps or external scripts)
693
+ if (script.textContent && script.textContent.trim()) {
694
+ script.remove();
695
+ }
696
+ });
697
+
698
+ // Create new script with updated bundled code
699
+ const script = document.createElement('script');
700
+ script.type = 'module';
701
+ script.textContent = js;
702
+ document.body.appendChild(script);
703
+ };
704
+
705
+ const runCSS = (css) => {
706
+ let style = document.getElementById('v4-injected-style');
707
+ if (!style) {
708
+ style = document.createElement('style');
709
+ style.type = 'text/css';
710
+ style.id = 'v4-injected-style';
711
+ document.head.appendChild(style);
712
+ }
713
+ style.textContent = css;
714
+ };
715
+
716
+ // Listen for hot reload messages
717
+ window.addEventListener('message', (message) => {
718
+ switch (message.data.type) {
719
+ case 'runJS':
720
+ try {
721
+ runJS(message.data.js);
722
+ parent.postMessage({ type: 'runDone' }, "*");
723
+ } catch (error) {
724
+ console.error('V4 Hot reload error:', error);
725
+ parent.postMessage({ type: 'runError', error }, "*");
726
+ }
727
+ break;
728
+ case 'runCSS':
729
+ runCSS(message.data.css);
730
+ break;
731
+ case 'ping':
732
+ parent.postMessage({ type: 'pong' }, "*");
733
+ break;
734
+ default:
735
+ break;
736
+ }
737
+ });
738
+ })();
739
+ `,yu=(e,t,n=[],r=!1)=>{if(!e[`index.html`])return``;let i=mu(e[`index.html`]);t.forEach((e,t)=>{if(n.some(e=>e.id===t)){let r=hu(n.find(e=>e.id===t)?.content||``),a=RegExp(`<script\\b[^>]*\\btype=["']module["'][^>]*>\\s*${r}\\s*<\/script>`,`gi`);i=i.replace(a,`<script type="module">\n${e}\n<\/script>`)}else{let n=RegExp(`<script\\b[^>]*\\bsrc=["']${hu(t)}["'][^>]*>[^<]*<\/script>`,`gi`);i=i.replace(n,`<script type="module">\n${e}\n<\/script>`)}});let a=_u(e);if(a&&!/<script\b[^>]*type=["']importmap["'][^>]*>/i.test(i)){let e=`<script type="importmap">\n${a}\n<\/script>\n`;i=gu(i,`</head>`,e)}let o=`<script>${Ul()}<\/script>\n`;if(i=gu(i,`</head>`,o),r){let e=`<script>${vu()}<\/script>\n`;i=gu(i,`</body>`,e)}return/^\s*<!DOCTYPE/i.test(i)?i:`<!DOCTYPE html>${i}`},bu=async({files:e,rollup:t,enableSourcemap:n=!0})=>{let{entryPoints:r,inlineScripts:i}=uu(e[`index.html`]||``);if(r.length===0)return{files:e,bundledJS:``};let a={...e};for(let e of i)a[e.id]=e.content;let o=/* @__PURE__ */ new Map,s=[];for(let e of r){let r=await fu({entryPoint:e,files:a,rollup:t,enableSourcemap:n});o.set(e,r),s.push(r)}let c=yu(a,o,i,!0),l=s.join(`
740
+ `);return{files:{...e,"index.html":c},bundledJS:l}},xu=e=>{let t=`<script>${Ul()}<\/script>`;return e.includes(`</head>`)?e.replace(`</head>`,`${t}\n</head>`):e.includes(`</body>`)?e.replace(`</body>`,`${t}\n</body>`):e+t},Su=e=>{let t={...e};for(let[n,r]of Object.entries(t))n.toLowerCase().endsWith(`.html`)&&(t[n]=Ml(r,e));return t},Cu=async({files:e,rollup:t,enableSourcemap:n=!0,vizCache:r,vizId:i,slugCache:a,getSvelteCompiler:o})=>{try{if(!e&&!r)throw Error(`Either files or vizCache is required`);if(!e&&r&&!i)throw Error(`vizId is required when using vizCache`);if(!e&&r&&i&&(e=ne((await r.get(i))?.files)),!e)throw Error(`Upable to extract viz files`);let s=Xl(e);if(s===`v1`)return{html:xu(m(Su(e))),runtimeVersion:s};if(s===`v2`){if(!t)throw Error(`Rollup is required for v2 runtime`);return{html:m(Su(await lu({files:e,rollup:t,enableSourcemap:n}))),runtimeVersion:s}}if(s===`v3`){if(!t)throw Error(`Rollup is required for v3 runtime`);if(!r&&!i){let t=Yl(e);i=t.id,r=ql({initialContents:[t],handleCacheMiss:async()=>{throw Error(`Cache miss handler not implemented`)}})}if(!r)throw Error(`vizCache is required for v3 runtime`);if(!i)throw Error(`vizId is required for v3 runtime if vizCache is provided`);return await Kl({files:e,rollup:t,vizCache:r,vizId:i,slugCache:a,getSvelteCompiler:o})}if(s===`v4`){if(!t)throw Error(`Rollup is required for v4 runtime`);let r=await bu({files:e,rollup:t,enableSourcemap:n});return{html:m(Su(r.files)),js:r.bundledJS,runtimeVersion:s}}throw Error(`Unsupported runtime version: ${s}`)}catch(e){throw e instanceof Error&&e.message.indexOf(`\0virtual:`)&&(e.message=e.message.replace(iu,``)),e}},wu=`4.68.8`,Tu=44,Eu=59,Du=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,Ou=/* @__PURE__ */ new Uint8Array(64),ku=/* @__PURE__ */ new Uint8Array(128)
741
+ /*
742
+ @license
743
+ Rollup.js v4.68.8
744
+ Sat, 21 Nov 2026 06:53:43 GMT - commit a845aca377e70a43bab0575931f2d403de1c35fa
745
+
746
+ https://github.com/rollup/rollup
747
+
748
+ Released under the MIT License.
749
+ */
750
+ ;for(let e=0;e<64;e++){let t=Du.charCodeAt(e);Ou[e]=t,ku[t]=e}function Au(e){let t=0,n=0,r=0;do r=ku[e.next()],t|=(31&r)<<n,n+=5;while(32&r);return t}function ju(e){return 1&e?-2147483648|-(e>>>1):e>>>1}function Mu(e,t){do{let n=31&t;(t>>>=5)>0&&(n|=32),e.write(Ou[n])}while(t>0)}function Nu(e){return e<0?-e<<1|1:e<<1}function Pu(e,t){return!(e.pos>=t)&&e.peek()!==Tu}var Fu=typeof TextDecoder<`u`?new TextDecoder:typeof Buffer<`u`?{decode:e=>Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}:{decode(e){let t=``;for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}},Iu=class{constructor(){this.pos=0,this.out=``,this.buffer=/* @__PURE__ */ new Uint8Array(16384)}write(e){let{buffer:t}=this;t[this.pos++]=e,this.pos===16384&&(this.out+=Fu.decode(t),this.pos=0)}flush(){let{buffer:e,out:t,pos:n}=this;return n>0?t+Fu.decode(e.subarray(0,n)):t}},Lu=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){let{buffer:t,pos:n}=this,r=t.indexOf(e,n);return r===-1?t.length:r}};function Ru(e){e.sort(zu)}function zu(e,t){return e[0]-t[0]}function Bu(e){let t=new Iu,n=0,r=0,i=0,a=0;for(let o=0;o<e.length;o++){let s=e[o];if(o>0&&t.write(Eu),s.length===0)continue;let c=0;for(let e=0;e<s.length;e++){let o=s[e];e>0&&t.write(Tu),Mu(t,Nu(o[0]-c)),c=o[0],o.length!==1&&(Mu(t,Nu(o[1]-n)),Mu(t,Nu(o[2]-r)),Mu(t,Nu(o[3]-i)),n=o[1],r=o[2],i=o[3],o.length!==4&&(Mu(t,Nu(o[4]-a)),a=o[4]))}}return t.flush()}var Vu=class e{constructor(t){this.bits=t instanceof e?t.bits.slice():[]}add(e){this.bits[e>>5]|=1<<(31&e)}has(e){return!!(this.bits[e>>5]&1<<(31&e))}forEach(e){let t=this.bits;for(let n=0;n<t.length;n++){let r=t[n];for(;r;){let t=r&-r;e(31+(n<<5)-Math.clz32(t)),r^=t}}}},Hu=class e{constructor(e,t,n){this.start=e,this.end=t,this.original=n,this.intro=``,this.outro=``,this.content=n,this.storeName=!1,this.edited=!1,this.replacesUntil=-1,this.replacedFrom=-1,this.previous=null,this.next=null}appendLeft(e){this.outro+=e}appendRight(e){this.intro+=e}clone(){let t=new e(this.start,this.end,this.original);return t.intro=this.intro,t.outro=this.outro,t.content=this.content,t.storeName=this.storeName,t.edited=this.edited,t.replacesUntil=this.replacesUntil,t.replacedFrom=this.replacedFrom,t}contains(e){return this.start<e&&e<this.end}eachNext(e){e(this);let t=this.next;for(;t;)e(t),t=t.next}eachPrevious(e){e(this);let t=this.previous;for(;t;)e(t),t=t.previous}edit(e,t,n){return this.content=e,n||(this.intro=``,this.outro=``),this.storeName=t,this.edited=!0,this}prependLeft(e){this.outro=e+this.outro}prependRight(e){this.intro=e+this.intro}reset(){this.intro=``,this.outro=``,this.replacesUntil=-1,this.replacedFrom=-1,this.edited&&=(this.content=this.original,this.storeName=!1,!1)}split(t){let n=t-this.start,r=this.original.slice(0,n),i=this.original.slice(n);this.original=r;let a=new e(t,this.end,i);return a.outro=this.outro,this.outro=``,this.end=t,this.edited?(a.edit(``,!1,!0),a.replacedFrom=this.replacedFrom):this.content=r,a.next=this.next,a.next&&(a.next.previous=a),a.previous=this,this.next=a,a}toString(){return this.intro+this.content+this.outro}trimEnd(e){if(this.outro=this.outro.replace(e,``),this.outro.length)return!0;let t=this.content.replace(e,``);return t.length?(t!==this.content&&(this.edited?this.edit(t,this.storeName,!0):this.split(this.start+t.length).edit(``,void 0,!0)),!0):(this.edit(``,void 0,!0),this.intro=this.intro.replace(e,``),!!this.intro.length||void 0)}trimStart(e){if(this.intro=this.intro.replace(e,``),this.intro.length)return!0;let t=this.content.replace(e,``);return t.length?(t!==this.content&&(this.edited?this.edit(t,this.storeName,!0):(this.split(this.end-t.length),this.edit(``,void 0,!0))),!0):(this.edit(``,void 0,!0),this.outro=this.outro.replace(e,``),!!this.outro.length||void 0)}},Uu=class extends Error{name=`MagicStringError`;constructor(e,t){super(`[MagicString] ${e}`,t)}};function Wu(){if(typeof globalThis<`u`&&typeof globalThis.btoa==`function`)return e=>globalThis.btoa(unescape(encodeURIComponent(e)));let e=globalThis.Buffer;return e?t=>e.from(t,`utf-8`).toString(`base64`):()=>{throw new Uu("unsupported environment: `btoa` or `Buffer` is required")}}let Gu=Wu();var Ku=class{constructor(e){if(this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=typeof e.mappings==`string`?e.mappings:Bu(e.mappings),e.x_google_ignoreList!==void 0&&(this.x_google_ignoreList=e.x_google_ignoreList),e.debugId!==void 0&&(this.debugId=e.debugId),e.rangeMappings!==void 0){let t=!1;for(let n of e.rangeMappings)if(n.length!==0){t=!0;break}t&&(this.rangeMappings=function(e){if(e.length===0)return``;let t=new Iu;for(let n=0;n<e.length;n++){let r=e[n];n>0&&t.write(Eu);let i=0;for(let e=0;e<r.length;e++){let n=r[e];Mu(t,n-i),i=n}}return t.flush()}(e.rangeMappings))}}toString(){return JSON.stringify(this)}toUrl(){return`data:application/json;charset=utf-8;base64,${Gu(this.toString())}`}};function qu(e){let t=[0];for(let n=e.indexOf(`
751
+ `);n!==-1;n=e.indexOf(`
752
+ `,n+1))t.push(n+1);return function(e){let n=0,r=t.length;for(;n<r;){let i=n+r>>1;e<t[i]?r=i:n=i+1}let i=n-1;return{line:i,column:e-t[i]}}}function Ju(e,t){let n=e.split(/[/\\]/),r=t.split(/[/\\]/);for(n.pop();n[0]===r[0];)n.shift(),r.shift();if(n.length){let e=n.length;for(;e--;)n[e]=`..`}return n.concat(r).join(`/`)}let Yu=Object.prototype.toString;function Xu(e){return Yu.call(e)===`[object Object]`}let Zu=(()=>{let e=/* @__PURE__ */ new Uint8Array(64);for(let t=0;t<64;t++)e[t]=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`.charCodeAt(t);return e})(),Qu=/* @__PURE__ */ new Uint8Array(16384);function $u(e,t){t=t<0?-t<<1|1:t<<1;do{let n=31&t;(t>>>=5)>0&&(n|=32),Qu[e++]=Zu[n]}while(t>0);return e}let ed=new TextDecoder;var td=class{constructor(){this.out=``,this.pos=0,this.lines=[],this.buffered=0,this.needsComma=!1,this.prevGenColumn=0,this.prevSourceIndex=0,this.prevSourceLine=0,this.prevSourceColumn=0,this.prevNameIndex=0}endLine(e){this.lines.push(e),this.buffered+=e.length+1,this.buffered>=4096&&this.drain(null)}segments(e){this.drain(e)}finish(e){return this.drain(e),this.flush(),this.out}drain(e){let t=this.lines,n=t.length;for(let r=0;r<=n;r++){let i=r<n?t[r]:e;if(i===null)break;for(let e=0;e<i.length;e++){this.pos>16348&&this.flush();let t=i[e];this.needsComma&&(Qu[this.pos++]=44),this.needsComma=!0,this.pos=$u(this.pos,t[0]-this.prevGenColumn),this.prevGenColumn=t[0],this.pos=$u(this.pos,t[1]-this.prevSourceIndex),this.prevSourceIndex=t[1],this.pos=$u(this.pos,t[2]-this.prevSourceLine),this.prevSourceLine=t[2],this.pos=$u(this.pos,t[3]-this.prevSourceColumn),this.prevSourceColumn=t[3],t.length===5&&(this.pos=$u(this.pos,t[4]-this.prevNameIndex),this.prevNameIndex=t[4])}r<n&&(this.pos>16348&&this.flush(),Qu[this.pos++]=59,this.needsComma=!1,this.prevGenColumn=0)}t.length=0,this.buffered=0,this.flush()}flush(){this.out+=ed.decode(Qu.subarray(0,this.pos)),this.pos=0}};function nd(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57||e===95}var rd=class{constructor(e,t=null){this.hires=e,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.rawRangeMappingsIndices=[],this.rawRangeMappings=e===`experimental-range`?[this.rawRangeMappingsIndices]:void 0,this.encoder=t}nextLine(){this.encoder===null?(this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[]):(this.encoder.endLine(this.rawSegments),this.rawSegments=[],this.generatedCodeLine+=1),this.generatedCodeColumn=0,this.rawRangeMappings&&(this.rawRangeMappings[this.generatedCodeLine]=this.rawRangeMappingsIndices=[])}addMagicString(e,t,n){let{original:r}=e,i=qu(r);e.intro&&this.advance(e.intro),e.firstChunk.eachNext(a=>{if(a.intro.length&&this.advance(a.intro),t===-1)this.advance(a.content);else if(a.edited){let e=a.storeName?n.get(r.slice(a.start,a.replacesUntil)):void 0;this.addEdit(t,a.content,i(a.start),e??-1)}else this.addUneditedChunk(t,a,r,i(a.start),e.sourcemapLocations);a.outro.length&&this.advance(a.outro)}),e.outro&&this.advance(e.outro)}addEdit(e,t,n,r){if(t.length){let i=t.length-1,a=t.indexOf(`
753
+ `,0),o=-1;for(;a>=0&&i>a;){let i=[this.generatedCodeColumn,e,n.line,n.column];r>=0&&i.push(r),this.rawSegments.push(i),this.nextLine(),o=a,a=t.indexOf(`
754
+ `,a+1)}let s=[this.generatedCodeColumn,e,n.line,n.column];r>=0&&s.push(r),this.rawSegments.push(s),this.advance(t.slice(o+1))}}addUneditedChunk(e,t,n,r,i){let a=t.end,o=t.start;if(this.hires){let i=this.hires===`boundary`,s=this.hires===`experimental-range`,c=s?null:this.encoder,l=!1;for(;o<a;){c!==null&&this.rawSegments.length>=4096&&(c.segments(this.rawSegments),this.rawSegments.length=0),s&&o+1>=a&&this.rawSegments.push([this.generatedCodeColumn,e,r.line,r.column]);let u=n.charCodeAt(o);u===10?(r.line+=1,r.column=0,this.nextLine(),l=!1):(i?nd(u)?l||=(this.rawSegments.push([this.generatedCodeColumn,e,r.line,r.column]),!0):(this.rawSegments.push([this.generatedCodeColumn,e,r.line,r.column]),l=!1):s?o===t.start&&(this.rawRangeMappingsIndices.push(this.rawSegments.length),this.rawSegments.push([this.generatedCodeColumn,e,r.line,r.column])):this.rawSegments.push([this.generatedCodeColumn,e,r.line,r.column]),r.column+=1,this.generatedCodeColumn+=1),o+=1}}else{let t=i.bits;for(;o<a;){let i=n.indexOf(`
755
+ `,o);if((i===-1||i>a)&&(i=a),i>o){this.rawSegments.push([this.generatedCodeColumn,e,r.line,r.column]);for(let n=o+1>>5,a=i-1>>5;n<=a;n++){let a=t[n];if(!a)continue;let s=n<<5;for(;a;){let t=a&-a,n=s+31-Math.clz32(t);if(n>o&&n<i){let t=n-o;this.rawSegments.push([this.generatedCodeColumn+t,e,r.line,r.column+t])}a^=t}}r.column+=i-o,this.generatedCodeColumn+=i-o}if(i===a)break;r.line+=1,r.column=0,this.nextLine(),o=i+1}}}advance(e){if(!e)return;let t=e.lastIndexOf(`
756
+ `);for(let t=e.indexOf(`
757
+ `);t!==-1;t=e.indexOf(`
758
+ `,t+1))this.nextLine();this.generatedCodeColumn+=e.length-t-1}};let id={insertLeft:!1,insertRight:!1,storeName:!1};function ad(e,t,n,r,i,a){if(!e.includes(`$`))return e;let o=``,s=0;for(;s<e.length;){let c=e.indexOf(`$`,s);if(c===-1){o+=e.slice(s);break}o+=e.slice(s,c);let l=e[c+1],u=`$`,d=1;if(l===`$`)d=2;else if(l===`&`)u=t,d=2;else if(l==="`")u=r.slice(0,n),d=2;else if(l===`'`)u=r.slice(n+t.length),d=2;else if(l===`<`&&a!==void 0){let t=e.indexOf(`>`,c+2);t!==-1&&(u=a[e.slice(c+2,t)]??``,d=t+1-c)}else if(l>=`0`&&l<=`9`){let t=e[c+2],n=t>=`0`&&t<=`9`?Number(l+t):NaN,r=Number(l);n>=1&&n<=i.length?(u=i[n-1]??``,d=3):r>=1&&r<=i.length&&(u=i[r-1]??``,d=2)}o+=u,s=c+d}return o}var od=class e{constructor(e,t={}){let n=new Hu(0,e.length,e);Object.defineProperties(this,{original:{writable:!0,value:e},outro:{writable:!0,value:``},intro:{writable:!0,value:``},firstChunk:{writable:!0,value:n},lastChunk:{writable:!0,value:n},lastSearchedChunk:{writable:!0,value:n},byStart:{writable:!0,value:/* @__PURE__ */ new Map([[0,n]])},byEnd:{writable:!0,value:/* @__PURE__ */ new Map([[e.length,n]])},filename:{writable:!0,value:t.filename},indentExclusionRanges:{writable:!0,value:t.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new Vu},storedNames:{writable:!0,value:/* @__PURE__ */ new Set},indentStr:{writable:!0,value:void 0},ignoreList:{writable:!0,value:t.ignoreList},offset:{writable:!0,value:t.offset||0},hasMovedChunks:{writable:!0,value:!1}})}addSourcemapLocation(e){this.sourcemapLocations.add(e)}append(e){if(typeof e!=`string`)throw new Uu(`content must be a string, got `+typeof e);return this.outro+=e,this}appendLeft(e,t){if((e=this._resolveIndex(e))<0||e>this.original.length)throw new Uu(`index ${e} is out of bounds`);if(typeof t!=`string`)throw new Uu(`content must be a string, got `+typeof t);this._split(e);let n=this.byEnd.get(e);return n?n.appendLeft(t):this.intro+=t,this}appendRight(e,t){if((e=this._resolveIndex(e))<0||e>this.original.length)throw new Uu(`index ${e} is out of bounds`);if(typeof t!=`string`)throw new Uu(`content must be a string, got `+typeof t);this._split(e);let n=this.byStart.get(e);return n?n.appendRight(t):this.outro+=t,this}clone(){let t=new e(this.original,{filename:this.filename,ignoreList:this.ignoreList,offset:this.offset}),n=this.firstChunk,r=t.firstChunk=t.lastSearchedChunk=n.clone();for(;n;){t.byStart.set(r.start,r),t.byEnd.set(r.end,r);let e=n.next,i=e&&e.clone();i&&(r.next=i,i.previous=r,r=i),n=e}return t.lastChunk=r,this.indentExclusionRanges&&(t.indentExclusionRanges=this.indentExclusionRanges.slice()),t.sourcemapLocations=new Vu(this.sourcemapLocations),t.storedNames=new Set(this.storedNames),t.intro=this.intro,t.outro=this.outro,t.hasMovedChunks=this.hasMovedChunks,t}generateDecodedMap(e){let t=new rd((e||={}).hires),n=this._generateMappings(t);return{...this._mapProperties(e,n),mappings:t.raw,rangeMappings:t.rawRangeMappings}}generateMap(e){e||={};let t=new td,n=new rd(e.hires,t),r=this._generateMappings(n);return new Ku({...this._mapProperties(e,r),mappings:t.finish(n.rawSegments),rangeMappings:n.rawRangeMappings})}_generateMappings(e){let t=[...this.storedNames];return e.addMagicString(this,0,new Map(t.map((e,t)=>[e,t]))),t}_mapProperties(e,t){return{file:e.file?e.file.split(/[/\\]/).pop():void 0,sources:[e.source?Ju(e.file||``,e.source):e.file||``],sourcesContent:e.includeContent?[this.original]:void 0,names:t,x_google_ignoreList:this.ignoreList?[0]:void 0}}_ensureindentStr(){this.indentStr===void 0&&(this.indentStr=function(e){let t=e.split(`
759
+ `),n=t.filter(e=>/^\t+/.test(e)),r=t.filter(e=>/^ {2,}/.test(e));if(n.length===0&&r.length===0)return null;if(n.length>=r.length)return` `;let i=r.reduce((e,t)=>{let n=/^ +/.exec(t)[0].length;return Math.min(n,e)},1/0);return` `.repeat(i)}(this.original))}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),this.indentStr??` `}indent(e,t){let n=/^[^\r\n]/gm;if(Xu(e)&&(t=e,e=void 0),e===void 0&&(this._ensureindentStr(),e=this.indentStr||` `),e===``)return this;let r=e;t||={};let i=new Vu;t.exclude&&(typeof t.exclude[0]==`number`?[t.exclude]:t.exclude).forEach(e=>{for(let t=e[0];t<e[1];t+=1)i.add(t)});let a=!1!==t.indentStart,o=e=>{if(e===``)return e;let t=e.replace(n,(e,t)=>t>0||a?`${r}${e}`:e);return a=e[e.length-1]===`
760
+ `,t};this.intro=o(this.intro);let s=0,c=this.firstChunk,l=e=>{a=!1,e===c.start?c.appendRight(r):(this._splitChunk(c,e),c=c.next,c.prependRight(r))};for(;c;){let e=c.end;if(i.has(c.start)||(c.intro=o(c.intro)),c.edited)i.has(c.start)?c.content&&(a=c.content[c.content.length-1]===`
761
+ `):c.content=o(c.content);else if(t.exclude)for(s=c.start;s<e;){if(!i.has(s)){let e=this.original.charCodeAt(s);e===10?a=!0:e!==13&&a&&l(s)}s+=1}else for(s=c.start;s<e;){if(!a){let t=this.original.indexOf(`
762
+ `,s);if(t===-1||t>=e)break;a=!0,s=t+1;continue}let t=this.original.charCodeAt(s);t!==10&&t!==13&&l(s),s+=1}i.has(c.end-1)||(c.outro=o(c.outro)),s=c.end,c=c.next}return this.outro=o(this.outro),this}insert(){throw new Uu(`insert() is deprecated, use appendLeft() or prependRight()`)}insertLeft(e,t){return id.insertLeft||=(console.warn(`magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead`),!0),this.appendLeft(e,t)}insertRight(e,t){return id.insertRight||=(console.warn(`magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead`),!0),this.prependRight(e,t)}move(e,t,n,r=`right`){if(e=this._resolveIndex(e),t=this._resolveIndex(t),n=this._resolveIndex(n),e===t)return this;if(e<0||t>this.original.length||n<0||n>this.original.length)throw new Uu(`range ${e}–${t} is out of bounds`);if(e>t)throw new Uu(`end must be greater than start (start: ${e}, end: ${t})`);if(n>=e&&n<=t)throw new Uu(`cannot move a selection inside itself`);this._split(e),this._split(t),this._split(n);let i=this.byStart.get(e),a=this.byEnd.get(t);if(!i||!a)throw new Uu(`range ${e}–${t} is out of bounds`);if(this.hasMovedChunks){let n=i;for(;n!==a;)if(n=n.next,!n||n.start<e||n.end>t)throw new Uu(`cannot move ${e} to ${t} because an earlier move split that range`)}let o=i.previous,s=a.next,c,l;if(r===`left`){if(c=this.byEnd.get(n)??null,c){if(c.next===i)return this;l=c.next}else{if(i===this.firstChunk)return this;l=this.firstChunk}}else if(l=this.byStart.get(n)??null,l){if(l.previous===a)return this;c=l.previous}else{if(a===this.lastChunk)return this;c=this.lastChunk}return o&&(o.next=s),s&&(s.previous=o),c&&(c.next=i),l&&(l.previous=a),o||(this.firstChunk=s),s||(this.lastChunk=o,this.lastChunk.next=null),i.previous=c,a.next=l||null,c||(this.firstChunk=i),l||(this.lastChunk=a),this.hasMovedChunks=!0,this}overwrite(e,t,n,r){if(!0===r)return id.storeName||=(console.warn(`The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string`),!0),this.update(e,t,n,{storeName:!0,overwrite:!0});let i=typeof r==`object`&&r?r:{};return this.update(e,t,n,{...i,overwrite:!i.contentOnly})}update(e,t,n,r){if(e=this._resolveIndex(e),t=this._resolveIndex(t),typeof n!=`string`)throw new Uu(`content must be a string, got `+typeof n);if(e<0)throw new Uu(`start ${e} is out of bounds`);if(t>this.original.length)throw new Uu(`end ${t} is out of bounds`);if(e===t)throw new Uu(`cannot overwrite a zero-length range at ${e}, use appendLeft() or prependRight()`);if(e>t)throw new Uu(`end must be greater than start (start: ${e}, end: ${t})`);this._split(e),this._split(t),!0===r&&(id.storeName||=(console.warn(`The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string`),!0),r={storeName:!0});let i=typeof r==`object`&&r?r:{},a=i.storeName||!1,o=i.overwrite||!1;a&&this.storedNames.add(this.original.slice(e,t));let s=this.byStart.get(e);for(let e=s;e.end<t;){let t=e.next;if(t===null||t!==this.byStart.get(e.end))throw new Uu(`cannot overwrite across a split point`);e=t}for(let n=s.next;n!==null&&n.start<t;n=n.next)n.edit(``,!1,!o),n.replacesUntil=-1,n.replacedFrom=e;return s.edit(n,a,!o),s.replacesUntil=t,s.replacedFrom=-1,this}prepend(e){if(typeof e!=`string`)throw new Uu(`content must be a string, got `+typeof e);return this.intro=e+this.intro,this}prependLeft(e,t){if((e=this._resolveIndex(e))<0||e>this.original.length)throw new Uu(`index ${e} is out of bounds`);if(typeof t!=`string`)throw new Uu(`content must be a string, got `+typeof t);this._split(e);let n=this.byEnd.get(e);return n?n.prependLeft(t):this.intro=t+this.intro,this}prependRight(e,t){if((e=this._resolveIndex(e))<0||e>this.original.length)throw new Uu(`index ${e} is out of bounds`);if(typeof t!=`string`)throw new Uu(`content must be a string, got `+typeof t);this._split(e);let n=this.byStart.get(e);return n?n.prependRight(t):this.outro=t+this.outro,this}remove(e,t){if((e=this._resolveIndex(e))===(t=this._resolveIndex(t)))return this;if(e<0||t>this.original.length)throw new Uu(`range ${e}–${t} is out of bounds`);if(e>t)throw new Uu(`end must be greater than start (start: ${e}, end: ${t})`);this._split(e),this._split(t);let n=this.byStart.get(e);for(;n;)n.start>e&&(n.intro=``),n.end<t&&(n.outro=``),n.edit(``,!1,!0),n.replacesUntil=-1,n.replacedFrom=-1,n=t>n.end?this.byStart.get(n.end):void 0;return this}reset(e,t){if((e=this._resolveIndex(e))===(t=this._resolveIndex(t)))return this;if(e<0||t>this.original.length)throw new Uu(`range ${e}–${t} is out of bounds`);if(e>t)throw new Uu(`end must be greater than start (start: ${e}, end: ${t})`);this._split(e),this._split(t);let n=this.byStart.get(e);for(;n;)n.reset(),n=t>n.end?this.byStart.get(n.end):void 0;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let e=this.lastChunk;for(;e;){if(e.outro.length)return e.outro[e.outro.length-1];if(e.content.length)return e.content[e.content.length-1];if(e.intro.length)return e.intro[e.intro.length-1];e=e.previous}return this.intro.length?this.intro[this.intro.length-1]:``}lastLine(){let e=this.outro.lastIndexOf(`
763
+ `);if(e!==-1)return this.outro.slice(e+1);let t=this.outro,n=this.lastChunk;for(;n;){if(n.outro.length>0){if(e=n.outro.lastIndexOf(`
764
+ `),e!==-1)return n.outro.slice(e+1)+t;t=n.outro+t}if(n.content.length>0){if(e=n.content.lastIndexOf(`
765
+ `),e!==-1)return n.content.slice(e+1)+t;t=n.content+t}if(n.intro.length>0){if(e=n.intro.lastIndexOf(`
766
+ `),e!==-1)return n.intro.slice(e+1)+t;t=n.intro+t}n=n.previous}return e=this.intro.lastIndexOf(`
767
+ `),e===-1?this.intro+t:this.intro.slice(e+1)+t}slice(e=0,t=this.original.length-this.offset){e=this._resolveIndex(e),t=this._resolveIndex(t);let n,r=``;if(this.hasMovedChunks)for(n=this.firstChunk;n&&(n.start>e||n.end<=e);){if(n.start<t&&n.end>=t||t===0&&n.start===0)return r;n=n.next}else{if(e>=t)return r;n=this._chunkAt(e)}if(n&&n.edited&&n.start!==e)throw new Uu(`cannot use edited character ${e} as slice start anchor`);let i=n;for(;n&&(t!==0||n.start!==0);){!n.intro||i===n&&n.start!==e||(r+=n.intro);let a=n.start<t&&n.end>=t;if(a&&n.edited&&n.end!==t)throw new Uu(`cannot use edited character ${t} as slice end anchor`);let o=i===n?e-n.start:0,s=a?n.content.length+t-n.end:n.content.length;if(r+=n.content.slice(o,s),!n.outro||a&&n.end!==t||(r+=n.outro),a)break;n=n.next}return r}snip(e,t){let n=this.clone();return n.remove(-n.offset,e),n.remove(t,n.original.length-n.offset),n}_resolveIndex(e){let t=e+this.offset;if(!Number.isInteger(t))throw new Uu(`index must be an integer, got ${e}`);return t<0&&this.original.length!==0?Math.max(0,t+this.original.length):t}_chunkAt(e){let t=this.byStart.get(e);if(t)return t;t=this.lastSearchedChunk;let n=e>=t.end;for(;t&&!t.contains(e);)t=n?this.byStart.get(t.end):this.byEnd.get(t.start);return t&&(this.lastSearchedChunk=t),t}_split(e){if(this.byStart.get(e)||this.byEnd.get(e))return;let t=this.lastSearchedChunk,n=t,r=e>t.end;for(;t;){if(t.contains(e))return this._splitChunk(t,e);if(t=r?this.byStart.get(t.end):this.byEnd.get(t.start),t===n)return;n=t}}_splitChunk(e,t){if(e.edited&&e.content.length){let n=qu(this.original)(t);throw new Uu(`cannot split a chunk that has already been edited (${n.line}:${n.column} – "${e.original}")`)}let n=e.split(t);return this.byEnd.set(t,e),this.byStart.set(t,n),this.byEnd.set(n.end,n),e===this.lastChunk&&(this.lastChunk=n),this.lastSearchedChunk=e,!0}toString(){let e=this.intro,t=this.firstChunk;for(;t;)e+=t.toString(),t=t.next;return e+this.outro}isEmpty(){if(this.intro.length&&this.intro.trim())return!1;let e=this.firstChunk;for(;e;){if(e.intro.length&&e.intro.trim()||e.content.length&&e.content.trim()||e.outro.length&&e.outro.trim())return!1;e=e.next}return!this.outro.length||!this.outro.trim()}length(){let e=this.firstChunk,t=0;for(;e;)t+=e.intro.length+e.content.length+e.outro.length,e=e.next;return t}trimLines(){return this.trim(`[\\r\\n]`)}trim(e){return this.trimStart(e).trimEnd(e)}trimEndAborted(e){let t=RegExp(`${e||`\\s`}+$`);if(this.outro=this.outro.replace(t,``),this.outro.length)return!0;let n=this.lastChunk;do{let e=n.end,r=n.trimEnd(t);if(n.end!==e){let e=n.next;this.lastChunk===n&&(this.lastChunk=e),this.byEnd.set(n.end,n),this.byStart.set(e.start,e),this.byEnd.set(e.end,e)}if(r)return!0;n=n.previous}while(n);return this.intro=this.intro.replace(t,``),this.intro.length>0}trimEnd(e){return this.trimEndAborted(e),this}trimStartAborted(e){let t=RegExp(`^${e||`\\s`}+`);if(this.intro=this.intro.replace(t,``),this.intro.length)return!0;let n=this.firstChunk;do{let e=n.end,r=n.trimStart(t);if(n.end!==e){let e=n.next;n===this.lastChunk&&(this.lastChunk=e),this.byEnd.set(n.end,n),this.byStart.set(e.start,e),this.byEnd.set(e.end,e)}if(r)return!0;n=n.next}while(n);return this.outro=this.outro.replace(t,``),this.outro.length>0}trimStart(e){return this.trimStartAborted(e),this}hasChanged(){if(this.intro||this.outro)return!0;let e=0,t=this.firstChunk;for(;t;){if(t.intro||t.outro)return!0;if(t.edited||t.start!==e){if(!this.original.startsWith(t.content,e))return!0;e+=t.content.length}else e=t.end;t=t.next}return e!==this.original.length}_hasRemovedContent(e,t){let n=this.byStart.get(e);if(n&&e===t){let t=this.byEnd.get(e);return!!t&&t.content===``&&n.content===``}let r=this._chunkAt(e);for(;r&&r.start<t;){if(r.content===``&&(r.replacedFrom<e||this.byStart.get(r.replacedFrom).replacesUntil<r.end))return!0;r=this.byStart.get(r.end)}return!1}_replaceRegexp(e,t){function n(e,n,r){return typeof t==`string`?ad(t,e[0],n,r,e.slice(1),e.groups):e.groups===void 0?t(e[0],...e.slice(1),n,r):t(e[0],...e.slice(1),n,r,e.groups)}let r=e=>{if(e.index==null||this._hasRemovedContent(e.index,e.index+e[0].length))return!1;let t=n(e,e.index,this.original);return t===e[0]||(e[0].length===0?this.appendRight(e.index-this.offset,t):this.overwrite(e.index-this.offset,e.index+e[0].length-this.offset,t)),!0};if(e.global){e.lastIndex=0;for(let t of this.original.matchAll(e))r(t)}else{let t=this.original.match(e);if(t&&!r(t)){let t=new RegExp(e.source,`${e.flags}g`);for(let e of this.original.matchAll(t))if(r(e))break}}return this}_replaceString(e,t){let{original:n}=this,r=n.indexOf(e);for(;r!==-1;){if(!this._hasRemovedContent(r,r+e.length)){e!==(t=typeof t==`function`?t(e,r,n):ad(t,e,r,n,[],void 0))&&(e.length===0?this.appendRight(r-this.offset,t):this.overwrite(r-this.offset,r+e.length-this.offset,t));break}r=n.indexOf(e,r+e.length)}return this}replace(e,t){return typeof e==`string`?this._replaceString(e,t):this._replaceRegexp(e,t)}_replaceAllString(e,t){let{original:n}=this,r=e.length;if(r===0){for(let e=0;e<=n.length;e+=1){if(this._hasRemovedContent(e,e))continue;let r=typeof t==`function`?t(``,e,n):ad(t,``,e,n,[],void 0);r!==``&&this.appendRight(e-this.offset,r)}return this}for(let i=n.indexOf(e);i!==-1;i=n.indexOf(e,i+r)){if(this._hasRemovedContent(i,i+r))continue;let e=n.slice(i,i+r),a=typeof t==`function`?t(e,i,n):ad(t,e,i,n,[],void 0);e!==a&&this.overwrite(i-this.offset,i+r-this.offset,a)}return this}replaceAll(e,t){if(typeof e==`string`)return this._replaceAllString(e,t);if(!e.global)throw new Uu(`replaceAll() requires a global RegExp`);return this._replaceRegexp(e,t)}};let sd=Object.prototype.hasOwnProperty;var cd=class e{constructor(e={}){this.intro=e.intro||``,this.separator=e.separator===void 0?`
768
+ `:e.separator,this.sources=[],this.uniqueSources=[],this.uniqueSourceIndexByFilename=/* @__PURE__ */ new Map}addSource(e){if(e instanceof od)return this.addSource({content:e,filename:e.filename,separator:this.separator});if(!Xu(e)||!e.content)throw new Uu("addSource() requires a `content` property that is a MagicString");let t=e.content,n={content:t,filename:sd.call(e,`filename`)?e.filename:t.filename,ignoreList:sd.call(e,`ignoreList`)?e.ignoreList:t.ignoreList,indentExclusionRanges:sd.call(e,`indentExclusionRanges`)?e.indentExclusionRanges:t.indentExclusionRanges,separator:e.separator??this.separator};if(n.filename){let e=this.uniqueSourceIndexByFilename.get(n.filename);if(e===void 0)this.uniqueSourceIndexByFilename.set(n.filename,this.uniqueSources.length),this.uniqueSources.push({filename:n.filename,content:t.original});else if(t.original!==this.uniqueSources[e].content)throw new Uu(`duplicate filename "${n.filename}" with different content, use unique filenames`)}return this.sources.push(n),this}append(e,t){return this.addSource({content:new od(e),separator:t&&t.separator||``}),this}clone(){let t=new e({intro:this.intro,separator:this.separator});return this.sources.forEach(e=>{t.addSource({filename:e.filename,content:e.content.clone(),ignoreList:e.ignoreList,indentExclusionRanges:e.indentExclusionRanges,separator:e.separator})}),t}toMagicString(){let e=new od(this.sources.map(e=>e.content.original).join(``)),t=0,n=this.intro,r=null,i=null,a=/* @__PURE__ */ new Map,o=/* @__PURE__ */ new Map,s=!1;for(let[c,l]of this.sources.entries()){let u=l.content,d=c>0?l.separator:``;if(u.original.length===0){n+=d+u.toString();continue}n+=d+u.intro;let f=null,p=null,m=u.firstChunk;for(;m;){let e=m.clone();e.start+=t,e.end+=t,e.replacesUntil!==-1&&(e.replacesUntil+=t),e.replacedFrom!==-1&&(e.replacedFrom+=t),e.previous=p,e.next=null,p&&(p.next=e),a.set(e.start,e),o.set(e.end,e),f??=e,p=e,m=m.next}let h=p;f.intro=n+f.intro,n=``,h.outro+=u.outro,i?(i.next=f,f.previous=i):r=f,i=h,u.sourcemapLocations.forEach(n=>{n<u.original.length&&e.sourcemapLocations.add(n+t)}),u.storedNames.forEach(t=>e.storedNames.add(t)),u.hasMovedChunks&&(s=!0),t+=u.original.length}return r&&i?(n&&(i.outro+=n),e.firstChunk=r,e.lastChunk=i,e.lastSearchedChunk=r,e.byStart=a,e.byEnd=o,e.hasMovedChunks=s,e):(e.intro=n,e)}generateDecodedMap(e={}){let t=new rd(e.hires),{names:n,x_google_ignoreList:r}=this._generateMappings(t);return{...this._mapProperties(e,n,r),mappings:t.raw,rangeMappings:t.rawRangeMappings}}generateMap(e={}){let t=new td,n=new rd(e.hires,t),{names:r,x_google_ignoreList:i}=this._generateMappings(n);return new Ku({...this._mapProperties(e,r,i),mappings:t.finish(n.rawSegments),rangeMappings:n.rawRangeMappings})}_generateMappings(e){let t,n=/* @__PURE__ */ new Set;this.sources.forEach(e=>e.content.storedNames.forEach(e=>n.add(e)));let r=[...n],i=new Map(r.map((e,t)=>[e,t]));return this.intro&&e.advance(this.intro),this.sources.forEach((n,r)=>{r>0&&e.advance(n.separator);let a=n.filename?this.uniqueSourceIndexByFilename.get(n.filename)??-1:-1;e.addMagicString(n.content,a,i),n.ignoreList&&a!==-1&&(t===void 0&&(t=[]),t.push(a))}),{names:r,x_google_ignoreList:t}}_mapProperties(e,t,n){return{file:e.file?e.file.split(/[/\\]/).pop():void 0,sources:this.uniqueSources.map(t=>e.file?Ju(e.file,t.filename):t.filename),sourcesContent:this.uniqueSources.map(t=>(typeof e.includeContent==`function`?e.includeContent(t):e.includeContent)?t.content:null),names:t,x_google_ignoreList:n}}getIndentString(){let e=/* @__PURE__ */ new Map;return this.sources.forEach(t=>{let n=t.content._getRawIndentString();n!=null&&e.set(n,(e.get(n)??0)+1)}),[...e.entries()].sort(([,e],[,t])=>t-e)[0]?.[0]??` `}indent(e){if(arguments.length||(e=this.getIndentString()),e===``)return this;let t=!this.intro||this.intro.slice(-1)===`
769
+ `;return this.sources.forEach((n,r)=>{let i=t||r>0&&/\r?\n$/.test(n.separator);n.content.indent(e,{exclude:n.indentExclusionRanges,indentStart:i}),t=n.content.lastChar()===`
770
+ `}),this.intro&&=e+this.intro.replace(/^[^\r\n]/gm,(t,n)=>n>0?e+t:t),this}prepend(e){return this.intro=e+this.intro,this}toString(){let e=this.sources.map((e,t)=>(t>0?e.separator:``)+e.content.toString()).join(``);return this.intro+e}isEmpty(){return(!this.intro.length||!this.intro.trim())&&!this.sources.some((e,t)=>t>0&&e.separator.trim()!==``||!e.content.isEmpty())}length(){return this.sources.reduce((e,t,n)=>e+(n>0?t.separator.length:0)+t.content.length()+t.content.intro.length+t.content.outro.length,this.intro.length)}trimLines(){return this.trim(`[\\r\\n]`)}trim(e){return this.trimStart(e).trimEnd(e)}trimStart(e){let t=RegExp(`^${e||`\\s`}+`);if(this.intro=this.intro.replace(t,``),!this.intro)for(let n=0;n<this.sources.length;n+=1){let r=this.sources[n];if(n>0&&(r.separator=r.separator.replace(t,``),r.separator)||r.content.trimStartAborted(e))break}return this}trimEnd(e){let t=RegExp(`${e||`\\s`}+$`);for(let n=this.sources.length-1;n>=0;--n){let r=this.sources[n];if(r.content.trimEndAborted(e)||n>0&&(r.separator=r.separator.replace(t,``),r.separator))return this}return this.intro=this.intro.replace(t,``),this}};let ld=/^(?:\/|(?:[A-Za-z]:)?[/\\|])/,ud=/^\.?\.\//,dd=/\\/g,fd=/[/\\]/,pd=/^[A-Za-z]:$/,md=/[/\\]+$/;function hd(e){return ld.test(e)}function gd(e){return ud.test(e)}function _d(e){return e.replace(dd,`/`)}function vd(e){return e.replace(md,``).split(fd).pop()||``}function yd(e){let t=e.replace(md,``),n=/[/\\][^/\\]*$/.exec(t);return n?t.slice(0,-n[0].length)||`/`:t===``?e?`/`:`.`:e!==t&&pd.test(t)?t:`.`}function bd(e){let t=vd(e);if(t===`.`||t===`..`)return``;let n=t.lastIndexOf(`.`);return n>0?t.slice(n):``}function xd(e,t){let n=[],r=+!!pd.test(e[0]);for(let i of e)i===`..`?n.length>r&&n[n.length-1]!==`..`?n.pop():t||r!==0||n.push(`..`):i!==`.`&&i!==``&&n.push(i);return n}function Sd(e,t){let n=xd(e.split(fd),hd(e)),r=xd(t.split(fd),hd(t));for(;n[0]&&r[0]&&n[0]===r[0];)n.shift(),r.shift();for(;n.pop();)r.unshift(`..`);return r.join(`/`)}function Cd(...e){let t=[],n=!1;for(let r of e)hd(r)?(t=r.split(fd),n=!0):t.push(...r.split(fd));let r=xd(t,n).join(`/`);return n?/^[A-Za-z]:/.test(r)?r:`/`+r:r||`/`}function wd(e){let t=``;do{let n=e%64;e=e/64|0,t=`0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_$`[n]+t}while(e!==0);return t}let Td=/* @__PURE__ */ new Set(/* @__PURE__ */ `await.break.case.catch.class.const.continue.debugger.default.delete.do.else.enum.eval.export.extends.false.finally.for.function.if.implements.import.in.instanceof.interface.let.NaN.new.null.package.private.protected.public.return.static.super.switch.this.throw.true.try.typeof.undefined.var.void.while.with.yield`.split(`.`)),Ed=e=>e[0]===`*`?`*${e}`:e,Dd=e=>e.startsWith(`**`)?e.slice(1):e,Od=e=>e[0]===`*`&&e[1]!==`*`,kd=e=>e[0]===`*`||e[0]===`\0`?`*\0${e}`:`*${e}`,Ad=e=>e.slice(e[1]===`\0`?2:1);function jd(e,t,n,r){t.remove(n,r),e.removeAnnotations(t)}let Md={isNoStatement:!0};function Nd(e,t,n=0){let r,i;for(r=e.indexOf(t,n);;){if((n=e.indexOf(`/`,n))===-1||n>=r)return r;i=e.charCodeAt(++n),++n,(n=i===47?e.indexOf(`
771
+ `,n)+1:e.indexOf(`*/`,n)+2)>r&&(r=e.indexOf(t,n))}}let Pd=/\S/g;function Fd(e,t){return Pd.lastIndex=t,Pd.exec(e).index}let Id=/\s/;function Ld(e,t){return t>0&&e.charCodeAt(t-1)===13?t-1:t}function Rd(e){let t,n,r=0;for(t=e.indexOf(`
772
+ `,r);;){if(r=e.indexOf(`/`,r),r===-1||r>t)return[Ld(e,t),t+1];if(n=e.charCodeAt(r+1),n===47)return[r,t+1];r=e.indexOf(`*/`,r+2)+2,r>t&&(t=e.indexOf(`
773
+ `,r))}}function zd(e,t,n,r,i){let a,o,s,c,l=e[0],u=!l.included||l.needsBoundaries;u&&(c=n+Rd(t.original.slice(n,l.start))[1]);for(let n=1;n<=e.length;n++)a=l,o=c,s=u,l=e[n],u=l!==void 0&&(!l.included||l.needsBoundaries),s||u?(c=a.end+Rd(t.original.slice(a.end,l===void 0?r:l.start))[1],a.included?s?a.render(t,i,{end:c,start:o}):a.render(t,i):jd(a,t,o,c)):a.render(t,i)}function Bd(e,t,n,r){let i=[],a,o,s,c,l=n-1;for(let r of e){for(a!==void 0&&(l=a.end+Nd(t.original.slice(a.end,r.start),`,`)),o=s=l+1+Rd(t.original.slice(l+1,r.start))[1];c=t.original.charCodeAt(o),c===32||c===9||c===10||c===13;)o++;a!==void 0&&i.push({contentEnd:s,end:o,node:a,separator:l,start:n}),a=r,n=o}return i.push({contentEnd:r,end:r,node:a,separator:null,start:n}),i}function Vd(e,t,n){for(;;){let[r,i]=Rd(e.original.slice(t,n));if(r===-1)break;e.remove(t+r,t+=i)}}let Hd=`ArrowFunctionExpression`,Ud=`BlockStatement`,Wd=`CallExpression`,Gd=`ExportDefaultDeclaration`,Kd=`ExpressionStatement`,qd=`Identifier`,Jd=`Program`,Yd=`Property`,Xd=`RestElement`,Zd=`StaticBlock`;function Qd(e,{exportNamesByVariable:t,snippets:{_:n,getObject:r,getPropertyAccess:i}},a=``){if(e.length===1&&t.get(e[0]).length===1){let r=e[0];return`exports(${JSON.stringify(Dd(t.get(r)[0]))},${n}${r.getName(i)}${a})`}{let n=[];for(let r of e)for(let e of t.get(r))n.push([Dd(e),r.getName(i)+a]);return`exports(${r(n,{lineBreakIndent:null})})`}}function $d(e,t,n,r,{exportNamesByVariable:i,snippets:{_:a}}){r.prependRight(t,`exports(${JSON.stringify(Dd(i.get(e)[0]))},${a}`),r.appendLeft(n,`)`)}function ef(e,t,n,r,i,a){let{_:o,getPropertyAccess:s}=a.snippets;i.appendLeft(n,`,${o}${Qd([e],a)},${o}${e.getName(s)}`),r&&(i.prependRight(t,`(`),i.appendLeft(n,`)`))}function tf(e,t,n,r){let i=[];if(e.addExportedVariables(i,r.exportNamesByVariable),i.length===0)return;let{_:a,getPropertyAccess:o}=r.snippets,s=`${Qd(i,r)};`;t.type===`EmptyStatement`?n.overwrite(t.start,t.end,s):t.type!==Ud||function(e,t,n){let r=/* @__PURE__ */ new Set([`exports`]);for(let e of t)r.add(e.getName(n));for(let t of e.variables.values())if(t.included&&r.has(t.getName(n)))return!0;return!1}(t.scope,i,o)?(n.prependRight(t.start,`{${a}${s}${a}`),n.appendLeft(t.end,`${a}}`)):n.prependRight(t.start+1,`${a}${s}`)}let nf=Object.freeze(Object.create(null)),rf=Object.freeze({}),af=Object.freeze([]),of=Object.freeze(new class extends Set{add(){throw Error(`Cannot add to empty set`)}});function sf(e,t,n){let r=e.get(t);if(r!==void 0)return r;let i=n();return e.set(t,i),i}function cf(){return/* @__PURE__ */ new Set}function lf(){return[]}let V=Symbol(`Unknown Key`),uf=Symbol(`Unknown Non-Accessor Key`),df=Symbol(`Unknown Integer`),ff=Symbol(`Unknown Well-Known`),pf=Symbol(`Symbol.toStringTag`),mf=Symbol(`Symbol.dispose`),hf=Symbol(`Symbol.asyncDispose`),gf=Symbol(`Symbol.hasInstance`),_f=/* @__PURE__ */ new Set([pf,mf,hf,gf]),vf=e=>_f.has(e)||e===ff,yf=/* @__PURE__ */ new Set([gf,mf,hf]),bf=e=>typeof e==`string`||_f.has(e),H=[],U=[V],xf=[uf],Sf=[df],Cf=[gf],wf=Symbol(`Entities`);var Tf=class{constructor(){this.entityPaths=Object.create(null,{[wf]:{value:/* @__PURE__ */ new Set}})}trackEntityAtPathAndGetIfTracked(e,t){let n=this.getEntities(e);return!!n.has(t)||(n.add(t),!1)}withTrackedEntityAtPath(e,t,n,r){let i=this.getEntities(e);if(i.has(t))return r;i.add(t);let a=n();return i.delete(t),a}getEntities(e){let t=this.entityPaths;for(let n of e)t=t[n]||=Object.create(null,{[wf]:{value:/* @__PURE__ */ new Set}});return t[wf]}};let Ef=new Tf;var Df=class{constructor(){this.entityPaths=Object.create(null,{[wf]:{value:/* @__PURE__ */ new Map}})}trackEntityAtPathAndGetIfTracked(e,t,n){let r=this.entityPaths;for(let t of e)r=r[t]||=Object.create(null,{[wf]:{value:/* @__PURE__ */ new Map}});let i=sf(r[wf],t,cf);return!!i.has(n)||(i.add(n),!1)}};let Of=Object.freeze({[V]:rf});var kf=class{constructor(){this.includedPaths=null}includePathAndGetIfIncluded(e){let t=!0,n=this,r=`includedPaths`,i=this.includedPaths||=(t=!1,Object.create(null));for(let a of e){if(i[V])return!0;if(!bf(a))return n[r]=Of,!1;n=i,r=a,i=i[a]||=(t=!1,Object.create(null))}return t}includeAllPaths(e,t,n){this.includedPaths&&Af(e,t,n,this.includedPaths)}};function Af(e,t,n,r){if(r[V])return void e.includePath([...n,V],t);let i=Reflect.ownKeys(r);if(i.length!==0)for(let a of i)Af(e,t,[...n,a],r[a]);else e.includePath(n,t)}let jf=Object.freeze({[V]:!0});var Mf=class{constructor(){this.includedPaths=null}includePathAndGetIfIncluded(e){let t=!0,n=this.includedPaths||=(t=!1,Object.create(null));if(n[V])return!0;let[r,i]=e;return r?bf(r)?i?n[r]===V||(n[r]=V,!1):!!n[r]||(n[r]=!0,!1):(this.includedPaths=jf,!1):t}includeAllPaths(e,t,n){let{includedPaths:r}=this;if(r){if(r[V])e.includePath([...n,V],t);else{let i=Reflect.ownKeys(r);if(i.length===0)e.includePath(n,t);else for(let a of i)e.includePath(r[a]===V?[...n,a,V]:[...n,a],t)}}}};function Nf(e,t){if(e.type===`MemberExpression`)return!e.computed&&Nf(e.object,e);if(e.type!==`Identifier`)return!1;switch(t?.type){case`MemberExpression`:return t.computed||e===t.object;case`MethodDefinition`:return t.computed;case`MetaProperty`:return t.meta===e;case`PropertyDefinition`:case`Property`:return t.computed||e===t.value;case`ExportSpecifier`:case`ImportSpecifier`:return e===t.local;case`LabeledStatement`:case`BreakStatement`:case`ContinueStatement`:return!1;default:return!0}}function Pf(){return{brokenFlow:!1,hasBreak:!1,hasContinue:!1,includedCallArguments:/* @__PURE__ */ new Set,includedLabels:/* @__PURE__ */ new Set}}function Ff(){return{accessed:new Tf,assigned:new Tf,brokenFlow:!1,called:new Df,hasBreak:!1,hasContinue:!1,ignore:{breaks:!1,continues:!1,labels:/* @__PURE__ */ new Set,returnYield:!1,this:!1},includedLabels:/* @__PURE__ */ new Set,instantiated:new Df,replacedVariableInits:/* @__PURE__ */ new Map}}function If(e,t){return(e&t)!==0}function Lf(e,t,n){return e&~t|-n&t}let Rf=Symbol(`Unknown Value`),zf=Symbol(`Unknown Truthy Value`),Bf=Symbol(`Unknown Falsy Value`);var Vf=class{constructor(){this.flags=0}get included(){return If(this.flags,1)}set included(e){this.flags=Lf(this.flags,1,e)}deoptimizeArgumentsOnInteractionAtPath(e,t,n){Uf(e)}deoptimizePath(e){}getKnownFunctionAtPath(e,t,n){return null}getLiteralValueAtPath(e,t,n){return Rf}getReturnExpressionWhenCalledAtPath(e,t,n,r){return Hf}hasEffectsOnInteractionAtPath(e,t,n){return!0}include(e,t,n){this.included||this.includeNode(e)}includeNode(e){this.included=!0}includePath(e,t){this.included||this.includeNode(t)}includeCallArgumentsWhenCalledAtPath(e,t,n){Wf(t,n)}shouldBeIncluded(e){return!0}};let W=new class extends Vf{},Hf=[W,!1],Uf=e=>{for(let t of e.args)t?.deoptimizePath(U)},Wf=(e,t)=>{e.args[0]?.includePath(U,t),Gf(e,t)},Gf=({args:e},t)=>{for(let n=1;n<e.length;n++){let r=e[n];r&&(r.includePath(U,t),r.include(t,!1))}},Kf={args:[null],type:0},qf={args:[null,W],type:1},Jf={args:[null],type:2,withNew:!1};function Yf(e,t){return e.start<=t&&t<e.end}function Xf(e,t,n){return function(e,t={}){let{offsetLine:n=0,offsetColumn:r=0}=t,i=0,a=e.split(`
774
+ `).map((e,t)=>{let n=i+e.length+1,r={start:i,end:n,line:t};return i=n,r}),o=0;return function(t,i){if(typeof t==`string`&&(t=e.indexOf(t,i??0)),t===-1)return;let s=a[o],c=t>=s.end?1:-1;for(;s;){if(Yf(s,t))return{line:n+s.line,column:r+t-s.start,character:t};o+=c,s=a[o]}}}(e,n)(t,n&&n.startIndex)}function Zf(e){return e.replace(/^\t+/,e=>e.split(` `).join(` `))}function Qf(e,t,n){let r=e.split(`
775
+ `);if(t>r.length)return``;let i=Math.max(Zf(r[t-1].slice(0,n)).length+10+3,120),a=Math.max(0,t-3),o=Math.min(t+2,r.length);for(r=r.slice(a,o);!/\S/.test(r[r.length-1]);)r.pop(),--o;let s=String(o).length;return r.map((e,r)=>{let o=a+r+1===t,c=String(r+a+1);for(;c.length<s;)c=` ${c}`;let l=Zf(e);if(l.length>i&&(l=`${l.slice(0,i-3)}...`),o){let t=function(e){let t=``;for(;e--;)t+=` `;return t}(s+2+Zf(e.slice(0,n)).length)+`^`;return`${c}: ${l}\n${t}`}return`${c}: ${l}`}).join(`
776
+ `)}let G=`warn`,$f=`info`,ep=`debug`,tp={[ep]:0,[$f]:1,silent:3,[G]:2};function np(e,t){let n=e.length<=1,r=e.map(e=>`"${e}"`),i=n?r[0]:`${r.slice(0,-1).join(`, `)} and ${r.slice(-1)[0]}`;return t&&(i+=` ${n?t[0]:t[1]}`),i}function rp(e){let t=vd(e);return t.slice(0,Math.max(0,t.length-bd(e).length))}function ip(e){let t=rp(e);if(t!==`index`)return t;let n=vd(yd(e));return ap(n+`/`)?t:n}function K(e){return hd(e)?Sd(Cd(),e):e}function ap(e){return e[0]===`/`||e[0]===`.`&&(e[1]===`/`||e[1]===`.`)||hd(e)}let op=/^(\.\.\/)*\.\.$/;function sp(e,t,n,r){for(;t.startsWith(`../`);)t=t.slice(3),e=`_/`+e;let i=_d(Sd(yd(e),t));if(n&&i.endsWith(`.js`)&&(i=i.slice(0,-3)),r){if(i===``)return`../`+vd(t);if(op.test(i))return[...i.split(`/`),`..`,vd(t)].join(`/`)}return i?i.startsWith(`..`)?i:`./`+i:`.`}function cp(e){return`https://rollupjs.org/${e}`}let lp=`troubleshooting/#error-name-is-not-exported-by-module`,up=`configuration-options/#jsx`,dp=`configuration-options/#output-amd-id`,fp=`configuration-options/#output-dir`,pp=`configuration-options/#output-exports`,mp=`configuration-options/#output-format`,hp=`configuration-options/#output-inlinedynamicimports`,gp=`configuration-options/#output-interop`,_p=`configuration-options/#output-manualchunks`,vp=`configuration-options/#output-name`,yp=`es-module-syntax/#source-phase-import`,bp=`plugin-development/#generatebundle`;function q(e){throw e instanceof Error?e:xp(e)}function xp(e){Tp(e);let t=Object.assign(Error(e.message),e);return Object.defineProperty(t,"name",{value:`RollupError`,writable:!0}),t}function Sp(e,t,n){Tp(e),Tp(t);let r=n===`buildEnd`?`the build`:`rendering`;return{...e,message:`There was an error during ${r}:\n ${e.message}\nAdditionally, handling the error in the '${n}' hook caused the following error:\n ${t.message}`}}function Cp(e,t,n,r){if(typeof t==`object`){let{line:n,column:i}=t;e.loc={column:i,file:r,line:n}}else{e.pos=t;let i=Xf(n,t,{offsetLine:1});if(!i)return;let{line:a,column:o}=i;e.loc={column:o,file:r,line:a}}if(e.frame===void 0){let{line:t,column:r}=e.loc;e.frame=Qf(n,t,r)}}let wp=Symbol(`augmented`);function Tp(e){if(!e.plugin&&!e.loc||e[wp])return;e[wp]=!0;let t=``;e.plugin&&(t+=`[plugin ${e.plugin}] `);let n=e.id||e.loc?.file;if(n){let r=e.loc?` (${e.loc.line}:${e.loc.column})`:``;t+=`${K(n)}${r}: `}let r=e.message;e.message=t+e.message,Yp(e,r)}let Ep=`INVALID_EXPORT_OPTION`,Dp=`INVALID_IMPORT_ATTRIBUTE`,Op=`INVALID_PLUGIN_HOOK`,kp=`MISSING_EXPORT`,Ap=`MISSING_IMPLICIT_DEPENDANT`,jp=`MISSING_NAME_OPTION_FOR_IIFE_EXPORT`,Mp=`PARSE_ERROR`,Np=`SOURCEMAP_BROKEN`,Pp=`UNEXPECTED_NAMED_IMPORT`,Fp=`UNRESOLVED_ENTRY`,Ip=`UNRESOLVED_IMPORT`;function Lp(e){return{code:`ASSET_SOURCE_MISSING`,message:`Plugin error creating asset "${e}" - no asset source set.`}}function Rp(e){return{code:`CANNOT_CALL_NAMESPACE`,message:`Cannot call a namespace ("${e}").`}}function zp({fileName:e,code:t},{pos:n,message:r}){let i={code:`CHUNK_INVALID`,message:`Chunk "${e}" is not valid JavaScript: ${r}.`};return Cp(i,n,t,e),i}function Bp(e){return{code:`CIRCULAR_DEPENDENCY`,ids:e,message:`Circular dependency: ${e.map(K).join(` -> `)}`}}function Vp(e,t,n,r,i){return{code:`CYCLIC_CROSS_CHUNK_REEXPORT`,exporter:t,id:r,message:`Export "${e}" of module "${K(t)}" was reexported through module "${K(n)}" while both modules are dependencies of each other and will end up in different chunks by current Rollup settings. This scenario is not well supported at the moment as it will produce a circular dependency between chunks and will likely lead to broken execution order.\nEither change the import in "${K(r)}" to point directly to the exporting module or ${i?`do not use "output.preserveModules"`:`reconfigure "output.manualChunks"`} to ensure these modules end up in the same chunk.`,reexporter:n}}function Hp(e){return{code:`FILE_NAME_OUTSIDE_OUTPUT_DIRECTORY`,message:`The output file name "${e}" is not contained in the output directory. Make sure all file names are relative paths without ".." segments.`}}function Up(e,t,{line:n,column:r}){return{code:`FIRST_SIDE_EFFECT`,message:`First side effect in ${K(t)} is at (${n}:${r})\n${Qf(e,n,r)}`}}function Wp(e,t){return{code:`ILLEGAL_REASSIGNMENT`,message:`Illegal reassignment of import "${e}" in "${K(t)}".`}}function Gp(e,t,n,r){return{code:`INCONSISTENT_IMPORT_ATTRIBUTES`,message:`Module "${K(r)}" tried to import "${K(n)}" with ${Kp(t)} attributes, but it was already imported elsewhere with ${Kp(e)} attributes. Please ensure that import attributes for the same module are always consistent.`}}let Kp=e=>{let t=Object.entries(e);return t.length===0?`no`:t.map(([e,t])=>`"${e}": "${t}"`).join(`, `)};function qp(e,t,n){return{code:`INVALID_ANNOTATION`,id:t,message:`A comment\n\n"${e}"\n\nin "${K(t)}" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.`,url:cp(n===`noSideEffects`?`configuration-options/#no-side-effects`:`configuration-options/#pure`)}}function Jp(e,t){return{code:`INPUT_HOOK_IN_OUTPUT_PLUGIN`,message:`The "${t}" hook used by the output plugin ${e} is a build time hook and will not be run for that plugin. Either this plugin cannot be used as an output plugin, or it should have an option to configure it as an output plugin.`}}function Yp(e,t){return e.stack&&=e.stack.replace(t,e.message),e}function Xp(e,t,n){return{code:Ep,message:`"${e}" was specified for "output.exports", but entry module "${K(n)}" has the following exports: ${np(t)}`,url:cp(pp)}}function Zp(e){return{code:Dp,message:`Rollup could not statically analyze an import attribute of a dynamic import in "${K(e)}". Import attributes need to have string keys and values.`}}function Qp(e,t,n,r){return{code:`INVALID_OPTION`,message:`Invalid value ${r===void 0?``:`${JSON.stringify(r)} `}for option "${e}" - ${n}.`,url:cp(t)}}function $p(e,t){return{binding:e,code:kp,exporter:t,message:`Exported variable "${e}" is not defined in "${K(t)}".`,url:cp(lp)}}function em(e,t,n,r){let i={binding:e,code:kp,exporter:n,id:t,url:cp(lp)};if(r)return{...i,message:`Exported variable "${e}" is not defined in "${K(n)}", but it is imported by "${K(t)}".`};let a=bd(n)===`.json`;return{...i,message:`"${e}" is not exported by "${K(n)}", imported by "${K(t)}".${a?` (Note that you need @rollup/plugin-json to import JSON files)`:``}`}}function tm(e){let t=[...e.implicitlyLoadedBefore].map(e=>K(e.id)).sort();return{code:Ap,message:`Module "${K(e.id)}" that should be implicitly loaded before ${np(t)} is not included in the module graph. Either it was not imported by an included module or only via a tree-shaken dynamic import, or no imported bindings were used and it had otherwise no side-effects.`}}function nm(e,t){return{code:`NON_EXTERNAL_SOURCE_PHASE_IMPORT`,message:`Source phase import "${e}" in "${K(t)}" must be external. Source phase imports are only supported for external modules. Use the "external" option to mark this module as external.`,url:cp(yp)}}function rm(e,t,n){return{code:`OPTIMIZE_CHUNK_STATUS`,message:`${n}, there are\n${e} chunks, of which\n${t} are below minChunkSize.`}}function im(e,t){return{code:Mp,message:e,pos:t}}function am(e){return{code:`REDECLARATION_ERROR`,message:`Identifier "${e}" has already been declared`}}function om(e){return{code:`RESERVED_NAMESPACE`,message:`You have overridden reserved namespace "${e}"`}}function sm(e,t){let n=e.message.replace(/ \(\d+:\d+\)$/,``);return t.endsWith(`.json`)?n+=` (Note that you need @rollup/plugin-json to import JSON files)`:t.endsWith(`.js`)||(n+=` (Note that you need plugins to import files that are not JavaScript)`),Yp({cause:e,code:Mp,id:t,message:n,stack:e.stack},e.message)}function cm(e,t,{hook:n,id:r}={}){let i=e.code;return e.pluginCode||i==null||typeof i==`string`&&i.startsWith(`PLUGIN_`)||(e.pluginCode=i),e.code=`PLUGIN_ERROR`,e.plugin=t,n&&(e.hook=n),r&&(e.id=r),e}function lm(e){return{code:Np,message:`Multiple conflicting contents for sourcemap source ${e}`}}function um(e,t,n){let r=n?`reexport`:`import`;return{code:Pp,exporter:e,message:`The named export "${t}" was ${r}ed from the external module "${K(e)}" even though its interop type is "defaultOnly". Either remove or change this ${r} or change the value of the "output.interop" option.`,url:cp(gp)}}function dm(e){return{code:Pp,exporter:e,message:`There was a namespace "*" reexport from the external module "${K(e)}" even though its interop type is "defaultOnly". This will be ignored as namespace reexports only reexport named exports. If this is not intended, either remove or change this reexport or change the value of the "output.interop" option.`,url:cp(gp)}}function fm(e){return{code:`VALIDATION_ERROR`,message:e}}function pm(e,t,n,r,i){(function(e,t,n,r,i){if(n||i){let n=function(e,t){return{code:`DEPRECATED_FEATURE`,message:e,url:cp(t)}}(e,t);if(i)return q(n);r(G,n)}})(e,t,n,r.onLog,r.strictDeprecations)}let mm=Symbol(`PureFunction`);var hm=class extends Vf{markReassigned(){this.isReassigned=!0}markTargetOfAssignment(){this.isTargetOfAssignment=!0}constructor(e){super(),this.name=e,this.alwaysRendered=!1,this.forbiddenNames=null,this.globalName=null,this.initReached=!1,this.isId=!1,this.kind=null,this.renderBaseName=null,this.renderName=null,this.isReassigned=!1,this.isTargetOfAssignment=!1,this.onlyFunctionCallUsed=!0}addReference(e){}getOnlyFunctionCallUsed(){return this.onlyFunctionCallUsed}addUsedPlace(e){e.parent.type===Wd&&e.parent.callee===e||e.parent.type===Gd||(this.onlyFunctionCallUsed=!1)}forbidName(e){(this.forbiddenNames||=/* @__PURE__ */ new Set).add(e)}getBaseVariableName(){return this.getNamingVariable()?.getBaseVariableName()||this.renderBaseName||this.renderName||this.name}getName(e,t){if(this.globalName)return this.globalName;if(t?.(this))return this.name;let n=this.getNamingVariable();if(n)return n.getName(e,t);let r=this.renderName||this.name;return this.renderBaseName?`${this.renderBaseName}${e(r)}`:r}hasEffectsOnInteractionAtPath(e,{type:t},n){return t!==0||e.length>0}includePath(e,t){this.included=!0,this.renderedLikeHoisted?.includePath(e,t)}renderLikeHoisted(e){this.renderedLikeHoisted=e}getHoistedVariable(){return this.renderedLikeHoisted}getNamingVariable(){return this.renderedLikeHoisted?.renderBaseName===null?this.renderedLikeHoisted:void 0}markCalledFromTryStatement(){}addReassignedValue(e){}setRenderNames(e,t){this.renderBaseName=e,this.renderName=t}};let gm=`*source`;var _m=class extends hm{constructor(e,t){super(t),this.referenced=!1,this.module=e,this.isNamespace=t===`*`,this.isSourcePhase=t===gm}addReference(e){this.referenced=!0,this.name!=="default"&&this.name!==`*`||this.module.suggestName(e.name)}hasEffectsOnInteractionAtPath(e,{type:t}){return t!==0||e.length>+!!this.isNamespace}includePath(e,t){super.includePath(e,t),this.module.used=!0}};function vm(e,t){for(let n of t){let t=Object.getOwnPropertyDescriptor(e,n).get;Object.defineProperty(e,n,{get(){let r=t.call(e);return Object.defineProperty(e,n,{value:r}),r}})}}let ym=/[^\w$]/g,bm=/[^\w$]/,xm=e=>(e=>/\d/.test(e[0]))(e)||Td.has(e)||e===`arguments`;function Sm(e){return e=e.replace(/-(\w)/g,(e,t)=>t.toUpperCase()).replace(ym,`_`),xm(e)&&(e=`_${e}`),e||`_`}let Cm=/^[$_\p{ID_Start}][$\u200C\u200D\p{ID_Continue}]*$/u,wm=/^(?:0|[1-9]\d*)$/;function Tm(e){return Cm.test(e)?e===`__proto__`?`["__proto__"]`:e:wm.test(e)&&+e<=2**53-1?e:JSON.stringify(e)}var Em=class{constructor(e,t,n,r,i,a){this.options=e,this.id=t,this.renormalizeRenderPath=i,this.dynamicImporters=[],this.execIndex=1/0,this.exportedVariables=/* @__PURE__ */ new Map,this.importers=[],this.reexported=!1,this.used=!1,this.declarations=/* @__PURE__ */ new Map,this.importersByExportedName=/* @__PURE__ */ new Map,this.mostCommonSuggestion=0,this.nameSuggestions=/* @__PURE__ */ new Map,this.suggestedVariableName=Sm(t.split(/[/\\]/).pop());let{importers:o,dynamicImporters:s}=this;this.info={ast:null,attributes:a,code:null,dynamicallyImportedIdResolutions:af,dynamicallyImportedIds:af,get dynamicImporters(){return s.sort()},exportedBindings:null,exports:null,hasDefaultExport:null,id:t,implicitlyLoadedAfterOneOf:af,implicitlyLoadedBefore:af,importedIdResolutions:af,importedIds:af,get importers(){return o.sort()},isEntry:!1,isExternal:!0,isIncluded:null,meta:r,moduleSideEffects:n,safeVariableNames:null,syntheticNamedExports:!1}}cacheInfoGetters(){vm(this.info,[`dynamicImporters`,`importers`])}getVariableForExportName(e,{importChain:t}){let n=this.declarations.get(e);for(let n of t)sf(this.importersByExportedName,e,cf).add(n);if(n)return[n];let r=new _m(this,e);return this.declarations.set(e,r),this.exportedVariables.set(r,e),[r]}suggestName(e){let t=(this.nameSuggestions.get(e)??0)+1;this.nameSuggestions.set(e,t),t>this.mostCommonSuggestion&&(this.mostCommonSuggestion=t,this.suggestedVariableName=e)}warnUnusedImports(){let e=[...this.declarations].filter(([e,t])=>e!==`*`&&!t.included&&!this.reexported&&!t.referenced).map(([e])=>e);if(e.length===0)return;let t=/* @__PURE__ */ new Set;for(let n of e){let e=this.importersByExportedName.get(n);for(let n of this.importers)e?.has(n)&&t.add(n)}let n=[...t];var r,i,a;this.options.onLog(G,(r=this.id,i=e.map(Dd),{code:`UNUSED_EXTERNAL_IMPORT`,exporter:r,ids:a=n,message:`${np(i,[`is`,`are`])} imported from external module "${r}" but never used in ${np(a.map(e=>K(e)))}.`,names:i}))}};function Dm(e){e.isExecuted=!0;let t=[e],n=/* @__PURE__ */ new Set;for(let e of t)for(let r of[...e.dependencies,...e.implicitlyLoadedBefore])r instanceof Em||r.isExecuted||!r.info.moduleSideEffects&&!e.implicitlyLoadedBefore.has(r)||n.has(r.id)||(r.isExecuted=!0,n.add(r.id),t.push(r))}let Om=()=>{};var km=/* @__PURE__ */ `var.let.const.init.get.set.constructor.method.-.+.!.~.typeof.void.delete.++.--.==.!=.===.!==.<.<=.>.>=.<<.>>.>>>.+.-.*./.%.|.^.&.||.&&.in.instanceof.**.??.=.+=.-=.*=./=.%=.<<=.>>=.>>>=.|=.^=.&=.**=.&&=.||=.??=.pure.noSideEffects.sourcemap.using.await using.source.defer`.split(`.`);let Am=`_rollupAnnotations`,jm=`_rollupRemoved`,Mm=(e,t)=>{if(e===0)return af;let n=t[e++],r=Array(n);for(let i=0;i<n;i++)r[i]=Nm(t[e++],t);return r},Nm=(e,t)=>{let n=t[e++];return{end:t[e++],start:n,type:km[t[e]]}},Pm={ArrayExpression:[`elements`],ArrayPattern:[`elements`],ArrowFunctionExpression:[`params`,`body`],AssignmentExpression:[`left`,`right`],AssignmentPattern:[`left`,`right`],AwaitExpression:[`argument`],BinaryExpression:[`left`,`right`],BlockStatement:[`body`],BreakStatement:[`label`],CallExpression:[`callee`,`arguments`],CatchClause:[`param`,`body`],ChainExpression:[`expression`],ClassBody:[`body`],ClassDeclaration:[`decorators`,`id`,`superClass`,`body`],ClassExpression:[`decorators`,`id`,`superClass`,`body`],ConditionalExpression:[`test`,`consequent`,`alternate`],ContinueStatement:[`label`],DebuggerStatement:[],Decorator:[`expression`],DoWhileStatement:[`body`,`test`],EmptyStatement:[],ExportAllDeclaration:[`exported`,`source`,`attributes`],ExportDefaultDeclaration:[`declaration`],ExportNamedDeclaration:[`specifiers`,`source`,`attributes`,`declaration`],ExportSpecifier:[`local`,`exported`],ExpressionStatement:[`expression`],ForInStatement:[`left`,`right`,`body`],ForOfStatement:[`left`,`right`,`body`],ForStatement:[`init`,`test`,`update`,`body`],FunctionDeclaration:[`id`,`params`,`body`],FunctionExpression:[`id`,`params`,`body`],Identifier:[],IfStatement:[`test`,`consequent`,`alternate`],ImportAttribute:[`key`,`value`],ImportDeclaration:[`specifiers`,`source`,`attributes`],ImportDefaultSpecifier:[`local`],ImportExpression:[`source`,`options`],ImportNamespaceSpecifier:[`local`],ImportSpecifier:[`imported`,`local`],JSXAttribute:[`name`,`value`],JSXClosingElement:[`name`],JSXClosingFragment:[],JSXElement:[`openingElement`,`children`,`closingElement`],JSXEmptyExpression:[],JSXExpressionContainer:[`expression`],JSXFragment:[`openingFragment`,`children`,`closingFragment`],JSXIdentifier:[],JSXMemberExpression:[`object`,`property`],JSXNamespacedName:[`namespace`,`name`],JSXOpeningElement:[`name`,`attributes`],JSXOpeningFragment:[],JSXSpreadAttribute:[`argument`],JSXSpreadChild:[`expression`],JSXText:[],LabeledStatement:[`label`,`body`],Literal:[],LogicalExpression:[`left`,`right`],MemberExpression:[`object`,`property`],MetaProperty:[`meta`,`property`],MethodDefinition:[`decorators`,`key`,`value`],NewExpression:[`callee`,`arguments`],ObjectExpression:[`properties`],ObjectPattern:[`properties`],PanicError:[],ParseError:[],PrivateIdentifier:[],Program:[`body`],Property:[`key`,`value`],PropertyDefinition:[`decorators`,`key`,`value`],RestElement:[`argument`],ReturnStatement:[`argument`],SequenceExpression:[`expressions`],SpreadElement:[`argument`],StaticBlock:[`body`],Super:[],SwitchCase:[`test`,`consequent`],SwitchStatement:[`discriminant`,`cases`],TaggedTemplateExpression:[`tag`,`quasi`],TemplateElement:[],TemplateLiteral:[`quasis`,`expressions`],ThisExpression:[],ThrowStatement:[`argument`],TryStatement:[`block`,`handler`,`finalizer`],UnaryExpression:[`argument`],UpdateExpression:[`argument`],VariableDeclaration:[`declarations`],VariableDeclarator:[`id`,`init`],WhileStatement:[`test`,`body`],YieldExpression:[`argument`]},Fm=`variables`,Im=Symbol(`IS_SKIPPED_CHAIN`);var J=class extends Vf{get deoptimized(){return If(this.flags,2)}set deoptimized(e){this.flags=Lf(this.flags,2,e)}constructor(e,t){super(),this.parent=e,this.scope=t,this.createScope(t)}addExportedVariables(e,t){}bind(){for(let e of Pm[this.type]){let t=this[e];if(Array.isArray(t))for(let e of t)e?.bind();else t&&t.bind()}}createScope(e){this.scope=e}hasEffects(e){this.deoptimized||this.applyDeoptimizations();for(let t of Pm[this.type]){let n=this[t];if(n!==null){if(Array.isArray(n)){for(let t of n)if(t?.hasEffects(e))return!0}else if(n.hasEffects(e))return!0}}return!1}hasEffectsAsAssignmentTarget(e,t){return this.hasEffects(e)||this.hasEffectsOnInteractionAtPath(H,this.assignmentInteraction,e)}include(e,t,n){this.included||this.includeNode(e);for(let n of Pm[this.type]){let r=this[n];if(r!==null){if(Array.isArray(r))for(let n of r)n?.include(e,t);else r.include(e,t)}}}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations();for(let t of Pm[this.type]){let n=this[t];if(n!==null){if(Array.isArray(n))for(let t of n)t?.includePath(U,e);else n.includePath(U,e)}}}includeAsAssignmentTarget(e,t,n){this.include(e,t)}initialise(){this.scope.context.magicString.addSourcemapLocation(this.start),this.scope.context.magicString.addSourcemapLocation(this.end)}parseNode(e){for(let[t,n]of Object.entries(e))if(!this.hasOwnProperty(t)){if(t.charCodeAt(0)===95)t===Am?this.annotations=n:t===jm&&(this.invalidAnnotations=n);else if(typeof n!=`object`||!n)this[t]=n;else if(Array.isArray(n)){this[t]=Array(n.length);let e=0;for(let r of n)this[t][e++]=r===null?null:new(this.scope.context.getNodeConstructor(r.type))(this,this.scope).parseNode(r)}else this[t]=new(this.scope.context.getNodeConstructor(n.type))(this,this.scope).parseNode(n)}return Pm[e.type]||=function(e){return Object.keys(e).filter(t=>typeof e[t]==`object`&&t.charCodeAt(0)!==95)}(e),this.initialise(),this}removeAnnotations(e){if(this.annotations)for(let t of this.annotations)e.remove(t.start,t.end)}render(e,t){for(let n of Pm[this.type]){let r=this[n];if(r!==null){if(Array.isArray(r))for(let n of r)n?.render(e,t);else r.render(e,t)}}}setAssignedValue(e){this.assignmentInteraction={args:[null,e],type:1}}shouldBeIncluded(e){return this.included||!e.brokenFlow&&this.hasEffects(Ff())}applyDeoptimizations(){this.deoptimized=!0;for(let e of Pm[this.type]){let t=this[e];if(t!==null){if(Array.isArray(t))for(let e of t)e?.deoptimizePath(U);else t.deoptimizePath(U)}}this.scope.context.requestTreeshakingPass()}};function Lm(){this.included=!0,this.deoptimized||this.applyDeoptimizations()}function Rm(){this.included=!0}function zm(){this.deoptimized=!0}function Bm(e){return e instanceof J&&e.type===Hd}function Vm(e){return e instanceof J&&e.type===`FunctionExpression`}function Hm(e){return e instanceof J&&e.type===Wd}function Um(e){return e instanceof J&&e.type===`MemberExpression`}function Wm(e){return e instanceof J&&e.type===qd}function Gm(e){return e instanceof J&&e.type===Kd}function Km(e,t=null){return Object.create(t,e)}let qm=new class extends Vf{getLiteralValueAtPath(e){return e.length>0?Rf:void 0}},Jm={value:{hasEffectsWhenCalled:null,returns:W}},Ym=new class extends Vf{getReturnExpressionWhenCalledAtPath(e){return e.length===1?ch(rh,e[0]):Hf}hasEffectsOnInteractionAtPath(e,t,n){return t.type===0?e.length>1:t.type!==2||e.length!==1||sh(rh,e[0],t,n)}},Xm={value:{hasEffectsWhenCalled:null,returns:Ym}},Zm=new class extends Vf{getReturnExpressionWhenCalledAtPath(e){return e.length===1?ch(ih,e[0]):Hf}hasEffectsOnInteractionAtPath(e,t,n){return t.type===0?e.length>1:t.type!==2||e.length!==1||sh(ih,e[0],t,n)}},Qm={value:{hasEffectsWhenCalled:null,returns:Zm}},$m=new class extends Vf{getReturnExpressionWhenCalledAtPath(e){return e.length===1?ch(oh,e[0]):Hf}hasEffectsOnInteractionAtPath(e,t,n){return t.type===0?e.length>1:t.type!==2||e.length!==1||sh(oh,e[0],t,n)}},eh={value:{hasEffectsWhenCalled:null,returns:$m}},th={value:{hasEffectsWhenCalled({args:e},t){let n=e[2];return e.length<3||typeof n.getLiteralValueAtPath(H,Ef,{deoptimizeCache(){}})==`symbol`&&n.hasEffectsOnInteractionAtPath(H,Jf,t)},returns:$m}},nh=Km({hasOwnProperty:Xm,isPrototypeOf:Xm,propertyIsEnumerable:Xm,toLocaleString:eh,toString:eh,valueOf:Jm}),rh=Km({valueOf:Xm},nh),ih=Km({toExponential:eh,toFixed:eh,toLocaleString:eh,toPrecision:eh,valueOf:Qm},nh),ah=Km({exec:Jm,test:Xm},nh),oh=Km({anchor:eh,at:Jm,big:eh,blink:eh,bold:eh,charAt:eh,charCodeAt:Qm,codePointAt:Jm,concat:eh,endsWith:Xm,fixed:eh,fontcolor:eh,fontsize:eh,includes:Xm,indexOf:Qm,italics:eh,lastIndexOf:Qm,link:eh,localeCompare:Qm,match:Jm,matchAll:Jm,normalize:eh,padEnd:eh,padStart:eh,repeat:eh,replace:th,replaceAll:th,search:Qm,slice:eh,small:eh,split:Jm,startsWith:Xm,strike:eh,sub:eh,substr:eh,substring:eh,sup:eh,toLocaleLowerCase:eh,toLocaleUpperCase:eh,toLowerCase:eh,toString:eh,toUpperCase:eh,trim:eh,trimEnd:eh,trimLeft:eh,trimRight:eh,trimStart:eh,valueOf:eh},nh);function sh(e,t,n,r){return typeof t!=`string`||!e[t]||e[t].hasEffectsWhenCalled?.(n,r)||!1}function ch(e,t){return typeof t==`string`&&e[t]?[e[t].returns,!1]:Hf}var lh=class extends Vf{constructor(e){super(),this.description=e}deoptimizeArgumentsOnInteractionAtPath({args:e,type:t},n){if(t===2&&n.length===0&&(this.description.mutatesSelfAsArray&&e[0]?.deoptimizePath(Sf),this.description.mutatesArgs))for(let t=1;t<e.length;t++)e[t].deoptimizePath(U)}getReturnExpressionWhenCalledAtPath(e,{args:t}){return e.length>0?Hf:[this.description.returnsPrimitive||(this.description.returns===`self`?t[0]||W:this.description.returns()),!1]}hasEffectsOnInteractionAtPath(e,{args:t,type:n},r){if(e.length>+(n===0))return!0;if(n===2){if(!0===this.description.mutatesSelfAsArray&&t[0]?.hasEffectsOnInteractionAtPath(Sf,qf,r))return!0;if(this.description.callsArgs){for(let e of this.description.callsArgs)if(t[e+1]?.hasEffectsOnInteractionAtPath(H,Jf,r))return!0}}return!1}};let uh=[new lh({callsArgs:null,mutatesArgs:!1,mutatesSelfAsArray:!1,returns:null,returnsPrimitive:Ym})],dh=[new lh({callsArgs:null,mutatesArgs:!1,mutatesSelfAsArray:!1,returns:null,returnsPrimitive:$m})],fh=[new lh({callsArgs:null,mutatesArgs:!1,mutatesSelfAsArray:!1,returns:null,returnsPrimitive:Zm})],ph=[new lh({callsArgs:null,mutatesArgs:!1,mutatesSelfAsArray:!1,returns:null,returnsPrimitive:W})],mh=/^\d+$/;var hh=class extends Vf{get hasLostTrack(){return If(this.flags,2048)}set hasLostTrack(e){this.flags=Lf(this.flags,2048,e)}get hasUnknownDeoptimizedInteger(){return If(this.flags,4096)}set hasUnknownDeoptimizedInteger(e){this.flags=Lf(this.flags,4096,e)}get hasUnknownDeoptimizedProperty(){return If(this.flags,8192)}set hasUnknownDeoptimizedProperty(e){this.flags=Lf(this.flags,8192,e)}constructor(e,t,n=!1){if(super(),this.prototypeExpression=t,this.immutable=n,this.additionalExpressionsToBeDeoptimized=/* @__PURE__ */ new Set,this.allProperties=[],this.alwaysIncludedProperties=/* @__PURE__ */ new Set,this.deoptimizedPaths=/* @__PURE__ */ new Map,this.expressionsToBeDeoptimizedByKey=/* @__PURE__ */ new Map,this.gettersByKey=/* @__PURE__ */ new Map,this.propertiesAndGettersByKey=/* @__PURE__ */ new Map,this.propertiesAndSettersByKey=/* @__PURE__ */ new Map,this.settersByKey=/* @__PURE__ */ new Map,this.unknownIntegerProps=[],this.unmatchableGetters=[],this.unmatchablePropertiesAndGetters=[],this.unmatchablePropertiesAndSetters=[],this.unmatchableSetters=[],Array.isArray(e))this.buildPropertyMaps(e);else{this.propertiesAndGettersByKey=this.propertiesAndSettersByKey=e;for(let t of e.values())this.allProperties.push(...t)}}deoptimizeAllProperties(e){let t=this.hasLostTrack||this.hasUnknownDeoptimizedProperty;if(e?this.hasUnknownDeoptimizedProperty=!0:this.hasLostTrack=!0,!t){for(let e of[...this.propertiesAndGettersByKey.values(),...this.settersByKey.values()])for(let t of e)t.deoptimizePath(U);this.prototypeExpression?.deoptimizePath([V,V]),this.deoptimizeCachedEntities()}}deoptimizeArgumentsOnInteractionAtPath(e,t,n){let[r,...i]=t,{args:a,type:o}=e;if(this.hasLostTrack||(o===2||t.length>1)&&(this.hasUnknownDeoptimizedProperty||bf(r)&&this.deoptimizedPaths.get(r)))return void Uf(e);let[s,c,l]=o===2||t.length>1?[this.propertiesAndGettersByKey,this.propertiesAndGettersByKey,this.unmatchablePropertiesAndGetters]:o===0?[this.propertiesAndGettersByKey,this.gettersByKey,this.unmatchableGetters]:[this.propertiesAndSettersByKey,this.settersByKey,this.unmatchableSetters];if(bf(r)){if(s.get(r)){let t=c.get(r);if(t)for(let r of t)r.deoptimizeArgumentsOnInteractionAtPath(e,i,n);if(!this.immutable)for(let e of a)e&&this.additionalExpressionsToBeDeoptimized.add(e);return}for(let t of l)t.deoptimizeArgumentsOnInteractionAtPath(e,i,n);if(typeof r==`string`&&mh.test(r))for(let t of this.unknownIntegerProps)t.deoptimizeArgumentsOnInteractionAtPath(e,i,n)}else{for(let t of[...c.values(),l])for(let r of t)r.deoptimizeArgumentsOnInteractionAtPath(e,i,n);for(let t of this.unknownIntegerProps)t.deoptimizeArgumentsOnInteractionAtPath(e,i,n)}if(!this.immutable)for(let e of a)e&&this.additionalExpressionsToBeDeoptimized.add(e);this.prototypeExpression?.deoptimizeArgumentsOnInteractionAtPath(e,t,n)}deoptimizeIntegerProperties(){if(!(this.hasLostTrack||this.hasUnknownDeoptimizedProperty||this.hasUnknownDeoptimizedInteger)){this.hasUnknownDeoptimizedInteger=!0;for(let[e,t]of this.propertiesAndGettersByKey.entries())if(typeof e==`string`&&mh.test(e))for(let e of t)e.deoptimizePath(U);this.deoptimizeCachedIntegerEntities()}}deoptimizePath(e){if(this.hasLostTrack||this.immutable)return;let t=e[0];if(e.length===1){if(t===df)return this.deoptimizeIntegerProperties();if(!bf(t))return this.deoptimizeAllProperties(t===uf);if(!this.deoptimizedPaths.get(t)){this.deoptimizedPaths.set(t,!0);let e=this.expressionsToBeDeoptimizedByKey.get(t);if(e)for(let t of e)t.deoptimizeCache()}}let n=e.length===1?U:e.slice(1);for(let e of bf(t)?[...this.propertiesAndGettersByKey.get(t)||this.unmatchablePropertiesAndGetters,...this.settersByKey.get(t)||this.unmatchableSetters]:this.allProperties)e.deoptimizePath(n);this.prototypeExpression?.deoptimizePath(e.length===1?[e[0],V]:e)}getKnownFunctionAtPath(e,t,n){let r=e[0];if(!bf(r)||this.settersByKey.has(r)||this.unmatchableSetters.length>0)return null;let i=this.getMemberExpressionAndTrackDeopt(r,n);return i?i.getKnownFunctionAtPath(e.slice(1),t,n):this.prototypeExpression?.getKnownFunctionAtPath(e,t,n)||null}getLiteralValueAtPath(e,t,n){if(e.length===0)return Rf;let r=e[0],i=this.getMemberExpressionAndTrackDeopt(r,n);return i?i.getLiteralValueAtPath(e.slice(1),t,n):this.prototypeExpression?this.prototypeExpression.getLiteralValueAtPath(e,t,n):e.length===1?void 0:Rf}getReturnExpressionWhenCalledAtPath(e,t,n,r){if(e.length===0)return Hf;let[i,...a]=e,o=this.getMemberExpressionAndTrackDeopt(i,r);return o?o.getReturnExpressionWhenCalledAtPath(a,t,n,r):this.prototypeExpression?this.prototypeExpression.getReturnExpressionWhenCalledAtPath(e,t,n,r):Hf}hasEffectsOnInteractionAtPath(e,t,n){let[r,...i]=e;if(i.length>0||t.type===2){let a=this.getMemberExpression(r);return a?a.hasEffectsOnInteractionAtPath(i,t,n):!this.prototypeExpression||this.prototypeExpression.hasEffectsOnInteractionAtPath(e,t,n)}if(r===uf)return!1;if(this.hasLostTrack)return!0;let[a,o,s]=t.type===0?[this.propertiesAndGettersByKey,this.gettersByKey,this.unmatchableGetters]:[this.propertiesAndSettersByKey,this.settersByKey,this.unmatchableSetters];if(bf(r)){if(a.get(r)){let e=o.get(r);if(e){for(let r of e)if(r.hasEffectsOnInteractionAtPath(i,t,n))return!0}return!1}for(let e of s)if(e.hasEffectsOnInteractionAtPath(i,t,n))return!0}else for(let e of[...o.values(),s])for(let r of e)if(r.hasEffectsOnInteractionAtPath(i,t,n))return!0;return!!this.prototypeExpression&&this.prototypeExpression.hasEffectsOnInteractionAtPath(e,t,n)}include(e,t){this.included=!0;for(let n of this.allProperties)(t||n.shouldBeIncluded(e)||this.alwaysIncludedProperties.has(n))&&n.include(e,t);this.prototypeExpression?.include(e,t)}includePath(e,t){this.included=!0;for(let e of this.alwaysIncludedProperties)e.includePath(U,t);if(e.length===0)return;let[n,...r]=e,[i,a]=bf(n)?[/* @__PURE__ */ new Set([...this.propertiesAndGettersByKey.get(n)||this.unmatchablePropertiesAndGetters,...this.propertiesAndSettersByKey.get(n)||this.unmatchablePropertiesAndSetters]),r]:[this.allProperties,U];for(let e of i)e.includePath(a,t);this.prototypeExpression?.includePath(e,t)}includeCallArgumentsWhenCalledAtPath(e,t,n){let[r,...i]=e;if(this.hasLostTrack||this.hasUnknownDeoptimizedProperty||!bf(r)||this.deoptimizedPaths.get(r)||typeof r==`string`&&mh.test(r)&&this.hasUnknownDeoptimizedInteger)return void Wf(t,n);let a=this.propertiesAndGettersByKey.get(r);if(a===void 0)this.unmatchablePropertiesAndGetters.length>0||typeof r==`string`&&mh.test(r)&&this.unknownIntegerProps.length>0||!this.prototypeExpression?Wf(t,n):this.prototypeExpression.includeCallArgumentsWhenCalledAtPath(e,t,n);else{t.args[0]?.includePath(U,n);for(let e of a)e.includeCallArgumentsWhenCalledAtPath(i,t,n)}}buildPropertyMaps(e){let{allProperties:t,alwaysIncludedProperties:n,propertiesAndGettersByKey:r,propertiesAndSettersByKey:i,settersByKey:a,gettersByKey:o,unknownIntegerProps:s,unmatchablePropertiesAndGetters:c,unmatchablePropertiesAndSetters:l,unmatchableGetters:u,unmatchableSetters:d}=this;for(let f=e.length-1;f>=0;f--){let{key:p,kind:m,property:h}=e[f];if(t.push(h),!vf(p)||yf.has(p)||(n.add(h),p!==ff)){if(bf(p))m===`set`?i.has(p)||(i.set(p,[h,...l]),a.set(p,[h,...d])):m===`get`?r.has(p)||(r.set(p,[h,...c]),o.set(p,[h,...u])):(i.has(p)||i.set(p,[h,...l]),r.has(p)||r.set(p,[h,...c]));else{if(p===df){s.push(h);continue}m===`set`&&d.push(h),m===`get`&&u.push(h),m!==`get`&&l.push(h),m!==`set`&&c.push(h)}}}}deoptimizeCachedEntities(){for(let e of this.expressionsToBeDeoptimizedByKey.values())for(let t of e)t.deoptimizeCache();for(let e of this.additionalExpressionsToBeDeoptimized)e.deoptimizePath(U)}deoptimizeCachedIntegerEntities(){for(let[e,t]of this.expressionsToBeDeoptimizedByKey.entries())if(typeof e==`string`&&mh.test(e))for(let e of t)e.deoptimizeCache();for(let e of this.additionalExpressionsToBeDeoptimized)e.deoptimizePath(Sf)}getMemberExpression(e){if(this.hasLostTrack||this.hasUnknownDeoptimizedProperty||!bf(e)||this.hasUnknownDeoptimizedInteger&&typeof e==`string`&&mh.test(e)||this.deoptimizedPaths.get(e))return W;let t=this.propertiesAndGettersByKey.get(e);return t?.length===1?t[0]:t||this.unmatchablePropertiesAndGetters.length>0||this.unknownIntegerProps.length>0&&typeof e==`string`&&mh.test(e)?W:null}getMemberExpressionAndTrackDeopt(e,t){if(!bf(e))return W;let n=this.getMemberExpression(e);if(n!==W&&!this.immutable){let n=this.expressionsToBeDeoptimizedByKey.get(e);n||this.expressionsToBeDeoptimizedByKey.set(e,n=[]),n.push(t)}return n}};let gh=e=>e===mf||e===hf||typeof e==`string`&&/^\d+$/.test(e),_h=new class extends Vf{deoptimizeArgumentsOnInteractionAtPath(e,t){e.type!==2||t.length!==1||gh(t[0])||Uf(e)}getLiteralValueAtPath(e){return e.length===1&&gh(e[0])?void 0:Rf}hasEffectsOnInteractionAtPath(e,{type:t}){return e.length>1||t===2}},vh=new hh(/* @__PURE__ */ new Map([[`hasOwnProperty`,uh],[`isPrototypeOf`,uh],[`propertyIsEnumerable`,uh],[`toLocaleString`,dh],[`toString`,dh],[`valueOf`,ph]]),_h,!0),yh=new hh([{key:mf,kind:`init`,property:W}],vh,!0),bh=new hh([{key:hf,kind:`init`,property:W}],vh,!0),xh=[{key:df,kind:`init`,property:W},{key:`length`,kind:`init`,property:Zm}],Sh=[new lh({callsArgs:[0],mutatesArgs:!1,mutatesSelfAsArray:`deopt-only`,returns:null,returnsPrimitive:Ym})],Ch=[new lh({callsArgs:[0],mutatesArgs:!1,mutatesSelfAsArray:`deopt-only`,returns:null,returnsPrimitive:Zm})],wh=[new lh({callsArgs:null,mutatesArgs:!1,mutatesSelfAsArray:!0,returns:()=>new hh(xh,Nh),returnsPrimitive:null})],Th=[new lh({callsArgs:null,mutatesArgs:!1,mutatesSelfAsArray:`deopt-only`,returns:()=>new hh(xh,Nh),returnsPrimitive:null})],Eh=[new lh({callsArgs:[0],mutatesArgs:!1,mutatesSelfAsArray:`deopt-only`,returns:()=>new hh(xh,Nh),returnsPrimitive:null})],Dh=[new lh({callsArgs:null,mutatesArgs:!0,mutatesSelfAsArray:!0,returns:null,returnsPrimitive:Zm})],Oh=[new lh({callsArgs:null,mutatesArgs:!1,mutatesSelfAsArray:!0,returns:null,returnsPrimitive:W})],kh=[new lh({callsArgs:null,mutatesArgs:!1,mutatesSelfAsArray:`deopt-only`,returns:null,returnsPrimitive:W})],Ah=[new lh({callsArgs:[0],mutatesArgs:!1,mutatesSelfAsArray:`deopt-only`,returns:null,returnsPrimitive:W})],jh=[new lh({callsArgs:null,mutatesArgs:!1,mutatesSelfAsArray:!0,returns:`self`,returnsPrimitive:null})],Mh=[new lh({callsArgs:[0],mutatesArgs:!1,mutatesSelfAsArray:!0,returns:`self`,returnsPrimitive:null})],Nh=new hh(/* @__PURE__ */ new Map([[`at`,kh],[`concat`,Th],[`copyWithin`,jh],[`entries`,Th],[`every`,Sh],[`fill`,jh],[`filter`,Eh],[`find`,Ah],[`findIndex`,Ch],[`findLast`,Ah],[`findLastIndex`,Ch],[`flat`,Th],[`flatMap`,Eh],[`forEach`,Ah],[`includes`,uh],[`indexOf`,fh],[`join`,dh],[`keys`,ph],[`lastIndexOf`,fh],[`map`,Eh],[`pop`,Oh],[`push`,Dh],[`reduce`,Ah],[`reduceRight`,Ah],[`reverse`,jh],[`shift`,Oh],[`slice`,Th],[`some`,Sh],[`sort`,Mh],[`splice`,wh],[`toLocaleString`,dh],[`toString`,dh],[`unshift`,Dh],[`values`,kh]]),vh,!0);var Ph=class extends J{deoptimizeArgumentsOnInteractionAtPath(e,t,n){(t.length>0||e.type===2)&&this.argument.deoptimizeArgumentsOnInteractionAtPath(e,U,n)}hasEffects(e){this.deoptimized||this.applyDeoptimizations();let{propertyReadSideEffects:t}=this.scope.context.options.treeshake;return this.argument.hasEffects(e)||t&&(t===`always`||this.argument.hasEffectsOnInteractionAtPath(U,Kf,e))}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.argument.includePath(U,e)}applyDeoptimizations(){this.deoptimized=!0,this.argument.deoptimizePath([V,V]),this.scope.context.requestTreeshakingPass()}},Fh=class extends J{constructor(){super(...arguments),this.objectEntity=null}deoptimizeArgumentsOnInteractionAtPath(e,t,n){this.getObjectEntity().deoptimizeArgumentsOnInteractionAtPath(e,t,n)}deoptimizePath(e){let t=this.getObjectEntity();t.deoptimizePath(e),e.length===1&&e[0]===`length`&&t.deoptimizePath(Sf)}getLiteralValueAtPath(e,t,n){return this.getObjectEntity().getLiteralValueAtPath(e,t,n)}getReturnExpressionWhenCalledAtPath(e,t,n,r){return this.getObjectEntity().getReturnExpressionWhenCalledAtPath(e,t,n,r)}hasEffectsOnInteractionAtPath(e,t,n){return this.getObjectEntity().hasEffectsOnInteractionAtPath(e,t,n)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations();for(let t of this.elements)t&&t?.includePath(U,e)}applyDeoptimizations(){this.deoptimized=!0;let e=!1;for(let t=0;t<this.elements.length;t++){let n=this.elements[t];n&&(e||n instanceof Ph)&&(e=!0,n.deoptimizePath(U))}this.scope.context.requestTreeshakingPass()}getObjectEntity(){if(this.objectEntity!==null)return this.objectEntity;let e=[{key:`length`,kind:`init`,property:Zm}],t=!1;for(let n=0;n<this.elements.length;n++){let r=this.elements[n];t||r instanceof Ph?r&&(t=!0,e.unshift({key:df,kind:`init`,property:r})):r?e.push({key:String(n),kind:`init`,property:r}):e.push({key:String(n),kind:`init`,property:qm})}return this.objectEntity=new hh(e,Nh)}};let Ih=Symbol(`Value Properties`),Lh=()=>Rf,Rh=()=>!1,zh=()=>!0,Bh=e=>({__proto__:null,[Ih]:{deoptimizeArgumentsOnCall:Om,getLiteralValue:()=>e,hasEffectsWhenCalled:zh}}),Vh={deoptimizeArgumentsOnCall:Om,getLiteralValue:Lh,hasEffectsWhenCalled:Rh},Hh={deoptimizeArgumentsOnCall:Om,getLiteralValue:Lh,hasEffectsWhenCalled:zh},Uh=({args:e})=>{for(let t=1;t<e.length;t++)e[t]?.deoptimizePath(U)},Wh=[V,V],Gh=({args:e})=>{for(let t=1;t<e.length;t++)e[t]?.deoptimizePath(Wh)},Kh=e=>({...e,deoptimizeArgumentsOnCall:Uh}),qh=e=>({...e,deoptimizeArgumentsOnCall:Gh}),Jh={deoptimizeArgumentsOnCall:Om,getLiteralValue:Lh,hasEffectsWhenCalled:({args:e})=>e.length>1&&!(e[1]instanceof Fh)},Yh={deoptimizeArgumentsOnCall:Om,getLiteralValue:Lh,hasEffectsWhenCalled({args:e}){let[t,n]=e;return n!==void 0&&!(n instanceof Fh)&&typeof n.getLiteralValueAtPath(H,Ef,{deoptimizeCache:Om})!=`number`}},Xh={deoptimizeArgumentsOnCall:Gh,getLiteralValue:Lh,hasEffectsWhenCalled({args:e},t){let[n,r]=e;return!(r instanceof Vf)||r.hasEffectsOnInteractionAtPath(U,Kf,t)}},Y={__proto__:null,[Ih]:Hh},X={__proto__:null,[Ih]:Vh},Zh={__proto__:null,[Ih]:Kh(Hh)},Qh={__proto__:null,[Ih]:qh(Hh)},$h={__proto__:null,[Ih]:{...Hh,deoptimizeArgumentsOnCall({args:[,e,...t]}){e?.deoptimizePath(Wh);for(let e of t)e.deoptimizePath(U)}}},eg={__proto__:null,[Ih]:Kh(Vh)},tg={__proto__:null,[Ih]:qh(Vh)},ng={__proto__:null,[Ih]:Xh},rg={__proto__:null,[Ih]:{deoptimizeArgumentsOnCall({args:[,e,...t]}){e?.deoptimizePath(U);for(let e of t)e.deoptimizePath(Wh)},getLiteralValue:Lh,hasEffectsWhenCalled:({args:e},t)=>e.length<=1||e[1].hasEffectsOnInteractionAtPath(xf,qf,t)}},Z={__proto__:null,[Ih]:Hh,prototype:Y},ig={__proto__:null,[Ih]:Vh,prototype:Y},ag={__proto__:null,[Ih]:Jh,prototype:Y},og={__proto__:null,[Ih]:qh(Jh),prototype:Y},sg={__proto__:null,[Ih]:qh(Vh),prototype:Y},cg={__proto__:null,[Ih]:Yh,from:Y,of:X,prototype:Y},lg={__proto__:null,[Ih]:Vh,supportedLocalesOf:ig},ug={deoptimizeArgumentsOnCall:Om,getLiteralValue:()=>ff,hasEffectsWhenCalled:zh},dg={global:Y,globalThis:Y,self:Y,window:Y,__proto__:null,[Ih]:Hh,Array:{__proto__:null,[Ih]:Kh(Hh),from:$h,isArray:X,of:eg,prototype:Y},ArrayBuffer:{__proto__:null,[Ih]:Vh,isView:X,prototype:Y},AggregateError:og,Atomics:Y,BigInt:Z,BigInt64Array:Z,BigUint64Array:Z,Boolean:ig,constructor:Z,DataView:ig,Date:{__proto__:null,[Ih]:Vh,now:X,parse:X,prototype:Y,UTC:X},decodeURI:X,decodeURIComponent:X,encodeURI:X,encodeURIComponent:X,Error:sg,escape:X,eval:Y,EvalError:sg,FinalizationRegistry:Z,Float32Array:cg,Float64Array:cg,Function:Z,hasOwnProperty:Y,Infinity:Y,Int16Array:cg,Int32Array:cg,Int8Array:cg,isFinite:X,isNaN:X,isPrototypeOf:Y,JSON:Y,Map:og,Math:{__proto__:null,[Ih]:Hh,abs:X,acos:X,acosh:X,asin:X,asinh:X,atan:X,atan2:X,atanh:X,cbrt:X,ceil:X,clz32:X,cos:X,cosh:X,exp:X,expm1:X,floor:X,fround:X,hypot:X,imul:X,log:X,log10:X,log1p:X,log2:X,max:X,min:X,pow:X,random:X,round:X,sign:X,sin:X,sinh:X,sqrt:X,tan:X,tanh:X,trunc:X},NaN:Y,Number:{__proto__:null,[Ih]:Vh,isFinite:X,isInteger:X,isNaN:X,isSafeInteger:X,parseFloat:X,parseInt:X,prototype:Y},Object:{__proto__:null,[Ih]:Kh(Vh),create:tg,defineProperty:rg,defineProperties:rg,freeze:rg,getOwnPropertyDescriptor:tg,getOwnPropertyDescriptors:tg,getOwnPropertyNames:X,getOwnPropertySymbols:X,getPrototypeOf:X,hasOwn:X,is:X,isExtensible:X,isFrozen:X,isSealed:X,keys:X,fromEntries:Qh,entries:ng,values:ng,prototype:Y},parseFloat:X,parseInt:X,Promise:{__proto__:null,[Ih]:Hh,all:Qh,allSettled:Qh,any:Qh,prototype:Y,race:Qh,reject:Zh,resolve:Zh},propertyIsEnumerable:Y,Proxy:{__proto__:null,[Ih]:{deoptimizeArgumentsOnCall:({args:[,e,t]})=>{if((n=t)instanceof J&&n.type===`ObjectExpression`&&!t.properties.some(e=>!function(e){return e instanceof J&&e.type===Yd}(e)))for(let n of t.properties)n.deoptimizeArgumentsOnInteractionAtPath({args:[null,e],type:2,withNew:!1},H,Ef);else{var n;e.deoptimizePath(U)}},getLiteralValue:Lh,hasEffectsWhenCalled:zh}},RangeError:sg,ReferenceError:sg,Reflect:Y,RegExp:ig,Set:og,SharedArrayBuffer:Z,String:{__proto__:null,[Ih]:Vh,fromCharCode:X,fromCodePoint:X,prototype:Y,raw:X},Symbol:{__proto__:null,[Ih]:Vh,for:X,keyFor:X,prototype:Y,asyncDispose:Bh(hf),dispose:Bh(mf),hasInstance:Bh(gf),toStringTag:Bh(pf)},SyntaxError:sg,toLocaleString:Y,toString:Y,TypeError:sg,Uint16Array:cg,Uint32Array:cg,Uint8Array:cg,Uint8ClampedArray:cg,unescape:X,URIError:sg,valueOf:Y,WeakMap:og,WeakRef:{__proto__:null,[Ih]:Kh(Hh),prototype:Y},WeakSet:ag,clearInterval:Z,clearTimeout:Z,console:{__proto__:null,[Ih]:Hh,assert:Z,clear:Z,count:Z,countReset:Z,debug:Z,dir:Z,dirxml:Z,error:Z,exception:Z,group:Z,groupCollapsed:Z,groupEnd:Z,info:Z,log:Z,table:Z,time:Z,timeEnd:Z,timeLog:Z,trace:Z,warn:Z},Intl:{__proto__:null,[Ih]:Hh,Collator:lg,DateTimeFormat:lg,DisplayNames:lg,ListFormat:lg,Locale:lg,NumberFormat:lg,PluralRules:lg,RelativeTimeFormat:lg,Segmenter:lg},setInterval:Z,setTimeout:Z,TextDecoder:Z,TextEncoder:Z,URL:{__proto__:null,[Ih]:Hh,prototype:Y,canParse:X},URLSearchParams:Z,AbortController:Z,AbortSignal:Z,addEventListener:Y,alert:Y,AnalyserNode:Z,Animation:Z,AnimationEvent:Z,applicationCache:Y,ApplicationCache:Z,ApplicationCacheErrorEvent:Z,atob:Y,Attr:Z,Audio:Z,AudioBuffer:Z,AudioBufferSourceNode:Z,AudioContext:Z,AudioDestinationNode:Z,AudioListener:Z,AudioNode:Z,AudioParam:Z,AudioProcessingEvent:Z,AudioScheduledSourceNode:Z,AudioWorkletNode:Z,BarProp:Z,BaseAudioContext:Z,BatteryManager:Z,BeforeUnloadEvent:Z,BiquadFilterNode:Z,Blob:Z,BlobEvent:Z,blur:Y,BroadcastChannel:Z,btoa:Y,ByteLengthQueuingStrategy:Z,Cache:Z,caches:Y,CacheStorage:Z,cancelAnimationFrame:Y,cancelIdleCallback:Y,CanvasCaptureMediaStreamTrack:Z,CanvasGradient:Z,CanvasPattern:Z,CanvasRenderingContext2D:Z,ChannelMergerNode:Z,ChannelSplitterNode:Z,CharacterData:Z,clientInformation:Y,ClipboardEvent:Z,close:Y,closed:Y,CloseEvent:Z,Comment:Z,CompositionEvent:Z,confirm:Y,ConstantSourceNode:Z,ConvolverNode:Z,CountQueuingStrategy:Z,createImageBitmap:Y,Credential:Z,CredentialsContainer:Z,crypto:Y,Crypto:Z,CryptoKey:Z,CSS:Z,CSSConditionRule:Z,CSSFontFaceRule:Z,CSSGroupingRule:Z,CSSImportRule:Z,CSSKeyframeRule:Z,CSSKeyframesRule:Z,CSSMediaRule:Z,CSSNamespaceRule:Z,CSSPageRule:Z,CSSRule:Z,CSSRuleList:Z,CSSStyleDeclaration:Z,CSSStyleRule:Z,CSSStyleSheet:Z,CSSSupportsRule:Z,CustomElementRegistry:Z,customElements:Y,CustomEvent:{__proto__:null,[Ih]:{deoptimizeArgumentsOnCall({args:e}){e[2]?.deoptimizePath([`detail`])},getLiteralValue:Lh,hasEffectsWhenCalled:Rh},prototype:Y},DataTransfer:Z,DataTransferItem:Z,DataTransferItemList:Z,defaultstatus:Y,defaultStatus:Y,DelayNode:Z,DeviceMotionEvent:Z,DeviceOrientationEvent:Z,devicePixelRatio:Y,dispatchEvent:Y,document:Y,Document:Z,DocumentFragment:Z,DocumentType:Z,DOMError:Z,DOMException:Z,DOMImplementation:Z,DOMMatrix:Z,DOMMatrixReadOnly:Z,DOMParser:Z,DOMPoint:Z,DOMPointReadOnly:Z,DOMQuad:Z,DOMRect:Z,DOMRectReadOnly:Z,DOMStringList:Z,DOMStringMap:Z,DOMTokenList:Z,DragEvent:Z,DynamicsCompressorNode:Z,Element:Z,ErrorEvent:Z,Event:Z,EventSource:Z,EventTarget:Z,external:Y,fetch:Y,File:Z,FileList:Z,FileReader:Z,find:Y,focus:Y,FocusEvent:Z,FontFace:Z,FontFaceSetLoadEvent:Z,FormData:Z,frames:Y,GainNode:Z,Gamepad:Z,GamepadButton:Z,GamepadEvent:Z,getComputedStyle:Y,getSelection:Y,HashChangeEvent:Z,Headers:Z,history:Y,History:Z,HTMLAllCollection:Z,HTMLAnchorElement:Z,HTMLAreaElement:Z,HTMLAudioElement:Z,HTMLBaseElement:Z,HTMLBodyElement:Z,HTMLBRElement:Z,HTMLButtonElement:Z,HTMLCanvasElement:Z,HTMLCollection:Z,HTMLContentElement:Z,HTMLDataElement:Z,HTMLDataListElement:Z,HTMLDetailsElement:Z,HTMLDialogElement:Z,HTMLDirectoryElement:Z,HTMLDivElement:Z,HTMLDListElement:Z,HTMLDocument:Z,HTMLElement:Z,HTMLEmbedElement:Z,HTMLFieldSetElement:Z,HTMLFontElement:Z,HTMLFormControlsCollection:Z,HTMLFormElement:Z,HTMLFrameElement:Z,HTMLFrameSetElement:Z,HTMLHeadElement:Z,HTMLHeadingElement:Z,HTMLHRElement:Z,HTMLHtmlElement:Z,HTMLIFrameElement:Z,HTMLImageElement:Z,HTMLInputElement:Z,HTMLLabelElement:Z,HTMLLegendElement:Z,HTMLLIElement:Z,HTMLLinkElement:Z,HTMLMapElement:Z,HTMLMarqueeElement:Z,HTMLMediaElement:Z,HTMLMenuElement:Z,HTMLMetaElement:Z,HTMLMeterElement:Z,HTMLModElement:Z,HTMLObjectElement:Z,HTMLOListElement:Z,HTMLOptGroupElement:Z,HTMLOptionElement:Z,HTMLOptionsCollection:Z,HTMLOutputElement:Z,HTMLParagraphElement:Z,HTMLParamElement:Z,HTMLPictureElement:Z,HTMLPreElement:Z,HTMLProgressElement:Z,HTMLQuoteElement:Z,HTMLScriptElement:Z,HTMLSelectElement:Z,HTMLShadowElement:Z,HTMLSlotElement:Z,HTMLSourceElement:Z,HTMLSpanElement:Z,HTMLStyleElement:Z,HTMLTableCaptionElement:Z,HTMLTableCellElement:Z,HTMLTableColElement:Z,HTMLTableElement:Z,HTMLTableRowElement:Z,HTMLTableSectionElement:Z,HTMLTemplateElement:Z,HTMLTextAreaElement:Z,HTMLTimeElement:Z,HTMLTitleElement:Z,HTMLTrackElement:Z,HTMLUListElement:Z,HTMLUnknownElement:Z,HTMLVideoElement:Z,IDBCursor:Z,IDBCursorWithValue:Z,IDBDatabase:Z,IDBFactory:Z,IDBIndex:Z,IDBKeyRange:Z,IDBObjectStore:Z,IDBOpenDBRequest:Z,IDBRequest:Z,IDBTransaction:Z,IDBVersionChangeEvent:Z,IdleDeadline:Z,IIRFilterNode:Z,Image:Z,ImageBitmap:Z,ImageBitmapRenderingContext:Z,ImageCapture:Z,ImageData:Z,indexedDB:Y,innerHeight:Y,innerWidth:Y,InputEvent:Z,IntersectionObserver:Z,IntersectionObserverEntry:Z,isSecureContext:Y,KeyboardEvent:Z,KeyframeEffect:Z,length:Y,localStorage:Y,location:Y,Location:Z,locationbar:Y,matchMedia:Y,MediaDeviceInfo:Z,MediaDevices:Z,MediaElementAudioSourceNode:Z,MediaEncryptedEvent:Z,MediaError:Z,MediaKeyMessageEvent:Z,MediaKeySession:Z,MediaKeyStatusMap:Z,MediaKeySystemAccess:Z,MediaList:Z,MediaQueryList:Z,MediaQueryListEvent:Z,MediaRecorder:Z,MediaSettingsRange:Z,MediaSource:Z,MediaStream:Z,MediaStreamAudioDestinationNode:Z,MediaStreamAudioSourceNode:Z,MediaStreamEvent:Z,MediaStreamTrack:Z,MediaStreamTrackEvent:Z,menubar:Y,MessageChannel:Z,MessageEvent:Z,MessagePort:Z,MIDIAccess:Z,MIDIConnectionEvent:Z,MIDIInput:Z,MIDIInputMap:Z,MIDIMessageEvent:Z,MIDIOutput:Z,MIDIOutputMap:Z,MIDIPort:Z,MimeType:Z,MimeTypeArray:Z,MouseEvent:Z,moveBy:Y,moveTo:Y,MutationEvent:Z,MutationObserver:Z,MutationRecord:Z,name:Y,NamedNodeMap:Z,NavigationPreloadManager:Z,navigator:Y,Navigator:Z,NetworkInformation:Z,Node:Z,NodeFilter:Y,NodeIterator:Z,NodeList:Z,Notification:Z,OfflineAudioCompletionEvent:Z,OfflineAudioContext:Z,offscreenBuffering:Y,OffscreenCanvas:Z,open:Y,openDatabase:Y,Option:Z,origin:Y,OscillatorNode:Z,outerHeight:Y,outerWidth:Y,PageTransitionEvent:Z,pageXOffset:Y,pageYOffset:Y,PannerNode:Z,parent:Y,Path2D:Z,PaymentAddress:Z,PaymentRequest:Z,PaymentRequestUpdateEvent:Z,PaymentResponse:Z,performance:Y,Performance:Z,PerformanceEntry:Z,PerformanceLongTaskTiming:Z,PerformanceMark:Z,PerformanceMeasure:Z,PerformanceNavigation:Z,PerformanceNavigationTiming:Z,PerformanceObserver:Z,PerformanceObserverEntryList:Z,PerformancePaintTiming:Z,PerformanceResourceTiming:Z,PerformanceTiming:Z,PeriodicWave:Z,Permissions:Z,PermissionStatus:Z,personalbar:Y,PhotoCapabilities:Z,Plugin:Z,PluginArray:Z,PointerEvent:Z,PopStateEvent:Z,postMessage:Y,Presentation:Z,PresentationAvailability:Z,PresentationConnection:Z,PresentationConnectionAvailableEvent:Z,PresentationConnectionCloseEvent:Z,PresentationConnectionList:Z,PresentationReceiver:Z,PresentationRequest:Z,print:Y,ProcessingInstruction:Z,ProgressEvent:Z,PromiseRejectionEvent:Z,prompt:Y,PushManager:Z,PushSubscription:Z,PushSubscriptionOptions:Z,queueMicrotask:Y,RadioNodeList:Z,Range:Z,ReadableStream:Z,RemotePlayback:Z,removeEventListener:Y,Request:Z,requestAnimationFrame:Y,requestIdleCallback:Y,resizeBy:Y,ResizeObserver:Z,ResizeObserverEntry:Z,resizeTo:Y,Response:Z,RTCCertificate:Z,RTCDataChannel:Z,RTCDataChannelEvent:Z,RTCDtlsTransport:Z,RTCIceCandidate:Z,RTCIceTransport:Z,RTCPeerConnection:Z,RTCPeerConnectionIceEvent:Z,RTCRtpReceiver:Z,RTCRtpSender:Z,RTCSctpTransport:Z,RTCSessionDescription:Z,RTCStatsReport:Z,RTCTrackEvent:Z,screen:Y,Screen:Z,screenLeft:Y,ScreenOrientation:Z,screenTop:Y,screenX:Y,screenY:Y,ScriptProcessorNode:Z,scroll:Y,scrollbars:Y,scrollBy:Y,scrollTo:Y,scrollX:Y,scrollY:Y,SecurityPolicyViolationEvent:Z,Selection:Z,ServiceWorker:Z,ServiceWorkerContainer:Z,ServiceWorkerRegistration:Z,sessionStorage:Y,ShadowRoot:Z,SharedWorker:Z,SourceBuffer:Z,SourceBufferList:Z,speechSynthesis:Y,SpeechSynthesisEvent:Z,SpeechSynthesisUtterance:Z,StaticRange:Z,status:Y,statusbar:Y,StereoPannerNode:Z,stop:Y,Storage:Z,StorageEvent:Z,StorageManager:Z,styleMedia:Y,StyleSheet:Z,StyleSheetList:Z,SubtleCrypto:Z,SVGAElement:Z,SVGAngle:Z,SVGAnimatedAngle:Z,SVGAnimatedBoolean:Z,SVGAnimatedEnumeration:Z,SVGAnimatedInteger:Z,SVGAnimatedLength:Z,SVGAnimatedLengthList:Z,SVGAnimatedNumber:Z,SVGAnimatedNumberList:Z,SVGAnimatedPreserveAspectRatio:Z,SVGAnimatedRect:Z,SVGAnimatedString:Z,SVGAnimatedTransformList:Z,SVGAnimateElement:Z,SVGAnimateMotionElement:Z,SVGAnimateTransformElement:Z,SVGAnimationElement:Z,SVGCircleElement:Z,SVGClipPathElement:Z,SVGComponentTransferFunctionElement:Z,SVGDefsElement:Z,SVGDescElement:Z,SVGDiscardElement:Z,SVGElement:Z,SVGEllipseElement:Z,SVGFEBlendElement:Z,SVGFEColorMatrixElement:Z,SVGFEComponentTransferElement:Z,SVGFECompositeElement:Z,SVGFEConvolveMatrixElement:Z,SVGFEDiffuseLightingElement:Z,SVGFEDisplacementMapElement:Z,SVGFEDistantLightElement:Z,SVGFEDropShadowElement:Z,SVGFEFloodElement:Z,SVGFEFuncAElement:Z,SVGFEFuncBElement:Z,SVGFEFuncGElement:Z,SVGFEFuncRElement:Z,SVGFEGaussianBlurElement:Z,SVGFEImageElement:Z,SVGFEMergeElement:Z,SVGFEMergeNodeElement:Z,SVGFEMorphologyElement:Z,SVGFEOffsetElement:Z,SVGFEPointLightElement:Z,SVGFESpecularLightingElement:Z,SVGFESpotLightElement:Z,SVGFETileElement:Z,SVGFETurbulenceElement:Z,SVGFilterElement:Z,SVGForeignObjectElement:Z,SVGGElement:Z,SVGGeometryElement:Z,SVGGradientElement:Z,SVGGraphicsElement:Z,SVGImageElement:Z,SVGLength:Z,SVGLengthList:Z,SVGLinearGradientElement:Z,SVGLineElement:Z,SVGMarkerElement:Z,SVGMaskElement:Z,SVGMatrix:Z,SVGMetadataElement:Z,SVGMPathElement:Z,SVGNumber:Z,SVGNumberList:Z,SVGPathElement:Z,SVGPatternElement:Z,SVGPoint:Z,SVGPointList:Z,SVGPolygonElement:Z,SVGPolylineElement:Z,SVGPreserveAspectRatio:Z,SVGRadialGradientElement:Z,SVGRect:Z,SVGRectElement:Z,SVGScriptElement:Z,SVGSetElement:Z,SVGStopElement:Z,SVGStringList:Z,SVGStyleElement:Z,SVGSVGElement:Z,SVGSwitchElement:Z,SVGSymbolElement:Z,SVGTextContentElement:Z,SVGTextElement:Z,SVGTextPathElement:Z,SVGTextPositioningElement:Z,SVGTitleElement:Z,SVGTransform:Z,SVGTransformList:Z,SVGTSpanElement:Z,SVGUnitTypes:Z,SVGUseElement:Z,SVGViewElement:Z,TaskAttributionTiming:Z,Text:Z,TextEvent:Z,TextMetrics:Z,TextTrack:Z,TextTrackCue:Z,TextTrackCueList:Z,TextTrackList:Z,TimeRanges:Z,toolbar:Y,top:Y,Touch:Z,TouchEvent:Z,TouchList:Z,TrackEvent:Z,TransitionEvent:Z,TreeWalker:Z,UIEvent:Z,ValidityState:Z,visualViewport:Y,VisualViewport:Z,VTTCue:Z,WaveShaperNode:Z,WebAssembly:Y,WebGL2RenderingContext:Z,WebGLActiveInfo:Z,WebGLBuffer:Z,WebGLContextEvent:Z,WebGLFramebuffer:Z,WebGLProgram:Z,WebGLQuery:Z,WebGLRenderbuffer:Z,WebGLRenderingContext:Z,WebGLSampler:Z,WebGLShader:Z,WebGLShaderPrecisionFormat:Z,WebGLSync:Z,WebGLTexture:Z,WebGLTransformFeedback:Z,WebGLUniformLocation:Z,WebGLVertexArrayObject:Z,WebSocket:Z,WheelEvent:Z,Window:Z,Worker:Z,WritableStream:Z,XMLDocument:Z,XMLHttpRequest:Z,XMLHttpRequestEventTarget:Z,XMLHttpRequestUpload:Z,XMLSerializer:Z,XPathEvaluator:Z,XPathExpression:Z,XPathResult:Z,XSLTProcessor:Z};for(let e of[`window`,`global`,`self`,`globalThis`])dg[e]=dg;function fg(e){let t=dg;for(let n of e){if(typeof n!=`string`)return null;if(t=t[n],!t)return e[0]===`Symbol`&&e.length===2?ug:null}return t[Ih]}var pg=class extends hm{constructor(e){super(e),this.markReassigned()}deoptimizeArgumentsOnInteractionAtPath(e,t,n){switch(e.type){case 0:case 1:fg([this.name,...t].slice(0,-1))||super.deoptimizeArgumentsOnInteractionAtPath(e,t,n);return;case 2:{let r=fg([this.name,...t]);r?r.deoptimizeArgumentsOnCall(e):super.deoptimizeArgumentsOnInteractionAtPath(e,t,n);return}}}getLiteralValueAtPath(e,t,n){let r=fg([this.name,...e]);return r?r.getLiteralValue():Rf}hasEffectsOnInteractionAtPath(e,t,n){switch(t.type){case 0:return e.length===0?this.name!==`undefined`&&!fg([this.name]):!fg([this.name,...e].slice(0,-1));case 1:return!0;case 2:{let r=fg([this.name,...e]);return!r||r.hasEffectsWhenCalled(t,n)}}}};let mg=(e,t)=>{let{length:n}=e,{length:r}=t;return n===0?t:r===0?e:n+r>6?[...e,...t.slice(0,5-e.length),`UnknownKey`]:[...e,...t]};var hg=class extends hm{constructor(e,t,n,r,i,a){super(e),this.init=n,this.initPath=r,this.kind=a,this.calledFromTryStatement=!1,this.additionalInitializers=null,this.assignedFunctions=null,this.includedPathTracker=new kf,this.expressionsToBeDeoptimized=[],this.declarations=t?[t]:[],this.deoptimizationTracker=i.deoptimizationTracker,this.module=i.module}addDeclaration(e,t){this.declarations.push(e),this.markInitializersForDeoptimization().push(t)}consolidateInitializers(){if(this.additionalInitializers)for(let e of this.additionalInitializers)e.deoptimizePath(U)}deoptimizeArgumentsOnInteractionAtPath(e,t,n){this.isReassigned||t.length+this.initPath.length>6?Uf(e):n.withTrackedEntityAtPath(t,this.init,()=>{this.init.deoptimizeArgumentsOnInteractionAtPath(e,[...this.initPath,...t],n)},void 0)}deoptimizePath(e){if(!this.isReassigned&&!this.deoptimizationTracker.trackEntityAtPathAndGetIfTracked(e,this)){if(e.length===0){this.markReassigned();let e=this.expressionsToBeDeoptimized;this.expressionsToBeDeoptimized=af;for(let t of e)t.deoptimizeCache();this.init.deoptimizePath([...this.initPath,V])}else this.init.deoptimizePath(mg(this.initPath,e))}}getKnownFunctionAtPath(e,t,n){return this.isReassigned||e.length+this.initPath.length>6?null:t.withTrackedEntityAtPath(e,this.init,()=>(this.expressionsToBeDeoptimized.push(n),this.init.getKnownFunctionAtPath([...this.initPath,...e],t,n)),null)}getLiteralValueAtPath(e,t,n){return this.isReassigned||e.length+this.initPath.length>6?Rf:t.withTrackedEntityAtPath(e,this.init,()=>(this.expressionsToBeDeoptimized.push(n),this.init.getLiteralValueAtPath([...this.initPath,...e],t,n)),Rf)}getReturnExpressionWhenCalledAtPath(e,t,n,r){return this.isReassigned||e.length+this.initPath.length>6?Hf:n.withTrackedEntityAtPath(e,this.init,()=>(this.expressionsToBeDeoptimized.push(r),this.init.getReturnExpressionWhenCalledAtPath([...this.initPath,...e],t,n,r)),Hf)}hasEffectsOnInteractionAtPath(e,t,n){if(e.length+this.initPath.length>6)return!0;switch(t.type){case 0:return!!this.isReassigned||!n.accessed.trackEntityAtPathAndGetIfTracked(e,this)&&this.init.hasEffectsOnInteractionAtPath([...this.initPath,...e],t,n);case 1:return!!this.included||e.length!==0&&(!!this.isReassigned||!n.assigned.trackEntityAtPathAndGetIfTracked(e,this)&&this.init.hasEffectsOnInteractionAtPath([...this.initPath,...e],t,n));case 2:return!!this.isReassigned||!(t.withNew?n.instantiated:n.called).trackEntityAtPathAndGetIfTracked(e,t.args,this)&&this.init.hasEffectsOnInteractionAtPath([...this.initPath,...e],t,n)}}includePath(e,t){if(!this.includedPathTracker.includePathAndGetIfIncluded(e)){this.module.scope.context.requestTreeshakingPass(),this.included||this.module.scope.context.newlyIncludedVariableInits.add(this.init),super.includePath(e,t);for(let e of this.declarations){e.included||e.include(t,!1);let n=e.parent;for(;!n.included&&(n.includeNode(t),n.type!==Jd);)n=n.parent}e.length>0&&(this.init.includePath(mg(this.initPath,e),t),this.additionalInitializers?.forEach(e=>e.includePath(U,t)))}}includeCallArgumentsWhenCalledAtPath(e,t,n){if(this.isReassigned)return Wf(t,n),void(e.length===0&&this.includeCallArgumentsOfAssignedTryCatchHelpers(t,n));n.includedCallArguments.has(this.init)||e.length+this.initPath.length>6?Wf(t,n):(n.includedCallArguments.add(this.init),this.init.includeCallArgumentsWhenCalledAtPath([...this.initPath,...e],t,n),n.includedCallArguments.delete(this.init))}includeCallArgumentsOfAssignedTryCatchHelpers(e,t){this.initPath.length===0&&this.includeCallArgumentsOfTryCatchHelper(this.init,e,t);for(let n of this.assignedFunctions??af)this.includeCallArgumentsOfTryCatchHelper(n,e,t)}includeCallArgumentsOfTryCatchHelper(e,t,n){(Bm(e)||Vm(e))&&e.scope.hasParameterCalledFromTryStatement()&&e.scope.includeCallArguments(t,n)}addReassignedValue(e){(Bm(e)||Vm(e))&&(this.assignedFunctions??=[]).push(e)}markCalledFromTryStatement(){this.calledFromTryStatement=!0}markInitializersForDeoptimization(){return this.additionalInitializers===null&&(this.additionalInitializers=[this.init],this.init=W,this.markReassigned()),this.additionalInitializers}};let gg=/* @__PURE__ */ new Set([`class`,`const`,`let`,`var`,`using`,`await using`]);var _g=class extends J{constructor(){super(...arguments),this.variable=null,this.isVariableReference=!1}get isTDZAccess(){return If(this.flags,4)?If(this.flags,8):null}set isTDZAccess(e){this.flags=Lf(this.flags,4,!0),this.flags=Lf(this.flags,8,e)}deoptimizeArgumentsOnInteractionAtPath(e,t,n){this.variable.deoptimizeArgumentsOnInteractionAtPath(e,t,n)}deoptimizePath(e){e.length!==0||this.scope.contains(this.name)||this.disallowImportReassignment(),this.variable?.deoptimizePath(e)}getKnownFunctionAtPath(e,t,n){return this.getVariableRespectingTDZ().getKnownFunctionAtPath(e,t,n)}getLiteralValueAtPath(e,t,n){return this.getVariableRespectingTDZ().getLiteralValueAtPath(e,t,n)}getReturnExpressionWhenCalledAtPath(e,t,n,r){let[i,a]=this.getVariableRespectingTDZ().getReturnExpressionWhenCalledAtPath(e,t,n,r);return[i,a||this.isPureFunction(e)]}hasEffects(e){return this.deoptimized||this.applyDeoptimizations(),!(!this.isPossibleTDZ()||this.variable.kind===`var`)||this.scope.context.options.treeshake.unknownGlobalSideEffects&&this.variable instanceof pg&&!this.isPureFunction(H)&&this.variable.hasEffectsOnInteractionAtPath(H,Kf,e)}hasEffectsOnInteractionAtPath(e,t,n){switch(t.type){case 0:return this.variable!==null&&!this.isPureFunction(e)&&this.getVariableRespectingTDZ().hasEffectsOnInteractionAtPath(e,t,n);case 1:return(e.length>0?this.getVariableRespectingTDZ():this.variable).hasEffectsOnInteractionAtPath(e,t,n);case 2:return!this.isPureFunction(e)&&this.getVariableRespectingTDZ().hasEffectsOnInteractionAtPath(e,t,n)}}include(e,t){this.included||this.includeNode(e),t&&this.variable?.includePath(U,e)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.variable!==null&&this.scope.context.includeVariableInModule(this.variable,H,e)}includePath(e,t){this.included?e.length>0&&this.variable?.includePath(e,t):(this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.variable!==null&&this.scope.context.includeVariableInModule(this.variable,e,t))}includeCallArgumentsWhenCalledAtPath(e,t,n){this.variable.includeCallArgumentsWhenCalledAtPath(e,t,n)}isPossibleTDZ(){let e=this.isTDZAccess;if(e!==null)return e;if(!(this.variable instanceof hg&&this.variable.kind&&gg.has(this.variable.kind)&&this.variable.module.hasTreeShakingPassStarted))return this.isTDZAccess=!1;let t;return this.isTDZAccess=this.variable.declarations&&this.variable.declarations.length===1&&(t=this.variable.declarations[0])&&this.start<t.start&&vg(this)===vg(t)?!0:!this.variable.initReached}applyDeoptimizations(){this.deoptimized=!0,this.variable instanceof hg&&(this.variable.module.isExecuted||Dm(this.variable.module),this.variable.consolidateInitializers(),this.scope.context.requestTreeshakingPass()),this.isVariableReference&&(this.variable.addUsedPlace(this),this.scope.context.requestTreeshakingPass())}disallowImportReassignment(){return this.scope.context.error(Wp(this.name,this.scope.context.module.id),this.start)}getVariableRespectingTDZ(){return this.isPossibleTDZ()?W:this.variable}isPureFunction(e){let t=this.scope.context.manualPureFunctions[this.name];for(let n of e){if(!t)return!1;if(t[mm])return!0;t=t[n]}return t?.[mm]}};function vg(e){for(;e&&!/^Program|Function/.test(e.type);)e=e.parent;return e}var yg=class extends Vf{constructor(e,t){super(),this.object=e,this.path=t}deoptimizeArgumentsOnInteractionAtPath(e,t,n){this.object.deoptimizeArgumentsOnInteractionAtPath(e,[...this.path,...t],n)}deoptimizePath(e){this.object.deoptimizePath([...this.path,...e])}getLiteralValueAtPath(e,t,n){return this.object.getLiteralValueAtPath([...this.path,...e],t,n)}getReturnExpressionWhenCalledAtPath(e,t,n,r){return this.object.getReturnExpressionWhenCalledAtPath([...this.path,...e],t,n,r)}hasEffectsOnInteractionAtPath(e,t,n){return this.object.hasEffectsOnInteractionAtPath([...this.path,...e],t,n)}},bg=class extends _g{constructor(){super(...arguments),this.variable=null}get isDestructuringDeoptimized(){return If(this.flags,16777216)}set isDestructuringDeoptimized(e){this.flags=Lf(this.flags,16777216,e)}addExportedVariables(e,t){t.has(this.variable)&&e.push(this.variable)}bind(){!this.variable&&Nf(this,this.parent)&&(this.variable=this.scope.findVariable(this.name),this.variable.addReference(this),this.isVariableReference=!0,this.assignmentInteraction&&this.variable.markTargetOfAssignment())}declare(e,t,n){let r,{treeshake:i}=this.scope.context.options;return e===`parameter`?r=this.scope.addParameterDeclaration(this,t):(r=this.scope.addDeclaration(this,this.scope.context,n,t,e),e===`var`&&i&&i.correctVarValueBeforeDeclaration&&r.markInitializersForDeoptimization()),[this.variable=r]}deoptimizeAssignment(e,t){this.deoptimizePath(H),e.length===0&&this.variable?.addReassignedValue(t),t.deoptimizePath([...e,V])}hasEffectsWhenDestructuring(e,t,n){return t.length>0&&n.hasEffectsOnInteractionAtPath(t,Kf,e)}includeDestructuredIfNecessary(e,t,n){t.length>0&&!this.isDestructuringDeoptimized&&(this.isDestructuringDeoptimized=!0,n.deoptimizeArgumentsOnInteractionAtPath({args:[new yg(n,t.slice(0,-1))],type:0},t,Ef));let{propertyReadSideEffects:r}=this.scope.context.options.treeshake,i=this.included;return(i||=t.length>0&&!e.brokenFlow&&r&&(r===`always`||n.hasEffectsOnInteractionAtPath(t,Kf,Ff())))&&(this.variable&&!this.variable.included&&this.scope.context.includeVariableInModule(this.variable,H,e),n.includePath(t,e)),!this.included&&i&&this.includeNode(e),this.included}markDeclarationReached(){this.variable.initReached=!0}isDeclarationInDestructuringPattern(){let e=this.parent;for(;e.type===Yd||e.type===`AssignmentPattern`||e.type===Xd;)e=e.parent;return e.type===`ObjectPattern`||e.type===`ArrayPattern`}render(e,{snippets:{getPropertyAccess:t},useOriginalName:n},{renderedParentType:r,isCalleeOfRenderedParent:i,isShorthandProperty:a}=nf){if(this.variable){let o=this.variable.getName(t,n);o!==this.name&&(e.overwrite(this.start,this.end,o,{contentOnly:!0,storeName:!0}),a&&e.prependRight(this.start,`${this.name}: `)),o===`eval`&&r===Wd&&i&&e.appendRight(this.start,`0, `)}}};function xg(e,t,n){let r=e,i=1;for(;t.has(r)||Td.has(r)||n?.has(r);)r=`${e}$${wd(i++)}`;return t.add(r),r}var Sg=class{constructor(){this.children=[],this.variables=/* @__PURE__ */ new Map}addDeclaration(e,t,n,r,i){let a=e.name,o=this.hoistedVariables?.get(a)||this.variables.get(a);if(o){if(i===`var`&&o.kind===`var`)return o.addDeclaration(e,n),o;t.error(am(a),e.start)}let s=new hg(e.name,e,n,r,t,i);return this.variables.set(a,s),s}addHoistedVariable(e,t){(this.hoistedVariables||=/* @__PURE__ */ new Map).set(e,t)}contains(e){return this.variables.has(e)}findVariable(e){throw Error(`Internal Error: findVariable needs to be implemented by a subclass`)}},Cg=class e extends Sg{constructor(e,t){super(),this.parent=e,this.context=t,this.accessedOutsideVariables=/* @__PURE__ */ new Map,e.children.push(this)}addAccessedDynamicImport(t){(this.accessedDynamicImports||=/* @__PURE__ */ new Set).add(t),this.parent instanceof e&&this.parent.addAccessedDynamicImport(t)}addAccessedGlobals(t,n){let r=n.get(this)||/* @__PURE__ */ new Set;for(let e of t)r.add(e);n.set(this,r),this.parent instanceof e&&this.parent.addAccessedGlobals(t,n)}addNamespaceMemberAccess(e,t){this.accessedOutsideVariables.set(e,t),this.parent.addNamespaceMemberAccess(e,t)}addReturnExpression(t){this.parent instanceof e&&this.parent.addReturnExpression(t)}addUsedOutsideNames(e,t,n,r){for(let r of this.accessedOutsideVariables.values())this.addUsedOutsideVariableName(r,e,t,n);if(this.hoistedVariables)for(let r of this.hoistedVariables.values())this.addUsedOutsideVariableName(r,e,t,n);let i=r.get(this);if(i)for(let t of i)e.add(t)}contains(e){return this.variables.has(e)||this.parent.contains(e)}deconflict(e,t,n){let r=/* @__PURE__ */ new Set;if(this.addUsedOutsideNames(r,e,t,n),this.accessedDynamicImports)for(let e of this.accessedDynamicImports)e.inlineNamespace&&r.add(e.inlineNamespace.getBaseVariableName());for(let[e,t]of this.variables)(t.included||t.alwaysRendered)&&t.setRenderNames(null,xg(e,r,t.forbiddenNames));for(let r of this.children)r.deconflict(e,t,n)}addUsedOutsideVariableName(e,t,n,r){e.included&&(t.add(e.getBaseVariableName()),n===`system`&&r.has(e)&&t.add(`exports`))}findLexicalBoundary(){return this.parent.findLexicalBoundary()}findGlobal(e){let t=this.parent.findVariable(e);return this.accessedOutsideVariables.set(e,t),t}findVariable(e){let t=this.variables.get(e)||this.accessedOutsideVariables.get(e);if(t)return t;let n=this.parent.findVariable(e);return this.accessedOutsideVariables.set(e,n),n}};function wg(e,t){for(let n of e)if(n.hasEffects(t))return!0;return!1}var Tg=class extends J{constructor(){super(...arguments),this.accessedValue=null}get computed(){return If(this.flags,1024)}set computed(e){this.flags=Lf(this.flags,1024,e)}deoptimizeArgumentsOnInteractionAtPath(e,t,n){return e.type===0&&this.kind===`get`&&t.length===0||e.type===1&&this.kind===`set`&&t.length===0?this.value.deoptimizeArgumentsOnInteractionAtPath({args:e.args,type:2,withNew:!1},H,n):void this.getAccessedValue()[0].deoptimizeArgumentsOnInteractionAtPath(e,t,n)}includeCallArgumentsWhenCalledAtPath(e,t,n){this.getAccessedValue()[0].includeCallArgumentsWhenCalledAtPath(e,t,n)}deoptimizeCache(){}deoptimizePath(e){this.getAccessedValue()[0].deoptimizePath(e)}getKnownFunctionAtPath(e,t,n){return this.kind===`get`||this.kind===`set`?null:this.value.getKnownFunctionAtPath(e,t,n)}getLiteralValueAtPath(e,t,n){return this.getAccessedValue()[0].getLiteralValueAtPath(e,t,n)}getReturnExpressionWhenCalledAtPath(e,t,n,r){return this.getAccessedValue()[0].getReturnExpressionWhenCalledAtPath(e,t,n,r)}hasEffects(e){return this.key.hasEffects(e)}hasEffectsOnInteractionAtPath(e,t,n){return this.kind===`get`&&t.type===0&&e.length===0||this.kind===`set`&&t.type===1?this.value.hasEffectsOnInteractionAtPath(H,{args:t.args,type:2,withNew:!1},n):this.getAccessedValue()[0].hasEffectsOnInteractionAtPath(e,t,n)}getAccessedValue(){return this.accessedValue===null?this.kind===`get`?(this.accessedValue=Hf,this.accessedValue=this.value.getReturnExpressionWhenCalledAtPath(H,Jf,Ef,this)):this.accessedValue=[this.value,!1]:this.accessedValue}};Tg.prototype.includeNode=Rm,Tg.prototype.applyDeoptimizations=zm;var Eg=class extends Tg{hasEffects(e){return super.hasEffects(e)||wg(this.decorators,e)}},Dg=class extends J{get computed(){return If(this.flags,1024)}set computed(e){this.flags=Lf(this.flags,1024,e)}deoptimizeArgumentsOnInteractionAtPath(e,t,n){this.value?.deoptimizeArgumentsOnInteractionAtPath(e,t,n)}deoptimizePath(e){this.value?.deoptimizePath(e)}getLiteralValueAtPath(e,t,n){return this.value?this.value.getLiteralValueAtPath(e,t,n):Rf}getReturnExpressionWhenCalledAtPath(e,t,n,r){return this.value?this.value.getReturnExpressionWhenCalledAtPath(e,t,n,r):Hf}hasEffects(e){return this.key.hasEffects(e)||this.static&&!!this.value?.hasEffects(e)||wg(this.decorators,e)}hasEffectsOnInteractionAtPath(e,t,n){return!this.value||this.value.hasEffectsOnInteractionAtPath(e,t,n)}includeNode(e){this.included=!0,this.value?.includePath(U,e);for(let t of this.decorators)t.includePath(U,e)}};Dg.prototype.applyDeoptimizations=zm;var Og=class extends Cg{constructor(e){super(e,e.context)}addDeclaration(e,t,n,r,i){if(i===`var`){let a=e.name,o=this.hoistedVariables?.get(a)||this.variables.get(a);if(o)return o.kind===`var`?(o.addDeclaration(e,n),o):o.kind===`parameter`?this.parent.addDeclaration(e,t,n,r,i):t.error(am(a),e.start);let s=this.parent.addDeclaration(e,t,n,r,i);return s.markInitializersForDeoptimization(),this.addHoistedVariable(a,s),s}return super.addDeclaration(e,t,n,r,i)}},kg=class extends J{createScope(e){this.scope=new Og(e)}hasEffects(e){for(let t of this.body)if(t.hasEffects(e))return!0;return!1}include(e,t){this.included=!0;for(let n of this.body)(t||n.shouldBeIncluded(e))&&n.include(e,t)}render(e,t){if(this.body.length>0){let n=Nd(e.original.slice(this.start,this.end),`{`)+1;zd(this.body,e,this.start+n,this.end-1,t)}else super.render(e,t)}};function Ag(e){return e.type===Zd}kg.prototype.includeNode=Rm,kg.prototype.applyDeoptimizations=zm;var jg=class extends J{constructor(){super(...arguments),this.instanceFieldValues=null,this.objectEntity=null}createScope(e){this.scope=new Cg(e,e.context)}deoptimizeArgumentsOnInteractionAtPath(e,t,n){this.getObjectEntity().deoptimizeArgumentsOnInteractionAtPath(e,t,n)}deoptimizeCache(){this.getObjectEntity().deoptimizeAllProperties()}deoptimizePath(e){this.getObjectEntity().deoptimizePath(e)}getLiteralValueAtPath(e,t,n){return this.getObjectEntity().getLiteralValueAtPath(e,t,n)}getReturnExpressionWhenCalledAtPath(e,t,n,r){return this.getObjectEntity().getReturnExpressionWhenCalledAtPath(e,t,n,r)}hasEffects(e){this.deoptimized||this.applyDeoptimizations();let t=this.superClass?.hasEffects(e)||this.body.hasEffects(e);return this.id?.markDeclarationReached(),t||super.hasEffects(e)||wg(this.decorators,e)}hasEffectsOnInteractionAtPath(e,t,n){return t.type===2&&e.length===0?!t.withNew||(this.classConstructor===null?this.superClass?.hasEffectsOnInteractionAtPath(e,t,n):this.classConstructor.hasEffectsOnInteractionAtPath(e,t,n))||this.hasEffectsOnInstanceFieldInitialization(n):this.getObjectEntity().hasEffectsOnInteractionAtPath(e,t,n)}include(e,t){this.included||this.includeNode(e),this.superClass?.include(e,t),this.body.include(e,t);for(let n of this.decorators)n.include(e,t);this.id&&(this.id.markDeclarationReached(),this.id.include(e,t))}initialise(){super.initialise(),this.id?.declare(`class`,H,this),this.instanceEntity=new hh(/* @__PURE__ */ new Map,new yg(this,[`prototype`])),this.body.scope.instanceThisVariable.addArgumentForDeoptimization(this.instanceEntity);for(let e of this.body.body)if(e instanceof Eg&&e.kind===`constructor`)return void(this.classConstructor=e);this.classConstructor=null}applyDeoptimizations(){this.deoptimized=!0;for(let e of this.body.body)Ag(e)||e.static||e instanceof Eg&&e.kind===`constructor`||e.deoptimizePath(U);this.scope.context.requestTreeshakingPass()}hasEffectsOnInstanceFieldInitialization(e){let t=this.getInstanceFieldValues();if(t.length===0)return!1;let{replacedVariableInits:n}=e,r=this.body.scope.instanceThisVariable,i=n.get(r);n.set(r,this.instanceEntity);let a=t.some(t=>t.hasEffects(e));return i?n.set(r,i):n.delete(r),a}getInstanceFieldValues(){if(this.instanceFieldValues===null){this.instanceFieldValues=[];for(let e of this.body.body)e instanceof Dg&&!e.static&&e.value!==null&&this.instanceFieldValues.push(e.value)}return this.instanceFieldValues}getObjectEntity(){if(this.objectEntity!==null)return this.objectEntity;let e=[],t=[];for(let n of this.body.body){if(Ag(n))continue;let r=n.static?e:t,i=n.kind;if(r===t&&!i)continue;let a=i===`set`||i===`get`?i:`init`,o;if(n.computed){let e=n.key.getLiteralValueAtPath(H,Ef,this);if(typeof e==`symbol`){r.push({key:vf(e)?e:V,kind:a,property:n});continue}o=String(e)}else o=n.key instanceof bg?n.key.name:String(n.key.value);r.push({key:o,kind:a,property:n})}return e.unshift({key:`prototype`,kind:`init`,property:new hh(t,this.superClass?new yg(this.superClass,[`prototype`]):vh)}),this.objectEntity=new hh(e,this.superClass||vh)}};jg.prototype.includeNode=Lm;var Mg=class extends jg{initialise(){super.initialise(),this.id!==null&&(this.id.variable.isId=!0)}parseNode(e){return e.id!==null&&(this.id=new bg(this,this.scope.parent).parseNode(e.id)),super.parseNode(e)}render(e,t){let{exportNamesByVariable:n,format:r,snippets:{_:i,getPropertyAccess:a}}=t;if(this.id){let{variable:o,name:s}=this.id;r===`system`&&n.has(o)&&e.appendLeft(this.end,`${i}${Qd([o],t)};`);let c=o.getName(a);if(c!==s)return this.decorators.map(n=>n.render(e,t)),this.superClass?.render(e,t),this.body.render(e,{...t,useOriginalName:e=>e===o}),e.prependRight(this.start,`let ${c}${i}=${i}`),void e.prependLeft(this.end,`;`)}super.render(e,t)}applyDeoptimizations(){super.applyDeoptimizations();let{id:e,scope:t}=this;if(e){let{name:n,variable:r}=e;for(let e of t.accessedOutsideVariables.values())e!==r&&e.forbidName(n)}}},Ng=class extends hg{constructor(e){super(`arguments`,null,W,H,e,`other`)}addArgumentToBeDeoptimized(e){}addReference(){this.deoptimizedArguments=[],this.addArgumentToBeDeoptimized=Pg}hasEffectsOnInteractionAtPath(e,{type:t}){return t!==0||e.length>1}includePath(e,t){super.includePath(e,t);for(let e of this.deoptimizedArguments)e.deoptimizePath(U);this.deoptimizedArguments.length=0}};function Pg(e){this.included?e.deoptimizePath(U):this.deoptimizedArguments?.push(e)}let Fg=af,Ig=/* @__PURE__ */ new Set([V]),Lg=new Tf,Rg=/* @__PURE__ */ new Set([W]);var zg=class extends hg{constructor(e,t,n,r){super(e,t,W,n,r,`parameter`),this.includedPathTracker=new Mf,this.argumentsToBeDeoptimized=/* @__PURE__ */ new Set,this.deoptimizationInteractions=[],this.deoptimizations=new Tf,this.deoptimizedFields=/* @__PURE__ */ new Set,this.expressionsDependingOnKnownValue=[],this.knownValue=null,this.knownValueLiteral=Rf}addArgumentForDeoptimization(e){if(this.updateKnownValue(e),e===W){if(!this.argumentsToBeDeoptimized.has(W)){this.argumentsToBeDeoptimized.add(W);for(let{interaction:e}of this.deoptimizationInteractions)Uf(e);this.deoptimizationInteractions=Fg}}else if(this.deoptimizedFields.has(V))e.deoptimizePath([...this.initPath,V]);else if(!this.argumentsToBeDeoptimized.has(e)){this.argumentsToBeDeoptimized.add(e);for(let t of this.deoptimizedFields)e.deoptimizePath([...this.initPath,t]);for(let{interaction:t,path:n}of this.deoptimizationInteractions)e.deoptimizeArgumentsOnInteractionAtPath(t,[...this.initPath,...n],Ef)}}markReassigned(){if(!this.isReassigned){super.markReassigned();for(let e of this.expressionsDependingOnKnownValue)e.deoptimizeCache();this.expressionsDependingOnKnownValue=af}}deoptimizeCache(){this.markReassigned()}updateKnownValue(e){if(this.isReassigned)return;if(this.knownValue===null)return this.knownValue=e,void(this.knownValueLiteral=e.getLiteralValueAtPath(this.initPath,Ef,this));if(this.knownValue===e||this.knownValue instanceof bg&&e instanceof bg&&this.knownValue.variable===e.variable)return;let{knownValueLiteral:t}=this;typeof t!=`symbol`&&e.getLiteralValueAtPath(this.initPath,Ef,this)===t||this.markReassigned()}getKnownValue(){return this.knownValue||W}getLiteralValueAtPath(e,t,n){if(this.isReassigned||e.length+this.initPath.length>6)return Rf;let r=this.getKnownValue();return this.expressionsDependingOnKnownValue.push(n),t.withTrackedEntityAtPath(e,r,()=>r.getLiteralValueAtPath([...this.initPath,...e],t,n),Rf)}hasEffectsOnInteractionAtPath(e,t,n){let{type:r}=t;return this.isReassigned||r===1||e.length+this.initPath.length>6?super.hasEffectsOnInteractionAtPath(e,t,n):!(r===2?(t.withNew?n.instantiated:n.called).trackEntityAtPathAndGetIfTracked(e,t.args,this):n.accessed.trackEntityAtPathAndGetIfTracked(e,this))&&this.getKnownValue().hasEffectsOnInteractionAtPath([...this.initPath,...e],t,n)}deoptimizeArgumentsOnInteractionAtPath(e,t){if(t.length>=2||this.argumentsToBeDeoptimized.has(W)||this.deoptimizationInteractions.length>=20||t.length===1&&(this.deoptimizedFields.has(V)||e.type===2&&this.deoptimizedFields.has(t[0]))||this.initPath.length+t.length>6)Uf(e);else if(!this.deoptimizations.trackEntityAtPathAndGetIfTracked(t,e.args)){for(let n of this.argumentsToBeDeoptimized)n.deoptimizeArgumentsOnInteractionAtPath(e,[...this.initPath,...t],Ef);this.argumentsToBeDeoptimized.has(W)||this.deoptimizationInteractions.push({interaction:e,path:t})}}deoptimizePath(e){if(e.length===0)return void this.markReassigned();if(this.deoptimizedFields.has(V))return;let t=e[0];if(!this.deoptimizedFields.has(t)){this.deoptimizedFields.add(t);for(let e of this.argumentsToBeDeoptimized)e.deoptimizePath([...this.initPath,t]);t===V&&(this.deoptimizationInteractions=Fg,this.deoptimizations=Lg,this.deoptimizedFields=Ig,this.argumentsToBeDeoptimized=Rg)}}getReturnExpressionWhenCalledAtPath(e){return e.length===0?this.deoptimizePath(U):this.deoptimizedFields.has(e[0])||this.deoptimizePath([e[0]]),Hf}includeArgumentPaths(e,t){this.includedPathTracker.includeAllPaths(e,t,this.initPath)}},Bg=class extends zg{constructor(e){super(`this`,null,H,e),this.includedPathTracker=new kf}hasEffectsOnInteractionAtPath(e,t,n){return(n.replacedVariableInits.get(this)||W).hasEffectsOnInteractionAtPath(e,t,n)}},Vg=class extends Vf{constructor(e){super(),this.returnedIdentifier=e}deoptimizeArgumentsOnInteractionAtPath(e,t,n){Uf(e),this.returnedIdentifier.deoptimizeArgumentsOnInteractionAtPath(e,t,n)}deoptimizePath(e){this.returnedIdentifier.deoptimizePath(e)}includeCallArgumentsWhenCalledAtPath(e,t,n){this.returnedIdentifier.includeCallArgumentsWhenCalledAtPath(e,t,n)}},Hg=class e extends Cg{constructor(e){super(e,e.context),this.parent=e}addDeclaration(e,t,n,r,i){if(i===`var`){let a=e.name,o=this.parent.variables.get(a);if(Ug(o)){let s=this.parent.parent.addDeclaration(e,t,qm,r,i);return s.markInitializersForDeoptimization(),o.renderLikeHoisted(s.getHoistedVariable()??s),this.isShadowedByInnerCatchParameter(e,a)||o.addDeclaration(e,n),o}let s=this.hoistedVariables?.get(a)||this.variables.get(a);if(s)return s.kind===`var`?(s.addDeclaration(e,n),s):s.kind===`parameter`&&s!==o?this.parent.parent.addDeclaration(e,t,n,r,i):t.error(am(a),e.start);let c=this.parent.parent.addDeclaration(e,t,n,r,i);return c.markInitializersForDeoptimization(),this.addHoistedVariable(a,c),c}return super.addDeclaration(e,t,n,r,i)}isShadowedByInnerCatchParameter(t,n){let r=t.scope;for(;r!==this;){if(r instanceof e&&Ug(r.parent.variables.get(n)))return!0;r=r.parent}return!1}};function Ug(e){return e?.kind===`parameter`&&e.declarations[0].parent.type===`CatchClause`}var Wg=class extends Cg{constructor(e){super(e,e.context)}addDeclaration(e,t,n,r,i){let a=e.name,o=this.hoistedVariables?.get(a)||this.variables.get(a);if(o){let r=o.kind;if(!(i!==`var`&&i!==`function`||r!==`var`&&r!==`function`&&r!==`parameter`))return o.addDeclaration(e,n),o;t.error(am(a),e.start)}let s=new hg(e.name,e,n,r,t,i);return this.variables.set(a,s),s}},Gg=class extends Cg{constructor(e,t){super(e,e.context),this.hasRest=!1,this.parameters=[],this.bodyScope=t?new Hg(this):new Wg(this)}addParameterDeclaration(e,t){let{name:n,start:r}=e;if(this.variables.get(n))return this.context.error(function(e){return{code:`DUPLICATE_ARGUMENT_NAME`,message:`Duplicate argument name "${e}"`}}(n),r);let i=new zg(n,e,t,this.context);return this.variables.set(n,i),this.bodyScope.addHoistedVariable(n,i),i}addParameterVariables(e,t){this.parameters=e;for(let t of e)for(let e of t)e.alwaysRendered=!0;this.hasRest=t}hasParameterCalledFromTryStatement(){return this.parameters.some(e=>e.some(e=>e.calledFromTryStatement))}includeCallArguments({args:e},t){let n=!1,r=!1,i=this.hasRest&&this.parameters[this.parameters.length-1],a=e.length-1;for(let n=1;n<e.length;n++){let i=e[n];i instanceof Ph&&!r&&(r=!0,a=n-1),r&&(i.includePath(U,t),i.include(t,!1))}for(let o=a;o>=1;o--){let a=this.parameters[o-1]||i,s=e[o];if(a){if(n=!1,a.length===0)r=!0;else for(let e of a)e.calledFromTryStatement&&(n=!0),e.included&&(r=!0,n?s.include(t,!0):(e.includeArgumentPaths(s,t),s.include(t,!1)))}(r||s.shouldBeIncluded(t))&&(r=!0,s.include(t,n))}}},Kg=class extends Gg{constructor(){super(...arguments),this.returnExpression=null,this.returnExpressions=[]}addReturnExpression(e){this.returnExpressions.push(e)}deoptimizeArgumentsOnCall({args:e}){let{parameters:t}=this,n=0;for(;n<e.length-1;n++){let r=e[n+1];if(r instanceof Ph){for(;n<t.length;n++){e[n+1]?.deoptimizePath(U);for(let e of t[n])e.markReassigned()}break}if(this.hasRest&&n>=t.length-1)r.deoptimizePath(U);else{let e=t[n];if(e)for(let t of e)t.addArgumentForDeoptimization(r);this.addArgumentToBeDeoptimized(r)}}let r=this.hasRest?t.length-1:t.length;for(;n<r;n++)for(let e of t[n])e.addArgumentForDeoptimization(qm)}getReturnExpression(){return this.returnExpression===null&&this.updateReturnExpression(),this.returnExpression}deoptimizeAllParameters(){for(let e of this.parameters)for(let t of e)t.deoptimizePath(U),t.markReassigned()}reassignAllParameters(){for(let e of this.parameters)for(let t of e)t.markReassigned()}addArgumentToBeDeoptimized(e){}updateReturnExpression(){let{returnExpressions:e}=this,[t]=e;if(t&&this.returnExpressionsResolveToSameVariable(t))this.returnExpression=t.variable.isTargetOfAssignment?new Vg(t):t;else if(e.length===1)this.returnExpression=t;else{this.returnExpression=W;for(let t of e)t.deoptimizePath(U)}}returnExpressionsResolveToSameVariable(e){return!(!Wm(e)||e.variable===null)&&this.returnExpressions.every(t=>Wm(t)&&t.variable===e.variable)}},qg=class extends Kg{constructor(e,t){super(e,!1),this.functionNode=t;let{context:n}=e;this.variables.set(`arguments`,this.argumentsVariable=new Ng(n)),this.variables.set(`this`,this.thisVariable=new Bg(n))}findLexicalBoundary(){return this}includeCallArguments(e,t){super.includeCallArguments(e,t);let{args:n}=e;if(n[0]&&this.thisVariable.includeArgumentPaths(n[0],t),this.argumentsVariable.included)for(let e=1;e<n.length;e++){let r=n[e];r&&(r.includePath(U,t),r.include(t,!1))}}addArgumentToBeDeoptimized(e){this.argumentsVariable.addArgumentToBeDeoptimized(e)}},Jg=class extends J{initialise(){var e,t;super.initialise(),this.directive&&this.directive!==`use strict`&&this.parent.type===Jd&&this.scope.context.log(G,(e=this.directive,{code:`MODULE_LEVEL_DIRECTIVE`,id:t=this.scope.context.module.id,message:`Module level directives cause errors when bundled, "${e}" in "${K(t)}" was ignored.`}),this.start)}removeAnnotations(e){this.expression.removeAnnotations(e)}render(e,t){super.render(e,t),e.original[this.end-1]!==`;`&&e.appendLeft(this.end,`;`)}shouldBeIncluded(e){return this.directive&&this.directive!==`use strict`?this.parent.type!==Jd:super.shouldBeIncluded(e)}};Jg.prototype.includeNode=Rm,Jg.prototype.applyDeoptimizations=zm;var Yg=class extends J{get deoptimizeBody(){return If(this.flags,32768)}set deoptimizeBody(e){this.flags=Lf(this.flags,32768,e)}get directlyIncluded(){return If(this.flags,16384)}set directlyIncluded(e){this.flags=Lf(this.flags,16384,e)}addImplicitReturnExpressionToScope(){let e=this.body[this.body.length-1];e&&e.type===`ReturnStatement`||this.scope.addReturnExpression(W)}createScope(e){this.scope=this.parent.preventChildBlockScope?e:new Og(e)}hasEffects(e){if(this.deoptimizeBody)return!0;for(let t of this.body){if(e.brokenFlow)break;if(t.hasEffects(e))return!0}return!1}include(e,t){if(!this.deoptimizeBody||!this.directlyIncluded){this.included=!0,this.directlyIncluded=!0,this.deoptimizeBody&&(t=!0);for(let n of this.body)(t||n.shouldBeIncluded(e))&&n.include(e,t)}}initialise(){super.initialise(),this.scope.context.magicString.addSourcemapLocation(this.end-1);let e=this.body[0];this.deoptimizeBody=e instanceof Jg&&e.directive===`use asm`}render(e,t){this.body.length>0?zd(this.body,e,this.start+1,this.end-1,t):super.render(e,t)}};Yg.prototype.includeNode=Rm,Yg.prototype.applyDeoptimizations=zm;var Xg=class extends J{constructor(){super(...arguments),this.declarationInit=null}addExportedVariables(e,t){this.argument.addExportedVariables(e,t)}declare(e,t,n){return this.declarationInit=n,this.argument.declare(e,Zg(t),n)}deoptimizeAssignment(e,t){this.argument.deoptimizeAssignment(Zg(e),t)}deoptimizePath(e){e.length===0&&this.argument.deoptimizePath(H)}hasEffectsOnInteractionAtPath(e,t,n){return e.length>0||this.argument.hasEffectsOnInteractionAtPath(H,t,n)}hasEffectsWhenDestructuring(e,t,n){return this.argument.hasEffectsWhenDestructuring(e,Zg(t),n)}includeDestructuredIfNecessary(e,t,n){let r=this.argument.includeDestructuredIfNecessary(e,Zg(t),n);return!this.included&&r&&this.includeNode(e),this.included}include(e,t){this.included||this.includeNode(e),this.argument.include(e,t)}markDeclarationReached(){this.argument.markDeclarationReached()}setAssignedValue(e){this.argument.setAssignedValue(e)}applyDeoptimizations(){this.deoptimized=!0,this.declarationInit!==null&&(this.declarationInit.deoptimizePath([V,V]),this.scope.context.requestTreeshakingPass())}};Xg.prototype.includeNode=Lm;let Zg=e=>e.at(-1)===V?e:[...e,V];var Qg=class extends J{constructor(){super(...arguments),this.parameterVariableValuesDeoptimized=!1}get async(){return If(this.flags,256)}set async(e){this.flags=Lf(this.flags,256,e)}get deoptimizedReturn(){return If(this.flags,512)}set deoptimizedReturn(e){this.flags=Lf(this.flags,512,e)}get generator(){return If(this.flags,4194304)}set generator(e){this.flags=Lf(this.flags,4194304,e)}get hasCachedEffects(){return If(this.flags,67108864)}set hasCachedEffects(e){this.flags=Lf(this.flags,67108864,e)}deoptimizeArgumentsOnInteractionAtPath(e,t,n){e.type===2&&t.length===0?this.scope.deoptimizeArgumentsOnCall(e):this.getObjectEntity().deoptimizeArgumentsOnInteractionAtPath(e,t,n)}deoptimizePath(e){this.getObjectEntity().deoptimizePath(e),e.length===1&&e[0]===V&&(this.scope.getReturnExpression().deoptimizePath(U),this.scope.deoptimizeAllParameters())}getKnownFunctionAtPath(e,t,n){return e.length===0?this:this.getObjectEntity().getKnownFunctionAtPath(e,t,n)}getLiteralValueAtPath(e,t,n){return this.getObjectEntity().getLiteralValueAtPath(e,t,n)}getReturnExpressionWhenCalledAtPath(e,t,n,r){return e.length>0?this.getObjectEntity().getReturnExpressionWhenCalledAtPath(e,t,n,r):this.async||this.generator?(this.deoptimizedReturn||(this.deoptimizedReturn=!0,this.scope.getReturnExpression().deoptimizePath(U),this.scope.context.requestTreeshakingPass()),Hf):[this.scope.getReturnExpression(),!1]}hasEffectsOnInteractionAtPath(e,t,n){if(e.length>0||t.type!==2)return this.getObjectEntity().hasEffectsOnInteractionAtPath(e,t,n);if(this.hasCachedEffects)return!0;if(this.async){let{propertyReadSideEffects:e}=this.scope.context.options.treeshake,t=this.scope.getReturnExpression();if(t.hasEffectsOnInteractionAtPath([`then`],Jf,n)||e&&(e===`always`||t.hasEffectsOnInteractionAtPath([`then`],Kf,n)))return this.hasCachedEffects=!0,!0}let{propertyReadSideEffects:r}=this.scope.context.options.treeshake;for(let e=0;e<this.params.length;e++){let i=this.params[e];if(i.hasEffects(n)||r&&i.hasEffectsWhenDestructuring(n,H,t.args[e+1]||qm))return this.hasCachedEffects=!0,!0}return!1}onlyFunctionCallUsed(){let e=null;return this.parent.type===`VariableDeclarator`&&(e=this.parent.id.variable??null),this.parent.type===Gd&&(e=this.parent.variable),e?.getOnlyFunctionCallUsed()??!1}include(e,t){this.included||this.includeNode(e),this.parameterVariableValuesDeoptimized||this.onlyFunctionCallUsed()||(this.parameterVariableValuesDeoptimized=!0,this.scope.reassignAllParameters());let{brokenFlow:n}=e;e.brokenFlow=!1,this.body.include(e,t),e.brokenFlow=n}includeCallArgumentsWhenCalledAtPath(e,t,n){e.length===0?this.scope.includeCallArguments(t,n):this.getObjectEntity().includeCallArgumentsWhenCalledAtPath(e,t,n)}initialise(){super.initialise(),this.body instanceof Yg?this.body.addImplicitReturnExpressionToScope():this.scope.addReturnExpression(this.body),this.annotations&&this.scope.context.options.treeshake.annotations&&(this.annotationNoSideEffects=this.annotations.some(e=>e.type===`noSideEffects`))}parseNode(e){let{body:t,params:n}=e,{scope:r}=this,{bodyScope:i,context:a}=r,o=this.params=n.map(e=>new(a.getNodeConstructor(e.type))(this,r).parseNode(e));return r.addParameterVariables(o.map(e=>e.declare(`parameter`,H,W)),o[o.length-1]instanceof Xg),this.body=new(a.getNodeConstructor(t.type))(this,i).parseNode(t),super.parseNode(e)}};Qg.prototype.preventChildBlockScope=!0,Qg.prototype.includeNode=Rm,Qg.prototype.applyDeoptimizations=zm;var $g=class extends Qg{constructor(){super(...arguments),this.objectEntity=null}createScope(e){this.scope=new qg(e,this),this.constructedEntity=new hh(/* @__PURE__ */ new Map,vh),this.scope.thisVariable.addArgumentForDeoptimization(this.constructedEntity)}deoptimizeArgumentsOnInteractionAtPath(e,t,n){super.deoptimizeArgumentsOnInteractionAtPath(e,t,n),e.type===2&&t.length===0&&e.args[0]&&this.scope.thisVariable.addArgumentForDeoptimization(e.args[0])}hasEffects(e){return!this.annotationNoSideEffects&&!!this.id?.hasEffects(e)}hasEffectsOnInteractionAtPath(e,t,n){if(this.annotationNoSideEffects&&e.length===0&&t.type===2)return!1;if(super.hasEffectsOnInteractionAtPath(e,t,n))return!0;if(e.length===0&&t.type===2){let e=n.replacedVariableInits.get(this.scope.thisVariable);n.replacedVariableInits.set(this.scope.thisVariable,t.withNew?this.constructedEntity:W);let{brokenFlow:r,ignore:i,replacedVariableInits:a}=n;if(n.ignore={breaks:!1,continues:!1,labels:/* @__PURE__ */ new Set,returnYield:!0,this:t.withNew},this.body.hasEffects(n))return this.hasCachedEffects=!0,!0;n.brokenFlow=r,e?a.set(this.scope.thisVariable,e):a.delete(this.scope.thisVariable),n.ignore=i}return!1}include(e,t){super.include(e,t),this.id?.include(e,t);let n=this.scope.argumentsVariable.included;for(let r of this.params)r instanceof bg&&!n||r.include(e,t)}includeNode(e){this.included=!0;let t=this.scope.argumentsVariable.included;for(let n of this.params)n instanceof bg&&!t||n.includePath(U,e)}initialise(){super.initialise(),this.id?.declare(`function`,H,this)}getObjectEntity(){return this.objectEntity===null?this.objectEntity=new hh([{key:`prototype`,kind:`init`,property:new hh([],this.getPrototypeOfPrototype())}],vh):this.objectEntity}getPrototypeOfPrototype(){return this.generator?this.async?bh:yh:vh}},e_=class extends $g{initialise(){super.initialise(),this.id!==null&&(this.id.variable.isId=!0)}onlyFunctionCallUsed(){return this.id?.variable.getOnlyFunctionCallUsed()??super.onlyFunctionCallUsed()}parseNode(e){return e.id!==null&&(this.id=new bg(this,this.scope.parent).parseNode(e.id)),super.parseNode(e)}},t_=class extends J{bind(){super.bind();let e=this.declarationName||this.scope.context.getModuleName();this.variable.name=this.scope.variables.get(e)?`${e}_default`:e}include(e,t){this.included=!0,this.declaration.include(e,t),t&&this.scope.context.includeVariableInModule(this.variable,U,e)}includePath(e,t){this.included=!0,this.declaration.includePath(e,t)}initialise(){super.initialise();let e=this.declaration;this.declarationName=e.id&&e.id.name||this.declaration.name,this.variable=this.scope.addExportDefaultDeclaration(this,this.scope.context),this.scope.context.addExport(this)}removeAnnotations(e){this.declaration.removeAnnotations(e)}render(e,t,n){let{start:r,end:i}=n,a=function(e,t){return Fd(e,Nd(e,`default`,t)+7)}(e.original,this.start),o=!1;if(this.declaration instanceof e_)this.renderNamedDeclaration(e,a,this.declaration.id===null?function(e,t){let n=Nd(e,`function`,t)+8;e=e.slice(n,Nd(e,`(`,n));let r=Nd(e,`*`);return r===-1?n:n+r+1}(e.original,a):null,t);else if(this.declaration instanceof Mg)this.renderNamedDeclaration(e,a,this.declaration.id===null?Nd(e.original,`class`,r)+5:null,t);else{if(this.variable.getOriginalVariable()!==this.variable)return void jd(this,e,r,i);if(!this.variable.included)return e.remove(this.start,a),this.declaration.render(e,t,{renderedSurroundingElement:Kd}),void(e.original[this.end-1]!==`;`&&e.appendLeft(this.end,`;`));o=this.renderVariableDeclaration(e,a,t)}this.declaration.render(e,t),o&&e.appendLeft(this.end,`;`)}renderNamedDeclaration(e,t,n,r){let{exportNamesByVariable:i,format:a,snippets:{getPropertyAccess:o}}=r,s=this.variable.getName(o);e.remove(this.start,t),n!==null&&e.appendLeft(n,` ${s}`),a===`system`&&this.declaration instanceof Mg&&i.has(this.variable)&&e.appendLeft(this.end,` ${Qd([this.variable],r)};`)}renderVariableDeclaration(e,t,{format:n,exportNamesByVariable:r,snippets:{cnst:i,getPropertyAccess:a}}){let o=e.original.charCodeAt(this.end-1)===59,s=n===`system`&&r.get(this.variable);return s?(e.overwrite(this.start,t,`${i} ${this.variable.getName(a)} = exports(${JSON.stringify(Dd(s[0]))}, `),e.appendRight(o?this.end-1:this.end,`)`+(o?``:`;`)),!1):(e.overwrite(this.start,t,`${i} ${this.variable.getName(a)} = `),!o)}};t_.prototype.needsBoundaries=!0,t_.prototype.includeNode=Rm,t_.prototype.applyDeoptimizations=zm;let n_=/[\n\r'\\\u2028\u2029]/,r_=/[\n\r'\\\u2028\u2029]/g,i_={"\n":`\\n`,"\r":`\\r`,"'":`\\'`,"\\":`\\\\`,"\u2028":`\\u2028`,"\u2029":`\\u2029`};function a_(e){return n_.test(e)?e.replace(r_,e=>i_[e]):e}let o_=`_interopDefault`,s_=`_interopDefaultCompat`,c_=`_interopNamespace`,l_=`_interopNamespaceCompat`,u_=`_interopNamespaceDefault`,d_=`_interopNamespaceDefaultOnly`,f_=`_mergeNamespaces`,p_=`_documentCurrentScript`,m_={auto:o_,compat:s_,default:null,defaultOnly:null,esModule:null},h_=(e,t)=>e===`esModule`||t&&(e===`auto`||e===`compat`),g_={auto:c_,compat:l_,default:u_,defaultOnly:d_,esModule:null},__=(e,t)=>e!==`esModule`&&h_(e,t),v_=(e,t,n,r,i,a,o)=>{let s=new Set(e);for(let e of M_)t.has(e)&&s.add(e);return M_.map(e=>s.has(e)?y_[e](n,r,i,a,o,s):``).join(``)},y_={[p_]:(e,{_:t,n})=>`var ${p_}${t}=${t}typeof document${t}!==${t}'undefined'${t}?${t}document.currentScript${t}:${t}null;${n}`,[s_](e,t,n){let{_:r,getDirectReturnFunction:i,n:a}=t,[o,s]=i([`e`],{functionReturn:!0,lineBreakIndent:null,name:s_});return`${o}${S_(t)}${r}?${r}${n?b_(t):x_(t)}${s}${a}${a}`},[o_](e,t,n){let{_:r,getDirectReturnFunction:i,n:a}=t,[o,s]=i([`e`],{functionReturn:!0,lineBreakIndent:null,name:o_});return`${o}e${r}&&${r}e.__esModule${r}?${r}${n?b_(t):x_(t)}${s}${a}${a}`},[l_](e,t,n,r,i,a){let{_:o,getDirectReturnFunction:s,n:c}=t;if(a.has(u_)){let[e,n]=s([`e`],{functionReturn:!0,lineBreakIndent:null,name:l_});return`${e}${S_(t)}${o}?${o}e${o}:${o}${u_}(e)${n}${c}${c}`}return`function ${l_}(e)${o}{${c}${e}if${o}(${S_(t)})${o}return e;${c}`+C_(e,e,t,n,r,i)+`}${c}${c}`},[d_](e,t,n,r,i){let{getDirectReturnFunction:a,getObject:o,n:s,_:c}=t,[l,u]=a([`e`],{functionReturn:!0,lineBreakIndent:null,name:d_});return`${l}${A_(r,j_(i,o([[null,`__proto__:${c}null`],[`default`,`e`]],{lineBreakIndent:null}),t))}${u}${s}${s}`},[u_](e,t,n,r,i){let{_:a,n:o}=t;return`function ${u_}(e)${a}{${o}`+C_(e,e,t,n,r,i)+`}${o}${o}`},[c_](e,t,n,r,i,a){let{_:o,getDirectReturnFunction:s,n:c}=t;if(a.has(u_)){let[e,t]=s([`e`],{functionReturn:!0,lineBreakIndent:null,name:c_});return`${e}e${o}&&${o}e.__esModule${o}?${o}e${o}:${o}${u_}(e)${t}${c}${c}`}return`function ${c_}(e)${o}{${c}${e}if${o}(e${o}&&${o}e.__esModule)${o}return e;${c}`+C_(e,e,t,n,r,i)+`}${c}${c}`},[f_](e,t,n,r,i){let{_:a,cnst:o,n:s}=t,c=o===`var`&&n;return`function ${f_}(n, m)${a}{${s}${e}${T_(`{${s}${e}${e}${e}if${a}(k${a}!==${a}'default'${a}&&${a}!(k in n))${a}{${s}`+(n?c?D_:O_:k_)(e,e+e+e+e,t)+`${e}${e}${e}}${s}${e}${e}}`,c,e,t)}${s}${e}return ${A_(r,j_(i,`n`,t))};${s}}${s}${s}`}},b_=({_:e,getObject:t})=>`e${e}:${e}${t([[`default`,`e`]],{lineBreakIndent:null})}`,x_=({_:e,getPropertyAccess:t})=>`e${t(`default`)}${e}:${e}e`,S_=({_:e})=>`e${e}&&${e}typeof e${e}===${e}'object'${e}&&${e}'default'${e}in e`,C_=(e,t,n,r,i,a)=>{let{_:o,cnst:s,getObject:c,getPropertyAccess:l,n:u,s:d}=n,f=`{${u}`+(r?E_:k_)(e,t+e+e,n)+`${t}${e}}`;return`${t}${s} n${o}=${o}Object.create(null${a?`,${o}{${o}[Symbol.toStringTag]:${o}${N_(c)}${o}}`:``});${u}${t}if${o}(e)${o}{${u}${t}${e}${w_(f,!r,n)}${u}${t}}${u}${t}n${l(`default`)}${o}=${o}e;${u}${t}return ${A_(i,`n`)}${d}${u}`},w_=(e,t,{_:n,cnst:r,getFunctionIntro:i,s:a})=>r!==`var`||t?`for${n}(${r} k in e)${n}${e}`:`Object.keys(e).forEach(${i([`k`],{isAsync:!1,name:null})}${e})${a}`,T_=(e,t,n,{_:r,cnst:i,getDirectReturnFunction:a,getFunctionIntro:o,n:s})=>{if(t){let[t,i]=a([`e`],{functionReturn:!1,lineBreakIndent:{base:n,t:n},name:null});return`m.forEach(${t}e${r}&&${r}typeof e${r}!==${r}'string'${r}&&${r}!Array.isArray(e)${r}&&${r}Object.keys(e).forEach(${o([`k`],{isAsync:!1,name:null})}${e})${i});`}return`for${r}(var i${r}=${r}0;${r}i${r}<${r}m.length;${r}i++)${r}{${s}${n}${n}${i} e${r}=${r}m[i];${s}${n}${n}if${r}(typeof e${r}!==${r}'string'${r}&&${r}!Array.isArray(e))${r}{${r}for${r}(${i} k in e)${r}${e}${r}}${s}${n}}`},E_=(e,t,n)=>{let{_:r,n:i}=n;return`${t}if${r}(k${r}!==${r}'default')${r}{${i}`+D_(e,t+e,n)+`${t}}${i}`},D_=(e,t,{_:n,cnst:r,getDirectReturnFunction:i,n:a})=>{let[o,s]=i([],{functionReturn:!0,lineBreakIndent:null,name:null});return`${t}${r} d${n}=${n}Object.getOwnPropertyDescriptor(e,${n}k);${a}${t}Object.defineProperty(n,${n}k,${n}d.get${n}?${n}d${n}:${n}{${a}${t}${e}enumerable:${n}true,${a}${t}${e}get:${n}${o}e[k]${s}${a}${t}});${a}`},O_=(e,t,{_:n,cnst:r,getDirectReturnFunction:i,n:a})=>{let[o,s]=i([],{functionReturn:!0,lineBreakIndent:null,name:null});return`${t}${r} d${n}=${n}Object.getOwnPropertyDescriptor(e,${n}k);${a}${t}if${n}(d)${n}{${a}${t}${e}Object.defineProperty(n,${n}k,${n}d.get${n}?${n}d${n}:${n}{${a}${t}${e}${e}enumerable:${n}true,${a}${t}${e}${e}get:${n}${o}e[k]${s}${a}${t}${e}});${a}${t}}${a}`},k_=(e,t,{_:n,n:r})=>`${t}n[k]${n}=${n}e[k];${r}`,A_=(e,t)=>e?`Object.freeze(${t})`:t,j_=(e,t,{_:n,getObject:r})=>e?`Object.defineProperty(${t},${n}Symbol.toStringTag,${n}${N_(r)})`:t,M_=Object.keys(y_);function N_(e){return e([[`value`,`'Module'`]],{lineBreakIndent:null})}var P_=class extends hm{constructor(){super(`undefined`)}getLiteralValueAtPath(){}},F_=class e extends hg{constructor(e,t){super(`default`,e,e.declaration,H,t,`other`),this.hasId=!1,this.originalId=null,this.originalVariable=null;let n=e.declaration;(n instanceof e_||n instanceof Mg)&&n.id?(this.hasId=!0,this.originalId=n.id):n instanceof bg&&(this.originalId=n)}addReference(e){this.hasId||(this.name=e.name)}addUsedPlace(e){let t=this.getOriginalVariable();t===this?super.addUsedPlace(e):t.addUsedPlace(e)}forbidName(e){let t=this.getOriginalVariable();t===this?super.forbidName(e):t.forbidName(e)}getAssignedVariableName(){return this.originalId&&this.originalId.name||null}getBaseVariableName(){let e=this.getOriginalVariable();return e===this?super.getBaseVariableName():e.getBaseVariableName()}getDirectOriginalVariable(){return!this.originalId||!this.hasId&&(this.originalId.isPossibleTDZ()||this.originalId.variable.isReassigned||this.originalId.variable instanceof P_||`syntheticNamespace`in this.originalId.variable)?null:this.originalId.variable}getOriginalNamespaceVariable(){let t=this,n=/* @__PURE__ */ new Set;for(;t instanceof e&&!n.has(t);){if(n.add(t),t.hasId||!t.originalId)return null;t=t.originalId.variable}return t?.isNamespace?t:null}getName(e){let t=this.getOriginalVariable();return t===this?super.getName(e):t.getName(e)}getOriginalVariable(){if(this.originalVariable)return this.originalVariable;let t,n=this,r=/* @__PURE__ */ new Set;do r.add(n),t=n,n=t.getDirectOriginalVariable();while(n instanceof e&&!r.has(n));return this.originalVariable=n||t}},I_=class extends J{deoptimizeArgumentsOnInteractionAtPath(){}getLiteralValueAtPath(e){return e.length>0||this.value===null&&this.scope.context.code.charCodeAt(this.start)!==110||typeof this.value==`bigint`||this.scope.context.code.charCodeAt(this.start)===47?Rf:this.value}getReturnExpressionWhenCalledAtPath(e){return e.length===1?ch(this.members,e[0]):Hf}hasEffectsOnInteractionAtPath(e,t,n){switch(t.type){case 0:return e.length>(this.value===null?0:1);case 1:return!0;case 2:return!!(this.included&&this.value instanceof RegExp&&(this.value.global||this.value.sticky))||e.length!==1||sh(this.members,e[0],t,n)}}initialise(){super.initialise(),this.members=function(e){if(e instanceof RegExp)return ah;switch(typeof e){case`boolean`:return rh;case`number`:return ih;case`string`:return oh}return Object.create(null)}(this.value)}parseNode(e){return this.value=e.value,this.regex=e.regex,super.parseNode(e)}render(){typeof this.value==`string`&&this.scope.context.addIndentExclusionRange([this.start+1,this.end-1])}};function L_(e,t,n,r,i){if(`getLiteralValueAtPathAsChainElement`in t){let n=t.getLiteralValueAtPathAsChainElement(H,Ef,i);if(n===Im||e.optional&&n==null)return Im}else if(e.optional&&t.getLiteralValueAtPath(H,Ef,i)==null)return Im;return e.getLiteralValueAtPath(n,r,i)}function R_(e){return e.computed?function(e){return e instanceof I_?String(e.value):null}(e.property):e.property.name}function z_(e){let t=e.propertyKey,n=e.object;if(typeof t==`string`){if(n instanceof bg)return[{key:n.name,pos:n.start},{key:t,pos:e.property.start}];if(n instanceof V_){let r=z_(n);return r&&[...r,{key:t,pos:e.property.start}]}}return null}function B_(e){let t=e[0].key;for(let n=1;n<e.length;n++)t+=`.`+e[n].key;return t}I_.prototype.includeNode=Lm;var V_=class e extends J{constructor(){super(...arguments),this.promiseHandler=null,this.variable=null,this.expressionsToBeDeoptimized=[]}get computed(){return If(this.flags,1024)}set computed(e){this.flags=Lf(this.flags,1024,e)}get optional(){return If(this.flags,128)}set optional(e){this.flags=Lf(this.flags,128,e)}get assignmentDeoptimized(){return If(this.flags,16)}set assignmentDeoptimized(e){this.flags=Lf(this.flags,16,e)}get bound(){return If(this.flags,32)}set bound(e){this.flags=Lf(this.flags,32,e)}get deleteOfMissingNamespaceMember(){return If(this.flags,536870912)}set deleteOfMissingNamespaceMember(e){this.flags=Lf(this.flags,536870912,e)}get isUndefined(){return If(this.flags,64)}set isUndefined(e){this.flags=Lf(this.flags,64,e)}bind(){this.bound=!0;let e=z_(this),t=e&&this.scope.findVariable(e[0].key);if(t instanceof F_&&(t=t.getOriginalNamespaceVariable()||t),t?.isNamespace){let n=H_(t,e.slice(1),this.scope.context),r=this.isDeleteTarget();!n||this.assignmentInteraction||r?(this.deleteOfMissingNamespaceMember=r&&n===`undefined`,super.bind()):n===`undefined`?this.isUndefined=!0:(this.variable=n,this.scope.addNamespaceMemberAccess(B_(e),n))}else super.bind()}deoptimizeArgumentsOnInteractionAtPath(e,t,n){this.promiseHandler?this.promiseHandler.deoptimizeArgumentsOnInteractionAtPath(e,t,n):this.variable?this.variable.deoptimizeArgumentsOnInteractionAtPath(e,t,n):this.isUndefined||(t.length<6?this.object.deoptimizeArgumentsOnInteractionAtPath(e,this.propertyKey===V?U:[this.propertyKey,...t],n):Uf(e))}deoptimizeAssignment(e,t){this.deoptimizePath(H),t.deoptimizePath([...e,V])}deoptimizeCache(){if(this.propertyKey===this.dynamicPropertyKey)return;let{expressionsToBeDeoptimized:e,object:t}=this;this.expressionsToBeDeoptimized=af,this.dynamicPropertyKey=this.propertyKey,t.deoptimizePath(U),this.included&&t.includePath(U,Pf());for(let t of e)t.deoptimizeCache()}deoptimizePath(e){if(e.length===0&&this.disallowNamespaceReassignment(),this.variable)this.variable.deoptimizePath(e);else if(!this.isUndefined){let{propertyKey:t}=this;this.object.deoptimizePath([t===V?uf:t,...e.length<6?e:[...e.slice(0,6),V]])}}getKnownFunctionAtPath(e,t,n){if(this.variable)return this.variable.getKnownFunctionAtPath(e,t,n);if(this.isUndefined)return null;let r=this.getDynamicPropertyKey();return r!==V&&e.length<6?(r!==this.propertyKey&&this.expressionsToBeDeoptimized.push(n),this.object.getKnownFunctionAtPath([r,...e],t,n)):null}getLiteralValueAtPath(e,t,n){if(this.variable)return this.variable.getLiteralValueAtPath(e,t,n);if(this.isUndefined)return;let r=this.getDynamicPropertyKey();return r!==V&&e.length<6?(r!==this.propertyKey&&this.expressionsToBeDeoptimized.push(n),this.object.getLiteralValueAtPath([r,...e],t,n)):Rf}getLiteralValueAtPathAsChainElement(e,t,n){return this.variable?this.variable.getLiteralValueAtPath(e,t,n):this.isUndefined?void 0:L_(this,this.object,e,t,n)}getReturnExpressionWhenCalledAtPath(e,t,n,r){if(this.variable)return this.variable.getReturnExpressionWhenCalledAtPath(e,t,n,r);if(this.isUndefined)return[qm,!1];let i=this.getDynamicPropertyKey();return i!==V&&e.length<6?(i!==this.propertyKey&&this.expressionsToBeDeoptimized.push(r),this.object.getReturnExpressionWhenCalledAtPath([i,...e],t,n,r)):Hf}hasEffects(e){return this.deoptimized||this.applyDeoptimizations(),this.property.hasEffects(e)||this.object.hasEffects(e)||this.hasAccessEffect(e)}hasEffectsAsChainElement(e){if(this.variable||this.isUndefined)return this.hasEffects(e);let t=`hasEffectsAsChainElement`in this.object?this.object.hasEffectsAsChainElement(e):this.object.hasEffects(e);return t===Im?Im:this.optional&&this.object.getLiteralValueAtPath(H,Ef,this)==null?t||Im:(this.deoptimized||this.applyDeoptimizations(),t||this.property.hasEffects(e)||this.hasAccessEffect(e))}hasEffectsAsAssignmentTarget(e,t){return t&&!this.deoptimized&&this.applyDeoptimizations(),this.assignmentDeoptimized||this.applyAssignmentDeoptimization(),this.property.hasEffects(e)||this.object.hasEffects(e)||t&&this.hasAccessEffect(e)||this.hasEffectsOnInteractionAtPath(H,this.assignmentInteraction,e)}hasEffectsOnInteractionAtPath(e,t,n){return this.variable?this.variable.hasEffectsOnInteractionAtPath(e,t,n):!!this.isUndefined||!(e.length<6)||this.object.hasEffectsOnInteractionAtPath([this.getDynamicPropertyKey(),...e],t,n)}hasEffectsWhenDestructuring(e,t,n){return t.length>0&&n.hasEffectsOnInteractionAtPath(t,Kf,e)}include(e,t){this.included||this.includeNode(e),this.object.include(e,t),this.property.include(e,t),t&&this.variable?.includePath(U,e)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.variable?this.scope.context.includeVariableInModule(this.variable,H,e):this.isUndefined||this.object.includePath([this.propertyKey],e)}includeNodeAsAssignmentTarget(e){this.included=!0,this.assignmentDeoptimized||this.applyAssignmentDeoptimization(),this.variable?this.scope.context.includeVariableInModule(this.variable,H,e):this.isUndefined||this.object.includePath([this.propertyKey],e)}includePath(e,t){this.included||this.includeNode(t),this.variable?this.variable?.includePath(e,t):this.isUndefined||this.object.includePath([this.propertyKey,...e.length<6?e:[...e.slice(0,6),V]],t)}includeAsAssignmentTarget(e,t,n){this.included||this.includeNodeAsAssignmentTarget(e),n&&!this.deoptimized&&this.applyDeoptimizations(),this.object.include(e,t),this.property.include(e,t)}includeCallArgumentsWhenCalledAtPath(e,t,n){this.promiseHandler?e.length===0?this.promiseHandler.includeCallArguments(t,n):Wf(t,n):this.variable?this.variable.includeCallArgumentsWhenCalledAtPath(e,t,n):!this.isUndefined&&e.length<6?this.object.includeCallArgumentsWhenCalledAtPath(this.propertyKey===V?U:[this.propertyKey,...e],t,n):Wf(t,n)}includeDestructuredIfNecessary(){this.scope.context.error({message:`includeDestructuredIfNecessary is currently not supported for MemberExpressions`},this.start)}initialise(){super.initialise(),this.dynamicPropertyKey=R_(this),this.propertyKey=this.dynamicPropertyKey===null?V:this.dynamicPropertyKey,this.accessInteraction={args:[this.object],type:0}}render(e,t,{renderedParentType:n,isCalleeOfRenderedParent:r,renderedSurroundingElement:i}=nf){if(this.variable||this.isUndefined){let{snippets:{getPropertyAccess:i}}=t,a=this.variable?this.variable.getName(i):`undefined`;n&&r&&(a=`0, `+a),e.overwrite(this.start,this.end,a,{contentOnly:!0,storeName:!0})}else n&&r&&e.appendRight(this.start,`0, `),this.object.render(e,t,{renderedSurroundingElement:i}),this.property.render(e,t)}setAssignedValue(e){this.assignmentInteraction={args:[this.object,e],type:1}}applyDeoptimizations(){this.deoptimized=!0;let{propertyReadSideEffects:e}=this.scope.context.options.treeshake;this.bound&&e&&!(this.variable||this.isUndefined||this.promiseHandler)&&(this.object.deoptimizeArgumentsOnInteractionAtPath(this.accessInteraction,[this.propertyKey],Ef),this.scope.context.requestTreeshakingPass()),this.variable&&(this.variable.addUsedPlace(this),this.scope.context.requestTreeshakingPass())}applyAssignmentDeoptimization(){this.assignmentDeoptimized=!0;let{propertyReadSideEffects:e}=this.scope.context.options.treeshake;this.bound&&e&&!this.variable&&!this.isUndefined&&(this.object.deoptimizeArgumentsOnInteractionAtPath(this.assignmentInteraction,[this.propertyKey],Ef),this.scope.context.requestTreeshakingPass())}disallowNamespaceReassignment(){this.getNamespaceVariableOfObject()&&!this.deleteOfMissingNamespaceMember&&this.scope.context.log(G,Wp(this.getNamespaceName(),this.scope.context.module.id),this.start)}getDynamicPropertyKey(){if(this.dynamicPropertyKey===null){this.dynamicPropertyKey=this.propertyKey;let e=this.property.getLiteralValueAtPath(H,Ef,this);return this.dynamicPropertyKey=typeof e==`symbol`?_f.has(e)?e:V:String(e)}return this.dynamicPropertyKey}getNamespaceName(){return this.object instanceof bg?this.object.name:B_(z_(this.object))}getNamespaceVariableOfObject(){let t;if(this.object instanceof bg)t=this.scope.findVariable(this.object.name);else{if(!(this.object instanceof e))return null;t=this.object.variable}return t instanceof F_&&(t=t.getOriginalNamespaceVariable()||t),t?.isNamespace?t:null}hasAccessEffect(e){let{propertyReadSideEffects:t}=this.scope.context.options.treeshake;return!(this.variable||this.isUndefined)&&t&&(t===`always`||this.object.hasEffectsOnInteractionAtPath([this.getDynamicPropertyKey()],this.accessInteraction,e))}isDeleteTarget(){let e=this.parent.type===`ChainExpression`?this.parent.parent:this.parent;return e.type===`UnaryExpression`&&e.operator===`delete`}};function H_(e,t,n){if(t.length===0)return e;if(!e.isNamespace||e instanceof _m)return null;let r=t[0].key,[i,a]=e.context.traceExport(r);if(!i){if(t.length===1){let i=e.context.fileName;return n.log(G,em(r,n.module.id,i,!!a?.missingButExportExists),t[0].pos),`undefined`}return null}return H_(i,t.slice(1),n)}let U_=`ROLLUP_FILE_URL_`,W_=`ROLLUP_FILE_URL_OBJ_`,G_=`import`;var K_=class extends J{constructor(){super(...arguments),this.metaProperty=null,this.preliminaryChunkId=null,this.referenceId=null}getReferencedFileName(e){let{meta:{name:t},metaProperty:n}=this;if(t===G_){if(n?.startsWith(W_))return e.getFileName(n.slice(20));if(n?.startsWith(U_))return e.getFileName(n.slice(16))}return null}hasEffects(){return!1}hasEffectsOnInteractionAtPath(e,{type:t}){return e.length>1||t!==0}include(){this.included||this.includeNode()}includeNode(){if(this.included=!0,this.meta.name===G_){this.scope.context.addImportMeta(this);let e=this.parent,t=this.metaProperty=e instanceof V_&&typeof e.propertyKey==`string`?e.propertyKey:null;t?.startsWith(W_)?this.referenceId=t.slice(20):t?.startsWith(U_)&&(this.referenceId=t.slice(16))}}render(e,t){let{format:n,pluginDriver:r,snippets:i}=t,{scope:{context:{module:a}},meta:{name:o},metaProperty:s,parent:c,preliminaryChunkId:l,referenceId:u,start:d,end:f}=this,{id:p,info:{attributes:m}}=a;if(o!==G_)return;let h=l;if(u){let t=r.getFileName(u),i=_d(Sd(yd(h),t)),a=!!s?.startsWith(W_),o=r.hookFirstSync(`resolveFileUrl`,[{attributes:m,chunkId:h,fileName:t,format:n,moduleId:p,referenceId:u,relativePath:i}])||nv[n](i,a);e.overwrite(c.start,c.end,o,{contentOnly:!0});return}let g=r.hookFirstSync(`resolveImportMeta`,[s,{attributes:m,chunkId:h,format:n,moduleId:p}]);g||(g=rv[n]?.(s,{chunkId:h,snippets:i}),t.accessedDocumentCurrentScript||=q_.includes(n)&&g!==`undefined`),typeof g==`string`&&(c instanceof V_?e.overwrite(c.start,c.end,g,{contentOnly:!0}):e.overwrite(d,f,g,{contentOnly:!0}))}setResolution(e,t,n){this.preliminaryChunkId=n;let r=(this.metaProperty?.startsWith(U_)||this.metaProperty?.startsWith(W_)?Y_:J_)[e];r.length>0&&this.scope.addAccessedGlobals(r,t)}};let q_=[`cjs`,`iife`,`umd`],J_={amd:[`document`,`module`,`URL`],cjs:[`document`,`require`,`URL`,p_],es:[],iife:[`document`,`URL`,p_],system:[`module`],umd:[`document`,`require`,`URL`,p_]},Y_={amd:[`document`,`require`,`URL`],cjs:[`document`,`require`,`URL`],es:[],iife:[`document`,`URL`],system:[`module`,`URL`],umd:[`document`,`require`,`URL`]},X_=(e,t,n=`URL`)=>`new ${n}(${e})${t?``:`.href`}`,Z_=(e,t,n=!1)=>X_(`'${a_(e)}', ${n?`typeof document === 'undefined' ? location.href : `:``}document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT' && document.currentScript.src || document.baseURI`,t),Q_=e=>(t,{chunkId:n})=>{let r=e(n);return t===null?`({ url: ${r} })`:t===`url`?r:`undefined`},$_=(e,t)=>`require('u' + 'rl').pathToFileURL(${e})${t?``:`.href`}`,ev=(e,t)=>$_(`__dirname + '/${a_(e)}'`,t),tv=(e,t=!1)=>`${t?`typeof document === 'undefined' ? location.href : `:``}(${p_} && ${p_}.tagName.toUpperCase() === 'SCRIPT' && ${p_}.src || new URL('${a_(e)}', document.baseURI).href)`,nv={amd:(e,t)=>(e[0]!==`.`&&(e=`./`+e),X_(`require.toUrl('${a_(e)}'), document.baseURI`,t)),cjs:(e,t)=>`(typeof document === 'undefined' ? ${ev(e,t)} : ${Z_(e,t)})`,es:(e,t)=>X_(`'${a_(e)}', import.meta.url`,t),iife:(e,t)=>Z_(e,t),system:(e,t)=>X_(`'${a_(e)}', module.meta.url`,t),umd:(e,t)=>`(typeof document === 'undefined' && typeof location === 'undefined' ? ${ev(e,t)} : ${Z_(e,t,!0)})`},rv={amd:Q_(()=>X_(`module.uri, document.baseURI`,!1)),cjs:Q_(e=>`(typeof document === 'undefined' ? ${$_(`__filename`,!1)} : ${tv(e)})`),iife:Q_(e=>tv(e)),system:(e,{snippets:{getPropertyAccess:t}})=>e===null?`module.meta`:`module.meta${t(e)}`,umd:Q_(e=>`(typeof document === 'undefined' && typeof location === 'undefined' ? ${$_(`__filename`,!1)} : ${tv(e,!0)})`)};function iv(e,t){return e.renderBaseName!==null&&t.has(e)&&e.isReassigned}function av(e,t){if(iv(e,t))return!0;let n=e.getHoistedVariable();return n!==void 0&&n.renderBaseName!==null}function ov(e){if(e.scope.context.usesTopLevelAwait)return;let t=e.parent;do if(t instanceof Qg)return;while(t=t.parent);e.scope.context.usesTopLevelAwait=!0}var sv=class extends J{addExportedVariables(e,t){for(let n of this.elements)n?.addExportedVariables(e,t)}declare(e,t,n){let r=[],i=cv(t);for(let t of this.elements)t!==null&&r.push(...t.declare(e,i,n));return r}deoptimizeAssignment(e,t){let n=cv(e);for(let e of this.elements)e?.deoptimizeAssignment(n,t)}deoptimizePath(){for(let e of this.elements)e?.deoptimizePath(H)}hasEffectsWhenDestructuring(e,t,n){let r=cv(t);for(let t of this.elements)if(t?.hasEffectsWhenDestructuring(e,r,n))return!0;return!1}hasEffectsOnInteractionAtPath(e,t,n){for(let e of this.elements)if(e?.hasEffectsOnInteractionAtPath(H,t,n))return!0;return!1}includeDestructuredIfNecessary(e,t,n){let r=!1,i=cv(t);for(let t of[...this.elements].reverse())t&&(r&&!t.included&&t.includeNode(e),r=t.includeDestructuredIfNecessary(e,i,n)||r);return!this.included&&r&&this.includeNode(e),this.included}render(e,t){let n=this.start+1;for(let r of this.elements)if(r){if(!r.included){e.remove(n,this.end-1);break}r.render(e,t),n=r.end}}setAssignedValue(e){super.setAssignedValue(e);for(let e of this.elements)e?.setAssignedValue(W)}markDeclarationReached(){for(let e of this.elements)e?.markDeclarationReached()}};sv.prototype.includeNode=Lm;let cv=e=>e.at(-1)===V?e:[...e,df];var lv=class extends J{addExportedVariables(e,t){for(let n of this.properties)n.type===Yd?n.value.addExportedVariables(e,t):n.argument.addExportedVariables(e,t)}declare(e,t,n){let r=[];for(let i of this.properties)r.push(...i.declare(e,t,n));return r}deoptimizeAssignment(e,t){for(let n of this.properties)n.deoptimizeAssignment(e,t)}deoptimizePath(e){if(e.length===0)for(let t of this.properties)t.deoptimizePath(e)}hasEffectsOnInteractionAtPath(e,t,n){for(let e of this.properties)if(e.hasEffectsOnInteractionAtPath(H,t,n))return!0;return!1}hasEffectsWhenDestructuring(e,t,n){for(let r of this.properties)if(r.hasEffectsWhenDestructuring(e,t,n))return!0;return!1}includeDestructuredIfNecessary(e,t,n){if(!this.properties.length)return this.included;let r=this.properties.at(-1),i=r.includeDestructuredIfNecessary(e,t,n),a=r.type===Xd;for(let r of this.properties.slice(0,-1))a&&i&&!r.included&&r.includeNode(e),i=r.includeDestructuredIfNecessary(e,t,n)||i;return!this.included&&i&&this.includeNode(e),this.included}markDeclarationReached(){for(let e of this.properties)e.markDeclarationReached()}render(e,t){if(this.properties.length>0){let n=Bd(this.properties,e,this.start+1,this.end-1),r=null;for(let{node:i,separator:a,start:o,end:s}of n)i.included?(r=a,i.render(e,t)):jd(i,e,o,s);r&&e.remove(r,this.end-1)}}setAssignedValue(e){super.setAssignedValue(e);for(let e of this.properties)e.setAssignedValue(W)}};lv.prototype.includeNode=Rm,lv.prototype.applyDeoptimizations=zm;var uv=class extends J{addExportedVariables(e,t){if(this.kind===`var`)for(let n of this.declarations)n.id.addExportedVariables(e,t)}deoptimizePath(){for(let e of this.declarations)e.deoptimizePath(H)}hasEffectsOnInteractionAtPath(){return!1}include(e,t,{asSingleStatement:n}=nf){this.included=!0;for(let r of this.declarations){(t||r.shouldBeIncluded(e))&&r.include(e,t);let{id:i,init:a}=r;n&&i.include(e,t),a&&i.included&&!a.included&&(i instanceof lv||i instanceof sv)&&a.include(e,t)}}initialise(){super.initialise(),this.kind===`await using`&&ov(this);for(let e of this.declarations)e.declareDeclarator(this.kind)}removeAnnotations(e){this.declarations[0].removeAnnotations(e)}render(e,t,n=nf){if(this.isForInOfHead())this.renderForInOfHead(e,t);else if(this.areAllDeclarationsIncludedAndNotExported(t.exportNamesByVariable)){for(let n of this.declarations)n.render(e,t);n.isNoStatement||e.original.charCodeAt(this.end-1)===59||e.appendLeft(this.end,`;`)}else this.isInSingleStatementPosition()?this.renderSingleStatementDeclaration(e,t,!0===n.isNoStatement):this.renderReplacedDeclarations(e,t,!0===n.isNoStatement)}isForInOfHead(){let e=this.parent;return(e.type===`ForOfStatement`||e.type===`ForInStatement`)&&e.left===this}isInSingleStatementPosition(){let{type:e}=this.parent;return e!==Jd&&e!==Ud&&e!==Zd&&e!==`SwitchCase`&&e!==`ExportNamedDeclaration`}renderForInOfHead(e,t){let n=this.declarations[0];if(n.id instanceof bg&&av(n.id.variable,t.exportNamesByVariable))return e.remove(this.start,n.id.start),void n.id.render(e,t);for(let n of this.declarations)n.render(e,t)}renderDeclarationEnd(e,t,n,r,i,a,o,s){e.original.charCodeAt(this.end-1)===59&&e.remove(this.end-1,this.end),s||(t+=`;`),n===null?t&&e.appendLeft(i,t):(e.original.charCodeAt(r-1)!==10||e.original.charCodeAt(this.end)!==10&&e.original.charCodeAt(this.end)!==13||(r--,e.original.charCodeAt(r)===13&&r--),r===n+1?e.overwrite(n,i,t):(e.overwrite(n,n+1,t),e.remove(r,i))),a.length>0&&e.appendLeft(i,` ${Qd(a,o)};`)}renderReplacedDeclarations(e,t,n){let r=Bd(this.declarations,e,this.start+this.kind.length,this.end-+(e.original.charCodeAt(this.end-1)===59)),i,a;a=Fd(e.original,this.start+this.kind.length);let o=a-1;e.remove(this.start,o);let s,c=!1,l=!1,u=``,d=[],f=function(e,t,n){let r=null;if(t.format===`system`){for(let{node:i}of e)i.id instanceof bg&&i.init&&n.length===0&&t.exportNamesByVariable.get(i.id.variable)?.length===1?(r=i.id.variable,n.push(r)):i.id.addExportedVariables(n,t.exportNamesByVariable);n.length>1?r=null:r&&(n.length=0)}return r}(r,t,d),{exportNamesByVariable:p}=t;for(let{node:n,start:d,separator:m,contentEnd:h,end:g}of r)if(!n.included)jd(n,e,d,g);else{if(n.render(e,t),s=``,!n.id.included||n.id instanceof bg&&av(n.id.variable,p))l&&(u+=`;`),c=!1;else{if(f&&f===n.id.variable){let r=Nd(e.original,`=`,n.id.end);$d(f,Fd(e.original,r+1),m===null?h:m,e,t)}c?u+=`,`:(l&&(u+=`;`),s+=`${this.kind} `,c=!0)}a===o+1?e.overwrite(o,a,u+s):(e.overwrite(o,o+1,u),e.appendLeft(a,s)),i=h,a=g,l=!0,o=m,u=``}this.renderDeclarationEnd(e,u,o,i,a,d,t,n)}renderSingleStatementDeclaration(e,t,n){let r=Bd(this.declarations,e,this.start+this.kind.length,this.end-+(e.original.charCodeAt(this.end-1)===59)),i,a;a=Fd(e.original,this.start+this.kind.length);let o=a-1;e.remove(this.start,o);let s=!1,c=a,l=``,u=[],{exportNamesByVariable:d,snippets:{_:f,getPropertyAccess:p}}=t;for(let{node:n,start:f,separator:p,contentEnd:m,end:h}of r){if(!n.included){jd(n,e,f,h);continue}n.render(e,t),t.format===`system`&&this.renderSingleStatementSystemExports(n,p,m,e,t,u);let r=``,g=n.id instanceof bg&&av(n.id.variable,d);s?l=`,`:g||(r=`${this.kind} `),a===o+1?e.overwrite(o,a,l+r):(e.overwrite(o,o+1,l),e.appendLeft(a,r)),i=m,a=h,c=p===null?m:p,s=!0,o=p,l=``}if(u.length>0){let n=u[0].getName(p);e.appendLeft(c,`,${f}${n}${f}=${f}(${Qd(u,t)},${f}${n})`)}this.renderDeclarationEnd(e,l,o,i,a,[],t,n)}renderSingleStatementSystemExports(e,t,n,r,i,a){let{exportNamesByVariable:o}=i;if(e.id instanceof bg){let s=e.id.variable,c=o.get(s);if(!e.init||!c)return;if(c.length===1){let a=Nd(r.original,`=`,e.id.end);$d(s,Fd(r.original,a+1),t===null?n:t,r,i)}else a.push(s)}else e.id.addExportedVariables(a,o)}areAllDeclarationsIncludedAndNotExported(e){if(this.kind===`await using`||this.kind===`using`)return!0;for(let t of this.declarations){if(!t.id.included)return!1;if(t.id.type===qd){if(e.has(t.id.variable)||av(t.id.variable,e))return!1}else{let n=[];if(t.id.addExportedVariables(n,e),n.length>0)return!1}}return!0}};uv.prototype.includeNode=Rm,uv.prototype.applyDeoptimizations=zm;var dv=class extends jg{render(e,t,{renderedSurroundingElement:n}=nf){super.render(e,t),n===Kd&&(e.appendRight(this.start,`(`),e.prependLeft(this.end,`)`))}},fv=class extends J{declareDeclarator(e){this.isUsingDeclaration=e===`using`,this.isAsyncUsingDeclaration=e===`await using`,this.id.declare(e,H,this.init||qm)}deoptimizePath(e){this.id.deoptimizePath(e)}deoptimizeCache(){!this.hasDeoptimizedDisposal&&this.init&&(this.hasDeoptimizedDisposal=!0,this.init.deoptimizePath(U),this.init.includePath(U,Pf()),this.scope.context.requestTreeshakingPass())}hasEffects(e){let t=this.init?.hasEffects(e);return this.id.markDeclarationReached(),t||this.isUsingDeclaration||this.isAsyncUsingDeclaration||this.id.hasEffects(e)||this.scope.context.options.treeshake.propertyReadSideEffects&&this.id.hasEffectsWhenDestructuring(e,H,this.init||qm)}include(e,t){let{id:n,init:r}=this;this.included||this.includeNode(e);let{disposalCall:i,disposalFunction:a}=this;a&&i&&a.includeCallArgumentsWhenCalledAtPath(H,i,e),r?.include(e,t),n.markDeclarationReached(),t?n.include(e,t):n.includeDestructuredIfNecessary(e,H,r||qm)}removeAnnotations(e){this.init?.removeAnnotations(e)}render(e,t){let{exportNamesByVariable:n,snippets:{_:r,getPropertyAccess:i}}=t,{end:a,id:o,init:s,start:c}=this,l=o.included||this.isUsingDeclaration||this.isAsyncUsingDeclaration;if(l)o.render(e,t);else{let t=Nd(e.original,`=`,o.end);e.remove(c,Fd(e.original,t+1))}s?(o instanceof bg&&s instanceof dv&&!s.id&&o.variable.getName(i)!==o.name&&e.appendLeft(s.start+5,` ${o.name}`),s.render(e,t,l?nf:{renderedSurroundingElement:Kd})):o instanceof bg&&iv(o.variable,n)&&e.appendLeft(a,`${r}=${r}void 0`)}includeNode(e){this.included=!0;let{id:t,init:n}=this;if(n){if(this.isUsingDeclaration||this.isAsyncUsingDeclaration){let t={access:{args:[n],type:0},call:{args:[n],type:2,withNew:!1}};!this.isUsingDeclaration&&this.includeDisposalMethodAndCheckIfKnownFunction(n,mv,t,e)||this.includeDisposalMethodAndCheckIfKnownFunction(n,pv,t,e),this.scope.context.requestTreeshakingPass()}if(t instanceof bg&&n instanceof dv&&!n.id){let{name:e,variable:r}=t;for(let t of n.scope.accessedOutsideVariables.values())t!==r&&t.forbidName(e)}}}includeDisposalMethodAndCheckIfKnownFunction(e,t,{access:n,call:r},i){e.deoptimizeArgumentsOnInteractionAtPath(n,t,Ef);let a=e.getKnownFunctionAtPath(t,Ef,this);return e.includePath(t,i),a?(this.disposalFunction=a,this.disposalCall=r,a.deoptimizeArgumentsOnInteractionAtPath(r,H,Ef),!0):(e.getLiteralValueAtPath(t,Ef,this)!=null&&(e.deoptimizeArgumentsOnInteractionAtPath(r,t,Ef),e.includeCallArgumentsWhenCalledAtPath(t,r,i)),!1)}};fv.prototype.applyDeoptimizations=zm;let pv=[mf],mv=[hf];var hv=class e extends hm{constructor(e){super(e.getModuleName()),this.areAllMembersDeoptimized=!1,this.mergedNamespaces=[],this.nonExplicitNamespacesIncluded=!1,this.referencedEarly=!1,this.references=[],this.context=e,this.module=e.module}addReference(e){this.references.push(e),this.name=e.name,this.markReferencedFrom(e)}addUsedPlace(e){super.addUsedPlace(e),this.markReferencedFrom(e)}deoptimizeArgumentsOnInteractionAtPath(e,t,n){if(t.length>1||t.length===1&&e.type===2){let r=t[0];typeof r==`string`?this.getMemberVariable(r)?.deoptimizeArgumentsOnInteractionAtPath(e,t.slice(1),n):Uf(e)}}deoptimizePath(e){if(e.length>1){let t=e[0];if(typeof t==`string`)this.getMemberVariable(t)?.deoptimizePath(e.slice(1));else if(!this.areAllMembersDeoptimized){this.areAllMembersDeoptimized=!0;for(let e of this.module.getExportedVariablesByName().values())e.deoptimizePath(U)}}}getLiteralValueAtPath(e){return e[0]===pf?`Module`:Rf}hasEffectsOnInteractionAtPath(e,t,n){let{type:r}=t;if(e.length===0)return!0;if(e.length===1&&r!==2)return r===1;let i=e[0];if(typeof i!=`string`)return!0;let a=this.getMemberVariable(i);return!a||a.hasEffectsOnInteractionAtPath(e.slice(1),t,n)}includePath(e,t){super.includePath(e,t),this.includeMemberPath(e,t)}includeMemberPath(e,t){if(e.length>0){let[n,...r]=e;if(typeof n==`string`){let e=this.getMemberVariable(n);e?this.context.includeVariableInModule(e,r,t):this.includeNonExplicitNamespaces()}else n&&(this.module.includeAllExports(),this.includeNonExplicitNamespaces())}}prepare(e){this.mergedNamespaces.length>0&&this.module.scope.addAccessedGlobals([f_],e)}renderBlock(e,t){let{exportNamesByVariable:n,format:r,freeze:i,indent:a,symbols:o,snippets:{_:s,cnst:c,getObject:l,getPropertyAccess:u,n:d,s:f}}=e,p=[...this.module.getExportedVariablesByName().entries()].filter(([e,t])=>!Od(e)&&t.included).map(([e,n])=>{let r=Dd(e);return t||n.isReassigned||n===this||n.module&&!n.module.info.isExternal&&n.module.execIndex>this.module.execIndex?[null,`get ${Tm(r)}${s}()${s}{${s}return ${n.getName(u)}${f}${s}}`]:[r,n.getName(u)]});p.unshift([null,`__proto__:${s}null`]);let m=l(p,{lineBreakIndent:{base:``,t:a}});if(this.mergedNamespaces.length>0){let e=this.mergedNamespaces.map(e=>e.getName(u));m=`/*#__PURE__*/${f_}(${m},${s}[${e.join(`,${s}`)}])`}else o&&(m=`/*#__PURE__*/Object.defineProperty(${m},${s}Symbol.toStringTag,${s}${N_(l)})`),i&&(m=`/*#__PURE__*/Object.freeze(${m})`);return m=`${c} ${this.getName(u)}${s}=${s}${m};`,r===`system`&&n.has(this)&&(m+=`${d}${Qd([this],e)};`),m}getIncludedMemberNamespaces(){let t=[];for(let n of this.module.getExportedVariablesByName().values()){if(!n.included)continue;let r=n instanceof F_?n.getOriginalNamespaceVariable():n;r instanceof e&&r!==this&&t.push(r)}return t}getMergedNamespaces(){return this.mergedNamespaces}isReferencedEarly(){return this.referencedEarly}setMergedNamespaces(e){this.mergedNamespaces=e}getMemberVariable(e){return this.module.getExportedVariablesByName().get(Ed(e))}markReferencedFrom(e){e.scope.context.getModuleExecIndex()<=this.context.getModuleExecIndex()&&(this.referencedEarly=!0)}includeNonExplicitNamespaces(){this.nonExplicitNamespacesIncluded||(this.nonExplicitNamespacesIncluded=!0,this.setMergedNamespaces(this.module.includeAndGetAdditionalMergedNamespaces()))}};hv.prototype.isNamespace=!0;let gv=e=>Object.create(e,{includePath:{value(t,n){e.includeMemberPath(t,n)}}});var _v=class e extends hm{constructor(e,t,n){super(t),this.baseVariable=null,this.context=e,this.module=e.module,this.syntheticNamespace=n}getBaseVariable(){if(this.baseVariable)return this.baseVariable;let t=this.syntheticNamespace;for(;t instanceof F_||t instanceof e;){if(t instanceof F_){let e=t.getOriginalVariable();if(e===t)break;t=e}t instanceof e&&(t=t.syntheticNamespace)}return this.baseVariable=t}getBaseVariableName(){return this.syntheticNamespace.getBaseVariableName()}getName(e){return`${this.syntheticNamespace.getName(e)}${e(this.name)}`}includePath(e,t){super.includePath(e,t),this.context.includeVariableInModule(this.syntheticNamespace,[this.name,...e],t)}setRenderNames(e,t){super.setRenderNames(e,t)}},vv=class{constructor(e,t,n){this.options=t,this.inputBase=n,this.defaultVariableName=``,this.namespaceVariableName=``,this.variableName=``,this.fileName=null,this.importAttributes=null,this.id=e.id,this.moduleInfo=e.info,this.renormalizeRenderPath=e.renormalizeRenderPath,this.suggestedVariableName=e.suggestedVariableName}get moduleSideEffects(){return this.moduleInfo.moduleSideEffects}getFileName(){if(this.fileName)return this.fileName;let{paths:e}=this.options;return this.fileName=(typeof e==`function`?e(this.id):e[this.id])||(this.renormalizeRenderPath?_d(Sd(this.inputBase,this.id)):this.id)}getImportAttributes(e){return this.importAttributes||=yv([`es`,`cjs`].includes(this.options.format)&&this.options.externalImportAttributes&&this.moduleInfo.attributes,e)}getImportPath(e){return a_(this.renormalizeRenderPath?sp(e,this.getFileName(),this.options.format===`amd`,!1):this.getFileName())}};function yv(e,{getObject:t}){if(!e)return null;let n=Object.entries(e).map(([e,t])=>[e,JSON.stringify(t)]);return n.length>0?t(n,{lineBreakIndent:null}):null}function bv(e){return e.endsWith(`.js`)?e.slice(0,-3):e}function xv(e,t){return e.autoId?`${e.basePath?e.basePath+`/`:``}${bv(t)}`:e.id??``}function Sv(e,t,n,r,i,a,o,s,c=`return `){let{_:l,getFunctionIntro:u,getPropertyAccess:d,n:f,s:p}=i;if(!n)return`${f}${f}${c}${function(e,t,n,r,i){if(e.length>0)return e[0].local;for(let{defaultVariableName:e,importPath:a,isChunk:o,name:s,namedExportsMode:c,namespaceVariableName:l,reexports:u}of t)if(u)return Cv(s,u[0].imported,c,o,e,l,n,a,r,i)}(e,t,r,o,d)};`;let m=``;if(n){for(let{defaultVariableName:e,importPath:n,isChunk:s,name:c,namedExportsMode:u,namespaceVariableName:p,reexports:h}of t)if(h){for(let t of h)if(t.reexported!==`*`){let h=Cv(c,t.imported,u,s,e,p,r,n,o,d);m&&(m+=f),t.imported!==`*`&&t.needsLiveBinding?m+=`Object.defineProperty(exports,${l}${JSON.stringify(Dd(t.reexported))},${l}${Dv(h,!1,a,i)});`:t.reexported===`__proto__`?m+=`Object.defineProperty(exports,${l}"__proto__",${l}{${f}${a}enumerable:${l}true,${f}${a}value:${l}${h}${f}});`:m+=`exports${d(Dd(t.reexported))}${l}=${l}${h};`}}}for(let{exported:t,local:n,needsLiveBinding:r}of e){let e=`exports${d(Dd(t))}`,o=n;if(e!==o){if(m&&(m+=f),r){m+=`Object.defineProperty(exports,${l}${JSON.stringify(Dd(t))},${l}${Dv(o,!0,a,i)});`;continue}m+=t===`__proto__`?`Object.defineProperty(exports,${l}"__proto__",${l}{${f}${a}enumerable:${l}true,${f}${a}value:${l}${o}${f}});`:`${e}${l}=${l}${o};`}}if(n){for(let{name:e,reexports:n}of t)if(n){for(let t of n)if(t.reexported===`*`){if(m&&(m+=f),!t.needsLiveBinding&&s){let t=`'__proto__'`;m+=`Object.prototype.hasOwnProperty.call(${e},${l}${t})${l}&&${f}${a}!Object.prototype.hasOwnProperty.call(exports,${l}${t})${l}&&${f}${a}Object.defineProperty(exports,${l}${t},${l}{${f}${a}${a}enumerable:${l}true,${f}${a}${a}value:${l}${e}[${t}]${f}${a}});${f}${f}`}let n=`{${f}${a}if${l}(k${l}!==${l}'default'${l}&&${l}!Object.prototype.hasOwnProperty.call(exports,${l}k))${l}${Ev(e,t.needsLiveBinding,a,i)}${p}${f}}`;m+=`Object.keys(${e}).forEach(${u([`k`],{isAsync:!1,name:null})}${n});`}}}return m?`${f}${f}${m}`:``}function Cv(e,t,n,r,i,a,o,s,c,l){if(t==="default"){if(!r){let t=o(s),n=m_[t]?i:e;return h_(t,c)?`${n}${l(`default`)}`:n}return n?`${e}${l(`default`)}`:e}return t===`*`?(r?!n:g_[o(s)])?a:e:`${e}${l(Dd(t))}`}function wv(e){return e([[`value`,`true`]],{lineBreakIndent:null})}function Tv(e,t,n,{_:r,getObject:i}){if(e){if(t)return n?`Object.defineProperties(exports,${r}${i([[`__esModule`,wv(i)],[null,`[Symbol.toStringTag]:${r}${N_(i)}`]],{lineBreakIndent:null})});`:`Object.defineProperty(exports,${r}'__esModule',${r}${wv(i)});`;if(n)return`Object.defineProperty(exports,${r}Symbol.toStringTag,${r}${N_(i)});`}return``}let Ev=(e,t,n,r)=>{let{_:i}=r;return t?`Object.defineProperty(exports,${i}k,${i}${Dv(`${e}[k]`,!1,n,r,n)})`:`exports[k]${i}=${i}${e}[k]`},Dv=(e,t,n,{getDirectReturnFunction:r,getObject:i},a=``)=>{let[o,s]=r([],{functionReturn:!0,lineBreakIndent:null,name:null}),c=[[`enumerable`,`true`],[`get`,`${o}${e}${s}`]];return t&&c.unshift([`configurable`,`true`]),i(c,{lineBreakIndent:{base:a,t:n}})};function Ov(e,t,n,r,i,a,o,s){let{_:c,cnst:l,n:u}=s,d=/* @__PURE__ */ new Set,f=[],p=(e,t,n)=>{d.add(t),f.push(`${l} ${e}${c}=${c}/*#__PURE__*/${t}(${n});`)};for(let{defaultVariableName:n,imports:r,importPath:i,isChunk:a,name:o,namedExportsMode:s,namespaceVariableName:c,reexports:l}of e)if(a){for(let{imported:e,reexported:t}of[...r||[],...l||[]])if(e===`*`&&t!==`*`){s||p(c,d_,o);break}}else{let e=t(i),a=!1,s=!1;for(let{imported:t,reexported:i}of[...r||[],...l||[]]){let r,l;t==="default"?a||(a=!0,n!==c&&(l=n,r=m_[e])):t!==`*`||i===`*`||s||(s=!0,r=g_[e],l=c),r&&p(l,r,o)}}return`${v_(d,a,o,s,n,r,i)}${f.length>0?`${f.join(u)}${u}${u}`:``}`}function kv(e,t,n){let r=n.find(e=>e.sourcePhaseImport);r&&q(function(e,t,n){return{code:`SOURCE_PHASE_FORMAT_UNSUPPORTED`,message:`Source phase imports are not supported for the "${e}" output format, importing "${n}" in "${t}". Use the "es" output format to support source phase imports.`,url:cp(yp)}}(e,t,r.importPath))}function Av(e,t){return e[0]===`.`?t?(n=e).endsWith(`.js`)?n:n+`.js`:bv(e):e;var n}let jv=/* @__PURE__ */ new Set(/* @__PURE__ */ `node:assert.assert.node:assert/strict.assert/strict.node:async_hooks.async_hooks.node:bench.node:bench/reporters.node:buffer.buffer.node:child_process.child_process.node:cluster.cluster.node:console.console.node:constants.constants.node:crypto.crypto.node:dgram.dgram.node:diagnostics_channel.diagnostics_channel.node:dns.dns.node:dns/promises.dns/promises.node:domain.domain.node:events.events.node:ffi.node:fs.fs.node:fs/promises.fs/promises.node:http.http.node:http2.http2.node:https.https.node:inspector.inspector.node:inspector/promises.inspector/promises.node:module.module.node:net.net.node:net/promises.net/promises.node:os.os.node:path.path.node:path/posix.path/posix.node:path/win32.path/win32.node:perf_hooks.perf_hooks.node:process.process.node:querystring.querystring.node:quic.node:readline.readline.node:readline/promises.readline/promises.node:repl.repl.node:sea.node:sqlite.node:stream.stream.node:stream/consumers.stream/consumers.node:stream/iter.stream/iter.node:stream/promises.stream/promises.node:stream/web.stream/web.node:string_decoder.string_decoder.node:test.node:test/reporters.node:timers.timers.node:timers/promises.timers/promises.node:tls.tls.node:trace_events.trace_events.node:tty.tty.node:url.url.node:util.util.node:util/types.util/types.node:v8.v8.node:vfs.node:vm.vm.node:wasi.wasi.node:worker_threads.worker_threads.node:zlib.zlib.node:zlib/iter.zlib/iter`.split(`.`));function Mv(e,t){let n=t.map(({importPath:e})=>e).filter(e=>jv.has(e)||e.startsWith(`node:`));n.length!==0&&e(G,function(e){return{code:`MISSING_NODE_BUILTINS`,ids:e,message:`Creating a browser bundle that depends on Node.js built-in modules (${np(e)}). You might need to include https://github.com/FredKSchott/rollup-plugin-polyfill-node`}}(n))}let Nv=e=>{return t=Dd(e),Cm.test(t)?t:JSON.stringify(t);var t},Pv=(e,t)=>e.split(`.`).map(t).join(``);function Fv(e,t,n,r,{_:i,getPropertyAccess:a},o){let s=e.split(`.`),c=s[0]in Object.prototype;o&&c&&o(G,om(s[0])),s[0]=(typeof n==`function`?n(s[0]):c?s[0]:n[s[0]])||s[0];let l=s.pop(),u=t,d=[...s.map(e=>(u+=a(e),`${u}${i}=${i}${u}${i}||${i}{}`)),`${u}${a(l)}`].join(`,${i}`)+`${i}=${i}${r}`;return s.length>0&&(d=`(${d})`),d}function Iv(e){let t=e.length;for(;t--;){let{imports:n,reexports:r}=e[t];if(n||r)return e.slice(0,t+1)}return[]}let Lv=`_missingExportShim`,Rv=({dependencies:e,exports:t})=>{let n=new Set(t.map(e=>Dd(e.exported)));n.add(`default`);for(let{reexports:t}of e)if(t)for(let e of t)e.reexported!==`*`&&n.add(Dd(e.reexported));return n},zv=(e,t,{_:n,cnst:r,getObject:i,n:a})=>{if(e){let o=[...e].map(e=>[e,`1`]);return o.unshift([null,`__proto__:${n}null`]),`${a}${t}${r} _starExcludes${n}=${n}${i(o,{lineBreakIndent:{base:t,t}})};`}return``},Bv=(e,t,{_:n,n:r})=>e.length>0?`${r}${t}var ${e.join(`,${n}`)};`:``,Vv=(e,t,n)=>Hv(e.filter(e=>e.hoisted).map(e=>({name:e.exported,value:e.local})),t,n);function Hv(e,t,{_:n,n:r}){return e.length===0?``:e.length===1?`exports(${JSON.stringify(Dd(e[0].name))},${n}${e[0].value});${r}${r}`:`exports({${r}`+e.map(({name:e,value:r})=>`${t}${Tm(Dd(e))}:${n}${r}`).join(`,${r}`)+`${r}});${r}${r}`}let Uv=(e,t,n)=>Hv(e.filter(e=>e.expression).map(e=>({name:e.exported,value:e.local})),t,n),Wv=(e,t,n)=>Hv(e.filter(e=>e.local===Lv).map(e=>({name:e.exported,value:Lv})),t,n);function Gv(e,t,n){return e?`${t}${Pv(e,n)}`:`null`}var Kv={amd:function(e,{accessedGlobals:t,dependencies:n,exports:r,hasDefaultExport:i,hasExports:a,id:o,indent:s,intro:c,isEntryFacade:l,isModuleFacade:u,namedExportsMode:d,log:f,outro:p,snippets:m},{amd:h,esModule:g,externalLiveBindings:_,freeze:ee,generatedCode:{symbols:te},interop:v,reexportProtoFromExternal:y,strict:ne}){Mv(f,n),kv(`amd`,o,n);let re=n.map(e=>`'${Av(e.importPath,h.forceJsExtensionForImports)}'`),b=n.map(e=>e.name),{n:x,getNonArrowFunctionIntro:S,_:C}=m;a&&(d||r[0]?.local===`exports.default`)&&(b.unshift(`exports`),re.unshift(`'exports'`)),t.has(`require`)&&(b.unshift(`require`),re.unshift(`'require'`)),t.has(`module`)&&(b.unshift(`module`),re.unshift(`'module'`));let ie=xv(h,o),ae=(ie?`'${ie}',${C}`:``)+(re.length>0?`[${re.join(`,${C}`)}],${C}`:``),w=ne?`${C}'use strict';`:``;e.prepend(`${c}${Ov(n,v,_,ee,te,t,s,m)}`);let oe=Sv(r,n,d,v,m,s,_,y),T=Tv(d&&a,l&&(!0===g||g===`if-default-prop`&&i),u&&te,m);T&&=x+x+T,e.append(`${oe}${T}${p}`).indent(s).prepend(`${h.define}(${ae}(${S(b,{isAsync:!1,name:null})}{${w}${x}${x}`).append(`${x}${x}}));`)},cjs:function(e,{accessedGlobals:t,dependencies:n,exports:r,hasDefaultExport:i,hasExports:a,id:o,indent:s,intro:c,isEntryFacade:l,isModuleFacade:u,namedExportsMode:d,outro:f,snippets:p},{compact:m,esModule:h,externalLiveBindings:g,freeze:_,interop:ee,generatedCode:{symbols:te},reexportProtoFromExternal:v,strict:y}){kv(`cjs`,o,n);let{_:ne,n:re}=p,b=y?`'use strict';${re}${re}`:``,x=Tv(d&&a,l&&(!0===h||h===`if-default-prop`&&i),u&&te,p);x&&(x+=re+re);let S=function(e,{_:t,cnst:n,n:r},i){let a=``,o=!1;for(let{importPath:s,name:c,reexports:l,imports:u}of e)l||u?(a+=i&&o?`,`:`${a?`;${r}`:``}${n} `,o=!0,a+=`${c}${t}=${t}require('${s}')`):(a&&(a+=i&&!o?`,`:`;${r}`),o=!1,a+=`require('${s}')`);return a?`${a};${r}${r}`:``}(n,p,m),C=Ov(n,ee,g,_,te,t,s,p);e.prepend(`${b}${c}${x}${S}${C}`);let ie=Sv(r,n,d,ee,p,s,g,v,`module.exports${ne}=${ne}`);e.append(`${ie}${f}`)},es:function(e,{accessedGlobals:t,indent:n,intro:r,outro:i,dependencies:a,exports:o,snippets:s},{externalLiveBindings:c,freeze:l,generatedCode:{symbols:u},importAttributesKey:d}){let{n:f}=s,p=function(e,t,{_:n}){let r=[];for(let{importPath:i,reexports:a,imports:o,name:s,attributes:c,sourcePhaseImport:l}of e){let e=`'${i}'${c?`${n}${t}${n}${c}`:``};`;if(l&&r.push(`import source ${l} from${n}${e}`),a||o){if(o){let t=null,i=null,a=[];for(let e of o)e.imported==="default"?t=e:e.imported===`*`?i=e:a.push(e);i&&r.push(`import${n}*${n}as ${i.local} from${n}${e}`),t&&a.length===0?r.push(`import ${t.local} from${n}${e}`):a.length>0&&r.push(`import ${t?`${t.local},${n}`:``}{${n}${a.map(e=>e.imported===e.local?e.imported:`${Nv(e.imported)} as ${e.local}`).join(`,${n}`)}${n}}${n}from${n}${e}`)}if(a){let t=null,i=[],c=[];for(let e of a)e.reexported===`*`?t=e:e.imported===`*`?i.push(e):c.push(e);if(t&&r.push(`export${n}*${n}from${n}${e}`),i.length>0){o&&o.some(e=>e.imported===`*`&&e.local===s)||r.push(`import${n}*${n}as ${s} from${n}${e}`);for(let e of i)r.push(`export${n}{${n}${s===e.reexported?s:`${s} as ${Nv(e.reexported)}`} };`)}c.length>0&&r.push(`export${n}{${n}${c.map(e=>e.imported===e.reexported?Nv(e.imported):`${Nv(e.imported)} as ${Nv(e.reexported)}`).join(`,${n}`)}${n}}${n}from${n}${e}`)}}else l||r.push(`import${n}${e}`)}return r}(a,d,s);p.length>0&&(r+=p.join(f)+f+f),(r+=v_(null,t,n,s,c,l,u))&&e.prepend(r);let m=function(e,{_:t,cnst:n}){let r=[],i=Array(e.length),a=0;for(let o of e)o.expression&&r.push(`${n} ${o.local}${t}=${t}${o.expression};`),i[a++]=o.exported===o.local?o.local:`${o.local} as ${Nv(o.exported)}`;return i.length>0&&r.push(`export${t}{${t}${i.join(`,${t}`)}${t}};`),r}(o,s);m.length>0&&e.append(f+f+m.join(f).trim()),i&&e.append(i),e.trim()},iife:function(e,{accessedGlobals:t,dependencies:n,exports:r,hasDefaultExport:i,hasExports:a,id:o,indent:s,intro:c,namedExportsMode:l,log:u,outro:d,snippets:f},{compact:p,esModule:m,extend:h,freeze:g,externalLiveBindings:_,reexportProtoFromExternal:ee,globals:te,interop:v,name:y,generatedCode:{symbols:ne},strict:re}){kv(`iife`,o,n);let{_:b,getNonArrowFunctionIntro:x,getPropertyAccess:S,n:C}=f,ie=y&&y.includes(`.`),ae=!h&&!ie;if(y&&ae&&(xm(w=y)||bm.test(w)))return q(function(e){return{code:`ILLEGAL_IDENTIFIER_AS_NAME`,message:`Given name "${e}" is not a legal JS identifier. If you need this, you can try "output.extend: true".`,url:cp(`configuration-options/#output-extend`)}}(y));var w;Mv(u,n);let oe=Iv(n),T=oe.map(e=>e.globalName||`null`),E=oe.map(e=>e.name);a&&!y&&u(G,{code:jp,message:`If you do not supply "output.name", you may not be able to access the exports of an IIFE bundle.`,url:cp(vp)}),a&&(l||r[0]?.local===`exports.default`)&&(h?(T.unshift(`this${Pv(y,S)}${b}=${b}this${Pv(y,S)}${b}||${b}{}`),E.unshift(`exports`)):(T.unshift(`{}`),E.unshift(`exports`)));let D=re?`${s}'use strict';${C}`:``,O=Ov(n,v,_,g,ne,t,s,f);e.prepend(`${c}${O}`);let se=`(${x(E,{isAsync:!1,name:null})}{${C}${D}${C}`;a&&(!y||h&&l||(se=(ae?`var ${y}`:`this${Pv(y,S)}`)+`${b}=${b}${se}`),ie&&(se=function(e,t,n,{_:r,getPropertyAccess:i,s:a},o,s){let c=e.split(`.`),l=c[0]in Object.prototype;s&&l&&s(G,om(c[0])),c[0]=(typeof n==`function`?n(c[0]):l?c[0]:n[c[0]])||c[0],c.pop();let u=t;return c.map(e=>(u+=i(e),`${u}${r}=${r}${u}${r}||${r}{}${a}`)).join(o?`,`:`
777
+ `)+(o&&c.length>0?`;`:`
778
+ `)}(y,`this`,te,f,p,u)+se));let k=`${C}${C}})(${T.join(`,${b}`)});`;a&&!h&&l&&(k=`${C}${C}${s}return exports;${k}`);let ce=Sv(r,n,l,v,f,s,_,ee),le=Tv(l&&a,!0===m||m===`if-default-prop`&&i,ne,f);le&&=C+C+le,e.append(`${ce}${le}${d}`).indent(s).prepend(se).append(k)},system:function(e,{accessedGlobals:t,dependencies:n,exports:r,hasExports:i,id:a,indent:o,intro:s,snippets:c,outro:l,usesTopLevelAwait:u},{externalLiveBindings:d,freeze:f,name:p,generatedCode:{symbols:m},strict:h,systemNullSetters:g}){kv(`system`,a,n);let{_,getFunctionIntro:ee,getNonArrowFunctionIntro:te,n:v,s:y}=c,{importBindings:ne,setters:re,starExcludes:b}=function(e,t,n,{_:r,cnst:i,getObject:a,getPropertyAccess:o,n:s}){let c=[],l=[],u=null;for(let{imports:d,reexports:f}of e){let p=[];if(d)for(let e of d)c.push(e.local),e.imported===`*`?p.push(`${e.local}${r}=${r}module;`):p.push(`${e.local}${r}=${r}module${o(Dd(e.imported))};`);if(f){let s=[],c=!1;for(let{imported:e,reexported:t}of f)t===`*`?c=!0:s.push([Dd(t),e===`*`?`module`:`module${o(Dd(e))}`]);if(s.length>1||c){if(c){u||=Rv({dependencies:e,exports:t}),s.unshift([null,`__proto__:${r}null`]);let o=a(s,{lineBreakIndent:null});p.push(`${i} setter${r}=${r}${o};`,`for${r}(${i} name in module)${r}{`,`${n}if${r}(!_starExcludes[name])${r}setter[name]${r}=${r}module[name];`,`}`,`exports(setter);`)}else{let e=a(s,{lineBreakIndent:null});p.push(`exports(${e});`)}}else{let[e,t]=s[0];p.push(`exports(${JSON.stringify(e)},${r}${t});`)}}l.push(p.join(`${s}${n}${n}${n}`))}return{importBindings:c,setters:l,starExcludes:u}}(n,r,o,c),x=p?`'${p}',${_}`:``,S=t.has(`module`)?[`exports`,`module`]:i?[`exports`]:[],C=`System.register(${x}[`+n.map(({importPath:e})=>`'${e}'`).join(`,${_}`)+`],${_}(${te(S,{isAsync:!1,name:null})}{${v}${o}${h?`'use strict';`:``}`+zv(b,o,c)+Bv(ne,o,c)+`${v}${o}return${_}{${re.length>0?`${v}${o}${o}setters:${_}[${re.map(e=>e?`${ee([`module`],{isAsync:!1,name:null})}{${v}${o}${o}${o}${e}${v}${o}${o}}`:g?`null`:`${ee([],{isAsync:!1,name:null})}{}`).join(`,${_}`)}],`:``}${v}`;C+=`${o}${o}execute:${_}(${te([],{isAsync:u,name:null})}{${v}${v}`;let ie=`${o}${o}})${v}${o}}${y}${v}}));`;e.prepend(s+v_(null,t,o,c,d,f,m)+Vv(r,o,c)).append(`${l}${v}${v}`+Uv(r,o,c)+Wv(r,o,c)).indent(`${o}${o}${o}`).append(ie).prepend(C)},umd:function(e,{accessedGlobals:t,dependencies:n,exports:r,hasDefaultExport:i,hasExports:a,id:o,indent:s,intro:c,namedExportsMode:l,log:u,outro:d,snippets:f},{amd:p,compact:m,esModule:h,extend:g,externalLiveBindings:_,freeze:ee,interop:te,name:v,generatedCode:{symbols:y},globals:ne,noConflict:re,reexportProtoFromExternal:b,strict:x}){let{_:S,cnst:C,getFunctionIntro:ie,getNonArrowFunctionIntro:ae,getPropertyAccess:w,n:oe,s:T}=f,E=m?`f`:`factory`,D=m?`g`:`global`;if(a&&!v)return q({code:jp,message:`You must supply "output.name" for UMD bundles that have exports so that the exports are accessible in environments without a module loader.`,url:cp(vp)});kv(`umd`,o,n),Mv(u,n);let O=n.map(e=>`'${Av(e.importPath,p.forceJsExtensionForImports)}'`),se=n.map(e=>`require('${e.importPath}')`),k=Iv(n),ce=k.map(e=>Gv(e.globalName,D,w)),le=k.map(e=>e.name);(a||re)&&(l||a&&r[0]?.local===`exports.default`)&&(O.unshift(`'exports'`),se.unshift(`exports`),ce.unshift(Fv(v,D,ne,(g?`${Gv(v,D,w)}${S}||${S}`:``)+`{}`,f,u)),le.unshift(`exports`));let ue=xv(p,o),A=(ue?`'${ue}',${S}`:``)+(O.length>0?`[${O.join(`,${S}`)}],${S}`:``),j=p.define,de=!l&&a?`module.exports${S}=${S}`:``,fe=x?`${S}'use strict';${oe}`:``,pe;if(re){let e=m?`e`:`exports`,t;t=!l&&a?`${C} ${e}${S}=${S}${Fv(v,D,ne,`${E}(${ce.join(`,${S}`)})`,f,u)};`:`${C} ${e}${S}=${S}${ce.shift()};${oe}${s}${s}${E}(${[e,...ce].join(`,${S}`)});`,pe=`(${ie([],{isAsync:!1,name:null})}{${oe}${s}${s}${C} current${S}=${S}${function(e,t,{_:n,getPropertyAccess:r}){let i=t;return e.split(`.`).map(e=>i+=r(e)).join(`${n}&&${n}`)}(v,D,f)};${oe}${s}${s}${t}${oe}${s}${s}${e}.noConflict${S}=${S}${ie([],{isAsync:!1,name:null})}{${S}${Gv(v,D,w)}${S}=${S}current;${S}return ${e}${T}${S}};${oe}${s}})()`}else pe=`${E}(${ce.join(`,${S}`)})`,!l&&a&&(pe=Fv(v,D,ne,pe,f,u));let me=a||re&&l||ce.length>0,he=[E];me&&he.unshift(D);let ge=me?`this,${S}`:``,_e=me?`(${D}${S}=${S}typeof globalThis${S}!==${S}'undefined'${S}?${S}globalThis${S}:${S}${D}${S}||${S}self,${S}`:``,ve=me?`)`:``,M=me?`${s}typeof exports${S}===${S}'object'${S}&&${S}typeof module${S}!==${S}'undefined'${S}?${S}${de}${E}(${se.join(`,${S}`)})${S}:${oe}`:``,N=`(${ae(he,{isAsync:!1,name:null})}{${oe}`+M+`${s}typeof ${j}${S}===${S}'function'${S}&&${S}${j}.amd${S}?${S}${j}(${A}${E})${S}:${oe}${s}${_e}${pe}${ve};${oe}})(${ge}(${ae(le,{isAsync:!1,name:null})}{${fe}${oe}`,ye=oe+oe+`}));`;e.prepend(`${c}${Ov(n,te,_,ee,y,t,s,f)}`);let be=Sv(r,n,l,te,f,s,_,b),xe=Tv(l&&a,!0===h||h===`if-default-prop`&&i,y,f);xe&&=oe+oe+xe,e.append(`${be}${xe}${d}`).trim().indent(s).append(ye).prepend(N)}};function qv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}var Jv,Yv,Xv,Zv,Qv,$v,ey,ty,ny,ry,iy,ay={};function oy(){if(Yv)return Jv;Yv=1;let e=`[^\\\\/]`,t=`[^/]`,n=`(?:\\/|$)`,r=`(?:^|\\/)`,i=`\\.{1,2}${n}`,a={DOT_LITERAL:`\\.`,PLUS_LITERAL:`\\+`,QMARK_LITERAL:`\\?`,SLASH_LITERAL:`\\/`,ONE_CHAR:`(?=.)`,QMARK:t,END_ANCHOR:n,DOTS_SLASH:i,NO_DOT:`(?!\\.)`,NO_DOTS:`(?!${r}${i})`,NO_DOT_SLASH:`(?!\\.{0,1}${n})`,NO_DOTS_SLASH:`(?!${i})`,QMARK_NO_DOT:`[^.\\/]`,STAR:`${t}*?`,START_ANCHOR:r,SEP:`/`},o={...a,SLASH_LITERAL:`[\\\\/]`,QMARK:e,STAR:`${e}*?`,DOTS_SLASH:`\\.{1,2}(?:[\\\\/]|$)`,NO_DOT:`(?!\\.)`,NO_DOTS:`(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))`,NO_DOT_SLASH:`(?!\\.{0,1}(?:[\\\\/]|$))`,NO_DOTS_SLASH:`(?!\\.{1,2}(?:[\\\\/]|$))`,QMARK_NO_DOT:`[^.\\\\/]`,START_ANCHOR:`(?:^|[\\\\/])`,END_ANCHOR:`(?:[\\\\/]|$)`,SEP:`\\`};return Jv={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{__proto__:null,alnum:`a-zA-Z0-9`,alpha:`a-zA-Z`,ascii:`\\x00-\\x7F`,blank:` \\t`,cntrl:`\\x00-\\x1F\\x7F`,digit:`0-9`,graph:`\\x21-\\x7E`,lower:`a-z`,print:`\\x20-\\x7E `,punct:`\\-!"#$%&'()\\*+,./:;<=>?@[\\]^_\`{|}~`,space:` \\t\\r\\n\\v\\f`,upper:`A-Z`,word:`A-Za-z0-9_`,xdigit:`A-Fa-f0-9`},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":`*`,"**/**":`**`,"**/**/**":`**`},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars:e=>({"!":{type:`negate`,open:`(?:(?!(?:`,close:`))${e.STAR})`},"?":{type:`qmark`,open:`(?:`,close:`)?`},"+":{type:`plus`,open:`(?:`,close:`)+`},"*":{type:`star`,open:`(?:`,close:`)*`},"@":{type:`at`,open:`(?:`,close:`)`}}),globChars:e=>!0===e?o:a},Jv}function sy(){return Xv||(Xv=1,function(e){let{REGEX_BACKSLASH:t,REGEX_REMOVE_BACKSLASH:n,REGEX_SPECIAL_CHARS:r,REGEX_SPECIAL_CHARS_GLOBAL:i}=oy();e.isObject=e=>typeof e==`object`&&!!e&&!Array.isArray(e),e.hasRegexChars=e=>r.test(e),e.isRegexChar=t=>t.length===1&&e.hasRegexChars(t),e.escapeRegex=e=>e.replace(i,`\\$1`),e.toPosixSlashes=e=>e.replace(t,`/`),e.isWindows=()=>{if(typeof navigator<`u`&&navigator.platform){let e=navigator.platform.toLowerCase();return e===`win32`||e===`windows`}return!(typeof process>`u`||!process.platform)&&process.platform===`win32`},e.removeBackslashes=e=>e.replace(n,e=>e===`\\`?``:e),e.escapeLast=(t,n,r)=>{let i=t.lastIndexOf(n,r);return i===-1?t:t[i-1]===`\\`?e.escapeLast(t,n,i-1):`${t.slice(0,i)}\\${t.slice(i)}`},e.removePrefix=(e,t={})=>{let n=e;return n.startsWith(`./`)&&(n=n.slice(2),t.prefix=`./`),n},e.wrapOutput=(e,t={},n={})=>{let r=`${n.contains?``:`^`}(?:${e})${n.contains?``:`$`}`;return!0===t.negated&&(r=`(?:^(?!${r}).*$)`),r},e.basename=(e,{windows:t}={})=>{let n=e.split(t?/[\\/]/:`/`),r=n[n.length-1];return r===``?n[n.length-2]:r}}(ay)),ay}function cy(){if(Qv)return Zv;Qv=1;let e=sy(),{CHAR_ASTERISK:t,CHAR_AT:n,CHAR_BACKWARD_SLASH:r,CHAR_COMMA:i,CHAR_DOT:a,CHAR_EXCLAMATION_MARK:o,CHAR_FORWARD_SLASH:s,CHAR_LEFT_CURLY_BRACE:c,CHAR_LEFT_PARENTHESES:l,CHAR_LEFT_SQUARE_BRACKET:u,CHAR_PLUS:d,CHAR_QUESTION_MARK:f,CHAR_RIGHT_CURLY_BRACE:p,CHAR_RIGHT_PARENTHESES:m,CHAR_RIGHT_SQUARE_BRACKET:h}=oy(),g=e=>e===s||e===r,_=e=>{!0!==e.isPrefix&&(e.depth=e.isGlobstar?1/0:1)};return Zv=(ee,te)=>{let v=te||{},y=ee.length-1,ne=!0===v.parts||!0===v.tokens||!0===v.scanToEnd,re=[],b=[],x=[],S,C,ie=ee,ae=-1,w=0,oe=0,T=!1,E=!1,D=!1,O=!1,se=!1,k=!1,ce=!1,le=!1,ue=!1,A=!1,j=0,de={value:``,depth:0,isGlob:!1},fe=()=>ae>=y,pe=()=>ie.charCodeAt(ae+1),me=()=>(S=C,ie.charCodeAt(++ae));for(;ae<y;){let e;if(C=me(),C!==r){if(!0===k||C===c){for(j++;!0!==fe()&&(C=me());)if(C!==r){if(C!==c){if(!0!==k&&C===a&&(C=me())===a||!0!==k&&C===i){if(T=de.isBrace=!0,D=de.isGlob=!0,A=!0,!0===ne)continue;break}if(C===p&&(j--,j===0)){k=!1,T=de.isBrace=!0,A=!0;break}}else j++}else ce=de.backslashes=!0,me();if(!0===ne)continue;break}if(C!==s){if(!0!==v.noext&&(C===d||C===n||C===t||C===f||C===o)==1&&pe()===l){if(D=de.isGlob=!0,O=de.isExtglob=!0,A=!0,C===o&&ae===w&&(ue=!0),!0===ne){let e=0;for(;!0!==fe()&&(C=me());)if(C!==r){if(C!==l){if(C===m&&--e===0){A=!0;break}}else e++}else ce=de.backslashes=!0,me();continue}break}if(C===t){if(S===t&&(se=de.isGlobstar=!0),D=de.isGlob=!0,A=!0,!0===ne)continue;break}if(C===f){if(D=de.isGlob=!0,A=!0,!0===ne)continue;break}if(C===u){for(;!0!==fe()&&(e=me());)if(e!==r){if(e===h){E=de.isBracket=!0,D=de.isGlob=!0,A=!0;break}}else ce=de.backslashes=!0,me();if(!0===ne)continue;break}if(!0===v.nonegate||C!==o||ae!==w){if(!0!==v.noparen&&C===l){if(D=de.isGlob=!0,!0===ne){let e=1;for(;!0!==fe()&&(C=me());)if(C!==r){if(C!==l){if(C===m&&--e===0){A=!0;break}}else e++}else ce=de.backslashes=!0,me();continue}break}if(!0===D){if(A=!0,!0===ne)continue;break}}else le=de.negated=!0,w++}else{if(re.push(ae),b.push(de),de={value:``,depth:0,isGlob:!1},!0===A)continue;if(S===a&&ae===w+1){w+=2;continue}oe=ae+1}}else ce=de.backslashes=!0,C=me(),C===c&&(k=!0)}!0===v.noext&&(O=!1,D=!1);let he=ie,ge=``,_e=``;w>0&&(ge=ie.slice(0,w),ie=ie.slice(w),oe-=w),he&&!0===D&&oe>0?(he=ie.slice(0,oe),_e=ie.slice(oe)):!0===D?(he=``,_e=ie):he=ie,he&&he!==``&&he!==`/`&&he!==ie&&g(he.charCodeAt(he.length-1))&&(he=he.slice(0,-1)),!0===v.unescape&&(_e&&=e.removeBackslashes(_e),he&&!0===ce&&(he=e.removeBackslashes(he)));let ve={prefix:ge,input:ee,start:w,base:he,glob:_e,isBrace:T,isBracket:E,isGlob:D,isExtglob:O,isGlobstar:se,negated:le,negatedExtglob:ue};if(!0===v.tokens&&(ve.maxDepth=0,g(C)||b.push(de),ve.tokens=b),!0===v.parts||!0===v.tokens){let e;for(let t=0;t<re.length;t++){let n=e===void 0?w:e+1,r=re[t],i=ee.slice(n,r);v.tokens&&(t===0&&w!==0?(b[t].isPrefix=!0,b[t].value=ge):b[t].value=i,_(b[t]),ve.maxDepth+=b[t].depth),r>=w&&(x.push(i),e=r)}let t=e===void 0?w:e+1,n=ee.slice(t);x.push(n),v.tokens&&e&&e+1<ee.length&&(b[b.length-1].value=n,_(b[b.length-1]),ve.maxDepth+=b[b.length-1].depth),ve.slashes=re,ve.parts=x}return ve},Zv}function ly(){if(ey)return $v;ey=1;let e=oy(),t=sy(),{MAX_LENGTH:n,POSIX_REGEX_SOURCE:r,REGEX_NON_SPECIAL_CHARS:i,REGEX_SPECIAL_CHARS_BACKREF:a,REPLACEMENTS:o}=e,s=(e,t)=>typeof t.expandRange==`function`?t.expandRange(...e,t):(e.sort(),`[${e.join(`-`)}]`),c=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,l=e=>{let t=[],n=0,r=0,i=0,a=``,o=!1;for(let s of e)if(!0!==o){if(s!==`\\`){if(s!==`"`){if(i===0){if(s===`[`)n++;else if(s===`]`&&n>0)n--;else if(n===0){if(s===`(`)r++;else if(s===`)`&&r>0)r--;else if(s===`|`&&r===0){t.push(a),a=``;continue}}}a+=s}else i=i===1?0:1,a+=s}else a+=s,o=!0}else a+=s,o=!1;return t.push(a),t},u=e=>{let t=e.trim(),n=!0;for(;!0===n;)n=!1,/^@\([^\\()[\]{}|]+\)$/.test(t)&&(t=t.slice(2,-1),n=!0);if((e=>{let t=!1;for(let n of e)if(!0!==t){if(n!==`\\`){if(/[?*+@!()[\]{}]/.test(n))return!1}else t=!0}else t=!1;return!0})(t))return t.replace(/\\(.)/g,`$1`)},d=(e,t=!0)=>{if(e[0]!==`+`&&e[0]!==`*`||e[1]!==`(`)return;let n=0,r=0,i=0,a=!1;for(let o=1;o<e.length;o++){let s=e[o];if(!0!==a){if(s!==`\\`){if(s!==`"`){if(i!==1){if(s!==`[`){if(s===`]`&&n>0)n--;else if(!(n>0)){if(s!==`(`){if(s===`)`&&(r--,r===0))return!0===t&&o!==e.length-1?void 0:{type:e[0],body:e.slice(2,o),end:o}}else r++}}else n++}}else i=i===1?0:1}else a=!0}else a=!1}},f=e=>`${e.length===1?t.escapeRegex(e[0]):`[${e.map(e=>t.escapeRegex(e)).join(``)}]`}*`,p=e=>{let t=0,n=[];for(;t<e.length;){let r=d(e.slice(t),!1);if(!r||r.type!==`*`)return;let i=l(r.body).map(e=>e.trim());if(i.length!==1)return;let a=u(i[0]);if(!a||a.length!==1)return;n.push(a),t+=r.end+1}if(!(n.length<1))return n},m=e=>{let t=0,n=e.trim(),r=d(n);for(;r;)t++,n=r.body.trim(),r=d(n);return t},h=(t,n)=>{if(!1===n.maxExtglobRecursion)return{risky:!1};let r=typeof n.maxExtglobRecursion==`number`?n.maxExtglobRecursion:e.DEFAULT_MAX_EXTGLOB_RECURSION,i=l(t).map(e=>e.trim());if(i.length>1&&(i.some(e=>e===``)||i.some(e=>/^[*?]+$/.test(e))||(e=>{let t=e.map(u).filter(Boolean);for(let e=0;e<t.length;e++)for(let n=e+1;n<t.length;n++){let r=t[e],i=t[n],a=r[0];if(a&&r===a.repeat(r.length)&&i===a.repeat(i.length)&&(r===i||r.startsWith(i)||i.startsWith(r)))return!0}return!1})(i)))return{risky:!0};let a=[],o=!1,s=!0;for(let e of i){let t=p(e);if(t){o=!0,a.push(...t);continue}let n=u(e);if(n&&n.length===1)a.push(n);else if(s=!1,m(e)>r)return{risky:!0}}return o?s?{risky:!0,safeOutput:f([...new Set(a)])}:{risky:!0}:{risky:!1}},g=(l,u)=>{if(typeof l!=`string`)throw TypeError(`Expected a string`);l=o[l]||l;let d={...u},f=typeof d.maxLength==`number`?Math.min(n,d.maxLength):n,p=l.length;if(p>f)throw SyntaxError(`Input length: ${p}, exceeds maximum allowed length: ${f}`);let m={type:`bos`,value:``,output:d.prepend||``},_=[m],ee=d.capture?``:`?:`,te=e.globChars(d.windows),v=e.extglobChars(te),{DOT_LITERAL:y,PLUS_LITERAL:ne,SLASH_LITERAL:re,ONE_CHAR:b,DOTS_SLASH:x,NO_DOT:S,NO_DOT_SLASH:C,NO_DOTS_SLASH:ie,QMARK:ae,QMARK_NO_DOT:w,STAR:oe,START_ANCHOR:T}=te,E=e=>`(${ee}(?:(?!${T}${e.dot?x:y}).)*?)`,D=d.dot?``:S,O=d.dot?ae:w,se=!0===d.bash?E(d):oe;d.capture&&(se=`(${se})`),typeof d.noext==`boolean`&&(d.noextglob=d.noext);let k={input:l,index:-1,start:0,dot:!0===d.dot,consumed:``,output:``,prefix:``,backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:_};l=t.removePrefix(l,k),p=l.length;let ce=[],le=[],ue=[],A,j=m,de=()=>k.index===p-1,fe=k.peek=(e=1)=>l[k.index+e],pe=k.advance=()=>l[++k.index]||``,me=()=>l.slice(k.index+1),he=(e=``,t=0)=>{k.consumed+=e,k.index+=t},ge=e=>{k.output+=e.output==null?e.value:e.output,he(e.value)},_e=()=>{let e=1;for(;fe()===`!`&&(fe(2)!==`(`||fe(3)===`?`);)pe(),k.start++,e++;return e%2!=0&&(k.negated=!0,k.start++,!0)},ve=e=>{k[e]++,ue.push(e)},M=e=>{k[e]--,ue.pop()},N=e=>{if(j.type===`globstar`){let t=k.braces>0&&(e.type===`comma`||e.type===`brace`),n=!0===e.extglob||ce.length&&(e.type===`pipe`||e.type===`paren`);e.type===`slash`||e.type===`paren`||t||n||(k.output=k.output.slice(0,-j.output.length),j.type=`star`,j.value=`*`,j.output=se,k.output+=j.output)}if(ce.length&&e.type!==`paren`&&(ce[ce.length-1].inner+=e.value),(e.value||e.output)&&ge(e),j&&j.type===`text`&&e.type===`text`)return j.output=(j.output||j.value)+e.value,void(j.value+=e.value);e.prev=j,_.push(e),j=e},ye=(e,t)=>{let n={...v[t],conditions:1,inner:``};n.prev=j,n.parens=k.parens,n.output=k.output,n.startIndex=k.index,n.tokensIndex=_.length;let r=(d.capture?`(`:``)+n.open;ve(`parens`),N({type:e,value:t,output:k.output?``:b}),N({type:`paren`,extglob:!0,value:pe(),output:r}),ce.push(n)},be=e=>{let n=l.slice(e.startIndex,k.index+1),r=l.slice(e.startIndex+2,k.index),i=h(r,d);if((e.type===`plus`||e.type===`star`)&&i.risky){let r=i.safeOutput?(e.output?``:b)+(d.capture?`(${i.safeOutput})`:i.safeOutput):void 0,a=_[e.tokensIndex];a.type=`text`,a.value=n,a.output=r||t.escapeRegex(n);for(let t=e.tokensIndex+1;t<_.length;t++)_[t].value=``,_[t].output=``,delete _[t].suffix;k.output=e.output+a.output,k.backtrack=!0,N({type:`paren`,extglob:!0,value:A,output:``}),M(`parens`);return}let a,o=e.close+(d.capture?`)`:``);if(e.type===`negate`){let t=se;e.inner&&e.inner.length>1&&e.inner.includes(`/`)&&(t=E(d)),(t!==se||de()||/^\)+$/.test(me()))&&(o=e.close=`)$))${t}`),e.inner.includes(`*`)&&(a=me())&&/^\.[^\\/.]+$/.test(a)&&(o=e.close=`)${g(a,{...u,fastpaths:!1}).output})${t})`),e.prev.type===`bos`&&(k.negatedExtglob=!0)}N({type:`paren`,extglob:!0,value:A,output:o}),M(`parens`)};if(!1!==d.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(l)){let e=!1,n=l.replace(a,(t,n,r,i,a,o)=>i===`\\`?(e=!0,t):i===`?`?n?n+i+(a?ae.repeat(a.length):``):o===0?O+(a?ae.repeat(a.length):``):ae.repeat(r.length):i===`.`?y.repeat(r.length):i===`*`?n?n+i+(a?se:``):se:n?t:`\\${t}`);return!0===e&&(n=!0===d.unescape?n.replace(/\\/g,``):n.replace(/\\+/g,e=>e.length%2==0?`\\\\`:e?`\\`:``)),n===l&&!0===d.contains?(k.output=l,k):(k.output=t.wrapOutput(n,k,u),k)}for(;!de();){if(A=pe(),A===`\0`)continue;if(A===`\\`){let e=fe();if(e===`/`&&!0!==d.bash||e===`.`||e===`;`)continue;if(!e){A+=`\\`,N({type:`text`,value:A});continue}let t=/^\\+/.exec(me()),n=0;if(t&&t[0].length>2&&(n=t[0].length,k.index+=n,n%2!=0&&(A+=`\\`)),!0===d.unescape?A=pe():A+=pe(),k.brackets===0){N({type:`text`,value:A});continue}}if(k.brackets>0&&(A!==`]`||j.value===`[`||j.value===`[^`)){if(!1!==d.posix&&A===`:`){let e=j.value.slice(1);if(e.includes(`[`)&&(j.posix=!0,e.includes(`:`))){let e=j.value.lastIndexOf(`[`),t=j.value.slice(0,e),n=j.value.slice(e+2),i=r[n];if(i){j.value=t+i,k.backtrack=!0,pe(),m.output||_.indexOf(j)!==1||(m.output=b);continue}}}(A===`[`&&fe()!==`:`||A===`-`&&fe()===`]`)&&(A=`\\${A}`),A!==`]`||j.value!==`[`&&j.value!==`[^`||(A=`\\${A}`),!0===d.posix&&A===`!`&&j.value===`[`&&(A=`^`),j.value+=A,ge({value:A});continue}if(k.quotes===1&&A!==`"`){A=t.escapeRegex(A),j.value+=A,ge({value:A});continue}if(A===`"`){k.quotes=k.quotes===1?0:1,!0===d.keepQuotes&&N({type:`text`,value:A});continue}if(A===`(`){ve(`parens`),N({type:`paren`,value:A});continue}if(A===`)`){if(k.parens===0&&!0===d.strictBrackets)throw SyntaxError(c(`opening`,`(`));let e=ce[ce.length-1];if(e&&k.parens===e.parens+1){be(ce.pop());continue}N({type:`paren`,value:A,output:k.parens?`)`:`\\)`}),M(`parens`);continue}if(A===`[`){if(!0!==d.nobracket&&me().includes(`]`))ve(`brackets`);else{if(!0!==d.nobracket&&!0===d.strictBrackets)throw SyntaxError(c(`closing`,`]`));A=`\\${A}`}N({type:`bracket`,value:A});continue}if(A===`]`){if(!0===d.nobracket||j&&j.type===`bracket`&&j.value.length===1){N({type:`text`,value:A,output:`\\${A}`});continue}if(k.brackets===0){if(!0===d.strictBrackets)throw SyntaxError(c(`opening`,`[`));N({type:`text`,value:A,output:`\\${A}`});continue}M(`brackets`);let e=j.value.slice(1);if(!0===j.posix||e[0]!==`^`||e.includes(`/`)||(A=`/${A}`),j.value+=A,ge({value:A}),!1===d.literalBrackets||t.hasRegexChars(e))continue;let n=t.escapeRegex(j.value);if(k.output=k.output.slice(0,-j.value.length),!0===d.literalBrackets){k.output+=n,j.value=n;continue}j.value=`(${ee}${n}|${j.value})`,k.output+=j.value;continue}if(A===`{`&&!0!==d.nobrace){ve(`braces`);let e={type:`brace`,value:A,output:`(`,outputIndex:k.output.length,tokensIndex:k.tokens.length};le.push(e),N(e);continue}if(A===`}`){let e=le[le.length-1];if(!0===d.nobrace||!e){N({type:`text`,value:A,output:A});continue}let t=`)`;if(!0===e.dots){let e=_.slice(),n=[];for(let t=e.length-1;t>=0&&(_.pop(),e[t].type!==`brace`);t--)e[t].type!==`dots`&&n.unshift(e[t].value);t=s(n,d),k.backtrack=!0}if(!0!==e.comma&&!0!==e.dots){let n=k.output.slice(0,e.outputIndex),r=k.tokens.slice(e.tokensIndex);e.value=e.output=`\\{`,A=t=`\\}`,k.output=n;for(let e of r)k.output+=e.output||e.value}N({type:`brace`,value:A,output:t}),M(`braces`),le.pop();continue}if(A===`|`){ce.length>0&&ce[ce.length-1].conditions++,N({type:`text`,value:A});continue}if(A===`,`){let e=A,t=le[le.length-1];t&&ue[ue.length-1]===`braces`&&(t.comma=!0,e=`|`),N({type:`comma`,value:A,output:e});continue}if(A===`/`){if(j.type===`dot`&&k.index===k.start+1){k.start=k.index+1,k.consumed=``,k.output=``,_.pop(),j=m;continue}N({type:`slash`,value:A,output:re});continue}if(A===`.`){if(k.braces>0&&j.type===`dot`){j.value===`.`&&(j.output=y);let e=le[le.length-1];j.type=`dots`,j.output+=A,j.value+=A,e.dots=!0;continue}if(k.braces+k.parens===0&&j.type!==`bos`&&j.type!==`slash`){N({type:`text`,value:A,output:y});continue}N({type:`dot`,value:A,output:y});continue}if(A===`?`){if(!(j&&j.value===`(`)&&!0!==d.noextglob&&fe()===`(`&&fe(2)!==`?`){ye(`qmark`,A);continue}if(j&&j.type===`paren`){let e=fe(),t=A;(j.value===`(`&&!/[!=<:]/.test(e)||e===`<`&&!/<([!=]|\w+>)/.test(me()))&&(t=`\\${A}`),N({type:`text`,value:A,output:t});continue}if(!0!==d.dot&&(j.type===`slash`||j.type===`bos`)){N({type:`qmark`,value:A,output:w});continue}N({type:`qmark`,value:A,output:ae});continue}if(A===`!`){if(!0!==d.noextglob&&fe()===`(`&&(fe(2)!==`?`||!/[!=<:]/.test(fe(3)))){ye(`negate`,A);continue}if(!0!==d.nonegate&&k.index===0){_e();continue}}if(A===`+`){if(!0!==d.noextglob&&fe()===`(`&&fe(2)!==`?`){ye(`plus`,A);continue}if(j&&j.value===`(`||!1===d.regex){N({type:`plus`,value:A,output:ne});continue}if(j&&(j.type===`bracket`||j.type===`paren`||j.type===`brace`)||k.parens>0){N({type:`plus`,value:A});continue}N({type:`plus`,value:ne});continue}if(A===`@`){if(!0!==d.noextglob&&fe()===`(`&&fe(2)!==`?`){N({type:`at`,extglob:!0,value:A,output:``});continue}N({type:`text`,value:A});continue}if(A!==`*`){A!==`$`&&A!==`^`||(A=`\\${A}`);let e=i.exec(me());e&&(A+=e[0],k.index+=e[0].length),N({type:`text`,value:A});continue}if(j&&(j.type===`globstar`||!0===j.star)){j.type=`star`,j.star=!0,j.value+=A,j.output=se,k.backtrack=!0,k.globstar=!0,he(A);continue}let e=me();if(!0!==d.noextglob&&/^\([^?]/.test(e)){ye(`star`,A);continue}if(j.type===`star`){if(!0===d.noglobstar){he(A);continue}let t=j.prev,n=t.prev,r=t.type===`slash`||t.type===`bos`,i=n&&(n.type===`star`||n.type===`globstar`);if(!0===d.bash&&(!r||e[0]&&e[0]!==`/`)){N({type:`star`,value:A,output:``});continue}let a=k.braces>0&&(t.type===`comma`||t.type===`brace`),o=ce.length&&(t.type===`pipe`||t.type===`paren`);if(!r&&t.type!==`paren`&&!a&&!o){N({type:`star`,value:A,output:``});continue}for(;e.slice(0,3)===`/**`;){let t=l[k.index+4];if(t&&t!==`/`)break;e=e.slice(3),he(`/**`,3)}let s=de()||k.parens>0&&e===`)`.repeat(k.parens)&&!ce.some(e=>e.type===`negate`);if(t.type===`bos`&&de()){j.type=`globstar`,j.value+=A,j.output=E(d),k.output=j.output,k.globstar=!0,he(A);continue}if(t.type===`slash`&&t.prev.type!==`bos`&&!i&&s){k.output=k.output.slice(0,-(t.output+j.output).length),t.output=`(?:${t.output}`,j.type=`globstar`,j.output=E(d)+(d.strictSlashes?`)`:`|$)`),j.value+=A,k.globstar=!0,k.output+=t.output+j.output,he(A);continue}if(t.type===`slash`&&t.prev.type!==`bos`&&e[0]===`/`){let n=e[1]===void 0?``:`|$`;k.output=k.output.slice(0,-(t.output+j.output).length),t.output=`(?:${t.output}`,j.type=`globstar`,j.output=`${E(d)}${re}|${re}${n})`,j.value+=A,k.output+=t.output+j.output,k.globstar=!0,he(A+pe()),N({type:`slash`,value:`/`,output:``});continue}if(t.type===`bos`&&e[0]===`/`){j.type=`globstar`,j.value+=A,j.output=`(?:^|${re}|${E(d)}${re})`,k.output=j.output,k.globstar=!0,he(A+pe()),N({type:`slash`,value:`/`,output:``});continue}k.output=k.output.slice(0,-j.output.length),j.type=`globstar`,j.output=E(d),j.value+=A,k.output+=j.output,k.globstar=!0,he(A);continue}let n={type:`star`,value:A,output:se};!0===d.bash?(n.output=`.*?`,j.type!==`bos`&&j.type!==`slash`||(n.output=D+n.output),N(n)):!j||j.type!==`bracket`&&j.type!==`paren`||!0!==d.regex?(k.index!==k.start&&j.type!==`slash`&&j.type!==`dot`||(j.type===`dot`?(k.output+=C,j.output+=C):!0===d.dot?(k.output+=ie,j.output+=ie):(k.output+=D,j.output+=D),fe()!==`*`&&(k.output+=b,j.output+=b)),N(n)):(n.output=A,N(n))}for(;k.brackets>0;){if(!0===d.strictBrackets)throw SyntaxError(c(`closing`,`]`));k.output=t.escapeLast(k.output,`[`),M(`brackets`)}for(;k.parens>0;){if(!0===d.strictBrackets)throw SyntaxError(c(`closing`,`)`));k.output=t.escapeLast(k.output,`(`),M(`parens`)}for(;k.braces>0;){if(!0===d.strictBrackets)throw SyntaxError(c(`closing`,`}`));k.output=t.escapeLast(k.output,`{`),M(`braces`)}if(!0===d.strictSlashes||j.type!==`star`&&j.type!==`bracket`||N({type:`maybe_slash`,value:``,output:`${re}?`}),!0===k.backtrack){k.output=``;for(let e of k.tokens)k.output+=e.output==null?e.value:e.output,e.suffix&&(k.output+=e.suffix)}return k};return g.fastpaths=(r,i)=>{let a={...i},s=typeof a.maxLength==`number`?Math.min(n,a.maxLength):n,c=r.length;if(c>s)throw SyntaxError(`Input length: ${c}, exceeds maximum allowed length: ${s}`);r=o[r]||r;let{DOT_LITERAL:l,SLASH_LITERAL:u,ONE_CHAR:d,DOTS_SLASH:f,NO_DOT:p,NO_DOTS:m,NO_DOTS_SLASH:h,STAR:g,START_ANCHOR:_}=e.globChars(a.windows),ee=a.dot?m:p,te=a.dot?h:p,v=a.capture?``:`?:`,y=!0===a.bash?`.*?`:g;a.capture&&(y=`(${y})`);let ne=e=>!0===e.noglobstar?y:`(${v}(?:(?!${_}${e.dot?f:l}).)*?)`,re=e=>{switch(e){case`*`:return`${ee}${d}${y}`;case`.*`:return`${l}${d}${y}`;case`*.*`:return`${ee}${y}${l}${d}${y}`;case`*/*`:return`${ee}${y}${u}${d}${te}${y}`;case`**`:return ee+ne(a);case`**/*`:return`(?:${ee}${ne(a)}${u})?${te}${d}${y}`;case`**/*.*`:return`(?:${ee}${ne(a)}${u})?${te}${y}${l}${d}${y}`;case`**/.*`:return`(?:${ee}${ne(a)}${u})?${l}${d}${y}`;default:{let t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;let n=re(t[1]);return n?n+l+t[2]:void 0}}},b=re(t.removePrefix(r,{negated:!1,prefix:``}));return b&&!0!==a.strictSlashes&&(b+=`${u}?`),b},$v=g}function uy(){if(ny)return ty;ny=1;let e=cy(),t=ly(),n=sy(),r=oy(),i=(e,t,n=!1)=>{if(Array.isArray(e)){let r=e.map(e=>i(e,t,n));return e=>{for(let t of r){let n=t(e);if(n)return n}return!1}}let r=(a=e)&&typeof a==`object`&&!Array.isArray(a)&&e.tokens&&e.input;var a;if(e===``||typeof e!=`string`&&!r)throw TypeError(`Expected pattern to be a non-empty string`);let o=t||{},s=o.windows,c=r?i.compileRe(e,t):i.makeRe(e,t,!1,!0),l=c.state;delete c.state;let u=()=>!1;if(o.ignore){let e={...t,ignore:null,onMatch:null,onResult:null};u=i(o.ignore,e,n)}let d=(n,r=!1)=>{let{isMatch:a,match:d,output:f}=i.test(n,c,t,{glob:e,posix:s}),p={glob:e,state:l,regex:c,posix:s,input:n,output:f,match:d,isMatch:a};return typeof o.onResult==`function`&&o.onResult(p),!1===a?(p.isMatch=!1,!!r&&p):u(n)?(typeof o.onIgnore==`function`&&o.onIgnore(p),p.isMatch=!1,!!r&&p):(typeof o.onMatch==`function`&&o.onMatch(p),!r||p)};return n&&(d.state=l),d};return i.test=(e,t,r,{glob:a,posix:o}={})=>{if(typeof e!=`string`)throw TypeError(`Expected input to be a string`);if(e===``)return{isMatch:!1,output:``};let s=r||{},c=s.format||(o?n.toPosixSlashes:null),l=e===a,u=l&&c?c(e):e;return!1===l&&(u=c?c(e):e,l=u===a),!1!==l&&!0!==s.capture||(l=!0===s.matchBase||!0===s.basename?i.matchBase(e,t,r,o):t.exec(u)),{isMatch:!!l,match:l,output:u}},i.matchBase=(e,t,r,a=r&&r.windows)=>(t instanceof RegExp?t:i.makeRe(t,r)).test(n.basename(e,{windows:a})),i.isMatch=(e,t,n)=>i(t,n)(e),i.parse=(e,n)=>Array.isArray(e)?e.map(e=>i.parse(e,n)):t(e,{...n,fastpaths:!1}),i.scan=(t,n)=>e(t,n),i.compileRe=(e,t,n=!1,r=!1)=>{if(!0===n)return e.output;let a=t||{},o=a.contains?``:`^`,s=a.contains?``:`$`,c=`${o}(?:${e.output})${s}`;e&&!0===e.negated&&(c=`^(?!${c}).*$`);let l=i.toRegex(c,t);return!0===r&&(l.state=e),l},i.makeRe=(e,n={},r=!1,a=!1)=>{if(!e||typeof e!=`string`)throw TypeError(`Expected a non-empty string`);let o={negated:!1,fastpaths:!0};return!1===n.fastpaths||e[0]!==`.`&&e[0]!==`*`||(o.output=t.fastpaths(e,n)),o.output||(o=t(e,n)),i.compileRe(o,n,r,a)},i.toRegex=(e,t)=>{try{let n=t||{};return new RegExp(e,n.flags||(n.nocase?`i`:``))}catch(e){if(t&&!0===t.debug)throw e;return/$^/}},i.constants=r,ty=i}function dy(){if(iy)return ry;iy=1;let e=uy(),t=sy();function n(n,r,i=!1){return!r||r.windows!==null&&r.windows!==void 0||(r={...r,windows:t.isWindows()}),e(n,r,i)}return Object.assign(n,e),ry=n}var fy=qv(dy());let py={ArrayPattern(e,t){for(let n of t.elements)n&&py[n.type](e,n)},AssignmentPattern(e,t){py[t.left.type](e,t.left)},Identifier(e,t){e.push(t.name)},MemberExpression(){},ObjectPattern(e,t){for(let n of t.properties)n.type===`RestElement`?py.RestElement(e,n):py[n.value.type](e,n.value)},RestElement(e,t){py[t.argument.type](e,t.argument)}},my=function(e){let t=[];return py[e.type](t,e),t};function hy(e,t){return e>>>=0,by().subarray(e/1,e/1+t)}new Set(`break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public arguments Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl`.split(` `)).add(``);let gy=null;function _y(){return(gy===null||!0===gy.buffer.detached||gy.buffer.detached===void 0&&gy.buffer!==Ey.memory.buffer)&&(gy=new DataView(Ey.memory.buffer)),gy}function vy(e,t){return e>>>=0,function(e){return wy+=e.length,wy>=Cy&&(Sy=new TextDecoder(`utf-8`,{ignoreBOM:!0}),Sy.decode(),wy=e.length),Sy.decode(e)}(by().subarray(e,e+t))}let yy=null;function by(){return yy!==null&&yy.byteLength!==0||(yy=new Uint8Array(Ey.memory.buffer)),yy}function xy(e,t,n){if(n===void 0){let n=Ty.encode(e),r=t(n.length,1)>>>0;return by().subarray(r,r+n.length).set(n),Oy=n.length,r}let r=e.length,i=t(r,1)>>>0,a=by(),o=0;for(;o<r;o++){let t=e.charCodeAt(o);if(t>127)break;a[i+o]=t}if(o!==r){o!==0&&(e=e.slice(o)),i=n(i,r,r=o+3*e.length,1)>>>0;let t=by().subarray(i+o,i+r);o+=Ty.encodeInto(e,t).written,i=n(i,r,o,1)>>>0}return Oy=o,i}let Sy=new TextDecoder(`utf-8`,{ignoreBOM:!0});Sy.decode();let Cy=2146435072,wy=0,Ty=new TextEncoder;`encodeInto`in Ty||(Ty.encodeInto=function(e,t){let n=Ty.encode(e);return t.set(n),{read:e.length,written:n.length}});let Ey,Dy,Oy=0;async function ky(e){return Ey===void 0?(Dy===void 0&&(Dy=async function(e){e!==void 0&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn(`using deprecated parameters for the initialization function; pass a single object instead`)),e===void 0&&(e=new URL(`/assets/bindings_wasm_bg-IWNG_AjZ.wasm`,``+self.location.href));let t={__proto__:null,"./bindings_wasm_bg.js":{__proto__:null,__wbg___wbindgen_throw_4c88d8bf264fd984:function(e,t){throw Error(vy(e,t))},__wbg_error_757e9472f8410341:function(e,t){let n,r;try{n=e,r=t,console.error(vy(e,t))}finally{Ey.__wbindgen_export(n,r,1)}},__wbg_length_186163212ffe79c3:function(e){return e.length},__wbg_new_bb74001155cb8ca8:function(){return/* @__PURE__ */ Error()},__wbg_prototypesetcall_13162965d1fe7aa3:function(e,t,n){Uint8Array.prototype.set.call(hy(e,t),n)},__wbg_stack_575c4e0918581b9c:function(e,t){let n=xy(t.stack,Ey.__wbindgen_export2,Ey.__wbindgen_export3),r=Oy;_y().setInt32((e>>>0)+4,r,!0),_y().setInt32((e>>>0)+0,n,!0)},__wbindgen_init_externref_table:function(){let e=Ey.__wbindgen_externrefs;e.set(0,void 0),e.set(1024,void 0),e.set(1025,null),e.set(1026,!0),e.set(1027,!1)}}};(typeof e==`string`||typeof Request==`function`&&e instanceof Request||typeof URL==`function`&&e instanceof URL)&&(e=fetch(e));let{instance:n}=await async function(e,t){if(typeof Response==`function`&&e instanceof Response){if(!e.ok)throw Error(`failed to fetch Wasm: ${e.status} ${e.statusText} fetching '${e.url}'`);if(typeof WebAssembly.instantiateStreaming==`function`)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if(!function(e){switch(e){case`basic`:case`cors`:case`default`:return!0}return!1}(e.type)||e.headers.get(`Content-Type`)===`application/wasm`)throw t;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",t)}let n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}{let n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}(await e,t);return function(e){return Ey=e.exports,gy=null,yy=null,Ey.__wbindgen_start(),Ey}(n)}(e),Dy.catch(()=>{Dy=void 0})),Dy):Ey}let Ay=new Uint8Array(new Uint32Array([1]).buffer)[0]===0;function jy(e,t,n){return function(e,t,n,r){try{let s=Ey.__wbindgen_add_to_stack_pointer(-16)>>>0,c=+t,l=+n,u=+r,d=xy(e,Ey.__wbindgen_export2,Ey.__wbindgen_export3),f=Oy;Ey.parse(s,d,f,c,l,u);var i=_y().getInt32(s+0,!0),a=_y().getInt32(s+4,!0),o=hy(i,a).slice();return Ey.__wbindgen_export(i,1*a,1),o}finally{Ey.__wbindgen_add_to_stack_pointer(16)}}(e,t,n,Ay)}let My=[function(e,t){return{type:`PanicError`,start:t[e],end:t[e+1],message:t.convertString(t[e+2])}},function(e,t){return{type:`ParseError`,start:t[e],end:t[e+1],message:t.convertString(t[e+2])}},function(e,t){return{type:`ArrayExpression`,start:t[e],end:t[e+1],elements:Ny(t[e+2],t)}},function(e,t){return{type:`ArrayPattern`,start:t[e],end:t[e+1],elements:Ny(t[e+2],t)}},function(e,t){let n=t[e+2],r=Mm(t[e+3],t);return{type:`ArrowFunctionExpression`,start:t[e],end:t[e+1],async:!(1&~n),expression:!(2&~n),generator:!(4&~n),...r.length>0?{[Am]:r}:{},params:Ny(t[e+4],t),body:Q(t[e+5],t),id:null}},function(e,t){return{type:`AssignmentExpression`,start:t[e],end:t[e+1],operator:km[t[e+2]],left:Q(t[e+3],t),right:Q(t[e+4],t)}},function(e,t){return{type:`AssignmentPattern`,start:t[e],end:t[e+1],left:Q(t[e+2],t),right:Q(t[e+3],t)}},function(e,t){return{type:`AwaitExpression`,start:t[e],end:t[e+1],argument:Q(t[e+2],t)}},function(e,t){return{type:`BinaryExpression`,start:t[e],end:t[e+1],operator:km[t[e+2]],left:Q(t[e+3],t),right:Q(t[e+4],t)}},function(e,t){return{type:`BlockStatement`,start:t[e],end:t[e+1],body:Ny(t[e+2],t)}},function(e,t){let n=t[e+2];return{type:`BreakStatement`,start:t[e],end:t[e+1],label:n===0?null:Q(n,t)}},function(e,t){let n=t[e+2],r=Mm(t[e+3],t);return{type:`CallExpression`,start:t[e],end:t[e+1],optional:!(1&~n),...r.length>0?{[Am]:r}:{},callee:Q(t[e+4],t),arguments:Ny(t[e+5],t)}},function(e,t){let n=t[e+2];return{type:`CatchClause`,start:t[e],end:t[e+1],param:n===0?null:Q(n,t),body:Q(t[e+3],t)}},function(e,t){return{type:`ChainExpression`,start:t[e],end:t[e+1],expression:Q(t[e+2],t)}},function(e,t){return{type:`ClassBody`,start:t[e],end:t[e+1],body:Ny(t[e+2],t)}},function(e,t){let n=t[e+3],r=t[e+4];return{type:`ClassDeclaration`,start:t[e],end:t[e+1],decorators:Ny(t[e+2],t),id:n===0?null:Q(n,t),superClass:r===0?null:Q(r,t),body:Q(t[e+5],t)}},function(e,t){let n=t[e+3],r=t[e+4];return{type:`ClassExpression`,start:t[e],end:t[e+1],decorators:Ny(t[e+2],t),id:n===0?null:Q(n,t),superClass:r===0?null:Q(r,t),body:Q(t[e+5],t)}},function(e,t){return{type:`ConditionalExpression`,start:t[e],end:t[e+1],test:Q(t[e+2],t),consequent:Q(t[e+3],t),alternate:Q(t[e+4],t)}},function(e,t){let n=t[e+2];return{type:`ContinueStatement`,start:t[e],end:t[e+1],label:n===0?null:Q(n,t)}},function(e,t){return{type:`DebuggerStatement`,start:t[e],end:t[e+1]}},function(e,t){return{type:`Decorator`,start:t[e],end:t[e+1],expression:Q(t[e+2],t)}},function(e,t){return{type:`ExpressionStatement`,start:t[e],end:t[e+1],directive:t.convertString(t[e+2]),expression:Q(t[e+3],t)}},function(e,t){return{type:`DoWhileStatement`,start:t[e],end:t[e+1],body:Q(t[e+2],t),test:Q(t[e+3],t)}},function(e,t){return{type:`EmptyStatement`,start:t[e],end:t[e+1]}},function(e,t){let n=t[e+2];return{type:`ExportAllDeclaration`,start:t[e],end:t[e+1],exported:n===0?null:Q(n,t),source:Q(t[e+3],t),attributes:Ny(t[e+4],t)}},function(e,t){return{type:`ExportDefaultDeclaration`,start:t[e],end:t[e+1],declaration:Q(t[e+2],t)}},function(e,t){let n=t[e+3],r=t[e+5];return{type:`ExportNamedDeclaration`,start:t[e],end:t[e+1],specifiers:Ny(t[e+2],t),source:n===0?null:Q(n,t),attributes:Ny(t[e+4],t),declaration:r===0?null:Q(r,t)}},function(e,t){let n=Q(t[e+2],t),r=t[e+3];return{type:`ExportSpecifier`,start:t[e],end:t[e+1],local:n,exported:r===0?{...n}:Q(r,t)}},function(e,t){return{type:`ExpressionStatement`,start:t[e],end:t[e+1],expression:Q(t[e+2],t)}},function(e,t){return{type:`ForInStatement`,start:t[e],end:t[e+1],left:Q(t[e+2],t),right:Q(t[e+3],t),body:Q(t[e+4],t)}},function(e,t){let n=t[e+2];return{type:`ForOfStatement`,start:t[e],end:t[e+1],await:!(1&~n),left:Q(t[e+3],t),right:Q(t[e+4],t),body:Q(t[e+5],t)}},function(e,t){let n=t[e+2],r=t[e+3],i=t[e+4];return{type:`ForStatement`,start:t[e],end:t[e+1],init:n===0?null:Q(n,t),test:r===0?null:Q(r,t),update:i===0?null:Q(i,t),body:Q(t[e+5],t)}},function(e,t){let n=t[e+2],r=Mm(t[e+3],t),i=t[e+4];return{type:`FunctionDeclaration`,start:t[e],end:t[e+1],async:!(1&~n),generator:!(2&~n),...r.length>0?{[Am]:r}:{},id:i===0?null:Q(i,t),params:Ny(t[e+5],t),body:Q(t[e+6],t),expression:!1}},function(e,t){let n=t[e+2],r=Mm(t[e+3],t),i=t[e+4];return{type:`FunctionExpression`,start:t[e],end:t[e+1],async:!(1&~n),generator:!(2&~n),...r.length>0?{[Am]:r}:{},id:i===0?null:Q(i,t),params:Ny(t[e+5],t),body:Q(t[e+6],t),expression:!1}},function(e,t){return{type:`Identifier`,start:t[e],end:t[e+1],name:t.convertString(t[e+2])}},function(e,t){let n=t[e+4];return{type:`IfStatement`,start:t[e],end:t[e+1],test:Q(t[e+2],t),consequent:Q(t[e+3],t),alternate:n===0?null:Q(n,t)}},function(e,t){return{type:`ImportAttribute`,start:t[e],end:t[e+1],key:Q(t[e+2],t),value:Q(t[e+3],t)}},function(e,t){let n=t[e+5];return{type:`ImportDeclaration`,start:t[e],end:t[e+1],specifiers:Ny(t[e+2],t),source:Q(t[e+3],t),attributes:Ny(t[e+4],t),...n===0?{}:{phase:km[n]}}},function(e,t){return{type:`ImportDefaultSpecifier`,start:t[e],end:t[e+1],local:Q(t[e+2],t)}},function(e,t){let n=t[e+3],r=t[e+4];return{type:`ImportExpression`,start:t[e],end:t[e+1],source:Q(t[e+2],t),options:n===0?null:Q(n,t),...r===0?{}:{phase:km[r]}}},function(e,t){return{type:`ImportNamespaceSpecifier`,start:t[e],end:t[e+1],local:Q(t[e+2],t)}},function(e,t){let n=t[e+2],r=Q(t[e+3],t);return{type:`ImportSpecifier`,start:t[e],end:t[e+1],imported:n===0?{...r}:Q(n,t),local:r}},function(e,t){let n=t[e+3];return{type:`JSXAttribute`,start:t[e],end:t[e+1],name:Q(t[e+2],t),value:n===0?null:Q(n,t)}},function(e,t){return{type:`JSXClosingElement`,start:t[e],end:t[e+1],name:Q(t[e+2],t)}},function(e,t){return{type:`JSXClosingFragment`,start:t[e],end:t[e+1]}},function(e,t){let n=t[e+4];return{type:`JSXElement`,start:t[e],end:t[e+1],openingElement:Q(t[e+2],t),children:Ny(t[e+3],t),closingElement:n===0?null:Q(n,t)}},function(e,t){return{type:`JSXEmptyExpression`,start:t[e],end:t[e+1]}},function(e,t){return{type:`JSXExpressionContainer`,start:t[e],end:t[e+1],expression:Q(t[e+2],t)}},function(e,t){return{type:`JSXFragment`,start:t[e],end:t[e+1],openingFragment:Q(t[e+2],t),children:Ny(t[e+3],t),closingFragment:Q(t[e+4],t)}},function(e,t){return{type:`JSXIdentifier`,start:t[e],end:t[e+1],name:t.convertString(t[e+2])}},function(e,t){return{type:`JSXMemberExpression`,start:t[e],end:t[e+1],object:Q(t[e+2],t),property:Q(t[e+3],t)}},function(e,t){return{type:`JSXNamespacedName`,start:t[e],end:t[e+1],namespace:Q(t[e+2],t),name:Q(t[e+3],t)}},function(e,t){let n=t[e+2];return{type:`JSXOpeningElement`,start:t[e],end:t[e+1],selfClosing:!(1&~n),name:Q(t[e+3],t),attributes:Ny(t[e+4],t)}},function(e,t){return{type:`JSXOpeningFragment`,start:t[e],end:t[e+1],attributes:[],selfClosing:!1}},function(e,t){return{type:`JSXSpreadAttribute`,start:t[e],end:t[e+1],argument:Q(t[e+2],t)}},function(e,t){return{type:`JSXSpreadChild`,start:t[e],end:t[e+1],expression:Q(t[e+2],t)}},function(e,t){return{type:`JSXText`,start:t[e],end:t[e+1],value:t.convertString(t[e+2]),raw:t.convertString(t[e+3])}},function(e,t){return{type:`LabeledStatement`,start:t[e],end:t[e+1],label:Q(t[e+2],t),body:Q(t[e+3],t)}},function(e,t){let n=t.convertString(t[e+2]);return{type:`Literal`,start:t[e],end:t[e+1],bigint:n,raw:t.convertString(t[e+3]),value:BigInt(n)}},function(e,t){let n=!(1&~t[e+2]);return{type:`Literal`,start:t[e],end:t[e+1],value:n,raw:n?`true`:`false`}},function(e,t){return{type:`Literal`,start:t[e],end:t[e+1],raw:`null`,value:null}},function(e,t){let n=t[e+2];return{type:`Literal`,start:t[e],end:t[e+1],raw:n===0?void 0:t.convertString(n),value:new DataView(t.buffer).getFloat64(e+3<<2,!0)}},function(e,t){let n=t.convertString(t[e+2]),r=t.convertString(t[e+3]);return{type:`Literal`,start:t[e],end:t[e+1],raw:`/${r}/${n}`,regex:{flags:n,pattern:r},value:new RegExp(r,n)}},function(e,t){let n=t[e+3];return{type:`Literal`,start:t[e],end:t[e+1],value:t.convertString(t[e+2]),raw:n===0?void 0:t.convertString(n)}},function(e,t){return{type:`LogicalExpression`,start:t[e],end:t[e+1],operator:km[t[e+2]],left:Q(t[e+3],t),right:Q(t[e+4],t)}},function(e,t){let n=t[e+2];return{type:`MemberExpression`,start:t[e],end:t[e+1],computed:!(1&~n),optional:!(2&~n),object:Q(t[e+3],t),property:Q(t[e+4],t)}},function(e,t){return{type:`MetaProperty`,start:t[e],end:t[e+1],meta:Q(t[e+2],t),property:Q(t[e+3],t)}},function(e,t){let n=t[e+2];return{type:`MethodDefinition`,start:t[e],end:t[e+1],static:!(1&~n),computed:!(2&~n),decorators:Ny(t[e+3],t),key:Q(t[e+4],t),value:Q(t[e+5],t),kind:km[t[e+6]]}},function(e,t){let n=Mm(t[e+2],t);return{type:`NewExpression`,start:t[e],end:t[e+1],...n.length>0?{[Am]:n}:{},callee:Q(t[e+3],t),arguments:Ny(t[e+4],t)}},function(e,t){return{type:`ObjectExpression`,start:t[e],end:t[e+1],properties:Ny(t[e+2],t)}},function(e,t){return{type:`ObjectPattern`,start:t[e],end:t[e+1],properties:Ny(t[e+2],t)}},function(e,t){return{type:`PrivateIdentifier`,start:t[e],end:t[e+1],name:t.convertString(t[e+2])}},function(e,t){let n=Mm(t[e+3],t);return{type:`Program`,start:t[e],end:t[e+1],body:Ny(t[e+2],t),...n.length>0?{[jm]:n}:{},sourceType:`module`}},function(e,t){let n=t[e+2],r=t[e+3],i=Q(t[e+4],t);return{type:`Property`,start:t[e],end:t[e+1],method:!(1&~n),shorthand:!(2&~n),computed:!(4&~n),key:r===0?{...i}:Q(r,t),value:i,kind:km[t[e+5]]}},function(e,t){let n=t[e+2],r=t[e+5];return{type:`PropertyDefinition`,start:t[e],end:t[e+1],static:!(1&~n),computed:!(2&~n),decorators:Ny(t[e+3],t),key:Q(t[e+4],t),value:r===0?null:Q(r,t)}},function(e,t){return{type:`RestElement`,start:t[e],end:t[e+1],argument:Q(t[e+2],t)}},function(e,t){let n=t[e+2];return{type:`ReturnStatement`,start:t[e],end:t[e+1],argument:n===0?null:Q(n,t)}},function(e,t){return{type:`SequenceExpression`,start:t[e],end:t[e+1],expressions:Ny(t[e+2],t)}},function(e,t){return{type:`SpreadElement`,start:t[e],end:t[e+1],argument:Q(t[e+2],t)}},function(e,t){return{type:`StaticBlock`,start:t[e],end:t[e+1],body:Ny(t[e+2],t)}},function(e,t){return{type:`Super`,start:t[e],end:t[e+1]}},function(e,t){let n=t[e+2];return{type:`SwitchCase`,start:t[e],end:t[e+1],test:n===0?null:Q(n,t),consequent:Ny(t[e+3],t)}},function(e,t){return{type:`SwitchStatement`,start:t[e],end:t[e+1],discriminant:Q(t[e+2],t),cases:Ny(t[e+3],t)}},function(e,t){return{type:`TaggedTemplateExpression`,start:t[e],end:t[e+1],tag:Q(t[e+2],t),quasi:Q(t[e+3],t)}},function(e,t){let n=t[e+2],r=t[e+3],i=r===0?null:t.convertString(r),a=t.convertString(t[e+4]);return{type:`TemplateElement`,start:t[e],end:t[e+1],tail:!(1&~n),value:{cooked:i,raw:a}}},function(e,t){return{type:`TemplateLiteral`,start:t[e],end:t[e+1],quasis:Ny(t[e+2],t),expressions:Ny(t[e+3],t)}},function(e,t){return{type:`ThisExpression`,start:t[e],end:t[e+1]}},function(e,t){return{type:`ThrowStatement`,start:t[e],end:t[e+1],argument:Q(t[e+2],t)}},function(e,t){let n=t[e+3],r=t[e+4];return{type:`TryStatement`,start:t[e],end:t[e+1],block:Q(t[e+2],t),handler:n===0?null:Q(n,t),finalizer:r===0?null:Q(r,t)}},function(e,t){return{type:`UnaryExpression`,start:t[e],end:t[e+1],operator:km[t[e+2]],argument:Q(t[e+3],t),prefix:!0}},function(e,t){let n=t[e+2];return{type:`UpdateExpression`,start:t[e],end:t[e+1],prefix:!(1&~n),operator:km[t[e+3]],argument:Q(t[e+4],t)}},function(e,t){return{type:`VariableDeclaration`,start:t[e],end:t[e+1],kind:km[t[e+2]],declarations:Ny(t[e+3],t)}},function(e,t){let n=t[e+3];return{type:`VariableDeclarator`,start:t[e],end:t[e+1],id:Q(t[e+2],t),init:n===0?null:Q(n,t)}},function(e,t){return{type:`WhileStatement`,start:t[e],end:t[e+1],test:Q(t[e+2],t),body:Q(t[e+3],t)}},function(e,t){let n=t[e+2],r=t[e+3];return{type:`YieldExpression`,start:t[e],end:t[e+1],delegate:!(1&~n),argument:r===0?null:Q(r,t)}}];function Q(e,t){let n=t[e],r=My[n];if(!r)throw console.trace(),/* @__PURE__ */ Error(`Unknown node type: ${n}`);return r(e+1,t)}function Ny(e,t){if(e===0)return af;let n=t[e++],r=Array(n);for(let i=0;i<n;i++){let n=t[e++];r[i]=n?Q(n,t):null}return r}function Py(e){let t=new Uint32Array(e.buffer),n;if(typeof Buffer<`u`&&e instanceof Buffer)n=n=>{let r=t[n++],i=n<<2;return e.toString(`utf8`,i,i+r)};else{let r=new TextDecoder;n=n=>{let i=t[n++],a=n<<2;return r.decode(e.subarray(a,a+i))}}return Object.assign(t,{convertString:n})}var Fy=class extends Qg{constructor(){super(...arguments),this.objectEntity=null}get expression(){return If(this.flags,8388608)}set expression(e){this.flags=Lf(this.flags,8388608,e)}createScope(e){this.scope=new Kg(e,!1)}hasEffects(){return!1}hasEffectsOnInteractionAtPath(e,t,n){if(this.annotationNoSideEffects&&e.length===0&&t.type===2)return!1;if(super.hasEffectsOnInteractionAtPath(e,t,n))return!0;if(t.type===2){let{ignore:e,brokenFlow:t}=n;if(n.ignore={breaks:!1,continues:!1,labels:/* @__PURE__ */ new Set,returnYield:!0,this:!1},this.body.hasEffects(n))return!0;n.ignore=e,n.brokenFlow=t}return!1}onlyFunctionCallUsed(){return this.parent.type===Wd&&this.parent.callee===this||super.onlyFunctionCallUsed()}include(e,t){super.include(e,t);for(let n of this.params)n instanceof bg||n.include(e,t)}includeNode(e){this.included=!0,this.body.includePath(U,e);for(let t of this.params)t instanceof bg||t.includePath(U,e)}getObjectEntity(){return this.objectEntity===null?this.objectEntity=new hh([],vh):this.objectEntity}},Iy=class extends J{constructor(){super(...arguments),this.isConstReassignment=!1}hasEffects(e){let{deoptimized:t,isConstReassignment:n,left:r,operator:i,right:a}=this;return t||this.applyDeoptimizations(),n||a.hasEffects(e)||r.hasEffectsAsAssignmentTarget(e,i!==`=`)||this.left.hasEffectsWhenDestructuring?.(e,H,a)}hasEffectsOnInteractionAtPath(e,t,n){return t.type===1&&this.left.included||this.right.hasEffectsOnInteractionAtPath(e,t,n)}include(e,t){let{deoptimized:n,isConstReassignment:r,left:i,right:a,operator:o}=this;n||this.applyDeoptimizations(),this.included||this.includeNode(e);let s=Ff();(t||r||o!==`=`||i.included||i.hasEffectsAsAssignmentTarget(s,!1)||i.hasEffectsWhenDestructuring?.(s,H,a))&&i.includeAsAssignmentTarget(e,t,o!==`=`),a.include(e,t)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.right.includePath(U,e)}initialise(){super.initialise(),this.left instanceof bg&&this.scope.variables.get(this.left.name)?.kind===`const`&&(this.isConstReassignment=!0,this.scope.context.log(G,{code:`CONST_REASSIGN`,message:"Cannot reassign a variable declared with `const`"},this.left.start)),this.left.setAssignedValue(this.right)}render(e,t,{preventASI:n,renderedParentType:r,renderedSurroundingElement:i}=nf){let{left:a,right:o,start:s,end:c,parent:l}=this;if(a.included)a.render(e,t),o.render(e,t);else{let c=Fd(e.original,Nd(e.original,`=`,a.end)+1);e.remove(s,c),n&&Vd(e,c,o.start),o.render(e,t,{renderedParentType:r||l.type,renderedSurroundingElement:i||l.type})}if(t.format===`system`){if(a instanceof bg){let n=a.variable,r=t.exportNamesByVariable.get(n);if(r)return void(r.length===1?$d(n,s,c,e,t):ef(n,s,c,l.type!==Kd,e,t))}else{let n=[];if(a.addExportedVariables(n,t.exportNamesByVariable),n.length>0)return void function(e,t,n,r,i,a){let{_:o,getDirectReturnIifeLeft:s}=a.snippets;i.prependRight(t,s([`v`],`${Qd(e,a)},${o}v`,{needsArrowReturnParens:!0,needsWrappedFunction:r})),i.appendLeft(n,`)`)}(n,s,c,function(e,t,n){return t===Kd||e.type===Kd&&e.start===n}(l,i,s),e,t)}}a.included&&a instanceof lv&&(i===Kd||i===Hd)&&(e.appendRight(s,`(`),e.prependLeft(c,`)`))}applyDeoptimizations(){this.deoptimized=!0,this.left.deoptimizeAssignment(H,this.right),this.scope.context.requestTreeshakingPass()}},Ly=class extends J{addExportedVariables(e,t){this.left.addExportedVariables(e,t)}declare(e,t,n){return this.left.declare(e,t,n)}deoptimizeAssignment(e,t){this.left.deoptimizeAssignment(e,t)}deoptimizePath(e){e.length===0&&this.left.deoptimizePath(e)}hasEffectsOnInteractionAtPath(e,t,n){return e.length>0||this.left.hasEffectsOnInteractionAtPath(H,t,n)}hasEffectsWhenDestructuring(e,t,n){return this.left.hasEffectsWhenDestructuring(e,t,n)}includeDestructuredIfNecessary(e,t,n){let r=this.left.includeDestructuredIfNecessary(e,t,n)||this.included;return(r||=this.right.shouldBeIncluded(e))&&(this.right.include(e,!1),this.left.included||(this.left.includeNode(e),this.left.includeDestructuredIfNecessary(e,t,n))),!this.included&&r&&this.includeNode(e),this.included}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.right.includePath(U,e)}markDeclarationReached(){this.left.markDeclarationReached()}render(e,t,{isShorthandProperty:n}=nf){this.left.render(e,t,{isShorthandProperty:n}),this.right.render(e,t)}setAssignedValue(e){this.left.setAssignedValue(e)}applyDeoptimizations(){this.deoptimized=!0,this.left.deoptimizePath(H),this.right.deoptimizePath(U),this.scope.context.requestTreeshakingPass()}},Ry=class extends J{deoptimizePath(e){this.argument.deoptimizePath(e)}hasEffects(){return this.deoptimized||this.applyDeoptimizations(),!0}initialise(){super.initialise(),ov(this)}include(e,t){this.included||this.includeNode(e),this.argument.include(e,t)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.argument.includePath(zy,e)}includePath(e,t){this.deoptimized||this.applyDeoptimizations(),this.included||this.includeNode(t),this.argument.includePath(e,t)}};let zy=[`then`];function By(e){return e===void 0?`void 0`:typeof e==`boolean`?String(e):typeof e==`string`?JSON.stringify(e):typeof e==`number`?function(e){if(Object.is(-0,e))return`-0`;let[t,n]=e.toExponential().split(`e`),r=t.split(`.`)[1]?.length||0,i=`${t.replace(`.`,``)}e${parseInt(n)-r}`,a=String(e).replace(`+`,``);return i.length<a.length?i:a}(e):Rf}let Vy={"!=":(e,t)=>e!=t,"!==":(e,t)=>e!==t,"%":(e,t)=>e%t,"&":(e,t)=>e&t,"*":(e,t)=>e*t,"**":(e,t)=>e**t,"+":(e,t)=>e+t,"-":(e,t)=>e-t,"/":(e,t)=>e/t,"<":(e,t)=>e<t,"<<":(e,t)=>e<<t,"<=":(e,t)=>e<=t,"==":(e,t)=>e==t,"===":(e,t)=>e===t,">":(e,t)=>e>t,">=":(e,t)=>e>=t,">>":(e,t)=>e>>t,">>>":(e,t)=>e>>>t,"^":(e,t)=>e^t,"|":(e,t)=>e|t},Hy=Symbol(`Unassigned`);var Uy=class extends J{constructor(){super(...arguments),this.renderedLiteralValue=Hy}deoptimizeCache(){this.renderedLiteralValue=Rf}getLiteralValueAtPath(e,t,n){if(e.length>0)return Rf;let r=this.left.getLiteralValueAtPath(H,t,n);if(typeof r==`symbol`)return Rf;if(this.operator===`in`&&this.right.variable instanceof hv){let[e]=this.right.variable.context.traceExport(String(r));return e instanceof _m||e instanceof _v?Rf:!!e}let i=this.right.getLiteralValueAtPath(H,t,n);if(typeof i==`symbol`)return Rf;let a=Vy[this.operator];return a?a(r,i):Rf}getRenderedLiteralValue(){return this.operator===`in`&&this.right.variable instanceof hv?this.renderedLiteralValue===Hy?this.renderedLiteralValue=By(this.getLiteralValueAtPath(H,Ef,this)):this.renderedLiteralValue:Rf}hasEffects(e){return this.operator===`+`&&this.parent instanceof Jg&&this.left.getLiteralValueAtPath(H,Ef,this)===``||super.hasEffects(e)}hasEffectsOnInteractionAtPath(e,{type:t}){return t!==0||e.length>1}include(e,t,n){this.included||this.includeNode(e),typeof this.getRenderedLiteralValue()==`symbol`&&(this.left.include(e,t,n),this.right.include(e,t,n),this.operator===`instanceof`&&this.right.includePath(Cf,e))}includeNode(e){this.included=!0,this.operator===`in`&&typeof this.getRenderedLiteralValue()==`symbol`&&this.right.includePath(U,e)}removeAnnotations(e){this.left.removeAnnotations(e)}render(e,t,{renderedSurroundingElement:n}=nf){let r=this.getRenderedLiteralValue();typeof r==`symbol`?(this.left.render(e,t,{renderedSurroundingElement:n}),this.right.render(e,t)):e.overwrite(this.start,this.end,r)}};Uy.prototype.applyDeoptimizations=zm;var Wy=class extends J{hasEffects(e){if(this.label){if(!e.ignore.labels.has(this.label.name))return!0;e.includedLabels.add(this.label.name)}else{if(!e.ignore.breaks)return!0;e.hasBreak=!0}return e.brokenFlow=!0,!1}include(e,t){this.included=!0,this.label?(this.label.include(e,t),e.includedLabels.add(this.label.name)):e.hasBreak=!0,e.brokenFlow=!0}};function Gy(e,t,n){if(n.arguments.length>0){if(n.arguments[n.arguments.length-1].included)for(let r of n.arguments)r.render(e,t);else{let r=n.arguments.length-2;for(;r>=0&&!n.arguments[r].included;)r--;if(r>=0){for(let i=0;i<=r;i++)n.arguments[i].render(e,t);e.remove(Nd(e.original,`,`,n.arguments[r].end),n.end-1)}else e.remove(Nd(e.original,`(`,n.callee.end)+1,n.end-1)}}}Wy.prototype.includeNode=Rm,Wy.prototype.applyDeoptimizations=zm;var Ky=class extends J{constructor(){super(...arguments),this.returnExpression=null,this.deoptimizableDependentExpressions=[],this.expressionsToBeDeoptimized=/* @__PURE__ */ new Set}deoptimizeArgumentsOnInteractionAtPath(e,t,n){let{args:r}=e,[i,a]=this.getReturnExpression(n);if(a)return;let o=r.filter(e=>!!e&&e!==W);if(o.length!==0){if(i===W)for(let e of o)e.deoptimizePath(U);else n.withTrackedEntityAtPath(t,i,()=>{for(let e of o)this.expressionsToBeDeoptimized.add(e);i.deoptimizeArgumentsOnInteractionAtPath(e,t,n)},null)}}deoptimizeCache(){if(this.returnExpression?.[0]!==W){this.returnExpression=Hf;let{deoptimizableDependentExpressions:e,expressionsToBeDeoptimized:t}=this;this.expressionsToBeDeoptimized=of,this.deoptimizableDependentExpressions=af;for(let t of e)t.deoptimizeCache();for(let e of t)e.deoptimizePath(U)}}deoptimizePath(e){if(e.length===0||this.scope.context.deoptimizationTracker.trackEntityAtPathAndGetIfTracked(e,this))return;let[t]=this.getReturnExpression();t!==W&&t.deoptimizePath(e)}getLiteralValueAtPath(e,t,n){let[r]=this.getReturnExpression(t);return r===W?Rf:t.withTrackedEntityAtPath(e,r,()=>(this.deoptimizableDependentExpressions.push(n),r.getLiteralValueAtPath(e,t,n)),Rf)}getReturnExpressionWhenCalledAtPath(e,t,n,r){let i=this.getReturnExpression(n);return i[0]===W?i:n.withTrackedEntityAtPath(e,i,()=>{this.deoptimizableDependentExpressions.push(r);let[a,o]=i[0].getReturnExpressionWhenCalledAtPath(e,t,n,r);return[a,o||i[1]]},Hf)}hasEffectsOnInteractionAtPath(e,t,n){let{type:r}=t;if(r===2){let{args:r,withNew:i}=t;if((i?n.instantiated:n.called).trackEntityAtPathAndGetIfTracked(e,r,this))return!1}else if((r===1?n.assigned:n.accessed).trackEntityAtPathAndGetIfTracked(e,this))return!1;let[i,a]=this.getReturnExpression();return(r===1||!a)&&i.hasEffectsOnInteractionAtPath(e,t,n)}includeCallArgumentsWhenCalledAtPath(e,t,n){let[r,i]=this.getReturnExpression();i||r===W||n.includedCallArguments.has(r)?Wf(t,n):(n.includedCallArguments.add(r),r.includeCallArgumentsWhenCalledAtPath(e,t,n),n.includedCallArguments.delete(r))}},qy=class extends Ky{get hasCheckedForWarnings(){return If(this.flags,134217728)}set hasCheckedForWarnings(e){this.flags=Lf(this.flags,134217728,e)}get optional(){return If(this.flags,128)}set optional(e){this.flags=Lf(this.flags,128,e)}bind(){super.bind(),this.interaction={args:[this.callee instanceof V_&&!this.callee.variable?this.callee.object:null,...this.arguments],type:2,withNew:!1}}getLiteralValueAtPathAsChainElement(e,t,n){return L_(this,this.callee,e,t,n)}hasEffects(e){this.deoptimized||this.applyDeoptimizations();for(let t of this.arguments)if(t.hasEffects(e))return!0;return!this.annotationPure&&(this.callee.hasEffects(e)||this.callee.hasEffectsOnInteractionAtPath(H,this.interaction,e))}hasEffectsAsChainElement(e){let t=`hasEffectsAsChainElement`in this.callee?this.callee.hasEffectsAsChainElement(e):this.callee.hasEffects(e);if(t===Im)return Im;if(this.optional&&this.callee.getLiteralValueAtPath(H,Ef,this)==null)return!this.annotationPure&&t||Im;this.deoptimized||this.applyDeoptimizations();for(let t of this.arguments)if(t.hasEffects(e))return!0;return!this.annotationPure&&(t||this.callee.hasEffectsOnInteractionAtPath(H,this.interaction,e))}include(e,t){this.included||this.includeNode(e),t?(super.include(e,!0),t===Fm&&this.callee instanceof bg&&this.callee.variable&&this.callee.variable.markCalledFromTryStatement()):(this.callee.include(e,!1),this.callee.includeCallArgumentsWhenCalledAtPath(H,this.interaction,e))}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations()}initialise(){super.initialise(),this.annotations&&this.scope.context.options.treeshake.annotations&&(this.annotationPure=this.annotations.some(e=>e.type===`pure`))}render(e,t,{renderedSurroundingElement:n}=nf){this.callee.render(e,t,{isCalleeOfRenderedParent:!0,renderedSurroundingElement:n}),Gy(e,t,this),this.callee instanceof bg&&!this.hasCheckedForWarnings&&(this.hasCheckedForWarnings=!0,this.scope.findVariable(this.callee.name).isNamespace&&this.scope.context.log(G,Rp(this.callee.name),this.start),this.callee.name===`eval`&&this.scope.context.log(G,{code:`EVAL`,id:r=this.scope.context.module.id,message:`Use of eval in "${K(r)}" is strongly discouraged as it poses security risks and may cause issues with minification.`,url:cp(`troubleshooting/#avoiding-eval`)},this.start));var r}applyDeoptimizations(){this.deoptimized=!0,this.callee.deoptimizeArgumentsOnInteractionAtPath(this.interaction,H,Ef),this.scope.context.requestTreeshakingPass()}getReturnExpression(e=Ef){return this.returnExpression===null?(this.returnExpression=Hf,this.returnExpression=this.callee.getReturnExpressionWhenCalledAtPath(H,this.interaction,e,this)):this.returnExpression}},Jy=class extends J{createScope(e){this.scope=new Gg(e,!0)}parseNode(e){let{body:t,param:n,type:r}=e;return this.type=r,n&&(this.param=new(this.scope.context.getNodeConstructor(n.type))(this,this.scope).parseNode(n),this.param.declare(`parameter`,H,W)),this.body=new Yg(this,this.scope.bodyScope).parseNode(t),super.parseNode(e)}};Jy.prototype.preventChildBlockScope=!0,Jy.prototype.includeNode=Lm;var Yy=class extends J{deoptimizeCache(){}deoptimizePath(e){this.expression.deoptimizePath(e)}getLiteralValueAtPath(e,t,n){let r=this.expression.getLiteralValueAtPathAsChainElement(e,t,n);return r===Im?void 0:r}hasEffects(e){return!0===this.expression.hasEffectsAsChainElement(e)}includePath(e,t){this.included=!0,this.expression.includePath(e,t)}removeAnnotations(e){this.expression.removeAnnotations(e)}};Yy.prototype.includeNode=Rm,Yy.prototype.applyDeoptimizations=zm;var Xy=class extends Cg{constructor(e,t){let{context:n}=e;super(e,n),this.variables.set(`this`,this.thisVariable=new hg(`this`,null,t,H,n,`other`)),this.instanceScope=new Cg(this,n),this.instanceThisVariable=new Bg(n),this.instanceScope.variables.set(`this`,this.instanceThisVariable)}findLexicalBoundary(){return this}},Zy=class extends J{createScope(e){this.scope=new Xy(e,this.parent)}include(e,t){this.included=!0,this.scope.context.includeVariableInModule(this.scope.thisVariable,U,e);for(let n of this.body)n.include(e,t)}parseNode(e){let t=this.body=Array(e.body.length),n=0;for(let r of e.body)t[n++]=new(this.scope.context.getNodeConstructor(r.type))(this,r.static?this.scope:this.scope.instanceScope).parseNode(r);return super.parseNode(e)}};function Qy(e){return typeof e==`symbol`?e!==Bf&&(e===zf||Rf):!!e}Zy.prototype.includeNode=Rm,Zy.prototype.applyDeoptimizations=zm;var $y=class e extends Vf{constructor(e){super(),this.expressions=e}deoptimizePath(e){for(let t of this.expressions)t.deoptimizePath(e)}getReturnExpressionWhenCalledAtPath(t,n,r,i){return[new e(this.expressions.map(e=>e.getReturnExpressionWhenCalledAtPath(t,n,r,i)[0])),!1]}hasEffectsOnInteractionAtPath(e,t,n){for(let r of this.expressions)if(r.hasEffectsOnInteractionAtPath(e,t,n))return!0;return!1}},eb=class extends J{constructor(){super(...arguments),this.expressionsToBeDeoptimized=[],this.usedBranch=null}get isBranchResolutionAnalysed(){return If(this.flags,65536)}set isBranchResolutionAnalysed(e){this.flags=Lf(this.flags,65536,e)}get hasDeoptimizedCache(){return If(this.flags,33554432)}set hasDeoptimizedCache(e){this.flags=Lf(this.flags,33554432,e)}deoptimizeArgumentsOnInteractionAtPath(e,t,n){this.consequent.deoptimizeArgumentsOnInteractionAtPath(e,t,n),this.alternate.deoptimizeArgumentsOnInteractionAtPath(e,t,n)}deoptimizeCache(){if(!this.hasDeoptimizedCache&&(this.hasDeoptimizedCache=!0,this.usedBranch!==null)){let e=this.usedBranch===this.consequent?this.alternate:this.consequent;this.usedBranch=null,e.deoptimizePath(U),this.included&&e.includePath(U,Pf());let{expressionsToBeDeoptimized:t}=this;this.expressionsToBeDeoptimized=af;for(let e of t)e.deoptimizeCache()}}deoptimizePath(e){let t=this.getUsedBranch();t?t.deoptimizePath(e):(this.consequent.deoptimizePath(e),this.alternate.deoptimizePath(e))}getLiteralValueAtPath(e,t,n){let r=this.getUsedBranch();if(!r){if(this.hasDeoptimizedCache)return Rf;let r=this.consequent.getLiteralValueAtPath(e,t,n),i=Qy(r);if(i===Rf)return Rf;let a=this.alternate.getLiteralValueAtPath(e,t,n);return i===Qy(a)?(this.expressionsToBeDeoptimized.push(n),r===a?r:i?zf:Bf):Rf}return this.expressionsToBeDeoptimized.push(n),r.getLiteralValueAtPath(e,t,n)}getReturnExpressionWhenCalledAtPath(e,t,n,r){let i=this.getUsedBranch();return i?(this.expressionsToBeDeoptimized.push(r),i.getReturnExpressionWhenCalledAtPath(e,t,n,r)):[new $y([this.consequent.getReturnExpressionWhenCalledAtPath(e,t,n,r)[0],this.alternate.getReturnExpressionWhenCalledAtPath(e,t,n,r)[0]]),!1]}hasEffects(e){if(this.test.hasEffects(e))return!0;let t=this.getUsedBranch();return t?t.hasEffects(e):this.consequent.hasEffects(e)||this.alternate.hasEffects(e)}hasEffectsOnInteractionAtPath(e,t,n){let r=this.getUsedBranch();return r?r.hasEffectsOnInteractionAtPath(e,t,n):this.consequent.hasEffectsOnInteractionAtPath(e,t,n)||this.alternate.hasEffectsOnInteractionAtPath(e,t,n)}include(e,t){this.included=!0;let n=this.getUsedBranch();n===null||t||this.test.shouldBeIncluded(e)?(this.test.include(e,t),this.consequent.include(e,t),this.alternate.include(e,t)):n.include(e,t)}includePath(e,t){this.included=!0;let n=this.getUsedBranch();n===null||this.test.shouldBeIncluded(t)?(this.consequent.includePath(e,t),this.alternate.includePath(e,t)):n.includePath(e,t)}includeCallArgumentsWhenCalledAtPath(e,t,n){if(e.length===0){let e=this.getUsedBranch();e?e.includeCallArgumentsWhenCalledAtPath(H,t,n):(this.consequent.includeCallArgumentsWhenCalledAtPath(H,t,n),this.alternate.includeCallArgumentsWhenCalledAtPath(H,t,n))}else Wf(t,n)}removeAnnotations(e){this.test.removeAnnotations(e)}render(e,t,{isCalleeOfRenderedParent:n,preventASI:r,renderedParentType:i,renderedSurroundingElement:a}=nf){if(this.test.included)this.test.render(e,t,{renderedSurroundingElement:a}),this.consequent.render(e,t),this.alternate.render(e,t);else{let o=this.getUsedBranch(),s=Nd(e.original,`:`,this.consequent.end),c=Fd(e.original,(this.consequent.included?Nd(e.original,`?`,this.test.end):s)+1);r&&Vd(e,c,o.start),e.remove(this.start,c),this.consequent.included&&e.remove(s,this.end),this.test.removeAnnotations(e),o.render(e,t,{isCalleeOfRenderedParent:n,preventASI:!0,renderedParentType:i||this.parent.type,renderedSurroundingElement:a||this.parent.type})}}getUsedBranch(){if(this.isBranchResolutionAnalysed)return this.usedBranch;this.isBranchResolutionAnalysed=!0;let e=Qy(this.test.getLiteralValueAtPath(H,Ef,this));return typeof e==`symbol`?null:this.usedBranch=e?this.consequent:this.alternate}};eb.prototype.includeNode=Rm,eb.prototype.applyDeoptimizations=zm;var tb=class extends J{hasEffects(e){if(this.label){if(!e.ignore.labels.has(this.label.name))return!0;e.includedLabels.add(this.label.name)}else{if(!e.ignore.continues)return!0;e.hasContinue=!0}return e.brokenFlow=!0,!1}include(e,t){this.included=!0,this.label?(this.label.include(e,t),e.includedLabels.add(this.label.name)):e.hasContinue=!0,e.brokenFlow=!0}};tb.prototype.includeNode=Rm,tb.prototype.applyDeoptimizations=zm;var nb=class extends J{hasEffects(){return!0}};nb.prototype.includeNode=Lm;var rb=class extends J{hasEffects(e){return this.expression.hasEffects(e)||this.expression.hasEffectsOnInteractionAtPath(H,Jf,e)}};function ib(e,t){let{brokenFlow:n,hasBreak:r,hasContinue:i,ignore:a}=e,{breaks:o,continues:s}=a;return a.breaks=!0,a.continues=!0,e.hasBreak=!1,e.hasContinue=!1,!!t.hasEffects(e)||(a.breaks=o,a.continues=s,e.hasBreak=r,e.hasContinue=i,e.brokenFlow=n,!1)}function ab(e,t,n){let{brokenFlow:r,hasBreak:i,hasContinue:a}=e;e.hasBreak=!1,e.hasContinue=!1,t.include(e,n,{asSingleStatement:!0}),e.hasBreak=i,e.hasContinue=a,e.brokenFlow=r}rb.prototype.includeNode=Lm;var ob=class extends J{hasEffects(e){return!!this.test.hasEffects(e)||ib(e,this.body)}include(e,t){this.included=!0,this.test.include(e,t),ab(e,this.body,t)}};ob.prototype.includeNode=Rm,ob.prototype.applyDeoptimizations=zm;var sb=class extends J{hasEffects(){return!1}};sb.prototype.includeNode=Lm;var cb=class extends J{hasEffects(){return!1}initialise(){super.initialise(),this.scope.context.addExport(this)}render(e,t,n){e.remove(n.start,n.end)}};cb.prototype.needsBoundaries=!0,cb.prototype.includeNode=Rm,cb.prototype.applyDeoptimizations=zm;var lb=class extends J{bind(){this.declaration?.bind()}hasEffects(e){return!!this.declaration?.hasEffects(e)}initialise(){super.initialise(),this.scope.context.addExport(this)}removeAnnotations(e){this.declaration?.removeAnnotations(e)}render(e,t,n){let{start:r,end:i}=n;if(this.declaration===null)e.remove(r,i);else{let n=this.declaration.start;if(this.declaration instanceof Mg){let e=this.declaration.decorators;for(let t of e)n=Math.min(n,t.start);n<=this.start&&(n=this.declaration.start)}e.remove(this.start,n),this.declaration.render(e,t,{end:i,start:r})}}};lb.prototype.needsBoundaries=!0,lb.prototype.includeNode=Rm,lb.prototype.applyDeoptimizations=zm;var ub=class extends J{};ub.prototype.includeNode=Rm,ub.prototype.applyDeoptimizations=zm;var db=class extends J{createScope(e){this.scope=new Og(e)}hasEffects(e){let{body:t,deoptimized:n,left:r,right:i}=this;return n||this.applyDeoptimizations(),!(!r.hasEffectsAsAssignmentTarget(e,!1)&&!i.hasEffects(e))||ib(e,t)}include(e,t){let{body:n,deoptimized:r,left:i,right:a}=this;r||this.applyDeoptimizations(),this.included||this.includeNode(e),i.includeAsAssignmentTarget(e,t||!0,!1),a.include(e,t),ab(e,n,t)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.right.includePath(U,e)}initialise(){super.initialise(),this.left.setAssignedValue(W)}render(e,t){this.left.render(e,t,Md),this.right.render(e,t,Md),e.original.charCodeAt(this.right.start-1)===110&&e.prependLeft(this.right.start,` `),this.body.render(e,t),t.format===`system`&&tf(this.left,this.body,e,t)}applyDeoptimizations(){this.deoptimized=!0,this.left.deoptimizePath(H),this.scope.context.requestTreeshakingPass()}},fb=class extends J{get await(){return If(this.flags,131072)}set await(e){this.flags=Lf(this.flags,131072,e)}createScope(e){this.scope=new Og(e)}hasEffects(){return this.deoptimized||this.applyDeoptimizations(),!0}include(e,t){let{body:n,deoptimized:r,left:i,right:a}=this;r||this.applyDeoptimizations(),this.included||this.includeNode(e),i.includeAsAssignmentTarget(e,t||!0,!1),a.include(e,t),ab(e,n,t)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.right.includePath(U,e)}initialise(){super.initialise(),this.await&&ov(this),this.left.setAssignedValue(W)}render(e,t){this.left.render(e,t,Md),this.right.render(e,t,Md),e.original.charCodeAt(this.right.start-1)===102&&e.prependLeft(this.right.start,` `),this.body.render(e,t),t.format===`system`&&tf(this.left,this.body,e,t)}applyDeoptimizations(){this.deoptimized=!0,this.left.deoptimizePath(H),this.right.deoptimizePath(U),this.scope.context.requestTreeshakingPass()}},pb=class extends J{createScope(e){this.scope=new Og(e)}hasEffects(e){return!!(this.init?.hasEffects(e)||this.test?.hasEffects(e)||this.update?.hasEffects(e))||ib(e,this.body)}include(e,t){this.included=!0,this.init?.include(e,t,{asSingleStatement:!0}),this.test?.include(e,t),this.update?.include(e,t),ab(e,this.body,t)}render(e,t){this.init?.render(e,t,Md),this.test?.render(e,t,Md),this.update?.render(e,t,Md),this.body.render(e,t)}};pb.prototype.includeNode=Rm,pb.prototype.applyDeoptimizations=zm;var mb=class extends $g{createScope(e){super.createScope(this.idScope=new Cg(e,e.context))}parseNode(e){return e.id!==null&&(this.id=new bg(this,this.idScope).parseNode(e.id)),super.parseNode(e)}onlyFunctionCallUsed(){return this.parent.type===Wd&&this.parent.callee===this&&(this.id===null||this.id.variable.getOnlyFunctionCallUsed())||super.onlyFunctionCallUsed()}render(e,t,{renderedSurroundingElement:n}=nf){super.render(e,t),n===Kd&&(e.appendRight(this.start,`(`),e.prependLeft(this.end,`)`))}},hb=class extends Og{constructor(){super(...arguments),this.hoistedDeclarations=[]}addDeclaration(e,t,n,r,i){return this.hoistedDeclarations.push(e),super.addDeclaration(e,t,n,r,i)}};let gb=Symbol(`unset`);var _b=class e extends J{constructor(){super(...arguments),this.testValue=gb}deoptimizeCache(){this.testValue=Rf}hasEffects(e){if(this.test.hasEffects(e))return!0;let t=this.getTestValue();if(typeof t==`symbol`){let{brokenFlow:t}=e;if(this.consequent.hasEffects(e))return!0;let n=e.brokenFlow;return e.brokenFlow=t,this.alternate===null?!1:!!this.alternate.hasEffects(e)||(e.brokenFlow=e.brokenFlow&&n,!1)}return t?this.consequent.hasEffects(e):!!this.alternate?.hasEffects(e)}include(e,t){if(this.included=!0,t)this.includeRecursively(t,e);else{let t=this.getTestValue();typeof t==`symbol`?this.includeUnknownTest(e):this.includeKnownTest(e,t)}}parseNode(e){return this.consequent=new(this.scope.context.getNodeConstructor(e.consequent.type))(this,this.consequentScope=new hb(this.scope)).parseNode(e.consequent),e.alternate&&(this.alternate=new(this.scope.context.getNodeConstructor(e.alternate.type))(this,this.alternateScope=new hb(this.scope)).parseNode(e.alternate)),super.parseNode(e)}render(e,t){let{snippets:{getPropertyAccess:n}}=t,r=this.getTestValue(),i=[],a=this.test.included,o=!this.scope.context.options.treeshake;a?this.test.render(e,t):e.remove(this.start,this.consequent.start),this.consequent.included&&(o||typeof r==`symbol`||r)?this.consequent.render(e,t):(e.overwrite(this.consequent.start,this.consequent.end,a?`;`:``),i.push(...this.consequentScope.hoistedDeclarations)),this.alternate&&(!this.alternate.included||!o&&typeof r!=`symbol`&&r?(a&&this.shouldKeepAlternateBranch()?e.overwrite(this.alternate.start,this.end,`;`):e.remove(this.consequent.end,this.end),i.push(...this.alternateScope.hoistedDeclarations)):(a?e.original.charCodeAt(this.alternate.start-1)===101&&e.prependLeft(this.alternate.start,` `):e.remove(this.consequent.end,this.alternate.start),this.alternate.render(e,t))),this.renderHoistedDeclarations(i,e,n)}getTestValue(){return this.testValue===gb?this.testValue=Qy(this.test.getLiteralValueAtPath(H,Ef,this)):this.testValue}includeKnownTest(e,t){this.test.shouldBeIncluded(e)&&this.test.include(e,!1),t&&this.consequent.shouldBeIncluded(e)&&this.consequent.include(e,!1,{asSingleStatement:!0}),!t&&this.alternate?.shouldBeIncluded(e)&&this.alternate.include(e,!1,{asSingleStatement:!0})}includeRecursively(e,t){this.test.include(t,e),this.consequent.include(t,e),this.alternate?.include(t,e)}includeUnknownTest(e){this.test.include(e,!1);let{brokenFlow:t}=e,n=!1;this.consequent.shouldBeIncluded(e)&&(this.consequent.include(e,!1,{asSingleStatement:!0}),n=e.brokenFlow,e.brokenFlow=t),this.alternate?.shouldBeIncluded(e)&&(this.alternate.include(e,!1,{asSingleStatement:!0}),e.brokenFlow=e.brokenFlow&&n)}renderHoistedDeclarations(e,t,n){let r=[...new Set(e.map(e=>{let t=e.variable;return this.shouldHoistVariable(t)?t.getName(n):``}))].filter(Boolean).join(`, `);if(r){let e=this.parent.type,n=e!==Jd&&e!==Ud;t.prependRight(this.start,`${n?`{ `:``}var ${r}; `),n&&t.appendLeft(this.end,` }`)}}shouldHoistVariable(e){return e.included&&e.renderBaseName===null&&e.getHoistedVariable()?.renderBaseName==null}shouldKeepAlternateBranch(){let t=this.parent;do{if(t instanceof e&&t.alternate)return!0;if(t instanceof Yg)return!1;t=t.parent}while(t);return!1}};_b.prototype.includeNode=Rm,_b.prototype.applyDeoptimizations=zm;var vb=class extends J{},yb=class extends J{bind(){}hasEffects(){return!1}initialise(){super.initialise(),this.scope.context.addImport(this)}render(e,t,n){e.remove(n.start,n.end)}};yb.prototype.needsBoundaries=!0,yb.prototype.includeNode=Rm,yb.prototype.applyDeoptimizations=zm;var bb=class extends J{};bb.prototype.includeNode=Rm,bb.prototype.applyDeoptimizations=zm;var xb=class{constructor(e){this.interaction={args:[null,e],type:2,withNew:!1}}deoptimizeArgumentsOnInteractionAtPath(e,t,n){Uf(e),e.type===2&&t.length===0&&(Vm(e.args[1])||Bm(e.args[1]))&&e.args[1].deoptimizeArgumentsOnInteractionAtPath(this.interaction,[],n)}includeCallArguments(e,t){Gf(e,t),e.type===2&&(Vm(e.args[1])||Bm(e.args[1]))&&e.args[1].includeCallArgumentsWhenCalledAtPath(H,this.interaction,t)}},Sb=class{deoptimizeArgumentsOnInteractionAtPath(e){Uf(e)}includeCallArguments(e,t){Gf(e,t)}};function Cb(e){return{fileName:e.getFileName(),...e.getPreRenderedChunkInfo()}}var wb=class extends J{constructor(){super(...arguments),this.inlineNamespace=null,this.resolution=null,this.attributes=null,this.mechanism=null,this.namespaceExportName=void 0,this.localResolution=null,this.resolutionString=null}get shouldIncludeDynamicAttributes(){return If(this.flags,268435456)}set shouldIncludeDynamicAttributes(e){this.flags=Lf(this.flags,268435456,e)}bind(){let{options:e,parent:t,resolution:n,source:r}=this;if(r.bind(),e?.bind(),typeof n!=`object`||!n||!(`namespace`in n))return;if(Gm(t)||(i=t)instanceof J&&i.type===`AwaitExpression`)return void(this.localResolution={resolution:n,tracked:!0});var i;if(!Um(t))return void(this.localResolution={resolution:n,tracked:!1});let a=t,o=this;for(;!a.computed&&a.object===o&&Wm(a.property)&&Hm(a.parent);){let e=a.property.name;if(o=a.parent,e===`then`){let e=o.arguments[0];if(e===void 0||Vm(e)||Bm(e))return a.promiseHandler=new xb(gv(n.namespace)),void(this.localResolution={resolution:n,tracked:!0})}else if(e===`catch`||e===`finally`){if(Um(o.parent)){a.promiseHandler=new Sb,a=o.parent;continue}if(Gm(o.parent))return a.promiseHandler=new Sb,void(this.localResolution={resolution:n,tracked:!0})}break}this.localResolution={resolution:n,tracked:!1}}deoptimizePath(e){this.localResolution?.resolution?.namespace.deoptimizePath(e)}hasEffects(){return!0}include(e,t){this.included||this.includeNode(e),this.source.include(e,t),this.shouldIncludeDynamicAttributes&&this.options?.include(e,t),t&&this.localResolution?.resolution.includeAllExports()}includeNode(e){this.included=!0;let{localResolution:t,scope:n,shouldIncludeDynamicAttributes:r}=this;r&&this.options?.includePath(U,e),n.context.includeDynamicImport(this),n.addAccessedDynamicImport(this),t&&(t.tracked?t.resolution.includeModuleInExecution():t.resolution.includeAllExports())}includePath(e,t){this.included||this.includeNode(t),this.localResolution?.resolution?.namespace.includeMemberPath(e,t)}initialise(){super.initialise(),this.scope.context.addDynamicImport(this)}parseNode(e){return this.sourceAstNode=e.source,super.parseNode(e)}render(e,t){let{snippets:{_:n,getDirectReturnFunction:r,getObject:i,getPropertyAccess:a},importAttributesKey:o}=t;if(this.inlineNamespace){let[t,n]=r([],{functionReturn:!0,lineBreakIndent:null,name:null});e.overwrite(this.start,this.end,`Promise.resolve().then(${t}${this.inlineNamespace.getName(a)}${n})`)}else{if(this.mechanism&&(e.overwrite(this.start,Nd(e.original,`(`,this.start+6)+1,this.mechanism.left),e.overwrite(this.end-1,this.end,this.mechanism.right)),this.resolutionString){if(e.overwrite(this.source.start,this.source.end,this.resolutionString),this.namespaceExportName){let[t,n]=r([`n`],{functionReturn:!0,lineBreakIndent:null,name:null});e.prependLeft(this.end,`.then(${t}n.${this.namespaceExportName}${n})`)}}else this.source.render(e,t);!0!==this.attributes&&(this.options&&e.overwrite(this.source.end,this.end-1,``,{contentOnly:!0}),this.attributes&&e.appendLeft(this.end-1,`,${n}${i([[o,this.attributes]],{lineBreakIndent:null})}`))}}setExternalResolution(e,t,n,r,i,a,o,s,c,l){let{format:u}=t;this.inlineNamespace=null,this.resolutionString=a,this.namespaceExportName=o,this.attributes=s;let d=[...Eb[u]||[]],f;({helper:f,mechanism:this.mechanism}=this.getDynamicImportMechanismAndHelper(e,t,n,r,c,l)),f&&d.push(f),d.length>0&&this.scope.addAccessedGlobals(d,i)}setInternalResolution(e){this.inlineNamespace=e}getDynamicImportMechanismAndHelper(e,{compact:t,dynamicImportInCjs:n,format:r,generatedCode:{arrowFunctions:i},interop:a},{_:o,getDirectReturnFunction:s,getDirectReturnIifeLeft:c},l,u,d){let{resolution:f,scope:p}=this,m=l.hookFirstSync(`renderDynamicImport`,[{chunk:Cb(u),customResolution:typeof f==`string`?f:null,format:r,getTargetChunkImports(){if(d===null)return null;let e=[],t=u.getFileName();for(let n of d.dependencies){let r=`'${n.getImportPath(t)}'`;n instanceof vv?e.push({fileName:n.getFileName(),resolvedImportPath:r,type:`external`}):e.push({chunk:n.getPreRenderedChunkInfo(),fileName:n.getFileName(),resolvedImportPath:r,type:`internal`})}return e},moduleId:p.context.module.id,targetChunk:d?Cb(d):null,targetModuleAttributes:f&&typeof f!=`string`?f.info.attributes:{},targetModuleId:f&&typeof f!=`string`?f.id:null}]);if(m)return{helper:null,mechanism:m};let h=!f||typeof f==`string`;switch(r){case`cjs`:{if(n&&(!f||typeof f==`string`||f instanceof Em))return{helper:null,mechanism:null};let t=Tb(f,e,a),r=`require(`,o=`)`;t&&(r=`/*#__PURE__*/${t}(${r}`,o+=`)`);let[l,u]=s([],{functionReturn:!0,lineBreakIndent:null,name:null});return r=`Promise.resolve().then(${l}${r}`,o+=`${u})`,!i&&h&&(r=c([`t`],`${r}t${o}`,{needsArrowReturnParens:!1,needsWrappedFunction:!0}),o=`)`),{helper:t,mechanism:{left:r,right:o}}}case`amd`:{let n=t?`c`:`resolve`,r=t?`e`:`reject`,l=Tb(f,e,a),[u,d]=s([`m`],{functionReturn:!1,lineBreakIndent:null,name:null}),p=l?`${u}${n}(/*#__PURE__*/${l}(m))${d}`:n,[m,g]=s([n,r],{functionReturn:!1,lineBreakIndent:null,name:null}),_=`new Promise(${m}require([`,ee=`],${o}${p},${o}${r})${g})`;return!i&&h&&(_=c([`t`],`${_}t${ee}`,{needsArrowReturnParens:!1,needsWrappedFunction:!0}),ee=`)`),{helper:l,mechanism:{left:_,right:ee}}}case`system`:return{helper:null,mechanism:{left:`module.import(`,right:`)`}}}return{helper:null,mechanism:null}}};function Tb(e,t,n){return t===`external`?g_[n(e instanceof Em?e.id:null)]:t==="default"?d_:null}wb.prototype.applyDeoptimizations=zm;let Eb={amd:[`require`],cjs:[`require`],system:[`module`]};var Db=class extends J{};Db.prototype.includeNode=Rm,Db.prototype.applyDeoptimizations=zm;var Ob=class extends J{};Ob.prototype.includeNode=Rm,Ob.prototype.applyDeoptimizations=zm;var kb=class extends Cg{constructor(e,t,n){super(e,t),this.importDescriptions=n,this.variables.set(`this`,new hg(`this`,null,qm,H,t,`other`))}addDeclaration(e,t,n,r,i){return this.importDescriptions.has(e.name)&&t.error(am(e.name),e.start),super.addDeclaration(e,t,n,r,i)}addExportDefaultDeclaration(e,t){let n=new F_(e,t);return this.variables.set(`default`,n),n}addNamespaceMemberAccess(){}deconflict(e,t,n){for(let r of this.children)r.deconflict(e,t,n)}findLexicalBoundary(){return this}findVariable(e){let t=this.variables.get(e)||this.accessedOutsideVariables.get(e);if(t)return t;let n=this.context.traceVariable(e)||this.parent.findVariable(e);return n instanceof pg&&this.accessedOutsideVariables.set(e,n),n}},Ab=class extends J{constructor(){super(...arguments),this.objectEntity=null,this.protoProp=null}deoptimizeArgumentsOnInteractionAtPath(e,t,n){this.getObjectEntity().deoptimizeArgumentsOnInteractionAtPath(e,t,n)}deoptimizeCache(){this.getObjectEntity().deoptimizeAllProperties()}deoptimizePath(e){this.getObjectEntity().deoptimizePath(e)}getKnownFunctionAtPath(e,t,n){return this.getObjectEntity().getKnownFunctionAtPath(e,t,n)}getLiteralValueAtPath(e,t,n){return this.getObjectEntity().getLiteralValueAtPath(e,t,n)}getReturnExpressionWhenCalledAtPath(e,t,n,r){return this.getObjectEntity().getReturnExpressionWhenCalledAtPath(e,t,n,r)}hasEffectsOnInteractionAtPath(e,t,n){return this.getObjectEntity().hasEffectsOnInteractionAtPath(e,t,n)}include(e,t){this.included||this.includeNode(e),this.getObjectEntity().include(e,t),this.protoProp?.include(e,t)}includeNode(e){this.included=!0,this.protoProp?.includePath(U,e)}includePath(e,t){this.included||this.includeNode(t),this.getObjectEntity().includePath(e,t)}includeCallArgumentsWhenCalledAtPath(e,t,n){this.getObjectEntity().includeCallArgumentsWhenCalledAtPath(e,t,n)}render(e,t,{renderedSurroundingElement:n}=nf){if(n!==Kd&&n!==Hd||(e.appendRight(this.start,`(`),e.prependLeft(this.end,`)`)),this.properties.length>0){let n=Bd(this.properties,e,this.start+1,this.end-1),r=null;for(let{node:i,separator:a,start:o,end:s}of n)i.included?(r=a,i.render(e,t)):jd(i,e,o,s);r&&e.remove(r,this.end-1)}}getObjectEntity(){if(this.objectEntity!==null)return this.objectEntity;let e=vh,t=[];for(let n of this.properties){if(n instanceof Ph){t.push({key:V,kind:`init`,property:n});continue}let r;if(n.computed){let e=n.key.getLiteralValueAtPath(H,Ef,this);if(typeof e==`symbol`){t.push({key:vf(e)?e:V,kind:n.kind,property:n});continue}r=String(e)}else if(r=n.key instanceof bg?n.key.name:String(n.key.value),r===`__proto__`&&n.kind===`init`){this.protoProp=n,e=n.value instanceof I_&&n.value.value===null?null:n.value;continue}t.push({key:r,kind:n.kind,property:n})}return this.objectEntity=new hh(t,e)}};Ab.prototype.applyDeoptimizations=zm;var jb=class extends Tg{get method(){return If(this.flags,262144)}set method(e){this.flags=Lf(this.flags,262144,e)}get shorthand(){return If(this.flags,524288)}set shorthand(e){this.flags=Lf(this.flags,524288,e)}declare(e,t,n){return this.value.declare(e,this.getPathInProperty(t),n)}deoptimizeAssignment(e,t){this.value.deoptimizeAssignment?.(this.getPathInProperty(e),t)}hasEffects(e){return this.key.hasEffects(e)||this.value.hasEffects(e)}hasEffectsWhenDestructuring(e,t,n){return this.value.hasEffectsWhenDestructuring?.(e,this.getPathInProperty(t),n)}includeDestructuredIfNecessary(e,t,n){let r=this.getPathInProperty(t),i=this.value.includeDestructuredIfNecessary(e,r,n)||this.included;return(i||=this.key.hasEffects(Ff()))&&(this.key.include(e,!1),this.value.included||(this.value.includeNode(e),this.value.includeDestructuredIfNecessary(e,r,n))),!this.included&&i&&this.includeNode(e),this.included}include(e,t){this.included=!0,this.key.include(e,t),this.value.include(e,t)}includePath(e,t){this.included=!0,this.value.includePath(e,t)}markDeclarationReached(){this.value.markDeclarationReached()}render(e,t){this.shorthand||this.key.render(e,t),this.value.render(e,t,{isShorthandProperty:this.shorthand})}setAssignedValue(e){this.value.setAssignedValue(e)}getPathInProperty(e){return e.at(-1)===V?e:this.computed?[...e,V]:this.key instanceof bg?[...e,this.key.name]:[...e,String(this.key.value)]}};jb.prototype.includeNode=Rm,jb.prototype.applyDeoptimizations=zm;var Mb=class extends J{bind(){this.variable=this.scope.findVariable(`this`)}deoptimizeArgumentsOnInteractionAtPath(e,t,n){this.variable.deoptimizeArgumentsOnInteractionAtPath(e,t,n)}deoptimizePath(e){this.variable.deoptimizePath(e)}hasEffectsOnInteractionAtPath(e,t,n){return e.length===0?t.type!==0:this.variable.hasEffectsOnInteractionAtPath(e,t,n)}include(e){this.included||this.includeNode(e)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.scope.context.includeVariableInModule(this.variable,H,e)}includePath(e,t){this.included?e.length>0&&this.variable.includePath(e,t):(this.included=!0,this.scope.context.includeVariableInModule(this.variable,e,t)),Pb(this.scope,this.variable,e,t)}initialise(){super.initialise(),this.alias=Nb(this.scope,this.start)}render(e){this.alias!==null&&e.overwrite(this.start,this.end,this.alias,{contentOnly:!1,storeName:!0})}};function Nb(e,t){if(!(e.findLexicalBoundary()instanceof kb))return null;let{moduleContext:n}=e.context;return n===`undefined`&&e.context.log(G,{code:`THIS_IS_UNDEFINED`,message:`The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten`,url:cp(`troubleshooting/#error-this-is-undefined`)},t),n}function Pb(e,t,n,r){let i=function(e,t){for(;!(e instanceof qg&&e.thisVariable===t);){if(!(e instanceof Cg))return null;e=e.parent}return e}(e,t);i&&i.functionNode.parent instanceof jb&&i.functionNode.parent.parent instanceof Ab&&i.functionNode.parent.parent.includePath(n,r)}var Fb=class extends _g{constructor(){super(...arguments),this.isNativeElement=!1,this.thisAlias=null}bind(){let e=this.getType();e===0?(this.variable=this.scope.findVariable(this.name),this.variable.addReference(this),this.name===`this`&&(this.thisAlias=Nb(this.scope,this.start))):e===1&&(this.isNativeElement=!0)}include(e){this.included||this.includeNode(e)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.variable!==null&&this.scope.context.includeVariableInModule(this.variable,H,e)}includePath(e,t){this.included?e.length>0&&this.variable?.includePath(e,t):(this.included=!0,this.variable!==null&&this.scope.context.includeVariableInModule(this.variable,e,t)),this.name===`this`&&this.variable&&Pb(this.scope,this.variable,e,t)}render(e,{snippets:{getPropertyAccess:t},useOriginalName:n}){if(this.variable){let r=this.name===`this`?this.thisAlias??this.name:this.variable.getName(t,n);r!==this.name&&e.overwrite(this.start,this.end,r,{contentOnly:!0,storeName:!0})}else this.isNativeElement&&this.scope.context.options.jsx.mode!==`preserve`&&e.update(this.start,this.end,JSON.stringify(this.name))}getType(){switch(this.parent.type){case`JSXOpeningElement`:case`JSXClosingElement`:return+!this.name.startsWith(this.name.charAt(0).toUpperCase());case`JSXMemberExpression`:return this.parent.object===this?0:2;case`JSXAttribute`:case`JSXNamespacedName`:return 2;default:throw Error(`Unexpected parent node type for JSXIdentifier: ${this.parent.type}`)}}},Ib=class extends J{render(e,t,{jsxMode:n}=nf){if(super.render(e,t),[`classic`,`automatic`].includes(n)){let{name:t,value:r}=this,i=t instanceof Fb?t.name:`${t.namespace.name}:${t.name.name}`;if(n!==`automatic`||i!==`key`){let n=Tm(i);i!==n&&e.overwrite(t.start,t.end,n,{contentOnly:!0}),r?e.overwrite(t.end,r.start,`: `,{contentOnly:!0}):e.appendLeft(t.end,`: true`)}r instanceof I_&&typeof r.value==`string`&&e.overwrite(r.start,r.end,JSON.stringify(r.value),{contentOnly:!0})}}};Ib.prototype.includeNode=Lm;var Lb=class extends J{render(e,t){let{mode:n}=this.scope.context.options.jsx;n===`preserve`?super.render(e,t):e.overwrite(this.start,this.end,`)`,{contentOnly:!0})}};Lb.prototype.includeNode=Lm;var Rb=class extends Lb{},zb=class extends Lb{},Bb=class extends J{render(e,t){this.argument.render(e,t);let{mode:n}=this.scope.context.options.jsx;n!==`preserve`&&(e.overwrite(this.start,this.argument.start,``,{contentOnly:!0}),e.overwrite(this.argument.end,this.end,``,{contentOnly:!0}))}},Vb=class extends J{};Vb.prototype.includeNode=Lm;var Hb=class extends J{includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.expression.includePath(U,e)}render(e,t){let{mode:n}=this.scope.context.options.jsx;n!==`preserve`&&(e.remove(this.start,this.expression.start),e.remove(this.expression.end,this.end)),this.expression.render(e,t)}};let Ub=/^[ \t]*\r?\n[ \t\r\n]*|[ \t]*\r?\n[ \t\r\n]*$/g,Wb=/[ \t]*\r?\n[ \t\r\n]*/g;var Gb=class extends J{shouldRender(){return!!this.getRenderedText()}render(e){let{mode:t}=this.scope.context.options.jsx;t!==`preserve`&&e.overwrite(this.start,this.end,JSON.stringify(this.getRenderedText()),{contentOnly:!0})}getRenderedText(){return this.renderedText===void 0&&(this.renderedText=this.value.replace(Ub,``).replace(Wb,` `)),this.renderedText}};function Kb(e){let t=0;for(let n of e)n instanceof Hb&&n.expression instanceof Vb||n instanceof Gb&&!n.shouldRender()||t++;return t}function qb(e,t,n,r,i){let[a,o]=e.split(`.`),s;return n?(s=r.scope.context.getImportedJsxFactoryVariable(o?`default`:a,r.start,n),t&&(r.scope.findGlobal(a).includePath(U,i),s.globalName=a)):s=r.scope.findGlobal(a),r.scope.context.includeVariableInModule(s,U,i),s instanceof hg&&(s.consolidateInitializers(),s.addUsedPlace(r),r.scope.context.requestTreeshakingPass()),s}Gb.prototype.includeNode=Lm;var Jb=class extends J{constructor(){super(...arguments),this.factoryVariable=null,this.factory=null}initialise(){super.initialise();let{importSource:e}=this.jsxMode=this.getRenderingMode();e&&this.scope.context.addImportSource(e)}include(e,t){this.included||this.includeNode(e);for(let n of this.children)n.include(e,t)}includeNode(e){this.included=!0;let{factory:t,importSource:n,mode:r}=this.jsxMode;t&&(this.factory=t,this.factoryVariable=qb(t,r===`preserve`,n,this,e))}getRenderingMode(){let e=this.scope.context.options.jsx,{mode:t,factory:n,importSource:r}=e;return t===`automatic`?{factory:Kb(this.children)>1?`jsxs`:`jsx`,importSource:e.jsxImportSource,mode:t}:{factory:n,importSource:r,mode:t}}renderChildren(e,t,n){let{children:r}=this,i=!1,a=n,o=null;for(let n of r)n instanceof Hb&&n.expression instanceof Vb||n instanceof Gb&&!n.shouldRender()?e.remove(a,n.end):(e.appendLeft(a,`, `),n.render(e,t),o?i=!0:o=n),a=n.end;return{childrenEnd:a,firstChild:o,hasMultipleChildren:i}}};Jb.prototype.applyDeoptimizations=zm;var Yb=class extends Jb{include(e,t){super.include(e,t),this.openingElement.include(e,t),this.closingElement?.include(e,t)}render(e,t){switch(this.jsxMode.mode){case`classic`:this.renderClassicMode(e,t);break;case`automatic`:this.renderAutomaticMode(e,t);break;default:super.render(e,t)}}getRenderingMode(){let{mode:e,factory:t,importSource:n}=this.scope.context.options.jsx;if(e===`automatic`){let e=!1;for(let r of this.openingElement.attributes)if(r instanceof Bb)e=!0;else if(e&&r.name.name===`key`)return{factory:t,importSource:n,mode:`classic`}}return super.getRenderingMode()}renderClassicMode(e,t){let{snippets:{getPropertyAccess:n},useOriginalName:r}=t,{closingElement:i,end:a,factory:o,factoryVariable:s,openingElement:{end:c,selfClosing:l}}=this,[,...u]=o.split(`.`),{firstAttribute:d,hasAttributes:f,hasSpread:p,inObject:m,previousEnd:h}=this.renderAttributes(e,t,[s.getName(n,r),...u].join(`.`),!1);this.wrapAttributes(e,m,f,p,d,`null`,h),this.renderChildren(e,t,c),l?e.appendLeft(a,`)`):i.render(e,t)}renderAutomaticMode(e,t){let{snippets:{getPropertyAccess:n},useOriginalName:r}=t,{closingElement:i,end:a,factoryVariable:o,openingElement:{end:s,selfClosing:c}}=this,{firstAttribute:l,hasAttributes:u,hasSpread:d,inObject:f,keyAttribute:p,previousEnd:m}=this.renderAttributes(e,t,o.getName(n,r),!0),{firstChild:h,hasMultipleChildren:g,childrenEnd:_}=this.renderChildren(e,t,s);h&&(e.prependRight(h.start,`children: `+(g?`[`:``)),f||=(e.prependRight(h.start,`{ `),!0),m=i.start,g&&e.appendLeft(m,`]`));let ee=h?_:m;if(this.wrapAttributes(e,f,u||!!h,d,l||h,`{}`,ee),p){let{value:t}=p;e.appendLeft(ee,`, `),t?e.move(t.start,t.end,ee):e.appendLeft(ee,`true`)}c?e.appendLeft(p?.value?.end||a,`)`):i.render(e,t)}renderAttributes(e,t,n,r){let{jsxMode:{mode:i},openingElement:a}=this,{attributes:o,end:s,start:c,name:{start:l,end:u}}=a;e.update(c,l,`/*#__PURE__*/${n}(`),a.render(e,t,{jsxMode:i});let d=null,f=!1,p=!1,m=u,h=!1,g=null;for(let t of o){if(t instanceof Ib){if(r&&t.name.name===`key`){d=t,e.remove(m,t.value?.start||t.end);continue}e.appendLeft(m,`,`),p||=(e.prependRight(t.start,`{ `),!0),h=!0}else p?(h&&e.appendLeft(m,` `),e.appendLeft(m,`},`),p=!1):e.appendLeft(m,`,`),f=!0;m=t.end,g??=t}return e.remove(o.at(-1)?.end||m,s),{firstAttribute:g,hasAttributes:h,hasSpread:f,inObject:p,keyAttribute:d,previousEnd:m}}wrapAttributes(e,t,n,r,i,a,o){if(t&&e.appendLeft(o,` }`),r){if(n){let{start:t}=i;i instanceof Bb&&e.prependRight(t,`{}, `),e.prependRight(t,`Object.assign(`),e.appendLeft(o,`)`)}}else n||e.appendLeft(o,`, ${a}`)}},Xb=class extends Jb{include(e,t){super.include(e,t),this.openingFragment.include(e,t),this.closingFragment.include(e,t)}render(e,t){switch(this.jsxMode.mode){case`classic`:this.renderClassicMode(e,t);break;case`automatic`:this.renderAutomaticMode(e,t);break;default:super.render(e,t)}}renderClassicMode(e,t){let{snippets:{getPropertyAccess:n},useOriginalName:r}=t,{closingFragment:i,factory:a,factoryVariable:o,openingFragment:s,start:c}=this,[,...l]=a.split(`.`);s.render(e,t),e.prependRight(c,`/*#__PURE__*/${[o.getName(n,r),...l].join(`.`)}(`),e.appendLeft(s.end,`, null`),this.renderChildren(e,t,s.end),i.render(e,t)}renderAutomaticMode(e,t){let{snippets:{getPropertyAccess:n},useOriginalName:r}=t,{closingFragment:i,factoryVariable:a,openingFragment:o,start:s}=this;o.render(e,t),e.prependRight(s,`/*#__PURE__*/${a.getName(n,r)}(`);let{firstChild:c,hasMultipleChildren:l,childrenEnd:u}=this.renderChildren(e,t,o.end);c?(e.prependRight(c.start,`{ children: `+(l?`[`:``)),l&&e.appendLeft(i.start,`]`),e.appendLeft(u,` }`)):e.appendLeft(o.end,`, {}`),i.render(e,t)}},Zb=class extends J{includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.object.includePath([this.property.name],e)}includePath(e,t){this.included||this.includeNode(t),this.object.includePath([this.property.name,...e],t)}},Qb=class extends J{};Qb.prototype.includeNode=Lm;var $b=class extends J{render(e,t,{jsxMode:n=this.scope.context.options.jsx.mode}={}){this.name.render(e,t);for(let r of this.attributes)r.render(e,t,{jsxMode:n})}};$b.prototype.includeNode=Lm;var ex=class extends J{constructor(){super(...arguments),this.fragment=null,this.fragmentVariable=null}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations();let t=this.scope.context.options.jsx;if(t.mode===`automatic`)this.fragment=`Fragment`,this.fragmentVariable=qb(`Fragment`,!1,t.jsxImportSource,this,e);else{let{fragment:n,importSource:r,mode:i}=t;n!=null&&(this.fragment=n,this.fragmentVariable=qb(n,i===`preserve`,r,this,e))}}render(e,t){let{mode:n}=this.scope.context.options.jsx;if(n!==`preserve`){let{snippets:{getPropertyAccess:n},useOriginalName:r}=t,[,...i]=this.fragment.split(`.`),a=[this.fragmentVariable.getName(n,r),...i].join(`.`);e.update(this.start,this.end,a)}}},tx=class extends J{render(e,t){super.render(e,t);let{mode:n}=this.scope.context.options.jsx;n!==`preserve`&&(e.overwrite(this.start,this.expression.start,`...`,{contentOnly:!0}),e.overwrite(this.expression.end,this.end,``,{contentOnly:!0}))}},nx=class extends J{hasEffects(e){let{brokenFlow:t,includedLabels:n}=e;e.ignore.labels.add(this.label.name),e.includedLabels=/* @__PURE__ */ new Set;let r=!1;return this.body.hasEffects(e)?r=!0:(e.ignore.labels.delete(this.label.name),e.includedLabels.has(this.label.name)&&(e.includedLabels.delete(this.label.name),e.brokenFlow=t)),e.includedLabels=/* @__PURE__ */ new Set([...n,...e.includedLabels]),r}include(e,t){this.included||this.includeNode(e);let{brokenFlow:n,includedLabels:r}=e;e.includedLabels=/* @__PURE__ */ new Set,this.body.include(e,t,{asSingleStatement:!0}),(t||e.includedLabels.has(this.label.name))&&(this.label.include(e,t),e.includedLabels.delete(this.label.name),e.brokenFlow=n),e.includedLabels=/* @__PURE__ */ new Set([...r,...e.includedLabels])}includeNode(e){this.included=!0,this.body.includePath(U,e)}render(e,t){this.label.included?this.label.render(e,t):e.remove(this.start,Fd(e.original,Nd(e.original,`:`,this.label.end)+1)),this.body.render(e,t)}};nx.prototype.applyDeoptimizations=zm;var rx=class extends J{constructor(){super(...arguments),this.expressionsToBeDeoptimized=[],this.usedBranch=null}get isBranchResolutionAnalysed(){return If(this.flags,65536)}set isBranchResolutionAnalysed(e){this.flags=Lf(this.flags,65536,e)}get hasDeoptimizedCache(){return If(this.flags,33554432)}set hasDeoptimizedCache(e){this.flags=Lf(this.flags,33554432,e)}deoptimizeArgumentsOnInteractionAtPath(e,t,n){this.left.deoptimizeArgumentsOnInteractionAtPath(e,t,n),this.right.deoptimizeArgumentsOnInteractionAtPath(e,t,n)}deoptimizeCache(){if(this.hasDeoptimizedCache)return;if(this.hasDeoptimizedCache=!0,this.usedBranch){let e=this.usedBranch===this.left?this.right:this.left;this.usedBranch=null,e.deoptimizePath(U),this.included&&e.includePath(U,Pf())}let{scope:{context:e},expressionsToBeDeoptimized:t}=this;this.expressionsToBeDeoptimized=af;for(let e of t)e.deoptimizeCache();e.requestTreeshakingPass()}deoptimizePath(e){let t=this.getUsedBranch();t?t.deoptimizePath(e):(this.left.deoptimizePath(e),this.right.deoptimizePath(e))}getLiteralValueAtPath(e,t,n){if(n===this)return Rf;let r=this.getUsedBranch();if(r)return this.expressionsToBeDeoptimized.push(n),r.getLiteralValueAtPath(e,t,n);if(!this.hasDeoptimizedCache&&!e.length){let r=Qy(this.right.getLiteralValueAtPath(e,t,n));if(typeof r!=`symbol`){if(!r&&this.operator===`&&`)return this.expressionsToBeDeoptimized.push(n),Bf;if(r&&this.operator===`||`)return this.expressionsToBeDeoptimized.push(n),zf}}return Rf}getReturnExpressionWhenCalledAtPath(e,t,n,r){let i=this.getUsedBranch();return i?(this.expressionsToBeDeoptimized.push(r),i.getReturnExpressionWhenCalledAtPath(e,t,n,r)):[new $y([this.left.getReturnExpressionWhenCalledAtPath(e,t,n,r)[0],this.right.getReturnExpressionWhenCalledAtPath(e,t,n,r)[0]]),!1]}hasEffects(e){return!!this.left.hasEffects(e)||this.getUsedBranch()!==this.left&&this.right.hasEffects(e)}hasEffectsOnInteractionAtPath(e,t,n){let r=this.getUsedBranch();return r?r.hasEffectsOnInteractionAtPath(e,t,n):this.left.hasEffectsOnInteractionAtPath(e,t,n)||this.right.hasEffectsOnInteractionAtPath(e,t,n)}include(e,t){this.included=!0;let n=this.getUsedBranch();t||!n||n===this.right&&this.left.shouldBeIncluded(e)?(this.left.include(e,t),this.right.include(e,t)):n.include(e,t)}includePath(e,t){this.included=!0;let n=this.getUsedBranch();!n||n===this.right&&this.left.shouldBeIncluded(t)?(this.left.includePath(e,t),this.right.includePath(e,t)):n.includePath(e,t)}removeAnnotations(e){this.left.removeAnnotations(e)}render(e,t,{isCalleeOfRenderedParent:n,preventASI:r,renderedParentType:i,renderedSurroundingElement:a}=nf){if(this.left.included&&this.right.included)this.left.render(e,t,{preventASI:r,renderedSurroundingElement:a}),this.right.render(e,t);else{let o=Nd(e.original,this.operator,this.left.end);if(this.right.included){let t=Fd(e.original,o+2);e.remove(this.start,t),r&&Vd(e,t,this.right.start),this.left.removeAnnotations(e)}else e.remove(function(e,t,n){for(;;){if(t>=n||!Id.test(e[n-1]))return n;n--}}(e.original,this.left.end,o),this.end);this.getUsedBranch().render(e,t,{isCalleeOfRenderedParent:n,preventASI:r,renderedParentType:i||this.parent.type,renderedSurroundingElement:a||this.parent.type})}}getUsedBranch(){if(!this.isBranchResolutionAnalysed){this.isBranchResolutionAnalysed=!0;let e=this.left.getLiteralValueAtPath(H,Ef,this),t=Qy(e);if(typeof t==`symbol`||this.operator===`??`&&typeof e==`symbol`)return null;this.usedBranch=this.operator===`||`&&t||this.operator===`&&`&&!t||this.operator===`??`&&e!=null?this.left:this.right}return this.usedBranch}};rx.prototype.includeNode=Rm,rx.prototype.applyDeoptimizations=zm;var ix=class extends J{hasEffects(e){this.deoptimized||this.applyDeoptimizations();for(let t of this.arguments)if(t.hasEffects(e))return!0;return!this.annotationPure&&(this.callee.hasEffects(e)||this.callee.hasEffectsOnInteractionAtPath(H,this.interaction,e))}hasEffectsOnInteractionAtPath(e,{type:t}){return e.length>0||t!==0}include(e,t){this.included||this.includeNode(e),t?super.include(e,!0):(this.callee.include(e,!1),this.callee.includeCallArgumentsWhenCalledAtPath(H,this.interaction,e))}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.callee.includePath(U,e)}initialise(){super.initialise(),this.interaction={args:[null,...this.arguments],type:2,withNew:!0},this.annotations&&this.scope.context.options.treeshake.annotations&&(this.annotationPure=this.annotations.some(e=>e.type===`pure`))}render(e,t){this.callee.render(e,t),Gy(e,t,this)}applyDeoptimizations(){this.deoptimized=!0,this.callee.deoptimizeArgumentsOnInteractionAtPath(this.interaction,H,Ef),this.scope.context.requestTreeshakingPass()}},ax=class extends J{initialise(){let{id:e}=this.scope.context.module;return q(sm(xp(im(this.message)),e))}},ox=class extends J{initialise(){let e=this.start,{id:t}=this.scope.context.module,n=sm(xp(im(this.message,e)),t);this.scope.context.error(n,e)}},sx=class extends J{};sx.prototype.includeNode=Lm;var cx=class extends J{constructor(){super(...arguments),this.hasCachedEffect=null,this.hasLoggedEffect=!1}hasCachedEffects(){return!!this.included&&(this.hasCachedEffect===null?this.hasCachedEffect=this.hasEffects(Ff()):this.hasCachedEffect)}hasEffects(e){for(let t of this.body)if(t.hasEffects(e)){if(this.scope.context.options.experimentalLogSideEffects&&!this.hasLoggedEffect){this.hasLoggedEffect=!0;let{code:e,log:n,module:r}=this.scope.context;n($f,Up(e,r.id,Xf(e,t.start,{offsetLine:1})),t.start)}return this.hasCachedEffect=!0}return!1}include(e,t){this.included=!0;for(let n of this.body)(t||n.shouldBeIncluded(e))&&n.include(e,t)}initialise(){if(super.initialise(),this.invalidAnnotations)for(let{start:e,end:t,type:n}of this.invalidAnnotations)this.scope.context.magicString.remove(e,t),n!==`pure`&&n!==`noSideEffects`||this.scope.context.log(G,qp(this.scope.context.code.slice(e,t),this.scope.context.module.id,n),e)}render(e,t){let n=this.start;if(e.original.startsWith(`#!`)&&(n=Math.min(e.original.indexOf(`
779
+ `)+1,this.end),e.remove(0,n)),this.body.length>0){for(;e.original[n]===`/`&&/[*/]/.test(e.original[n+1]);){let t=Rd(e.original.slice(n,this.body[0].start));if(t[0]===-1)break;n+=t[1]}zd(this.body,e,n,this.end,t)}else super.render(e,t)}};cx.prototype.includeNode=Rm,cx.prototype.applyDeoptimizations=zm;var lx=class extends J{hasEffects(e){return!(e.ignore.returnYield&&!this.argument?.hasEffects(e))||(e.brokenFlow=!0,!1)}include(e,t){this.included||this.includeNode(e),this.argument?.include(e,t),e.brokenFlow=!0}includeNode(e){this.included=!0,this.argument?.includePath(U,e)}initialise(){super.initialise(),this.scope.addReturnExpression(this.argument||W)}render(e,t){this.argument&&(this.argument.render(e,t,{preventASI:!0}),this.argument.start===this.start+6&&e.prependLeft(this.start+6,` `))}};lx.prototype.applyDeoptimizations=zm;var ux=class extends J{deoptimizeArgumentsOnInteractionAtPath(e,t,n){this.expressions[this.expressions.length-1].deoptimizeArgumentsOnInteractionAtPath(e,t,n)}deoptimizePath(e){this.expressions[this.expressions.length-1].deoptimizePath(e)}getLiteralValueAtPath(e,t,n){return this.expressions[this.expressions.length-1].getLiteralValueAtPath(e,t,n)}hasEffects(e){for(let t of this.expressions)if(t.hasEffects(e))return!0;return!1}hasEffectsOnInteractionAtPath(e,t,n){return this.expressions[this.expressions.length-1].hasEffectsOnInteractionAtPath(e,t,n)}include(e,t){this.included=!0;let n=this.expressions[this.expressions.length-1];for(let r of this.expressions)(t||r===n&&!(this.parent instanceof Jg)||r.shouldBeIncluded(e))&&r.include(e,t)}includePath(e,t){this.included=!0,this.expressions[this.expressions.length-1].includePath(e,t)}removeAnnotations(e){this.expressions[0].removeAnnotations(e)}render(e,t,{renderedParentType:n,isCalleeOfRenderedParent:r,preventASI:i}=nf){let a=0,o=null,s=this.expressions[this.expressions.length-1];for(let{node:c,separator:l,start:u,end:d}of Bd(this.expressions,e,this.start,this.end))if(c.included){if(a++,o=l,a===1&&i&&Vd(e,u,c.start),a===1){let i=n||this.parent.type;c.render(e,t,{isCalleeOfRenderedParent:r&&c===s,renderedParentType:i,renderedSurroundingElement:i})}else c.render(e,t)}else jd(c,e,u,d);o&&e.remove(o,this.end)}};ux.prototype.includeNode=Rm,ux.prototype.applyDeoptimizations=zm;var dx=class extends J{bind(){this.variable=this.scope.findVariable(`this`)}deoptimizeArgumentsOnInteractionAtPath(e,t,n){this.variable.deoptimizeArgumentsOnInteractionAtPath(e,t,n)}deoptimizePath(e){this.variable.deoptimizePath(e)}include(e){this.included||this.includeNode(e)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.scope.context.includeVariableInModule(this.variable,H,e)}},fx=class extends J{hasEffects(e){if(this.test?.hasEffects(e))return!0;for(let t of this.consequent){if(e.brokenFlow)break;if(t.hasEffects(e))return!0}return!1}include(e,t){this.included=!0,this.test?.include(e,t);for(let n of this.consequent)(t||n.shouldBeIncluded(e))&&n.include(e,t)}render(e,t,n){if(this.test&&(this.test.render(e,t),this.test.start===this.start+4&&e.prependLeft(this.test.start,` `)),this.consequent.length>0){let r=this.test?this.test.end:Nd(e.original,`default`,this.start)+7,i=Nd(e.original,`:`,r)+1;zd(this.consequent,e,i,n.end,t)}}};fx.prototype.needsBoundaries=!0,fx.prototype.includeNode=Rm,fx.prototype.applyDeoptimizations=zm;var px=class extends J{createScope(e){this.parentScope=e,this.scope=new Og(e)}hasEffects(e){if(this.discriminant.hasEffects(e))return!0;let{brokenFlow:t,hasBreak:n,ignore:r}=e,{breaks:i}=r;r.breaks=!0,e.hasBreak=!1;let a=!0;for(let n of this.cases){if(n.hasEffects(e))return!0;a&&=e.brokenFlow&&!e.hasBreak,e.hasBreak=!1,e.brokenFlow=t}return this.defaultCase!==null&&(e.brokenFlow=a),r.breaks=i,e.hasBreak=n,!1}include(e,t){this.included=!0,this.discriminant.include(e,t);let{brokenFlow:n,hasBreak:r}=e;e.hasBreak=!1;let i=!0,a=t||this.defaultCase!==null&&this.defaultCase<this.cases.length-1;for(let r=this.cases.length-1;r>=0;r--){let o=this.cases[r];if(o.included&&(a=!0),!a){let e=Ff();e.ignore.breaks=!0,a=o.hasEffects(e)}a?(o.include(e,t),i&&=e.brokenFlow&&!e.hasBreak,e.hasBreak=!1,e.brokenFlow=n):i=n}a&&this.defaultCase!==null&&(e.brokenFlow=i),e.hasBreak=r}initialise(){super.initialise();for(let e=0;e<this.cases.length;e++)if(this.cases[e].test===null)return void(this.defaultCase=e);this.defaultCase=null}parseNode(e){return this.discriminant=new(this.scope.context.getNodeConstructor(e.discriminant.type))(this,this.parentScope).parseNode(e.discriminant),super.parseNode(e)}render(e,t){this.discriminant.render(e,t),this.cases.length>0&&zd(this.cases,e,this.cases[0].start,this.end-1,t)}};px.prototype.includeNode=Rm,px.prototype.applyDeoptimizations=zm;var mx=class extends Ky{get hasCheckedForWarnings(){return If(this.flags,134217728)}set hasCheckedForWarnings(e){this.flags=Lf(this.flags,134217728,e)}hasEffects(e){this.deoptimized||this.applyDeoptimizations();for(let t of this.quasi.expressions)if(t.hasEffects(e))return!0;return this.tag.hasEffects(e)||this.tag.hasEffectsOnInteractionAtPath(H,this.interaction,e)}include(e,t){this.included||this.includeNode(e),t?super.include(e,!0):(this.quasi.include(e,!1),this.tag.include(e,!1),this.tag.includeCallArgumentsWhenCalledAtPath(H,this.interaction,e))}initialise(){super.initialise(),this.args=[W,...this.quasi.expressions],this.interaction={args:[this.tag instanceof V_&&!this.tag.variable?this.tag.object:null,...this.args],type:2,withNew:!1}}render(e,t){if(this.tag.render(e,t,{isCalleeOfRenderedParent:!0}),this.quasi.render(e,t),!this.hasCheckedForWarnings&&this.tag.type===qd){this.hasCheckedForWarnings=!0;let e=this.tag.name;this.scope.findVariable(e).isNamespace&&this.scope.context.log(G,Rp(e),this.start)}}applyDeoptimizations(){this.deoptimized=!0,this.tag.deoptimizeArgumentsOnInteractionAtPath(this.interaction,H,Ef),this.scope.context.requestTreeshakingPass()}getReturnExpression(e=Ef){return this.returnExpression===null?(this.returnExpression=Hf,this.returnExpression=this.tag.getReturnExpressionWhenCalledAtPath(H,this.interaction,e,this)):this.returnExpression}};mx.prototype.includeNode=Lm;var hx=class extends J{get tail(){return If(this.flags,1048576)}set tail(e){this.flags=Lf(this.flags,1048576,e)}bind(){}hasEffects(){return!1}parseNode(e){return this.value=e.value,super.parseNode(e)}render(){}};hx.prototype.includeNode=Lm;var gx=class extends J{deoptimizeArgumentsOnInteractionAtPath(){}getLiteralValueAtPath(e){return e.length>0||this.quasis.length!==1?Rf:this.quasis[0].value.cooked}getReturnExpressionWhenCalledAtPath(e){return e.length===1?ch(oh,e[0]):Hf}hasEffectsOnInteractionAtPath(e,t,n){return t.type===0?e.length>1:t.type!==2||e.length!==1||sh(oh,e[0],t,n)}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations();for(let t of this.expressions)t.includePath(U,e)}render(e,t){this.scope.context.addIndentExclusionRange([this.start,this.end]),super.render(e,t)}},_x=class extends J{hasEffects(){return!0}include(e,t){this.included||this.includeNode(e),this.argument.include(e,t),e.brokenFlow=!0}includeNode(e){this.included||(this.included=!0,this.argument.includePath(U,e))}render(e,t){this.argument.render(e,t,{preventASI:!0}),this.argument.start===this.start+5&&e.prependLeft(this.start+5,` `)}},vx=class extends J{constructor(){super(...arguments),this.directlyIncluded=!1,this.includedLabelsAfterBlock=null}hasEffects(e){return(this.scope.context.options.treeshake.tryCatchDeoptimization?this.block.body.length>0:this.block.hasEffects(e))||!!this.finalizer?.hasEffects(e)}include(e,t){let n=this.scope.context.options.treeshake?.tryCatchDeoptimization,{brokenFlow:r,includedLabels:i}=e;if(this.directlyIncluded&&n){if(this.includedLabelsAfterBlock)for(let e of this.includedLabelsAfterBlock)i.add(e)}else this.included=!0,this.directlyIncluded=!0,this.block.include(e,n?Fm:t),i.size>0&&(this.includedLabelsAfterBlock=[...i]),e.brokenFlow=r;this.handler!==null&&(this.handler.include(e,t),e.brokenFlow=r),this.finalizer?.include(e,t)}};vx.prototype.includeNode=Rm,vx.prototype.applyDeoptimizations=zm;let yx={"!":e=>!e,"+":e=>+e,"-":e=>-e,delete:()=>Rf,typeof:e=>typeof e,void:()=>{},"~":e=>~e},bx=Symbol(`Unassigned`);var xx=class extends J{constructor(){super(...arguments),this.renderedLiteralValue=bx}get prefix(){return If(this.flags,2097152)}set prefix(e){this.flags=Lf(this.flags,2097152,e)}deoptimizeCache(){this.renderedLiteralValue=Rf}getLiteralValueAtPath(e,t,n){if(e.length>0)return Rf;let r=this.argument.getLiteralValueAtPath(H,t,n);if(typeof r==`symbol`){if(this.operator===`void`)return;if(this.operator===`!`){if(r===Bf)return!0;if(r===zf)return!1}return Rf}return yx[this.operator](r)}hasEffects(e){return this.deoptimized||this.applyDeoptimizations(),!(this.operator===`typeof`&&this.argument instanceof bg)&&(this.argument.hasEffects(e)||this.operator===`delete`&&this.argument.hasEffectsOnInteractionAtPath(H,qf,e))}hasEffectsOnInteractionAtPath(e,{type:t}){return t!==0||e.length>(this.operator===`void`?0:1)}applyDeoptimizations(){this.deoptimized=!0,this.operator===`delete`&&(this.argument.deoptimizePath(H),this.scope.context.requestTreeshakingPass())}getRenderedLiteralValue(e){return this.renderedLiteralValue===bx?this.renderedLiteralValue=e?Rf:By(this.getLiteralValueAtPath(H,Ef,this)):this.renderedLiteralValue}include(e,t,n){this.deoptimized||this.applyDeoptimizations(),this.included=!0;let r=this.argument instanceof bg&&this.argument.variable?.included;(typeof this.getRenderedLiteralValue(t)==`symbol`||this.argument.shouldBeIncluded(e)||r)&&(this.argument.include(e,t),this.renderedLiteralValue=Rf)}render(e,t){if(typeof this.renderedLiteralValue==`symbol`)super.render(e,t);else{let t=this.renderedLiteralValue;Sx.test(e.original[this.start-1])||(t=` ${t}`),e.overwrite(this.start,this.end,t)}}};let Sx=/[\s([=%&*+-/<>^|,?:;]/;xx.prototype.includeNode=Lm;var Cx=class extends J{hasEffects(e){return this.deoptimized||this.applyDeoptimizations(),this.argument.hasEffectsAsAssignmentTarget(e,!0)}hasEffectsOnInteractionAtPath(e,{type:t}){return e.length>1||t!==0}include(e,t){this.included||this.includeNode(e),this.argument.includeAsAssignmentTarget(e,t,!0)}initialise(){super.initialise(),this.argument.setAssignedValue(W)}render(e,t){let{exportNamesByVariable:n,format:r,snippets:{_:i}}=t;if(this.argument.render(e,t),r===`system`){let r=this.argument.variable,a=n.get(r);if(a){if(this.prefix)a.length===1?$d(r,this.start,this.end,e,t):ef(r,this.start,this.end,this.parent.type!==Kd,e,t);else{let n=this.operator[0];(function(e,t,n,r,i,a,o){let{_:s}=a.snippets;i.prependRight(t,`${Qd([e],a,o)},${s}`),r&&(i.prependRight(t,`(`),i.appendLeft(n,`)`))})(r,this.start,this.end,this.parent.type!==Kd,e,t,`${i}${n}${i}1`)}}}}applyDeoptimizations(){this.deoptimized=!0,this.argument.deoptimizePath(H),this.argument instanceof bg&&this.scope.findVariable(this.argument.name).markReassigned(),this.scope.context.requestTreeshakingPass()}};Cx.prototype.includeNode=Lm;var wx=class extends J{hasEffects(e){return!!this.test.hasEffects(e)||ib(e,this.body)}include(e,t){this.included=!0,this.test.include(e,t),ab(e,this.body,t)}};wx.prototype.includeNode=Rm,wx.prototype.applyDeoptimizations=zm;var Tx=class extends J{applyDeoptimizations(){this.deoptimized=!0,this.argument?.deoptimizePath(U)}hasEffects(e){return this.deoptimized||this.applyDeoptimizations(),!(e.ignore.returnYield&&!this.argument?.hasEffects(e))}includeNode(e){this.included=!0,this.deoptimized||this.applyDeoptimizations(),this.argument?.includePath(U,e)}render(e,t){this.argument&&(this.argument.render(e,t,{preventASI:!0}),this.argument.start===this.start+5&&e.prependLeft(this.start+5,` `))}};let Ex=/* @__PURE__ */ `PanicError.ParseError.ArrayExpression.ArrayPattern.ArrowFunctionExpression.AssignmentExpression.AssignmentPattern.AwaitExpression.BinaryExpression.BlockStatement.BreakStatement.CallExpression.CatchClause.ChainExpression.ClassBody.ClassDeclaration.ClassExpression.ConditionalExpression.ContinueStatement.DebuggerStatement.Decorator.ExpressionStatement.DoWhileStatement.EmptyStatement.ExportAllDeclaration.ExportDefaultDeclaration.ExportNamedDeclaration.ExportSpecifier.ExpressionStatement.ForInStatement.ForOfStatement.ForStatement.FunctionDeclaration.FunctionExpression.Identifier.IfStatement.ImportAttribute.ImportDeclaration.ImportDefaultSpecifier.ImportExpression.ImportNamespaceSpecifier.ImportSpecifier.JSXAttribute.JSXClosingElement.JSXClosingFragment.JSXElement.JSXEmptyExpression.JSXExpressionContainer.JSXFragment.JSXIdentifier.JSXMemberExpression.JSXNamespacedName.JSXOpeningElement.JSXOpeningFragment.JSXSpreadAttribute.JSXSpreadChild.JSXText.LabeledStatement.Literal.Literal.Literal.Literal.Literal.Literal.LogicalExpression.MemberExpression.MetaProperty.MethodDefinition.NewExpression.ObjectExpression.ObjectPattern.PrivateIdentifier.Program.Property.PropertyDefinition.RestElement.ReturnStatement.SequenceExpression.SpreadElement.StaticBlock.Super.SwitchCase.SwitchStatement.TaggedTemplateExpression.TemplateElement.TemplateLiteral.ThisExpression.ThrowStatement.TryStatement.UnaryExpression.UpdateExpression.VariableDeclaration.VariableDeclarator.WhileStatement.YieldExpression`.split(`.`),Dx=[ax,ox,Fh,sv,Fy,Iy,Ly,Ry,Uy,Yg,Wy,qy,Jy,Yy,Zy,Mg,dv,eb,tb,nb,rb,Jg,ob,sb,cb,t_,lb,ub,Jg,db,fb,pb,e_,mb,bg,_b,vb,yb,bb,wb,Db,Ob,Ib,Rb,zb,Yb,Vb,Hb,Xb,Fb,Zb,Qb,$b,ex,Bb,tx,Gb,nx,I_,I_,I_,I_,I_,I_,rx,V_,K_,Eg,ix,Ab,lv,sx,cx,jb,Dg,Xg,lx,ux,Ph,kg,dx,fx,px,mx,hx,gx,Mb,_x,vx,xx,Cx,uv,fv,wx,Tx],Ox=[function(e,t,n){e.message=n.convertString(n[t])},function(e,t,n){e.message=n.convertString(n[t])},function(e,t,n){let{scope:r}=e;e.elements=kx(e,r,n[t],n)},function(e,t,n){let{scope:r}=e;e.elements=kx(e,r,n[t],n)},function(e,t,n){let{scope:r}=e,i=n[t];e.async=!(1&~i),e.expression=!(2&~i),e.generator=!(4&~i),e.annotationNoSideEffects=(e.annotations=Mm(n[t+1],n)).some(e=>e.type===`noSideEffects`);let a=e.params=kx(e,r,n[t+2],n);r.addParameterVariables(a.map(e=>e.declare(`parameter`,H,W)),a[a.length-1]instanceof Xg),e.body=$(e,r.bodyScope,n[t+3],n)},function(e,t,n){let{scope:r}=e;e.operator=km[n[t]],e.left=$(e,r,n[t+1],n),e.right=$(e,r,n[t+2],n)},function(e,t,n){let{scope:r}=e;e.left=$(e,r,n[t],n),e.right=$(e,r,n[t+1],n)},function(e,t,n){let{scope:r}=e;e.argument=$(e,r,n[t],n)},function(e,t,n){let{scope:r}=e;e.operator=km[n[t]],e.left=$(e,r,n[t+1],n),e.right=$(e,r,n[t+2],n)},function(e,t,n){let{scope:r}=e;e.body=kx(e,r,n[t],n)},function(e,t,n){let{scope:r}=e,i=n[t];e.label=i===0?null:$(e,r,i,n)},function(e,t,n){let{scope:r}=e;e.optional=!(1&~n[t]),e.annotations=Mm(n[t+1],n),e.callee=$(e,r,n[t+2],n),e.arguments=kx(e,r,n[t+3],n)},function(e,t,n){let{scope:r}=e,i=n[t];(e.param=i===0?null:$(e,r,i,n))?.declare(`parameter`,H,W),e.body=$(e,r.bodyScope,n[t+1],n)},function(e,t,n){let{scope:r}=e;e.expression=$(e,r,n[t],n)},function(e,t,n){let{scope:r}=e,i=n[t];if(i){let t=n[i],a=e.body=Array(t);for(let o=0;o<t;o++){let t=n[i+1+o];a[o]=$(e,n[t]===79||1&n[t+3]?r:r.instanceScope,t,n)}}else e.body=[]},function(e,t,n){let{scope:r}=e;e.decorators=kx(e,r,n[t],n);let i=n[t+1];e.id=i===0?null:$(e,r.parent,i,n);let a=n[t+2];e.superClass=a===0?null:$(e,r,a,n),e.body=$(e,r,n[t+3],n)},function(e,t,n){let{scope:r}=e;e.decorators=kx(e,r,n[t],n);let i=n[t+1];e.id=i===0?null:$(e,r,i,n);let a=n[t+2];e.superClass=a===0?null:$(e,r,a,n),e.body=$(e,r,n[t+3],n)},function(e,t,n){let{scope:r}=e;e.test=$(e,r,n[t],n),e.consequent=$(e,r,n[t+1],n),e.alternate=$(e,r,n[t+2],n)},function(e,t,n){let{scope:r}=e,i=n[t];e.label=i===0?null:$(e,r,i,n)},function(){},function(e,t,n){let{scope:r}=e;e.expression=$(e,r,n[t],n)},function(e,t,n){let{scope:r}=e;e.directive=n.convertString(n[t]),e.expression=$(e,r,n[t+1],n)},function(e,t,n){let{scope:r}=e;e.body=$(e,r,n[t],n),e.test=$(e,r,n[t+1],n)},function(){},function(e,t,n){let{scope:r}=e,i=n[t];e.exported=i===0?null:$(e,r,i,n),e.source=$(e,r,n[t+1],n),e.attributes=kx(e,r,n[t+2],n)},function(e,t,n){let{scope:r}=e;e.declaration=$(e,r,n[t],n)},function(e,t,n){let{scope:r}=e;e.specifiers=kx(e,r,n[t],n);let i=n[t+1];e.source=i===0?null:$(e,r,i,n),e.attributes=kx(e,r,n[t+2],n);let a=n[t+3];e.declaration=a===0?null:$(e,r,a,n)},function(e,t,n){let{scope:r}=e;e.local=$(e,r,n[t],n);let i=n[t+1];e.exported=i===0?e.local:$(e,r,i,n)},function(e,t,n){let{scope:r}=e;e.expression=$(e,r,n[t],n)},function(e,t,n){let{scope:r}=e;e.left=$(e,r,n[t],n),e.right=$(e,r,n[t+1],n),e.body=$(e,r,n[t+2],n)},function(e,t,n){let{scope:r}=e;e.await=!(1&~n[t]),e.left=$(e,r,n[t+1],n),e.right=$(e,r,n[t+2],n),e.body=$(e,r,n[t+3],n)},function(e,t,n){let{scope:r}=e,i=n[t];e.init=i===0?null:$(e,r,i,n);let a=n[t+1];e.test=a===0?null:$(e,r,a,n);let o=n[t+2];e.update=o===0?null:$(e,r,o,n),e.body=$(e,r,n[t+3],n)},function(e,t,n){let{scope:r}=e,i=n[t];e.async=!(1&~i),e.generator=!(2&~i),e.annotationNoSideEffects=(e.annotations=Mm(n[t+1],n)).some(e=>e.type===`noSideEffects`);let a=n[t+2];e.id=a===0?null:$(e,r.parent,a,n);let o=e.params=kx(e,r,n[t+3],n);r.addParameterVariables(o.map(e=>e.declare(`parameter`,H,W)),o[o.length-1]instanceof Xg),e.body=$(e,r.bodyScope,n[t+4],n)},function(e,t,n){let{scope:r}=e,i=n[t];e.async=!(1&~i),e.generator=!(2&~i),e.annotationNoSideEffects=(e.annotations=Mm(n[t+1],n)).some(e=>e.type===`noSideEffects`);let a=n[t+2];e.id=a===0?null:$(e,e.idScope,a,n);let o=e.params=kx(e,r,n[t+3],n);r.addParameterVariables(o.map(e=>e.declare(`parameter`,H,W)),o[o.length-1]instanceof Xg),e.body=$(e,r.bodyScope,n[t+4],n)},function(e,t,n){e.name=n.convertString(n[t])},function(e,t,n){let{scope:r}=e;e.test=$(e,r,n[t],n),e.consequent=$(e,e.consequentScope=new hb(r),n[t+1],n);let i=n[t+2];e.alternate=i===0?null:$(e,e.alternateScope=new hb(r),i,n)},function(e,t,n){let{scope:r}=e;e.key=$(e,r,n[t],n),e.value=$(e,r,n[t+1],n)},function(e,t,n){let{scope:r}=e;e.specifiers=kx(e,r,n[t],n),e.source=$(e,r,n[t+1],n),e.attributes=kx(e,r,n[t+2],n);let i=n[t+3];e.phase=i===0?void 0:km[i]},function(e,t,n){let{scope:r}=e;e.local=$(e,r,n[t],n)},function(e,t,n){let{scope:r}=e;e.source=$(e,r,n[t],n),e.sourceAstNode=Q(n[t],n);let i=n[t+1];e.options=i===0?null:$(e,r,i,n);let a=n[t+2];e.phase=a===0?void 0:km[a]},function(e,t,n){let{scope:r}=e;e.local=$(e,r,n[t],n)},function(e,t,n){let{scope:r}=e,i=n[t];e.local=$(e,r,n[t+1],n),e.imported=i===0?e.local:$(e,r,i,n)},function(e,t,n){let{scope:r}=e;e.name=$(e,r,n[t],n);let i=n[t+1];e.value=i===0?null:$(e,r,i,n)},function(e,t,n){let{scope:r}=e;e.name=$(e,r,n[t],n)},function(){},function(e,t,n){let{scope:r}=e;e.openingElement=$(e,r,n[t],n),e.children=kx(e,r,n[t+1],n);let i=n[t+2];e.closingElement=i===0?null:$(e,r,i,n)},function(){},function(e,t,n){let{scope:r}=e;e.expression=$(e,r,n[t],n)},function(e,t,n){let{scope:r}=e;e.openingFragment=$(e,r,n[t],n),e.children=kx(e,r,n[t+1],n),e.closingFragment=$(e,r,n[t+2],n)},function(e,t,n){e.name=n.convertString(n[t])},function(e,t,n){let{scope:r}=e;e.object=$(e,r,n[t],n),e.property=$(e,r,n[t+1],n)},function(e,t,n){let{scope:r}=e;e.namespace=$(e,r,n[t],n),e.name=$(e,r,n[t+1],n)},function(e,t,n){let{scope:r}=e;e.selfClosing=!(1&~n[t]),e.name=$(e,r,n[t+1],n),e.attributes=kx(e,r,n[t+2],n)},function(e){e.attributes=[],e.selfClosing=!1},function(e,t,n){let{scope:r}=e;e.argument=$(e,r,n[t],n)},function(e,t,n){let{scope:r}=e;e.expression=$(e,r,n[t],n)},function(e,t,n){e.value=n.convertString(n[t]),e.raw=n.convertString(n[t+1])},function(e,t,n){let{scope:r}=e;e.label=$(e,r,n[t],n),e.body=$(e,r,n[t+1],n)},function(e,t,n){let r=e.bigint=n.convertString(n[t]);e.raw=n.convertString(n[t+1]),e.value=BigInt(r)},function(e,t,n){e.raw=(e.value=!(1&~n[t]))?`true`:`false`},function(e){e.value=null},function(e,t,n){let r=n[t];e.raw=r===0?void 0:n.convertString(r),e.value=new DataView(n.buffer).getFloat64(t+1<<2,!0)},function(e,t,n){let r=n.convertString(n[t]),i=n.convertString(n[t+1]);e.raw=`/${i}/${r}`,e.regex={flags:r,pattern:i},e.value=new RegExp(i,r)},function(e,t,n){e.value=n.convertString(n[t]);let r=n[t+1];e.raw=r===0?void 0:n.convertString(r)},function(e,t,n){let{scope:r}=e;e.operator=km[n[t]],e.left=$(e,r,n[t+1],n),e.right=$(e,r,n[t+2],n)},function(e,t,n){let{scope:r}=e,i=n[t];e.computed=!(1&~i),e.optional=!(2&~i),e.object=$(e,r,n[t+1],n),e.property=$(e,r,n[t+2],n)},function(e,t,n){let{scope:r}=e;e.meta=$(e,r,n[t],n),e.property=$(e,r,n[t+1],n)},function(e,t,n){let{scope:r}=e,i=n[t];e.static=!(1&~i),e.computed=!(2&~i),e.decorators=kx(e,r,n[t+1],n),e.key=$(e,r,n[t+2],n),e.value=$(e,r,n[t+3],n),e.kind=km[n[t+4]]},function(e,t,n){let{scope:r}=e;e.annotations=Mm(n[t],n),e.callee=$(e,r,n[t+1],n),e.arguments=kx(e,r,n[t+2],n)},function(e,t,n){let{scope:r}=e;e.properties=kx(e,r,n[t],n)},function(e,t,n){let{scope:r}=e;e.properties=kx(e,r,n[t],n)},function(e,t,n){e.name=n.convertString(n[t])},function(e,t,n){let{scope:r}=e;e.body=kx(e,r,n[t],n),e.invalidAnnotations=Mm(n[t+1],n)},function(e,t,n){let{scope:r}=e,i=n[t];e.method=!(1&~i),e.shorthand=!(2&~i),e.computed=!(4&~i);let a=n[t+1];e.value=$(e,r,n[t+2],n),e.kind=km[n[t+3]],e.key=a===0?e.value:$(e,r,a,n)},function(e,t,n){let{scope:r}=e,i=n[t];e.static=!(1&~i),e.computed=!(2&~i),e.decorators=kx(e,r,n[t+1],n),e.key=$(e,r,n[t+2],n);let a=n[t+3];e.value=a===0?null:$(e,r,a,n)},function(e,t,n){let{scope:r}=e;e.argument=$(e,r,n[t],n)},function(e,t,n){let{scope:r}=e,i=n[t];e.argument=i===0?null:$(e,r,i,n)},function(e,t,n){let{scope:r}=e;e.expressions=kx(e,r,n[t],n)},function(e,t,n){let{scope:r}=e;e.argument=$(e,r,n[t],n)},function(e,t,n){let{scope:r}=e;e.body=kx(e,r,n[t],n)},function(){},function(e,t,n){let{scope:r}=e,i=n[t];e.test=i===0?null:$(e,r,i,n),e.consequent=kx(e,r,n[t+1],n)},function(e,t,n){let{scope:r}=e;e.discriminant=$(e,e.parentScope,n[t],n),e.cases=kx(e,r,n[t+1],n)},function(e,t,n){let{scope:r}=e;e.tag=$(e,r,n[t],n),e.quasi=$(e,r,n[t+1],n)},function(e,t,n){e.tail=!(1&~n[t]);let r=n[t+1];e.value={cooked:r===0?null:n.convertString(r),raw:n.convertString(n[t+2])}},function(e,t,n){let{scope:r}=e;e.quasis=kx(e,r,n[t],n),e.expressions=kx(e,r,n[t+1],n)},function(){},function(e,t,n){let{scope:r}=e;e.argument=$(e,r,n[t],n)},function(e,t,n){let{scope:r}=e;e.block=$(e,r,n[t],n);let i=n[t+1];e.handler=i===0?null:$(e,r,i,n);let a=n[t+2];e.finalizer=a===0?null:$(e,r,a,n)},function(e,t,n){let{scope:r}=e;e.operator=km[n[t]],e.argument=$(e,r,n[t+1],n)},function(e,t,n){let{scope:r}=e;e.prefix=!(1&~n[t]),e.operator=km[n[t+1]],e.argument=$(e,r,n[t+2],n)},function(e,t,n){let{scope:r}=e;e.kind=km[n[t]],e.declarations=kx(e,r,n[t+1],n)},function(e,t,n){let{scope:r}=e;e.id=$(e,r,n[t],n);let i=n[t+1];e.init=i===0?null:$(e,r,i,n)},function(e,t,n){let{scope:r}=e;e.test=$(e,r,n[t],n),e.body=$(e,r,n[t+1],n)},function(e,t,n){let{scope:r}=e;e.delegate=!(1&~n[t]);let i=n[t+1];e.argument=i===0?null:$(e,r,i,n)}];function $(e,t,n,r){let i=r[n],a=Dx[i];if(!a)throw console.trace(),/* @__PURE__ */ Error(`Unknown node type: ${i}`);let o=new a(e,t);return o.type=Ex[i],o.start=r[n+1],o.end=r[n+2],Ox[i](o,n+3,r),o.initialise(),o}function kx(e,t,n,r){if(n===0)return af;let i=r[n++],a=Array(i);for(let o=0;o<i;o++){let i=r[n++];a[o]=i?$(e,t,i,r):null}return a}let Ax={ArrayExpression:Fh,ArrayPattern:sv,ArrowFunctionExpression:Fy,AssignmentExpression:Iy,AssignmentPattern:Ly,AwaitExpression:Ry,BinaryExpression:Uy,BlockStatement:Yg,BreakStatement:Wy,CallExpression:qy,CatchClause:Jy,ChainExpression:Yy,ClassBody:Zy,ClassDeclaration:Mg,ClassExpression:dv,ConditionalExpression:eb,ContinueStatement:tb,DebuggerStatement:nb,Decorator:rb,DoWhileStatement:ob,EmptyStatement:sb,ExportAllDeclaration:cb,ExportDefaultDeclaration:t_,ExportNamedDeclaration:lb,ExportSpecifier:ub,ExpressionStatement:Jg,ForInStatement:db,ForOfStatement:fb,ForStatement:pb,FunctionDeclaration:e_,FunctionExpression:mb,Identifier:bg,IfStatement:_b,ImportAttribute:vb,ImportDeclaration:yb,ImportDefaultSpecifier:bb,ImportExpression:wb,ImportNamespaceSpecifier:Db,ImportSpecifier:Ob,JSXAttribute:Ib,JSXClosingElement:Rb,JSXClosingFragment:zb,JSXElement:Yb,JSXEmptyExpression:Vb,JSXExpressionContainer:Hb,JSXFragment:Xb,JSXIdentifier:Fb,JSXMemberExpression:Zb,JSXNamespacedName:Qb,JSXOpeningElement:$b,JSXOpeningFragment:ex,JSXSpreadAttribute:Bb,JSXSpreadChild:tx,JSXText:Gb,LabeledStatement:nx,Literal:I_,LogicalExpression:rx,MemberExpression:V_,MetaProperty:K_,MethodDefinition:Eg,NewExpression:ix,ObjectExpression:Ab,ObjectPattern:lv,PanicError:ax,ParseError:ox,PrivateIdentifier:sx,Program:cx,Property:jb,PropertyDefinition:Dg,RestElement:Xg,ReturnStatement:lx,SequenceExpression:ux,SpreadElement:Ph,StaticBlock:kg,Super:dx,SwitchCase:fx,SwitchStatement:px,TaggedTemplateExpression:mx,TemplateElement:hx,TemplateLiteral:gx,ThisExpression:Mb,ThrowStatement:_x,TryStatement:vx,UnaryExpression:xx,UnknownNode:class extends J{hasEffects(){return!0}include(e){super.include(e,!0)}},UpdateExpression:Cx,VariableDeclaration:uv,VariableDeclarator:fv,WhileStatement:wx,YieldExpression:Tx};var jx=class extends hm{constructor(e){super(Lv),this.module=e}includePath(e,t){super.includePath(e,t),this.module.needsExportShim=!0}},Mx;(function(e){e[e.LOAD_AND_PARSE=0]=`LOAD_AND_PARSE`,e[e.ANALYSE=1]=`ANALYSE`,e[e.GENERATE=2]=`GENERATE`})(Mx||={});let Nx=/* @__PURE__ */ new WeakMap;function Px(e,t){if(e){let t=Nx.get(e);t&&function(e){e.encodedMappings===void 0&&e.decodedMappings&&(e.encodedMappings=Bu(e.decodedMappings)),e.decodedMappings=void 0}(t)}if(t)for(let e of t)e.missing||Px(e)}function Fx(e){if(!e)return null;if(typeof e==`string`&&(e=JSON.parse(e)),Nx.has(e))return e;if(`sections`in e&&(e=function({file:e,sections:t}){let n=[],r=[],i=[],a=[],o=/* @__PURE__ */ new Map;for(let{map:e,offset:s}of t){let t=Fx(e),{sourceRoot:c}=t,l=c?c.endsWith(`/`)?c:`${c}/`:``,u=t.sources.map((e,n)=>{let r=e==null||hd(e)?e:l+e,s=t.sourcesContent?.[n]??null,c=o.get(r);c||o.set(r,c=[]);let u=c.find(e=>s==null||a[e]==null||a[e]===s);return u===void 0?(u=i.push(r)-1,a.push(s),c.push(u)):a[u]??=s,u}),d=r.length;for(let e of t.names??[])r.push(e);for(let[e,r]of t.mappings.entries()){let t=s.line+e;for(;n.length<=t;)n.push([]);let i=e===0?s.column:0;for(let e of r){let r=e.slice();r[0]+=i,r.length!==1&&(r[1]=u[r[1]],r.length===5&&(r[4]+=d)),n[t].push(r)}}}return{file:e,mappings:n,names:r,sources:i,sourcesContent:a,version:3}}(e)),!e.mappings)return{mappings:[],names:[],sources:[],version:3};let t=e.mappings,n=Array.isArray(t),r={decodedMappings:n?t:void 0,encodedMappings:n?void 0:t},i={...e,get mappings(){return r.decodedMappings||(r.decodedMappings=r.encodedMappings?function(e){let{length:t}=e,n=new Lu(e),r=[],i=0,a=0,o=0,s=0,c=0;do{let e=n.indexOf(`;`),t=[],l=!0,u=0;for(i=0;n.pos<e;){let r;i+=ju(Au(n)),i<u&&(l=!1),u=i,Pu(n,e)?(a+=ju(Au(n)),o+=ju(Au(n)),s+=ju(Au(n)),Pu(n,e)?(c+=ju(Au(n)),r=[i,a,o,s,c]):r=[i,a,o,s]):r=[i],t.push(r),n.pos++}l||Ru(t),r.push(t),n.pos=e+1}while(n.pos<=t);return r}(r.encodedMappings):[],r.encodedMappings=void 0),r.decodedMappings}};return Nx.set(i,r),i}function Ix(e){return e.id}let Lx=(e,{allowReturnOutsideFunction:t=!1,jsx:n=!1}={})=>function(e){let t=Q(0,e);switch(t.type){case`PanicError`:return q(xp(im(t.message)));case`ParseError`:return q(xp(im(t.message,t.start)));default:return t}}(Py(jy(e,t,n))),Rx=/* @__PURE__ */ new Set([`assert`,`with`]);function zx(e){let{scope:{context:t},options:n,start:r}=e;if(!(n instanceof Ab))return n&&t.module.log(G,Zp(t.module.id),r),rf;let i=n.properties.find(e=>Rx.has(Bx(e)))?.value;if(!i)return rf;if(!(i instanceof Ab))return t.module.log(G,(a=t.module.id,{code:Dp,message:`Rollup could not statically analyze the options argument of a dynamic import in "${K(a)}". Dynamic import options need to be an object with a nested attributes object.`}),r),rf;var a;let o=i.properties.map(e=>{let n=Bx(e);return typeof n==`string`&&typeof e.value.value==`string`?[n,e.value.value]:(t.module.log(G,Zp(t.module.id),e.start),null)}).filter(e=>!!e);return o.length>0?Object.fromEntries(o):rf}let Bx=e=>{let t=e.key;return t&&!e.computed&&(t.name||t.value)};function Vx(e,t){let n=Object.keys(e);return n.length!==Object.keys(t).length||n.some(n=>e[n]!==t[n])}var Hx=`performance`in(typeof globalThis>`u`?typeof window>`u`?{}:window:globalThis)?performance:{now:()=>0},Ux={memoryUsage:()=>({heapUsed:0})};let Wx=/* @__PURE__ */ new Map;function Gx(e,t){switch(t){case 1:return`# ${e}`;case 2:return`## ${e}`;case 3:return e;default:return`- ${e}`}}function Kx(e,t=3){e=Gx(e,t);let n=Ux.memoryUsage().heapUsed,r=Hx.now(),i=Wx.get(e);i===void 0?Wx.set(e,{memory:0,startMemory:n,startTime:r,time:0,totalMemory:0}):(i.startMemory=n,i.startTime=r)}function qx(e,t=3){e=Gx(e,t);let n=Wx.get(e);if(n!==void 0){let e=Ux.memoryUsage().heapUsed;n.memory+=e-n.startMemory,n.time+=Hx.now()-n.startTime,n.totalMemory=Math.max(n.totalMemory,e)}}function Jx(){let e={};for(let[t,{memory:n,time:r,totalMemory:i}]of Wx)e[t]=[r,n,i];return e}let Yx=Om,Xx=Om,Zx=[`augmentChunkHash`,`buildEnd`,`buildStart`,`generateBundle`,`load`,`moduleParsed`,`options`,`outputOptions`,`renderChunk`,`renderDynamicImport`,`renderStart`,`resolveDynamicImport`,`resolveFileUrl`,`resolveId`,`resolveImportMeta`,`shouldTransformCachedModule`,`transform`,`writeBundle`];function Qx(e,t){if(e._hasTimer)return e;e._hasTimer=!0;for(let n of Zx)if(n in e){let r=`plugin ${t}`;e.name&&(r+=` (${e.name})`),r+=` - ${n}`;let i=function(...e){Yx(r,4);let t=a.apply(this,e);return Xx(r,4),t},a;typeof e[n].handler==`function`?(a=e[n].handler,e[n].handler=i):(a=e[n],e[n]=i)}return e}let $x={identifier:null,localName:Lv};function eS(e,t,n,r,i=/* @__PURE__ */ new Map,a,o,s){let c=i.get(t);if(c){if(c.has(e))return r?[null]:q((l=t,{code:`CIRCULAR_REEXPORT`,exporter:u=e.id,message:`"${l}" cannot be exported from "${K(u)}" as it is a reexport that references itself.`}));c.add(e)}else i.set(t,/* @__PURE__ */ new Set([e]));var l,u;return e.getVariableForExportName(t,{exportOrReexportModules:s,importChain:a,importerForSideEffects:n,isExportAllSearch:r,searchedNamesAndModules:i,sideEffectModules:o})}function tS(e,t){let n=sf(t.sideEffectDependenciesByVariable,e,cf),r=e,i=/* @__PURE__ */ new Set([r]);for(;;){let e=r.module;if(r=r instanceof F_?r.getDirectOriginalVariable():r instanceof _v?r.syntheticNamespace:null,!r||i.has(r))break;i.add(r),n.add(e);let t=e.sideEffectDependenciesByVariable.get(r);if(t)for(let e of t)n.add(e)}return n}var nS=class e{constructor(e,t,n,r,i,a,o,s){this.graph=e,this.id=t,this.options=n,this.alternativeReexportModules=/* @__PURE__ */ new Map,this.chunkFileNames=/* @__PURE__ */ new Set,this.chunkNames=[],this.cycles=/* @__PURE__ */ new Set,this.dependencies=/* @__PURE__ */ new Set,this.dynamicDependencies=/* @__PURE__ */ new Set,this.dynamicImporters=[],this.dynamicImports=[],this.execIndex=1/0,this.hasTreeShakingPassStarted=!1,this.implicitlyLoadedAfter=/* @__PURE__ */ new Set,this.implicitlyLoadedBefore=/* @__PURE__ */ new Set,this.importDescriptions=/* @__PURE__ */ new Map,this.importMetas=[],this.importedFromNotTreeshaken=!1,this.importers=[],this.includedDynamicImporters=[],this.includedTopLevelAwaitingDynamicImporters=/* @__PURE__ */ new Set,this.includedImports=/* @__PURE__ */ new Set,this.isExecuted=!1,this.isUserDefinedEntryPoint=!1,this.needsExportShim=!1,this.sideEffectDependenciesByVariable=/* @__PURE__ */ new Map,this.sourcePhaseSources=/* @__PURE__ */ new Set,this.sourcesWithAttributes=/* @__PURE__ */ new Map,this.allExportsIncluded=!1,this.ast=null,this.exportAllModules=[],this.exportAllSources=/* @__PURE__ */ new Set,this.exportDescriptions=/* @__PURE__ */ new Map,this.exportedVariablesByName=null,this.exportNamesByVariable=null,this.exportShimVariable=new jx(this),this.indentExclusionRanges=[],this.namespaceReexportsByName=/* @__PURE__ */ new Map,this.reexportDescriptions=/* @__PURE__ */ new Map,this.relevantDependencies=null,this.syntheticExports=/* @__PURE__ */ new Map,this.syntheticNamespace=null,this.transformDependencies=[],this.excludeFromSourcemap=/\0/.test(t),this.context=n.moduleContext(t),this.preserveSignature=this.options.preserveEntrySignatures;let c=this,{dynamicImports:l,dynamicImporters:u,exportAllSources:d,exportDescriptions:f,implicitlyLoadedAfter:p,implicitlyLoadedBefore:m,importers:h,reexportDescriptions:g,sourcesWithAttributes:_}=this;this.info={ast:null,attributes:s,code:null,get dynamicallyImportedIdResolutions(){return l.map(({resolution:e})=>e).filter(e=>e!==null)},get dynamicallyImportedIds(){return l.map(({resolution:e})=>e?.id).filter(e=>e!=null)},get dynamicImporters(){return u.sort()},get exportedBindings(){let e={".":[...f.keys()]};for(let[t,{source:n}]of g)(e[n]??=[]).push(t);for(let t of d)(e[t]??=[]).push(`*`);return e},get exports(){return[...f.keys(),...g.keys(),...[...d].map(()=>`*`)]},get hasDefaultExport(){return c.ast?c.exportDescriptions.has(`default`)||g.has(`default`):null},id:t,get implicitlyLoadedAfterOneOf(){return Array.from(p,Ix).sort()},get implicitlyLoadedBefore(){return Array.from(m,Ix).sort()},get importedIdResolutions(){return Array.from(_.keys(),e=>c.resolvedIds[e]).filter(Boolean)},get importedIds(){return Array.from(_.keys(),e=>c.resolvedIds[e]?.id).filter(Boolean)},get importers(){return h.sort()},isEntry:r,isExternal:!1,get isIncluded(){return e.phase===Mx.GENERATE?c.isIncluded():null},meta:{...o},moduleSideEffects:i,safeVariableNames:null,syntheticNamedExports:a}}basename(){let e=vd(this.id),t=bd(this.id);return Sm(t?e.slice(0,-t.length):e)}bindReferences(){this.ast.bind()}cacheInfoGetters(){vm(this.info,[`dynamicallyImportedIdResolutions`,`dynamicallyImportedIds`,`dynamicImporters`,`exportedBindings`,`exports`,`hasDefaultExport`,`implicitlyLoadedAfterOneOf`,`implicitlyLoadedBefore`,`importedIdResolutions`,`importedIds`,`importers`])}error(e,t){return t!==void 0&&this.addLocationToLogProps(e,t),q(e)}estimateSize(){let e=0;for(let t of this.ast.body)t.included&&(e+=t.end-t.start);return e}getDependenciesToBeIncluded(){if(this.relevantDependencies)return this.relevantDependencies;this.relevantDependencies=/* @__PURE__ */ new Set;let e=/* @__PURE__ */ new Set,t=/* @__PURE__ */ new Set,n=new Set(this.includedImports);if(this.info.isEntry||this.includedDynamicImporters.length>0||this.namespace.included||this.implicitlyLoadedAfter.size>0)for(let e of this.getExportedVariablesByName().values())e.included&&n.add(e);for(let r of n){let n=this.sideEffectDependenciesByVariable.get(r);if(n)for(let e of n)t.add(e);r instanceof _v?r=r.getBaseVariable():r instanceof F_&&(r=r.getOriginalVariable()),e.add(r.module)}if(this.options.treeshake&&this.info.moduleSideEffects!==`no-treeshake`)this.addRelevantSideEffectDependencies(this.relevantDependencies,e,t);else for(let e of this.dependencies)this.relevantDependencies.add(e);for(let t of e)this.relevantDependencies.add(t);return this.relevantDependencies}getExportedVariablesByName(){if(this.exportedVariablesByName)return this.exportedVariablesByName;let e=this.exportedVariablesByName=/* @__PURE__ */ new Map;for(let t of this.exportDescriptions.keys())if(t!==this.info.syntheticNamedExports){let[n]=this.getVariableForExportName(t);if(!n)return q($p(Dd(t),this.id));e.set(t,n)}for(let t of this.reexportDescriptions.keys()){let[n]=this.getVariableForExportName(t);n&&e.set(t,n)}for(let t of this.exportAllModules)if(t instanceof Em)e.set(kd(t.id),t.getVariableForExportName(`*`,{importChain:[this.id]})[0]);else for(let n of t.getExportedVariablesByName().keys())if(n!=="default"&&!e.has(n)){let[t]=this.getVariableForExportName(n);t&&e.set(n,t)}return this.exportedVariablesByName=new Map([...e].sort(aS))}getExportNamesByVariable(){if(this.exportNamesByVariable)return this.exportNamesByVariable;let e=/* @__PURE__ */ new Map;for(let[t,n]of this.getExportedVariablesByName().entries()){let r=n instanceof F_?n.getOriginalVariable():n;if(!n||!(n.included||n instanceof _m))continue;let i=e.get(r);i?i.push(t):e.set(r,[t])}return this.exportNamesByVariable=e}getRenderedExports(){let e=[],t=[];for(let n of this.exportDescriptions.keys())(this.getExportedVariablesByName().get(n)?.included?e:t).push(n);return{removedExports:t,renderedExports:e}}getSyntheticNamespace(){return this.syntheticNamespace===null&&(this.syntheticNamespace=void 0,[this.syntheticNamespace]=this.getVariableForExportName(typeof this.info.syntheticNamedExports==`string`?this.info.syntheticNamedExports:`default`,{onlyExplicit:!0})),this.syntheticNamespace?this.syntheticNamespace:q((e=this.id,t=this.info.syntheticNamedExports,{code:`SYNTHETIC_NAMED_EXPORTS_NEED_NAMESPACE_EXPORT`,exporter:e,message:`Module "${K(e)}" that is marked with \`syntheticNamedExports: ${JSON.stringify(t)}\` needs ${typeof t==`string`&&t!=="default"?`an explicit export named "${t}"`:`a default export`} that does not reexport an unresolved named export of the same module.`}));var e,t}getVariableForExportName(e,{importerForSideEffects:t,importChain:n=[],isExportAllSearch:r,onlyExplicit:i,searchedNamesAndModules:a,sideEffectModules:o,exportOrReexportModules:s}=rf){if(Od(e))return e.length===1?[this.namespace]:this.graph.modulesById.get(Ad(e)).getVariableForExportName(`*`,{importChain:[...n,this.id]});let c=this.reexportDescriptions.get(e);if(c){let[e,r]=eS(c.module,c.localName,t,!1,a,[...n,this.id],o,s);return e?(t&&(rS(e,t,this),this.info.moduleSideEffects&&sf(t.sideEffectDependenciesByVariable,e,cf).add(this)),this.info.moduleSideEffects&&o?.add(this),s?.add(this),[e]):this.error(em(Dd(c.localName),this.id,c.module.id,!!r?.missingButExportExists),c.start)}let l=this.exportDescriptions.get(e);if(l){if(l===$x)return[this.exportShimVariable];let e=l.localName,n=this.traceVariable(e,{exportOrReexportModules:s,importerForSideEffects:t,searchedNamesAndModules:a,sideEffectModules:o});return n?(t&&(rS(n,t,this),sf(t.sideEffectDependenciesByVariable,n,cf).add(this)),o?.add(this),s?.add(this),[n]):[null,{missingButExportExists:!0}]}if(i)return[null];if(e!=="default"){let r=this.namespaceReexportsByName.get(e)??this.getVariableFromNamespaceReexports(e,t,a,[...n,this.id]);if(this.namespaceReexportsByName.set(e,r),r[0]){let[e,n]=r;if(t){let{exportOrReexportModules:r,sideEffectModules:i}=n;for(let n of r)t.alternativeReexportModules.has(e)||rS(e,t,n);for(let n of i)sf(t.sideEffectDependenciesByVariable,e,cf).add(n)}return r}}return this.info.syntheticNamedExports?[sf(this.syntheticExports,e,()=>new _v(this.astContext,Dd(e),this.getSyntheticNamespace()))]:!r&&this.options.shimMissingExports?(this.shimMissingExport(e),[this.exportShimVariable]):[null]}hasEffects(){return this.info.moduleSideEffects===`no-treeshake`||this.ast.hasCachedEffects()}hasTopLevelAwait(){return this.astContext.usesTopLevelAwait}include(){let e=Pf();this.ast.shouldBeIncluded(e)&&this.ast.include(e,!1)}includeAllExports(){if(this.allExportsIncluded)return;this.allExportsIncluded=!0,this.includeModuleInExecution();let e=Pf();for(let t of this.getExportedVariablesByName().values())this.includeVariable(t,U,e),t.deoptimizePath(U),t instanceof _m&&(t.module.reexported=!0)}includeAllInBundle(){this.ast.include(Pf(),!0),this.includeAllExports()}includeModuleInExecution(){this.isExecuted||(Dm(this),this.graph.needsTreeshakingPass=!0)}isIncluded(){return this.ast&&(this.ast.included||this.namespace.included||this.importedFromNotTreeshaken||this.exportShimVariable.included)}linkImports(){this.addModulesToImportDescriptions(this.importDescriptions),this.addModulesToImportDescriptions(this.reexportDescriptions);let e=[];for(let t of this.exportAllSources){let n=this.graph.modulesById.get(this.resolvedIds[t].id);n instanceof Em?e.push(n):this.exportAllModules.push(n)}this.exportAllModules.push(...e)}log(e,t,n){this.addLocationToLogProps(t,n),this.options.onLog(e,t)}render(e){this.indentExclusionRanges=[];let t=this.magicString.clone();this.ast.render(t,e),t.trim();let{usesTopLevelAwait:n}=this.astContext;return n&&e.format!==`es`&&e.format!==`system`?q((r=this.id,i=e.format,{code:`INVALID_TLA_FORMAT`,id:r,message:`Module format "${i}" does not support top-level await. Use the "es" or "system" output formats rather.`})):{indentExclusionRanges:this.indentExclusionRanges,source:t,usesTopLevelAwait:n};var r,i}async setSource({ast:e,code:t,customTransformCache:n,originalCode:r,originalSourcemap:i,resolvedIds:a,sourcemapChain:o,transformDependencies:s,transformFiles:c,safeVariableNames:l,...u}){if(Yx(`generate ast`,3),t.startsWith(`#!`)){let e=t.indexOf(`
780
+ `);this.shebang=t.slice(2,e)}this.info.code=t,this.info.safeVariableNames=l,this.originalCode=r,this.originalSourcemap=Fx(i),this.sourcemapChain=o.map(e=>e.missing?e:Fx(e)),Px(this.originalSourcemap,this.sourcemapChain),c&&(this.transformFiles=c),this.transformDependencies=s,this.customTransformCache=n,this.updateOptions(u),this.resolvedIds=a??Object.create(null);let d=this.id;this.magicString=new od(t,{filename:this.excludeFromSourcemap?null:d}),this.astContext={addDynamicImport:this.addDynamicImport.bind(this),addExport:this.addExport.bind(this),addImport:this.addImport.bind(this),addImportMeta:this.addImportMeta.bind(this),addImportSource:this.addImportSource.bind(this),addIndentExclusionRange:e=>this.indentExclusionRanges.push(e),code:t,deoptimizationTracker:this.graph.deoptimizationTracker,error:this.error.bind(this),fileName:d,getImportedJsxFactoryVariable:this.getImportedJsxFactoryVariable.bind(this),getModuleExecIndex:()=>this.execIndex,getModuleName:this.basename.bind(this),getNodeConstructor:e=>Ax[e]||Ax.UnknownNode,importDescriptions:this.importDescriptions,includeDynamicImport:this.includeDynamicImport.bind(this),includeVariableInModule:this.includeVariableInModule.bind(this),log:this.log.bind(this),magicString:this.magicString,manualPureFunctions:this.graph.pureFunctions,module:this,moduleContext:this.context,newlyIncludedVariableInits:this.graph.newlyIncludedVariableInits,options:this.options,requestTreeshakingPass:()=>this.graph.needsTreeshakingPass=!0,traceExport:e=>this.getVariableForExportName(Ed(e)),traceVariable:this.traceVariable.bind(this),usesTopLevelAwait:!1},this.scope=new kb(this.graph.scope,this.astContext,this.importDescriptions),this.namespace=new hv(this.astContext);let f={context:this.astContext,type:`Module`};if(e)this.ast=new Ax[e.type](f,this.scope).parseNode(e),this.info.ast=e;else{Xx(`generate ast`,3);let e=await async function(e,t,n){return jy(e,t,n)}(t,!1,!1!==this.options.jsx);Yx(`generate ast`,3),this.ast=(p=e,m=f,h=this.scope,$(m,h,0,Py(p))),Object.defineProperty(this.info,"ast",{get:()=>{if(this.graph.astLru.has(d))return this.graph.astLru.get(d);{let e=this.tryParse();return!1===this.options.cache?(this.graph.astLru.set(d,e),e):(Object.defineProperty(this.info,"ast",{value:e}),e)}}})}var p,m,h;Xx(`generate ast`,3)}toJSON(){return{ast:this.info.ast,attributes:this.info.attributes,code:this.info.code,customTransformCache:this.customTransformCache,dependencies:Array.from(this.dependencies,Ix),id:this.id,meta:this.info.meta,moduleSideEffects:this.info.moduleSideEffects,originalCode:this.originalCode,originalSourcemap:this.originalSourcemap,resolvedIds:this.resolvedIds,safeVariableNames:this.info.safeVariableNames,sourcemapChain:this.sourcemapChain,syntheticNamedExports:this.info.syntheticNamedExports,transformDependencies:this.transformDependencies,transformFiles:this.transformFiles}}traceVariable(t,{importerForSideEffects:n,isExportAllSearch:r,searchedNamesAndModules:i,sideEffectModules:a,exportOrReexportModules:o}=rf){let s=this.scope.variables.get(t);if(s)return s;let c=this.importDescriptions.get(t);if(c){let t=c.module;if(t instanceof e&&c.name===`*`)return t.namespace;let[s,l]=eS(t,c.name,n||this,r,i,[this.id],a,o);return s||this.error(em(Dd(c.name),this.id,t.id,!!l?.missingButExportExists),c.start)}return null}updateOptions({meta:e,moduleSideEffects:t,syntheticNamedExports:n},{replaceExistingMeta:r=!1}=rf){if(t!=null&&(this.info.moduleSideEffects=t),n!=null&&(this.info.syntheticNamedExports=n),e!=null){if(r)for(let e of Object.keys(this.info.meta))delete this.info.meta[e];Object.assign(this.info.meta,e)}}addDynamicImport(e){let t=e.sourceAstNode;t.type===`TemplateLiteral`?t.quasis.length===1&&typeof t.quasis[0].value.cooked==`string`&&(t=t.quasis[0].value.cooked):t.type===`Literal`&&typeof t.value==`string`&&(t=t.value),this.dynamicImports.push({argument:t,node:e,resolution:null})}assertUniqueExportName(e,t){(this.exportDescriptions.has(e)||this.reexportDescriptions.has(e))&&this.error(function(e){return{code:`DUPLICATE_EXPORT`,message:`Duplicate export "${e}"`}}(Dd(e)),t)}addExport(e){if(e instanceof t_)this.assertUniqueExportName(`default`,e.start),this.exportDescriptions.set(`default`,{identifier:e.variable.getAssignedVariableName(),localName:`default`});else if(e instanceof cb){let t=e.source.value;if(this.addSource(t,e),e.exported){let n=Ed(e.exported instanceof I_?e.exported.value:e.exported.name);this.assertUniqueExportName(n,e.exported.start),this.reexportDescriptions.set(n,{localName:`*`,module:null,source:t,start:e.start})}else this.exportAllSources.add(t)}else if(e.source instanceof I_){let t=e.source.value;this.addSource(t,e);for(let{exported:n,local:r,start:i}of e.specifiers){let e=Ed(n instanceof I_?n.value:n.name);this.assertUniqueExportName(e,i),this.reexportDescriptions.set(e,{localName:Ed(r instanceof I_?r.value:r.name),module:null,source:t,start:i})}}else if(e.declaration){let t=e.declaration;if(t instanceof uv)for(let e of t.declarations)for(let t of my(e.id))this.assertUniqueExportName(t,e.id.start),this.exportDescriptions.set(t,{identifier:null,localName:t});else{let e=t.id.name;this.assertUniqueExportName(e,t.id.start),this.exportDescriptions.set(e,{identifier:null,localName:e})}}else for(let{local:t,exported:n}of e.specifiers){let e=t.name,r=Ed(n instanceof bg?n.name:n.value);this.assertUniqueExportName(r,n.start),this.exportDescriptions.set(r,{identifier:null,localName:e})}}addImport(e){let t=e.source.value;this.addSource(t,e);for(let n of e.specifiers){let r=n.local.name;(this.scope.variables.has(r)||this.importDescriptions.has(r))&&this.error(am(r),n.local.start);let i=e.phase===`source`?gm:n instanceof bb?`default`:n instanceof Db?`*`:n.imported instanceof bg?n.imported.name:Ed(n.imported.value);this.importDescriptions.set(r,{module:null,name:i,phase:e.phase===`source`?`source`:`instance`,source:t,start:n.start})}}addImportSource(e){e&&!this.sourcesWithAttributes.has(e)&&this.sourcesWithAttributes.set(e,rf)}addImportMeta(e){this.importMetas.push(e)}addLocationToLogProps(e,t){e.id=this.id,e.pos=t;let n=this.info.code,r=Xf(n,t,{offsetLine:1});if(r){let{column:i,line:a}=r;try{({column:i,line:a}=function(e,t){let n=e.filter(e=>!e.missing);e:for(;n.length>0;){let e=n.pop().mappings[t.line-1];if(e){let n=e.filter(e=>e.length>1),r=n[n.length-1],i=n[0];for(let e of n){if(e[0]>=t.column||e===r){e=e[0]>t.column?i:e,t={column:e[3],line:e[2]+1};continue e}i=e}}throw Error(`Can't resolve original location of error.`)}return t}(this.sourcemapChain,{column:i,line:a})),n=this.originalCode}catch(e){this.options.onLog(G,function(e,t,n,r,i){return{cause:e,code:`SOURCEMAP_ERROR`,id:t,loc:{column:n,file:t,line:r},message:`Error when using sourcemap for reporting an error: ${e.message}`,pos:i}}(e,this.id,i,a,t))}Cp(e,{column:i,line:a},n,this.id)}}addModulesToImportDescriptions(e){for(let t of e.values()){let{id:e}=this.resolvedIds[t.source];t.module=this.graph.modulesById.get(e)}}addRelevantSideEffectDependencies(e,t,n){let r=/* @__PURE__ */ new Set,i=a=>{for(let o of a)r.has(o)||(r.add(o),t.has(o)?e.add(o):(o.info.moduleSideEffects||n.has(o))&&(o instanceof Em||o.hasEffects()?e.add(o):i(o.dependencies)))};i(this.dependencies),i(n)}addSource(e,t){let n=(r=t.attributes,r?.length?Object.fromEntries(r.map(e=>[Bx(e),e.value.value])):rf);var r;let i=this.sourcesWithAttributes.get(e);i?Vx(i,n)&&this.log(G,Gp(i,n,e,this.id),t.start):this.sourcesWithAttributes.set(e,n),t.phase===`source`&&this.sourcePhaseSources.add(e)}getImportedJsxFactoryVariable(e,t,n){let{id:r}=this.resolvedIds[n],[i]=this.graph.modulesById.get(r).getVariableForExportName(e,{importChain:[this.id]});return i||this.error((a=e,o=r,s=this.id,{code:`MISSING_JSX_EXPORT`,exporter:o,id:s,message:`Export "${a}" is not defined in module "${K(o)}" even though it is needed in "${K(s)}" to provide JSX syntax. Please check your "jsx" option.`,names:[a],url:cp(up)}),t);var a,o,s}getVariableFromNamespaceReexports(e,t,n,r){let i=null,a=/* @__PURE__ */ new Map,o=/* @__PURE__ */ new Set,s=/* @__PURE__ */ new Set,c=/* @__PURE__ */ new Set;for(let l of this.exportAllModules){if(l.info.syntheticNamedExports===e)continue;let[u,d]=eS(l,e,t,!0,iS(n),r,s,c);l instanceof Em||d?.indirectExternal?o.add(u):u instanceof _v?i||=u:u&&a.set(u,l)}if(a.size>0){let t=[...a],n=t[0][0];return t.length===1?[n,{exportOrReexportModules:c,sideEffectModules:s}]:(this.options.onLog(G,(l=e,u=this.id,d=t.map(([,e])=>e.id),{binding:l,code:`NAMESPACE_CONFLICT`,ids:d,message:`Conflicting namespaces: "${K(u)}" re-exports "${l}" from one of the modules ${np(d.map(e=>K(e)))} (will be ignored).`,reexporter:u})),[null])}var l,u,d;if(o.size>0){let t=[...o],n=t[0];return t.length>1&&this.options.onLog(G,function(e,t,n,r){return{binding:e,code:`AMBIGUOUS_EXTERNAL_NAMESPACES`,ids:r,message:`Ambiguous external namespace resolution: "${K(t)}" re-exports "${e}" from one of the external modules ${np(r.map(e=>K(e)))}, guessing "${K(n)}".`,reexporter:t}}(e,this.id,n.module.id,t.map(e=>e.module.id))),[n,{exportOrReexportModules:c,indirectExternal:!0,sideEffectModules:s}]}return i?[i,{exportOrReexportModules:c,sideEffectModules:s}]:[null]}includeAndGetAdditionalMergedNamespaces(){let e=/* @__PURE__ */ new Set,t=/* @__PURE__ */ new Set;for(let n of[this,...this.exportAllModules])if(n instanceof Em){let[t]=n.getVariableForExportName(`*`,{importChain:[this.id]});t.includePath(U,Pf()),this.includedImports.add(t),e.add(t)}else if(n.info.syntheticNamedExports){let e=n.getSyntheticNamespace();e.includePath(U,Pf()),this.includedImports.add(e),t.add(e)}return[...t,...e]}includeDynamicImport(t){let{resolution:n}=t;n instanceof e&&(n.includedDynamicImporters.includes(this)||(n.includedDynamicImporters.push(this),this.astContext.usesTopLevelAwait&&n.includedTopLevelAwaitingDynamicImporters.add(this)))}includeVariable(t,n,r){let{included:i,module:a}=t;if(t.includePath(n,r),i)a instanceof e&&a!==this&&tS(t,this);else if(this.graph.needsTreeshakingPass=!0,a instanceof e&&(a.includeModuleInExecution(),a!==this)){let e=tS(t,this);for(let t of e)t.includeModuleInExecution()}}includeVariableInModule(e,t,n){this.includeVariable(e,t,n);let r=e.module;r&&r!==this&&this.includedImports.add(e)}shimMissingExport(e){var t,n;this.options.onLog(G,(t=this.id,{binding:n=e,code:`SHIMMED_EXPORT`,exporter:t,message:`Missing export "${n}" has been shimmed in module "${K(t)}".`})),this.exportDescriptions.set(e,$x)}tryParse(){try{return Lx(this.info.code,{jsx:!1!==this.options.jsx})}catch(e){return this.error(sm(e,this.id),e.pos)}}};function rS(e,t,n){if(e.module instanceof nS&&e.module!==n){let r=e.module.cycles;if(r.size>0){let i=n.cycles;for(let a of i)if(r.has(a)){t.alternativeReexportModules.set(e,n);break}}}}let iS=e=>e&&new Map(Array.from(e,([e,t])=>[e,new Set(t)])),aS=([e],[t])=>e<t?-1:+(e>t),oS=(e,t)=>[e,t].filter(Boolean).join(`
781
+ `),sS=(e,t)=>[e,t].filter(Boolean).join(`
782
+
783
+ `),cS={amd:dS,cjs:dS,es:uS,iife:dS,system:uS,umd:dS};function lS(e,t,n,r,i,a,o,s,c,l,u,d,f,p){let m=[...e].reverse();for(let e of m)e.scope.addUsedOutsideNames(r,i,d,f);(function(e,t,n){for(let r of t){r.info.safeVariableNames||={};for(let t of r.scope.variables.values())if(t.included&&!(t.renderBaseName||t instanceof F_&&t.getOriginalVariable()!==t)){let n=Object.getOwnPropertyDescriptor(r.info.safeVariableNames,t.name)?.value;if(n&&!e.has(n)){e.add(n),t.setRenderNames(null,n);continue}t.setRenderNames(null,xg(t.name,e,t.forbiddenNames)),r.info.safeVariableNames[t.name]=t.renderName}if(n.has(r)){let t=r.namespace;t.setRenderNames(null,xg(t.name,e,t.forbiddenNames))}}})(r,m,p),cS[i](r,n,t,a,o,s,c,l,u);for(let e of m)e.scope.deconflict(i,d,f)}function uS(e,t,n,r,i,a,o,s,c){for(let t of n.dependencies)(i||t instanceof vv)&&(t.variableName=xg(t.suggestedVariableName,e,null));for(let n of t){let t=n.module,r=n.name;n.isNamespace&&(t instanceof Em||i&&!t.info.syntheticNamedExports)?n.setRenderNames(null,(t instanceof Em?s.get(t):o.get(t)).variableName):t instanceof Em&&n.isSourcePhase?n.setRenderNames(null,xg(t.suggestedVariableName+`__source`,e,n.forbiddenNames)):t instanceof Em&&r==="default"?n.setRenderNames(null,xg([...t.exportedVariables].some(([e,t])=>t===`*`&&e.included)?t.suggestedVariableName+`__default`:t.suggestedVariableName,e,n.forbiddenNames)):n.setRenderNames(null,xg(Sm(r),e,n.forbiddenNames))}for(let t of c)t.setRenderNames(null,xg(t.name,e,t.forbiddenNames))}function dS(e,t,{deconflictedDefault:n,deconflictedNamespace:r,dependencies:i},a,o,s,c,l){for(let t of i)t.variableName=xg(t.suggestedVariableName,e,null);for(let t of r)t.namespaceVariableName=xg(`${t.suggestedVariableName}__namespace`,e,null);for(let t of n)t.defaultVariableName=r.has(t)&&__(a(t.id),s)?t.namespaceVariableName:xg(`${t.suggestedVariableName}__default`,e,null);for(let e of t){let t=e.module;if(t instanceof Em){let n=l.get(t),r=e.name;if(r==="default"){let r=a(t.id),i=m_[r]?n.defaultVariableName:n.variableName;h_(r,s)?e.setRenderNames(i,`default`):e.setRenderNames(null,i)}else r===`*`?e.setRenderNames(null,g_[a(t.id)]?n.namespaceVariableName:n.variableName):e.setRenderNames(n.variableName,Dd(r))}else{let n=c.get(t);o&&e.isNamespace&&!t.info.syntheticNamedExports?e.setRenderNames(null,n.exportMode==="default"?n.namespaceVariableName:n.variableName):n.exportMode==="default"?e.setRenderNames(null,n.variableName):e.setRenderNames(n.variableName,Dd(n.getVariableExportName(e)))}}}function fS(e,{exports:t,name:n,format:r},i,a){let o=e.getExportNames();if(t==="default"){if(o.length!==1||o[0]!=="default")return q(Xp(`default`,o,i))}else if(t===`none`&&o.length>0)return q(Xp(`none`,o,i));return t===`auto`&&(o.length===0?t=`none`:o.length===1&&o[0]==="default"?t=`default`:(r!==`es`&&r!==`system`&&o.includes(`default`)&&a(G,function(e,t){return{code:`MIXED_EXPORTS`,id:e,message:`Entry module "${K(e)}" is using named and default exports together. Consumers of your bundle will have to use \`${t||`chunk`}.default\` to access the default export, which may not be what you want. Use \`output.exports: "named"\` to disable this warning.`,url:cp(pp)}}(i,n)),t=`named`)),t}function pS(e){let t=e.split(`
784
+ `),n=t.filter(e=>/^\t+/.test(e)),r=t.filter(e=>/^ {2,}/.test(e));if(n.length===0&&r.length===0)return null;if(n.length>=r.length)return` `;let i=r.reduce((e,t)=>{let n=/^ +/.exec(t)[0].length;return Math.min(n,e)},1/0);return` `.repeat(i)}function mS(e,t,n,r,i,a){let o=e.getDependenciesToBeIncluded();for(let e of o){if(e instanceof Em){t.push(a.get(e));continue}let o=i.get(e);o===r?n.has(e)||(n.add(e),mS(e,t,n,r,i,a)):t.push(o)}}let hS=/* @__PURE__ */ RegExp(`!~{[0-9a-zA-Z_$]{1,16}}~`,`g`),gS=(e,t)=>e.replace(hS,e=>t.get(e)||e),_S=(e,t,n)=>e.replace(hS,e=>e===t?n:e),vS=(e,t)=>{let n=/* @__PURE__ */ new Set;return{containedPlaceholders:n,transformedCode:e.replace(hS,e=>t.has(e)?(n.add(e),`!~{${`0`.repeat(e.length-5)}}~`):e)}},yS=Symbol(`bundleKeys`),bS={type:`placeholder`};function xS(e,t,n){return ap(e)?q(fm(`Invalid pattern "${e}" for "${t}", patterns can be neither absolute nor relative paths. If you want your files to be stored in a subdirectory, write its name without a leading slash like this: subdirectory/pattern.`)):e.replace(/\[(\w+)(:\d+)?]/g,(e,r,i)=>{if(!n.hasOwnProperty(r)||i&&r!==`hash`)return q(fm(`"[${r}${i||``}]" is not a valid placeholder in the "${t}" pattern.`));let a=n[r](i&&Number.parseInt(i.slice(1)));return ap(a)?q(fm(`Invalid substitution "${a}" for placeholder "[${r}]" in "${t}" pattern, can be neither absolute nor relative path.`)):a})}function SS(e,{[yS]:t}){if(!t.has(e.toLowerCase()))return e;let n=Math.max(e.lastIndexOf(`/`),e.lastIndexOf(`\\`)),r=e.slice(0,n+1),i=e.slice(n+1),a=i.indexOf(`.`,1),o=r+(a===-1?i:i.slice(0,a)),s=a===-1?``:i.slice(a),c,l=1;for(;t.has((c=o+ ++l+s).toLowerCase()););return c}let CS=[`Object`,`Promise`,`module`,`exports`,`require`,`__filename`,`__dirname`,...M_],wS=/* @__PURE__ */ new Set([`.js`,`.jsx`,`.ts`,`.tsx`,`.mjs`,`.mts`,`.cjs`,`.cts`]);function TS(e,t,n,r){return(typeof t==`function`?t(e.id):t[e.id])||(n?(r(G,(i=e.id,a=e.variableName,{code:`MISSING_GLOBAL_NAME`,id:i,message:`No name was provided for external module "${i}" in "output.globals" – guessing "${a}".`,names:[a],url:cp(`configuration-options/#output-globals`)})),e.variableName):void 0);var i,a}var ES=class e{constructor(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m){this.orderedModules=e,this.inputOptions=t,this.outputOptions=n,this.unsetOptions=r,this.pluginDriver=i,this.modulesById=a,this.chunkByModule=o,this.externalChunkByModule=s,this.facadeChunkByModule=c,this.includedNamespaces=l,this.manualChunkAlias=u,this.getPlaceholder=d,this.bundle=f,this.inputBase=p,this.snippets=m,this.dependencies=/* @__PURE__ */ new Set,this.entryModules=[],this.exportMode=`named`,this.facadeModule=null,this.namespaceVariableName=``,this.variableName=``,this.isManualChunk=!1,this.accessedGlobalsByScope=/* @__PURE__ */ new Map,this.dynamicEntryModules=[],this.dynamicName=null,this.exportNamesByVariable=/* @__PURE__ */ new Map,this.exports=/* @__PURE__ */ new Set,this.exportsByName=/* @__PURE__ */ new Map,this.fileName=null,this.implicitEntryModules=[],this.implicitlyLoadedBefore=/* @__PURE__ */ new Set,this.imports=/* @__PURE__ */ new Set,this.includedDynamicImports=null,this.includedReexportsByModule=/* @__PURE__ */ new Map,this.isEmpty=!0,this.name=null,this.needsExportsShim=!1,this.preRenderedChunkInfo=null,this.preliminaryFileName=null,this.preliminarySourcemapFileName=null,this.renderedChunkInfo=null,this.renderedDependencies=null,this.renderedModules=Object.create(null),this.sortedExportNames=null,this.strictFacade=!1,this.allowExtensionModules=/* @__PURE__ */ new Set,this.execIndex=e.length>0?e[0].execIndex:1/0;let h=new Set(e);for(let t of e){o.set(t,this),!t.namespace.included||n.preserveModules&&!t.info.syntheticNamedExports||l.add(t),this.isEmpty&&t.isIncluded()&&(this.isEmpty=!1),(t.info.isEntry||n.preserveModules)&&this.entryModules.push(t);for(let e of t.includedDynamicImporters)if(!h.has(e)){this.dynamicEntryModules.push(t),t.info.syntheticNamedExports&&(l.add(t),this.exports.add(t.namespace));break}t.implicitlyLoadedAfter.size>0&&this.implicitEntryModules.push(t)}this.suggestedVariableName=Sm(this.generateVariableName()),this.isManualChunk=u!==null}static generateFacade(t,n,r,i,a,o,s,c,l,u,d,f,p,m,h){let g=new e([],t,n,r,i,a,o,s,c,l,null,f,p,m,h);g.assignFacadeName(d,u),c.has(u)||c.set(u,g);for(let e of u.getDependenciesToBeIncluded())g.dependencies.add(e instanceof nS?o.get(e):s.get(e));return!g.dependencies.has(o.get(u))&&u.info.moduleSideEffects&&u.hasEffects()&&g.dependencies.add(o.get(u)),g.ensureReexportsAreAvailableForModule(u),g.facadeModule=u,g.strictFacade=!0,g}canModuleBeFacade(e,t){let n=e.getExportNamesByVariable();for(let e of this.exports)if(!n.has(e))return!1;for(let r of t)if(!(r.module===e||n.has(r)||r instanceof _v&&n.has(r.getBaseVariable())))return!1;return!0}finalizeChunk(e,t,n,r){let i=this.getRenderedChunkInfo(),a=e=>gS(e,r),o=i.fileName,s=this.fileName=a(o);return{...i,code:e,dynamicImports:i.dynamicImports.map(a),fileName:s,implicitlyLoadedBefore:i.implicitlyLoadedBefore.map(a),importedBindings:Object.fromEntries(Object.entries(i.importedBindings).map(([e,t])=>[a(e),t])),imports:i.imports.map(a),map:t,preliminaryFileName:o,referencedFiles:i.referencedFiles.map(a),sourcemapFileName:n}}generateExports(){this.sortedExportNames=null;let e=new Set(this.exports);if(this.facadeModule!==null&&(!1!==this.facadeModule.preserveSignature||this.strictFacade)){let t=this.facadeModule.getExportNamesByVariable();for(let[n,r]of t){this.exportNamesByVariable.set(n,[...r]);for(let e of r)this.exportsByName.set(e,n);e.delete(n)}}for(let t of this.allowExtensionModules){let n=t.getExportNamesByVariable();for(let[t,r]of n){this.exportNamesByVariable.set(t,[...r]);for(let e of r)this.exportsByName.set(e,t);e.delete(t)}}this.outputOptions.minifyInternalExports?function(e,t,n){let r=0;for(let i of e){let[e]=i.name;if(t.has(e))do e=wd(++r),e.charCodeAt(0)===49&&(r+=9*64**(e.length-1),e=wd(r));while(Td.has(e)||t.has(e));t.set(e,i),n.set(i,[e])}}(e,this.exportsByName,this.exportNamesByVariable):function(e,t,n){for(let r of e){let e=0,i=r.name;for(;t.has(i);)i=r.name+`$`+ ++e;t.set(i,r),n.set(r,[i])}}(e,this.exportsByName,this.exportNamesByVariable),(this.outputOptions.preserveModules||this.facadeModule&&this.facadeModule.info.isEntry)&&(this.exportMode=fS(this,this.outputOptions,this.facadeModule.id,this.inputOptions.onLog))}generateFacades(){let t=[],n=/* @__PURE__ */ new Set([...this.entryModules,...this.implicitEntryModules]),r=new Set(this.dynamicEntryModules.map(({namespace:e})=>e));for(let i of n){if(i.preserveSignature===`allow-extension`&&this.canPreserveModuleExports(i)&&!i.chunkFileNames.size&&i.chunkNames.every(({isUserDefined:e})=>!e)){this.allowExtensionModules.add(i),this.facadeModule||(this.facadeModule=i,this.strictFacade=!1,this.assignFacadeName({},i,this.outputOptions.preserveModules)),this.facadeChunkByModule.set(i,this);continue}let n=Array.from(new Set(i.chunkNames.filter(({isUserDefined:e})=>e).map(({name:e})=>e)),e=>({name:e}));if(n.length===0&&i.isUserDefinedEntryPoint&&n.push({}),n.push(...Array.from(i.chunkFileNames,e=>({fileName:e}))),n.length===0&&n.push({}),!this.facadeModule){let e=!this.outputOptions.preserveModules&&(i.preserveSignature===`strict`||i.preserveSignature===`exports-only`&&i.getExportNamesByVariable().size>0);e&&!this.canModuleBeFacade(i,r)||(this.facadeModule=i,this.facadeChunkByModule.set(i,this),i.preserveSignature&&(this.strictFacade=e),this.assignFacadeName(n.shift(),i,this.outputOptions.preserveModules))}for(let r of n)t.push(e.generateFacade(this.inputOptions,this.outputOptions,this.unsetOptions,this.pluginDriver,this.modulesById,this.chunkByModule,this.externalChunkByModule,this.facadeChunkByModule,this.includedNamespaces,i,r,this.getPlaceholder,this.bundle,this.inputBase,this.snippets))}for(let e of this.dynamicEntryModules)e.info.syntheticNamedExports||(!this.facadeModule&&this.canModuleBeFacade(e,r)?(this.facadeModule=e,this.facadeChunkByModule.set(e,this),this.strictFacade=!0,this.dynamicName=AS(e)??ip(e.id)):this.facadeModule===e&&!this.strictFacade&&this.canModuleBeFacade(e,r)?this.strictFacade=!0:this.facadeChunkByModule.get(e)?.strictFacade||(this.includedNamespaces.add(e),this.exports.add(e.namespace)));return this.outputOptions.preserveModules||this.addNecessaryImportsForFacades(),t}canPreserveModuleExports(e){let t=e.getExportNamesByVariable();for(let[e,n]of t)for(let t of n){let n=this.exportsByName.get(t);if(n&&n!==e)return!1}for(let[e,n]of t)for(let t of n)this.exportsByName.set(t,e);return!0}getChunkName(){return this.name??=this.outputOptions.sanitizeFileName(this.getFallbackChunkName())}getExportNames(){return this.sortedExportNames??=[...this.exportsByName.keys()].sort()}getFileName(){return this.fileName||this.getPreliminaryFileName().fileName}getImportPath(e){return a_(sp(e,this.getFileName(),this.outputOptions.format===`amd`&&!this.outputOptions.amd.forceJsExtensionForImports,!0))}getPreliminaryFileName(){if(this.preliminaryFileName)return this.preliminaryFileName;let e,t=null,{chunkFileNames:n,entryFileNames:r,file:i,format:a,preserveModules:o}=this.outputOptions;if(i)e=vd(i);else if(this.fileName===null){let[i,s]=o||this.facadeModule?.isUserDefinedEntryPoint?[r,`output.entryFileNames`]:[n,`output.chunkFileNames`];e=xS(typeof i==`function`?i(this.getPreRenderedChunkInfo()):i,s,{format:()=>a,hash:e=>t||=this.getPlaceholder(s,e||8),name:()=>this.getChunkName()}),t||(e=SS(e,this.bundle))}else e=this.fileName;return t||(this.bundle[e]=bS),this.preliminaryFileName={fileName:e,hashPlaceholder:t}}getPreliminarySourcemapFileName(){if(this.preliminarySourcemapFileName)return this.preliminarySourcemapFileName;let{sourcemapFileNames:e,format:t}=this.outputOptions;if(!e)return null;let n=null,[r,i]=[e,`output.sourcemapFileNames`],a=xS(typeof r==`function`?r(this.getPreRenderedChunkInfo()):r,i,{chunkhash:()=>this.getPreliminaryFileName().hashPlaceholder||``,format:()=>t,hash:e=>n||=this.getPlaceholder(i,e||8),name:()=>this.getChunkName()});return n||(a=SS(a,this.bundle)),this.preliminarySourcemapFileName={fileName:a,hashPlaceholder:n}}getRenderedChunkInfo(){if(this.renderedChunkInfo)return this.renderedChunkInfo;let e=this.getRenderedDependencies();return this.renderedChunkInfo={...this.getPreRenderedChunkInfo(),dynamicImports:this.getDynamicDependencies().map(NS),fileName:this.getFileName(),implicitlyLoadedBefore:Array.from(this.implicitlyLoadedBefore,NS),importedBindings:jS(e,NS),imports:Array.from(e.keys(),NS),modules:this.renderedModules,referencedFiles:this.getReferencedFiles()}}getVariableExportName(e){return this.isNativeNamespace(e)?`*`:this.exportNamesByVariable.get(e)[0]}isNativeNamespace(e){return this.outputOptions.preserveModules&&e instanceof hv&&!e.module.info.syntheticNamedExports}link(){this.dependencies=function(e,t,n,r){let i=[],a=/* @__PURE__ */ new Set;for(let o=t.length-1;o>=0;o--){let s=t[o];if(!a.has(s)){let t=[];mS(s,t,a,e,n,r),i.unshift(t)}}let o=/* @__PURE__ */ new Set;for(let e of i)for(let t of e)o.add(t);return o}(this,this.orderedModules,this.chunkByModule,this.externalChunkByModule);for(let e of this.orderedModules)this.addImplicitlyLoadedBeforeFromModule(e),this.setUpChunkImportsAndExportsForModule(e)}inlineTransitiveImports(){let{facadeModule:t,dependencies:n,outputOptions:r}=this,{hoistTransitiveImports:i,preserveModules:a}=r;if(i&&!a&&t!==null)for(let t of n)t instanceof e&&this.inlineChunkDependencies(t)}async render(){let{exportMode:e,facadeModule:t,inputOptions:{onLog:n},outputOptions:r,pluginDriver:i,snippets:a}=this,{format:o,preserveModules:s}=r,c=this.getPreliminaryFileName(),l=this.getPreliminarySourcemapFileName(),{accessedGlobals:u,indent:d,magicString:f,renderedSource:p,usedModules:m,usesTopLevelAwait:h}=this.renderModules(c.fileName),g=[...this.getRenderedDependencies().values()],_=e===`none`?[]:this.getChunkExportDeclarations(o),ee=o===`es`&&new Set(_.map(({exported:e})=>e)),te=_.length>0,v=!1;for(let e of g){let{reexports:t}=e;t?.length&&(te=!0,!v&&t.some(e=>e.reexported==="default")&&(v=!0),ee&&(e.reexports=t.filter(({reexported:e})=>!ee.has(e))))}if(!v){for(let{exported:e}of _)if(e==="default"){v=!0;break}}let{intro:y,outro:ne,banner:re,footer:b}=await async function(e,t,n){try{let[r,i,a,o]=await Promise.all([t.hookReduceValue(`banner`,e.banner(n),[n],oS),t.hookReduceValue(`footer`,e.footer(n),[n],oS),t.hookReduceValue(`intro`,e.intro(n),[n],sS),t.hookReduceValue(`outro`,e.outro(n),[n],sS)]);return a&&(a+=`
785
+
786
+ `),o&&=`\n\n${o}`,r&&(r+=`
787
+ `),i&&=`
788
+ `+i,{banner:r,footer:i,intro:a,outro:o}}catch(e){return q((r=e.message,{code:`ADDON_ERROR`,message:`Could not retrieve "${e.hook}". Check configuration of plugin "${e.plugin}".\n\tError Message: ${r}`}))}var r}(r,i,this.getRenderedChunkInfo());if(Kv[o](p,{accessedGlobals:u,dependencies:g,exports:_,hasDefaultExport:v,hasExports:te,id:c.fileName,indent:d,intro:y,isEntryFacade:s||t!==null&&t.info.isEntry,isModuleFacade:t!==null,log:n,namedExportsMode:e!=="default",outro:ne,snippets:a,usesTopLevelAwait:h},r),re&&f.prepend(re),o===`es`||o===`cjs`){let e=t!==null&&t.info.isEntry&&t.shebang;e&&f.prepend(`#!${e}\n`)}return b&&f.append(b),{chunk:this,magicString:f,preliminaryFileName:c,preliminarySourcemapFileName:l,usedModules:m}}addImplicitlyLoadedBeforeFromModule(e){let{chunkByModule:t,implicitlyLoadedBefore:n}=this;for(let r of e.implicitlyLoadedBefore){let e=t.get(r);e&&e!==this&&n.add(e)}}addNecessaryImportsForFacades(){for(let[e,t]of this.includedReexportsByModule)if(this.includedNamespaces.has(e))for(let e of t)this.imports.add(e)}assignFacadeName({fileName:e,name:t},n,r){e?this.fileName=e:this.name=this.outputOptions.sanitizeFileName(t||(r?this.getPreserveModulesChunkNameFromModule(n):OS(n)))}checkCircularDependencyImport(e,t){let n=e.module;if(n instanceof nS){let r=this.chunkByModule.get(n),i;do i=t.alternativeReexportModules.get(e),i&&(this.chunkByModule.get(i)!==r&&this.inputOptions.onLog(G,Vp(n.getExportNamesByVariable().get(e)?.[0]||`*`,n.id,i.id,t.id,this.outputOptions.preserveModules)),t=i);while(i)}}ensureReexportsAreAvailableForModule(e){let t=[],n=e.getExportNamesByVariable();for(let r of n.keys()){let n=r instanceof _v,i=n?r.getBaseVariable():r;if(this.checkCircularDependencyImport(i,e),!this.isNativeNamespace(i)){let e=i.module;if(e instanceof nS){let r=this.chunkByModule.get(e);r&&r!==this&&(r.exports.add(i),t.push(i),n&&this.imports.add(i))}else e instanceof Em&&i.included&&t.push(i)}}t.length>0&&this.includedReexportsByModule.set(e,t)}generateVariableName(){if(this.manualChunkAlias)return this.manualChunkAlias;let e=this.entryModules[0]||this.implicitEntryModules[0]||this.dynamicEntryModules[0]||this.orderedModules[this.orderedModules.length-1];return e?OS(e):`chunk`}getChunkExportDeclarations(e){let t=[];for(let n of this.getExportNames()){if(Od(n))continue;let r=this.exportsByName.get(n);if(!(r instanceof _v)){let t=r.module;if(t){let r=this.chunkByModule.get(t);if(r!==this){if(!r||e!==`es`)continue;let t=this.renderedDependencies.get(r);if(!t)continue;let{imports:i,reexports:a}=t,o=a?.find(({reexported:e})=>e===n);if(!i?.find(({imported:e})=>e===o?.imported))continue}}}let i=null,a=!1,o=r.getName(this.snippets.getPropertyAccess);if(r instanceof hg){for(let e of r.declarations)if(e.parent instanceof e_||e instanceof t_&&e.declaration instanceof e_){a=!0;break}}else r instanceof _v&&(i=o,e===`es`&&(o=r.renderName));t.push({exported:n,expression:i,hoisted:a,local:o,needsLiveBinding:r.isReassigned&&this.exportNamesByVariable.get(r).length>1||r.isTargetOfAssignment&&kS(r)})}return t}getDependenciesToBeDeconflicted(e,t,n){let r=/* @__PURE__ */ new Set,i=/* @__PURE__ */ new Set,a=/* @__PURE__ */ new Set;for(let t of[...this.exportNamesByVariable.keys(),...this.imports])if(e||t.isNamespace){let o=t.module;if(o instanceof Em){let s=this.externalChunkByModule.get(o);r.add(s),e&&(t.name==="default"?m_[n(o.id)]&&i.add(s):t.isNamespace&&g_[n(o.id)]&&(this.imports.has(t)||!this.exportNamesByVariable.get(t)?.every(Od))&&a.add(s))}else{let n=this.chunkByModule.get(o);n!==this&&(r.add(n),e&&n.exportMode==="default"&&t.isNamespace&&a.add(n))}}if(t)for(let e of this.dependencies)r.add(e);return{deconflictedDefault:i,deconflictedNamespace:a,dependencies:r}}getDynamicDependencies(){return this.getIncludedDynamicImports().map(e=>e.facadeChunk||e.chunk||e.externalChunk||e.resolution).filter(t=>t!==this&&(t instanceof e||t instanceof vv))}getDynamicImportStringAndAttributes(e,t,n){let{externalImportAttributes:r}=this.outputOptions,i=[`es`,`cjs`].includes(this.outputOptions.format)&&r;if(e instanceof Em){let n=this.externalChunkByModule.get(e),r=n.getImportAttributes(this.snippets);return[`'${n.getImportPath(t)}'`,r||!!i||null]}let a=null;if(i){let e=zx(n);a=e===rf||yv(e,this.snippets)}return[e||``,a]}getFallbackChunkName(){return this.manualChunkAlias?this.manualChunkAlias:this.dynamicName?this.dynamicName:this.fileName?rp(this.fileName):rp(this.orderedModules[this.orderedModules.length-1].id)}getImportSpecifiers(){let{interop:e}=this.outputOptions,t=/* @__PURE__ */ new Map;for(let n of this.imports){let r=n.module,i,a,o=r instanceof Em&&n.isSourcePhase;if(r instanceof Em){if(i=this.externalChunkByModule.get(r),a=n.name,!o&&a!=="default"&&a!==`*`&&e(r.id)===`defaultOnly`)return q(um(r.id,a,!1))}else i=this.chunkByModule.get(r),a=i.getVariableExportName(n);sf(t,i,lf).push({imported:a,local:n.getName(this.snippets.getPropertyAccess),phase:o?`source`:`instance`})}return t}getIncludedDynamicImports(){if(this.includedDynamicImports)return this.includedDynamicImports;let e=[];for(let t of this.orderedModules)for(let{node:n}of t.dynamicImports){if(!n.included)continue;let{resolution:t}=n;e.push(t instanceof nS?{chunk:this.chunkByModule.get(t),externalChunk:null,facadeChunk:this.facadeChunkByModule.get(t),node:n,resolution:t}:t instanceof Em?{chunk:null,externalChunk:this.externalChunkByModule.get(t),facadeChunk:null,node:n,resolution:t}:{chunk:null,externalChunk:null,facadeChunk:null,node:n,resolution:t})}return this.includedDynamicImports=e}getPreRenderedChunkInfo(){if(this.preRenderedChunkInfo)return this.preRenderedChunkInfo;let{dynamicEntryModules:e,facadeModule:t,implicitEntryModules:n,orderedModules:r}=this;return this.preRenderedChunkInfo={exports:this.getExportNames(),facadeModuleId:t&&t.id,isDynamicEntry:e.length>0,isEntry:!!t?.info.isEntry,isImplicitEntry:n.length>0,moduleIds:r.map(({id:e})=>e),name:this.getChunkName(),type:`chunk`}}getPreserveModulesChunkNameFromModule(e){let t=AS(e);if(t)return t;let{preserveModulesRoot:n,sanitizeFileName:r}=this.outputOptions,i=r(_d(e.id.split(MS,1)[0])),a=r(this.inputBase),o=bd(i),s=wS.has(o)?i.slice(0,-o.length):i;return hd(s)?n&&Cd(s).startsWith(n)?s.slice(n.length).replace(/^[/\\]/,``):a===`/`&&s[0]!==`/`?Sd(a,s.replace(/^[a-zA-Z]:[/\\]/,`/`)):Sd(a,s):this.outputOptions.virtualDirname.replace(/\/$/,``)+`/`+vd(s)}getReexportSpecifiers(){let{externalLiveBindings:e,interop:t}=this.outputOptions,n=/* @__PURE__ */ new Map;for(let r of this.getExportNames()){let i,a,o;if(Od(r)){let n=Ad(r);t(n)===`defaultOnly`&&this.inputOptions.onLog(G,dm(n)),o=e,i=this.externalChunkByModule.get(this.modulesById.get(n)),a=r=`*`}else{let n=this.exportsByName.get(r);if(n instanceof _v)continue;let s=n.module;if(s instanceof nS){if(i=this.chunkByModule.get(s),i===this)continue;a=i.getVariableExportName(n),o=n.isReassigned}else{if(i=this.externalChunkByModule.get(s),a=n.name,a!=="default"&&a!==`*`&&t(s.id)===`defaultOnly`)return q(um(s.id,a,!0));o=e&&(a!=="default"||h_(t(s.id),!0))}}sf(n,i,lf).push({imported:a,needsLiveBinding:o,reexported:r})}return n}getReferencedFiles(){let e=/* @__PURE__ */ new Set;for(let t of this.orderedModules)for(let n of t.importMetas){let t=n.getReferencedFileName(this.pluginDriver);t&&e.add(t)}return[...e]}getRenderedDependencies(){if(this.renderedDependencies)return this.renderedDependencies;let t=this.getImportSpecifiers(),n=this.getReexportSpecifiers(),r=/* @__PURE__ */ new Map,i=this.getFileName();for(let a of this.dependencies){let o=t.get(a)||null,s=n.get(a)||null;if(o===null&&s===null&&a instanceof vv&&!a.moduleSideEffects&&!this.outputOptions.hoistTransitiveImports)continue;let c=a instanceof vv||a.exportMode!=="default",l=a.getImportPath(i),u=o?.find(e=>e.phase===`source`),d=o?.filter(e=>e.phase!==`source`)??null;r.set(a,{attributes:a instanceof vv?a.getImportAttributes(this.snippets):null,defaultVariableName:a.defaultVariableName,globalName:a instanceof vv&&(this.outputOptions.format===`umd`||this.outputOptions.format===`iife`)&&TS(a,this.outputOptions.globals,(o||s)!==null,this.inputOptions.onLog),importPath:l,imports:d&&d.length>0?d:null,isChunk:a instanceof e,name:a.variableName,namedExportsMode:c,namespaceVariableName:a.namespaceVariableName,reexports:s,sourcePhaseImport:u?.local})}return this.renderedDependencies=r}inlineChunkDependencies(t){for(let n of t.dependencies)this.dependencies.has(n)||(this.dependencies.add(n),n instanceof e&&this.inlineChunkDependencies(n))}getHoistedNamespaces(){let e=[];for(let t of this.orderedModules)this.includedNamespaces.has(t)&&e.push(t.namespace);let t=/* @__PURE__ */ new Set;for(let n of e)n.isReferencedEarly()&&this.canHoistNamespace(n)&&t.add(n);let n=!0;for(;n;){n=!1;for(let r of e){let e=t.has(r);for(let i of r.getIncludedMemberNamespaces())!t.has(i)&&this.chunkByModule.get(i.module)===this&&(e||r.module.execIndex<i.module.execIndex)&&this.canHoistNamespace(i)&&(t.add(i),n=!0)}}return t}canHoistNamespace(e){for(let t of e.getMergedNamespaces()){let{module:e}=DS(t);if(e instanceof nS&&this.chunkByModule.get(e)===this)return!1}return!0}renderModules(e){let{accessedGlobalsByScope:t,dependencies:n,exportNamesByVariable:r,includedNamespaces:i,inputOptions:{onLog:a},isEmpty:o,orderedModules:s,outputOptions:c,pluginDriver:l,renderedModules:u,snippets:d}=this,{compact:f,format:p,freeze:m,generatedCode:{symbols:h},importAttributesKey:g}=c,{_,cnst:ee,n:te}=d;this.setDynamicImportResolutions(e),this.setImportMetaResolutions(e),this.setIdentifierRenderResolutions();let v=this.getHoistedNamespaces(),y=new cd({separator:`${te}${te}`}),ne=function(e,t){if(!0!==t.indent)return t.indent;for(let t of e){let e=pS(t.originalCode);if(e!==null)return e}return` `}(s,c),re=[],b=``,x=/* @__PURE__ */ new Set,S={accessedDocumentCurrentScript:!1,exportNamesByVariable:r,format:p,freeze:m,importAttributesKey:g,indent:ne,pluginDriver:l,snippets:d,symbols:h,useOriginalName:null},C=!1;for(let e of s){let n,r=0;if(e.isIncluded()||i.has(e)){let a=e.render(S);!S.accessedDocumentCurrentScript&&q_.includes(p)&&this.accessedGlobalsByScope.get(e.scope)?.delete(p_),S.accessedDocumentCurrentScript=!1,{source:n}=a,C||=a.usesTopLevelAwait,r=n.length(),r&&(f&&n.lastLine().includes(`//`)&&n.append(`
789
+ `),y.addSource({content:n,indentExclusionRanges:a.indentExclusionRanges}),re.push(e));let o=e.namespace;if(i.has(e)){let e=v.has(o),t=o.renderBlock(S,e);e?b+=te+t:y.addSource(new od(t))}let s=t.get(e.scope);if(s)for(let e of s)x.add(e)}let{renderedExports:a,removedExports:o}=e.getRenderedExports();u[e.id]={get code(){return n?.toString()??null},originalLength:e.originalCode.length,removedExports:o,renderedExports:a,renderedLength:r}}b&&y.prepend(b+te+te),this.needsExportsShim&&y.prepend(`${te}${ee} ${Lv}${_}=${_}void 0;${te}${te}`);let ie=f?y:y.trim();var ae;return o&&this.getExportNames().length===0&&n.size===0&&a(G,{code:`EMPTY_BUNDLE`,message:`Generated an empty chunk: "${ae=this.getChunkName()}".`,names:[ae]}),{accessedGlobals:x,indent:ne,magicString:y,renderedSource:ie,usedModules:re,usesTopLevelAwait:C}}setDynamicImportResolutions(e){let{accessedGlobalsByScope:t,outputOptions:n,pluginDriver:r,snippets:i}=this;for(let a of this.getIncludedDynamicImports())if(a.chunk){let{chunk:o,facadeChunk:s,node:c,resolution:l}=a;o===this?c.setInternalResolution(l.namespace):c.setExternalResolution((s||o).exportMode,n,i,r,t,`'${(s||o).getImportPath(e)}'`,!s?.strictFacade&&o.exportNamesByVariable.get(l.namespace)[0],null,this,s||o)}else{let{node:o,resolution:s}=a,[c,l]=this.getDynamicImportStringAndAttributes(s,e,o);o.setExternalResolution(`external`,n,i,r,t,c,!1,l,this,null)}}setIdentifierRenderResolutions(){let{format:e,generatedCode:{symbols:t},interop:n,preserveModules:r,externalLiveBindings:i}=this.outputOptions;for(let e of this.orderedModules)for(let t of e.scope.variables.values())t.setRenderNames(null,null);let a=/* @__PURE__ */ new Set;for(let t of this.getExportNames()){let n=this.exportsByName.get(t);e===`es`||e===`system`||!n.isReassigned||n.isId||kS(n)?n instanceof _v?a.add(n):n.setRenderNames(null,null):n.setRenderNames(`exports`,Dd(t))}for(let e of this.orderedModules)if(e.needsExportShim){this.needsExportsShim=!0;break}let o=new Set(CS);this.needsExportsShim&&o.add(Lv),t&&o.add(`Symbol`),lS(this.orderedModules,this.getDependenciesToBeDeconflicted(e!==`es`&&e!==`system`,e===`amd`||e===`umd`||e===`iife`,n),this.imports,o,e,n,r,i,this.chunkByModule,this.externalChunkByModule,a,this.exportNamesByVariable,this.accessedGlobalsByScope,this.includedNamespaces)}setImportMetaResolutions(e){let{accessedGlobalsByScope:t,includedNamespaces:n,orderedModules:r,outputOptions:{format:i}}=this;for(let a of r){for(let n of a.importMetas)n.setResolution(i,t,e);n.has(a)&&a.namespace.prepare(t)}}setUpChunkImportsAndExportsForModule(e){let t=new Set(e.includedImports);if(this.includedNamespaces.has(e))for(let n of e.getExportedVariablesByName().values())n.included&&t.add(n);for(let n of t){let t=DS(n),r=this.chunkByModule.get(t.module);r!==this&&(this.imports.add(t),t.module instanceof nS&&(this.checkCircularDependencyImport(t,e),this.isNativeNamespace(t)||r.exports.add(t)))}(this.includedNamespaces.has(e)||e.info.isEntry&&!1!==e.preserveSignature||e.includedDynamicImporters.some(e=>this.chunkByModule.get(e)!==this))&&this.ensureReexportsAreAvailableForModule(e);for(let{node:{included:t,resolution:n}}of e.dynamicImports)t&&n instanceof nS&&this.chunkByModule.get(n)===this&&!this.includedNamespaces.has(n)&&(this.includedNamespaces.add(n),this.ensureReexportsAreAvailableForModule(n))}};function DS(e){return e instanceof F_&&(e=e.getOriginalVariable()),e instanceof _v&&(e=e.getBaseVariable()),e}function OS(e){return AS(e)??rp(e.id)}function kS(e){return function(e){return e instanceof hg&&e.declarations.some(e=>e instanceof bg&&e.isDeclarationInDestructuringPattern())}(e)||function(e){return e instanceof hg&&e.declarations.some(e=>{let t=e.parent;if(!(t instanceof fv)||t.id!==e)return!1;let n=t.parent;return n instanceof uv&&n.declarations.length>1&&n.isInSingleStatementPosition()})}(e)}function AS(e){return e.chunkNames.find(({isUserDefined:e})=>e)?.name??e.chunkNames[0]?.name}function jS(e,t){let n={};for(let[r,i]of e){let e=/* @__PURE__ */ new Set;if(i.imports)for(let{imported:t}of i.imports)e.add(t);if(i.reexports)for(let{imported:t}of i.reexports)e.add(t);n[t(r)]=[...e]}return n}let MS=/[#?]/,NS=e=>e.getFileName();function*PS(e){for(let t of e)yield*t}function FS(e,t,n,r,i,a){let{chunkDefinitions:o,manualChunkModules:s,manualChunkModulesByModule:c}=function(e,t,n){let r=new Set(e.keys()),i=Object.create(null),a=[...e].sort(([e],[t])=>e.execIndex-t.execIndex);for(let[e,o]of a){let a=i[o]||=[];t&&n?a.push(e):IS(e,a,r)}let o=Object.entries(i),s=Array(o.length),c=Array(o.length),l=/* @__PURE__ */ new Map,u=0;for(let[e,t]of o){c[u]={alias:e,modules:t},s[u]=t;for(let e of t)l.set(e,t);u++}return{chunkDefinitions:c,manualChunkModules:s,manualChunkModulesByModule:l}}(t,i,a),{entriesAndManualChunksCount:l,dependentEntriesByModule:u,dynamicallyDependentEntriesByDynamicEntry:d,dynamicImportsByEntry:f,dynamicallyDependentEntriesByAwaitedDynamicEntry:p,awaitedDynamicImportsByEntry:m}=function(e,t,n){let r=/* @__PURE__ */ new Set,i=/* @__PURE__ */ new Set,a=/* @__PURE__ */ new Map,o=new Set(e),s=e.map(e=>[e]).concat(t),c=Array(s.length),l=Array(s.length),u=0;for(let e of s){let t=/* @__PURE__ */ new Set,d=/* @__PURE__ */ new Set,f=/* @__PURE__ */ new Set;c[u]=t,l[u]=d;let p=new Set(e),m=!1,h=/* @__PURE__ */ new Set;for(let e of p){m||=e.hasTopLevelAwait(),sf(a,e,cf).add(u);let i=n.get(e);if(i&&!h.has(i)){h.add(i);for(let e of i)p.add(e)}for(let t of e.getDependenciesToBeIncluded())t instanceof Em||p.add(t);for(let{node:n}of e.dynamicImports){let{resolution:e}=n;e instanceof nS&&e.includedDynamicImporters.length>0&&(r.has(e)||!o.has(e))&&(f.add(e),n.included&&t.add(e),o.has(e)||(r.add(e),o.add(e),s.push([e])))}for(let n of e.implicitlyLoadedBefore)o.has(n)||(r.add(n),o.add(n),s.push([n])),r.has(n)&&t.add(n)}if(m)for(let e of f)i.add(e),d.add(e);u++}let{awaitedDynamicEntries:d,awaitedDynamicImportsByEntry:f,dynamicEntries:p,dynamicImportsByEntry:m}=function(e,t,n,r,i){let a=/* @__PURE__ */ new Map,o=/* @__PURE__ */ new Set,s=/* @__PURE__ */ new Set;for(let[n,i]of e.entries())for(let e of i)a.set(e,n),t.has(e)&&o.add(n),r.has(e)&&s.add(n);let c=LS(n,a);return{awaitedDynamicEntries:s,awaitedDynamicImportsByEntry:LS(i,a),dynamicEntries:o,dynamicImportsByEntry:c}}(s,r,c,i,l);return{awaitedDynamicImportsByEntry:f,dependentEntriesByModule:a,dynamicallyDependentEntriesByAwaitedDynamicEntry:RS(zS(a,d,s,e=>e.includedTopLevelAwaitingDynamicImporters),f),dynamicallyDependentEntriesByDynamicEntry:zS(a,p,s,e=>e.includedDynamicImporters),dynamicImportsByEntry:m,entriesAndManualChunksCount:s.length}}(e,s,c),h=function(e){let t=Object.create(null);for(let{dependentEntries:n,module:r}of e){let e=0n;for(let t of n)e|=1n<<BigInt(t);(t[String(e)]||={dependentEntries:new Set(n),modules:[]}).modules.push(r)}return Object.values(t)}(function*(e,t,n){for(let[r,i]of e)if(!t.has(r)){if(r.cycles.size>0&&r.includedTopLevelAwaitingDynamicImporters.size>0){n.push({alias:null,modules:[r]});continue}yield{dependentEntries:i,module:r}}}(u,c,o)),g=function(e,t){return e.map(e=>({dependentEntries:t.get(e[0]),modules:e}))}(s,u),_=function(e,t){let n=Array(e).fill(0n),r=1n;for(let{dependentEntries:e}of t){for(let t of e)n[t]|=r;r<<=1n}return n}(l,PS([h,g])),ee=function(e,t,n,r){let i=Array.from({length:r},(e,n)=>t.has(n)?-1n:0n);for(let[r,a]of t){t.delete(r);let o=i[r],s=o;for(let t of a)s&=e[t]|i[t];if(s!==o){i[r]=s;for(let e of n[r])sf(t,e,cf).add(r)}}return i}(_,d,f,l);(function(e,t,n){let r=1n;for(let{dependentEntries:i}of e){for(let e of i)(t[e]&r)===r&&(n[e]&r)===0n&&i.delete(e);r<<=1n}})(h,ee,function(e,t,n,r){let i=Array(r).fill(0n);for(let[r,a]of t){t.delete(r);let o=i[r],s=o;for(let t of a)s|=e[t]|i[t];if(s!==o){i[r]=s;for(let e of n[r])sf(t,e,cf).add(r)}}return i}(_,p,m,l));let{chunks:te,sideEffectAtoms:v,sizeByAtom:y}=function(e,t,n,r,i){let a=Object.create(null),o=/* @__PURE__ */ new Map,s=Array(e.length+t.length),c=0n,l=1n,u=0;for(let{dependentEntries:t,modules:d}of e){let e=0n,f=-1n;for(let i of t)e|=1n<<BigInt(i),f&=n[i]|r[i];let p=a[String(e)]||={containedAtoms:0n,correlatedAtoms:f,dependencies:/* @__PURE__ */ new Set,dependentChunks:/* @__PURE__ */ new Set,dependentEntries:new Set(t),modules:[],pure:!0,size:0};for(let e of d)o.set(e,p);let{pure:m,size:h}=BS(d,i);m||(c|=l),s[u++]=h,p.containedAtoms|=l,p.modules.push(...d),p.pure&&=m,p.size+=h,l<<=1n}let d=/* @__PURE__ */ new Map;for(let{modules:e}of t){for(let t of e)d.set(t,l);let{pure:t,size:n}=BS(e,i);t||(c|=l),s[u++]=n,l<<=1n}let f=Object.values(a);return c|=function(e,t,n,r){let i=/* @__PURE__ */ new Map,a=0n;for(let o of e){let{dependencies:e,modules:s}=o;for(let c of s)for(let s of c.getDependenciesToBeIncluded())if(s instanceof Em){if(s.info.moduleSideEffects){let e=sf(i,s,()=>{let e=r;return r<<=1n,a|=e,e});o.containedAtoms|=e,o.correlatedAtoms|=e}}else{let r=t.get(s);if(r)r!==o&&(e.add(r),r.dependentChunks.add(o));else{let e=n.get(s);e&&(o.containedAtoms|=e)}}}return a}(f,o,d,l),{chunks:f,sideEffectAtoms:c,sizeByAtom:s}}(h,g,_,ee,n);return o.push(...function(e,t,n,r,i){Yx(`optimize chunks`,3);let a=function(e,t){let n=[],r=[];for(let i of e)(i.size<t?n:r).push(i);return n.length===0?null:(n.sort(VS),r.sort(VS),{big:new Set(r),small:new Set(n)})}(e,t);return a?(t>1&&i(`info`,rm(e.length,a.small.size,`Initially`)),(function(e,t,n,r){let{small:i}=e;for(let a of i){let o=HS(a,e,n,r,t<=1?1:1/0);if(o){let{containedAtoms:n,correlatedAtoms:r,modules:s,pure:c,size:l}=a;i.delete(a),GS(o,t,e).delete(o),o.modules.push(...s),o.size+=l,o.pure&&=c;let{dependencies:u,dependentChunks:d,dependentEntries:f}=o;o.correlatedAtoms&=r,o.containedAtoms|=n;for(let e of a.dependentEntries)f.add(e);for(let e of a.dependencies)u.add(e),e.dependentChunks.delete(a),e.dependentChunks.add(o);for(let e of a.dependentChunks)d.add(e),e.dependencies.delete(a),e.dependencies.add(o);u.delete(o),d.delete(o),GS(o,t,e).add(o)}}})(a,t,n,r),t>1&&i(`info`,rm(a.small.size+a.big.size,a.small.size,`After merging chunks`)),Xx(`optimize chunks`,3),[...a.small,...a.big]):(Xx(`optimize chunks`,3),e)}(te,n,v,y,r).map(({modules:e})=>({alias:null,modules:e}))),o}function IS(e,t,n){let r=/* @__PURE__ */ new Set([e]);for(let e of r){n.add(e),t.push(e);for(let t of e.dependencies)t instanceof Em||n.has(t)||r.add(t)}}function LS(e,t){let n=Array(e.length),r=0;for(let i of e){let e=/* @__PURE__ */ new Set;for(let n of i)e.add(t.get(n));n[r++]=e}return n}function RS(e,t){for(let[n,r]of t.entries())for(let t of r)sf(e,t,cf).add(n);return e}function zS(e,t,n,r){let i=/* @__PURE__ */ new Map;for(let a of t){let t=sf(i,a,cf),o=n[a];for(let n of o)for(let i of PS([r(n),n.implicitlyLoadedAfter])){let n=e.get(i);if(n)for(let e of n)t.add(e)}}return i}function BS(e,t){let n=!0,r=0;for(let i of e)i.isIncluded()&&(n&&=!i.hasEffects(),r+=t>1?i.estimateSize():1);return{pure:n,size:r}}function VS({size:e},{size:t}){return e-t}function HS(e,{big:t,small:n},r,i,a){let o=null;for(let s of PS([n,t])){if(e===s)continue;let t=US(e,s,a,r,i);if(t<a){if(o=s,t===0)break;a=t}}return o}function US(e,t,n,r,i){let a=WS(e,t,n,r,i);return a<n?a+WS(t,e,n-a,r,i):1/0}function WS(e,t,n,r,i){let{correlatedAtoms:a}=t,o=e.containedAtoms,s=o&r;if((a&s)!==s)return 1/0;let c=new Set(e.dependencies);for(let{dependencies:e,containedAtoms:n}of c){o|=n;let i=n&r;if((a&i)!==i)return 1/0;for(let n of e){if(n===t)return 1/0;c.add(n)}}return function(e,t,n){let r=0,i=0,a=1n,{length:o}=n;for(;i<o;i++)if((e&a)===a&&(r+=n[i]),a<<=1n,r>=t)return 1/0;return r}(o&~a,n,i)}function GS(e,t,n){return e.size<t?n.small:n.big}let KS=(e,t)=>e.execIndex>t.execIndex?1:-1;function qS(e){e.sort(KS)}function JS(e){let t=0,n=[],r=/* @__PURE__ */ new Set,i=/* @__PURE__ */ new Set,a=/* @__PURE__ */ new Map,o=[],s=(e,t)=>{a.has(e)?r.has(e)||n.push(function(e,t,n){let r=Symbol(e.id),i=[e.id],a=t;for(e.cycles.add(r);a!==e;)a.cycles.add(r),i.push(a.id),a=n.get(a);return i.push(i[0]),i.reverse(),i}(e,t,a)):(a.set(e,t),c(e))},c=e=>{if(e instanceof nS){for(let t of e.dependencies)s(t,e);for(let t of e.implicitlyLoadedBefore)i.add(t);for(let{node:{resolution:t,scope:n}}of e.dynamicImports)t instanceof nS&&(n.context.usesTopLevelAwait?s(t,e):i.add(t));o.push(e)}e.execIndex=t++,r.add(e)};for(let t of e)a.has(t)||(a.set(t,null),c(t));for(let e of i)a.has(e)||(a.set(e,null),c(e));return{cyclePaths:n,orderedModules:o}}let YS=(e,t)=>t?`(${e})`:e;var XS=class{constructor(e,t){this.isOriginal=!0,this.filename=e,this.content=t}traceSegment(e,t,n){return{column:t,line:e,name:n,source:this}}},ZS=class{constructor(e,t){this.sources=t,this.names=e.names,this.mappings=e.mappings}traceMappings(){let e=[],t=/* @__PURE__ */ new Map,n=[],r=[],i=/* @__PURE__ */ new Map,a=[];for(let o of this.mappings){let s=[];for(let a of o){if(a.length===1)continue;let o=this.sources[a[1]];if(!o)continue;let c=o.traceSegment(a[2],a[3],a.length===5?this.names[a[4]]:``);if(c){let{column:o,line:l,name:u,source:{content:d,filename:f}}=c,p=t.get(f);if(p===void 0)p=e.length,e.push(f),t.set(f,p),n[p]=d;else if(n[p]==null)n[p]=d;else if(d!=null&&n[p]!==d)return q(lm(f));let m=[a[0],p,l,o];if(u){let e=i.get(u);e===void 0&&(e=r.length,r.push(u),i.set(u,e)),m[4]=e}s.push(m)}}a.push(s)}return{mappings:a,names:r,sources:e,sourcesContent:n}}traceSegment(e,t,n){let r=this.mappings[e];if(!r)return null;let i=0,a=r.length-1;for(;i<=a;){let e=i+a>>1,o=r[e];if(o[0]!==t&&i===a&&(o=r[r[i][0]>t?Math.max(0,i-1):i]),o[0]===t||i===a){if(o.length==1)return null;let e=this.sources[o[1]];return e?e.traceSegment(o[2],o[3],o.length===5?this.names[o[4]]:n):null}o[0]>t?a=e-1:i=e+1}return null}};function QS(e){return function(t,n){return n.missing?(e(G,(r=n.plugin,{code:Np,message:`Sourcemap is likely to be incorrect: a plugin (${r}) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help`,plugin:r,url:cp(`troubleshooting/#warning-sourcemap-is-likely-to-be-incorrect`)})),new ZS({mappings:[],names:[]},[t])):new ZS(n,[t]);var r}}function $S(e,t,n,r,i){let a;if(n){let t=n.sources,r=n.sourcesContent||[],i=yd(e)||`.`,o=n.sourceRoot||`.`;a=new ZS(n,t.map((e,t)=>e==null?null:new XS(Cd(i,o,e),r[t])))}else a=new XS(e,t);return r.reduce(i,a)}let eC,tC=e=>function(e){let t,n;try{let a=Ey.__wbindgen_add_to_stack_pointer(-16)>>>0;Ey.xxhashBase64Url(a,e);var r=_y().getInt32(a+0,!0),i=_y().getInt32(a+4,!0);return t=r,n=i,vy(r,i)}finally{Ey.__wbindgen_add_to_stack_pointer(16),Ey.__wbindgen_export(t,n,1)}}(rC(e)),nC={base36:e=>function(e){let t,n;try{let a=Ey.__wbindgen_add_to_stack_pointer(-16)>>>0;Ey.xxhashBase36(a,e);var r=_y().getInt32(a+0,!0),i=_y().getInt32(a+4,!0);return t=r,n=i,vy(r,i)}finally{Ey.__wbindgen_add_to_stack_pointer(16),Ey.__wbindgen_export(t,n,1)}}(rC(e)),base64:tC,hex:e=>function(e){let t,n;try{let a=Ey.__wbindgen_add_to_stack_pointer(-16)>>>0;Ey.xxhashBase16(a,e);var r=_y().getInt32(a+0,!0),i=_y().getInt32(a+4,!0);return t=r,n=i,vy(r,i)}finally{Ey.__wbindgen_add_to_stack_pointer(16),Ey.__wbindgen_export(t,n,1)}}(rC(e))};function rC(e){return typeof e==`string`?typeof Buffer>`u`?(eC??=new TextEncoder,eC.encode(e)):Buffer.from(e):e}let iC=`sourceMa`;async function aC(e,t,n,r,i){Yx(`render chunks`,2),function(e){for(let t of e)t.facadeModule&&t.facadeModule.isUserDefinedEntryPoint&&t.getPreliminaryFileName()}(e);let a=await Promise.all(e.map(e=>e.render()));Xx(`render chunks`,2),Yx(`transform chunks`,2);let o=nC[r.hashCharacters],{hashDependenciesByPlaceholder:s,initialHashesByPlaceholder:c,nonHashedChunksWithPlaceholders:l,placeholders:u,renderedChunksByPlaceholder:d,usedFileNames:f}=await async function(e,t,n,r,i,a,o){let s=[],c=/* @__PURE__ */ new Map,l=/* @__PURE__ */ new Map,u=/* @__PURE__ */ new Map,d=/* @__PURE__ */ new Set;for(let{preliminaryFileName:{hashPlaceholder:t}}of e)t&&d.add(t);let f=await Promise.all(e.map(async({chunk:e,preliminaryFileName:{fileName:i,hashPlaceholder:o},preliminarySourcemapFileName:s,magicString:c,usedModules:l})=>{let u={chunk:e,fileName:i,sourcemapFileName:s?.fileName??null,...await oC(c,i,l,t,n,r,a)};return{hashAugmentation:o?r.hookReduceValueSync(`augmentChunkHash`,``,[e.getRenderedChunkInfo()],(e,t)=>e+(t||``)):``,hashPlaceholder:o,preliminarySourcemapFileName:s,transformedChunk:u}})),p=new Set(o[yS]);for(let{transformedChunk:e,hashPlaceholder:t,preliminarySourcemapFileName:r,hashAugmentation:a}of f){let{map:o}=e,f=r?.hashPlaceholder;if(o&&f){let{transformedCode:e}=vS(o.toString(),d);u.set(f,n.sourcemap===`inline`?i(e).slice(0,f.length):cC(e,r.fileName,f,p,i))}t?(c.set(t,e),l.set(t,sC(e,n,i,d,u,a))):s.push(e)}return{hashDependenciesByPlaceholder:l,initialHashesByPlaceholder:u,nonHashedChunksWithPlaceholders:s,placeholders:d,renderedChunksByPlaceholder:c,usedFileNames:p}}(a,function(e){return Object.fromEntries(e.map(e=>{let t=e.getRenderedChunkInfo();return[t.fileName,t]}))}(e),r,n,o,i,t);(function(e,t,n,r,i,a){for(let{chunk:r,code:o,fileName:s,sourcemapFileName:c,map:l}of e.values()){let e=gS(o,t),u=gS(s,t),d=null;l&&(a.sourcemapDebugIds&&(e+=dC(e,l)),d=c?gS(c,t):`${u}.map`,l.file=gS(l.file??``,t),e+=lC(d,l,i,a)),n[u]=r.finalizeChunk(e,l,d,t)}for(let{chunk:e,code:o,fileName:s,sourcemapFileName:c,map:l}of r){let r=t.size>0?gS(o,t):o,u=null;l&&(a.sourcemapDebugIds&&(r+=dC(r,l)),u=c?gS(c,t):`${s}.map`,r+=lC(u,l,i,a)),n[s]=e.finalizeChunk(r,l,u,t)}})(d,function(e,t,n,r,i,a,o){let s=new Map(n);for(let n of r){let{fileName:r}=e.get(n),c=``,l=/* @__PURE__ */ new Set([n]);for(let e of l){let{containedPlaceholders:n,contentHash:r}=t.get(e);c+=r;for(let e of n)l.add(e)}let u=cC(c,r,n,a,o);i[_S(r,n,u)]=bS,s.set(n,u)}return s}(d,s,c,u,t,f,o),t,l,n,r),Xx(`transform chunks`,2)}async function oC(e,t,n,r,i,a,o){let s=null,c=[],l=await a.hookReduceArg0(`renderChunk`,[e.toString(),r[t],i,{chunks:r}],(e,t,n)=>{if(t==null)return e;if(typeof t==`string`&&(t={code:t,map:void 0}),t.map!==null){let e=Fx(t.map);c.push(e||{missing:!0,plugin:n.name})}return t.code}),{compact:u,dir:d,file:f,sourcemap:p,sourcemapExcludeSources:m,sourcemapFile:h,sourcemapPathTransform:g,sourcemapIgnoreList:_}=i;if(u||l[l.length-1]===`
790
+ `||(l+=`
791
+ `),p){let r;Yx(`sourcemaps`,3),r=h?Cd(h):f?Cd(f):d?Cd(d,t):Cd(t),s=function(e,t,n,r,i,a){let o=QS(a),s=new ZS(t,n.filter(e=>!e.excludeFromSourcemap).map(e=>$S(e.id,e.originalCode,e.originalSourcemap,e.sourcemapChain,o))),{sources:c,sourcesContent:l,names:u,mappings:d}=r.reduce(o,s).traceMappings();if(e){let t=yd(e);c=c.map(e=>Sd(t,e)),e=vd(e)}for(let e of n)Px(e.originalSourcemap,e.sourcemapChain);return new Ku({file:e,mappings:d,names:u,sources:c,sourcesContent:i?void 0:l})}(r,e.generateDecodedMap({}),n,c,m,o);for(let e=0;e<s.sources.length;++e){let t=s.sources[e],n=`${r}.map`,i=_(t,n);typeof i!=`boolean`&&q(fm(`sourcemapIgnoreList function must return a boolean.`)),i&&(s.x_google_ignoreList===void 0&&(s.x_google_ignoreList=[]),s.x_google_ignoreList.includes(e)||s.x_google_ignoreList.push(e)),g&&(t=g(t,n),typeof t!=`string`&&q(fm(`sourcemapPathTransform function must return a string.`))),s.sources[e]=_d(t)}Xx(`sourcemaps`,3)}return{code:l,map:s}}function sC({code:e,map:t,fileName:n,sourcemapFileName:r},i,a,o,s,c){let{containedPlaceholders:l,transformedCode:u}=vS(e,o),d=u;if(t&&i.sourcemapDebugIds&&(d+=`//# debugId=
792
+ `),t&&i.sourcemap!==`hidden`){let e;if(i.sourcemap===`inline`){let{containedPlaceholders:n,transformedCode:r}=vS(t.toString(),o);e=n,d+=`//# ${iC}=data:application/json,${r}\n`}else{let{containedPlaceholders:a,transformedCode:c}=vS(gS(r??`${n}.map`,s),o);e=a,d+=uC(c,t,i.sourcemap,i.sourcemapBaseUrl)}for(let t of e)l.add(t)}return c&&(d+=c),{containedPlaceholders:l,contentHash:a(d)}}function cC(e,t,n,r,i){let a,o;do o&&(e=o),o=i(e).slice(0,n.length),a=_S(t,n,o).toLowerCase();while(r.has(a));return r.add(a),o}function lC(e,t,n,{sourcemap:r,sourcemapBaseUrl:i}){return r!==`inline`&&n.emitFile({fileName:e,originalFileName:null,source:t.toString(),type:`asset`}),uC(e,t,r,i)}function uC(e,t,n,r){let i=n===`inline`?t.toUrl():r?new URL(vd(e),r).toString():vd(e);return n===`hidden`?``:`//# ${iC}=${i}\n`}function dC(e,t){let n=nC.hex(e),r=[n.slice(0,8),n.slice(8,12),`4`+n.slice(12,15),(3&parseInt(n.slice(15,16),16)|8).toString(16)+n.slice(17,20),n.slice(20,32)].join(`-`);return t.debugId=r,`//# debugId=`+r+`
793
+ `}iC+=`ppingURL`;var fC=class{constructor(e,t,n,r,i){this.outputOptions=e,this.unsetOptions=t,this.inputOptions=n,this.pluginDriver=r,this.graph=i,this.facadeChunkByModule=/* @__PURE__ */ new Map,this.includedNamespaces=/* @__PURE__ */ new Set}async generate(e){Yx(`GENERATE`,1);let t=Object.create(null),n=(e=>{let t=/* @__PURE__ */ new Set;return new Proxy(e,{deleteProperty:(e,n)=>(typeof n==`string`&&t.delete(n.toLowerCase()),Reflect.deleteProperty(e,n)),get:(e,n)=>n===yS?t:Reflect.get(e,n),set:(e,n,r)=>(typeof n==`string`&&t.add(n.toLowerCase()),Reflect.set(e,n,r))})})(t);this.pluginDriver.setOutputBundle(n,this.outputOptions);try{Yx(`initialize render`,2),await this.pluginDriver.hookParallel(`renderStart`,[this.outputOptions,this.inputOptions]),Xx(`initialize render`,2),Yx(`generate chunks`,2);let e=(()=>{let e=0;return(t,n)=>{if(n>21)return q(fm(`Hashes cannot be longer than 21 characters, received ${n}. Check the "${t}" option.`));let r=`!~{${wd(++e).padStart(n-5,`0`)}}~`;return r.length>n?q(fm(`To generate hashes for this number of chunks (currently ${e}), you need a minimum hash size of ${r.length}, received ${n}. Check the "${t}" option.`)):r}})(),t=await this.generateChunks(n,e);t.length>1&&function(e,t){if(e.format===`umd`||e.format===`iife`)return q(Qp(`output.format`,mp,`UMD and IIFE output formats are not supported for code-splitting builds`,e.format));if(typeof e.file==`string`)return q(Qp(`output.file`,fp,`when building multiple chunks, the "output.dir" option must be used, not "output.file". To inline dynamic imports, set the "inlineDynamicImports" option`));if(e.sourcemapFile)return q(Qp(`output.sourcemapFile`,`configuration-options/#output-sourcemapfile`,`"output.sourcemapFile" is only supported for single-file builds`));!e.amd.autoId&&e.amd.id&&t(G,Qp(`output.amd.id`,dp,`this option is only properly supported for single-file builds. Use "output.amd.autoId" and "output.amd.basePath" instead`))}(this.outputOptions,this.inputOptions.onLog),this.pluginDriver.setChunkInformation(this.facadeChunkByModule);for(let e of t)e.generateExports(),e.inlineTransitiveImports();Xx(`generate chunks`,2),await aC(t,n,this.pluginDriver,this.outputOptions,this.inputOptions.onLog)}catch(e){try{await this.pluginDriver.hookParallel(`renderError`,[e])}catch(t){q(Sp(e,t,`renderError`))}throw e}return(e=>{let t=/* @__PURE__ */ new Set,n=Object.values(e);for(let e of n)e.type===`asset`&&e.needsCodeReference&&t.add(e.fileName);for(let e of n)if(e.type===`chunk`)for(let n of e.referencedFiles)t.has(n)&&t.delete(n);for(let n of t)delete e[n]})(n),Yx(`generate bundle`,2),await this.pluginDriver.hookSeq(`generateBundle`,[this.outputOptions,n,e]),this.finaliseAssets(n),function(e){for(let[t,n]of Object.entries(e)){if(hC(t))return q(Hp(t));if(n.type!==`placeholder`){let{fileName:e}=n;if(e!==t&&hC(e))return q(Hp(e))}}}(n),Xx(`generate bundle`,2),Xx(`GENERATE`,1),t}async addManualChunks(e){let t=/* @__PURE__ */ new Map,n=await Promise.all(Object.entries(e).map(async([e,t])=>({alias:e,entries:await this.graph.moduleLoader.addAdditionalModules(t,!0)})));for(let{alias:e,entries:r}of n)for(let n of r)pC(e,n,t);return t}assignManualChunks(e){let t=/* @__PURE__ */ new Map,n={getModuleIds:()=>this.graph.modulesById.keys(),getModuleInfo:this.graph.getModuleInfo};for(let r of this.graph.modulesById.values())if(r instanceof nS){let i=e(r.id,n);typeof i==`string`&&pC(i,r,t)}return t}finaliseAssets(e){if(this.outputOptions.validate){for(let t of Object.values(e))if(`code`in t)try{Lx(t.code,{jsx:!1!==this.inputOptions.jsx})}catch(e){this.inputOptions.onLog(G,zp(t,e))}}this.pluginDriver.finaliseAssets()}async generateChunks(e,t){let{experimentalMinChunkSize:n,inlineDynamicImports:r,manualChunks:i,preserveModules:a,onlyExplicitManualChunks:o}=this.outputOptions,s=typeof i==`object`?await this.addManualChunks(i):this.assignManualChunks(i),c=function({compact:e,generatedCode:{arrowFunctions:t,constBindings:n,objectShorthand:r,reservedNamesAsProps:i}}){let{_:a,n:o,s}=e?{_:``,n:``,s:``}:{_:` `,n:`
794
+ `,s:`;`},c=n?`const`:`var`,l=(e,{isAsync:t,name:n})=>`${t?`async `:``}function${n?` ${n}`:``}${a}(${e.join(`,${a}`)})${a}`,u=t?(e,{isAsync:t,name:n})=>{let r=e.length===1;return`${n?`${c} ${n}${a}=${a}`:``}${t?`async${r?` `:a}`:``}${r?e[0]:`(${e.join(`,${a}`)})`}${a}=>${a}`}:l,d=(e,{functionReturn:n,lineBreakIndent:r,name:i})=>[`${u(e,{isAsync:!1,name:i})}${t?r?`${o}${r.base}${r.t}`:``:`{${r?`${o}${r.base}${r.t}`:a}${n?`return `:``}`}`,t?`${i?`;`:``}${r?`${o}${r.base}`:``}`:`${s}${r?`${o}${r.base}`:a}}`],f=i?e=>Cm.test(e):e=>!Td.has(e)&&Cm.test(e);return{_:a,cnst:c,getDirectReturnFunction:d,getDirectReturnIifeLeft:(e,n,{needsArrowReturnParens:r,needsWrappedFunction:i})=>{let[a,o]=d(e,{functionReturn:!0,lineBreakIndent:null,name:null});return`${YS(`${a}${YS(n,t&&r)}${o}`,t||i)}(`},getFunctionIntro:u,getNonArrowFunctionIntro:l,getObject(e,{lineBreakIndent:t}){let n=t?`${o}${t.base}${t.t}`:a;return`{${e.map(([e,t])=>{if(e===null)return`${n}${t}`;let i=Tm(e);return e===t&&r&&e===i?n+e:`${n}${i}:${a}${t}`}).join(`,`)}${e.length===0?``:t?`${o}${t.base}`:a}}`},getPropertyAccess:e=>f(e)?`.${e}`:`[${JSON.stringify(e)}]`,n:o,s}}(this.outputOptions),l=function(e){let t=[];for(let n of e.values())n instanceof nS&&(n.isIncluded()||n.info.isEntry||n.includedDynamicImporters.length>0)&&t.push(n);return t}(this.graph.modulesById),u=function(e){if(e.length===0)return`/`;if(e.length===1)return yd(e[0]);let t=e.slice(1).reduce((e,t)=>{let n=t.split(/\/+|\\+/),r=0;for(;e[r]===n[r]&&r<Math.min(e.length,n.length);r++);return e.slice(0,r)},e[0].split(/\/+|\\+/));return t.length>1?t.join(`/`):`/`}(function(e,t){let n=[];for(let r of e)(r.info.isEntry||t)&&hd(r.id)&&n.push(r.id);return n}(l,a)),d=function(e,t,n){let r=/* @__PURE__ */ new Map;for(let i of e.values())i instanceof Em&&r.set(i,new vv(i,t,n));return r}(this.graph.modulesById,this.outputOptions,u),f=r?[{alias:null,modules:l}]:a?l.map(e=>({alias:null,modules:[e]})):FS(this.graph.entryModules,s,n,this.inputOptions.onLog,typeof i==`function`,o),p=Array(f.length),m=/* @__PURE__ */ new Map,h=0;for(let{alias:n,modules:r}of f){qS(r);let i=new ES(r,this.inputOptions,this.outputOptions,this.unsetOptions,this.pluginDriver,this.graph.modulesById,m,d,this.facadeChunkByModule,this.includedNamespaces,n,t,e,u,c);p[h++]=i}for(let e of p)e.link();r||a||this.checkCircularChunks(p);let g=[];for(let e of p)g.push(...e.generateFacades());return[...p,...g]}checkCircularChunks(e){let t=/* @__PURE__ */ new Set,n=/* @__PURE__ */ new Map,r=(e,r)=>{if(n.has(e)){if(!t.has(e)){let t=[e.getChunkName()],i=e.isManualChunk,a=r;for(;a!==e&&a;)t.push(a.getChunkName()),i&&=a.isManualChunk,a=n.get(a);t.push(t[0]),t.reverse(),this.inputOptions.onLog(G,function(e,t){return{code:`CIRCULAR_CHUNK`,ids:e,message:`Circular chunk: ${e.join(` -> `)}. ${t?`Please adjust the manual chunk logic for these chunks.`:`Please consider disabling the "output.onlyExplicitManualChunks" option, as enabling it causes modules located between the modules included in the manual chunk "${e.at(-2)}" to be extracted into the separate chunk "${e.at(-1)}".`}`}}(t,i))}}else n.set(e,r),i(e)},i=e=>{for(let t of e.dependencies)t instanceof ES&&r(t,e);t.add(e)};for(let t of e)n.has(t)||i(t)}};function pC(e,t,n){let r=n.get(t);if(typeof r==`string`&&r!==e)return q((i=t.id,a=e,o=r,{code:`INVALID_CHUNK`,message:`Cannot assign "${K(i)}" to the "${a}" chunk as it is already in the "${o}" chunk.`}));var i,a,o;n.set(t,e)}let mC=/^[a-z]:/i;function hC(e){if(mC.test(e))return!0;let t=function(...e){let t=e.filter(Boolean).join(`/`);if(t===``)return`.`;let n=fd.test(t[0]),r=(n?`/`:``)+(xd(t.split(fd),n).join(`/`)||(n?``:`.`));return md.test(t)&&!r.endsWith(`/`)?r+`/`:r}(e).replaceAll(`\\`,`/`);return t===`..`||t.startsWith(`../`)||t===`.`||hd(t)}var gC=class extends Sg{constructor(){super(),this.parent=null,this.variables.set(`undefined`,new P_)}findVariable(e){let t=this.variables.get(e);return t||(t=new pg(e),this.variables.set(e,t)),t}};async function _C(e,t,n,r,i,a,o,s,c,l,u){let d=await function(e,t,n,r,i,a,o,s,c){let l=null,u=null;if(i){l=/* @__PURE__ */ new Set;for(let n of i)e===n.source&&t===n.importer&&l.add(n.plugin);u=(e,t)=>({...e,resolve:(e,n,{attributes:a,custom:o,isEntry:s,skipSelf:c,importerAttributes:l}=nf)=>(c??=!0,c&&i.findIndex(r=>r.plugin===t&&r.source===e&&r.importer===n)!==-1?Promise.resolve(null):r(e,n,o,s,a||rf,l,c?[...i,{importer:n,plugin:t,source:e}]:i))})}return n.hookFirstAndGetPlugin(`resolveId`,[e,t,{attributes:s,custom:a,importerAttributes:c,isEntry:o}],u,l)}(e,t,r,i,a,o,s,c,l);if(d!=null){let[e,t]=d;return typeof e==`string`?{id:e,resolvedBy:t.name}:typeof e==`object`?yC(e,t.name):e}return t===void 0||hd(e)||e[0]===`.`?async function(e,t,n){return await vC(e,t,n)??await vC(e+`.mjs`,t,n)??await vC(e+`.js`,t,n)}(t?Cd(yd(t),e):Cd(e),n,u):null}async function vC(e,t,n){try{let r=await n.lstat(e);if(!t&&r.isSymbolicLink())return await vC(await n.realpath(e),t,n);if(t&&r.isSymbolicLink()||r.isFile()){let t=vd(e);if((await n.readdir(yd(e))).includes(t))return e}}catch{}}function yC(e,t){return e.resolvedBy||!t?e:{...e,resolvedBy:t}}function bC(e){return e.charCodeAt(0)===65279?bC(e.slice(1)):e}let xC=(e,t,n=TC)=>{let{onwarn:r,onLog:i}=e,a=SC(n,r);if(i){let e=tp[t];return(t,n)=>i(t,CC(n),(t,n)=>{if(t===`error`)return q(wC(n));tp[t]>=e&&a(t,wC(n))})}return a},SC=(e,t)=>t?(n,r)=>{n===G?t(CC(r),t=>e(G,wC(t))):e(n,r)}:e,CC=e=>(Object.defineProperty(e,"toString",{value:()=>e.message,writable:!0}),e),wC=e=>typeof e==`string`?{message:e}:typeof e==`function`?wC(e()):e,TC=(e,{message:t})=>{switch(e){case G:return console.warn(t);case ep:return console.debug(t);default:return console.info(t)}};function EC(e,t,n,r,i=/$./){let a=new Set(t),o=Object.keys(e).filter(e=>!(a.has(e)||i.test(e)));o.length>0&&r(G,function(e,t,n){return{code:`UNKNOWN_OPTION`,message:`Unknown ${e}: ${t.join(`, `)}. Allowed options: ${n.join(`, `)}`}}(n,o,[...a].sort()))}let DC={recommended:{annotations:!0,correctVarValueBeforeDeclaration:!1,manualPureFunctions:af,moduleSideEffects:()=>!0,propertyReadSideEffects:!0,tryCatchDeoptimization:!0,unknownGlobalSideEffects:!1},safest:{annotations:!0,correctVarValueBeforeDeclaration:!0,manualPureFunctions:af,moduleSideEffects:()=>!0,propertyReadSideEffects:!0,tryCatchDeoptimization:!0,unknownGlobalSideEffects:!0},smallest:{annotations:!0,correctVarValueBeforeDeclaration:!1,manualPureFunctions:af,moduleSideEffects:()=>!1,propertyReadSideEffects:!1,tryCatchDeoptimization:!1,unknownGlobalSideEffects:!1}},OC={preserve:{factory:null,fragment:null,importSource:null,mode:`preserve`},"preserve-react":{factory:`React.createElement`,fragment:`React.Fragment`,importSource:`react`,mode:`preserve`},react:{factory:`React.createElement`,fragment:`React.Fragment`,importSource:`react`,mode:`classic`},"react-jsx":{factory:`React.createElement`,importSource:`react`,jsxImportSource:`react/jsx-runtime`,mode:`automatic`}},kC={es2015:{arrowFunctions:!0,constBindings:!0,objectShorthand:!0,reservedNamesAsProps:!0,symbols:!0},es5:{arrowFunctions:!1,constBindings:!1,objectShorthand:!1,reservedNamesAsProps:!0,symbols:!1}},AC=(e,t,n,r,i)=>{let a=e?.preset;if(a){let i=t[a];if(i)return{...i,...e};q(Qp(`${n}.preset`,r,`valid values are ${np(Object.keys(t))}`,a))}return((e,t,n,r)=>i=>{if(typeof i==`string`){let a=e[i];if(a)return a;q(Qp(t,n,`valid values are ${r}${np(Object.keys(e))}. You can also supply an object for more fine-grained control`,i))}return(e=>e&&typeof e==`object`?e:{})(i)})(t,n,r,i)(e)},jC=async e=>(await async function(e){do e=(await Promise.all(e)).flat(1/0);while(e.some(e=>e?.then));return e}([e])).filter(Boolean),MC=`at position `,NC=`at output position `,PC={delete:()=>!1,get(){},has:()=>!1,set(){}};function FC(e){return e.startsWith(MC)||e.startsWith(NC)?q({code:`ANONYMOUS_PLUGIN_CACHE`,message:`A plugin is trying to use the Rollup cache but is not declaring a plugin name or cacheKey.`}):q({code:`DUPLICATE_PLUGIN_NAME`,message:`The plugin name ${e} is being used twice in the same build. Plugin names must be distinct or provide a cacheKey (please post an issue to the plugin if you are a plugin user).`})}async function IC(e,t,n,r){let i=t.id,a=[],o=e.map===null?null:Fx(e.map),s=e.code,c=e.ast,l=[],u=[],d=!1,f=()=>d=!0,p=``,m=e.code,h=e=>(t,n)=>{t=wC(t),n!=null&&Cp(t,n,m,i),t.id=i,t.hook=`transform`,e(t)},g;try{g=await n.hookReduceArg0(`transform`,[m,i,{attributes:t.info.attributes}],function(e,n,i){let o,s;if(typeof n==`string`)o=n;else{if(!n||typeof n!=`object`)return e;if(t.updateOptions(n),n.code==null)return(n.map||n.ast)&&r.onLog(G,function(e){return{code:`NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE`,message:`The plugin "${e}" returned a "map" or "ast" without returning a "code". This will be ignored.`}}(i.name)),e;n.attributes&&pm(`Returning attributes from the "transform" hook is forbidden.`,`plugin-development/#transform`,!1,r),{code:o,map:s,ast:c}=n}return s!==null&&a.push(Fx(typeof s==`string`?JSON.parse(s):s)||{missing:!0,plugin:i.name}),m=o,o},(e,t)=>{return p=t.name,{...e,addWatchFile(t){l.push(t),e.addWatchFile(t)},cache:d?e.cache:(c=e.cache,g=f,{delete:e=>(g(),c.delete(e)),get:e=>(g(),c.get(e)),has:e=>(g(),c.has(e)),set:(e,t)=>(g(),c.set(e,t))}),debug:h(e.debug),emitFile:e=>(u.push(e),n.emitFile(e)),error:(t,n)=>(typeof t==`string`&&(t={message:t}),n!=null&&Cp(t,n,m,i),t.id=i,t.hook=`transform`,e.error(t)),getCombinedSourcemap(){let e=function(e,t,n,r,i){return r.length!==0||n&&!function(e){return e.sources.every(e=>e!=null)}(n)?Fx({version:3,...$S(e,t,n,r,QS(i)).traceMappings()}):n}(i,s,o,a,r.onLog);return e?(o!==e&&(o=e,a.length=0),new Ku({...e,sourcesContent:e.sourcesContent})):new od(s).generateMap({hires:!0,includeContent:!0,source:i})},info:h(e.info),setAssetSource(){return this.error({code:`INVALID_SETASSETSOURCE`,message:`setAssetSource cannot be called in transform for caching reasons. Use emitFile with a source, or call setAssetSource in another hook.`})},warn:h(e.warn)};var c,g})}catch(e){return q(cm(e,p,{hook:`transform`,id:i}))}return!d&&u.length>0&&(t.transformFiles=u),{ast:c,code:g,customTransformCache:d,originalCode:s,originalSourcemap:o,safeVariableNames:null,sourcemapChain:a,transformDependencies:l}}let LC=`resolveDependencies`;var RC=class{constructor(e,t,n,r){this.graph=e,this.modulesById=t,this.options=n,this.pluginDriver=r,this.implicitEntryModules=/* @__PURE__ */ new Set,this.sortedEntryModules=[],this.entryModules=/* @__PURE__ */ new Set,this.latestLoadModulesPromise=Promise.resolve(),this.moduleLoadPromises=/* @__PURE__ */ new Map,this.modulesWithLoadedDependencies=/* @__PURE__ */ new Set,this.resolveId=async(e,t,n,r,i,a,o=null)=>this.getResolvedIdWithDefaults(this.getNormalizedResolvedIdWithoutDefaults(!this.options.external(e,t,!1)&&await _C(e,t,this.options.preserveSymlinks,this.pluginDriver,this.resolveId,o,n,typeof r==`boolean`?r:!t,i,a,this.options.fs),t,e),i),this.hasModuleSideEffects=n.treeshake?n.treeshake.moduleSideEffects:()=>!0}async addAdditionalModules(e,t){let n=this.extendLoadModulesPromise(Promise.all(e.map(e=>this.loadEntryModule(e,!1,void 0,null,t,void 0))));return await this.awaitLoadModulesPromise(),n}async addEntryModules(e,t){let n=await this.extendLoadModulesPromise(Promise.all(e.map(({id:e,importer:t})=>this.loadEntryModule(e,!0,t,null,void 0,void 0))).then(n=>{let r=!1;for(let[i,a]of n.entries())a.isUserDefinedEntryPoint=a.isUserDefinedEntryPoint||t,BC(a,e[i],t),this.entryModules.has(a)||(this.sortedEntryModules.push(a),this.entryModules.add(a),r=!0);return r&&this.sortedEntryModules.sort((e,t)=>e.id>t.id?1:-1),n}));return await this.awaitLoadModulesPromise(),{entryModules:this.sortedEntryModules,implicitEntryModules:[...this.implicitEntryModules],newEntryModules:n}}async emitChunk({fileName:e,id:t,importer:n,name:r,implicitlyLoadedAfterOneOf:i,preserveSignature:a}){let o={fileName:e||null,id:t,importer:n,name:r||null},s=i?await this.addEntryWithImplicitDependants(o,i):(await this.addEntryModules([o],!1)).newEntryModules[0];return a!=null&&(s.preserveSignature=a),s}async preloadModule(e){return(await this.fetchModule(this.getResolvedIdWithDefaults(e,rf),void 0,!1,!e.resolveDependencies||LC)).info}addEntryWithImplicitDependants(e,t){return this.extendLoadModulesPromise(this.loadEntryModule(e.id,!1,e.importer,null,void 0,void 0).then(async n=>{if(BC(n,e,!1),!n.info.isEntry){let r=await Promise.all(t.map(t=>this.loadEntryModule(t,!1,e.importer,n.id,void 0,void 0)));if(!n.info.isEntry){this.implicitEntryModules.add(n);for(let e of r)n.implicitlyLoadedAfter.add(e);for(let e of n.implicitlyLoadedAfter)e.implicitlyLoadedBefore.add(n)}}return n}))}async addModuleSource(e,t,n){let r;try{r=await this.graph.fileOperationQueue.run(async()=>{let t=await this.pluginDriver.hookFirst(`load`,[e,{attributes:n.info.attributes}]);return t===null?(this.graph.watchFiles[e]=!0,await this.options.fs.readFile(e,{encoding:`utf8`})):(typeof t==`object`&&t.attributes&&pm(`Returning attributes from the "load" hook is forbidden.`,`plugin-development/#load`,!1,this.options),t)})}catch(n){let r=`Could not load ${e}`;throw t&&(r+=` (imported by ${K(t)})`),r+=`: ${n.message}`,n.message=r,n}let i=typeof r==`string`?{code:r}:typeof r==`object`&&r&&typeof r.code==`string`?r:q(function(e){return{code:`BAD_LOADER`,message:`Error loading "${K(e)}": plugin load hook should return a string, a { code, map } object, or nothing/null.`}}(e));i.code=bC(i.code);let a=this.graph.cachedModules.get(e);if(a&&!a.customTransformCache&&a.originalCode===i.code){let e={meta:{...n.info.meta},moduleSideEffects:n.info.moduleSideEffects,syntheticNamedExports:n.info.syntheticNamedExports};if(n.updateOptions(a),!await this.pluginDriver.hookFirst(`shouldTransformCachedModule`,[{ast:a.ast,attributes:a.attributes,code:a.code,id:a.id,meta:a.meta,moduleSideEffects:a.moduleSideEffects,resolvedSources:a.resolvedIds,syntheticNamedExports:a.syntheticNamedExports}])){if(a.transformFiles)for(let e of a.transformFiles)this.pluginDriver.emitFile(e);await n.setSource(a);return}n.updateOptions(e,{replaceExistingMeta:!0})}n.updateOptions(i),await n.setSource(await IC(i,n,this.pluginDriver,this.options))}async awaitLoadModulesPromise(){let e;do e=this.latestLoadModulesPromise,await e;while(e!==this.latestLoadModulesPromise)}extendLoadModulesPromise(e){return this.latestLoadModulesPromise=Promise.all([e,this.latestLoadModulesPromise]),this.latestLoadModulesPromise.catch(()=>{}),e}async fetchDynamicDependencies(e,t){let n=await Promise.all(t.map(t=>t.then(async([{argument:t,node:n},r])=>r===null?null:typeof r==`string`?(n.resolution=r,null):n.phase!==`source`||r.external?n.resolution=await this.fetchResolvedDependency(K(r.id),e.id,r):q(nm(typeof t==`string`?t:K(r.id),e.id)))));for(let t of n)t&&(e.dynamicDependencies.add(t),t.dynamicImporters.push(e.id))}async fetchModule({attributes:e,id:t,meta:n,moduleSideEffects:r,syntheticNamedExports:i},a,o,s){let c=this.modulesById.get(t);if(c instanceof nS)return a&&Vx(e,c.info.attributes)&&this.options.onLog(G,Gp(c.info.attributes,e,t,a)),await this.handleExistingModule(c,o,s),c;if(c instanceof Em)return q({code:`EXTERNAL_MODULES_CANNOT_BE_TRANSFORMED_TO_MODULES`,message:`${c.id} is resolved as a module now, but it was an external module before. Please check whether there are conflicts in your Rollup options "external" and "manualChunks", manualChunks cannot include external modules.`});let l=new nS(this.graph,t,this.options,o,r,i,n,e);this.modulesById.set(t,l);let u=this.addModuleSource(t,a,l).then(()=>[this.getResolveStaticDependencyPromises(l),this.getResolveDynamicImportPromises(l),d]),d=HC(u).then(()=>this.pluginDriver.hookParallel(`moduleParsed`,[l.info]));d.catch(()=>{}),this.moduleLoadPromises.set(l,u);let f=await u;return s?s===LC&&await d:await this.fetchModuleDependencies(l,...f),l}async fetchModuleDependencies(e,t,n,r){this.modulesWithLoadedDependencies.has(e)||(this.modulesWithLoadedDependencies.add(e),await Promise.all([this.fetchStaticDependencies(e,t),this.fetchDynamicDependencies(e,n)]),e.linkImports(),await r)}fetchResolvedDependency(e,t,n){if(n.external){let{attributes:r,external:i,id:a,moduleSideEffects:o,meta:s}=n,c=this.modulesById.get(a);if(c){if(!(c instanceof Em))return q(function(e,t){return{code:`INVALID_EXTERNAL_ID`,message:`"${e}" is imported as an external by "${K(t)}", but is already an existing non-external module id.`}}(e,t));Vx(c.info.attributes,r)&&this.options.onLog(G,Gp(c.info.attributes,r,e,t))}else c=new Em(this.options,a,o,s,i!==`absolute`&&hd(a),r),this.modulesById.set(a,c);return Promise.resolve(c)}return this.fetchModule(n,t,!1,!1)}async fetchStaticDependencies(e,t){for(let n of await Promise.all(t.map(t=>t.then(([t,n])=>e.sourcePhaseSources.has(t)&&!n.external?q(nm(t,e.id)):this.fetchResolvedDependency(t,e.id,n)))))e.dependencies.add(n),n.importers.push(e.id);if(!this.options.treeshake||e.info.moduleSideEffects===`no-treeshake`)for(let t of e.dependencies)t instanceof nS&&(t.importedFromNotTreeshaken=!0)}getNormalizedResolvedIdWithoutDefaults(e,t,n){let{makeAbsoluteExternalsRelative:r}=this.options;if(e){if(typeof e==`object`){let i=e.external||this.options.external(e.id,t,!0);return{...e,external:i&&(i===`relative`||!hd(e.id)||!0===i&&VC(e.id,n,r)||`absolute`)}}let i=this.options.external(e,t,!0);return{external:i&&(VC(e,n,r)||`absolute`),id:i&&r?zC(e,t):e}}let i=r?zC(n,t):n;return!1===e||this.options.external(i,t,!0)?{external:VC(i,n,r)||`absolute`,id:i}:null}getResolveDynamicImportPromises(e){return e.dynamicImports.map(async t=>{let n=await this.resolveDynamicImport(e,t.argument,e.id,zx(t.node));return n&&typeof n!=`string`?(t.node.shouldIncludeDynamicAttributes=!!n.external,t.resolution=n):t.node.shouldIncludeDynamicAttributes=!0,[t,n]})}getResolveStaticDependencyPromises(e){return Array.from(e.sourcesWithAttributes,async([t,n])=>[t,e.resolvedIds[t]=e.resolvedIds[t]||this.handleInvalidResolvedId(await this.resolveId(t,e.id,rf,!1,n,e.info.attributes),t,e.id,n)])}getResolvedIdWithDefaults(e,t){if(!e)return null;let n=e.external||!1;return{attributes:e.attributes||t,external:n,id:e.id,meta:e.meta||{},moduleSideEffects:e.moduleSideEffects??this.hasModuleSideEffects(e.id,!!n),resolvedBy:e.resolvedBy??`rollup`,syntheticNamedExports:e.syntheticNamedExports??!1}}async handleExistingModule(e,t,n){let r=this.moduleLoadPromises.get(e);if(n)return n===LC?HC(r):r;if(t){e.info.isEntry=!0,this.implicitEntryModules.delete(e);for(let t of e.implicitlyLoadedAfter)t.implicitlyLoadedBefore.delete(e);e.implicitlyLoadedAfter.clear()}return this.fetchModuleDependencies(e,...await r)}handleInvalidResolvedId(e,t,n,r){return e===null?gd(t)?q(function(e,t){return{code:Ip,exporter:e,id:t,message:`Could not resolve "${e}" from "${K(t)}"`}}(t,n)):(this.options.onLog(G,function(e,t){return{code:Ip,exporter:e,id:t,message:`"${e}" is imported by "${K(t)}", but could not be resolved – treating it as an external dependency.`,url:cp(`troubleshooting/#warning-treating-module-as-external-dependency`)}}(t,n)),{attributes:r,external:!0,id:t,meta:{},moduleSideEffects:this.hasModuleSideEffects(t,!0),resolvedBy:`rollup`,syntheticNamedExports:!1}):(e.external&&e.syntheticNamedExports&&this.options.onLog(G,function(e,t){return{code:`EXTERNAL_SYNTHETIC_EXPORTS`,exporter:e,message:`External "${e}" cannot have "syntheticNamedExports" enabled (imported by "${K(t)}").`}}(t,n)),e)}async loadEntryModule(e,t,n,r,i=!1,a){let o=await _C(e,n,this.options.preserveSymlinks,this.pluginDriver,this.resolveId,null,rf,!0,rf,a,this.options.fs);if(o==null)return q(r===null?function(e){return{code:Fp,message:`Could not resolve entry module "${K(e)}".`}}(e):function(e,t){return{code:Ap,message:`Module "${K(e)}" that should be implicitly loaded before "${K(t)}" could not be resolved.`}}(e,r));let s=typeof o==`object`&&o.external;return!1===o||s?q(r===null?s&&i?{code:`EXTERNAL_MODULES_CANNOT_BE_INCLUDED_IN_MANUAL_CHUNKS`,message:`"${e}" cannot be included in manualChunks because it is resolved as an external module by the "external" option or plugins.`}:function(e){return{code:Fp,message:`Entry module "${K(e)}" cannot be external.`}}(e):function(e,t){return{code:Ap,message:`Module "${K(e)}" that should be implicitly loaded before "${K(t)}" cannot be external.`}}(e,r)):this.fetchModule(this.getResolvedIdWithDefaults(typeof o==`object`?o:{id:o},rf),void 0,t,!1)}async resolveDynamicImport(e,t,n,r){let i=await this.pluginDriver.hookFirstAndGetPlugin(`resolveDynamicImport`,[t,n,{attributes:r,importerAttributes:e.info.attributes}]),a=i&&i[0],o=a?i[1].name:void 0;if(typeof t!=`string`)return typeof a==`string`?a:a?this.getResolvedIdWithDefaults(yC(a,o),r):null;if(a==null){let i=e.resolvedIds[t];return i?(Vx(i.attributes,r)&&this.options.onLog(G,Gp(i.attributes,r,t,n)),i):e.resolvedIds[t]=this.handleInvalidResolvedId(await this.resolveId(t,e.id,rf,!1,r,e.info.attributes),t,e.id,r)}let s=this.getNormalizedResolvedIdWithoutDefaults(a,n,t);return this.handleInvalidResolvedId(this.getResolvedIdWithDefaults(s&&yC(s,o),r),t,n,r)}};function zC(e,t){return gd(e)?t?Cd(t,`..`,e):Cd(e):e}function BC(e,{fileName:t,name:n},r){t===null?n!==null&&(e.chunkNames.push({isUserDefined:r,name:n}),e.chunkNames.sort((e,t)=>e.name>t.name?1:-1)):e.chunkFileNames.add(t)}function VC(e,t,n){return!0===n||n===`ifRelativeSource`&&gd(t)||!hd(e)}async function HC(e){let[t,n]=await e;return Promise.all([...t,...n])}function UC(e,t,n,r,i,a,o,s,c){let l=o.sanitizeFileName(e||`asset`);return SS(xS(typeof o.assetFileNames==`function`?o.assetFileNames({get name(){return pm(`Accessing the "name" property of emitted assets when generating the file name is deprecated. Use the "names" property instead.`,bp,!1,c),e},names:t,get originalFileName(){return pm(`Accessing the "originalFileName" property of emitted assets when generating the file name is deprecated. Use the "originalFileNames" property instead.`,bp,!1,c),r},originalFileNames:i,source:n,type:`asset`}):o.assetFileNames,`output.assetFileNames`,{ext:()=>bd(l).slice(1),extname:()=>bd(l),hash:e=>a.slice(0,Math.min(Math.max(0,e||8),21)),name:()=>l.slice(0,Math.max(0,l.length-bd(l).length))}),s)}function WC(e,{bundle:t},n){t[yS].has(e.toLowerCase())?n(G,function(e){return{code:`FILE_NAME_CONFLICT`,message:`The emitted file "${e}" overwrites a previously emitted file of the same name.`}}(e)):t[e]=bS}let GC=/* @__PURE__ */ new Set([`chunk`,`asset`,`prebuilt-chunk`]);function KC(e,t,n){if(!(typeof e==`string`||e instanceof Uint8Array)){let e=t.fileName||t.name||n;return q(fm(`Could not set source for ${typeof e==`string`?`asset "${e}"`:`unnamed asset`}, asset source needs to be a string, Uint8Array or Buffer.`))}return e}var qC=class{constructor(e,t,n){this.graph=e,this.options=t,this.facadeChunkByModule=null,this.nextIdBase=1,this.output=null,this.outputFileEmitters=[],this.emitFile=e=>function(e){return!!(e&&GC.has(e.type))}(e)?e.type===`prebuilt-chunk`?this.emitPrebuiltChunk(e):function(e){let t=e.fileName||e.name;return!t||typeof t==`string`&&!ap(t)}(e)?e.type===`chunk`?this.emitChunk(e):this.emitAsset(e):q(fm(`The "fileName" or "name" properties of emitted chunks and assets must be strings that are neither absolute nor relative paths, received "${e.fileName||e.name}".`)):q(fm(`Emitted files must be of type "asset", "chunk" or "prebuilt-chunk", received "${e&&e.type}".`)),this.finaliseAssets=()=>{for(let[e,t]of this.filesByReferenceId)if(t.type===`asset`&&typeof t.fileName!=`string`)return q(Lp(t.name||e))},this.getFileName=e=>{let t=this.filesByReferenceId.get(e);return t?t.type===`chunk`?(n=t,r=this.facadeChunkByModule,n.fileName?n.fileName:r?r.get(n.module).getFileName():q({code:`CHUNK_NOT_GENERATED`,message:`Plugin error - Unable to get file name for emitted chunk "${n.fileName||n.name}". You can only get file names once chunks have been generated after the "renderStart" hook.`})):t.type===`prebuilt-chunk`?t.fileName:function(e,t){return typeof e.fileName==`string`?e.fileName:q({code:`ASSET_NOT_FINALISED`,message:`Plugin error - Unable to get file name for asset "${e.name||t}". Ensure that the source is set and that generate is called first. If you reference assets via import.meta.ROLLUP_FILE_URL_<referenceId>, you need to either have set their source after "renderStart" or need to provide an explicit "fileName" when emitting them.`})}(t,e):q({code:`FILE_NOT_FOUND`,message:`Plugin error - Unable to get file name for unknown file "${e}".`});var n,r},this.setAssetSource=(e,t)=>{let n=this.filesByReferenceId.get(e);if(!n)return q({code:`ASSET_NOT_FOUND`,message:`Plugin error - Unable to set the source for unknown asset "${e}".`});if(n.type!==`asset`)return q(fm(`Asset sources can only be set for emitted assets but "${e}" is an emitted chunk.`));if(n.source!==void 0)return q({code:`ASSET_SOURCE_ALREADY_SET`,message:`Unable to set the source for asset "${n.name||e}", source already set.`});let r=KC(t,n,e);if(this.output)this.finalizeAdditionalAsset(n,r,this.output);else{n.source=r;for(let e of this.outputFileEmitters)e.finalizeAdditionalAsset(n,r,e.output)}},this.setChunkInformation=e=>{this.facadeChunkByModule=e},this.setOutputBundle=(e,t)=>{let n=nC[t.hashCharacters],r=this.output={bundle:e,fileNamesBySourceHash:/* @__PURE__ */ new Map,getHash:n,outputOptions:t};for(let e of this.filesByReferenceId.values())e.fileName&&WC(e.fileName,r,this.options.onLog);let i=/* @__PURE__ */ new Map;for(let e of this.filesByReferenceId.values())e.type===`asset`&&e.source!==void 0?e.fileName?this.finalizeAdditionalAsset(e,e.source,r):sf(i,n(e.source),lf).push(e):e.type===`prebuilt-chunk`&&(this.output.bundle[e.fileName]=this.createPrebuiltChunk(e));for(let[e,t]of i)this.finalizeAssetsWithSameSource(t,e,r)},this.filesByReferenceId=n?new Map(n.filesByReferenceId):/* @__PURE__ */ new Map,n?.addOutputFileEmitter(this)}addOutputFileEmitter(e){this.outputFileEmitters.push(e)}assignReferenceId(e,t){let n=t;do n=tC(n).slice(0,8).replaceAll(`-`,`$`);while(this.filesByReferenceId.has(n)||this.outputFileEmitters.some(({filesByReferenceId:e})=>e.has(n)));e.referenceId=n,this.filesByReferenceId.set(n,e);for(let{filesByReferenceId:t}of this.outputFileEmitters)t.set(n,e);return n}createPrebuiltChunk(e){return{code:e.code,dynamicImports:[],exports:e.exports||[],facadeModuleId:null,fileName:e.fileName,implicitlyLoadedBefore:[],importedBindings:{},imports:[],isDynamicEntry:!1,isEntry:!1,isImplicitEntry:!1,map:e.map||null,moduleIds:[],modules:{},name:e.fileName,preliminaryFileName:e.fileName,referencedFiles:[],sourcemapFileName:e.sourcemapFileName||null,type:`chunk`}}emitAsset(e){let t=e.source===void 0?void 0:KC(e.source,e,null),n=e.originalFileName||null;typeof n==`string`&&(this.graph.watchFiles[n]=!0);let r={fileName:e.fileName,name:e.name,needsCodeReference:!!e.needsCodeReference,originalFileName:n,referenceId:``,source:t,type:`asset`},i=this.assignReferenceId(r,e.fileName||e.name||String(this.nextIdBase++));if(this.output)this.emitAssetWithReferenceId(r,this.output);else for(let e of this.outputFileEmitters)e.emitAssetWithReferenceId(r,e.output);return i}emitAssetWithReferenceId(e,t){let{fileName:n,source:r}=e;n&&WC(n,t,this.options.onLog),r!==void 0&&this.finalizeAdditionalAsset(e,r,t)}emitChunk(e){if(this.graph.phase>Mx.LOAD_AND_PARSE)return q({code:`INVALID_ROLLUP_PHASE`,message:`Cannot emit chunks after module loading has finished.`});if(typeof e.id!=`string`)return q(fm(`Emitted chunks need to have a valid string id, received "${e.id}"`));let t={fileName:e.fileName,module:null,name:e.name||e.id,referenceId:``,type:`chunk`};return this.graph.moduleLoader.emitChunk(e).then(e=>t.module=e).catch(()=>{}),this.assignReferenceId(t,e.id)}emitPrebuiltChunk(e){if(typeof e.code!=`string`)return q(fm(`Emitted prebuilt chunks need to have a valid string code, received "${e.code}".`));if(typeof e.fileName!=`string`||ap(e.fileName))return q(fm(`The "fileName" property of emitted prebuilt chunks must be strings that are neither absolute nor relative paths, received "${e.fileName}".`));let t={code:e.code,exports:e.exports,fileName:e.fileName,map:e.map,referenceId:``,type:`prebuilt-chunk`},n=this.assignReferenceId(t,t.fileName);return this.output&&(this.output.bundle[t.fileName]=this.createPrebuiltChunk(t)),n}finalizeAdditionalAsset(e,t,{bundle:n,fileNamesBySourceHash:r,getHash:i,outputOptions:a}){let{fileName:o,name:s,needsCodeReference:c,originalFileName:l,referenceId:u}=e;if(!o){let e=i(t);o=r.get(e),o||(o=UC(s,s?[s]:[],t,l,l?[l]:[],e,a,n,this.options),r.set(e,o))}let d={...e,fileName:o,source:t};this.filesByReferenceId.set(u,d);let f=n[o];if(f?.type===`asset`)f.needsCodeReference&&=c,s&&f.names.push(s),l&&f.originalFileNames.push(l);else{let{options:e}=this;n[o]={fileName:o,get name(){return pm(`Accessing the "name" property of emitted assets in the bundle is deprecated. Use the "names" property instead.`,bp,!1,e),s},names:s?[s]:[],needsCodeReference:c,get originalFileName(){return pm(`Accessing the "originalFileName" property of emitted assets in the bundle is deprecated. Use the "originalFileNames" property instead.`,bp,!1,e),l},originalFileNames:l?[l]:[],source:t,type:`asset`}}}finalizeAssetsWithSameSource(e,t,{bundle:n,fileNamesBySourceHash:r,outputOptions:i}){let{names:a,originalFileNames:o}=function(e){let t=[],n=[];for(let{name:r,originalFileName:i}of e)typeof r==`string`&&t.push(r),i&&n.push(i);return n.sort(),t.sort((e,t)=>e.length-t.length||(e>t?1:e===t?0:-1)),{names:t,originalFileNames:n}}(e),s,c=``,l=!0;for(let r of e){l&&=r.needsCodeReference;let e=UC(r.name,a,r.source,r.originalFileName,o,t,i,n,this.options);(!c||e.length<c.length||e.length===c.length&&e<c)&&(c=e,s=r)}r.set(t,c);for(let t of e){let e={...t,fileName:c};this.filesByReferenceId.set(t.referenceId,e)}let{options:u}=this;n[c]={fileName:c,get name(){return pm(`Accessing the "name" property of emitted assets in the bundle is deprecated. Use the "names" property instead.`,bp,!1,u),s.name},names:a,needsCodeReference:l,get originalFileName(){return pm(`Accessing the "originalFileName" property of emitted assets in the bundle is deprecated. Use the "originalFileNames" property instead.`,bp,!1,u),s.originalFileName},originalFileNames:o,source:s.source,type:`asset`}}};function JC(e,t,n,r,i){return tp[e]<tp[i]?Om:(i,a)=>{a!=null&&n(G,{code:`INVALID_LOG_POSITION`,message:`Plugin "${r}" tried to add a file position to a log or warning. This is only supported in the "transform" hook at the moment and will be ignored.`}),(i=wC(i)).code&&!i.pluginCode&&(i.pluginCode=i.code),i.code=t,i.plugin=r,n(e,i)}}let YC=wu;function XC(e,t,n,r,i,a){let{logLevel:o,onLog:s}=r,c,l=!0;if(typeof e.cacheKey!=`string`&&(e.name.startsWith(MC)||e.name.startsWith(NC)||a.has(e.name)?l=!1:a.add(e.name)),t){if(l){let n=e.cacheKey||e.name;d=t[n]||(t[n]=Object.create(null)),c={delete:e=>delete d[e],get(e){let t=d[e];if(t)return t[0]=0,t[1]},has(e){let t=d[e];return!!t&&(t[0]=0,!0)},set(e,t){d[e]=[0,t]}}}else u=e.name,c={delete:()=>FC(u),get:()=>FC(u),has:()=>FC(u),set:()=>FC(u)}}else c=PC;var u,d;return{addWatchFile(e){n.watchFiles[e]=!0},cache:c,debug:JC(ep,`PLUGIN_LOG`,s,e.name,o),emitFile:i.emitFile.bind(i),error:t=>q(cm(wC(t),e.name)),fs:r.fs,getFileName:i.getFileName,getModuleIds:()=>n.modulesById.keys(),getModuleInfo:n.getModuleInfo,getWatchFiles:()=>Object.keys(n.watchFiles),info:JC($f,`PLUGIN_LOG`,s,e.name,o),load:e=>n.moduleLoader.preloadModule(e),meta:{rollupVersion:YC,watchMode:n.watchMode},parse:Lx,resolve:(t,r,{attributes:i,custom:a,isEntry:o,skipSelf:s,importerAttributes:c}=nf)=>(s??=!0,n.moduleLoader.resolveId(t,r,a,o,i||rf,c,s?[{importer:r,plugin:e,source:t}]:null)),setAssetSource:i.setAssetSource,warn:JC(G,`PLUGIN_WARNING`,s,e.name,o)}}function ZC(e){return Array.isArray(e)?e.filter(Boolean):e?[e]:[]}function QC(e){if(e instanceof RegExp)return t=>{let n=_d(t),r=e.test(n);return e.lastIndex=0,r};let t=fy(function(e,t){return e.startsWith(`**`)||hd(e)?_d(e):_d(Cd(t,e))}(e,process.cwd()),{dot:!0});return e=>{let n=_d(e);return t(n)}}function $C(e){return e instanceof RegExp?t=>{let n=e.test(t);return e.lastIndex=0,n}:t=>t.includes(e)}function ew(e,t){if(e||t)return n=>!e?.some(e=>e(n))&&(!!t?.some(e=>e(n))||!(t&&t.length>0))}function tw(e){return typeof e==`string`||e instanceof RegExp?{include:[e]}:Array.isArray(e)?{include:e}:{exclude:e.exclude?ZC(e.exclude):void 0,include:e.include?ZC(e.include):void 0}}function nw(e){if(!e)return;let{exclude:t,include:n}=tw(e),r=t?.map(QC),i=n?.map(QC);return ew(r,i)}function rw(e,t){if(!e&&!t)return;let n=nw(e),r=function(e){if(!e)return;let{exclude:t,include:n}=tw(e),r=t?.map($C),i=n?.map($C);return ew(r,i)}(t);return(e,t)=>{let i=!0;return n&&(i&&=n(e)),!!i&&(r&&(i&&=r(t)),i)}}let iw=Object.keys({buildEnd:1,buildStart:1,closeBundle:1,closeWatcher:1,load:1,moduleParsed:1,onLog:1,options:1,resolveDynamicImport:1,resolveId:1,shouldTransformCachedModule:1,transform:1,watchChange:1});var aw=class e{constructor(e,t,n,r,i){this.graph=e,this.options=t,this.pluginCache=r,this.sortedPlugins=/* @__PURE__ */ new Map,this.unfulfilledActions=/* @__PURE__ */ new Set,this.compiledPluginFilters={idOnlyFilter:/* @__PURE__ */ new WeakMap,transformFilter:/* @__PURE__ */ new WeakMap},this.fileEmitter=new qC(e,t,i&&i.fileEmitter),this.emitFile=this.fileEmitter.emitFile.bind(this.fileEmitter),this.getFileName=this.fileEmitter.getFileName.bind(this.fileEmitter),this.finaliseAssets=this.fileEmitter.finaliseAssets.bind(this.fileEmitter),this.setChunkInformation=this.fileEmitter.setChunkInformation.bind(this.fileEmitter),this.setOutputBundle=this.fileEmitter.setOutputBundle.bind(this.fileEmitter),this.plugins=[...i?i.plugins:[],...n];let a=/* @__PURE__ */ new Set;if(this.pluginContexts=new Map(this.plugins.map(n=>[n,XC(n,r,e,t,this.fileEmitter,a)])),i)for(let e of n)for(let n of iw)n in e&&t.onLog(G,Jp(e.name,n))}createOutputPluginDriver(t){return new e(this.graph,this.options,t,this.pluginCache,this)}getUnfulfilledHookActions(){return this.unfulfilledActions}hookFirst(e,t,n,r){return this.hookFirstAndGetPlugin(e,t,n,r).then(e=>e&&e[0])}async hookFirstAndGetPlugin(e,t,n,r){for(let i of this.getSortedPlugins(e)){if(r?.has(i))continue;let a=await this.runHook(e,t,i,n);if(a!=null)return[a,i]}return null}hookFirstSync(e,t,n){for(let r of this.getSortedPlugins(e)){let i=this.runHookSync(e,t,r,n);if(i!=null)return i}return null}async hookParallel(e,t,n){let r=[];for(let i of this.getSortedPlugins(e))i[e].sequential?(await Promise.all(r),r.length=0,await this.runHook(e,t,i,n)):r.push(this.runHook(e,t,i,n));await Promise.all(r)}hookReduceArg0(e,[t,...n],r,i){let a=Promise.resolve(t);for(let t of this.getSortedPlugins(e))a=a.then(a=>this.runHook(e,[a,...n],t,i).then(e=>r.call(this.pluginContexts.get(t),a,e,t)));return a}hookReduceArg0Sync(e,[t,...n],r,i){for(let a of this.getSortedPlugins(e)){let o=[t,...n],s=this.runHookSync(e,o,a,i);t=r.call(this.pluginContexts.get(a),t,s,a)}return t}async hookReduceValue(e,t,n,r){let i=[],a=[];for(let t of this.getSortedPlugins(e,cw))t[e].sequential?(i.push(...await Promise.all(a)),a.length=0,i.push(await this.runHook(e,n,t))):a.push(this.runHook(e,n,t));return i.push(...await Promise.all(a)),i.reduce(r,await t)}hookReduceValueSync(e,t,n,r,i){let a=t;for(let t of this.getSortedPlugins(e)){let o=this.runHookSync(e,n,t,i);a=r.call(this.pluginContexts.get(t),a,o,t)}return a}hookSeq(e,t,n){let r=Promise.resolve();for(let i of this.getSortedPlugins(e))r=r.then(()=>this.runHook(e,t,i,n));return r.then(lw)}getSortedPlugins(e,t){return sf(this.sortedPlugins,e,()=>ow(e,this.plugins,t))}runHook(e,t,n,r){let i=n[e],a=typeof i==`object`?i.handler:i;if(typeof i==`object`&&`filter`in i&&i.filter){if(e===`transform`){let e=i.filter,n=t,r=sf(this.compiledPluginFilters.transformFilter,e,()=>rw(e.id,e.code));if(r&&!r(n[1],n[0]))return Promise.resolve()}else if(e===`resolveId`||e===`load`){let e=i.filter,n=t,r=sf(this.compiledPluginFilters.idOnlyFilter,e,()=>function(e){let t=nw(e);return t?e=>!!t(e):void 0}(e.id));if(r&&!r(n[0]))return Promise.resolve()}}let o=this.pluginContexts.get(n);r&&(o=r(o,n));let s=null;return Promise.resolve().then(()=>{if(typeof a!=`function`)return a;let r=a.apply(o,t);return r?.then?(s=[n.name,e,t],this.unfulfilledActions.add(s),Promise.resolve(r).then(e=>(this.unfulfilledActions.delete(s),e))):r}).catch(t=>(s!==null&&this.unfulfilledActions.delete(s),q(cm(t,n.name,{hook:e}))))}runHookSync(e,t,n,r){let i=n[e],a=typeof i==`object`?i.handler:i,o=this.pluginContexts.get(n);r&&(o=r(o,n));try{return a.apply(o,t)}catch(t){return q(cm(t,n.name,{hook:e}))}}};function ow(e,t,n=sw){let r=[],i=[],a=[];for(let o of t){let t=o[e];if(t){if(typeof t==`object`){if(n(t.handler,e,o),t.order===`pre`){r.push(o);continue}if(t.order===`post`){a.push(o);continue}}else n(t,e,o);i.push(o)}}return[...r,...i,...a]}function sw(e,t,n){typeof e!=`function`&&q(function(e,t){return{code:Op,hook:e,message:`Error running plugin hook "${e}" for plugin "${t}", expected a function hook or an object with a "handler" function.`,plugin:t}}(t,n.name))}function cw(e,t,n){if(typeof e!=`string`&&typeof e!=`function`)return q(function(e,t){return{code:Op,hook:e,message:`Error running plugin hook "${e}" for plugin "${t}", expected a string, a function hook or an object with a "handler" string or function.`,plugin:t}}(t,n.name))}function lw(){}var uw=class{constructor(e){this.maxParallel=e,this.queue=[],this.workerCount=0}run(e){return new Promise((t,n)=>{this.queue.push({reject:n,resolve:t,task:e}),this.work()})}async work(){if(this.workerCount>=this.maxParallel)return;let e;for(this.workerCount++;e=this.queue.shift();){let{reject:t,resolve:n,task:r}=e;try{n(await r())}catch(e){t(e)}}this.workerCount--}},dw=class{constructor(e,t){if(this.options=e,this.astLru=function(e){var t,n,r;function i(e,i){++t>5&&(r=n,a(1),++t),n[e]=i}function a(e){t=0,n=Object.create(null),e||(r=Object.create(null))}return a(),{clear:a,has:function(e){return n[e]!==void 0||r[e]!==void 0},get:function(e){var t=n[e];return t===void 0?(t=r[e])===void 0?void 0:(i(e,t),t):t},set:function(e,t){n[e]===void 0?i(e,t):n[e]=t}}}(5),this.cachedModules=/* @__PURE__ */ new Map,this.deoptimizationTracker=new Tf,this.entryModules=[],this.modulesById=/* @__PURE__ */ new Map,this.needsTreeshakingPass=!1,this.newlyIncludedVariableInits=/* @__PURE__ */ new Set,this.phase=Mx.LOAD_AND_PARSE,this.scope=new gC,this.watchFiles=Object.create(null),this.watchMode=!1,this.externalModules=[],this.implicitEntryModules=[],this.modules=[],this.getModuleInfo=e=>{let t=this.modulesById.get(e);return t?t.info:null},!1!==e.cache){if(e.cache?.modules)for(let t of e.cache.modules)this.cachedModules.set(t.id,t);this.pluginCache=e.cache?.plugins||Object.create(null);for(let e in this.pluginCache){let t=this.pluginCache[e];for(let e of Object.values(t))e[0]++}}t&&(this.watchMode=!0,t({closeWatcher:()=>this.pluginDriver.hookParallel(`closeWatcher`,[]),watchChange:(...e)=>this.pluginDriver.hookParallel(`watchChange`,e)})),this.pluginDriver=new aw(this,e,e.plugins,this.pluginCache),this.moduleLoader=new RC(this,this.modulesById,this.options,this.pluginDriver),this.fileOperationQueue=new uw(e.maxParallelFileOps),this.pureFunctions=(({treeshake:e})=>{let t=Object.create(null);for(let n of e?e.manualPureFunctions:[]){let e=t;for(let t of n.split(`.`))e=e[t]||=Object.create(null);e[mm]=!0}return t})(e)}async build(){Yx(`generate module graph`,2),await this.generateModuleGraph(),Xx(`generate module graph`,2),Yx(`sort and bind modules`,2),this.phase=Mx.ANALYSE,this.sortAndBindModules(),Xx(`sort and bind modules`,2),Yx(`mark included statements`,2),this.includeStatements(),Xx(`mark included statements`,2),this.phase=Mx.GENERATE}getCache(){for(let e in this.pluginCache){let t=this.pluginCache[e],n=!0;for(let[e,r]of Object.entries(t))r[0]>=this.options.experimentalCacheExpiry?delete t[e]:n=!1;n&&delete this.pluginCache[e]}return{modules:this.modules.map(e=>e.toJSON()),plugins:this.pluginCache}}async generateModuleGraph(){var e;if({entryModules:this.entryModules,implicitEntryModules:this.implicitEntryModules}=await this.moduleLoader.addEntryModules((e=this.options.input,Array.isArray(e)?e.map(e=>({fileName:null,id:e,implicitlyLoadedAfter:[],importer:void 0,name:null})):Object.entries(e).map(([e,t])=>({fileName:null,id:t,implicitlyLoadedAfter:[],importer:void 0,name:e}))),!0),this.entryModules.length===0)throw Error(`You must supply options.input to rollup`);for(let e of this.modulesById.values())e.cacheInfoGetters(),e instanceof nS?this.modules.push(e):this.externalModules.push(e)}includeStatements(){let e=[...this.entryModules,...this.implicitEntryModules];for(let t of e)Dm(t);if(this.options.treeshake){let t=1;this.newlyIncludedVariableInits.clear();do{Yx(`treeshaking pass ${t}`,3),this.needsTreeshakingPass=!1;for(let e of this.modules)if(e.isExecuted){e.hasTreeShakingPassStarted=!0,e.info.moduleSideEffects===`no-treeshake`?e.includeAllInBundle():e.include();for(let e of this.newlyIncludedVariableInits)this.newlyIncludedVariableInits.delete(e),e.include(Pf(),!1)}if(t===1)for(let t of e)!1!==t.preserveSignature&&(t.includeAllExports(),this.needsTreeshakingPass=!0);Xx(`treeshaking pass `+t++,3)}while(this.needsTreeshakingPass)}else for(let e of this.modules)e.includeAllInBundle();for(let e of this.externalModules)e.warnUnusedImports();for(let e of this.implicitEntryModules)for(let t of e.implicitlyLoadedAfter)t.info.isEntry||t.isIncluded()||q(tm(t))}sortAndBindModules(){let{orderedModules:e,cyclePaths:t}=JS(this.entryModules);for(let e of t)this.options.onLog(G,Bp(e));this.modules=e;for(let e of this.modules)e.bindReferences();this.warnForMissingExports()}warnForMissingExports(){for(let e of this.modules)for(let t of e.importDescriptions.values())if(t.name!==`*`&&t.phase!==`source`){let[n,r]=t.module.getVariableForExportName(t.name,{importChain:[e.id]});n||e.log(G,em(Dd(t.name),e.id,t.module.id,!!r?.missingButExportExists),t.start)}}};function fw(e,t){return t()}let pw=wu;function mw(e,t,n,r){e=ow(`onLog`,e);let i=tp[r],a=(r,o,s=of)=>{if(Tp(o),!(tp[r]<i)){for(let t of e){if(s.has(t))continue;let{onLog:e}=t,c=e=>tp[e]<i?Om:n=>a(e,wC(n),new Set(s).add(t));if(!1===(`handler`in e?e.handler:e).call({debug:c(ep),error:e=>q(wC(e)),info:c($f),meta:{rollupVersion:pw,watchMode:n},warn:c(G)},r,o))return}t(r,o)}};return a}let hw=e=>()=>q(function(e){return{code:`NO_FS_IN_BROWSER`,message:`Cannot access the file system (via "${e}") when using the browser build of Rollup. Make sure you supply a plugin with custom resolveId and load hooks to Rollup.`,url:cp(`plugin-development/#a-simple-example`)}}(e)),gw=hw(`fs.appendFile`),_w=hw(`fs.copyFile`),vw=hw(`fs.mkdir`),yw=hw(`fs.mkdtemp`),bw=hw(`fs.readdir`),xw=hw(`fs.readFile`),Sw=hw(`fs.realpath`),Cw=hw(`fs.rename`),ww=hw(`fs.rmdir`),Tw=hw(`fs.stat`),Ew=hw(`fs.lstat`),Dw=hw(`fs.unlink`),Ow=hw(`fs.writeFile`);var kw=Object.freeze({__proto__:null,appendFile:gw,copyFile:_w,lstat:Ew,mkdir:vw,mkdtemp:yw,readFile:xw,readdir:bw,realpath:Sw,rename:Cw,rmdir:ww,stat:Tw,unlink:Dw,writeFile:Ow});let Aw=e=>!0===e.cache?void 0:e.cache?.cache||e.cache,jw=e=>{if(!0===e)return()=>!0;if(typeof e==`function`)return(t,...n)=>t[0]!==`\0`&&e(t,...n)||!1;if(e){let t=/* @__PURE__ */ new Set,n=[];for(let r of ZC(e))r instanceof RegExp?n.push(r):t.add(r);return(e,...r)=>t.has(e)||n.some(t=>t.global||t.sticky?e.search(t)!==-1:t.test(e))}return()=>!1},Mw=e=>{let t=e.input;return t==null?[]:typeof t==`string`?[t]:t},Nw=e=>{let t=e.jsx;if(!t)return!1;let n=AC(t,OC,`jsx`,up,`false, `),{factory:r,importSource:i,mode:a}=n;switch(a){case`automatic`:return{factory:r||`React.createElement`,importSource:i||`react`,jsxImportSource:n.jsxImportSource||`react/jsx-runtime`,mode:`automatic`};case`preserve`:return!i||r||n.fragment||q(Qp(`jsx`,up,`when preserving JSX and specifying an importSource, you also need to specify a factory or fragment`)),{factory:r||null,fragment:n.fragment||null,importSource:i||null,mode:`preserve`};default:return a&&a!==`classic`&&q(Qp(`jsx.mode`,up,`mode must be "automatic", "classic" or "preserve"`,a)),{factory:r||`React.createElement`,fragment:n.fragment||`React.Fragment`,importSource:i||null,mode:`classic`}}},Pw=e=>{let t=e.maxParallelFileOps;return typeof t==`number`?t<=0?1/0:t:1e3},Fw=(e,t)=>{let n=e.moduleContext;if(typeof n==`function`)return e=>n(e)??t;if(n){let e=Object.create(null);for(let[t,r]of Object.entries(n))e[Cd(t)]=r;return n=>e[n]??t}return()=>t},Iw=e=>{if(!1===e.treeshake)return!1;let t=AC(e.treeshake,DC,`treeshake`,`configuration-options/#treeshake`,`false, true, `);return{annotations:!1!==t.annotations,correctVarValueBeforeDeclaration:!0===t.correctVarValueBeforeDeclaration,manualPureFunctions:t.manualPureFunctions??af,moduleSideEffects:Lw(t.moduleSideEffects),propertyReadSideEffects:t.propertyReadSideEffects===`always`?`always`:!1!==t.propertyReadSideEffects,tryCatchDeoptimization:!1!==t.tryCatchDeoptimization,unknownGlobalSideEffects:!1!==t.unknownGlobalSideEffects}},Lw=e=>{if(typeof e==`boolean`)return()=>e;if(e===`no-external`)return(e,t)=>!t;if(typeof e==`function`)return(t,n)=>t[0]===`\0`||!1!==e(t,n);if(Array.isArray(e)){let t=new Set(e);return e=>t.has(e)}return e&&q(Qp(`treeshake.moduleSideEffects`,`configuration-options/#treeshake-modulesideeffects`,`please use one of false, "no-external", a function or an array`)),()=>!0},Rw=/[\u0000-\u001F"#$%&*+,:;<=>?[\]^`{|}\u007F]/g,zw=/^[a-z]:/i;function Bw(e){let t=zw.exec(e),n=t?t[0]:``;return n+e.slice(n.length).replace(Rw,`_`)}let Vw=(e,t,n)=>{let{file:r}=e;if(typeof r==`string`){if(t)return q(Qp(`output.file`,fp,`you must set "output.dir" instead of "output.file" when using the "output.preserveModules" option`));if(!Array.isArray(n.input))return q(Qp(`output.file`,fp,`you must set "output.dir" instead of "output.file" when providing named inputs`))}return r},Hw=e=>{let t=e.format;switch(t){case void 0:case`es`:case`esm`:case`module`:return`es`;case`cjs`:case`commonjs`:return`cjs`;case`system`:case`systemjs`:return`system`;case`amd`:case`iife`:case`umd`:return t;default:return q(Qp(`output.format`,mp,`Valid values are "amd", "cjs", "system", "es", "iife" or "umd"`,t))}},Uw=(e,t)=>{let n=e.inlineDynamicImports||!1,{input:r}=t;return n&&(Array.isArray(r)?r:Object.keys(r)).length>1?q(Qp(`output.inlineDynamicImports`,hp,`multiple inputs are not supported when "output.inlineDynamicImports" is true`)):n},Ww=(e,t,n)=>{let r=e.preserveModules||!1;if(r){if(t)return q(Qp(`output.inlineDynamicImports`,hp,`this option is not supported for "output.preserveModules"`));if(!1===n.preserveEntrySignatures)return q(Qp(`preserveEntrySignatures`,`configuration-options/#preserveentrysignatures`,`setting this option to false is not supported for "output.preserveModules"`))}return r},Gw=e=>{let{preserveModulesRoot:t}=e;if(t!=null)return Cd(t)},Kw=e=>{let t={autoId:!1,basePath:``,define:`define`,forceJsExtensionForImports:!1,...e.amd};return(t.autoId||t.basePath)&&t.id?q(Qp(`output.amd.id`,dp,`this option cannot be used together with "output.amd.autoId"/"output.amd.basePath"`)):t.basePath&&!t.autoId?q(Qp(`output.amd.basePath`,`configuration-options/#output-amd-basepath`,`this option only works with "output.amd.autoId"`)):t.autoId?{autoId:!0,basePath:t.basePath,define:t.define,forceJsExtensionForImports:t.forceJsExtensionForImports}:{autoId:!1,define:t.define,forceJsExtensionForImports:t.forceJsExtensionForImports,id:t.id}},qw=(e,t)=>{let n=e[t];return typeof n==`function`?n:()=>n||``},Jw=(e,t)=>{let{dir:n}=e;return typeof n==`string`&&typeof t==`string`?q(Qp(`output.dir`,fp,`you must set either "output.file" for a single-file build or "output.dir" when generating multiple chunks`)):n},Yw=(e,t)=>{let n=e.entryFileNames;return n??t.add(`entryFileNames`),n??`[name].js`};function Xw(e,t){let n=e.exports;if(n==null)t.add(`exports`);else if(![`default`,`named`,`none`,`auto`].includes(n))return q({code:Ep,message:`"output.exports" must be "default", "named", "none", "auto", or left unspecified (defaults to "auto"), received "${n}".`,url:cp(pp)});return n||`auto`}let Zw=(e,t)=>(e.externalImportAssertions!=null&&pm(`The "output.externalImportAssertions" option is deprecated. Use the "output.externalImportAttributes" option instead.`,`configuration-options/#output-externalimportattributes`,!0,t),e.externalImportAttributes??e.externalImportAssertions??!0),Qw=e=>{let t=AC(e.generatedCode,kC,`output.generatedCode`,`configuration-options/#output-generatedcode`,``);return{arrowFunctions:!0===t.arrowFunctions,constBindings:!0===t.constBindings,objectShorthand:!0===t.objectShorthand,reservedNamesAsProps:!1!==t.reservedNamesAsProps,symbols:!0===t.symbols}},$w=(e,t)=>{if(t)return``;let n=e.indent;return!1===n?``:n??!0},eT=/* @__PURE__ */ new Set([`compat`,`auto`,`esModule`,`default`,`defaultOnly`]),tT=e=>{let t=e.interop;if(typeof t==`function`){let e=Object.create(null),n=null;return r=>r===null?n||nT(n=t(r)):r in e?e[r]:nT(e[r]=t(r))}return t===void 0?()=>`default`:()=>nT(t)},nT=e=>eT.has(e)?e:q(Qp(`output.interop`,gp,`use one of ${Array.from(eT,e=>JSON.stringify(e)).join(`, `)}`,e)),rT=(e,t,n)=>{let r=e.manualChunks;if(r){if(t)return q(Qp(`output.manualChunks`,_p,`this option is not supported for "output.inlineDynamicImports"`));if(n)return q(Qp(`output.manualChunks`,_p,`this option is not supported for "output.preserveModules"`))}return r||{}},iT=(e,t,n)=>e.minifyInternalExports??(n||t===`es`||t===`system`),aT=(e,t)=>{let n=e.sourcemapFileNames;return n??t.add(`sourcemapFileNames`),n},oT=e=>{let{sourcemapBaseUrl:t}=e;if(t)return function(e){try{new URL(e)}catch{return!1}return!0}(t)?(n=t).endsWith(`/`)?n:n+`/`:q(Qp(`output.sourcemapBaseUrl`,`configuration-options/#output-sourcemapbaseurl`,`must be a valid URL, received ${JSON.stringify(t)}`));var n},sT=wu;function cT(e){return async function(e,t){let{options:n,unsetOptions:r}=await async function(e,t){if(!e)throw Error(`You must supply an options object to rollup`);let{options:n,unsetOptions:r}=await async function(e,t){let n=/* @__PURE__ */ new Set,r=e.context??`undefined`,i=await jC(e.plugins),a=e.logLevel||$f,o=mw(i,xC(e,a),t,a),s=e.strictDeprecations||!1,c=Pw(e),l={cache:Aw(e),context:r,experimentalCacheExpiry:e.experimentalCacheExpiry??10,experimentalLogSideEffects:e.experimentalLogSideEffects||!1,external:jw(e.external),fs:e.fs??kw,input:Mw(e),jsx:Nw(e),logLevel:a,makeAbsoluteExternalsRelative:e.makeAbsoluteExternalsRelative??`ifRelativeSource`,maxParallelFileOps:c,moduleContext:Fw(e,r),onLog:o,perf:e.perf||!1,plugins:i,preserveEntrySignatures:e.preserveEntrySignatures??`exports-only`,preserveSymlinks:e.preserveSymlinks||!1,shimMissingExports:e.shimMissingExports||!1,strictDeprecations:s,treeshake:Iw(e)};return EC(e,[...Object.keys(l),`onwarn`,`watch`],`input options`,o,/^(output)$/),{options:l,unsetOptions:n}}(await async function(e,t){let n=ow(`options`,await jC(e.plugins)),r=e.logLevel||$f,i=mw(n,xC(e,r),t,r);for(let a of n){let{name:n,options:o}=a,s=await(`handler`in o?o.handler:o).call({debug:JC(ep,`PLUGIN_LOG`,i,n,r),error:e=>q(cm(wC(e),n,{hook:`onLog`})),info:JC($f,`PLUGIN_LOG`,i,n,r),meta:{rollupVersion:sT,watchMode:t},warn:JC(G,`PLUGIN_WARNING`,i,n,r)},e);s&&(e=s)}return e}(e,t),t);return lT(n.plugins,MC),{options:n,unsetOptions:r}}(e,t!==null);(function(e){e.perf?(Wx=/* @__PURE__ */ new Map,Yx=Kx,Xx=qx,e.plugins=e.plugins.map(Qx)):(Yx=Om,Xx=Om)})(n),await async function(){await ky()}();let i=new dw(n,t),a=!1!==e.cache;e.cache&&=(n.cache=void 0,void 0),Yx(`BUILD`,1),await fw(i.pluginDriver,async()=>{try{Yx(`initialize`,2),await i.pluginDriver.hookParallel(`buildStart`,[n]),Xx(`initialize`,2),await i.build()}catch(e){let t=Object.keys(i.watchFiles);t.length>0&&(e.watchFiles=t);try{await i.pluginDriver.hookParallel(`buildEnd`,[e])}catch(t){let n=xp(Sp(e,t,`buildEnd`));throw await i.pluginDriver.hookParallel(`closeBundle`,[n]).catch(()=>{}),n}throw await i.pluginDriver.hookParallel(`closeBundle`,[e]).catch(()=>{}),e}try{await i.pluginDriver.hookParallel(`buildEnd`,[])}catch(e){throw await i.pluginDriver.hookParallel(`closeBundle`,[e]).catch(()=>{}),e}}),Xx(`BUILD`,1);let o={get cache(){return a?i.getCache():void 0},async close(){o.closed||(o.closed=!0,await i.pluginDriver.hookParallel(`closeBundle`,[]))},closed:!1,async[Symbol.asyncDispose](){await this.close()},generate:async e=>o.closed?q({code:`ALREADY_CLOSED`,message:`Bundle is already closed, no more calls to "generate" or "write" are allowed.`}):uT(!1,n,r,e,i),get watchFiles(){return Object.keys(i.watchFiles)},write:async e=>o.closed?q({code:`ALREADY_CLOSED`,message:`Bundle is already closed, no more calls to "generate" or "write" are allowed.`}):uT(!0,n,r,e,i)};return n.perf&&(o.getTimings=Jx),o}(e,null)}function lT(e,t){for(let[n,r]of e.entries())r.name||=`${t}${n+1}`}async function uT(e,t,n,r,i){let{options:a,outputPluginDriver:o,unsetOptions:s}=await async function(e,t,n,r){if(!e)throw Error(`You must supply an options object`);let i=await jC(e.plugins);lT(i,NC);let a=t.createOutputPluginDriver(i);return{...await dT(n,r,e,a),outputPluginDriver:a}}(r,i.pluginDriver,t,n);return fw(0,async()=>{let n=await new fC(a,s,t,o,i).generate(e);if(e){if(Yx(`WRITE`,1),!a.dir&&!a.file)return q({code:`MISSING_OPTION`,message:`You must specify "output.file" or "output.dir" for the build.`,url:cp(fp)});await Promise.all(Object.values(n).map(e=>i.fileOperationQueue.run(()=>async function(e,t,{fs:{mkdir:n,writeFile:r}}){let i=Cd(t.dir||yd(t.file),e.fileName);return await n(yd(i),{recursive:!0}),r(i,e.type===`asset`?e.source:e.code)}(e,a,t)))),await o.hookParallel(`writeBundle`,[a,n]),Xx(`WRITE`,1)}return r=n,{output:Object.values(r).filter(e=>Object.keys(e).length>0).sort((e,t)=>pT(e)-pT(t))};var r})}function dT(e,t,n,r){return async function(e,t,n){let r=new Set(n),i=e.compact||!1,a=Hw(e),o=Uw(e,t),s=Ww(e,o,t),c=Vw(e,s,t),l=Qw(e),u=Zw(e,t),d={amd:Kw(e),assetFileNames:e.assetFileNames??`assets/[name]-[hash][extname]`,banner:qw(e,`banner`),chunkFileNames:e.chunkFileNames??`[name]-[hash].js`,compact:i,dir:Jw(e,c),dynamicImportInCjs:e.dynamicImportInCjs??!0,entryFileNames:Yw(e,r),esModule:e.esModule??`if-default-prop`,experimentalMinChunkSize:e.experimentalMinChunkSize??1,exports:Xw(e,r),extend:e.extend||!1,externalImportAssertions:u,externalImportAttributes:u,externalLiveBindings:e.externalLiveBindings??!0,file:c,footer:qw(e,`footer`),format:a,freeze:e.freeze??!0,generatedCode:l,globals:e.globals||{},hashCharacters:e.hashCharacters??`base64`,hoistTransitiveImports:e.hoistTransitiveImports??!0,importAttributesKey:e.importAttributesKey??`assert`,indent:$w(e,i),inlineDynamicImports:o,interop:tT(e),intro:qw(e,`intro`),manualChunks:rT(e,o,s),minifyInternalExports:iT(e,a,i),name:e.name,noConflict:e.noConflict||!1,onlyExplicitManualChunks:e.onlyExplicitManualChunks||!1,outro:qw(e,`outro`),paths:e.paths||{},plugins:await jC(e.plugins),preserveModules:s,preserveModulesRoot:Gw(e),reexportProtoFromExternal:e.reexportProtoFromExternal??!0,sanitizeFileName:typeof e.sanitizeFileName==`function`?e.sanitizeFileName:!1===e.sanitizeFileName?e=>e:Bw,sourcemap:e.sourcemap||!1,sourcemapBaseUrl:oT(e),sourcemapDebugIds:e.sourcemapDebugIds||!1,sourcemapExcludeSources:e.sourcemapExcludeSources||!1,sourcemapFile:e.sourcemapFile,sourcemapFileNames:aT(e,r),sourcemapIgnoreList:typeof e.sourcemapIgnoreList==`function`?e.sourcemapIgnoreList:!1===e.sourcemapIgnoreList?()=>!1:e=>e.includes(`node_modules`),sourcemapPathTransform:e.sourcemapPathTransform,strict:e.strict??!0,systemNullSetters:e.systemNullSetters??!0,validate:e.validate||!1,virtualDirname:e.virtualDirname||`_virtual`};return EC(e,Object.keys(d),`output options`,t.onLog),{options:d,unsetOptions:r}}(r.hookReduceArg0Sync(`outputOptions`,[n],(e,t)=>t||e,e=>{let t=()=>e.error({code:`CANNOT_EMIT_FROM_OPTIONS_HOOK`,message:`Cannot emit files or set asset sources in the "outputOptions" hook, use the "renderStart" hook instead.`});return{...e,emitFile:t,setAssetSource:t}}),e,t)}var fT;function pT(e){return e.type===`asset`?fT.ASSET:e.isEntry?fT.ENTRY_CHUNK:fT.SECONDARY_CHUNK}Symbol.asyncDispose??=Symbol(`Symbol.asyncDispose`),function(e){e[e.ENTRY_CHUNK=0]=`ENTRY_CHUNK`,e[e.SECONDARY_CHUNK=1]=`SECONDARY_CHUNK`,e[e.ASSET=2]=`ASSET`}(fT||={}),(()=>{let e=async()=>{let e=await fetch(Rl).then(e=>e.text());return(0,eval)(e),self.svelte.compile},t=/* @__PURE__ */ new Map,n=/* @__PURE__ */ new Map,r=ql({initialContents:[],handleCacheMiss:async e=>(postMessage({type:`contentRequest`,vizId:e}),new Promise(n=>{t.set(e,n)}))}),i=Jl({initialMappings:{},handleCacheMiss:async e=>{let t=dl();return postMessage({type:`resolveSlugRequest`,slugKey:e,requestId:t}),new Promise(e=>{n.set(t,e)})}});addEventListener(`message`,async a=>{let o=a.data;switch(o.type){case`buildRequest`:{let{files:t,enableSourcemap:n,requestId:a,vizId:s}=o;try{let o={type:`buildResponse`,buildResult:await Cu({files:t,enableSourcemap:n,rollup:cT,getSvelteCompiler:e,vizCache:r,vizId:s,slugCache:i}),requestId:a};postMessage(o)}catch(e){let t={type:`buildResponse`,error:``+e,requestId:a};postMessage(t)}break}case`contentResponse`:{let e=t.get(o.vizId);e&&(e(o.content),t.delete(o.vizId));break}case`invalidateVizCacheRequest`:{let{changedVizIds:e}=o;for(let t of e)r.invalidate(t);postMessage({type:`invalidateVizCacheResponse`});break}case`resolveSlugResponse`:{let e=n.get(o.requestId);e&&(e(o.vizId),n.delete(o.requestId));break}}})})()})();