mnfst 0.5.333 → 0.5.334

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.
@@ -2,7 +2,7 @@
2
2
  "manifest.accordion.css": "sha384-XA/UMMX/m2c8/rtvH3LeUez5j/jjNq+sTvihfja4fT2r47bWdpLH/wRpR+4PGdRN",
3
3
  "manifest.appwrite.auth.js": "sha384-n+Fohtui5o2h3HpM7ifnop9YsAdlTj0uHYfzljQMghLJeDkODC6OXop6ds6OTZha",
4
4
  "manifest.appwrite.auth.min.js": "sha384-qN5XF96RpRVTzBeOBoxwh6ziq2+eZ2rS0cLUtlwp4CFcbyuMCaf6kHFJKoWEGNvp",
5
- "manifest.appwrite.data.js": "sha384-hARZEL4CJ0E0GyRyiWmabHIY5SmAoo+lEcmAJv29RPUCEfmvzRhZIBXRbz35lLZr",
5
+ "manifest.appwrite.data.js": "sha384-HrgJbVdYNfzQlsf+2+JAmFnZKYqCAZBEPaXD4WMdGkEe6MZi9+qtlvCU7S7qcwDg",
6
6
  "manifest.appwrite.data.min.js": "sha384-PCp21DVdPqQVudd4FsA2stYdmql8verhQZ3WapA/oR4uAap/+KPFP0sgOjEPT6yZ",
7
7
  "manifest.appwrite.presences.js": "sha384-O3EedwV2QTzd4YotjvGPsDHbxaGbtRaZuNopC7/Cfoo5uYPo8ZHYkCPCWurXpA2/",
8
8
  "manifest.appwrite.presences.min.js": "sha384-7AHt7baL29VI3S1Nbkkyq34j2eJ2ysGpDnllmpXXSlc4GHvTk5hdCrXra2R3mSfH",
@@ -35,8 +35,8 @@
35
35
  "manifest.computed.js": "sha384-GYML/e81gQfN+iDbqhPUgny8bINCyL+SrbTofoGk4hlCnLLjv51mCv42JMqq+ku5",
36
36
  "manifest.computed.min.js": "sha384-90LbCcEOhrjhxi0GWBRb3DJyOkKWLRwzK7Z2nkbc1uaZ5B9EGmNKqx+mstTLWFGJ",
37
37
  "manifest.css": "sha384-WvntWYbbzn/qhMLloLI/aTaw1TIuYuPuISMLLBaC2ELhmFPYu1rix/WNzyDeG/Z+",
38
- "manifest.data.js": "sha384-Dlkyz1KGqWZHRMLje++aclXPrLInBRGhsqtsH+MkLf4G2vNaT7xI09GERCSOwa/A",
39
- "manifest.data.min.js": "sha384-KIF8sGE7lvhewtrY1zqz3wBYe51CAjJ3hbrncIvjhHOFBeflSPyGDD+22ODgL4+o",
38
+ "manifest.data.js": "sha384-JK5ijVbNg8aaX1sUEyDoSzilqmR0ruM+xEOK/mV4mU5uQWK5GobQnaZAPlVGPvUo",
39
+ "manifest.data.min.js": "sha384-3IEOTHmH9O5aCqq9IajP92azuholXnGz7iZD4D9/i6xVByXj6Wc1UXNrzMG5H+Xl",
40
40
  "manifest.datepicker.css": "sha384-lW6PLZxKr2GjR/O16oPq+5wrBZjQ1UCQUo2PTQZaj0FW8hCh6dydjzCF1qcp9up4",
41
41
  "manifest.datepicker.js": "sha384-pZUQhUK6u5cl6g0myBXND/Wtrs1RTovYmy/ETQLUV0JujvTvUdRNc/XjPpVhtK16",
42
42
  "manifest.datepicker.min.js": "sha384-e6xN1xQW3LLFvmSWrh3INMCgfUwD+gJca6n9fJfUFArA/OSm2KY0MDeN0pHVsYiw",
@@ -58,14 +58,14 @@
58
58
  "manifest.icons.js": "sha384-gLb9vW0MRJTQi6M1HFUylSLGNohkaCyUaCfhcoRPPzJOIxVrQzMeQuFUMqRMj2Yy",
59
59
  "manifest.icons.min.js": "sha384-TZpazdx9K8xe3e7jmYoCzg7YD/7kBp1u8ScByfigopAvGJOzR4K10zpmGovwA0nv",
60
60
  "manifest.input.css": "sha384-6+ErMsR67xE2xQWUS6QPhYH89pqf4wY4GEIDPq6jcQrHDqZMthyX4I93N4DttG7c",
61
- "manifest.js": "sha384-knaJ7p/WG97ZTFXSsX9YFuBuuO6TaR7gg4ROcfOlGp8uD5gPsSFACnpZkFqk0g1n",
61
+ "manifest.js": "sha384-y32mM+CQ7Z4vM4WuiFRQCOACM5j6y0KDfMvcE7XSx3o9rqREA7EWIPx5+ZUEZ+6y",
62
62
  "manifest.localization.js": "sha384-9EDAqnI7MNCZp4Vas0RMZgceCuz9EJUi/OARm8iI+Hi4S8HF//yyVOhhhhQ+XcLq",
63
63
  "manifest.localization.min.js": "sha384-5EkwrlpE29wmsy0JBq7UwWy8rVzEsu8tTprnsiNThVddFWsbFd63C/il4JjnWLmP",
64
64
  "manifest.markdown.js": "sha384-akK4967sMccfrxOkhvpsv4H8ylIJRVHpkzX5EUGCwhHeamWr8JLv7awh8sR34LBq",
65
65
  "manifest.markdown.min.js": "sha384-xQukORRTifFp3K1SICjNiIiOSwfzv8MMEPTGv0jFb6zsnpiYCOrM4n6KvTMFYMAp",
66
66
  "manifest.min.css": "sha384-ZLXKtchybe6D6nmOkd2CYR9LzplunAqxpUkvf8yfrn8BLT/M2jNo83Tb95mdx98L",
67
- "manifest.min.js": "sha384-BQwxidpcsj1GREGyWmp20gMXTHHonBRHvvFLiGOEJXy5XHcpVxxp4ZATEwqwGe7T",
68
- "manifest.modules.integrity.json": "sha384-EoPUnvcTd0V6ugOg+8X6DWOIWmgwj36CxAAGVd+PwRq2h5Rmxh+vUp0wjh+xzml5",
67
+ "manifest.min.js": "sha384-PwfxDCjnCG0T/z3eqWWdcUNTmsK9p1fzbW2gLl0VE1iaIZZ5QaTdajjId4PCCRcY",
68
+ "manifest.modules.integrity.json": "sha384-bPSRgboL6vTFlnOH479ijw+2NeriwxjXXuLMwspVbslXBBEPWZm1zvT/CHzJsZRM",
69
69
  "manifest.native.js": "sha384-YeQaS56L8IILqrQNBSeAOLwIh5DuAOrE60cYLK1+46qJtUrXlAvqGe2j5mbV4Vq7",
70
70
  "manifest.native.min.js": "sha384-3xZep6D5icnCvKbzPxQ6QxqvJMfWI0GiADQrGkiFJEhe8sXg6P6vfIAjLUykFi+2",
71
71
  "manifest.payments.js": "sha384-3Db2i47QA5I/Id5XMkwJThxSe8wZFiEEcJaKuuIjE5yBjGBxPMWFwhE4wgdvWgOo",
@@ -88,8 +88,8 @@
88
88
  "manifest.submissions.min.js": "sha384-p/5Ekd6u/cTsyVQbRgGzEi3h1hJU9zD7+hjdR+upcwt++26sfrLXMjFI2YjS8zWt",
89
89
  "manifest.svg.js": "sha384-D1jF3a0pXIuzm7T2sltyzblF8BTZ8sv1CkfJyQ33q21G6QlYyjdPv8DJi80eCISD",
90
90
  "manifest.svg.min.js": "sha384-rsvQ50FgVpTxX2Wvba3hed2TQvZR+CHHfgS4Cg7V1Dyjx6rxkS1s6rG6UMWDIMez",
91
- "manifest.sw.js": "sha384-sRctgJsW1hJBdlWv26BsfvdlmHcTrr9DaW1A8bqvhpgNYvYc7kbZ3oKjQCGVsMsW",
92
- "manifest.sw.min.js": "sha384-asEXF1LrK0aByFO0XJWxlfTO0u5vyq+ooz1b3ZTzjzdn+zfKmYwamWZ5fhAt3TdY",
91
+ "manifest.sw.js": "sha384-48FVjFy0Qdqj3DoG4Wasleprs6tJE5pQER0sdyGWKnpBXTrOACpQWoa7KVru1Ud+",
92
+ "manifest.sw.min.js": "sha384-Hnssw9beWNFKRHMdUNshC7TK2Bb91eJNg70mTBUxpdlmUKKambbsHoQV9ztbLwHR",
93
93
  "manifest.switch.css": "sha384-s3+th9ojcLpRGhxxS9u4VR+AVRUqK6sNI62h4TAuZG7G1r1bNqXo1z/UMhTon00x",
94
94
  "manifest.table.css": "sha384-1XqR9mQSrxogf6fGcbVEbQ/cObABBAlMNfpW6T0vibXYwHv6l9kF3AVTXg/FknpM",
95
95
  "manifest.tabs.js": "sha384-LoPOo8mCAzyil9BLFV1BsDNBVyKmijKieKl7mbVAHEH/Nd7Ye0E6fM6yOgdBKcHZ",
@@ -107,8 +107,8 @@
107
107
  "manifest.url.parameters.js": "sha384-J2aSVBOPsoqsbafHndrWLHEDpKb4AKJAoQnVmKA4gZh5P/8HHjFWHO/lkusmG84l",
108
108
  "manifest.url.parameters.min.js": "sha384-0C6e6FIjB9TKVGy5W0LH0TDQ3Eg4mRAokM4MANHUuwoG0IzUZV7HaYUQd2AnkB7a",
109
109
  "manifest.utilities.css": "sha384-+y0FwD4lna9Ud4w1rbauDlfHQzBXcwluAdrNhtMKMP1L1ygAn6KSvUUceZBGq19U",
110
- "manifest.utilities.js": "sha384-G1Tg8KsB7z7ANHiYZCzqijjOCtogvdEM+dYb8P/h0a1XafTThQOkp1gHlvNsjtPm",
111
- "manifest.utilities.min.js": "sha384-WilK2hRJ6X1wKLv8RaXDxKllqqGWbux83+yL1Tdv/VoYP0T2YxRH2YXT2bZkxUh1",
110
+ "manifest.utilities.js": "sha384-S2NYQJfAbRVsXpucdl5DFZVHz8li+p3YEQBFFzqDYAmJUmpYGD0yc0xa8JqD1CLl",
111
+ "manifest.utilities.min.js": "sha384-1188wXKPoXUnzqzfuIvmx/ZMhsLuJaz16ss8Z98ZtHKJzmGQMOk1aXnC4WghffZL",
112
112
  "manifest.vendor.integrity.json": "sha384-xMKQh8gEBZhtaYhv09XUs3amAIT3Oh7aKrsGN0ABsnlIpbgxr5OHi5FxQTQhqz3E",
113
113
  "manifest.virtual.js": "sha384-2Kmw+B6cLKUVvkXtZb7x+5OrWcJWooOQ/QBB51vpQC7P3Jdd9jcoSSAiwQ6LCNQo",
114
114
  "manifest.virtual.min.js": "sha384-FqBrlNUM9wT6q7FRg1KVLVA9pUJv60NUr3o7Mxcis7tXWYax6h/8NBDfOsMCUkLS"
package/lib/manifest.js CHANGED
@@ -353,8 +353,8 @@
353
353
  const DEFAULT_VERSION = 'latest';
354
354
 
355
355
  // Stamped at build
356
- const LOADER_VERSION = '0.5.333';
357
- const MODULES_INTEGRITY = 'sha384-EoPUnvcTd0V6ugOg+8X6DWOIWmgwj36CxAAGVd+PwRq2h5Rmxh+vUp0wjh+xzml5';
356
+ const LOADER_VERSION = '0.5.334';
357
+ const MODULES_INTEGRITY = 'sha384-bPSRgboL6vTFlnOH479ijw+2NeriwxjXXuLMwspVbslXBBEPWZm1zvT/CHzJsZRM';
358
358
  const INTEGRITY_FILE = 'manifest.modules.integrity.json';
359
359
  const VENDOR_FILE = 'manifest.vendor.integrity.json';
360
360
  // 'strict' | 'warn' while checks are requested; map promise while they apply
@@ -1361,6 +1361,8 @@
1361
1361
  const plugins = script.getAttribute('data-modules') ?? script.getAttribute('data-plugins');
1362
1362
  const omit = script.getAttribute('data-omit');
1363
1363
  const tailwind = script.getAttribute('data-tailwind') !== null;
1364
+ // data-tailwind="cache": opt in to replaying the engine's stored output
1365
+ const tailwindCache = script.getAttribute('data-tailwind') === 'cache';
1364
1366
  const version = script.getAttribute('data-version') || DEFAULT_VERSION;
1365
1367
  const versionSet = !!script.getAttribute('data-version');
1366
1368
  const alpine = script.getAttribute('data-alpine');
@@ -1418,6 +1420,7 @@
1418
1420
  omitted,
1419
1421
  deriveFromManifest,
1420
1422
  tailwind,
1423
+ tailwindCache,
1421
1424
  version,
1422
1425
  versionSet,
1423
1426
  alpine,
@@ -1447,6 +1450,112 @@
1447
1450
  }
1448
1451
  }
1449
1452
 
