@shellui/core 0.0.17 → 0.0.19

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.
@@ -0,0 +1,771 @@
1
+ // modules are defined as an array
2
+ // [ module function, map of requires ]
3
+ //
4
+ // map of requires is short require name -> numeric require
5
+ //
6
+ // anything defined in a previous bundle is accessed via the
7
+ // orig method which is the require for previous bundles
8
+
9
+ (function (
10
+ modules,
11
+ entry,
12
+ mainEntry,
13
+ parcelRequireName,
14
+ externals,
15
+ distDir,
16
+ publicUrl,
17
+ devServer
18
+ ) {
19
+ /* eslint-disable no-undef */
20
+ var globalObject =
21
+ typeof globalThis !== 'undefined'
22
+ ? globalThis
23
+ : typeof self !== 'undefined'
24
+ ? self
25
+ : typeof window !== 'undefined'
26
+ ? window
27
+ : typeof global !== 'undefined'
28
+ ? global
29
+ : {};
30
+ /* eslint-enable no-undef */
31
+
32
+ // Save the require from previous bundle to this closure if any
33
+ var previousRequire =
34
+ typeof globalObject[parcelRequireName] === 'function' &&
35
+ globalObject[parcelRequireName];
36
+
37
+ var importMap = previousRequire.i || {};
38
+ var cache = previousRequire.cache || {};
39
+ // Do not use `require` to prevent Webpack from trying to bundle this call
40
+ var nodeRequire =
41
+ typeof module !== 'undefined' &&
42
+ typeof module.require === 'function' &&
43
+ module.require.bind(module);
44
+
45
+ function newRequire(name, jumped) {
46
+ if (!cache[name]) {
47
+ if (!modules[name]) {
48
+ if (externals[name]) {
49
+ return externals[name];
50
+ }
51
+ // if we cannot find the module within our internal map or
52
+ // cache jump to the current global require ie. the last bundle
53
+ // that was added to the page.
54
+ var currentRequire =
55
+ typeof globalObject[parcelRequireName] === 'function' &&
56
+ globalObject[parcelRequireName];
57
+ if (!jumped && currentRequire) {
58
+ return currentRequire(name, true);
59
+ }
60
+
61
+ // If there are other bundles on this page the require from the
62
+ // previous one is saved to 'previousRequire'. Repeat this as
63
+ // many times as there are bundles until the module is found or
64
+ // we exhaust the require chain.
65
+ if (previousRequire) {
66
+ return previousRequire(name, true);
67
+ }
68
+
69
+ // Try the node require function if it exists.
70
+ if (nodeRequire && typeof name === 'string') {
71
+ return nodeRequire(name);
72
+ }
73
+
74
+ var err = new Error("Cannot find module '" + name + "'");
75
+ err.code = 'MODULE_NOT_FOUND';
76
+ throw err;
77
+ }
78
+
79
+ localRequire.resolve = resolve;
80
+ localRequire.cache = {};
81
+
82
+ var module = (cache[name] = new newRequire.Module(name));
83
+
84
+ modules[name][0].call(
85
+ module.exports,
86
+ localRequire,
87
+ module,
88
+ module.exports,
89
+ globalObject
90
+ );
91
+ }
92
+
93
+ return cache[name].exports;
94
+
95
+ function localRequire(x) {
96
+ var res = localRequire.resolve(x);
97
+ if (res === false) {
98
+ return {};
99
+ }
100
+ // Synthesize a module to follow re-exports.
101
+ if (Array.isArray(res)) {
102
+ var m = {__esModule: true};
103
+ res.forEach(function (v) {
104
+ var key = v[0];
105
+ var id = v[1];
106
+ var exp = v[2] || v[0];
107
+ var x = newRequire(id);
108
+ if (key === '*') {
109
+ Object.keys(x).forEach(function (key) {
110
+ if (
111
+ key === 'default' ||
112
+ key === '__esModule' ||
113
+ Object.prototype.hasOwnProperty.call(m, key)
114
+ ) {
115
+ return;
116
+ }
117
+
118
+ Object.defineProperty(m, key, {
119
+ enumerable: true,
120
+ get: function () {
121
+ return x[key];
122
+ },
123
+ });
124
+ });
125
+ } else if (exp === '*') {
126
+ Object.defineProperty(m, key, {
127
+ enumerable: true,
128
+ value: x,
129
+ });
130
+ } else {
131
+ Object.defineProperty(m, key, {
132
+ enumerable: true,
133
+ get: function () {
134
+ if (exp === 'default') {
135
+ return x.__esModule ? x.default : x;
136
+ }
137
+ return x[exp];
138
+ },
139
+ });
140
+ }
141
+ });
142
+ return m;
143
+ }
144
+ return newRequire(res);
145
+ }
146
+
147
+ function resolve(x) {
148
+ var id = modules[name][1][x];
149
+ return id != null ? id : x;
150
+ }
151
+ }
152
+
153
+ function Module(moduleName) {
154
+ this.id = moduleName;
155
+ this.bundle = newRequire;
156
+ this.require = nodeRequire;
157
+ this.exports = {};
158
+ }
159
+
160
+ newRequire.isParcelRequire = true;
161
+ newRequire.Module = Module;
162
+ newRequire.modules = modules;
163
+ newRequire.cache = cache;
164
+ newRequire.parent = previousRequire;
165
+ newRequire.distDir = distDir;
166
+ newRequire.publicUrl = publicUrl;
167
+ newRequire.devServer = devServer;
168
+ newRequire.i = importMap;
169
+ newRequire.register = function (id, exports) {
170
+ modules[id] = [
171
+ function (require, module) {
172
+ module.exports = exports;
173
+ },
174
+ {},
175
+ ];
176
+ };
177
+
178
+ // Only insert newRequire.load when it is actually used.
179
+ // The code in this file is linted against ES5, so dynamic import is not allowed.
180
+ // INSERT_LOAD_HERE
181
+
182
+ Object.defineProperty(newRequire, 'root', {
183
+ get: function () {
184
+ return globalObject[parcelRequireName];
185
+ },
186
+ });
187
+
188
+ globalObject[parcelRequireName] = newRequire;
189
+
190
+ for (var i = 0; i < entry.length; i++) {
191
+ newRequire(entry[i]);
192
+ }
193
+
194
+ if (mainEntry) {
195
+ // Expose entry point to Node, AMD or browser globals
196
+ // Based on https://github.com/ForbesLindesay/umd/blob/master/template.js
197
+ var mainExports = newRequire(mainEntry);
198
+
199
+ // CommonJS
200
+ if (typeof exports === 'object' && typeof module !== 'undefined') {
201
+ module.exports = mainExports;
202
+
203
+ // RequireJS
204
+ } else if (typeof define === 'function' && define.amd) {
205
+ define(function () {
206
+ return mainExports;
207
+ });
208
+ }
209
+ }
210
+ })({"jQhrC":[function(require,module,exports,__globalThis) {
211
+ var global = arguments[3];
212
+ var HMR_HOST = "localhost";
213
+ var HMR_PORT = null;
214
+ var HMR_SERVER_PORT = 4000;
215
+ var HMR_SECURE = false;
216
+ var HMR_ENV_HASH = "439701173a9199ea";
217
+ var HMR_USE_SSE = false;
218
+ module.bundle.HMR_BUNDLE_ID = "6bd98660ddfa7b68";
219
+ "use strict";
220
+ /* global HMR_HOST, HMR_PORT, HMR_SERVER_PORT, HMR_ENV_HASH, HMR_SECURE, HMR_USE_SSE, chrome, browser, __parcel__import__, __parcel__importScripts__, ServiceWorkerGlobalScope */ /*::
221
+ import type {
222
+ HMRAsset,
223
+ HMRMessage,
224
+ } from '@parcel/reporter-dev-server/src/HMRServer.js';
225
+ interface ParcelRequire {
226
+ (string): mixed;
227
+ cache: {|[string]: ParcelModule|};
228
+ hotData: {|[string]: mixed|};
229
+ Module: any;
230
+ parent: ?ParcelRequire;
231
+ isParcelRequire: true;
232
+ modules: {|[string]: [Function, {|[string]: string|}]|};
233
+ HMR_BUNDLE_ID: string;
234
+ root: ParcelRequire;
235
+ }
236
+ interface ParcelModule {
237
+ hot: {|
238
+ data: mixed,
239
+ accept(cb: (Function) => void): void,
240
+ dispose(cb: (mixed) => void): void,
241
+ // accept(deps: Array<string> | string, cb: (Function) => void): void,
242
+ // decline(): void,
243
+ _acceptCallbacks: Array<(Function) => void>,
244
+ _disposeCallbacks: Array<(mixed) => void>,
245
+ |};
246
+ }
247
+ interface ExtensionContext {
248
+ runtime: {|
249
+ reload(): void,
250
+ getURL(url: string): string;
251
+ getManifest(): {manifest_version: number, ...};
252
+ |};
253
+ }
254
+ declare var module: {bundle: ParcelRequire, ...};
255
+ declare var HMR_HOST: string;
256
+ declare var HMR_PORT: string;
257
+ declare var HMR_SERVER_PORT: string;
258
+ declare var HMR_ENV_HASH: string;
259
+ declare var HMR_SECURE: boolean;
260
+ declare var HMR_USE_SSE: boolean;
261
+ declare var chrome: ExtensionContext;
262
+ declare var browser: ExtensionContext;
263
+ declare var __parcel__import__: (string) => Promise<void>;
264
+ declare var __parcel__importScripts__: (string) => Promise<void>;
265
+ declare var globalThis: typeof self;
266
+ declare var ServiceWorkerGlobalScope: Object;
267
+ */ var OVERLAY_ID = '__parcel__error__overlay__';
268
+ var OldModule = module.bundle.Module;
269
+ function Module(moduleName) {
270
+ OldModule.call(this, moduleName);
271
+ this.hot = {
272
+ data: module.bundle.hotData[moduleName],
273
+ _acceptCallbacks: [],
274
+ _disposeCallbacks: [],
275
+ accept: function(fn) {
276
+ this._acceptCallbacks.push(fn || function() {});
277
+ },
278
+ dispose: function(fn) {
279
+ this._disposeCallbacks.push(fn);
280
+ }
281
+ };
282
+ module.bundle.hotData[moduleName] = undefined;
283
+ }
284
+ module.bundle.Module = Module;
285
+ module.bundle.hotData = {};
286
+ var checkedAssets /*: {|[string]: boolean|} */ , disposedAssets /*: {|[string]: boolean|} */ , assetsToDispose /*: Array<[ParcelRequire, string]> */ , assetsToAccept /*: Array<[ParcelRequire, string]> */ , bundleNotFound = false;
287
+ function getHostname() {
288
+ return HMR_HOST || (typeof location !== 'undefined' && location.protocol.indexOf('http') === 0 ? location.hostname : 'localhost');
289
+ }
290
+ function getPort() {
291
+ return HMR_PORT || (typeof location !== 'undefined' ? location.port : HMR_SERVER_PORT);
292
+ }
293
+ // eslint-disable-next-line no-redeclare
294
+ let WebSocket = globalThis.WebSocket;
295
+ if (!WebSocket && typeof module.bundle.root === 'function') try {
296
+ // eslint-disable-next-line no-global-assign
297
+ WebSocket = module.bundle.root('ws');
298
+ } catch {
299
+ // ignore.
300
+ }
301
+ var hostname = getHostname();
302
+ var port = getPort();
303
+ var protocol = HMR_SECURE || typeof location !== 'undefined' && location.protocol === 'https:' && ![
304
+ 'localhost',
305
+ '127.0.0.1',
306
+ '0.0.0.0'
307
+ ].includes(hostname) ? 'wss' : 'ws';
308
+ // eslint-disable-next-line no-redeclare
309
+ var parent = module.bundle.parent;
310
+ if (!parent || !parent.isParcelRequire) {
311
+ // Web extension context
312
+ var extCtx = typeof browser === 'undefined' ? typeof chrome === 'undefined' ? null : chrome : browser;
313
+ // Safari doesn't support sourceURL in error stacks.
314
+ // eval may also be disabled via CSP, so do a quick check.
315
+ var supportsSourceURL = false;
316
+ try {
317
+ (0, eval)('throw new Error("test"); //# sourceURL=test.js');
318
+ } catch (err) {
319
+ supportsSourceURL = err.stack.includes('test.js');
320
+ }
321
+ var ws;
322
+ if (HMR_USE_SSE) ws = new EventSource('/__parcel_hmr');
323
+ else try {
324
+ // If we're running in the dev server's node runner, listen for messages on the parent port.
325
+ let { workerData, parentPort } = module.bundle.root('node:worker_threads') /*: any*/ ;
326
+ if (workerData !== null && workerData !== void 0 && workerData.__parcel) {
327
+ parentPort.on('message', async (message)=>{
328
+ try {
329
+ await handleMessage(message);
330
+ parentPort.postMessage('updated');
331
+ } catch {
332
+ parentPort.postMessage('restart');
333
+ }
334
+ });
335
+ // After the bundle has finished running, notify the dev server that the HMR update is complete.
336
+ queueMicrotask(()=>parentPort.postMessage('ready'));
337
+ }
338
+ } catch {
339
+ if (typeof WebSocket !== 'undefined') try {
340
+ ws = new WebSocket(protocol + '://' + hostname + (port ? ':' + port : '') + '/');
341
+ } catch (err) {
342
+ // Ignore cloudflare workers error.
343
+ if (err.message && !err.message.includes('Disallowed operation called within global scope')) console.error(err.message);
344
+ }
345
+ }
346
+ if (ws) {
347
+ // $FlowFixMe
348
+ ws.onmessage = async function(event /*: {data: string, ...} */ ) {
349
+ var data /*: HMRMessage */ = JSON.parse(event.data);
350
+ await handleMessage(data);
351
+ };
352
+ if (ws instanceof WebSocket) {
353
+ ws.onerror = function(e) {
354
+ if (e.message) console.error(e.message);
355
+ };
356
+ ws.onclose = function() {
357
+ console.warn("[parcel] \uD83D\uDEA8 Connection to the HMR server was lost");
358
+ };
359
+ }
360
+ }
361
+ }
362
+ async function handleMessage(data /*: HMRMessage */ ) {
363
+ checkedAssets = {} /*: {|[string]: boolean|} */ ;
364
+ disposedAssets = {} /*: {|[string]: boolean|} */ ;
365
+ assetsToAccept = [];
366
+ assetsToDispose = [];
367
+ bundleNotFound = false;
368
+ if (data.type === 'reload') fullReload();
369
+ else if (data.type === 'update') {
370
+ // Remove error overlay if there is one
371
+ if (typeof document !== 'undefined') removeErrorOverlay();
372
+ let assets = data.assets;
373
+ // Handle HMR Update
374
+ let handled = assets.every((asset)=>{
375
+ return asset.type === 'css' || asset.type === 'js' && hmrAcceptCheck(module.bundle.root, asset.id, asset.depsByBundle);
376
+ });
377
+ // Dispatch a custom event in case a bundle was not found. This might mean
378
+ // an asset on the server changed and we should reload the page. This event
379
+ // gives the client an opportunity to refresh without losing state
380
+ // (e.g. via React Server Components). If e.preventDefault() is not called,
381
+ // we will trigger a full page reload.
382
+ if (handled && bundleNotFound && assets.some((a)=>a.envHash !== HMR_ENV_HASH) && typeof window !== 'undefined' && typeof CustomEvent !== 'undefined') handled = !window.dispatchEvent(new CustomEvent('parcelhmrreload', {
383
+ cancelable: true
384
+ }));
385
+ if (handled) {
386
+ console.clear();
387
+ // Dispatch custom event so other runtimes (e.g React Refresh) are aware.
388
+ if (typeof window !== 'undefined' && typeof CustomEvent !== 'undefined') window.dispatchEvent(new CustomEvent('parcelhmraccept'));
389
+ await hmrApplyUpdates(assets);
390
+ hmrDisposeQueue();
391
+ // Run accept callbacks. This will also re-execute other disposed assets in topological order.
392
+ let processedAssets = {};
393
+ for(let i = 0; i < assetsToAccept.length; i++){
394
+ let id = assetsToAccept[i][1];
395
+ if (!processedAssets[id]) {
396
+ hmrAccept(assetsToAccept[i][0], id);
397
+ processedAssets[id] = true;
398
+ }
399
+ }
400
+ } else fullReload();
401
+ }
402
+ if (data.type === 'error') {
403
+ // Log parcel errors to console
404
+ for (let ansiDiagnostic of data.diagnostics.ansi){
405
+ let stack = ansiDiagnostic.codeframe ? ansiDiagnostic.codeframe : ansiDiagnostic.stack;
406
+ console.error("\uD83D\uDEA8 [parcel]: " + ansiDiagnostic.message + '\n' + stack + '\n\n' + ansiDiagnostic.hints.join('\n'));
407
+ }
408
+ if (typeof document !== 'undefined') {
409
+ // Render the fancy html overlay
410
+ removeErrorOverlay();
411
+ var overlay = createErrorOverlay(data.diagnostics.html);
412
+ // $FlowFixMe
413
+ document.body.appendChild(overlay);
414
+ }
415
+ }
416
+ }
417
+ function removeErrorOverlay() {
418
+ var overlay = document.getElementById(OVERLAY_ID);
419
+ if (overlay) {
420
+ overlay.remove();
421
+ console.log("[parcel] \u2728 Error resolved");
422
+ }
423
+ }
424
+ function createErrorOverlay(diagnostics) {
425
+ var overlay = document.createElement('div');
426
+ overlay.id = OVERLAY_ID;
427
+ let errorHTML = '<div style="background: black; opacity: 0.85; font-size: 16px; color: white; position: fixed; height: 100%; width: 100%; top: 0px; left: 0px; padding: 30px; font-family: Menlo, Consolas, monospace; z-index: 9999;">';
428
+ for (let diagnostic of diagnostics){
429
+ let stack = diagnostic.frames.length ? diagnostic.frames.reduce((p, frame)=>{
430
+ return `${p}
431
+ <a href="${protocol === 'wss' ? 'https' : 'http'}://${hostname}:${port}/__parcel_launch_editor?file=${encodeURIComponent(frame.location)}" style="text-decoration: underline; color: #888" onclick="fetch(this.href); return false">${frame.location}</a>
432
+ ${frame.code}`;
433
+ }, '') : diagnostic.stack;
434
+ errorHTML += `
435
+ <div>
436
+ <div style="font-size: 18px; font-weight: bold; margin-top: 20px;">
437
+ \u{1F6A8} ${diagnostic.message}
438
+ </div>
439
+ <pre>${stack}</pre>
440
+ <div>
441
+ ${diagnostic.hints.map((hint)=>"<div>\uD83D\uDCA1 " + hint + '</div>').join('')}
442
+ </div>
443
+ ${diagnostic.documentation ? `<div>\u{1F4DD} <a style="color: violet" href="${diagnostic.documentation}" target="_blank">Learn more</a></div>` : ''}
444
+ </div>
445
+ `;
446
+ }
447
+ errorHTML += '</div>';
448
+ overlay.innerHTML = errorHTML;
449
+ return overlay;
450
+ }
451
+ function fullReload() {
452
+ if (typeof location !== 'undefined' && 'reload' in location) location.reload();
453
+ else if (typeof extCtx !== 'undefined' && extCtx && extCtx.runtime && extCtx.runtime.reload) extCtx.runtime.reload();
454
+ else try {
455
+ let { workerData, parentPort } = module.bundle.root('node:worker_threads') /*: any*/ ;
456
+ if (workerData !== null && workerData !== void 0 && workerData.__parcel) parentPort.postMessage('restart');
457
+ } catch (err) {
458
+ console.error("[parcel] \u26A0\uFE0F An HMR update was not accepted. Please restart the process.");
459
+ }
460
+ }
461
+ function getParents(bundle, id) /*: Array<[ParcelRequire, string]> */ {
462
+ var modules = bundle.modules;
463
+ if (!modules) return [];
464
+ var parents = [];
465
+ var k, d, dep;
466
+ for(k in modules)for(d in modules[k][1]){
467
+ dep = modules[k][1][d];
468
+ if (dep === id || Array.isArray(dep) && dep[dep.length - 1] === id) parents.push([
469
+ bundle,
470
+ k
471
+ ]);
472
+ }
473
+ if (bundle.parent) parents = parents.concat(getParents(bundle.parent, id));
474
+ return parents;
475
+ }
476
+ function updateLink(link) {
477
+ var href = link.getAttribute('href');
478
+ if (!href) return;
479
+ var newLink = link.cloneNode();
480
+ newLink.onload = function() {
481
+ if (link.parentNode !== null) // $FlowFixMe
482
+ link.parentNode.removeChild(link);
483
+ };
484
+ newLink.setAttribute('href', // $FlowFixMe
485
+ href.split('?')[0] + '?' + Date.now());
486
+ // $FlowFixMe
487
+ link.parentNode.insertBefore(newLink, link.nextSibling);
488
+ }
489
+ var cssTimeout = null;
490
+ function reloadCSS() {
491
+ if (cssTimeout || typeof document === 'undefined') return;
492
+ cssTimeout = setTimeout(function() {
493
+ var links = document.querySelectorAll('link[rel="stylesheet"]');
494
+ for(var i = 0; i < links.length; i++){
495
+ // $FlowFixMe[incompatible-type]
496
+ var href /*: string */ = links[i].getAttribute('href');
497
+ var hostname = getHostname();
498
+ var servedFromHMRServer = hostname === 'localhost' ? new RegExp('^(https?:\\/\\/(0.0.0.0|127.0.0.1)|localhost):' + getPort()).test(href) : href.indexOf(hostname + ':' + getPort());
499
+ var absolute = /^https?:\/\//i.test(href) && href.indexOf(location.origin) !== 0 && !servedFromHMRServer;
500
+ if (!absolute) updateLink(links[i]);
501
+ }
502
+ cssTimeout = null;
503
+ }, 50);
504
+ }
505
+ function hmrDownload(asset) {
506
+ if (asset.type === 'js') {
507
+ if (typeof document !== 'undefined') {
508
+ let script = document.createElement('script');
509
+ script.src = asset.url + '?t=' + Date.now();
510
+ if (asset.outputFormat === 'esmodule') script.type = 'module';
511
+ return new Promise((resolve, reject)=>{
512
+ var _document$head;
513
+ script.onload = ()=>resolve(script);
514
+ script.onerror = reject;
515
+ (_document$head = document.head) === null || _document$head === void 0 || _document$head.appendChild(script);
516
+ });
517
+ } else if (typeof importScripts === 'function') {
518
+ // Worker scripts
519
+ if (asset.outputFormat === 'esmodule') return import(asset.url + '?t=' + Date.now());
520
+ else return new Promise((resolve, reject)=>{
521
+ try {
522
+ importScripts(asset.url + '?t=' + Date.now());
523
+ resolve();
524
+ } catch (err) {
525
+ reject(err);
526
+ }
527
+ });
528
+ }
529
+ }
530
+ }
531
+ async function hmrApplyUpdates(assets) {
532
+ global.parcelHotUpdate = Object.create(null);
533
+ let scriptsToRemove;
534
+ try {
535
+ // If sourceURL comments aren't supported in eval, we need to load
536
+ // the update from the dev server over HTTP so that stack traces
537
+ // are correct in errors/logs. This is much slower than eval, so
538
+ // we only do it if needed (currently just Safari).
539
+ // https://bugs.webkit.org/show_bug.cgi?id=137297
540
+ // This path is also taken if a CSP disallows eval.
541
+ if (!supportsSourceURL) {
542
+ let promises = assets.map((asset)=>{
543
+ var _hmrDownload;
544
+ return (_hmrDownload = hmrDownload(asset)) === null || _hmrDownload === void 0 ? void 0 : _hmrDownload.catch((err)=>{
545
+ // Web extension fix
546
+ if (extCtx && extCtx.runtime && extCtx.runtime.getManifest().manifest_version == 3 && typeof ServiceWorkerGlobalScope != 'undefined' && global instanceof ServiceWorkerGlobalScope) {
547
+ extCtx.runtime.reload();
548
+ return;
549
+ }
550
+ throw err;
551
+ });
552
+ });
553
+ scriptsToRemove = await Promise.all(promises);
554
+ }
555
+ assets.forEach(function(asset) {
556
+ hmrApply(module.bundle.root, asset);
557
+ });
558
+ } finally{
559
+ delete global.parcelHotUpdate;
560
+ if (scriptsToRemove) scriptsToRemove.forEach((script)=>{
561
+ if (script) {
562
+ var _document$head2;
563
+ (_document$head2 = document.head) === null || _document$head2 === void 0 || _document$head2.removeChild(script);
564
+ }
565
+ });
566
+ }
567
+ }
568
+ function hmrApply(bundle /*: ParcelRequire */ , asset /*: HMRAsset */ ) {
569
+ var modules = bundle.modules;
570
+ if (!modules) return;
571
+ if (asset.type === 'css') reloadCSS();
572
+ else if (asset.type === 'js') {
573
+ let deps = asset.depsByBundle[bundle.HMR_BUNDLE_ID];
574
+ if (deps) {
575
+ if (modules[asset.id]) {
576
+ // Remove dependencies that are removed and will become orphaned.
577
+ // This is necessary so that if the asset is added back again, the cache is gone, and we prevent a full page reload.
578
+ let oldDeps = modules[asset.id][1];
579
+ for(let dep in oldDeps)if (!deps[dep] || deps[dep] !== oldDeps[dep]) {
580
+ let id = oldDeps[dep];
581
+ let parents = getParents(module.bundle.root, id);
582
+ if (parents.length === 1) hmrDelete(module.bundle.root, id);
583
+ }
584
+ }
585
+ if (supportsSourceURL) // Global eval. We would use `new Function` here but browser
586
+ // support for source maps is better with eval.
587
+ (0, eval)(asset.output);
588
+ // $FlowFixMe
589
+ let fn = global.parcelHotUpdate[asset.id];
590
+ modules[asset.id] = [
591
+ fn,
592
+ deps
593
+ ];
594
+ }
595
+ // Always traverse to the parent bundle, even if we already replaced the asset in this bundle.
596
+ // This is required in case modules are duplicated. We need to ensure all instances have the updated code.
597
+ if (bundle.parent) hmrApply(bundle.parent, asset);
598
+ }
599
+ }
600
+ function hmrDelete(bundle, id) {
601
+ let modules = bundle.modules;
602
+ if (!modules) return;
603
+ if (modules[id]) {
604
+ // Collect dependencies that will become orphaned when this module is deleted.
605
+ let deps = modules[id][1];
606
+ let orphans = [];
607
+ for(let dep in deps){
608
+ let parents = getParents(module.bundle.root, deps[dep]);
609
+ if (parents.length === 1) orphans.push(deps[dep]);
610
+ }
611
+ // Delete the module. This must be done before deleting dependencies in case of circular dependencies.
612
+ delete modules[id];
613
+ delete bundle.cache[id];
614
+ // Now delete the orphans.
615
+ orphans.forEach((id)=>{
616
+ hmrDelete(module.bundle.root, id);
617
+ });
618
+ } else if (bundle.parent) hmrDelete(bundle.parent, id);
619
+ }
620
+ function hmrAcceptCheck(bundle /*: ParcelRequire */ , id /*: string */ , depsByBundle /*: ?{ [string]: { [string]: string } }*/ ) {
621
+ checkedAssets = {};
622
+ if (hmrAcceptCheckOne(bundle, id, depsByBundle)) return true;
623
+ // Traverse parents breadth first. All possible ancestries must accept the HMR update, or we'll reload.
624
+ let parents = getParents(module.bundle.root, id);
625
+ let accepted = false;
626
+ while(parents.length > 0){
627
+ let v = parents.shift();
628
+ let a = hmrAcceptCheckOne(v[0], v[1], null);
629
+ if (a) // If this parent accepts, stop traversing upward, but still consider siblings.
630
+ accepted = true;
631
+ else if (a !== null) {
632
+ // Otherwise, queue the parents in the next level upward.
633
+ let p = getParents(module.bundle.root, v[1]);
634
+ if (p.length === 0) {
635
+ // If there are no parents, then we've reached an entry without accepting. Reload.
636
+ accepted = false;
637
+ break;
638
+ }
639
+ parents.push(...p);
640
+ }
641
+ }
642
+ return accepted;
643
+ }
644
+ function hmrAcceptCheckOne(bundle /*: ParcelRequire */ , id /*: string */ , depsByBundle /*: ?{ [string]: { [string]: string } }*/ ) {
645
+ var modules = bundle.modules;
646
+ if (!modules) return;
647
+ if (depsByBundle && !depsByBundle[bundle.HMR_BUNDLE_ID]) {
648
+ // If we reached the root bundle without finding where the asset should go,
649
+ // there's nothing to do. Mark as "accepted" so we don't reload the page.
650
+ if (!bundle.parent) {
651
+ bundleNotFound = true;
652
+ return true;
653
+ }
654
+ return hmrAcceptCheckOne(bundle.parent, id, depsByBundle);
655
+ }
656
+ if (checkedAssets[id]) return null;
657
+ checkedAssets[id] = true;
658
+ var cached = bundle.cache[id];
659
+ if (!cached) return true;
660
+ assetsToDispose.push([
661
+ bundle,
662
+ id
663
+ ]);
664
+ if (cached && cached.hot && cached.hot._acceptCallbacks.length) {
665
+ assetsToAccept.push([
666
+ bundle,
667
+ id
668
+ ]);
669
+ return true;
670
+ }
671
+ return false;
672
+ }
673
+ function hmrDisposeQueue() {
674
+ // Dispose all old assets.
675
+ for(let i = 0; i < assetsToDispose.length; i++){
676
+ let id = assetsToDispose[i][1];
677
+ if (!disposedAssets[id]) {
678
+ hmrDispose(assetsToDispose[i][0], id);
679
+ disposedAssets[id] = true;
680
+ }
681
+ }
682
+ assetsToDispose = [];
683
+ }
684
+ function hmrDispose(bundle /*: ParcelRequire */ , id /*: string */ ) {
685
+ var cached = bundle.cache[id];
686
+ bundle.hotData[id] = {};
687
+ if (cached && cached.hot) cached.hot.data = bundle.hotData[id];
688
+ if (cached && cached.hot && cached.hot._disposeCallbacks.length) cached.hot._disposeCallbacks.forEach(function(cb) {
689
+ cb(bundle.hotData[id]);
690
+ });
691
+ delete bundle.cache[id];
692
+ }
693
+ function hmrAccept(bundle /*: ParcelRequire */ , id /*: string */ ) {
694
+ // Execute the module.
695
+ bundle(id);
696
+ // Run the accept callbacks in the new version of the module.
697
+ var cached = bundle.cache[id];
698
+ if (cached && cached.hot && cached.hot._acceptCallbacks.length) {
699
+ let assetsToAlsoAccept = [];
700
+ cached.hot._acceptCallbacks.forEach(function(cb) {
701
+ let additionalAssets = cb(function() {
702
+ return getParents(module.bundle.root, id);
703
+ });
704
+ if (Array.isArray(additionalAssets) && additionalAssets.length) assetsToAlsoAccept.push(...additionalAssets);
705
+ });
706
+ if (assetsToAlsoAccept.length) {
707
+ let handled = assetsToAlsoAccept.every(function(a) {
708
+ return hmrAcceptCheck(a[0], a[1]);
709
+ });
710
+ if (!handled) return fullReload();
711
+ hmrDisposeQueue();
712
+ }
713
+ }
714
+ }
715
+
716
+ },{}],"fOPg4":[function(require,module,exports,__globalThis) {
717
+ var $parcel$ReactRefreshHelpers$4541 = require("@parcel/transformer-react-refresh-wrap/lib/helpers/helpers.js");
718
+ $parcel$ReactRefreshHelpers$4541.init();
719
+ var prevRefreshReg = globalThis.$RefreshReg$;
720
+ var prevRefreshSig = globalThis.$RefreshSig$;
721
+ $parcel$ReactRefreshHelpers$4541.prelude(module);
722
+
723
+ try {
724
+ var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");
725
+ parcelHelpers.defineInteropFlag(exports);
726
+ parcelHelpers.export(exports, "HomeView", ()=>HomeView);
727
+ var _jsxRuntime = require("react/jsx-runtime");
728
+ var _reactI18Next = require("react-i18next");
729
+ var _useConfig = require("../features/config/useConfig");
730
+ var _s = $RefreshSig$();
731
+ const HomeView = ()=>{
732
+ _s();
733
+ const { t } = (0, _reactI18Next.useTranslation)('common');
734
+ const { config } = (0, _useConfig.useConfig)();
735
+ return (0, _jsxRuntime.jsxs)("div", {
736
+ className: "flex flex-col items-center justify-center h-full p-8 md:p-10",
737
+ children: [
738
+ (0, _jsxRuntime.jsx)("h1", {
739
+ className: "m-0 text-3xl font-light text-foreground",
740
+ style: {
741
+ fontFamily: 'var(--heading-font-family, inherit)'
742
+ },
743
+ children: t('welcome', {
744
+ title: config.title
745
+ })
746
+ }),
747
+ (0, _jsxRuntime.jsx)("p", {
748
+ className: "mt-4 text-lg text-muted-foreground",
749
+ children: t('getStarted')
750
+ })
751
+ ]
752
+ });
753
+ };
754
+ _s(HomeView, "4nViz0guNrLwYsgMHX9AKHV0PG0=", false, function() {
755
+ return [
756
+ (0, _reactI18Next.useTranslation),
757
+ (0, _useConfig.useConfig)
758
+ ];
759
+ });
760
+ _c = HomeView;
761
+ var _c;
762
+ $RefreshReg$(_c, "HomeView");
763
+
764
+ $parcel$ReactRefreshHelpers$4541.postlude(module);
765
+ } finally {
766
+ globalThis.$RefreshReg$ = prevRefreshReg;
767
+ globalThis.$RefreshSig$ = prevRefreshSig;
768
+ }
769
+ },{"react/jsx-runtime":"05iiF","react-i18next":"gKfGQ","../features/config/useConfig":"hCNlG","@parcel/transformer-js/src/esmodule-helpers.js":"jnFvT","@parcel/transformer-react-refresh-wrap/lib/helpers/helpers.js":"7h6Pi"}]},["jQhrC"], null, "parcelRequire6cf0", {})
770
+
771
+ //# sourceMappingURL=HomeView.ddfa7b68.js.map