@bsv/overlay-express 0.8.2-rc1 → 0.8.2

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.
@@ -1,7 +1,12 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ /* eslint-disable */
7
+ const generalGuide_md_js_1 = __importDefault(require("./generalGuide.md.js"));
3
8
  exports.default = (config = {}) => {
4
- const { faviconUrl = 'https://bsvblockchain.org/favicon.ico', backgroundColor = '#282E33', primaryColor = '#B6C2CF', secondaryColor = '#579DFF', fontFamily = 'Arial, sans-serif', headingFontFamily = 'Arial Black, Gadget, sans-serif', additionalStyles = '', sectionBackgroundColor = '#323940', linkColor = '#579DFF', hoverColor = '#3A4147', borderColor = '#B6C2CF', } = config;
9
+ const { host = '', faviconUrl = 'https://bsvblockchain.org/favicon.ico', backgroundColor = '#191919', primaryTextColor = '#f0f0f0', primaryColor = '#3b6efb', secondaryColor = '#001242', fontFamily = 'Helvetica, Arial, sans-serif', headingFontFamily = 'Helvetica, Arial, sans-serif', additionalStyles = '', sectionBackgroundColor = '#323940', linkColor = '#579DFF', hoverColor = '#3A4147', borderColor = '#B6C2CF', secondaryBackgroundColor = '#f8f8f8', secondaryTextColor = '#0e0e0e', defaultContent = generalGuide_md_js_1.default } = config;
5
10
  return `<!DOCTYPE html>
6
11
  <html>
7
12
  <head>
@@ -20,6 +25,9 @@ exports.default = (config = {}) => {
20
25
  --link-color: ${linkColor};
21
26
  --hover-color: ${hoverColor};
22
27
  --border-color: ${borderColor};
28
+ --secondary-background-color: ${secondaryBackgroundColor};
29
+ --secondary-text-color: ${secondaryTextColor};
30
+ --primary-text-color: ${primaryTextColor};
23
31
  }
24
32
 
25
33
  body {
@@ -27,13 +35,24 @@ exports.default = (config = {}) => {
27
35
  background-color: var(--background-color);
28
36
  margin: 0;
29
37
  padding: 0;
30
- color: var(--primary-color);
38
+ color: var(--primary-text-color);
31
39
  }
32
40
 
33
41
  h1, h2, h3 {
34
42
  font-family: var(--heading-font-family);
35
43
  }
36
44
 
45
+ p {
46
+ line-height: 1.5;
47
+ }
48
+
49
+ .welcome {
50
+ background-clip: text;
51
+ color: transparent;
52
+ background-image: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
53
+ cursor: pointer;
54
+ }
55
+
37
56
  a {
38
57
  color: var(--link-color);
39
58
  text-decoration: none;
@@ -50,69 +69,57 @@ exports.default = (config = {}) => {
50
69
  overflow: hidden;
51
70
  }
52
71
 
53
- .column_left, .column_right {
72
+ .column_right {
54
73
  padding: 1.5em;
55
74
  overflow-y: auto;
56
75
  }
57
76
 
58
77
  .column_left {
59
- width: 35%;
60
- background-color: var(--section-background-color);
78
+ padding: 15px 15px 15px 35px;
79
+ overflow-y: auto;
80
+ width: 360px;
81
+ background-color: var(--secondary-background-color);
82
+ color: var(--secondary-text-color);
61
83
  }
62
84
 
63
85
  .column_right {
64
- width: 65%;
65
- border-left: 1px solid var(--border-color);
86
+ width: calc(100% - 360px);
66
87
  }
67
88
 
68
- .docs_heading {
69
- text-align: center;
70
- padding-bottom: 0.5em;
71
- border-bottom: 1px solid var(--border-color);
89
+ #documentation_container {
90
+ padding: 0 8em;
91
+ margin: 0;
72
92
  }
73
93
 
74
94
  /* List styles */
75
95
  .list-item {
76
- display: flex;
77
- align-items: center;
78
- margin: 0.5em 0;
96
+ margin: 0;
79
97
  }
80
98
 
81
99
  .list-item a {
82
- display: flex;
83
- align-items: center;
100
+ display: block;
84
101
  width: 100%;
85
- padding: 0.5em;
102
+ padding: 0.5em 0.75em;
86
103
  background-color: transparent;
87
104
  border-radius: 5px;
88
105
  transition: background-color 0.3s;
89
106
  text-decoration: none;
90
107
  color: inherit;
91
- }
92
-
93
- .list-item a:hover {
94
- background-color: var(--hover-color);
108
+ font-weight: 500;
95
109
  cursor: pointer;
96
110
  }
97
111
 
98
- .list-icon {
99
- width: 40px;
100
- height: 40px;
101
- margin-right: 1em;
102
- }
103
-
104
- .list-text {
105
- display: flex;
106
- flex-direction: column;
107
- }
108
-
109
- .list-title {
110
- font-weight: bold;
112
+ .list-item a:hover, .list-item a.active {
113
+ background: var(--primary-color) linear-gradient(90deg, var(--primary-color), var(--secondary-color));
114
+ color: white;
115
+ cursor: pointer;
116
+ border-radius: 8px 0 0 8px;
111
117
  }
112
-
113
- .list-description {
114
- font-size: 0.9em;
115
- color: var(--secondary-color);
118
+
119
+ ul#manager_list, ul#provider_list, ul#external_list {
120
+ list-style-type: none;
121
+ padding-left: 0;
122
+ margin-top: 0.5em;
116
123
  }
117
124
 
118
125
  /* Detail styles */
@@ -145,41 +152,186 @@ exports.default = (config = {}) => {
145
152
  color: var(--link-color);
146
153
  }
147
154
 
155
+ /* Code highlighting styles */
156
+ pre {
157
+ position: relative;
158
+ padding: 1em;
159
+ border-radius: 5px;
160
+ overflow: auto;
161
+ background-color: #282c34;
162
+ margin: 1em 0;
163
+ }
164
+
165
+ pre[data-language]:before {
166
+ content: attr(data-language);
167
+ position: absolute;
168
+ top: 0;
169
+ right: 0;
170
+ padding: 0.25em 0.5em;
171
+ font-size: 0.75em;
172
+ color: #abb2bf;
173
+ background-color: #3e4451;
174
+ border-radius: 0 0 0 4px;
175
+ text-transform: uppercase;
176
+ }
177
+
178
+ code {
179
+ font-family: Menlo, Monaco, 'Courier New', monospace;
180
+ font-size: 0.9em;
181
+ }
182
+
183
+ /* Inline code */
184
+ p code, li code {
185
+ background-color: #3e4451;
186
+ padding: 0.2em 0.4em;
187
+ border-radius: 3px;
188
+ white-space: nowrap;
189
+ }
190
+
148
191
  /* Responsive design */
149
192
  @media screen and (max-width: 850px) {
150
193
  .main {
151
194
  flex-direction: column;
152
195
  }
153
196
 
197
+ .column_left {
198
+ max-height: 30vh;
199
+ }
200
+
154
201
  .column_left, .column_right {
155
- width: 100%;
202
+ width: 90%;
203
+ margin: 0;
204
+ padding: 0 5%;
156
205
  }
157
206
 
158
- .column_right {
159
- border-left: none;
160
- border-top: 1px solid var(--border-color);
207
+ #documentation_container {
208
+ margin: 0;
209
+ padding: 0;
161
210
  }
162
211
  }
163
212
 
164
213
  ${additionalStyles}
165
214
  </style>
166
215
  <script src="https://cdn.jsdelivr.net/npm/showdown@2.0.3/dist/showdown.min.js"></script>
216
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.7.0/build/styles/atom-one-dark.min.css">
217
+ <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.7.0/build/highlight.min.js"></script>
167
218
  <script>
168
219
  const faviconUrl = '${faviconUrl}';
169
220
 
170
221
  const showdown = window.showdown;
222
+ window.hljs.configure({ languages: ['typescript', 'javascript', 'json', 'html', 'css', 'bash', 'markdown'] });
223
+
171
224
 
172
225
  const Convert = (md) => {
173
- let converter = new showdown.Converter();
174
- return converter.makeHtml(md);
226
+ let converter = new showdown.Converter({
227
+ ghCompatibleHeaderId: true,
228
+ simpleLineBreaks: true,
229
+ ghMentions: true,
230
+ tables: true,
231
+ tasklists: true,
232
+ strikethrough: true,
233
+ parseImgDimensions: true,
234
+ simplifiedAutoLink: true
235
+ });
236
+ // Set to use GitHub flavor markdown
237
+ converter.setFlavor('github');
238
+
239
+ // Set language detection for code blocks
240
+ converter.setOption('ghCodeBlocks', true);
241
+ converter.setOption('omitExtraWLInCodeBlocks', true);
242
+ converter.setOption('literalMidWordUnderscores', true);
243
+ converter.setOption('parseImgDimensions', true);
244
+
245
+ // Add custom extension for adding language-specific class to code blocks
246
+ const codeExtension = () => [
247
+ {
248
+ type: 'output',
249
+ filter: function(text) {
250
+ return text.replace(/<pre><code\s*class="([^"]*)">(.*?)<\\/code><\\/pre>/gs, function(match, language, content) {
251
+ if (language) {
252
+ // Clean up the language identifier
253
+ const lang = language.replace('language-', '').trim();
254
+ return \`<pre data-language="\${lang}"><code class="language-\${lang} hljs">\${content}</code></pre>\`;
255
+ } else {
256
+ return \`<pre><code class="hljs">\${content}</code></pre>\`;
257
+ }
258
+ });
259
+ }
260
+ }
261
+ ];
262
+
263
+ // Add the extension
264
+ converter.addExtension(codeExtension());
265
+ const html = converter.makeHtml(md);
266
+
267
+ return html;
268
+ };
269
+
270
+ window.returnHome = () => {
271
+ if (!window.defaultHtml) {
272
+ let newStuff = Convert(${defaultContent});
273
+ window.defaultHtml = newStuff;
274
+ }
275
+ document.getElementById('documentation_container').innerHTML = window.defaultHtml;
276
+ window.location.hash = '';
277
+ document.querySelectorAll('.list-item a').forEach(item => {
278
+ item.classList.remove('active');
279
+ });
280
+ };
281
+
282
+ // Function to apply syntax highlighting after content is inserted
283
+ const applyHighlighting = () => {
284
+ document.querySelectorAll('pre code').forEach(block => {
285
+ const blockElement = block;
286
+
287
+ // Check for language class
288
+ const classList = Array.from(blockElement.classList);
289
+ const langClass = classList.find(cls => cls.startsWith('language-'));
290
+
291
+ if (langClass) {
292
+ const language = langClass.replace('language-', '');
293
+ // Set language label on the parent pre element
294
+ const preElement = blockElement.parentElement;
295
+ if (preElement) {
296
+ preElement.setAttribute('data-language', language);
297
+ }
298
+ }
299
+
300
+ // Apply highlighting to all code blocks
301
+ try {
302
+ // @ts-ignore - hljs is loaded from CDN
303
+ window.hljs.highlightElement(blockElement);
304
+ } catch (e) {
305
+ console.error('Error highlighting code:', e);
306
+ }
307
+ });
175
308
  };
176
309
 
177
310
  let managersData = {};
178
311
  let providersData = {};
179
312
 
313
+ // Function to update URL hash and highlight selected item
314
+ const updateSelectedItem = (type, id) => {
315
+ // Update URL hash
316
+ window.location.hash = \`\${type}/\${id}\`;
317
+
318
+ // Remove active class from all list items
319
+ document.querySelectorAll('.list-item a').forEach(item => {
320
+ item.classList.remove('active');
321
+ });
322
+
323
+ // Add active class to selected item
324
+ const selector = \`[data-\${type}="\${id}"]\`;
325
+ const selectedItem = document.querySelector(selector);
326
+ if (selectedItem) {
327
+ selectedItem.classList.add('active');
328
+ }
329
+ };
330
+
331
+ // @ts-ignore - Adding custom property to window
180
332
  window.managerDocumentation = async (manager) => {
181
333
  try {
182
- let res = await fetch(\`/getDocumentationForTopicManager?manager=\${manager}\`);
334
+ let res = await fetch(\`${host}/getDocumentationForTopicManager?manager=\${manager}\`);
183
335
  let docs = await res.text();
184
336
  let managerReadme = Convert(docs);
185
337
 
@@ -187,25 +339,19 @@ exports.default = (config = {}) => {
187
339
  let iconURL = managerData.iconURL || faviconUrl;
188
340
 
189
341
  document.getElementById('documentation_container').innerHTML = managerReadme;
190
- document.getElementById('documentation_title').innerHTML = \`
191
- <div class="detail-header">
192
- <img src="\${iconURL}" alt="icon" class="detail-icon">
193
- <div class="detail-text">
194
- <h1 class="detail-title">\${managerData.name}</h1>
195
- <p class="detail-description">\${managerData.shortDescription || ''}</p>
196
- \${managerData.version ? '<p class="detail-version">Version: ' + managerData.version + '</p>' : ''}
197
- \${managerData.informationURL ? '<p class="detail-info"><a href="' + managerData.informationURL + '" target="_blank">More Information</a></p>' : ''}
198
- </div>
199
- </div>
200
- \`;
342
+ applyHighlighting();
343
+
344
+ // Update active item and URL
345
+ updateSelectedItem('manager', manager);
201
346
  } catch (error) {
202
347
  console.error('Error fetching manager documentation:', error);
203
348
  }
204
349
  };
205
350
 
351
+ // @ts-ignore - Adding custom property to window
206
352
  window.topicDocumentation = async (provider) => {
207
353
  try {
208
- let res = await fetch(\`/getDocumentationForLookupServiceProvider?lookupService=\${provider}\`);
354
+ let res = await fetch(\`${host}/getDocumentationForLookupServiceProvider?lookupService=\${provider}\`);
209
355
  let docs = await res.text();
210
356
  let providerReadme = Convert(docs);
211
357
 
@@ -213,81 +359,127 @@ exports.default = (config = {}) => {
213
359
  let iconURL = providerData.iconURL || faviconUrl;
214
360
 
215
361
  document.getElementById('documentation_container').innerHTML = providerReadme;
216
- document.getElementById('documentation_title').innerHTML = \`
217
- <div class="detail-header">
218
- <img src="\${iconURL}" alt="icon" class="detail-icon">
219
- <div class="detail-text">
220
- <h1 class="detail-title">\${providerData.name}</h1>
221
- <p class="detail-description">\${providerData.shortDescription || ''}</p>
222
- \${providerData.version ? '<p class="detail-version">Version: ' + providerData.version + '</p>' : ''}
223
- \${providerData.informationURL ? '<p class="detail-info"><a href="' + providerData.informationURL + '" target="_blank">More Information</a></p>' : ''}
224
- </div>
225
- </div>
226
- \`;
362
+ applyHighlighting();
363
+
364
+ // Update active item and URL
365
+ updateSelectedItem('provider', provider);
227
366
  } catch (error) {
228
367
  console.error('Error fetching provider documentation:', error);
229
368
  }
230
369
  };
231
370
 
371
+ // Function to parse hash and load appropriate content
372
+ const handleUrlHash = () => {
373
+ const hash = window.location.hash.substring(1); // Remove the # character
374
+ if (hash) {
375
+ const [type, id] = hash.split('/');
376
+ if (type && id) {
377
+ if (type === 'manager') {
378
+ // Check if managers data is loaded
379
+ if (Object.keys(managersData).length > 0 && managersData[id]) {
380
+ window.managerDocumentation(id);
381
+ }
382
+ } else if (type === 'provider') {
383
+ // Check if providers data is loaded
384
+ if (Object.keys(providersData).length > 0 && providersData[id]) {
385
+ window.topicDocumentation(id);
386
+ }
387
+ }
388
+ }
389
+ }
390
+ };
391
+
232
392
  document.addEventListener('DOMContentLoaded', () => {
233
- fetch('/listTopicManagers')
393
+ let managersLoaded = false;
394
+ let providersLoaded = false;
395
+
396
+ // Check if both managers and providers are loaded before handling hash
397
+ const checkAllLoaded = () => {
398
+ if (managersLoaded && providersLoaded) {
399
+ handleUrlHash();
400
+ }
401
+ };
402
+
403
+ fetch('${host}/listTopicManagers')
234
404
  .then(res => res.json())
235
405
  .then(managers => {
236
406
  managersData = managers;
237
407
  const managerList = document.getElementById('manager_list');
238
408
  Object.keys(managers).forEach(manager => {
239
409
  let managerData = managers[manager];
240
- let iconURL = managerData.iconURL || faviconUrl;
241
410
  let li = document.createElement('li');
242
411
  li.className = 'list-item';
243
412
  li.innerHTML = \`
244
- <a onclick="window.managerDocumentation('\${manager}')">
245
- <img src="\${iconURL}" alt="icon" class="list-icon">
246
- <div class="list-text">
247
- <span class="list-title">\${managerData.name}</span>
248
- <span class="list-description">\${managerData.shortDescription || ''}</span>
249
- </div>
413
+ <a data-manager="\${manager}" onclick="window.managerDocumentation('\${manager}')">
414
+ \${managerData.name}
250
415
  </a>
251
416
  \`;
252
417
  managerList.appendChild(li);
253
418
  });
419
+ managersLoaded = true;
420
+ checkAllLoaded();
254
421
  })
255
422
  .catch(() => {
256
423
  let message = document.createElement('h4');
257
424
  message.innerText = 'Something went wrong!';
258
425
  manager_list.insertBefore(message, manager_list.children[0]);
426
+ managersLoaded = true;
427
+ checkAllLoaded();
259
428
  });
260
429
 
261
- fetch('/listLookupServiceProviders')
430
+ fetch('${host}/listLookupServiceProviders')
262
431
  .then(res => res.json())
263
432
  .then(providers => {
264
433
  providersData = providers;
265
434
  const providerList = document.getElementById('provider_list');
266
435
  Object.keys(providers).forEach(provider => {
267
436
  let providerData = providers[provider];
268
- let iconURL = providerData.iconURL || faviconUrl;
269
437
  let li = document.createElement('li');
270
438
  li.className = 'list-item';
271
439
  li.innerHTML = \`
272
- <a onclick="window.topicDocumentation('\${provider}')">
273
- <img src="\${iconURL}" alt="icon" class="list-icon">
274
- <div class="list-text">
275
- <span class="list-title">\${providerData.name}</span>
276
- <span class="list-description">\${providerData.shortDescription || ''}</span>
277
- </div>
440
+ <a data-provider="\${provider}" onclick="window.topicDocumentation('\${provider}')">
441
+ \${providerData.name}
278
442
  </a>
279
443
  \`;
280
444
  providerList.appendChild(li);
281
445
  });
446
+ providersLoaded = true;
447
+ checkAllLoaded();
282
448
  })
283
449
  .catch(() => {
284
450
  let message = document.createElement('h4');
285
451
  message.innerText = 'Something went wrong!';
286
452
  provider_list.insertBefore(message, provider_list.children[0]);
453
+ providersLoaded = true;
454
+ checkAllLoaded();
287
455
  });
288
456
 
289
- // Display default message when no manager or provider is selected
290
- document.getElementById('documentation_container').innerHTML = '<p>Please select a manager or service from the left to see details.</p>';
457
+ // Check URL hash to see if we should load specific documentation
458
+ const checkUrlHash = () => {
459
+ const hash = window.location.hash.substring(1); // Remove the # symbol
460
+ if (hash) {
461
+ const parts = hash.split('/');
462
+ if (parts.length === 2) {
463
+ const type = parts[0];
464
+ const id = parts[1];
465
+
466
+ if (type === 'manager' && id && managersData[id]) {
467
+ window.managerDocumentation(id);
468
+ } else if (type === 'provider' && id && providersData[id]) {
469
+ window.topicDocumentation(id);
470
+ }
471
+ }
472
+ } else {
473
+ // Display default message when no manager or provider is selected
474
+ returnHome();
475
+ }
476
+ };
477
+
478
+ // Listen for hash changes
479
+ window.addEventListener('hashchange', checkUrlHash);
480
+
481
+ // Check hash on initial page load
482
+ checkUrlHash();
291
483
  });
292
484
  </script>
293
485
  </head>
@@ -296,22 +488,27 @@ exports.default = (config = {}) => {
296
488
  <div class="main">
297
489
  <div class="column_left">
298
490
  <div class="page_head">
299
- <h1>Welcome to Overlay Services</h1>
300
- <p>Learn more on <a href="https://github.com/bitcoin-sv/overlay-services" target="_blank">GitHub</a></p>
491
+ <h1 class="welcome" onclick="window.returnHome()">Overlay Services</h1>
301
492
  </div>
302
493
  <div class="topic_container">
303
- <h2>Endpoint Documentation:</h2>
304
- <h3>Supported Topic Managers:</h3>
494
+ <h3>Topic Managers</h3>
305
495
  <ul id="manager_list"></ul>
306
496
  </div>
307
497
  <div class="provider_container">
308
- <h3>Supported Lookup Service Providers:</h3>
498
+ <h3>Lookup Services</h3>
309
499
  <ul id="provider_list"></ul>
310
500
  </div>
501
+ <div>
502
+ <h3>External Links</h3>
503
+ <ul id="external_list">
504
+ <li class="list-item"><a href="https://github.com/bsv-blockchain/overlay-services" target="_blank">Overlay Services GitHub</a></li>
505
+ <li class="list-item"><a href="https://bsv.brc.dev/transactions/0076" target="_blank">BRC-76 GASP</a></li>
506
+ <li class="list-item"><a href="https://fast.brc.dev" target="_blank">Quick Start for App Developers</a></li>
507
+ </ul>
508
+ </div>
311
509
  </div>
312
510
  <div class="column_right">
313
- <div id="documentation_title"></div>
314
- <div id="documentation_container" style="margin-left: 1.5em"></div>
511
+ <div id="documentation_container"></div>
315
512
  </div>
316
513
  </div>
317
514
  </body>
@@ -1 +1 @@
1
- {"version":3,"file":"makeUserInterface.js","sourceRoot":"","sources":["../../../src/makeUserInterface.ts"],"names":[],"mappings":";;AAcA,kBAAe,CAAC,SAAmB,EAAE,EAAU,EAAE;IAC/C,MAAM,EACJ,UAAU,GAAG,uCAAuC,EACpD,eAAe,GAAG,SAAS,EAC3B,YAAY,GAAG,SAAS,EACxB,cAAc,GAAG,SAAS,EAC1B,UAAU,GAAG,mBAAmB,EAChC,iBAAiB,GAAG,iCAAiC,EACrD,gBAAgB,GAAG,EAAE,EACrB,sBAAsB,GAAG,SAAS,EAClC,SAAS,GAAG,SAAS,EACrB,UAAU,GAAG,SAAS,EACtB,WAAW,GAAG,SAAS,GACxB,GAAG,MAAM,CAAC;IAEX,OAAO;;;;;;+CAMsC,UAAU;;;4BAG7B,eAAe;yBAClB,YAAY;2BACV,cAAc;uBAClB,UAAU;+BACF,iBAAiB;oCACZ,sBAAsB;sBACpC,SAAS;uBACR,UAAU;wBACT,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA8I7B,gBAAgB;;;;0BAII,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAsJ5B,CAAC;AACT,CAAC,CAAC"}
1
+ {"version":3,"file":"makeUserInterface.js","sourceRoot":"","sources":["../../../src/makeUserInterface.ts"],"names":[],"mappings":";;;;;AAAA,oBAAoB;AACpB,8EAA+C;AAqB/C,kBAAe,CAAC,SAAmB,EAAE,EAAU,EAAE;IAC/C,MAAM,EACJ,IAAI,GAAG,EAAE,EACT,UAAU,GAAG,uCAAuC,EACpD,eAAe,GAAG,SAAS,EAC3B,gBAAgB,GAAG,SAAS,EAC5B,YAAY,GAAG,SAAS,EACxB,cAAc,GAAG,SAAS,EAC1B,UAAU,GAAG,8BAA8B,EAC3C,iBAAiB,GAAG,8BAA8B,EAClD,gBAAgB,GAAG,EAAE,EACrB,sBAAsB,GAAG,SAAS,EAClC,SAAS,GAAG,SAAS,EACrB,UAAU,GAAG,SAAS,EACtB,WAAW,GAAG,SAAS,EACvB,wBAAwB,GAAG,SAAS,EACpC,kBAAkB,GAAG,SAAS,EAC9B,cAAc,GAAG,4BAAY,EAC9B,GAAG,MAAM,CAAA;IAEV,OAAO;;;;;;+CAMsC,UAAU;;;4BAG7B,eAAe;yBAClB,YAAY;2BACV,cAAc;uBAClB,UAAU;+BACF,iBAAiB;oCACZ,sBAAsB;sBACpC,SAAS;uBACR,UAAU;wBACT,WAAW;sCACG,wBAAwB;gCAC9B,kBAAkB;8BACpB,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAuLxC,gBAAgB;;;;;;0BAMI,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAqDH,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCA8Db,IAAI;;;;;;;;;;;;;;;;;;;;kCAoBJ,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAiDvB,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;eA2BJ,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAqFX,CAAA;AACR,CAAC,CAAA"}