1453
+ // Tailwind engine output cache: written and watched by the utilities module (manifest.utilities.tailwind-cache.js)
1454
+ const TAILWIND_ENGINE_VERSION = '4.3.1';
1455
+ const TAILWIND_CACHE_KEY = 'tailwind-engine-cache:v2';
1456
+ const TAILWIND_CACHE_MAX_AGE = 7 * 24 * 60 * 60 * 1000;
1457
+ function tailwindAuthorBlocks() {
1458
+ return Array.from(document.querySelectorAll('style[type="text/tailwindcss"]:not(#manifest-tailwind-variants)'), s => s.textContent);
1459
+ }
1460
+ // One entry per ordered set of author blocks
1461
+ function tailwindCacheId(v, blocks) {
1462
+ const text = [v, ...blocks].join('\u0000');
1463
+ let h = 0x811c9dc5;
1464
+ for (let i = 0; i < text.length; i++) h = Math.imul(h ^ text.charCodeAt(i), 0x01000193);
1465
+ return (h >>> 0).toString(36);
1466
+ }
1467
+ function placeTailwindCache(style) {
1468
+ const ours = document.getElementById('manifest-styles');
1469
+ document.head.insertBefore(style, ours && ours.parentNode === document.head ? ours : null);
1470
+ }
1471
+ const allStrings = (a) => Array.isArray(a) && a.every(x => typeof x === 'string');
1472
+ // Head fully parsed: replay only an entry built from exactly these blocks, in this order
1473
+ function tryTailwindReplay(state, index) {
1474
+ try {
1475
+ // A page that turned out to need a block in <body> goes straight to the engine
1476
+ const skipped = index.skip && index.skip[state.pathId];
1477
+ if (typeof skipped === 'number' && Date.now() - skipped >= 0 && Date.now() - skipped <= TAILWIND_CACHE_MAX_AGE) return false;
1478
+ const blocks = tailwindAuthorBlocks();
1479
+ const id = tailwindCacheId(state.v, blocks);
1480
+ const rec = JSON.parse(localStorage.getItem(`${TAILWIND_CACHE_KEY}:${id}`) || 'null');
1481
+ const age = rec ? Date.now() - rec.t : -1;
1482
+ if (!rec || rec.v !== state.v || typeof rec.css !== 'string' || !allStrings(rec.tokens) || !allStrings(rec.blocks)) return false;
1483
+ if (!(age >= 0 && age <= TAILWIND_CACHE_MAX_AGE) || rec.blocks.join('\u0000') !== blocks.join('\u0000') || rec.blocks.length !== blocks.length) return false;
1484
+ if (rec.body) return false;
1485
+ const style = document.createElement('style');
1486
+ style.setAttribute('data-tailwind-cache', '');
1487
+ style.textContent = rec.css;
1488
+ placeTailwindCache(style);
1489
+ Object.assign(state, { record: rec, style, id });
1490
+ return true;
1491
+ } catch (e) {
1492
+ return false;
1493
+ }
1494
+ }
1495
+ // Resolves true once the stored output is where the engine's sheet would go; decided when <head> is parsed, before first paint.
1496
+ // A <body> block, or a pathname skipped in the last 7 days, means the engine (SPA routes keep the first pathname's decision)
1497
+ function replayTailwindCache(cfg) {
1498
+ const miss = Promise.resolve(false);
1499
+ try {
1500
+ if (!cfg.tailwindCache || window.__manifestRender === true || window.__mnfstRun || isDevHost(location.hostname)) return miss;
1501
+ if (!cfg.plugins.includes('utilities') || staticUtilitiesFullyCovered()) return miss;
1502
+ if (document.querySelector('[data-mnfst-utilities], link[href*="prerender.tailwind.css"], link[href*="prerender.utilities.css"]')) return miss;
1503
+ const v = `${LOADER_VERSION}|${cfg.version}|${TAILWIND_ENGINE_VERSION}`;
1504
+ const state = window.__tailwindCache = { key: TAILWIND_CACHE_KEY, v, idFor: (blocks) => tailwindCacheId(v, blocks), pathId: tailwindCacheId('', [location.pathname]), record: null, armed: false };
1505
+ const index = JSON.parse(localStorage.getItem(TAILWIND_CACHE_KEY) || 'null');
1506
+ if (!index || !allStrings(index.ids) || !index.ids.length) return miss;
1507
+ return state.decision = new Promise(resolve => {
1508
+ let done = false;
1509
+ const decide = () => {
1510
+ if (done) return;
1511
+ done = true;
1512
+ const hit = tryTailwindReplay(state, index);
1513
+ if (hit) watchParsedTailwindBlocks(state, cfg.version);
1514
+ resolve(hit);
1515
+ };
1516
+ if (document.body) return decide();
1517
+ const o = new MutationObserver(() => { if (document.body) { o.disconnect(); decide(); } });
1518
+ o.observe(document.documentElement, { childList: true });
1519
+ document.addEventListener('DOMContentLoaded', () => { o.disconnect(); decide(); }, { once: true });
1520
+ });
1521
+ } catch (e) {
1522
+ return miss;
1523
+ }
1524
+ }
1525
+ // Until DOMContentLoaded: a parsed block the entry wasn't built from means it is another page's theme; engine now
1526
+ function watchParsedTailwindBlocks(state, version) {
1527
+ const o = new MutationObserver((records) => {
1528
+ for (const r of records) {
1529
+ for (const n of r.addedNodes) {
1530
+ if (n.localName !== 'style' || n.getAttribute('type') !== 'text/tailwindcss' || n.id === 'manifest-tailwind-variants') continue;
1531
+ const blocks = tailwindAuthorBlocks();
1532
+ if (blocks.length <= state.record.blocks.length && blocks.every((b, i) => b === state.record.blocks[i])) continue;
1533
+ o.disconnect();
1534
+ if (state.style) state.style.remove();
1535
+ Object.assign(state, { style: null, parsedMismatch: true });
1536
+ state.load = loadTailwind(version).catch(() => { });
1537
+ return;
1538
+ }
1539
+ }
1540
+ });
1541
+ o.observe(document.documentElement, { childList: true, subtree: true });
1542
+ document.addEventListener('DOMContentLoaded', () => o.disconnect(), { once: true });
1543
+ }
1544
+
1545
+ // Where the eager engine would have landed (after the module wave), or the engine itself if nothing armed
1546
+ function settleTailwindCache(version) {
1547
+ const state = window.__tailwindCache;
1548
+ if (!state || !state.style || !state.style.isConnected) return;
1549
+ if (!state.armed) {
1550
+ state.load = loadTailwind(version).catch(() => { });
1551
+ return;
1552
+ }
1553
+ let next = state.style.nextElementSibling;
1554
+ const isCss = (el) => (el.localName === 'style' && el.id !== 'manifest-styles' && el.getAttribute('type') !== 'text/tailwindcss') || (el.localName === 'link' && /\bstylesheet\b/i.test(el.rel));
1555
+ while (next && !isCss(next)) next = next.nextElementSibling;
1556
+ if (next) placeTailwindCache(state.style);
1557
+ }
1558
+
1450
1559
  // Load custom Tailwind CDN script, falling through the CDN chain on error
1451
1560
  async function loadTailwind(version = RESOLVED_VERSION) {
1452
1561
  const urls = CDN_HOSTS.map(h => `${getBaseUrl(version, h)}/${hostFile(h, 'manifest.tailwind.min.js')}`);
@@ -1801,7 +1910,9 @@
1801
1910
  });
1802
1911
  });
1803
1912
  if (config.tailwind && !staticUtilitiesFullyCovered()) {
1804
- pluginPromises.push(loadTailwind(config.version).catch(() => { }));
1913
+ pluginPromises.push(config.tailwindCache
1914
+ ? tailwindReplay.then(hit => hit ? null : loadTailwind(config.version)).catch(() => { })
1915
+ : loadTailwind(config.version).catch(() => { }));
1805
1916
  }
1806
1917
  // Usage sniff once the document is parsed: on-use modules download alongside the
1807
1918
  // rest and run before Alpine. Derive path only — an explicit data-modules list is an
@@ -1827,6 +1938,7 @@
1827
1938
  resolve(Promise.all(late));
1828
1939
  }));
1829
1940
  await Promise.all(pluginPromises);
1941
+ settleTailwindCache(config.version);
1830
1942
  if (manifestPromise) {
1831
1943
  manifest = await manifestPromise;
1832
1944
  }
@@ -1886,6 +1998,7 @@
1886
1998
  check();
1887
1999
  }
1888
2000
 
2001
+ const tailwindReplay = config.tailwindCache ? replayTailwindCache(config) : null;
1889
2002
  hintEarlyFetches();
1890
2003
  loadPlugins();
1891
2004
  }
@@ -1,2 +1,2 @@
1
- !function(){"use strict";const e=document.currentScript;if(!window.ManifestPending){const He=new Map;let Ze=0;window.ManifestPending={hold(e="work"){const t=++Ze;return He.set(t,e),()=>{He.delete(t)}},get count(){return He.size+(window.__manifestMarkdownPending||0)+(window.__manifestUtilitiesPending||0)},labels(){const e=[...He.values()];return window.__manifestMarkdownPending>0&&e.push("markdown"),window.__manifestUtilitiesPending>0&&e.push("utilities"),e},background:e=>("function"==typeof e&&(e.__manifestBackground=!0),e)}}const t=new Set,n=new WeakSet;let i=!1;function o(){for(const e of[...t])e.settle()}function r(){i||(i=!0,queueMicrotask(()=>{i=!1,o()}))}function a(e){for(let t=e.parentNode;t;t=t.parentNode)if(t._x_ignore)return!0;return!1}function s(e,i){const s=window.Alpine,c=e.getAttribute("x-if");let l=!e.closest("[x-data],[x-init]"),d=!1,u=null;const f=()=>!!s.evaluate(e,c),p=()=>{u&&(u(),u=null)},m=()=>{t.delete(y),p()},w=()=>{l=!1,d=!1,p(),i._x_ignore=!0,t.add(y)},g=()=>{m(),s.mutateDom(()=>{s.destroyTree(i),i.remove()}),delete e._x_currentIfEl,delete e._x_lastRenderedEl,r()},h=()=>{l||e._x_currentIfEl!==i||!i.isConnected||a(e)||(l=!0,d=!1,m(),delete i._x_ignore,s.initTree(i),o())},y={settle(){if(!l&&!d)return e._x_currentIfEl!==i?m():void(i.isConnected?e._x_marker&&!a(e)&&f()&&h():i.getRootNode()instanceof DocumentFragment||m())}},v=()=>window.__manifestReady||!window.__manifestReadyCoordinator?g():(queueMicrotask(()=>{e._x_currentIfEl===i&&(e._x_undoIf=v,(()=>{if(u||!d||e._x_currentIfEl!==i||a(e))return;const t=s.evaluateLater(e,c),n=s.effect(()=>t(e=>{e&&queueMicrotask(()=>{d&&f()&&h()})}));u=()=>s.release(n)})())}),a(e)?w():(l&&(l=!1,i._x_ignore=!0,s.destroyTree(i),t.add(y)),void(d||(d=!0,window.addEventListener("manifest:ready",()=>{if(d&&e._x_currentIfEl===i){if(e.isConnected&&a(e))return w();if(e.isConnected&&f())return h();g(),delete e._x_undoIf}},{once:!0})))));e._x_currentIfEl=i,e._x_lastRenderedEl=i,e._x_undoIf=v,n.add(e),l||(i._x_ignore=!0,t.add(y))}function c(e,t){e.querySelectorAll("template").forEach(e=>{const n=t||e.matches("[x-if],[x-for]");n&&e.content.querySelectorAll("[data-pre-rendered]").forEach(e=>{e.tagName.startsWith("X-")&&e.removeAttribute("data-pre-rendered")}),c(e.content,n)})}function l(){try{!function(){if("undefined"==typeof document||!document.querySelector)return;const e=document.querySelector('meta[name="manifest:prerendered"]');if(!e||"0"===e.getAttribute("content"))return;const t=document.getElementById("__manifest_hydrate__");if(!t)return;let n;try{n=JSON.parse(t.textContent||"[]")}catch(e){n=[]}if(!Array.isArray(n)||0===n.length)return void t.remove();const i=e=>String(null==e?"":e).replace(/&/g,"&amp;").replace(/"/g,"&quot;"),o=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),r=[];for(const e of n){const t=document.querySelector('[data-hydrate-id="'+e.id+'"]');if(!t)continue;let n=0;for(let e=t.parentNode;e;e=e.parentNode)n++;r.push({entry:e,el:t,depth:n})}r.sort((e,t)=>t.depth-e.depth);for(const{entry:e,el:t}of r){const n=document.querySelector('[data-hydrate-id="'+e.id+'"]')||t;if(!n||!n.parentNode)continue;if("string"==typeof e.html){const t=n.tagName.toLowerCase(),r={},a=n.attributes;for(let e=0;e<a.length;e++)"data-hydrate-id"!==a[e].name&&(r[a[e].name]=a[e].value);if(e.attrs)for(const t in e.attrs){const n=e.attrs[t];null===n?delete r[t]:r[t]=n}const s=Object.keys(r).map(e=>e+'="'+i(r[e])+'"').join(" "),c=o.has(t)?"<"+t+" "+s+">":"<"+t+" "+s+">"+e.html+"</"+t+">",l=document.createElement("div");l.innerHTML=c;const d=l.firstElementChild;if(d)try{n.parentNode.replaceChild(d,n)}catch(e){}continue}if(!e.attrs)continue;const r=n.tagName.toLowerCase(),a={},s=n.attributes;for(let e=0;e<s.length;e++)"data-hydrate-id"!==s[e].name&&(a[s[e].name]=s[e].value);for(const t in e.attrs){const n=e.attrs[t];null===n?delete a[t]:a[t]=n}const c=Object.keys(a).map(e=>e+'="'+i(a[e])+'"').join(" "),l=o.has(r),d=l?"":n.innerHTML,u=l?"<"+r+" "+c+">":"<"+r+" "+c+">"+d+"</"+r+">",f=document.createElement("div");f.innerHTML=u;const p=f.firstElementChild;if(p)try{n.parentNode.replaceChild(p,n)}catch(e){}}t.remove()}()}catch(e){}}if("undefined"!=typeof document&&document.addEventListener("alpine:init",function(){if("undefined"==typeof document||!document.querySelectorAll)return;c(document);let e=0;if(document.querySelectorAll("[data-mnfst-prerender-clone]").forEach(t=>{if(t.closest&&t.closest("[data-hydrate]"))return;t.removeAttribute("data-mnfst-prerender-clone");const n=t.previousElementSibling;n&&"TEMPLATE"===n.tagName&&n.hasAttribute("x-if")?(s(n,t),e++):t.remove()}),!e)return;const i=window.Alpine;"function"==typeof i.interceptInit&&i.interceptInit(e=>{n.has(e)&&t.size&&r()}),document.addEventListener("alpine:initialized",o,{once:!0})},{once:!0}),"undefined"!=typeof document)if("loading"===document.readyState){let Ge=!1;document.addEventListener("readystatechange",()=>{Ge||"loading"===document.readyState||(Ge=!0,l())})}else l();if("undefined"!=typeof window&&"undefined"!=typeof document){let Xe=null;window.addEventListener("resize",()=>{document.documentElement.classList.add("window-resizing"),Xe&&clearTimeout(Xe),Xe=setTimeout(()=>{document.documentElement.classList.remove("window-resizing"),Xe=null},200)},{passive:!0})}const d="latest",u="0.5.333",f="sha384-EoPUnvcTd0V6ugOg+8X6DWOIWmgwj36CxAAGVd+PwRq2h5Rmxh+vUp0wjh+xzml5",p="manifest.modules.integrity.json",m="manifest.vendor.integrity.json";let w=null,g=null,h=!1,y=null,v=d,_=["https://cdn.manifestx.dev/npm","https://cdn.jsdelivr.net/npm","https://unpkg.com"];function b(e,t){return e.includes("unpkg.com")?t.replace(/\.min\.js$/,".js"):t}function $(e=d,t=_[0]){return`${t}/mnfst@${e}/lib`}const x=["components","router","utilities","data","icons","localization","color","toasts","tooltips","dropdowns","computed","tabs","url-parameters","status"],E=["defer","bindings"],k=["edit"],S=["appwrite-auth","appwrite-data","appwrite-presences"],A=["rich-text","submissions","markdown","svg","code","combobox","slides","colorpicker","datepicker","charts","virtual","export"],L={"appwrite-data":["data"],"appwrite-presences":["data","appwrite-auth"],device:["utilities"],edit:["rich-text"]};let P=null;let M=[];function j(e,t=v){const n=e.replace(/-/g,".");if(P){return[`${P.replace(/\/$/,"")}/manifest.${n}.js`]}return _.map(e=>`${$(t,e)}/${b(e,`manifest.${n}.min.js`)}`)}function C(e,t=v){return j(e,t)[0]}function I(e){if(e&&(e.startsWith("http")||e.startsWith("/")))return[e];const t=e||"3.17.5";return _.map(e=>`${e}/alpinejs@${t}/dist/cdn.min.js`)}function R(e){if(function(){if("complete"===document.readyState)return!0;if("loading"===document.readyState)return!1;try{const e=performance.getEntriesByType("navigation")[0];if(e)return e.domContentLoadedEventEnd>0}catch(e){}return!1}())return void e();let t=!1;const n=()=>{t||(t=!0,e())};document.addEventListener("DOMContentLoaded",n,{once:!0}),window.addEventListener("load",n,{once:!0})}function T(t){if(t.hasAttribute("data-mnfst-loaded"))return!0;if(t.hasAttribute("data-mnfst-loading"))return!1;if("complete"===document.readyState)return!0;if(!t.async&&!t.defer&&e&&e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING)return!0;try{if(t.src&&performance.getEntriesByName(t.src).length)return!0}catch(e){}return!1}function N(e,t,n=!0,i=null){return new Promise((o,r)=>{const a=document.querySelector(`script[src="${e}"]`);if(a){if(T(a))return o();let t=!1;const n=()=>{t||(t=!0,o())};a.addEventListener("load",n),a.addEventListener("error",()=>{t||(t=!0,r(new Error(`Failed to load ${e}`)))});const i=setInterval(()=>{T(a)&&(clearInterval(i),n())},50);return void setTimeout(()=>{clearInterval(i),n()},4e3)}const s=document.createElement("script");t&&(s.integrity=t,s.crossOrigin="anonymous"),i&&s.setAttribute("fetchpriority",i),s.src=e,s.async=!n,s.setAttribute("data-mnfst-loading",""),s.onload=()=>{s.removeAttribute("data-mnfst-loading"),s.setAttribute("data-mnfst-loaded",""),o()},s.onerror=()=>{s.removeAttribute("data-mnfst-loading"),s.remove(),r(new Error(`Failed to load ${e}`))},document.head.appendChild(s)})}function z(e){return e.split(/[?#]/)[0].split("/").pop()}function O(e){const t=e.match(/(alpinejs@[^/]+\/dist\/cdn\.min\.js)(?:[?#]|$)/);return t?t[1]:null}function W(e){try{const t=performance.getEntriesByName(new URL(e,location.href).href).pop();return!!t&&200===t.responseStatus}catch(e){return!1}}function q(e,t){if("warn"!==w)throw console.error(`[Manifest Loader] ${e} ${t} data-integrity="warn" loads it unchecked instead.`),Object.assign(new Error(e),{logged:!0});console.warn(`[Manifest Loader] ${e} Loading unchecked (data-integrity="warn").`)}async function U(e,t,n){for(const i of e){try{const e=await fetch(i,t?{integrity:t,mode:"cors",credentials:"omit"}:{mode:"cors",credentials:"omit"});if(e.ok)return e}catch(e){}console.error(`[Manifest Loader] ${n} failed to load${t?" or failed its integrity check":""} from ${i}`)}throw new Error(`${n} could not be ${t?"verified":"loaded"} from any CDN${t?` (expected ${t})`:""}.`)}let D=null;const F=/^sha(256|384|512)-[A-Za-z0-9+/=]+$/;function B(e,t){const n=e&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:null;return"string"==typeof n&&F.test(n)?n:null}async function V(e,t){const n=B(e,t);if(n)return n;const i=B(e,m);return i&&/\/(languages|langs)\//.test(t)?(D||(D=U(_.map(e=>`${$(u,e)}/${m}`),i,m).then(e=>e.json()).catch(e=>{throw D=null,e})),B(await D,t)):null}async function H(e,{key:t=null,hash:n=null,alpine:i=!1,unchecked:o=!1,ordered:r=!0,priority:a=null}={}){const s=g&&!o?await g:null,c=t||z(e[0]||"");let l=null;for(const o of e){let c=n;if(s){const e=t||(i?O(o):z(o));c=e&&await V(s,e)||(i?y:null),c||(i?q(`No integrity hash is known for Alpine at ${o}. Add data-alpine-integrity="sha384-…" for it, or remove data-alpine to use the default.`,"Alpine was not loaded."):q(`${e||o} has no integrity hash in this release.`,"Not loaded."))}try{return await N(o,c,r,a)}catch(t){l=t,c?console.error(`[Manifest Loader] ${z(o)} ${W(o)?"failed its integrity check":"failed to load or failed its integrity check"} from ${o}${e.length>1?" — trying next CDN":""}`):e.length>1&&console.warn(`[Manifest Loader] ${o} failed — trying fallback CDN`)}}throw s&&console.error(`[Manifest Loader] ${c} did not match its integrity hash on any CDN — not loaded.`),l||new Error(`Failed to load ${c}`)}const Z=new Map,G=new Set;async function X(e,t=v){const n=Z.get(e);if(n)return n.version!==t&&console.warn(`[Manifest Loader] ${e} already loaded at ${n.version} — ignoring request for ${t}`),n.promise;const i=async function(e,t){let n=!1;h&&t!==u&&(q(`Integrity checks cover this loader's own version (${u}); ${e} was requested at ${t}.`,"Not loaded."),n=!0);const i=["components","data","localization"].includes(e)?"high":null;return H(j(e,t),{unchecked:n,priority:i})}(e,t);return Z.set(e,{version:t,promise:i}),i.then(()=>G.add(e),()=>Z.delete(e)),i}function J(e){const t=[],n=new Set,i={native:"device",import:"export"};function o(e){if(e=i[e]||e,n.has(e))return;const r=L[e];if(r)for(const e of r)n.has(e)||o(e);t.push(e),n.add(e)}for(const t of e)o(t);return t}const K=[{magic:"$chat",plugin:"chat"},{magic:"$presence",plugin:"appwrite-presences"},{magic:"$rich",plugin:"rich-text",attr:"x-rich-text",family:!0},{plugin:"submissions",attr:"x-submit",family:!0},...["$share","$secure","$links","$push","$app","$haptics","$biometric","$camera"].map(e=>({magic:e,plugin:"device"})),{plugin:"charts",attr:"x-chart",magic:"$chart",present:"ensureChartsPluginInitialized"},{plugin:"colorpicker",attr:"x-colorpicker",magic:"$colorpicker",present:"ensureColorpickerPluginInitialized"},{plugin:"datepicker",attr:"x-date",magic:"$date",present:"ensureDatepickerPluginInitialized"},{plugin:"combobox",attr:"x-combobox",present:"ensureComboboxPluginInitialized"},{plugin:"code",attr:"x-code",present:"ensureCodePluginInitialized"},{plugin:"code",attr:"x-code-group",present:"ensureCodePluginInitialized"},{plugin:"markdown",attr:"x-markdown",present:"ensureMarkdownPluginInitialized"},{plugin:"export",attr:"x-export",magic:"$export",present:"ensureExportPluginInitialized",call:!0},{plugin:"export",attr:"x-import",magic:"$import",present:"ensureImportPluginInitialized",call:!0},{plugin:"virtual",attr:"x-virtual",present:"ensureVirtualPluginInitialized"},{plugin:"slides",attr:"x-carousel",present:"ensureSlidesPluginInitialized"},{plugin:"svg",attr:"x-svg",present:"ensureSvgPluginInitialized"}].map(e=>({...e,late:A.includes(e.plugin)&&!["rich-text","submissions"].includes(e.plugin),re:e.magic?new RegExp("\\"+e.magic+"\\b"):null})),Q=[...new Set(K.map(e=>e.plugin))],Y=new Map(K.filter(e=>e.attr).map(e=>[e.attr,e])),ee=K.filter(e=>e.family).map(e=>[e.attr+"-",e]),te=e=>{const t=ne(e);return t&&t.plugin};function ne(e){if(120!==e.charCodeAt(0)||45!==e.charCodeAt(1))return;let t=e.length;for(let n=2;n<t;n++){const i=e.charCodeAt(n);if(46===i||58===i){t=n;break}}const n=t===e.length?e:e.slice(0,t),i=Y.get(n);if(i)return i;for(const[e,t]of ee)if(n.startsWith(e))return t}let ie=!1;!function(){if("undefined"==typeof window||"undefined"==typeof document||ie)return;ie=!0;const e=()=>{const e=window.Alpine;if(window.ManifestRichText||!e||!e.magic||!e.reactive||window.__manifestRichStub)return;const t=window.__manifestRichStub=e.reactive({v:0}),n=window.__manifestRichStubWrites=[],i=new WeakMap,o=e=>e&&"function"==typeof e.deref?e.deref():e,r={value:"",link:"",selection:null,all:{},active:()=>!1,can:()=>!1,markdown:()=>"",html:()=>""};e.magic("rich",(e,a)=>(t.v,window.__manifestRichMagic?window.__manifestRichMagic(e,a):(e=>(i.has(e)||i.set(e,new Proxy(r,{get:(t,i)=>{const r=n.find(t=>o(t[0])===e&&t[1]===i);return r?r[2]:i in t?t[i]:"string"==typeof i?()=>{}:void 0},set:(t,i,r)=>{for(let t=n.length-1;t>=0;t--){const r=o(n[t][0]);r&&r.isConnected&&(r!==e||n[t][1]!==i)||n.splice(t,1)}return n.push(["function"==typeof WeakRef?new WeakRef(e):e,i,r]),!0}})),i.get(e)))(e)))};document.addEventListener("alpine:init",e,{once:!0}),window.Alpine&&window.Alpine.magic&&e()}();let oe=!1;!function(){if("undefined"==typeof window||"undefined"==typeof document||oe)return;oe=!0;const e=()=>{const e=window.Alpine;if(window.__manifestEditMagic||!e||!e.magic||!e.reactive||window.__manifestEditStub)return;const t=window.__manifestEditStub=e.reactive({v:0}),n=()=>!1,i=window.__manifestEditStubWrites={},o=new Proxy({active:!1,canUndo:!1,canRedo:!1,version:0,stale:[],conflicts:[],onPublish:null,target:null,can:n,scope:()=>null,block:()=>null,patches:()=>[],export:()=>({log:[],cursor:0}),publish:()=>Promise.resolve({results:[]}),undo:()=>Promise.resolve(!1),redo:()=>Promise.resolve(!1),classes:new Proxy({},{get:()=>n})},{get:(e,t)=>t in i?i[t]:t in e?e[t]:"string"==typeof t?n:void 0,set:(e,t,n)=>(i[t]=n,!0)});e.magic("edit",(e,n)=>(t.v,window.__manifestEditMagic?window.__manifestEditMagic(e,n):o))};document.addEventListener("alpine:init",e,{once:!0}),window.Alpine&&window.Alpine.magic&&e()}(),"undefined"!=typeof document&&document.addEventListener("alpine:initialized",()=>{window.__manifestAlpineStarted=!0},{once:!0});const re=K.filter(e=>e.late),ae=re.filter(e=>e.attr).map(e=>e.attr),se="undefined"==typeof window?[]:re.filter(e=>window[e.present]).map(e=>e.plugin),ce=new Set,le=new Map,de=new Map,ue=new Set,fe=e=>{const t=ne(e);return t&&t.late&&!se.includes(t.plugin)?t:null},pe=new Set;function me(e){if(je.has(e)||pe.has(e))return null;if(!Z.has(e)){if(!Me||M.includes(e))return null;Re(J([e]).filter(e=>!Ce(e)))}const t=Z.get(e);return t?t.promise:null}const we=new WeakSet;let ge=0,he=null;const ye=["markdown","code","svg"];function ve(e,t,n){const i=me(n.plugin);if(!i)return!1;const o=n.attr.slice(2);we.add(t),!ge++&&window.ManifestPending&&(he=window.ManifestPending.hold("held"));let r=!1;const a=()=>{if(!r&&(r=!0,we.delete(t),! --ge&&he)){const e=he;he=null,e()}},s=[];let c=null;try{const e=!t.hasAttribute("x-data")&&t.parentElement&&t.parentElement.closest("[x-data]");if(e){e._x_refs||(e._x_refs={});for(const n of[t,...t.querySelectorAll("[x-ref]")]){const t=n.getAttribute("x-ref");!t||n.closest("[x-data]")!==e||e._x_refs[t]&&!s.some(n=>n[2]===e._x_refs[t])||(e._x_refs[t]=n,s.push([e,t,n]))}}c=ye.includes(n.plugin)?t.style.opacity:null,null!==c&&(t.style.opacity="0")}catch(e){}const l=new Promise(e=>{let t=!1;(e=>{if(ce.has(e))return Promise.resolve();if(!le.has(e)){let t;const n=new Promise(e=>{t=e});le.set(e,{promise:n,resolve:t})}return le.get(e).promise})(o).then(()=>{t=!0,e()});const r=i=>{t||(pe.add(n.plugin),ue.has(n.plugin)||(ue.add(n.plugin),console.warn(`[Manifest Loader] ${n.plugin} ${i}: starting the elements that use it now${"failed to load"===i?", without it":"; it applies to them if it starts later"}.`)),e())};i.catch(()=>r("failed to load")),i.then(()=>setTimeout(()=>r("has not started 10 s after loading"),1e4),()=>{})}),d=l.then(()=>{let e=null;try{we.delete(t),null!==c&&(t.style.opacity=c);for(const[e,t,n]of s)!n.isConnected&&e._x_refs&&e._x_refs[t]===n&&delete e._x_refs[t];e=function(e){const t=[],n=e.matches("input, textarea, select")?[e]:[];n.push(...e.querySelectorAll("input, textarea, select"));for(const e of n)try{if("file"===e.type){e.files&&e.files.length&&t.push([e,"files",null]);continue}if("radio"===e.type)e.checked&&!e.defaultChecked&&t.push([e,"checked",!0]);else if("checkbox"===e.type)e.checked!==e.defaultChecked&&t.push([e,"checked",e.checked]);else if("SELECT"===e.tagName){const n=[...e.options].map(e=>e.selected);n.some((t,n)=>t!==e.options[n].defaultSelected)&&t.push([e,"options",n])}else e.value!==e.defaultValue&&t.push([e,"value",e.value])}catch(e){}const i=document.activeElement,o=i&&e.contains(i)?[i,i.selectionStart,i.selectionEnd]:null;return()=>{const n=new WeakSet,i=e=>{n.has(e)&&e.stopPropagation()};e.addEventListener("input",i),e.addEventListener("change",i);const r=(e,t)=>{const i=new Event(t,{bubbles:!0});n.add(i),e.dispatchEvent(i)};for(const[e,n,i]of t)try{if(!e.isConnected||e.readOnly||e.disabled)continue;"options"===n?[...e.options].forEach((e,t)=>{e.selected=!!i[t]}):"files"!==n&&(e[n]=i),r(e,"input"),r(e,"change")}catch(e){}if(e.removeEventListener("input",i),e.removeEventListener("change",i),o&&o[0].isConnected)try{o[0].focus({preventScroll:!0}),null!=o[1]&&o[0].setSelectionRange(o[1],o[2])}catch(e){}}}(t)}catch(e){}setTimeout(()=>{try{e&&e()}finally{a()}},0)});try{e.deferInit(t,d)}catch(e){throw a(),e}return!0}let _e=!1;function be(){const e="undefined"==typeof window?null:window.Alpine;if(_e||!e||!e.directive||!e.magic)return;_e=!0;const t=e.directive,n=e.magic;if(e.directive=function(e){const n=t.apply(this,arguments);if(!ce.has(e)){ce.add(e);const t=le.get(e);t&&(le.delete(e),t.resolve());const n=de.get(e);n&&(de.delete(e),setTimeout(()=>n.forEach(([e,t])=>{const n=$e(e);try{n&&n.isConnected&&n.hasAttribute(t)&&n.setAttribute(t,n.getAttribute(t))}catch(e){}}),0))}return n},"function"==typeof e.interceptInit){const t="function"==typeof e.deferInit,n=e=>{try{i(e)}catch(e){}},i=n=>{if(!we.has(n))for(const i of n.attributes){const o=fe(i.name);if(o&&!ce.has(o.attr.slice(2)))if(pe.has(o.plugin))xe(o,n,i.name);else if(t){if(ve(e,n,o))return}else me(o.plugin)&&xe(o,n,i.name)}};e.interceptInit("function"==typeof e.skipDuringClone?e.skipDuringClone(n):n)}!function(e,t){const n={},i=e.reactive?e.reactive({v:0}):{v:0},o=t=>{window.__manifestProbing=!0;try{return"undefined"!==e.evaluate(document.createElement("div"),`typeof $${t}`)}catch(e){return!1}finally{window.__manifestProbing=!1}},r=(e,t)=>new Proxy(function(){},{get(n,i){const o=e();if(null!=o){const e=o[i];return"function"==typeof e&&"constructor"!==i?e.bind(o):e}return i===Symbol.toPrimitive?()=>"":"symbol"!=typeof i&&"then"!==i?r(()=>{const t=e();return null==t?void 0:t[i]},t):void 0},apply(n,i,o){const a=e();if("function"==typeof a)return a.apply(i,o);if(t)return t().then(()=>{const t=e();return"function"==typeof t?t.apply(i,o):void 0});let s,c=!1;return r(()=>{if(c)return s;const t=e();return"function"==typeof t?(c=!0,s=t.apply(i,o)):void 0},t)}});for(const a of re){if(!a.magic||se.includes(a.plugin)||G.has(a.plugin))continue;const s=a.magic.slice(1);if(o(s))continue;let c=!1;const l=()=>new Promise(e=>{if(n[s])return e();const t=me(a.plugin);if(!t)return e();const i=()=>n[s]?e():null;t.then(()=>setTimeout(()=>{i(),setTimeout(e,0)},0),e)});t.call(e,s,(e,t)=>{if(i.v,n[s])return n[s](e,t);if(!(c||window.__manifestProbing||(c=!0,me(a.plugin)||ue.has(s)||ue.has(a.plugin)))){ue.add(s);const e=M.includes(a.plugin)?`remove ${a.plugin} from data-omit`:`add data-modules="+${a.plugin}"`;console.warn(`[Manifest Loader] ${a.magic} is used but ${a.plugin} is not loaded on this page: ${e}.`)}const o=a.call?"$import"!==a.magic?l:()=>l().then(()=>{const e=navigator.userActivation;!e||e.isActive||ue.has("$import:activation")||(ue.add("$import:activation"),console.warn('[Manifest Loader] $import waited for its module and the click that called it expired, so the browser may not open the file picker. Add data-modules="+import" to load it with the page.'))}):null;return r(()=>n[s]?n[s](e,t):void 0,o)})}e.magic=function(e,o){return re.some(t=>t.magic==="$"+e)&&(n[e]=o,setTimeout(()=>{i.v++},0)),t.apply(this,arguments)}}(e,n)}const $e=e=>e&&"function"==typeof e.deref?e.deref():e;function xe(e,t,n){const i=e.attr.slice(2);if(ce.has(i))return;de.has(i)||de.set(i,[]);const o=de.get(i).filter(([e])=>$e(e));o.push(["function"==typeof WeakRef?new WeakRef(t):t,n]),de.set(i,o)}"undefined"!=typeof document&&(document.addEventListener("alpine:init",be,{once:!0}),"undefined"!=typeof window&&window.Alpine&&window.Alpine.magic&&be()),"undefined"!=typeof window&&(window.__manifestHeld=e=>{if(!ge)return!1;for(let t=e;t;t=t.parentElement)if(we.has(t))return!0;return!1});const Ee=/^x-(code|code-group)$/,ke=new RegExp("\\$("+K.filter(e=>e.magic).map(e=>e.magic.slice(1)).join("|")+")\\b"),Se=new Set;function Ae(e,t=("undefined"==typeof document?null:document)){const n=K.filter(t=>!e.includes(t.plugin)),i=!e.includes("components");if(0===n.length&&!i||!t)return[];const o=new Set,r=new Set(n.map(e=>e.plugin)),a=r.size+(i?1:0),s=()=>o.size===a,c=e=>{e&&r.has(e)&&!o.has(e)&&o.add(e)},l=r.has("code");for(const e of t.querySelectorAll("script:not([src])")){const t=e.textContent||"";for(const e of n)e.re&&!o.has(e.plugin)&&e.re.test(t)&&o.add(e.plugin);if(s())return[...o]}const d=e=>{if(i&&!o.has("components")){const t=e.tagName.toLowerCase();t.startsWith("x-")&&!Ee.test(t)&&o.add("components")}l&&c(function(e){if("CODE"!==e.tagName)return;if(e.hasAttribute("copy"))return"code";const t=e.getAttribute("class");return t&&-1!==t.indexOf("language-")&&e.parentElement&&"PRE"===e.parentElement.tagName?"code":void 0}(e));for(const t of e.attributes||[]){c(te(t.name));const e=t.value;if(e&&-1!==e.indexOf("$")&&!Se.has(e))if(ke.test(e))for(const t of n)t.re&&!o.has(t.plugin)&&t.re.test(e)&&o.add(t.plugin);else Se.size>2e4&&Se.clear(),Se.add(e)}},u=e=>{for(const t of e.querySelectorAll("*")){if(d(t),s())return;if("TEMPLATE"===t.tagName&&t.content&&(u(t.content),s()))return}};return 1===t.nodeType&&(d(t),"TEMPLATE"===t.tagName&&t.content&&u(t.content)),s()||u(t),[...o]}let Le=null;function Pe(){if(Le)return Le;const e=new Set,t="undefined"==typeof MutationObserver?null:new MutationObserver(t=>{for(const n of t)for(const t of n.addedNodes)1===t.nodeType&&e.add(t)});t&&t.observe(document.documentElement,{childList:!0,subtree:!0});const n=Ae([]);return Le={used:n,take(){t&&t.disconnect();const i=new Set(n);for(const t of e)t.isConnected&&Ae([...i],t).forEach(e=>i.add(e));return e.clear(),[...i]}},Le}let Me=!1;const je=new Set,Ce=e=>G.has(e)||je.has(e);function Ie(e,t=v){if(!Me||!e||"undefined"==typeof document)return Promise.resolve([]);let n=e;if("string"==typeof e){if(-1===e.indexOf("x-")&&-1===e.indexOf("$")&&-1===e.indexOf("<code"))return Promise.resolve([]);n=document.createElement("template"),n.innerHTML=e,n=n.content}const i=Ae(Q.filter(Ce).concat("components",M),n);return i.length?Re(J(i).filter(e=>!Ce(e)),t):Promise.resolve([])}function Re(e,t=v){if(!e.length)return Promise.resolve([]);const n=window.ManifestPending?window.ManifestPending.hold("module"):()=>{};return Promise.all(e.map(e=>X(e,t).catch(t=>{je.has(e)||(je.add(e),console.warn(`[Manifest Loader] Failed to load plugin ${e}:`,t))}))).then(()=>new Promise(e=>setTimeout(e,0))).then(()=>(n(),e))}function Te(e){if("undefined"==typeof MutationObserver)return;const t=new Set;let n=!1;const i=new MutationObserver(o=>{for(const e of o)if("attributes"!==e.type)for(const n of e.addedNodes)1===n.nodeType&&t.add(n);else Ne(e.target,e.attributeName);!n&&t.size&&(n=!0,setTimeout(()=>{n=!1;const o=[...t].filter(e=>e.isConnected);t.clear(),o.forEach(t=>Ie(t,e)),K.every(e=>Ce(e.plugin)||M.includes(e.plugin))&&i.disconnect()},0))});i.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:ae})}function Ne(e,t){const n=fe(t);n&&e.hasAttribute(t)&&!ce.has(n.attr.slice(2))&&!window.__manifestHeld(e)&&me(n.plugin)&&xe(n,e,t)}const ze={"text-edit":"rich-text"};function Oe(e){return e.filter(e=>{const t=e.replace(/^\+/,"");return!ze[t]||(console.warn(`[Manifest Loader] ${t} was renamed to ${ze[t]}`),!1)})}async function We(e=v){const t=_.map(t=>`${$(e,t)}/${b(t,"manifest.tailwind.min.js")}`);let n=null;try{return await H(t)}catch(e){n=e}throw console.warn('[Manifest Loader] Tailwind plugin not available from any CDN. Load it directly: <script src="/scripts/tailwind.v4.3.1.js"><\/script>'),n||new Error("Tailwind plugin not available from CDN.")}window.Manifest={loadPlugin:function(e,t=v){if(![...x,...A,...S,...k,"payments","chat","device","native","import","tailwind"].includes(e))return ze[e]?Oe([e]):console.warn(`[Manifest Loader] Unknown module: ${e}`),Promise.reject(new Error(`Unknown module: ${e}`));const n=J([e]);return Promise.all(n.map(e=>X(e,t)))},loadTailwind:We,loadVendor:function(e,t){return H(_.map(t=>`${t}/${e}`),{key:e,hash:t,ordered:!1})},fetchVendor:async function(e,t){const n=g?await g:null;let i=t||null;return n&&(i=await V(n,e),i||q(`${e} has no integrity hash in this release.`,"Not loaded.")),U(_.map(t=>`${t}/${e}`),i,e)},get integrity(){return h},getPluginUrl:C,getModuleUrl:C,loadUsed:Ie},window.Manifest.loadModule=window.Manifest.loadPlugin;const qe="/sw.js";const Ue={registered:!1,version:null,kill:()=>De(null)};async function De(e){Ue.registered=!1;try{const t=e||await navigator.serviceWorker.getRegistration(qe);if(t){const e=t.active||t.waiting||t.installing;try{e&&e.postMessage({type:"manifest:sw",action:"kill"})}catch(e){}await t.unregister()}}catch(e){}try{if(window.caches){const e=await caches.keys();await Promise.all(e.filter(e=>e.startsWith("mnfst-sw:")).map(e=>caches.delete(e)))}}catch(e){}}async function Fe(e){const t=e.sw,n="on"===t,i=n?(...e)=>console.info("[Manifest SW]",...e):()=>{};if(!navigator.serviceWorker)return i("skip: unsupported");const o=window.location,r=!!window.__mnfstRun,a=function(e){const t=String(e||"").toLowerCase();return"localhost"===t||"127.0.0.1"===t||"[::1]"===t||"::1"===t||"0.0.0.0"===t||t.endsWith(".localhost")||t.endsWith(".local")}(o.hostname);let s=window.__manifestLoaded||null;if(!s&&window.__manifestPromise&&(s=await window.__manifestPromise.catch(()=>null)),!s){const e=document.querySelector('link[rel="manifest"]')?.getAttribute("href")||"/manifest.json";s=await fetch(e).then(e=>e.ok?e.json():null).catch(()=>null)}const c="off"===t||s&&!1===s.sw,l=await navigator.serviceWorker.getRegistration(qe).catch(()=>null);if(c||r||a&&!n)return i("skip:",c?"kill switch":r?"mnfst-run":"dev origin",l?"(unregistering)":""),void await De(l);if(!("https:"===o.protocol||n&&window.isSecureContext))return i("skip: not https");let d=null;try{d=sessionStorage.getItem("manifest:sw-probe")}catch(e){}const u="strict"===w;if("ok"!==d||u){const e=await fetch(qe,{cache:"no-store"}).catch(()=>null),t=e&&e.headers.get("content-type")||"";if(!e||!e.ok||!/javascript|ecmascript/i.test(t))return i("skip: no stub",e&&e.status,t);if(u&&(f=await e.text().catch(()=>""),(String(f).match(/importScripts\s*\(([^)]*)\)/g)||[]).some(e=>(e.match(/https?:\/\/[^'"`\s)]+/g)||[]).some(e=>{try{return new URL(e).origin!==location.origin}catch(e){return!0}}))))return console.warn(`[Manifest Loader] ${qe} imports its worker module from another origin, which integrity checks can't cover, so the service worker stays off. Serve the module from this origin (copy lib/manifest.sw.min.js into ${qe}), set data-sw="off", or set data-integrity="warn" to register it anyway.`),void await De(l);try{sessionStorage.setItem("manifest:sw-probe","ok")}catch(e){}}var f;const p=s&&"string"==typeof s.deployment?s.deployment:"",m=`${qe}?v=${encodeURIComponent(e.version)}&d=${encodeURIComponent(p)}`,g=await navigator.serviceWorker.register(m,{scope:"/"});Ue.registered=!0,Ue.version=e.version,i("registered",m,g.active?"active":g.installing?"installing":"waiting")}window.Manifest.swStub=function(e=d){const t=`mnfst@${String(e||d).replace(/[^\w.+-]/g,"")}/lib/manifest.sw.min.js`;return`try { importScripts('https://cdn.manifestx.dev/npm/${t}'); } catch (e) { importScripts('https://cdn.jsdelivr.net/npm/${t}'); }\nif (!self.__mnfstSw) self.addEventListener('activate', function () { self.registration.unregister(); });\n`},window.Manifest.sw=Ue;const Be=function(){let e=document.currentScript;if(e||(e=document.querySelector('script[src*="manifest.js"]')),!e)return null;const t=e.getAttribute("data-modules")??e.getAttribute("data-plugins"),n=e.getAttribute("data-omit"),i=null!==e.getAttribute("data-tailwind"),o=e.getAttribute("data-version")||d,r=!!e.getAttribute("data-version"),a=e.getAttribute("data-alpine"),s=(e.getAttribute("data-integrity")??"").trim().toLowerCase(),c=/^(off|false)$/.test(s)?null:"warn"===s?"warn":e.hasAttribute("data-integrity")||e.getAttribute("integrity")?"strict":null,l=e.getAttribute("data-module-base")??e.getAttribute("data-plugin-base"),u=e.getAttribute("data-cdn"),f=e.getAttribute("data-sw");let p=[],m=[],w=!t;if(t){const e=Oe(t.split(",").map(e=>e.trim()).filter(e=>e));m=e.filter(e=>e.startsWith("+")).map(e=>e.slice(1));const n=e.filter(e=>!e.startsWith("+"));n.length>0?p=[...n,...m]:(w=!0,p=x.slice())}else p=x.slice();const g={native:"device","text-edit":"rich-text"},h=n?n.split(",").map(e=>e.trim().toLowerCase()).map(e=>g[e]||e).filter(e=>e&&!E.includes(e)):[];return h.length>0&&p.length>0&&(p=p.filter(e=>!h.includes(e))),p=J(p),{plugins:p,extraPlugins:m,omitted:h,deriveFromManifest:w,tailwind:i,version:o,versionSet:r,alpine:a,alpineIntegrity:e.getAttribute("data-alpine-integrity"),integrity:c,pluginBase:l,cdn:u,sw:f}}();var Ve;if(Be&&Be.version&&(v=Be.version),Be&&Be.pluginBase&&(Ve=Be.pluginBase,P=Ve||null),Be&&Be.omitted&&(M=Be.omitted),Be&&Be.cdn&&function(e){if(!e)return;const t=e.split(",").map(e=>e.trim().replace(/\/$/,"")).filter(Boolean);t.length&&(_=t)}(Be.cdn),Be&&Be.integrity&&(w=Be.integrity,!Be.versionSet&&f&&(v=Be.version=u),h=Be.version===u,y=Be.alpineIntegrity&&F.test(Be.alpineIntegrity.trim())?Be.alpineIntegrity.trim():null,g=async function(e){if(e.version!==u)return q(`Integrity checks cover this loader's own version (${u}), but data-version is "${e.version}". Set data-version="${u}" or remove it.`,"No modules were loaded."),null;const t=P?[`${P.replace(/\/$/,"")}/${p}`]:_.map(e=>`${$(u,e)}/${p}`);try{return await(await U(t,f,p)).json()}catch(e){throw new Error(`${e.message} No modules were loaded.`)}}(Be),g.catch(()=>{})),function(e){if(!e||window.__manifestSwArmed)return;const t=window.__manifestSwArmed={};let n=!1;const i=()=>{if(!n&&window.__manifestSwArmed===t){n=!0;try{Fe(e).catch(()=>{})}catch(e){}}};setTimeout(()=>{if(window.__manifestReady)return i();window.addEventListener("manifest:ready",i,{once:!0}),window.__manifestLoaderStarted||("complete"===document.readyState?setTimeout(i,0):window.addEventListener("load",i,{once:!0}))},0)}(Be),Be&&Be.plugins.length>0){if(window.__manifestLoaderStarted)return;window.__manifestLoaderStarted=!0;const Je=["data","localization","components","appwrite-auth","appwrite-data","appwrite-presences","payments","chat"],Ke=document.querySelector('link[rel="manifest"]')?.getAttribute("href")||"/manifest.json",Qe=new Set,Ye=e=>{if(null===e||"object"!=typeof e)return;const t=e=>e.replace(/\$\{([^}]+)\}/g,(e,t)=>"undefined"!=typeof window&&window.env&&void 0!==window.env[t]?window.env[t]:(Qe.has(t)||(Qe.add(t),t.startsWith("PUBLIC_")?console.warn(`[Manifest] manifest.json references \${${t}}, but it is not present in window.env. Add ${t}=… to .env (read by mnfst-run) or set it via <script>window.env = {…}<\/script>. Leaving placeholder literal.`):console.warn(`[Manifest] manifest.json references \${${t}}, but only PUBLIC_-prefixed env vars are injected into window.env by mnfst-run. Rename to PUBLIC_${t}, hardcode the value, or supply it via <script>window.env = {…}<\/script>. Leaving placeholder literal.`)),e)),n=e=>{if(Array.isArray(e))for(let i=0;i<e.length;i++){const o=e[i];"string"==typeof o?e[i]=t(o):o&&"object"==typeof o&&n(o)}else for(const i of Object.keys(e)){const o=e[i];"string"==typeof o?e[i]=t(o):o&&"object"==typeof o&&n(o)}};n(e)},et=()=>window.__manifestLoaded?Promise.resolve(window.__manifestLoaded):(window.__manifestPromise||(window.__manifestPromise=fetch(Ke).then(e=>e.ok?e.json():null).then(e=>(e&&!e.__interpolated&&(Ye(e),Object.defineProperty(e,"__interpolated",{value:!0,enumerable:!1})),e)).catch(()=>null)),window.__manifestPromise),tt=async()=>{if(g){(Be.deriveFromManifest||Be.plugins.some(e=>Je.includes(e)))&&et();try{await g}catch(e){return void(e.logged||console.error(`[Manifest Loader] ${e.message}`))}}let e=null,t=Be.plugins,n=null;if(Be.deriveFromManifest){e=await et();const n=function(e){if(!e||"object"!=typeof e)return x.slice();const t=e.data&&"object"==typeof e.data&&Object.keys(e.data).length>0,n=e.components?.length>0||e.preloadedComponents?.length>0,i=(()=>{if(!e.data||"object"!=typeof e.data)return!1;for(const t of Object.values(e.data))if(t&&"object"==typeof t){if("string"==typeof t.locales)return!0;for(const e of Object.keys(t))if(!["url","headers","params","transform","defaultValue","locales"].includes(e)&&/^[a-zA-Z]{2}(-[a-zA-Z]{2})?$/.test(e))return!0}return!1})(),o=e.status&&"object"==typeof e.status&&Object.keys(e.status).length>0;return x.filter(e=>"data"===e?t:"localization"===e?i:"components"===e?n:"status"!==e||o)}(e),o=function(e){if(!e||"object"!=typeof e)return[];if(!(e.appwrite||e.data&&Object.values(e.data).some(e=>e&&"object"==typeof e&&(e.appwriteTableId||e.appwriteDatabaseId||e.appwriteBucketId))))return[];const t=[];return e.appwrite?.auth&&t.push("appwrite-auth"),(e.appwrite||e.data&&Object.values(e.data).some(e=>e&&"object"==typeof e&&e.appwriteTableId))&&t.push("appwrite-data"),(e.appwrite?.presence||e.appwrite?.presences)&&t.push("appwrite-presences"),t}(e),r=function(e){return e&&"object"==typeof e&&e.payments&&"object"==typeof e.payments?["payments"]:[]}(e),a=function(e){return e&&"object"==typeof e&&(e.ai||e.chat)?["chat"]:[]}(e),s=function(e){if("undefined"!=typeof window&&window.Capacitor)return["device"];const t=e&&"object"==typeof e?e.device??e.native:null;return t&&"object"==typeof t?["device"]:[]}(e);t=J([...E,...(i=[...n,...o,...r,...a,...s,...Be.extraPlugins||[]],M.length?i.filter(e=>!M.includes(e)):i)])}else{t=J([...E,...t.filter(e=>!E.includes(e))]);Be.plugins.some(e=>Je.includes(e))&&(n=et()),"undefined"!=typeof window&&window.Capacitor&&!t.includes("device")&&(t=J([...t,"device"]))}var i;const o=t.map(e=>X(e,Be.version).catch(t=>{console.warn(`[Manifest Loader] Failed to load plugin ${e}:`,t)}));Be.tailwind&&!function(){try{return!!document.querySelector("style[data-mnfst-utilities][data-mnfst-utilities-complete]")}catch(e){return!1}}()&&o.push(We(Be.version).catch(()=>{}));const r=Be.deriveFromManifest?new Promise(e=>R(()=>{let n=[];try{const e=Pe().take(),i=e.filter(e=>M.includes(e)&&!t.includes(e));i.forEach(e=>ue.add(e)),i.length&&console.warn(`[Manifest Loader] data-omit lists ${i.join(", ")}, but this page uses ${i.length>1?"them":"it"}. Not loaded: remove ${i.length>1?"them":"it"} from data-omit to load.`);const o=e.filter(e=>!t.includes(e)&&!M.includes(e));o.length>0&&(n=J(o).filter(e=>!t.includes(e)).map(e=>X(e,Be.version).catch(t=>{je.add(e),console.warn(`[Manifest Loader] Failed to load plugin ${e}:`,t)})))}catch(e){}Me=!0,Te(Be.version),e(Promise.all(n))})):null;await Promise.all(o),n&&(e=await n),e&&"undefined"!=typeof window&&(window.__manifestLoaded=e,window.ManifestComponentsRegistry&&(window.ManifestComponentsRegistry.manifest=e)),R(async()=>{var e;r&&await r,nt(t,Be.tailwind),e=I(Be.alpine),R(()=>{window.Alpine||document.querySelector('script[src*="alpinejs"]')||H(e,{alpine:!0}).catch(e=>{e.logged||console.error("[Manifest Loader] Alpine.js failed to load from all CDNs.")})})})};function nt(e,t){if(window.__manifestReadyCoordinator)return;window.__manifestReadyCoordinator=!0;const n=window.ManifestPending.hold("ready"),i=!!t,o={data:!e.some(e=>"data"===e||"appwrite-data"===e)||!!window.__manifestRenderReady,utilities:!i||!!window.__manifestUtilitiesReady};let r=!1,a=null;const s=()=>!(window.__manifestMarkdownPending>0),c=()=>!(window.__manifestUtilitiesPending>0),l=()=>{r||(r=!0,n(),window.__manifestReady=!0,window.dispatchEvent(new CustomEvent("manifest:ready")))},d=()=>{r||o.data&&o.utilities&&s()&&c()&&(clearTimeout(a),a=setTimeout(()=>{o.data&&o.utilities&&s()&&c()&&l()},300))};window.addEventListener("manifest:render-ready",()=>{o.data=!0,d()}),window.addEventListener("manifest:utilities-ready",()=>{o.utilities=!0,d()}),window.addEventListener("manifest:utilities-idle",d),window.addEventListener("manifest:markdown-idle",d),setTimeout(l,15e3),d()}(()=>{if(g||!document.head||!0===window.__manifestRender)return;const e=new Set,t=(t,n,i)=>{if(!n||e.has(t+n))return;e.add(t+n);const o=document.createElement("link");o.rel=t,i&&(o.as=i,o.setAttribute("fetchpriority","low")),o.href=n,o.setAttribute("data-mnfst-hint",""),document.head.appendChild(o)};document.addEventListener("alpine:init",()=>{document.head.querySelectorAll("link[data-mnfst-hint]").forEach(e=>e.remove())},{once:!0});try{(Be.deriveFromManifest||Be.plugins.some(e=>Je.includes(e)))&&et();const e=P?null:_[0];if(e&&new URL(e,location.href).origin!==location.origin&&t("preconnect",new URL(e,location.href).origin),Be.deriveFromManifest){const e=["data","localization","components","status"];for(const n of[...E,...Be.plugins])e.includes(n)||t("preload",C(n,Be.version),"script")}R(()=>{try{if(window.Alpine||document.querySelector('script[src*="alpinejs"]')||t("preload",I(Be.alpine)[0],"script"),Be.deriveFromManifest){const e=Pe().used.filter(e=>"components"!==e&&!M.includes(e));for(const n of J(e))Be.plugins.includes(n)||t("preload",C(n,Be.version),"script")}}catch(e){}})}catch(e){}})(),tt()}}();
1
+ !function(){"use strict";const e=document.currentScript;if(!window.ManifestPending){const et=new Map;let tt=0;window.ManifestPending={hold(e="work"){const t=++tt;return et.set(t,e),()=>{et.delete(t)}},get count(){return et.size+(window.__manifestMarkdownPending||0)+(window.__manifestUtilitiesPending||0)},labels(){const e=[...et.values()];return window.__manifestMarkdownPending>0&&e.push("markdown"),window.__manifestUtilitiesPending>0&&e.push("utilities"),e},background:e=>("function"==typeof e&&(e.__manifestBackground=!0),e)}}const t=new Set,n=new WeakSet;let i=!1;function o(){for(const e of[...t])e.settle()}function r(){i||(i=!0,queueMicrotask(()=>{i=!1,o()}))}function a(e){for(let t=e.parentNode;t;t=t.parentNode)if(t._x_ignore)return!0;return!1}function s(e,i){const s=window.Alpine,c=e.getAttribute("x-if");let l=!e.closest("[x-data],[x-init]"),d=!1,u=null;const f=()=>!!s.evaluate(e,c),p=()=>{u&&(u(),u=null)},m=()=>{t.delete(y),p()},w=()=>{l=!1,d=!1,p(),i._x_ignore=!0,t.add(y)},h=()=>{m(),s.mutateDom(()=>{s.destroyTree(i),i.remove()}),delete e._x_currentIfEl,delete e._x_lastRenderedEl,r()},g=()=>{l||e._x_currentIfEl!==i||!i.isConnected||a(e)||(l=!0,d=!1,m(),delete i._x_ignore,s.initTree(i),o())},y={settle(){if(!l&&!d)return e._x_currentIfEl!==i?m():void(i.isConnected?e._x_marker&&!a(e)&&f()&&g():i.getRootNode()instanceof DocumentFragment||m())}},v=()=>window.__manifestReady||!window.__manifestReadyCoordinator?h():(queueMicrotask(()=>{e._x_currentIfEl===i&&(e._x_undoIf=v,(()=>{if(u||!d||e._x_currentIfEl!==i||a(e))return;const t=s.evaluateLater(e,c),n=s.effect(()=>t(e=>{e&&queueMicrotask(()=>{d&&f()&&g()})}));u=()=>s.release(n)})())}),a(e)?w():(l&&(l=!1,i._x_ignore=!0,s.destroyTree(i),t.add(y)),void(d||(d=!0,window.addEventListener("manifest:ready",()=>{if(d&&e._x_currentIfEl===i){if(e.isConnected&&a(e))return w();if(e.isConnected&&f())return g();h(),delete e._x_undoIf}},{once:!0})))));e._x_currentIfEl=i,e._x_lastRenderedEl=i,e._x_undoIf=v,n.add(e),l||(i._x_ignore=!0,t.add(y))}function c(e,t){e.querySelectorAll("template").forEach(e=>{const n=t||e.matches("[x-if],[x-for]");n&&e.content.querySelectorAll("[data-pre-rendered]").forEach(e=>{e.tagName.startsWith("X-")&&e.removeAttribute("data-pre-rendered")}),c(e.content,n)})}function l(){try{!function(){if("undefined"==typeof document||!document.querySelector)return;const e=document.querySelector('meta[name="manifest:prerendered"]');if(!e||"0"===e.getAttribute("content"))return;const t=document.getElementById("__manifest_hydrate__");if(!t)return;let n;try{n=JSON.parse(t.textContent||"[]")}catch(e){n=[]}if(!Array.isArray(n)||0===n.length)return void t.remove();const i=e=>String(null==e?"":e).replace(/&/g,"&amp;").replace(/"/g,"&quot;"),o=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),r=[];for(const e of n){const t=document.querySelector('[data-hydrate-id="'+e.id+'"]');if(!t)continue;let n=0;for(let e=t.parentNode;e;e=e.parentNode)n++;r.push({entry:e,el:t,depth:n})}r.sort((e,t)=>t.depth-e.depth);for(const{entry:e,el:t}of r){const n=document.querySelector('[data-hydrate-id="'+e.id+'"]')||t;if(!n||!n.parentNode)continue;if("string"==typeof e.html){const t=n.tagName.toLowerCase(),r={},a=n.attributes;for(let e=0;e<a.length;e++)"data-hydrate-id"!==a[e].name&&(r[a[e].name]=a[e].value);if(e.attrs)for(const t in e.attrs){const n=e.attrs[t];null===n?delete r[t]:r[t]=n}const s=Object.keys(r).map(e=>e+'="'+i(r[e])+'"').join(" "),c=o.has(t)?"<"+t+" "+s+">":"<"+t+" "+s+">"+e.html+"</"+t+">",l=document.createElement("div");l.innerHTML=c;const d=l.firstElementChild;if(d)try{n.parentNode.replaceChild(d,n)}catch(e){}continue}if(!e.attrs)continue;const r=n.tagName.toLowerCase(),a={},s=n.attributes;for(let e=0;e<s.length;e++)"data-hydrate-id"!==s[e].name&&(a[s[e].name]=s[e].value);for(const t in e.attrs){const n=e.attrs[t];null===n?delete a[t]:a[t]=n}const c=Object.keys(a).map(e=>e+'="'+i(a[e])+'"').join(" "),l=o.has(r),d=l?"":n.innerHTML,u=l?"<"+r+" "+c+">":"<"+r+" "+c+">"+d+"</"+r+">",f=document.createElement("div");f.innerHTML=u;const p=f.firstElementChild;if(p)try{n.parentNode.replaceChild(p,n)}catch(e){}}t.remove()}()}catch(e){}}if("undefined"!=typeof document&&document.addEventListener("alpine:init",function(){if("undefined"==typeof document||!document.querySelectorAll)return;c(document);let e=0;if(document.querySelectorAll("[data-mnfst-prerender-clone]").forEach(t=>{if(t.closest&&t.closest("[data-hydrate]"))return;t.removeAttribute("data-mnfst-prerender-clone");const n=t.previousElementSibling;n&&"TEMPLATE"===n.tagName&&n.hasAttribute("x-if")?(s(n,t),e++):t.remove()}),!e)return;const i=window.Alpine;"function"==typeof i.interceptInit&&i.interceptInit(e=>{n.has(e)&&t.size&&r()}),document.addEventListener("alpine:initialized",o,{once:!0})},{once:!0}),"undefined"!=typeof document)if("loading"===document.readyState){let nt=!1;document.addEventListener("readystatechange",()=>{nt||"loading"===document.readyState||(nt=!0,l())})}else l();if("undefined"!=typeof window&&"undefined"!=typeof document){let it=null;window.addEventListener("resize",()=>{document.documentElement.classList.add("window-resizing"),it&&clearTimeout(it),it=setTimeout(()=>{document.documentElement.classList.remove("window-resizing"),it=null},200)},{passive:!0})}const d="latest",u="0.5.334",f="sha384-bPSRgboL6vTFlnOH479ijw+2NeriwxjXXuLMwspVbslXBBEPWZm1zvT/CHzJsZRM",p="manifest.modules.integrity.json",m="manifest.vendor.integrity.json";let w=null,h=null,g=!1,y=null,v=d,b=["https://cdn.manifestx.dev/npm","https://cdn.jsdelivr.net/npm","https://unpkg.com"];function _(e,t){return e.includes("unpkg.com")?t.replace(/\.min\.js$/,".js"):t}function $(e=d,t=b[0]){return`${t}/mnfst@${e}/lib`}const k=["components","router","utilities","data","icons","localization","color","toasts","tooltips","dropdowns","computed","tabs","url-parameters","status"],E=["defer","bindings"],x=["edit"],S=["appwrite-auth","appwrite-data","appwrite-presences"],A=["rich-text","submissions","markdown","svg","code","combobox","slides","colorpicker","datepicker","charts","virtual","export"],L={"appwrite-data":["data"],"appwrite-presences":["data","appwrite-auth"],device:["utilities"],edit:["rich-text"]};let M=null;let P=[];function C(e,t=v){const n=e.replace(/-/g,".");if(M){return[`${M.replace(/\/$/,"")}/manifest.${n}.js`]}return b.map(e=>`${$(t,e)}/${_(e,`manifest.${n}.min.js`)}`)}function j(e,t=v){return C(e,t)[0]}function I(e){if(e&&(e.startsWith("http")||e.startsWith("/")))return[e];const t=e||"3.17.5";return b.map(e=>`${e}/alpinejs@${t}/dist/cdn.min.js`)}function N(e){if(function(){if("complete"===document.readyState)return!0;if("loading"===document.readyState)return!1;try{const e=performance.getEntriesByType("navigation")[0];if(e)return e.domContentLoadedEventEnd>0}catch(e){}return!1}())return void e();let t=!1;const n=()=>{t||(t=!0,e())};document.addEventListener("DOMContentLoaded",n,{once:!0}),window.addEventListener("load",n,{once:!0})}function R(t){if(t.hasAttribute("data-mnfst-loaded"))return!0;if(t.hasAttribute("data-mnfst-loading"))return!1;if("complete"===document.readyState)return!0;if(!t.async&&!t.defer&&e&&e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING)return!0;try{if(t.src&&performance.getEntriesByName(t.src).length)return!0}catch(e){}return!1}function T(e,t,n=!0,i=null){return new Promise((o,r)=>{const a=document.querySelector(`script[src="${e}"]`);if(a){if(R(a))return o();let t=!1;const n=()=>{t||(t=!0,o())};a.addEventListener("load",n),a.addEventListener("error",()=>{t||(t=!0,r(new Error(`Failed to load ${e}`)))});const i=setInterval(()=>{R(a)&&(clearInterval(i),n())},50);return void setTimeout(()=>{clearInterval(i),n()},4e3)}const s=document.createElement("script");t&&(s.integrity=t,s.crossOrigin="anonymous"),i&&s.setAttribute("fetchpriority",i),s.src=e,s.async=!n,s.setAttribute("data-mnfst-loading",""),s.onload=()=>{s.removeAttribute("data-mnfst-loading"),s.setAttribute("data-mnfst-loaded",""),o()},s.onerror=()=>{s.removeAttribute("data-mnfst-loading"),s.remove(),r(new Error(`Failed to load ${e}`))},document.head.appendChild(s)})}function O(e){return e.split(/[?#]/)[0].split("/").pop()}function z(e){const t=e.match(/(alpinejs@[^/]+\/dist\/cdn\.min\.js)(?:[?#]|$)/);return t?t[1]:null}function q(e){try{const t=performance.getEntriesByName(new URL(e,location.href).href).pop();return!!t&&200===t.responseStatus}catch(e){return!1}}function W(e,t){if("warn"!==w)throw console.error(`[Manifest Loader] ${e} ${t} data-integrity="warn" loads it unchecked instead.`),Object.assign(new Error(e),{logged:!0});console.warn(`[Manifest Loader] ${e} Loading unchecked (data-integrity="warn").`)}async function D(e,t,n){for(const i of e){try{const e=await fetch(i,t?{integrity:t,mode:"cors",credentials:"omit"}:{mode:"cors",credentials:"omit"});if(e.ok)return e}catch(e){}console.error(`[Manifest Loader] ${n} failed to load${t?" or failed its integrity check":""} from ${i}`)}throw new Error(`${n} could not be ${t?"verified":"loaded"} from any CDN${t?` (expected ${t})`:""}.`)}let U=null;const B=/^sha(256|384|512)-[A-Za-z0-9+/=]+$/;function F(e,t){const n=e&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:null;return"string"==typeof n&&B.test(n)?n:null}async function H(e,t){const n=F(e,t);if(n)return n;const i=F(e,m);return i&&/\/(languages|langs)\//.test(t)?(U||(U=D(b.map(e=>`${$(u,e)}/${m}`),i,m).then(e=>e.json()).catch(e=>{throw U=null,e})),F(await U,t)):null}async function V(e,{key:t=null,hash:n=null,alpine:i=!1,unchecked:o=!1,ordered:r=!0,priority:a=null}={}){const s=h&&!o?await h:null,c=t||O(e[0]||"");let l=null;for(const o of e){let c=n;if(s){const e=t||(i?z(o):O(o));c=e&&await H(s,e)||(i?y:null),c||(i?W(`No integrity hash is known for Alpine at ${o}. Add data-alpine-integrity="sha384-…" for it, or remove data-alpine to use the default.`,"Alpine was not loaded."):W(`${e||o} has no integrity hash in this release.`,"Not loaded."))}try{return await T(o,c,r,a)}catch(t){l=t,c?console.error(`[Manifest Loader] ${O(o)} ${q(o)?"failed its integrity check":"failed to load or failed its integrity check"} from ${o}${e.length>1?" — trying next CDN":""}`):e.length>1&&console.warn(`[Manifest Loader] ${o} failed — trying fallback CDN`)}}throw s&&console.error(`[Manifest Loader] ${c} did not match its integrity hash on any CDN — not loaded.`),l||new Error(`Failed to load ${c}`)}const Z=new Map,J=new Set;async function X(e,t=v){const n=Z.get(e);if(n)return n.version!==t&&console.warn(`[Manifest Loader] ${e} already loaded at ${n.version} — ignoring request for ${t}`),n.promise;const i=async function(e,t){let n=!1;g&&t!==u&&(W(`Integrity checks cover this loader's own version (${u}); ${e} was requested at ${t}.`,"Not loaded."),n=!0);const i=["components","data","localization"].includes(e)?"high":null;return V(C(e,t),{unchecked:n,priority:i})}(e,t);return Z.set(e,{version:t,promise:i}),i.then(()=>J.add(e),()=>Z.delete(e)),i}function G(e){const t=[],n=new Set,i={native:"device",import:"export"};function o(e){if(e=i[e]||e,n.has(e))return;const r=L[e];if(r)for(const e of r)n.has(e)||o(e);t.push(e),n.add(e)}for(const t of e)o(t);return t}const K=[{magic:"$chat",plugin:"chat"},{magic:"$presence",plugin:"appwrite-presences"},{magic:"$rich",plugin:"rich-text",attr:"x-rich-text",family:!0},{plugin:"submissions",attr:"x-submit",family:!0},...["$share","$secure","$links","$push","$app","$haptics","$biometric","$camera"].map(e=>({magic:e,plugin:"device"})),{plugin:"charts",attr:"x-chart",magic:"$chart",present:"ensureChartsPluginInitialized"},{plugin:"colorpicker",attr:"x-colorpicker",magic:"$colorpicker",present:"ensureColorpickerPluginInitialized"},{plugin:"datepicker",attr:"x-date",magic:"$date",present:"ensureDatepickerPluginInitialized"},{plugin:"combobox",attr:"x-combobox",present:"ensureComboboxPluginInitialized"},{plugin:"code",attr:"x-code",present:"ensureCodePluginInitialized"},{plugin:"code",attr:"x-code-group",present:"ensureCodePluginInitialized"},{plugin:"markdown",attr:"x-markdown",present:"ensureMarkdownPluginInitialized"},{plugin:"export",attr:"x-export",magic:"$export",present:"ensureExportPluginInitialized",call:!0},{plugin:"export",attr:"x-import",magic:"$import",present:"ensureImportPluginInitialized",call:!0},{plugin:"virtual",attr:"x-virtual",present:"ensureVirtualPluginInitialized"},{plugin:"slides",attr:"x-carousel",present:"ensureSlidesPluginInitialized"},{plugin:"svg",attr:"x-svg",present:"ensureSvgPluginInitialized"}].map(e=>({...e,late:A.includes(e.plugin)&&!["rich-text","submissions"].includes(e.plugin),re:e.magic?new RegExp("\\"+e.magic+"\\b"):null})),Q=[...new Set(K.map(e=>e.plugin))],Y=new Map(K.filter(e=>e.attr).map(e=>[e.attr,e])),ee=K.filter(e=>e.family).map(e=>[e.attr+"-",e]),te=e=>{const t=ne(e);return t&&t.plugin};function ne(e){if(120!==e.charCodeAt(0)||45!==e.charCodeAt(1))return;let t=e.length;for(let n=2;n<t;n++){const i=e.charCodeAt(n);if(46===i||58===i){t=n;break}}const n=t===e.length?e:e.slice(0,t),i=Y.get(n);if(i)return i;for(const[e,t]of ee)if(n.startsWith(e))return t}let ie=!1;!function(){if("undefined"==typeof window||"undefined"==typeof document||ie)return;ie=!0;const e=()=>{const e=window.Alpine;if(window.ManifestRichText||!e||!e.magic||!e.reactive||window.__manifestRichStub)return;const t=window.__manifestRichStub=e.reactive({v:0}),n=window.__manifestRichStubWrites=[],i=new WeakMap,o=e=>e&&"function"==typeof e.deref?e.deref():e,r={value:"",link:"",selection:null,all:{},active:()=>!1,can:()=>!1,markdown:()=>"",html:()=>""};e.magic("rich",(e,a)=>(t.v,window.__manifestRichMagic?window.__manifestRichMagic(e,a):(e=>(i.has(e)||i.set(e,new Proxy(r,{get:(t,i)=>{const r=n.find(t=>o(t[0])===e&&t[1]===i);return r?r[2]:i in t?t[i]:"string"==typeof i?()=>{}:void 0},set:(t,i,r)=>{for(let t=n.length-1;t>=0;t--){const r=o(n[t][0]);r&&r.isConnected&&(r!==e||n[t][1]!==i)||n.splice(t,1)}return n.push(["function"==typeof WeakRef?new WeakRef(e):e,i,r]),!0}})),i.get(e)))(e)))};document.addEventListener("alpine:init",e,{once:!0}),window.Alpine&&window.Alpine.magic&&e()}();let oe=!1;!function(){if("undefined"==typeof window||"undefined"==typeof document||oe)return;oe=!0;const e=()=>{const e=window.Alpine;if(window.__manifestEditMagic||!e||!e.magic||!e.reactive||window.__manifestEditStub)return;const t=window.__manifestEditStub=e.reactive({v:0}),n=()=>!1,i=window.__manifestEditStubWrites={},o=new Proxy({active:!1,canUndo:!1,canRedo:!1,version:0,stale:[],conflicts:[],onPublish:null,target:null,can:n,scope:()=>null,block:()=>null,patches:()=>[],export:()=>({log:[],cursor:0}),publish:()=>Promise.resolve({results:[]}),undo:()=>Promise.resolve(!1),redo:()=>Promise.resolve(!1),classes:new Proxy({},{get:()=>n})},{get:(e,t)=>t in i?i[t]:t in e?e[t]:"string"==typeof t?n:void 0,set:(e,t,n)=>(i[t]=n,!0)});e.magic("edit",(e,n)=>(t.v,window.__manifestEditMagic?window.__manifestEditMagic(e,n):o))};document.addEventListener("alpine:init",e,{once:!0}),window.Alpine&&window.Alpine.magic&&e()}(),"undefined"!=typeof document&&document.addEventListener("alpine:initialized",()=>{window.__manifestAlpineStarted=!0},{once:!0});const re=K.filter(e=>e.late),ae=re.filter(e=>e.attr).map(e=>e.attr),se="undefined"==typeof window?[]:re.filter(e=>window[e.present]).map(e=>e.plugin),ce=new Set,le=new Map,de=new Map,ue=new Set,fe=e=>{const t=ne(e);return t&&t.late&&!se.includes(t.plugin)?t:null},pe=new Set;function me(e){if(Ce.has(e)||pe.has(e))return null;if(!Z.has(e)){if(!Pe||P.includes(e))return null;Ne(G([e]).filter(e=>!je(e)))}const t=Z.get(e);return t?t.promise:null}const we=new WeakSet;let he=0,ge=null;const ye=["markdown","code","svg"];function ve(e,t,n){const i=me(n.plugin);if(!i)return!1;const o=n.attr.slice(2);we.add(t),!he++&&window.ManifestPending&&(ge=window.ManifestPending.hold("held"));let r=!1;const a=()=>{if(!r&&(r=!0,we.delete(t),! --he&&ge)){const e=ge;ge=null,e()}},s=[];let c=null;try{const e=!t.hasAttribute("x-data")&&t.parentElement&&t.parentElement.closest("[x-data]");if(e){e._x_refs||(e._x_refs={});for(const n of[t,...t.querySelectorAll("[x-ref]")]){const t=n.getAttribute("x-ref");!t||n.closest("[x-data]")!==e||e._x_refs[t]&&!s.some(n=>n[2]===e._x_refs[t])||(e._x_refs[t]=n,s.push([e,t,n]))}}c=ye.includes(n.plugin)?t.style.opacity:null,null!==c&&(t.style.opacity="0")}catch(e){}const l=new Promise(e=>{let t=!1;(e=>{if(ce.has(e))return Promise.resolve();if(!le.has(e)){let t;const n=new Promise(e=>{t=e});le.set(e,{promise:n,resolve:t})}return le.get(e).promise})(o).then(()=>{t=!0,e()});const r=i=>{t||(pe.add(n.plugin),ue.has(n.plugin)||(ue.add(n.plugin),console.warn(`[Manifest Loader] ${n.plugin} ${i}: starting the elements that use it now${"failed to load"===i?", without it":"; it applies to them if it starts later"}.`)),e())};i.catch(()=>r("failed to load")),i.then(()=>setTimeout(()=>r("has not started 10 s after loading"),1e4),()=>{})}),d=l.then(()=>{let e=null;try{we.delete(t),null!==c&&(t.style.opacity=c);for(const[e,t,n]of s)!n.isConnected&&e._x_refs&&e._x_refs[t]===n&&delete e._x_refs[t];e=function(e){const t=[],n=e.matches("input, textarea, select")?[e]:[];n.push(...e.querySelectorAll("input, textarea, select"));for(const e of n)try{if("file"===e.type){e.files&&e.files.length&&t.push([e,"files",null]);continue}if("radio"===e.type)e.checked&&!e.defaultChecked&&t.push([e,"checked",!0]);else if("checkbox"===e.type)e.checked!==e.defaultChecked&&t.push([e,"checked",e.checked]);else if("SELECT"===e.tagName){const n=[...e.options].map(e=>e.selected);n.some((t,n)=>t!==e.options[n].defaultSelected)&&t.push([e,"options",n])}else e.value!==e.defaultValue&&t.push([e,"value",e.value])}catch(e){}const i=document.activeElement,o=i&&e.contains(i)?[i,i.selectionStart,i.selectionEnd]:null;return()=>{const n=new WeakSet,i=e=>{n.has(e)&&e.stopPropagation()};e.addEventListener("input",i),e.addEventListener("change",i);const r=(e,t)=>{const i=new Event(t,{bubbles:!0});n.add(i),e.dispatchEvent(i)};for(const[e,n,i]of t)try{if(!e.isConnected||e.readOnly||e.disabled)continue;"options"===n?[...e.options].forEach((e,t)=>{e.selected=!!i[t]}):"files"!==n&&(e[n]=i),r(e,"input"),r(e,"change")}catch(e){}if(e.removeEventListener("input",i),e.removeEventListener("change",i),o&&o[0].isConnected)try{o[0].focus({preventScroll:!0}),null!=o[1]&&o[0].setSelectionRange(o[1],o[2])}catch(e){}}}(t)}catch(e){}setTimeout(()=>{try{e&&e()}finally{a()}},0)});try{e.deferInit(t,d)}catch(e){throw a(),e}return!0}let be=!1;function _e(){const e="undefined"==typeof window?null:window.Alpine;if(be||!e||!e.directive||!e.magic)return;be=!0;const t=e.directive,n=e.magic;if(e.directive=function(e){const n=t.apply(this,arguments);if(!ce.has(e)){ce.add(e);const t=le.get(e);t&&(le.delete(e),t.resolve());const n=de.get(e);n&&(de.delete(e),setTimeout(()=>n.forEach(([e,t])=>{const n=$e(e);try{n&&n.isConnected&&n.hasAttribute(t)&&n.setAttribute(t,n.getAttribute(t))}catch(e){}}),0))}return n},"function"==typeof e.interceptInit){const t="function"==typeof e.deferInit,n=e=>{try{i(e)}catch(e){}},i=n=>{if(!we.has(n))for(const i of n.attributes){const o=fe(i.name);if(o&&!ce.has(o.attr.slice(2)))if(pe.has(o.plugin))ke(o,n,i.name);else if(t){if(ve(e,n,o))return}else me(o.plugin)&&ke(o,n,i.name)}};e.interceptInit("function"==typeof e.skipDuringClone?e.skipDuringClone(n):n)}!function(e,t){const n={},i=e.reactive?e.reactive({v:0}):{v:0},o=t=>{window.__manifestProbing=!0;try{return"undefined"!==e.evaluate(document.createElement("div"),`typeof $${t}`)}catch(e){return!1}finally{window.__manifestProbing=!1}},r=(e,t)=>new Proxy(function(){},{get(n,i){const o=e();if(null!=o){const e=o[i];return"function"==typeof e&&"constructor"!==i?e.bind(o):e}return i===Symbol.toPrimitive?()=>"":"symbol"!=typeof i&&"then"!==i?r(()=>{const t=e();return null==t?void 0:t[i]},t):void 0},apply(n,i,o){const a=e();if("function"==typeof a)return a.apply(i,o);if(t)return t().then(()=>{const t=e();return"function"==typeof t?t.apply(i,o):void 0});let s,c=!1;return r(()=>{if(c)return s;const t=e();return"function"==typeof t?(c=!0,s=t.apply(i,o)):void 0},t)}});for(const a of re){if(!a.magic||se.includes(a.plugin)||J.has(a.plugin))continue;const s=a.magic.slice(1);if(o(s))continue;let c=!1;const l=()=>new Promise(e=>{if(n[s])return e();const t=me(a.plugin);if(!t)return e();const i=()=>n[s]?e():null;t.then(()=>setTimeout(()=>{i(),setTimeout(e,0)},0),e)});t.call(e,s,(e,t)=>{if(i.v,n[s])return n[s](e,t);if(!(c||window.__manifestProbing||(c=!0,me(a.plugin)||ue.has(s)||ue.has(a.plugin)))){ue.add(s);const e=P.includes(a.plugin)?`remove ${a.plugin} from data-omit`:`add data-modules="+${a.plugin}"`;console.warn(`[Manifest Loader] ${a.magic} is used but ${a.plugin} is not loaded on this page: ${e}.`)}const o=a.call?"$import"!==a.magic?l:()=>l().then(()=>{const e=navigator.userActivation;!e||e.isActive||ue.has("$import:activation")||(ue.add("$import:activation"),console.warn('[Manifest Loader] $import waited for its module and the click that called it expired, so the browser may not open the file picker. Add data-modules="+import" to load it with the page.'))}):null;return r(()=>n[s]?n[s](e,t):void 0,o)})}e.magic=function(e,o){return re.some(t=>t.magic==="$"+e)&&(n[e]=o,setTimeout(()=>{i.v++},0)),t.apply(this,arguments)}}(e,n)}const $e=e=>e&&"function"==typeof e.deref?e.deref():e;function ke(e,t,n){const i=e.attr.slice(2);if(ce.has(i))return;de.has(i)||de.set(i,[]);const o=de.get(i).filter(([e])=>$e(e));o.push(["function"==typeof WeakRef?new WeakRef(t):t,n]),de.set(i,o)}"undefined"!=typeof document&&(document.addEventListener("alpine:init",_e,{once:!0}),"undefined"!=typeof window&&window.Alpine&&window.Alpine.magic&&_e()),"undefined"!=typeof window&&(window.__manifestHeld=e=>{if(!he)return!1;for(let t=e;t;t=t.parentElement)if(we.has(t))return!0;return!1});const Ee=/^x-(code|code-group)$/,xe=new RegExp("\\$("+K.filter(e=>e.magic).map(e=>e.magic.slice(1)).join("|")+")\\b"),Se=new Set;function Ae(e,t=("undefined"==typeof document?null:document)){const n=K.filter(t=>!e.includes(t.plugin)),i=!e.includes("components");if(0===n.length&&!i||!t)return[];const o=new Set,r=new Set(n.map(e=>e.plugin)),a=r.size+(i?1:0),s=()=>o.size===a,c=e=>{e&&r.has(e)&&!o.has(e)&&o.add(e)},l=r.has("code");for(const e of t.querySelectorAll("script:not([src])")){const t=e.textContent||"";for(const e of n)e.re&&!o.has(e.plugin)&&e.re.test(t)&&o.add(e.plugin);if(s())return[...o]}const d=e=>{if(i&&!o.has("components")){const t=e.tagName.toLowerCase();t.startsWith("x-")&&!Ee.test(t)&&o.add("components")}l&&c(function(e){if("CODE"!==e.tagName)return;if(e.hasAttribute("copy"))return"code";const t=e.getAttribute("class");return t&&-1!==t.indexOf("language-")&&e.parentElement&&"PRE"===e.parentElement.tagName?"code":void 0}(e));for(const t of e.attributes||[]){c(te(t.name));const e=t.value;if(e&&-1!==e.indexOf("$")&&!Se.has(e))if(xe.test(e))for(const t of n)t.re&&!o.has(t.plugin)&&t.re.test(e)&&o.add(t.plugin);else Se.size>2e4&&Se.clear(),Se.add(e)}},u=e=>{for(const t of e.querySelectorAll("*")){if(d(t),s())return;if("TEMPLATE"===t.tagName&&t.content&&(u(t.content),s()))return}};return 1===t.nodeType&&(d(t),"TEMPLATE"===t.tagName&&t.content&&u(t.content)),s()||u(t),[...o]}let Le=null;function Me(){if(Le)return Le;const e=new Set,t="undefined"==typeof MutationObserver?null:new MutationObserver(t=>{for(const n of t)for(const t of n.addedNodes)1===t.nodeType&&e.add(t)});t&&t.observe(document.documentElement,{childList:!0,subtree:!0});const n=Ae([]);return Le={used:n,take(){t&&t.disconnect();const i=new Set(n);for(const t of e)t.isConnected&&Ae([...i],t).forEach(e=>i.add(e));return e.clear(),[...i]}},Le}let Pe=!1;const Ce=new Set,je=e=>J.has(e)||Ce.has(e);function Ie(e,t=v){if(!Pe||!e||"undefined"==typeof document)return Promise.resolve([]);let n=e;if("string"==typeof e){if(-1===e.indexOf("x-")&&-1===e.indexOf("$")&&-1===e.indexOf("<code"))return Promise.resolve([]);n=document.createElement("template"),n.innerHTML=e,n=n.content}const i=Ae(Q.filter(je).concat("components",P),n);return i.length?Ne(G(i).filter(e=>!je(e)),t):Promise.resolve([])}function Ne(e,t=v){if(!e.length)return Promise.resolve([]);const n=window.ManifestPending?window.ManifestPending.hold("module"):()=>{};return Promise.all(e.map(e=>X(e,t).catch(t=>{Ce.has(e)||(Ce.add(e),console.warn(`[Manifest Loader] Failed to load plugin ${e}:`,t))}))).then(()=>new Promise(e=>setTimeout(e,0))).then(()=>(n(),e))}function Re(e){if("undefined"==typeof MutationObserver)return;const t=new Set;let n=!1;const i=new MutationObserver(o=>{for(const e of o)if("attributes"!==e.type)for(const n of e.addedNodes)1===n.nodeType&&t.add(n);else Te(e.target,e.attributeName);!n&&t.size&&(n=!0,setTimeout(()=>{n=!1;const o=[...t].filter(e=>e.isConnected);t.clear(),o.forEach(t=>Ie(t,e)),K.every(e=>je(e.plugin)||P.includes(e.plugin))&&i.disconnect()},0))});i.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:ae})}function Te(e,t){const n=fe(t);n&&e.hasAttribute(t)&&!ce.has(n.attr.slice(2))&&!window.__manifestHeld(e)&&me(n.plugin)&&ke(n,e,t)}const Oe={"text-edit":"rich-text"};function ze(e){return e.filter(e=>{const t=e.replace(/^\+/,"");return!Oe[t]||(console.warn(`[Manifest Loader] ${t} was renamed to ${Oe[t]}`),!1)})}function qe(){try{return!!document.querySelector("style[data-mnfst-utilities][data-mnfst-utilities-complete]")}catch(e){return!1}}const We="tailwind-engine-cache:v2",De=6048e5;function Ue(){return Array.from(document.querySelectorAll('style[type="text/tailwindcss"]:not(#manifest-tailwind-variants)'),e=>e.textContent)}function Be(e,t){const n=[e,...t].join("\0");let i=2166136261;for(let e=0;e<n.length;e++)i=Math.imul(i^n.charCodeAt(e),16777619);return(i>>>0).toString(36)}function Fe(e){const t=document.getElementById("manifest-styles");document.head.insertBefore(e,t&&t.parentNode===document.head?t:null)}const He=e=>Array.isArray(e)&&e.every(e=>"string"==typeof e);async function Ve(e=v){const t=b.map(t=>`${$(e,t)}/${_(t,"manifest.tailwind.min.js")}`);let n=null;try{return await V(t)}catch(e){n=e}throw console.warn('[Manifest Loader] Tailwind plugin not available from any CDN. Load it directly: <script src="/scripts/tailwind.v4.3.1.js"><\/script>'),n||new Error("Tailwind plugin not available from CDN.")}window.Manifest={loadPlugin:function(e,t=v){if(![...k,...A,...S,...x,"payments","chat","device","native","import","tailwind"].includes(e))return Oe[e]?ze([e]):console.warn(`[Manifest Loader] Unknown module: ${e}`),Promise.reject(new Error(`Unknown module: ${e}`));const n=G([e]);return Promise.all(n.map(e=>X(e,t)))},loadTailwind:Ve,loadVendor:function(e,t){return V(b.map(t=>`${t}/${e}`),{key:e,hash:t,ordered:!1})},fetchVendor:async function(e,t){const n=h?await h:null;let i=t||null;return n&&(i=await H(n,e),i||W(`${e} has no integrity hash in this release.`,"Not loaded.")),D(b.map(t=>`${t}/${e}`),i,e)},get integrity(){return g},getPluginUrl:j,getModuleUrl:j,loadUsed:Ie},window.Manifest.loadModule=window.Manifest.loadPlugin;const Ze="/sw.js";const Je={registered:!1,version:null,kill:()=>Ge(null)};function Xe(e){const t=String(e||"").toLowerCase();return"localhost"===t||"127.0.0.1"===t||"[::1]"===t||"::1"===t||"0.0.0.0"===t||t.endsWith(".localhost")||t.endsWith(".local")}async function Ge(e){Je.registered=!1;try{const t=e||await navigator.serviceWorker.getRegistration(Ze);if(t){const e=t.active||t.waiting||t.installing;try{e&&e.postMessage({type:"manifest:sw",action:"kill"})}catch(e){}await t.unregister()}}catch(e){}try{if(window.caches){const e=await caches.keys();await Promise.all(e.filter(e=>e.startsWith("mnfst-sw:")).map(e=>caches.delete(e)))}}catch(e){}}async function Ke(e){const t=e.sw,n="on"===t,i=n?(...e)=>console.info("[Manifest SW]",...e):()=>{};if(!navigator.serviceWorker)return i("skip: unsupported");const o=window.location,r=!!window.__mnfstRun,a=Xe(o.hostname);let s=window.__manifestLoaded||null;if(!s&&window.__manifestPromise&&(s=await window.__manifestPromise.catch(()=>null)),!s){const e=document.querySelector('link[rel="manifest"]')?.getAttribute("href")||"/manifest.json";s=await fetch(e).then(e=>e.ok?e.json():null).catch(()=>null)}const c="off"===t||s&&!1===s.sw,l=await navigator.serviceWorker.getRegistration(Ze).catch(()=>null);if(c||r||a&&!n)return i("skip:",c?"kill switch":r?"mnfst-run":"dev origin",l?"(unregistering)":""),void await Ge(l);if(!("https:"===o.protocol||n&&window.isSecureContext))return i("skip: not https");let d=null;try{d=sessionStorage.getItem("manifest:sw-probe")}catch(e){}const u="strict"===w;if("ok"!==d||u){const e=await fetch(Ze,{cache:"no-store"}).catch(()=>null),t=e&&e.headers.get("content-type")||"";if(!e||!e.ok||!/javascript|ecmascript/i.test(t))return i("skip: no stub",e&&e.status,t);if(u&&(f=await e.text().catch(()=>""),(String(f).match(/importScripts\s*\(([^)]*)\)/g)||[]).some(e=>(e.match(/https?:\/\/[^'"`\s)]+/g)||[]).some(e=>{try{return new URL(e).origin!==location.origin}catch(e){return!0}}))))return console.warn(`[Manifest Loader] ${Ze} imports its worker module from another origin, which integrity checks can't cover, so the service worker stays off. Serve the module from this origin (copy lib/manifest.sw.min.js into ${Ze}), set data-sw="off", or set data-integrity="warn" to register it anyway.`),void await Ge(l);try{sessionStorage.setItem("manifest:sw-probe","ok")}catch(e){}}var f;const p=s&&"string"==typeof s.deployment?s.deployment:"",m=`${Ze}?v=${encodeURIComponent(e.version)}&d=${encodeURIComponent(p)}`,h=await navigator.serviceWorker.register(m,{scope:"/"});Je.registered=!0,Je.version=e.version,i("registered",m,h.active?"active":h.installing?"installing":"waiting")}window.Manifest.swStub=function(e=d){const t=`mnfst@${String(e||d).replace(/[^\w.+-]/g,"")}/lib/manifest.sw.min.js`;return`try { importScripts('https://cdn.manifestx.dev/npm/${t}'); } catch (e) { importScripts('https://cdn.jsdelivr.net/npm/${t}'); }\nif (!self.__mnfstSw) self.addEventListener('activate', function () { self.registration.unregister(); });\n`},window.Manifest.sw=Je;const Qe=function(){let e=document.currentScript;if(e||(e=document.querySelector('script[src*="manifest.js"]')),!e)return null;const t=e.getAttribute("data-modules")??e.getAttribute("data-plugins"),n=e.getAttribute("data-omit"),i=null!==e.getAttribute("data-tailwind"),o="cache"===e.getAttribute("data-tailwind"),r=e.getAttribute("data-version")||d,a=!!e.getAttribute("data-version"),s=e.getAttribute("data-alpine"),c=(e.getAttribute("data-integrity")??"").trim().toLowerCase(),l=/^(off|false)$/.test(c)?null:"warn"===c?"warn":e.hasAttribute("data-integrity")||e.getAttribute("integrity")?"strict":null,u=e.getAttribute("data-module-base")??e.getAttribute("data-plugin-base"),f=e.getAttribute("data-cdn"),p=e.getAttribute("data-sw");let m=[],w=[],h=!t;if(t){const e=ze(t.split(",").map(e=>e.trim()).filter(e=>e));w=e.filter(e=>e.startsWith("+")).map(e=>e.slice(1));const n=e.filter(e=>!e.startsWith("+"));n.length>0?m=[...n,...w]:(h=!0,m=k.slice())}else m=k.slice();const g={native:"device","text-edit":"rich-text"},y=n?n.split(",").map(e=>e.trim().toLowerCase()).map(e=>g[e]||e).filter(e=>e&&!E.includes(e)):[];return y.length>0&&m.length>0&&(m=m.filter(e=>!y.includes(e))),m=G(m),{plugins:m,extraPlugins:w,omitted:y,deriveFromManifest:h,tailwind:i,tailwindCache:o,version:r,versionSet:a,alpine:s,alpineIntegrity:e.getAttribute("data-alpine-integrity"),integrity:l,pluginBase:u,cdn:f,sw:p}}();var Ye;if(Qe&&Qe.version&&(v=Qe.version),Qe&&Qe.pluginBase&&(Ye=Qe.pluginBase,M=Ye||null),Qe&&Qe.omitted&&(P=Qe.omitted),Qe&&Qe.cdn&&function(e){if(!e)return;const t=e.split(",").map(e=>e.trim().replace(/\/$/,"")).filter(Boolean);t.length&&(b=t)}(Qe.cdn),Qe&&Qe.integrity&&(w=Qe.integrity,!Qe.versionSet&&f&&(v=Qe.version=u),g=Qe.version===u,y=Qe.alpineIntegrity&&B.test(Qe.alpineIntegrity.trim())?Qe.alpineIntegrity.trim():null,h=async function(e){if(e.version!==u)return W(`Integrity checks cover this loader's own version (${u}), but data-version is "${e.version}". Set data-version="${u}" or remove it.`,"No modules were loaded."),null;const t=M?[`${M.replace(/\/$/,"")}/${p}`]:b.map(e=>`${$(u,e)}/${p}`);try{return await(await D(t,f,p)).json()}catch(e){throw new Error(`${e.message} No modules were loaded.`)}}(Qe),h.catch(()=>{})),function(e){if(!e||window.__manifestSwArmed)return;const t=window.__manifestSwArmed={};let n=!1;const i=()=>{if(!n&&window.__manifestSwArmed===t){n=!0;try{Ke(e).catch(()=>{})}catch(e){}}};setTimeout(()=>{if(window.__manifestReady)return i();window.addEventListener("manifest:ready",i,{once:!0}),window.__manifestLoaderStarted||("complete"===document.readyState?setTimeout(i,0):window.addEventListener("load",i,{once:!0}))},0)}(Qe),Qe&&Qe.plugins.length>0){if(window.__manifestLoaderStarted)return;window.__manifestLoaderStarted=!0;const ot=["data","localization","components","appwrite-auth","appwrite-data","appwrite-presences","payments","chat"],rt=document.querySelector('link[rel="manifest"]')?.getAttribute("href")||"/manifest.json",at=new Set,st=e=>{if(null===e||"object"!=typeof e)return;const t=e=>e.replace(/\$\{([^}]+)\}/g,(e,t)=>"undefined"!=typeof window&&window.env&&void 0!==window.env[t]?window.env[t]:(at.has(t)||(at.add(t),t.startsWith("PUBLIC_")?console.warn(`[Manifest] manifest.json references \${${t}}, but it is not present in window.env. Add ${t}=… to .env (read by mnfst-run) or set it via <script>window.env = {…}<\/script>. Leaving placeholder literal.`):console.warn(`[Manifest] manifest.json references \${${t}}, but only PUBLIC_-prefixed env vars are injected into window.env by mnfst-run. Rename to PUBLIC_${t}, hardcode the value, or supply it via <script>window.env = {…}<\/script>. Leaving placeholder literal.`)),e)),n=e=>{if(Array.isArray(e))for(let i=0;i<e.length;i++){const o=e[i];"string"==typeof o?e[i]=t(o):o&&"object"==typeof o&&n(o)}else for(const i of Object.keys(e)){const o=e[i];"string"==typeof o?e[i]=t(o):o&&"object"==typeof o&&n(o)}};n(e)},ct=()=>window.__manifestLoaded?Promise.resolve(window.__manifestLoaded):(window.__manifestPromise||(window.__manifestPromise=fetch(rt).then(e=>e.ok?e.json():null).then(e=>(e&&!e.__interpolated&&(st(e),Object.defineProperty(e,"__interpolated",{value:!0,enumerable:!1})),e)).catch(()=>null)),window.__manifestPromise),lt=()=>{if(h||!document.head||!0===window.__manifestRender)return;const e=new Set,t=(t,n,i)=>{if(!n||e.has(t+n))return;e.add(t+n);const o=document.createElement("link");o.rel=t,i&&(o.as=i,o.setAttribute("fetchpriority","low")),o.href=n,o.setAttribute("data-mnfst-hint",""),document.head.appendChild(o)};document.addEventListener("alpine:init",()=>{document.head.querySelectorAll("link[data-mnfst-hint]").forEach(e=>e.remove())},{once:!0});try{(Qe.deriveFromManifest||Qe.plugins.some(e=>ot.includes(e)))&&ct();const e=M?null:b[0];if(e&&new URL(e,location.href).origin!==location.origin&&t("preconnect",new URL(e,location.href).origin),Qe.deriveFromManifest){const e=["data","localization","components","status"];for(const n of[...E,...Qe.plugins])e.includes(n)||t("preload",j(n,Qe.version),"script")}N(()=>{try{if(window.Alpine||document.querySelector('script[src*="alpinejs"]')||t("preload",I(Qe.alpine)[0],"script"),Qe.deriveFromManifest){const e=Me().used.filter(e=>"components"!==e&&!P.includes(e));for(const n of G(e))Qe.plugins.includes(n)||t("preload",j(n,Qe.version),"script")}}catch(e){}})}catch(e){}},dt=async()=>{if(h){(Qe.deriveFromManifest||Qe.plugins.some(e=>ot.includes(e)))&&ct();try{await h}catch(e){return void(e.logged||console.error(`[Manifest Loader] ${e.message}`))}}let e=null,t=Qe.plugins,n=null;if(Qe.deriveFromManifest){e=await ct();const n=function(e){if(!e||"object"!=typeof e)return k.slice();const t=e.data&&"object"==typeof e.data&&Object.keys(e.data).length>0,n=e.components?.length>0||e.preloadedComponents?.length>0,i=(()=>{if(!e.data||"object"!=typeof e.data)return!1;for(const t of Object.values(e.data))if(t&&"object"==typeof t){if("string"==typeof t.locales)return!0;for(const e of Object.keys(t))if(!["url","headers","params","transform","defaultValue","locales"].includes(e)&&/^[a-zA-Z]{2}(-[a-zA-Z]{2})?$/.test(e))return!0}return!1})(),o=e.status&&"object"==typeof e.status&&Object.keys(e.status).length>0;return k.filter(e=>"data"===e?t:"localization"===e?i:"components"===e?n:"status"!==e||o)}(e),o=function(e){if(!e||"object"!=typeof e)return[];if(!(e.appwrite||e.data&&Object.values(e.data).some(e=>e&&"object"==typeof e&&(e.appwriteTableId||e.appwriteDatabaseId||e.appwriteBucketId))))return[];const t=[];return e.appwrite?.auth&&t.push("appwrite-auth"),(e.appwrite||e.data&&Object.values(e.data).some(e=>e&&"object"==typeof e&&e.appwriteTableId))&&t.push("appwrite-data"),(e.appwrite?.presence||e.appwrite?.presences)&&t.push("appwrite-presences"),t}(e),r=function(e){return e&&"object"==typeof e&&e.payments&&"object"==typeof e.payments?["payments"]:[]}(e),a=function(e){return e&&"object"==typeof e&&(e.ai||e.chat)?["chat"]:[]}(e),s=function(e){if("undefined"!=typeof window&&window.Capacitor)return["device"];const t=e&&"object"==typeof e?e.device??e.native:null;return t&&"object"==typeof t?["device"]:[]}(e);t=G([...E,...(i=[...n,...o,...r,...a,...s,...Qe.extraPlugins||[]],P.length?i.filter(e=>!P.includes(e)):i)])}else{t=G([...E,...t.filter(e=>!E.includes(e))]);Qe.plugins.some(e=>ot.includes(e))&&(n=ct()),"undefined"!=typeof window&&window.Capacitor&&!t.includes("device")&&(t=G([...t,"device"]))}var i;const o=t.map(e=>X(e,Qe.version).catch(t=>{console.warn(`[Manifest Loader] Failed to load plugin ${e}:`,t)}));Qe.tailwind&&!qe()&&o.push(Qe.tailwindCache?ft.then(e=>e?null:Ve(Qe.version)).catch(()=>{}):Ve(Qe.version).catch(()=>{}));const r=Qe.deriveFromManifest?new Promise(e=>N(()=>{let n=[];try{const e=Me().take(),i=e.filter(e=>P.includes(e)&&!t.includes(e));i.forEach(e=>ue.add(e)),i.length&&console.warn(`[Manifest Loader] data-omit lists ${i.join(", ")}, but this page uses ${i.length>1?"them":"it"}. Not loaded: remove ${i.length>1?"them":"it"} from data-omit to load.`);const o=e.filter(e=>!t.includes(e)&&!P.includes(e));o.length>0&&(n=G(o).filter(e=>!t.includes(e)).map(e=>X(e,Qe.version).catch(t=>{Ce.add(e),console.warn(`[Manifest Loader] Failed to load plugin ${e}:`,t)})))}catch(e){}Pe=!0,Re(Qe.version),e(Promise.all(n))})):null;await Promise.all(o),function(e){const t=window.__tailwindCache;if(!t||!t.style||!t.style.isConnected)return;if(!t.armed)return void(t.load=Ve(e).catch(()=>{}));let n=t.style.nextElementSibling;const i=e=>"style"===e.localName&&"manifest-styles"!==e.id&&"text/tailwindcss"!==e.getAttribute("type")||"link"===e.localName&&/\bstylesheet\b/i.test(e.rel);for(;n&&!i(n);)n=n.nextElementSibling;n&&Fe(t.style)}(Qe.version),n&&(e=await n),e&&"undefined"!=typeof window&&(window.__manifestLoaded=e,window.ManifestComponentsRegistry&&(window.ManifestComponentsRegistry.manifest=e)),N(async()=>{var e;r&&await r,ut(t,Qe.tailwind),e=I(Qe.alpine),N(()=>{window.Alpine||document.querySelector('script[src*="alpinejs"]')||V(e,{alpine:!0}).catch(e=>{e.logged||console.error("[Manifest Loader] Alpine.js failed to load from all CDNs.")})})})};function ut(e,t){if(window.__manifestReadyCoordinator)return;window.__manifestReadyCoordinator=!0;const n=window.ManifestPending.hold("ready"),i=!!t,o={data:!e.some(e=>"data"===e||"appwrite-data"===e)||!!window.__manifestRenderReady,utilities:!i||!!window.__manifestUtilitiesReady};let r=!1,a=null;const s=()=>!(window.__manifestMarkdownPending>0),c=()=>!(window.__manifestUtilitiesPending>0),l=()=>{r||(r=!0,n(),window.__manifestReady=!0,window.dispatchEvent(new CustomEvent("manifest:ready")))},d=()=>{r||o.data&&o.utilities&&s()&&c()&&(clearTimeout(a),a=setTimeout(()=>{o.data&&o.utilities&&s()&&c()&&l()},300))};window.addEventListener("manifest:render-ready",()=>{o.data=!0,d()}),window.addEventListener("manifest:utilities-ready",()=>{o.utilities=!0,d()}),window.addEventListener("manifest:utilities-idle",d),window.addEventListener("manifest:markdown-idle",d),setTimeout(l,15e3),d()}const ft=Qe.tailwindCache?function(e){const t=Promise.resolve(!1);try{if(!e.tailwindCache||!0===window.__manifestRender||window.__mnfstRun||Xe(location.hostname))return t;if(!e.plugins.includes("utilities")||qe())return t;if(document.querySelector('[data-mnfst-utilities], link[href*="prerender.tailwind.css"], link[href*="prerender.utilities.css"]'))return t;const n=`${u}|${e.version}|4.3.1`,i=window.__tailwindCache={key:We,v:n,idFor:e=>Be(n,e),pathId:Be("",[location.pathname]),record:null,armed:!1},o=JSON.parse(localStorage.getItem(We)||"null");return o&&He(o.ids)&&o.ids.length?i.decision=new Promise(t=>{let n=!1;const r=()=>{if(n)return;n=!0;const r=function(e,t){try{const n=t.skip&&t.skip[e.pathId];if("number"==typeof n&&Date.now()-n>=0&&Date.now()-n<=De)return!1;const i=Ue(),o=Be(e.v,i),r=JSON.parse(localStorage.getItem(`${We}:${o}`)||"null"),a=r?Date.now()-r.t:-1;if(!r||r.v!==e.v||"string"!=typeof r.css||!He(r.tokens)||!He(r.blocks))return!1;if(!(a>=0&&a<=De)||r.blocks.join("\0")!==i.join("\0")||r.blocks.length!==i.length)return!1;if(r.body)return!1;const s=document.createElement("style");return s.setAttribute("data-tailwind-cache",""),s.textContent=r.css,Fe(s),Object.assign(e,{record:r,style:s,id:o}),!0}catch(e){return!1}}(i,o);r&&function(e,t){const n=new MutationObserver(i=>{for(const o of i)for(const i of o.addedNodes){if("style"!==i.localName||"text/tailwindcss"!==i.getAttribute("type")||"manifest-tailwind-variants"===i.id)continue;const o=Ue();if(!(o.length<=e.record.blocks.length&&o.every((t,n)=>t===e.record.blocks[n])))return n.disconnect(),e.style&&e.style.remove(),Object.assign(e,{style:null,parsedMismatch:!0}),void(e.load=Ve(t).catch(()=>{}))}});n.observe(document.documentElement,{childList:!0,subtree:!0}),document.addEventListener("DOMContentLoaded",()=>n.disconnect(),{once:!0})}(i,e.version),t(r)};if(document.body)return r();const a=new MutationObserver(()=>{document.body&&(a.disconnect(),r())});a.observe(document.documentElement,{childList:!0}),document.addEventListener("DOMContentLoaded",()=>{a.disconnect(),r()},{once:!0})}):t}catch(e){return t}}(Qe):null;lt(),dt()}}();
2
2
  //# sourceMappingURL=manifest.min.js.map