mnfst 0.5.336 → 0.5.338

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.
@@ -45,6 +45,7 @@ function releaseContextTrigger(menu, el) {
45
45
  menu._triggerHost = null;
46
46
  menu._triggerEl = null;
47
47
  hideIfOpen(menu);
48
+ openContext.delete(menu);
48
49
  }
49
50
  if (menu.__mnfstCtxOwner === el) {
50
51
  menu.__mnfstContextAbort?.abort();
@@ -56,6 +57,21 @@ function releaseContextTrigger(menu, el) {
56
57
  }
57
58
  }
58
59
 
60
+ // Open context menus, for x-virtual's recycle (a row hosting one is not handed to another item).
61
+ // Membership is re-checked against the live popover state on every read, so nothing can stick.
62
+ const openContext = new Set();
63
+ window.__mnfstContextHosts = () => {
64
+ const out = [];
65
+ for (const m of openContext) {
66
+ let open = false;
67
+ try { open = m.matches(':popover-open'); } catch (_) { }
68
+ if (!m.isConnected || !open || !m._triggerHost) { openContext.delete(m); continue; }
69
+ out.push(m._triggerHost);
70
+ if (m._triggerEl && m._triggerEl !== m._triggerHost) out.push(m._triggerEl);
71
+ }
72
+ return out;
73
+ };
74
+
59
75
  function hideIfOpen(menu) {
60
76
  try { if (menu.matches(':popover-open')) menu.hidePopover(); } catch (_) { }
61
77
  }
@@ -153,8 +169,9 @@ function onMenuToggle(menu, e) {
153
169
  menu.focus();
154
170
  }
155
171
  }
156
- } else if (menu.id) {
157
- document.querySelectorAll(`[aria-controls="${menu.id}"][aria-expanded="true"]`).forEach(t => t.setAttribute('aria-expanded', 'false'));
172
+ } else {
173
+ openContext.delete(menu);
174
+ if (menu.id) document.querySelectorAll(`[aria-controls="${menu.id}"][aria-expanded="true"]`).forEach(t => t.setAttribute('aria-expanded', 'false'));
158
175
  }
159
176
  }
160
177
 
@@ -265,12 +282,31 @@ function initializeDropdownPlugin() {
265
282
  releaseManagedMenu(menu, el);
266
283
  });
267
284
 
285
+ // A template-literal id is read inside the effect, so the trigger follows it when its value changes
286
+ const dynamicId = !!expression && (expression.includes('${') || expression.includes('`'));
287
+ const evaluateId = dynamicId ? evaluateLater(expression) : null;
288
+ let resolvedId, hasRun = false;
289
+
268
290
  effect(() => {
291
+ let nextId;
292
+ if (evaluateId) evaluateId((value) => { nextId = value; });
293
+ if (hasRun && nextId === resolvedId) return;
294
+ const changed = hasRun;
295
+ hasRun = true;
296
+ resolvedId = nextId;
269
297
  if (runAbort) runAbort.abort();
270
298
  if (menu) {
299
+ if (changed) {
300
+ // A menu this trigger opened closes before the trigger points elsewhere
301
+ if (menu.__mnfstTrigger === el || menu._triggerHost === el || el.getAttribute('aria-expanded') === 'true') hideIfOpen(menu);
302
+ releaseContextTrigger(menu, el);
303
+ if (menu.__mnfstTrigger === el) menu.__mnfstTrigger = null;
304
+ }
271
305
  releaseMenuKeys(menu, el);
272
306
  releaseManagedMenu(menu, el);
273
307
  }
308
+ // The old target goes now, or an id that resolves to nothing would leave it pointing there
309
+ if (changed) { el.removeAttribute('popovertarget'); el.removeAttribute('aria-controls'); }
274
310
  const runCtl = new AbortController();
275
311
  runAbort = runCtl;
276
312
  const signal = runCtl.signal;
@@ -289,17 +325,8 @@ function initializeDropdownPlugin() {
289
325
  // Evaluate the expression to get the actual menu ID
290
326
  let dropdownId;
291
327
  if (expression) {
292
- // Check if expression contains template literals or is a static string
293
- if (expression.includes('${') || expression.includes('`')) {
294
- // Use evaluateLater for dynamic expressions
295
- const evaluator = evaluateLater(expression);
296
- evaluator(value => {
297
- dropdownId = value;
298
- });
299
- } else {
300
- // Static string - use as-is
301
- dropdownId = expression;
302
- }
328
+ // Template literal: the value read in the effect; otherwise a static id
329
+ dropdownId = dynamicId ? resolvedId : expression;
303
330
  } else {
304
331
  dropdownId = `dropdown-${anchorCode}`;
305
332
  }
@@ -513,6 +540,7 @@ function initializeDropdownPlugin() {
513
540
 
514
541
  ensureContextDismiss(menu, el);
515
542
  if (!menu.matches(':popover-open')) menu.showPopover();
543
+ openContext.add(menu);
516
544
 
517
545
  // Adjust if menu overflows viewport
518
546
  requestAnimationFrame(() => {
@@ -1,2 +1,2 @@
1
- !function(){let e="mouse",t=null;function n(e,t){if(e.__mnfstContextDismissBound)return;e.__mnfstContextDismissBound=!0;const n=new AbortController;e.__mnfstContextAbort=n,e.__mnfstCtxOwner=t,function(e,t){document.addEventListener("pointerdown",t=>{e.matches(":popover-open")&&!e.contains(t.target)&&e.hidePopover()},{signal:t}),document.addEventListener("keydown",t=>{if("Escape"===t.key&&e.matches(":popover-open")){e.hidePopover();const t=e._triggerHost;t&&t.isConnected&&t.focus()}},{signal:t})}(e,n.signal)}function o(e){try{e.matches(":popover-open")&&e.hidePopover()}catch(e){}}function r(e,t){(e.__mnfstManagedBy||=new Set).add(t)}function i(e,t){const n=e.__mnfstManagedBy;n&&n.delete(t)&&!n.size&&(o(e),setTimeout(()=>{n.size||(e.__mnfstManagedBy=null,window.Alpine?.destroyTree?.(e),e.remove())},0))}function s(e){const t=e.__mnfstTrigger||e._triggerHost;return t&&t.isConnected?t:e.id?document.querySelector(`[aria-controls="${e.id}"]`):null}function a(t,n){if((t.__mnfstKeyUsers||=new Set).add(n),t.__mnfstKeyAbort)return;const o=t.__mnfstKeyAbort=new AbortController;t.addEventListener("keydown",e=>function(e,t){const n=e.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"]), li'),o=Array.from(n).indexOf(t.target);if("ArrowDown"===t.key||"ArrowUp"===t.key){t.preventDefault();const e=n[(o+("ArrowDown"===t.key?1:-1)+n.length)%n.length];if(!e)return;"LI"===e.tagName&&e.setAttribute("tabindex","0"),e.focus()}else if("Tab"===t.key){const n=e.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');if(!t.shiftKey&&t.target===n[n.length-1]){t.preventDefault(),e.hidePopover();const n=document.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),o=n[Array.from(n).indexOf(s(e))+1];o&&o.focus()}t.shiftKey&&t.target===n[0]&&e.hidePopover()}else"Escape"===t.key?(e.hidePopover(),s(e)?.focus()):"Enter"!==t.key&&" "!==t.key||"LI"===t.target.tagName&&(t.preventDefault(),(t.target.querySelector("a")||t.target).click())}(t,e),{signal:o.signal}),t.addEventListener("toggle",n=>function(t,n){if("open"===n.newState){const o=n.source||s(t);t.id&&o?.getAttribute?.("aria-controls")===t.id&&o.setAttribute("aria-expanded","true");const r=t.querySelectorAll("li");r.forEach(e=>{e.hasAttribute("tabindex")||e.setAttribute("tabindex","-1")});const i=r[0];i&&!t.querySelector('button, [href], input, select, textarea, [tabindex="0"]')&&(i.setAttribute("tabindex","0"),"keyboard"===e?i.focus():(t.hasAttribute("tabindex")||t.setAttribute("tabindex","-1"),t.focus()))}else t.id&&document.querySelectorAll(`[aria-controls="${t.id}"][aria-expanded="true"]`).forEach(e=>e.setAttribute("aria-expanded","false"))}(t,n),{signal:o.signal})}function l(e,t){const n=e.__mnfstKeyUsers;n&&n.delete(t)&&!n.size&&(e.__mnfstKeyAbort?.abort(),e.__mnfstKeyAbort=null)}document.addEventListener("keydown",()=>{e="keyboard"},!0),document.addEventListener("pointerdown",n=>{e="mouse",t=new WeakRef(n.target)},!0);const d="input, select, textarea, [contenteditable]:not([contenteditable=false]), [role=switch], .combobox, [x-dropdown], [popovertarget], [keep-open]";function c(){var t,s;!function(){const e=document.body;e.hasAttribute("x-data")||e.setAttribute("x-data","{}")}(),t="dropdown",s=(t,{modifiers:s,expression:c},{effect:u,evaluateLater:p,cleanup:f})=>{let m,g,v,w,y=null;f(()=>{y&&y.abort(),y=null,clearTimeout(g),clearTimeout(v),m&&(function(e,t){if(e._triggerHost===t&&(e._triggerHost=null,e._triggerEl=null,o(e)),e.__mnfstCtxOwner===t){e.__mnfstContextAbort?.abort(),e.__mnfstContextDismissBound=!1,e.__mnfstContextAbort=null,e.__mnfstCtxOwner=null;const t=e._triggerHost;t&&t.isConnected&&e.matches(":popover-open")&&n(e,t)}}(m,t),m.__mnfstTrigger===t&&(m.__mnfstTrigger=null),l(m,t),i(m,t))}),u(()=>{y&&y.abort(),m&&(l(m,t),i(m,t));const o=new AbortController;y=o;const u=o.signal;setTimeout(()=>{if(u.aborted)return;if(!window.Alpine)return void console.warn("[Manifest] Alpine not available for dropdown processing");const o=Math.random().toString(36).substr(2,9);let i;if(c?c.includes("${")||c.includes("`")?p(c)(e=>{i=e}):i=c:i=`dropdown-${o}`,i&&"TEMPLATE"===document.getElementById(i)?.tagName){const e=document.getElementById(i);m=e.content.cloneNode(!0).firstElementChild;const n=`dropdown-${o}`;m.setAttribute("id",n),document.body.appendChild(m),r(m,t),t.closest("[popover]")&&m.setAttribute("data-popover-nested",""),s.includes("context")||t.setAttribute("popovertarget",n),m.setAttribute("popover",s.includes("context")?"manual":""),window.ManifestDefer?.defer(m),Alpine.initTree(m)}else{if(m=document.getElementById(i),!m){if(window.ManifestComponentsRegistry&&window.ManifestComponentsLoader){const e=i;if(window.ManifestComponentsRegistry.registered.has(e)){const n=async()=>{const n=window.ManifestComponentsLoader,o=await n.loadComponent(e);if(u.aborted)return;const a=document.getElementById(i);if(a)return m=a,m.__mnfstManagedBy&&r(m,t),s.includes("context")||t.setAttribute("popovertarget",i),void l();if(o){const n=document.createElement("div");n.innerHTML=o.trim();const a=n.querySelector(`#${i}`);a?(m=a.cloneNode(!0),m.setAttribute("id",i),document.body.appendChild(m),r(m,t),t.closest("[popover]")&&m.setAttribute("data-popover-nested",""),s.includes("context")||t.setAttribute("popovertarget",i),m.setAttribute("popover",s.includes("context")?"manual":""),window.ManifestDefer?.defer(m),Alpine.initTree(m),l()):console.warn(`[Manifest] Menu with id "${i}" not found in component "${e}"`)}else console.warn(`[Manifest] Failed to load component "${e}" for dropdown`)};return void(window.__manifestComponentsInitialized?n():window.addEventListener("manifest:components-ready",n,{once:!0,signal:u}))}}if(!t.isConnected)return;return void console.warn(`[Manifest] Dropdown menu with id "${i}" not found`)}m.__mnfstManagedBy&&r(m,t),s.includes("context")||t.setAttribute("popovertarget",i)}function l(){if(!m||u.aborted)return;m.setAttribute("popover",s.includes("context")?"manual":"");const r=`--dropdown-${o}`;t.style.setProperty("anchor-name",`${r}, var(--co-anchor, --no-anchor)`),t.style.setProperty("--trigger-anchor",r),m.style.setProperty("position-anchor",r);const i=()=>{m.__mnfstTrigger=t;const e=t.style.getPropertyValue("--trigger-anchor");e&&m.style.setProperty("position-anchor",e)};if(s.includes("context")||(t.addEventListener("pointerdown",i,{signal:u}),t.addEventListener("keydown",e=>{"Enter"!==e.key&&" "!==e.key||i()},{signal:u})),s.includes("context")||(m.id||(m.id="mnfst-dropdown-"+Math.random().toString(36).slice(2,9)),t.setAttribute("aria-haspopup","menu"),t.setAttribute("aria-controls",m.id),t.setAttribute("aria-expanded",m.matches(":popover-open")&&m.__mnfstTrigger===t?"true":"false"),m.hasAttribute("role")||m.setAttribute("role","menu"),function(e){const t=()=>e.querySelectorAll("li").forEach(e=>{e.hasAttribute("role")||e.setAttribute("role","menuitem")});t(),e.__mnfstRoleOnRender||(e.__mnfstRoleOnRender=!0,e.addEventListener("manifest:defer-render",t))}(m)),s.includes("hover")){const e=()=>{m&&!m.matches(":popover-open")&&(clearTimeout(g),clearTimeout(v),i(),m.showPopover({source:t}))},n=()=>Array.from(document.querySelectorAll(".tooltip:popover-open")).some(e=>e.matches(":hover"));w=()=>{clearTimeout(v),v=setTimeout(()=>{if(m?.matches(":popover-open")){const e=t.matches(":hover"),o=m.matches(":hover");e||o||n()||m.hidePopover()}},300)},t.addEventListener("mouseenter",e,{signal:u}),t.addEventListener("mouseleave",w,{signal:u})}if(s.includes("context")){const e=750,o=(e,o,r)=>{m._triggerEl=e.closest("[data-cp-value], [x-data]")||t,m._triggerHost=t,m.style.position="fixed",m.style.positionAnchor="unset",m.style.positionArea="unset",m.style.inset="auto",m.style.left=o+"px",m.style.top=r+"px",m.style.margin="0",window.ManifestDefer?.isPending(m)&&window.ManifestDefer.render(m),n(m,t),m.matches(":popover-open")||m.showPopover(),requestAnimationFrame(()=>{const e=m.getBoundingClientRect();e.right>window.innerWidth&&(m.style.left=window.innerWidth-e.width+"px"),e.bottom>window.innerHeight&&(m.style.top=window.innerHeight-e.height+"px")})};t.addEventListener("contextmenu",n=>{n.preventDefault(),n.stopPropagation(),t.__mnfstLongPressOpenedAt&&Date.now()-t.__mnfstLongPressOpenedAt<e||o(n.target,n.clientX,n.clientY)},{signal:u});const r=500,i=10;let s=null,a=0,l=0,d=null;const c=()=>{t.style.setProperty("-webkit-touch-callout","none"),t.style.setProperty("-webkit-user-select","none"),t.style.setProperty("user-select","none")},p=()=>{t.style.removeProperty("-webkit-touch-callout"),t.style.removeProperty("-webkit-user-select"),t.style.removeProperty("user-select")},f=()=>{s&&clearTimeout(s),s=null,p()};t.addEventListener("pointerdown",e=>{"touch"!==e.pointerType&&"pen"!==e.pointerType||(f(),a=e.clientX,l=e.clientY,d=e.target,c(),s=setTimeout(()=>{s=null,u.aborted||(p(),t.__mnfstLongPressOpenedAt=Date.now(),d.dispatchEvent(new CustomEvent("dropdown:context",{bubbles:!0,detail:{x:a,y:l}})),o(d,a,l))},r))},{signal:u}),t.addEventListener("pointermove",e=>{s&&(Math.abs(e.clientX-a)>i||Math.abs(e.clientY-l)>i)&&f()},{signal:u}),t.addEventListener("pointerup",f,{signal:u}),t.addEventListener("pointercancel",f,{signal:u}),t.addEventListener("scroll",f,{capture:!0,signal:u}),t.addEventListener("click",n=>{t.__mnfstLongPressOpenedAt&&Date.now()-t.__mnfstLongPressOpenedAt<e&&(n.preventDefault(),n.stopPropagation())},{capture:!0,signal:u}),n(m,t)}if((s.includes("close")||s.includes("context"))&&(m.__mnfstAutoClose=!0),function(t){if(t.__mnfstCloseBound)return;t.__mnfstCloseBound=!0;const n=n=>{let o=n.closest("menu[popover]")||t;for(;o;)o.matches(":popover-open")&&o.hidePopover(),o=o.parentElement?.closest("menu[popover]");if("keyboard"===e){const e=t.__mnfstTrigger||t._triggerHost||document.querySelector(`[aria-controls="${t.id}"]`);e?.focus?.()}};t.addEventListener("click",e=>{const o=e.target.closest("[close]");if(o&&t.contains(o))return n(o);if(!t.__mnfstAutoClose)return;let r=null;for(let n=e.target;n&&n!==t;n=n.parentElement)n.matches?.("li, a, button, label, [role=menuitem], [role=option]")&&(r=n);if(!r)return;const i=e.target.closest(d);i&&i!==r&&r.contains(i)||r.querySelector(d)||r.matches("[role=switch], [x-dropdown], [popovertarget], [keep-open]")||n(r)})}(m),a(m,t),s.includes("hover")){m.addEventListener("mouseenter",()=>{clearTimeout(v),clearTimeout(g)},{signal:u}),m.addEventListener("mouseleave",()=>{w&&w()},{signal:u});const e=()=>{clearTimeout(v)},t=new WeakSet,n=()=>{m.querySelectorAll('li, button, a, [role="menuitem"]').forEach(n=>{t.has(n)||(t.add(n),n.addEventListener("mouseenter",e,{signal:u}))})};setTimeout(n,10),m.addEventListener("manifest:defer-render",n,{signal:u})}}l()})})},Alpine.directive(t,s)}let u=!1,p=!1;function f(){u||window.Alpine&&"function"==typeof window.Alpine.directive&&(u=!0,c(),p&&"function"==typeof window.Alpine.initTree&&document.querySelectorAll("[x-dropdown]").forEach(e=>{e.__x||window.Alpine.initTree(e)}))}if(document.addEventListener("alpine:initialized",()=>{p=!0}),window.ensureDropdownPluginInitialized=f,"loading"===document.readyState&&document.addEventListener("DOMContentLoaded",f),document.addEventListener("alpine:init",f),window.Alpine&&"function"==typeof window.Alpine.directive)setTimeout(f,0);else{const e=setInterval(()=>{window.Alpine&&"function"==typeof window.Alpine.directive&&(clearInterval(e),f())},10);setTimeout(()=>clearInterval(e),5e3)}document.addEventListener("click",e=>{const t=e.target.closest("button[popovertarget]");if(!t)return;const n=t.getAttribute("popovertarget"),o=document.getElementById(n);if(o&&"DIALOG"===o.tagName&&o.hasAttribute("popover")){document.querySelectorAll("menu[popover]:popover-open").forEach(e=>{o.contains(e)||e.hidePopover()})}}),window.addEventListener("manifest:route-change",()=>{const e=t?.deref();document.querySelectorAll("[popover]:popover-open").forEach(t=>{if(!t.__mnfstCloseBound)return;const n=e&&t.contains(e)?e:null;n&&n.closest("[keep-open]")||(t.__mnfstAutoClose||n&&n.closest("[close]"))&&t.hidePopover()})})}();
1
+ !function(){let e="mouse",t=null;function n(e,t){if(e.__mnfstContextDismissBound)return;e.__mnfstContextDismissBound=!0;const n=new AbortController;e.__mnfstContextAbort=n,e.__mnfstCtxOwner=t,function(e,t){document.addEventListener("pointerdown",t=>{e.matches(":popover-open")&&!e.contains(t.target)&&e.hidePopover()},{signal:t}),document.addEventListener("keydown",t=>{if("Escape"===t.key&&e.matches(":popover-open")){e.hidePopover();const t=e._triggerHost;t&&t.isConnected&&t.focus()}},{signal:t})}(e,n.signal)}function o(e,t){if(e._triggerHost===t&&(e._triggerHost=null,e._triggerEl=null,i(e),r.delete(e)),e.__mnfstCtxOwner===t){e.__mnfstContextAbort?.abort(),e.__mnfstContextDismissBound=!1,e.__mnfstContextAbort=null,e.__mnfstCtxOwner=null;const t=e._triggerHost;t&&t.isConnected&&e.matches(":popover-open")&&n(e,t)}}document.addEventListener("keydown",()=>{e="keyboard"},!0),document.addEventListener("pointerdown",n=>{e="mouse",t=new WeakRef(n.target)},!0);const r=new Set;function i(e){try{e.matches(":popover-open")&&e.hidePopover()}catch(e){}}function s(e,t){(e.__mnfstManagedBy||=new Set).add(t)}function a(e,t){const n=e.__mnfstManagedBy;n&&n.delete(t)&&!n.size&&(i(e),setTimeout(()=>{n.size||(e.__mnfstManagedBy=null,window.Alpine?.destroyTree?.(e),e.remove())},0))}function l(e){const t=e.__mnfstTrigger||e._triggerHost;return t&&t.isConnected?t:e.id?document.querySelector(`[aria-controls="${e.id}"]`):null}function d(t,n){if((t.__mnfstKeyUsers||=new Set).add(n),t.__mnfstKeyAbort)return;const o=t.__mnfstKeyAbort=new AbortController;t.addEventListener("keydown",e=>function(e,t){const n=e.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"]), li'),o=Array.from(n).indexOf(t.target);if("ArrowDown"===t.key||"ArrowUp"===t.key){t.preventDefault();const e=n[(o+("ArrowDown"===t.key?1:-1)+n.length)%n.length];if(!e)return;"LI"===e.tagName&&e.setAttribute("tabindex","0"),e.focus()}else if("Tab"===t.key){const n=e.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');if(!t.shiftKey&&t.target===n[n.length-1]){t.preventDefault(),e.hidePopover();const n=document.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),o=n[Array.from(n).indexOf(l(e))+1];o&&o.focus()}t.shiftKey&&t.target===n[0]&&e.hidePopover()}else"Escape"===t.key?(e.hidePopover(),l(e)?.focus()):"Enter"!==t.key&&" "!==t.key||"LI"===t.target.tagName&&(t.preventDefault(),(t.target.querySelector("a")||t.target).click())}(t,e),{signal:o.signal}),t.addEventListener("toggle",n=>function(t,n){if("open"===n.newState){const o=n.source||l(t);t.id&&o?.getAttribute?.("aria-controls")===t.id&&o.setAttribute("aria-expanded","true");const r=t.querySelectorAll("li");r.forEach(e=>{e.hasAttribute("tabindex")||e.setAttribute("tabindex","-1")});const i=r[0];i&&!t.querySelector('button, [href], input, select, textarea, [tabindex="0"]')&&(i.setAttribute("tabindex","0"),"keyboard"===e?i.focus():(t.hasAttribute("tabindex")||t.setAttribute("tabindex","-1"),t.focus()))}else r.delete(t),t.id&&document.querySelectorAll(`[aria-controls="${t.id}"][aria-expanded="true"]`).forEach(e=>e.setAttribute("aria-expanded","false"))}(t,n),{signal:o.signal})}function c(e,t){const n=e.__mnfstKeyUsers;n&&n.delete(t)&&!n.size&&(e.__mnfstKeyAbort?.abort(),e.__mnfstKeyAbort=null)}window.__mnfstContextHosts=()=>{const e=[];for(const t of r){let n=!1;try{n=t.matches(":popover-open")}catch(e){}t.isConnected&&n&&t._triggerHost?(e.push(t._triggerHost),t._triggerEl&&t._triggerEl!==t._triggerHost&&e.push(t._triggerEl)):r.delete(t)}return e};const u="input, select, textarea, [contenteditable]:not([contenteditable=false]), [role=switch], .combobox, [x-dropdown], [popovertarget], [keep-open]";function p(){var t,l;!function(){const e=document.body;e.hasAttribute("x-data")||e.setAttribute("x-data","{}")}(),t="dropdown",l=(t,{modifiers:l,expression:p},{effect:f,evaluateLater:m,cleanup:g})=>{let v,w,_,y,b=null;g(()=>{b&&b.abort(),b=null,clearTimeout(w),clearTimeout(_),v&&(o(v,t),v.__mnfstTrigger===t&&(v.__mnfstTrigger=null),c(v,t),a(v,t))});const h=!!p&&(p.includes("${")||p.includes("`")),A=h?m(p):null;let x,E=!1;f(()=>{let f;if(A&&A(e=>{f=e}),E&&f===x)return;const m=E;E=!0,x=f,b&&b.abort(),v&&(m&&(v.__mnfstTrigger!==t&&v._triggerHost!==t&&"true"!==t.getAttribute("aria-expanded")||i(v),o(v,t),v.__mnfstTrigger===t&&(v.__mnfstTrigger=null)),c(v,t),a(v,t)),m&&(t.removeAttribute("popovertarget"),t.removeAttribute("aria-controls"));const g=new AbortController;b=g;const L=g.signal;setTimeout(()=>{if(L.aborted)return;if(!window.Alpine)return void console.warn("[Manifest] Alpine not available for dropdown processing");const o=Math.random().toString(36).substr(2,9);let i;if(i=p?h?x:p:`dropdown-${o}`,i&&"TEMPLATE"===document.getElementById(i)?.tagName){const e=document.getElementById(i);v=e.content.cloneNode(!0).firstElementChild;const n=`dropdown-${o}`;v.setAttribute("id",n),document.body.appendChild(v),s(v,t),t.closest("[popover]")&&v.setAttribute("data-popover-nested",""),l.includes("context")||t.setAttribute("popovertarget",n),v.setAttribute("popover",l.includes("context")?"manual":""),window.ManifestDefer?.defer(v),Alpine.initTree(v)}else{if(v=document.getElementById(i),!v){if(window.ManifestComponentsRegistry&&window.ManifestComponentsLoader){const e=i;if(window.ManifestComponentsRegistry.registered.has(e)){const n=async()=>{const n=window.ManifestComponentsLoader,o=await n.loadComponent(e);if(L.aborted)return;const r=document.getElementById(i);if(r)return v=r,v.__mnfstManagedBy&&s(v,t),l.includes("context")||t.setAttribute("popovertarget",i),void a();if(o){const n=document.createElement("div");n.innerHTML=o.trim();const r=n.querySelector(`#${i}`);r?(v=r.cloneNode(!0),v.setAttribute("id",i),document.body.appendChild(v),s(v,t),t.closest("[popover]")&&v.setAttribute("data-popover-nested",""),l.includes("context")||t.setAttribute("popovertarget",i),v.setAttribute("popover",l.includes("context")?"manual":""),window.ManifestDefer?.defer(v),Alpine.initTree(v),a()):console.warn(`[Manifest] Menu with id "${i}" not found in component "${e}"`)}else console.warn(`[Manifest] Failed to load component "${e}" for dropdown`)};return void(window.__manifestComponentsInitialized?n():window.addEventListener("manifest:components-ready",n,{once:!0,signal:L}))}}if(!t.isConnected)return;return void console.warn(`[Manifest] Dropdown menu with id "${i}" not found`)}v.__mnfstManagedBy&&s(v,t),l.includes("context")||t.setAttribute("popovertarget",i)}function a(){if(!v||L.aborted)return;v.setAttribute("popover",l.includes("context")?"manual":"");const i=`--dropdown-${o}`;t.style.setProperty("anchor-name",`${i}, var(--co-anchor, --no-anchor)`),t.style.setProperty("--trigger-anchor",i),v.style.setProperty("position-anchor",i);const s=()=>{v.__mnfstTrigger=t;const e=t.style.getPropertyValue("--trigger-anchor");e&&v.style.setProperty("position-anchor",e)};if(l.includes("context")||(t.addEventListener("pointerdown",s,{signal:L}),t.addEventListener("keydown",e=>{"Enter"!==e.key&&" "!==e.key||s()},{signal:L})),l.includes("context")||(v.id||(v.id="mnfst-dropdown-"+Math.random().toString(36).slice(2,9)),t.setAttribute("aria-haspopup","menu"),t.setAttribute("aria-controls",v.id),t.setAttribute("aria-expanded",v.matches(":popover-open")&&v.__mnfstTrigger===t?"true":"false"),v.hasAttribute("role")||v.setAttribute("role","menu"),function(e){const t=()=>e.querySelectorAll("li").forEach(e=>{e.hasAttribute("role")||e.setAttribute("role","menuitem")});t(),e.__mnfstRoleOnRender||(e.__mnfstRoleOnRender=!0,e.addEventListener("manifest:defer-render",t))}(v)),l.includes("hover")){const e=()=>{v&&!v.matches(":popover-open")&&(clearTimeout(w),clearTimeout(_),s(),v.showPopover({source:t}))},n=()=>Array.from(document.querySelectorAll(".tooltip:popover-open")).some(e=>e.matches(":hover"));y=()=>{clearTimeout(_),_=setTimeout(()=>{if(v?.matches(":popover-open")){const e=t.matches(":hover"),o=v.matches(":hover");e||o||n()||v.hidePopover()}},300)},t.addEventListener("mouseenter",e,{signal:L}),t.addEventListener("mouseleave",y,{signal:L})}if(l.includes("context")){const e=750,o=(e,o,i)=>{v._triggerEl=e.closest("[data-cp-value], [x-data]")||t,v._triggerHost=t,v.style.position="fixed",v.style.positionAnchor="unset",v.style.positionArea="unset",v.style.inset="auto",v.style.left=o+"px",v.style.top=i+"px",v.style.margin="0",window.ManifestDefer?.isPending(v)&&window.ManifestDefer.render(v),n(v,t),v.matches(":popover-open")||v.showPopover(),r.add(v),requestAnimationFrame(()=>{const e=v.getBoundingClientRect();e.right>window.innerWidth&&(v.style.left=window.innerWidth-e.width+"px"),e.bottom>window.innerHeight&&(v.style.top=window.innerHeight-e.height+"px")})};t.addEventListener("contextmenu",n=>{n.preventDefault(),n.stopPropagation(),t.__mnfstLongPressOpenedAt&&Date.now()-t.__mnfstLongPressOpenedAt<e||o(n.target,n.clientX,n.clientY)},{signal:L});const i=500,s=10;let a=null,l=0,d=0,c=null;const u=()=>{t.style.setProperty("-webkit-touch-callout","none"),t.style.setProperty("-webkit-user-select","none"),t.style.setProperty("user-select","none")},p=()=>{t.style.removeProperty("-webkit-touch-callout"),t.style.removeProperty("-webkit-user-select"),t.style.removeProperty("user-select")},f=()=>{a&&clearTimeout(a),a=null,p()};t.addEventListener("pointerdown",e=>{"touch"!==e.pointerType&&"pen"!==e.pointerType||(f(),l=e.clientX,d=e.clientY,c=e.target,u(),a=setTimeout(()=>{a=null,L.aborted||(p(),t.__mnfstLongPressOpenedAt=Date.now(),c.dispatchEvent(new CustomEvent("dropdown:context",{bubbles:!0,detail:{x:l,y:d}})),o(c,l,d))},i))},{signal:L}),t.addEventListener("pointermove",e=>{a&&(Math.abs(e.clientX-l)>s||Math.abs(e.clientY-d)>s)&&f()},{signal:L}),t.addEventListener("pointerup",f,{signal:L}),t.addEventListener("pointercancel",f,{signal:L}),t.addEventListener("scroll",f,{capture:!0,signal:L}),t.addEventListener("click",n=>{t.__mnfstLongPressOpenedAt&&Date.now()-t.__mnfstLongPressOpenedAt<e&&(n.preventDefault(),n.stopPropagation())},{capture:!0,signal:L}),n(v,t)}if((l.includes("close")||l.includes("context"))&&(v.__mnfstAutoClose=!0),function(t){if(t.__mnfstCloseBound)return;t.__mnfstCloseBound=!0;const n=n=>{let o=n.closest("menu[popover]")||t;for(;o;)o.matches(":popover-open")&&o.hidePopover(),o=o.parentElement?.closest("menu[popover]");if("keyboard"===e){const e=t.__mnfstTrigger||t._triggerHost||document.querySelector(`[aria-controls="${t.id}"]`);e?.focus?.()}};t.addEventListener("click",e=>{const o=e.target.closest("[close]");if(o&&t.contains(o))return n(o);if(!t.__mnfstAutoClose)return;let r=null;for(let n=e.target;n&&n!==t;n=n.parentElement)n.matches?.("li, a, button, label, [role=menuitem], [role=option]")&&(r=n);if(!r)return;const i=e.target.closest(u);i&&i!==r&&r.contains(i)||r.querySelector(u)||r.matches("[role=switch], [x-dropdown], [popovertarget], [keep-open]")||n(r)})}(v),d(v,t),l.includes("hover")){v.addEventListener("mouseenter",()=>{clearTimeout(_),clearTimeout(w)},{signal:L}),v.addEventListener("mouseleave",()=>{y&&y()},{signal:L});const e=()=>{clearTimeout(_)},t=new WeakSet,n=()=>{v.querySelectorAll('li, button, a, [role="menuitem"]').forEach(n=>{t.has(n)||(t.add(n),n.addEventListener("mouseenter",e,{signal:L}))})};setTimeout(n,10),v.addEventListener("manifest:defer-render",n,{signal:L})}}a()})})},Alpine.directive(t,l)}let f=!1,m=!1;function g(){f||window.Alpine&&"function"==typeof window.Alpine.directive&&(f=!0,p(),m&&"function"==typeof window.Alpine.initTree&&document.querySelectorAll("[x-dropdown]").forEach(e=>{e.__x||window.Alpine.initTree(e)}))}if(document.addEventListener("alpine:initialized",()=>{m=!0}),window.ensureDropdownPluginInitialized=g,"loading"===document.readyState&&document.addEventListener("DOMContentLoaded",g),document.addEventListener("alpine:init",g),window.Alpine&&"function"==typeof window.Alpine.directive)setTimeout(g,0);else{const e=setInterval(()=>{window.Alpine&&"function"==typeof window.Alpine.directive&&(clearInterval(e),g())},10);setTimeout(()=>clearInterval(e),5e3)}document.addEventListener("click",e=>{const t=e.target.closest("button[popovertarget]");if(!t)return;const n=t.getAttribute("popovertarget"),o=document.getElementById(n);if(o&&"DIALOG"===o.tagName&&o.hasAttribute("popover")){document.querySelectorAll("menu[popover]:popover-open").forEach(e=>{o.contains(e)||e.hidePopover()})}}),window.addEventListener("manifest:route-change",()=>{const e=t?.deref();document.querySelectorAll("[popover]:popover-open").forEach(t=>{if(!t.__mnfstCloseBound)return;const n=e&&t.contains(e)?e:null;n&&n.closest("[keep-open]")||(t.__mnfstAutoClose||n&&n.closest("[close]"))&&t.hidePopover()})})}();
2
2
  //# sourceMappingURL=manifest.dropdowns.min.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"manifest.dropdowns.min.js","names":["lastInputModality","lastPointerTarget","ensureContextDismiss","menu","owner","__mnfstContextDismissBound","ctxAbort","AbortController","__mnfstContextAbort","__mnfstCtxOwner","signal","document","addEventListener","e","matches","contains","target","hidePopover","key","host","_triggerHost","isConnected","focus","bindContextDismiss","hideIfOpen","_","retainManagedMenu","el","__mnfstManagedBy","Set","add","releaseManagedMenu","users","delete","size","setTimeout","window","Alpine","destroyTree","remove","menuOpener","t","__mnfstTrigger","id","querySelector","retainMenuKeys","__mnfstKeyUsers","__mnfstKeyAbort","ctl","allElements","querySelectorAll","currentIndex","Array","from","indexOf","preventDefault","next","length","tagName","setAttribute","focusable","shiftKey","allFocusable","nextElement","click","onMenuKeydown","newState","opener","source","getAttribute","liElements","forEach","li","hasAttribute","firstLi","onMenuToggle","releaseMenuKeys","abort","WeakRef","MENU_CONTROL","initializeDropdownPlugin","name","handler","body","ensureAlpineContext","modifiers","expression","effect","evaluateLater","cleanup","hoverTimeout","autoCloseTimeout","startAutoCloseTimer","runAbort","clearTimeout","_triggerEl","releaseContextTrigger","runCtl","aborted","console","warn","anchorCode","Math","random","toString","substr","dropdownId","includes","evaluator","value","getElementById","template","content","cloneNode","firstElementChild","uniqueDropdownId","appendChild","closest","ManifestDefer","defer","initTree","ManifestComponentsRegistry","ManifestComponentsLoader","componentName","registered","has","waitForComponent","async","loader","loadComponent","loaded","setupDropdown","tempDiv","createElement","innerHTML","trim","menuElement","__manifestComponentsInitialized","once","anchorName","style","setProperty","pointMenuHere","a","getPropertyValue","slice","roleItems","__mnfstRoleOnRender","bindMenuRoles","handleShowPopover","showPopover","isOverOpenHintTooltip","some","isOverButton","isOverMenu","LONG_PRESS_DUPE_WINDOW_MS","openContextMenuAt","triggerTarget","x","y","position","positionAnchor","positionArea","inset","left","top","margin","isPending","render","requestAnimationFrame","rect","getBoundingClientRect","right","innerWidth","width","bottom","innerHeight","height","stopPropagation","__mnfstLongPressOpenedAt","Date","now","clientX","clientY","LONG_PRESS_MS","MOVE_SLOP_PX","pressTimer","startX","startY","pressTarget","suppressCallout","restoreCallout","removeProperty","cancelPress","pointerType","dispatchEvent","CustomEvent","bubbles","detail","abs","capture","__mnfstAutoClose","__mnfstCloseBound","closeFrom","node","m","parentElement","trigger","opted","row","n","hit","bindMenuClose","cancelCloseTimer","wiredItems","WeakSet","setupMenuItemListeners","item","directive","dropdownPluginInitialized","alpineHasWalked","ensureDropdownPluginInitialized","__x","readyState","checkAlpine","setInterval","clearInterval","event","button","targetId","dropdown","pressed","deref"],"sources":["manifest.dropdowns.js"],"mappings":"CAEA,WAKA,IAAIA,EAAoB,QAIpBC,EAAoB,KAoBxB,SAASC,EAAqBC,EAAMC,GAChC,GAAID,EAAKE,2BAA4B,OACrCF,EAAKE,4BAA6B,EAClC,MAAMC,EAAW,IAAIC,gBACrBJ,EAAKK,oBAAsBF,EAC3BH,EAAKM,gBAAkBL,EAlB3B,SAA4BD,EAAMO,GAC9BC,SAASC,iBAAiB,cAAgBC,IAClCV,EAAKW,QAAQ,mBAAqBX,EAAKY,SA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B7L,OAAOC,QAA6C,mBAA5BD,OAAOC,OAAOqL,YACtCQ,cAAcF,GACdH,MAEL,IACH1L,WAAW,IAAM+L,cAAcF,GAAc,IACjD,CAGArN,SAASC,iBAAiB,QAAUuN,IAChC,MAAMC,EAASD,EAAMnN,OAAOqG,QAAQ,yBACpC,IAAK+G,EAAQ,OAEb,MAAMC,EAAWD,EAAO/J,aAAa,iBAC/BrD,EAASL,SAASmG,eAAeuH,GAEvC,GAAIrN,GAA6B,WAAnBA,EAAO0C,SAAwB1C,EAAOyD,aAAa,WAAY,CAEnD9D,SAASuC,iBAAiB,8BAElCqB,QAAQ+J,IACbtN,EAAOD,SAASuN,IACjBA,EAASrN,eAGrB,IAOJmB,OAAOxB,iBAAiB,wBAAyB,KAC7C,MAAM2N,EAAUtO,GAAmBuO,QACnC7N,SAASuC,iBAAiB,0BAA0BqB,QAASpE,IACzD,IAAKA,EAAKuM,kBAAmB,OAC7B,MAAMO,EAAMsB,GAAWpO,EAAKY,SAASwN,GAAWA,EAAU,KACtDtB,GAAOA,EAAI5F,QAAQ,iBACnBlH,EAAKsM,kBAAqBQ,GAAOA,EAAI5F,QAAQ,aAAalH,EAAKc,iBAI1E,CAhuBD","ignoreList":[]}
1
+ {"version":3,"file":"manifest.dropdowns.min.js","names":["lastInputModality","lastPointerTarget","ensureContextDismiss","menu","owner","__mnfstContextDismissBound","ctxAbort","AbortController","__mnfstContextAbort","__mnfstCtxOwner","signal","document","addEventListener","e","matches","contains","target","hidePopover","key","host","_triggerHost","isConnected","focus","bindContextDismiss","releaseContextTrigger","el","_triggerEl","hideIfOpen","openContext","delete","abort","WeakRef","Set","_","retainManagedMenu","__mnfstManagedBy","add","releaseManagedMenu","users","size","setTimeout","window","Alpine","destroyTree","remove","menuOpener","t","__mnfstTrigger","id","querySelector","retainMenuKeys","__mnfstKeyUsers","__mnfstKeyAbort","ctl","allElements","querySelectorAll","currentIndex","Array","from","indexOf","preventDefault","next","length","tagName","setAttribute","focusable","shiftKey","allFocusable","nextElement","click","onMenuKeydown","newState","opener","source","getAttribute","liElements","forEach","li","hasAttribute","firstLi","onMenuToggle","releaseMenuKeys","__mnfstContextHosts","out","m","open","push","MENU_CONTROL","initializeDropdownPlugin","name","handler","body","ensureAlpineContext","modifiers","expression","effect","evaluateLater","cleanup","hoverTimeout","autoCloseTimeout","startAutoCloseTimer","runAbort","clearTimeout","dynamicId","includes","evaluateId","resolvedId","hasRun","nextId","value","changed","removeAttribute","runCtl","aborted","console","warn","anchorCode","Math","random","toString","substr","dropdownId","getElementById","template","content","cloneNode","firstElementChild","uniqueDropdownId","appendChild","closest","ManifestDefer","defer","initTree","ManifestComponentsRegistry","ManifestComponentsLoader","componentName","registered","has","waitForComponent","async","loader","loadComponent","loaded","setupDropdown","tempDiv","createElement","innerHTML","trim","menuElement","__manifestComponentsInitialized","once","anchorName","style","setProperty","pointMenuHere","a","getPropertyValue","slice","roleItems","__mnfstRoleOnRender","bindMenuRoles","handleShowPopover","showPopover","isOverOpenHintTooltip","some","isOverButton","isOverMenu","LONG_PRESS_DUPE_WINDOW_MS","openContextMenuAt","triggerTarget","x","y","position","positionAnchor","positionArea","inset","left","top","margin","isPending","render","requestAnimationFrame","rect","getBoundingClientRect","right","innerWidth","width","bottom","innerHeight","height","stopPropagation","__mnfstLongPressOpenedAt","Date","now","clientX","clientY","LONG_PRESS_MS","MOVE_SLOP_PX","pressTimer","startX","startY","pressTarget","suppressCallout","restoreCallout","removeProperty","cancelPress","pointerType","dispatchEvent","CustomEvent","bubbles","detail","abs","capture","__mnfstAutoClose","__mnfstCloseBound","closeFrom","node","parentElement","trigger","opted","row","n","hit","bindMenuClose","cancelCloseTimer","wiredItems","WeakSet","setupMenuItemListeners","item","directive","dropdownPluginInitialized","alpineHasWalked","ensureDropdownPluginInitialized","__x","readyState","checkAlpine","setInterval","clearInterval","event","button","targetId","dropdown","pressed","deref"],"sources":["manifest.dropdowns.js"],"mappings":"CAEA,WAKA,IAAIA,EAAoB,QAIpBC,EAA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IAAMqM,cAAcF,GAAc,IACjD,CAGAhO,SAASC,iBAAiB,QAAUkO,IAChC,MAAMC,EAASD,EAAM9N,OAAOiH,QAAQ,yBACpC,IAAK8G,EAAQ,OAEb,MAAMC,EAAWD,EAAOrK,aAAa,iBAC/B1D,EAASL,SAAS+G,eAAesH,GAEvC,GAAIhO,GAA6B,WAAnBA,EAAO+C,SAAwB/C,EAAO8D,aAAa,WAAY,CAEnDnE,SAAS4C,iBAAiB,8BAElCqB,QAAQqK,IACbjO,EAAOD,SAASkO,IACjBA,EAAShO,eAGrB,IAOJwB,OAAO7B,iBAAiB,wBAAyB,KAC7C,MAAMsO,EAAUjP,GAAmBkP,QACnCxO,SAAS4C,iBAAiB,0BAA0BqB,QAASzE,IACzD,IAAKA,EAAKmN,kBAAmB,OAC7B,MAAMM,EAAMsB,GAAW/O,EAAKY,SAASmO,GAAWA,EAAU,KACtDtB,GAAOA,EAAI3F,QAAQ,iBACnB9H,EAAKkN,kBAAqBO,GAAOA,EAAI3F,QAAQ,aAAa9H,EAAKc,iBAI1E,CA5vBD","ignoreList":[]}
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "manifest.accordion.css": "sha384-XA/UMMX/m2c8/rtvH3LeUez5j/jjNq+sTvihfja4fT2r47bWdpLH/wRpR+4PGdRN",
3
- "manifest.appwrite.auth.js": "sha384-n+Fohtui5o2h3HpM7ifnop9YsAdlTj0uHYfzljQMghLJeDkODC6OXop6ds6OTZha",
4
- "manifest.appwrite.auth.min.js": "sha384-qN5XF96RpRVTzBeOBoxwh6ziq2+eZ2rS0cLUtlwp4CFcbyuMCaf6kHFJKoWEGNvp",
5
- "manifest.appwrite.data.js": "sha384-f7bm/S+Xl75UHCurVn/3zBVyM4ycHuRPvO2V/GvsM4olvoPApM/rpU7I3hPXlo1J",
3
+ "manifest.appwrite.auth.js": "sha384-cbA5Fkc7hA03ujKecj7rmBlY/702uxuqMU2hflKVDhgiche6TsGahs50zT7+JTYx",
4
+ "manifest.appwrite.auth.min.js": "sha384-Vw62AlAttDVVXw7B990icHF7PkIdydSr2g+A8IA7kxgRlXKt8RJFr2wf/RPEH4o0",
5
+ "manifest.appwrite.data.js": "sha384-0aDDJVPMyK3WlqJH+53n6P/T7cshxqH4RRJqlZufWmIU0+yCxtTxx/STUzQss50U",
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-Q/Ln5mJZYuXuINnGKQ3wtgGZYl6hiIf9tZTonNhTr0n8pE4sAriKCdawMqdIfcBN",
39
- "manifest.data.min.js": "sha384-Hvc4C8hdDrRaHrVPMeJYJqF5o+k1qjSgGzwxl0XzG1/fu9BrG9ShbHK5P0azGKm9",
38
+ "manifest.data.js": "sha384-qmzekV0dLfESfo2Q/rM1Y6xjXKPLrkLC19QzuK8E60lmQJeQKzpuH4E3MYgxdrh4",
39
+ "manifest.data.min.js": "sha384-1hSfN56qbOSwI67Cj/2FNVox0C/gq9YVWYg8SEyRigQlf/AS+ANl47s2roIULCdC",
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",
@@ -47,8 +47,8 @@
47
47
  "manifest.dialog.css": "sha384-sjTZQcQmR0/IcHMcLgnky5nzfA68zGFUMpUAqBf/afx+18w4o++e14AYML9+NXHG",
48
48
  "manifest.divider.css": "sha384-LDLGddb7gNSvtUSHKv7y4cPZNS9D15yfgccK9s0AeJYYToQ0n7cSR8D+LFlS0HpS",
49
49
  "manifest.dropdown.css": "sha384-Z44/dw7HTNqarDighqpIMYHzSnOXTJyO1OPfThK2PabxQ/YhksBvZKLnl7JUkyf2",
50
- "manifest.dropdowns.js": "sha384-HoHGDMVtQyPVjvvTjKazEev+4Ob2eCimJkB0atI3hEL9L7JOTYHmSlETKePXFocw",
51
- "manifest.dropdowns.min.js": "sha384-6bhhwR7ZEPOZ6bOkYYNz+tFCBcaMlPkOV1W70G4fAfVHftwtA0V6ISWgteWwYUu0",
50
+ "manifest.dropdowns.js": "sha384-0aRVPCg/QE6HX75WN87SvqCXBNvjw7MxUk+CTmPuq60fwFkkGH1h6d1lunjwP8bR",
51
+ "manifest.dropdowns.min.js": "sha384-AtXXG1FdvGF7OtB1vTUR0Eax55RdIEo55kS+11GlrlpGklS0v0X1KyT96wvLwhIZ",
52
52
  "manifest.edit.css": "sha384-GuKgU3+hkboNU6xjhD40IIOu0iERyR2yTR2fkhikLN3QQIG9DrRND2u4vkf5sDuF",
53
53
  "manifest.edit.js": "sha384-pURDOUjLeSG8yelnCrr1GKAaKBxb8JOLwlwdy2k5bpdK3PgbUhVvQK1yw/bZXPC6",
54
54
  "manifest.edit.min.js": "sha384-gwQ+3V2Ycej1MGCEaTHay8akm1YFl5Jg9vDBVIU4+qp7qX9YpPfci9P5r3nywPaR",
@@ -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-yPBlmfvueo9Ls4BqXo1tVeyqOKCUDfMJFDogpNis0RiKKElSnKJskZPUdSDNz86c",
61
+ "manifest.js": "sha384-F311J1F1lKhUGNqWg4GjM5IfvRZlsO+lhoalvitUyw4Bzoqe1oDVI86eXUwzg3TP",
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-RLqEuDe83NHnqaVzN2q5cI0l5TcDe+1dQKEiLOCeQUELmmlbMPaIzcwWhEcLbNWV",
68
- "manifest.modules.integrity.json": "sha384-fjgL8yxzJrpIvgOzLZ2X3pI8OdRQukhaNhMnmfjlvTpL3s65XQJ5GhzE0MIUBqoM",
67
+ "manifest.min.js": "sha384-cbyG2TgPMS0zV5bojemkPY5nwcwcs0zMfyS83aBHJOsN0skImscI+1u8jCROYPAH",
68
+ "manifest.modules.integrity.json": "sha384-HQR2b06NiHJw1dJ/+WVQYN+Qdqrr5H19hvXGlCJ3Zqx7I4o0Ae3K5G/ZHE6cDfY3",
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-OhLnumTTnWvilRLj/Iv8q0XQJzlpTywf1dCXmhq0u03UAojFbemqv3gNXEbLCdqh",
92
- "manifest.sw.min.js": "sha384-VD5S6xg7jOy5IcaFrJeiR27eXo1qusjSPWBD5o6xFD22YbdEpJGuV88Pk5TApA47",
91
+ "manifest.sw.js": "sha384-gIdAAWKA6CSacbqIPsmD47UbBw3R7gj5fa35839qLeA1FP74kRFUX/xOztvmDsdK",
92
+ "manifest.sw.min.js": "sha384-3qF4zkwV4v/bRucvmP6ZY4PmRLcJh+X/n46oYdqBwAm+sJBzG3pXvvRRGMOP/hvh",
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",
@@ -110,6 +110,6 @@
110
110
  "manifest.utilities.js": "sha384-S2NYQJfAbRVsXpucdl5DFZVHz8li+p3YEQBFFzqDYAmJUmpYGD0yc0xa8JqD1CLl",
111
111
  "manifest.utilities.min.js": "sha384-1188wXKPoXUnzqzfuIvmx/ZMhsLuJaz16ss8Z98ZtHKJzmGQMOk1aXnC4WghffZL",
112
112
  "manifest.vendor.integrity.json": "sha384-xMKQh8gEBZhtaYhv09XUs3amAIT3Oh7aKrsGN0ABsnlIpbgxr5OHi5FxQTQhqz3E",
113
- "manifest.virtual.js": "sha384-2Kmw+B6cLKUVvkXtZb7x+5OrWcJWooOQ/QBB51vpQC7P3Jdd9jcoSSAiwQ6LCNQo",
114
- "manifest.virtual.min.js": "sha384-FqBrlNUM9wT6q7FRg1KVLVA9pUJv60NUr3o7Mxcis7tXWYax6h/8NBDfOsMCUkLS"
113
+ "manifest.virtual.js": "sha384-hBDxY250B5gR0mHIV/lxeGc95MLhN4ETRErSRBZP1o7S8EdliYybsC1Tulpm3FWv",
114
+ "manifest.virtual.min.js": "sha384-jIZA74lMzAOL51/56tG4C077dYXg1FL57ackQyfuzqxRm8G1bn0Ryna+9ibCypTT"
115
115
  }
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.336';
357
- const MODULES_INTEGRITY = 'sha384-fjgL8yxzJrpIvgOzLZ2X3pI8OdRQukhaNhMnmfjlvTpL3s65XQJ5GhzE0MIUBqoM';
356
+ const LOADER_VERSION = '0.5.338';
357
+ const MODULES_INTEGRITY = 'sha384-HQR2b06NiHJw1dJ/+WVQYN+Qdqrr5H19hvXGlCJ3Zqx7I4o0Ae3K5G/ZHE6cDfY3';
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
@@ -1,2 +1,2 @@
1
- !function(){"use strict";const e=document.currentScript;if(!window.ManifestPending){const ut=new Map;let ft=0;window.ManifestPending={hold(e="work"){const t=++ft;return ut.set(t,e),()=>{ut.delete(t)}},get count(){return ut.size+(window.__manifestMarkdownPending||0)+(window.__manifestUtilitiesPending||0)},labels(){const e=[...ut.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 pt=!1;document.addEventListener("readystatechange",()=>{pt||"loading"===document.readyState||(pt=!0,l())})}else l();if("undefined"!=typeof window&&"undefined"!=typeof document){let mt=null;window.addEventListener("resize",()=>{document.documentElement.classList.add("window-resizing"),mt&&clearTimeout(mt),mt=setTimeout(()=>{document.documentElement.classList.remove("window-resizing"),mt=null},200)},{passive:!0})}const d="latest",u="0.5.336",f="sha384-fjgL8yxzJrpIvgOzLZ2X3pI8OdRQukhaNhMnmfjlvTpL3s65XQJ5GhzE0MIUBqoM",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"],M=["rich-text","submissions","markdown","svg","code","combobox","slides","colorpicker","datepicker","charts","virtual","export"],A={"appwrite-data":["data"],"appwrite-presences":["data","appwrite-auth"],device:["utilities"],edit:["rich-text"]};let L=null;let P=[];function C(e,t=v){const n=e.replace(/-/g,".");if(L){return[`${L.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`)}let N=!1;function T(e){if(function(){if(N||"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 O(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 z(e){return e.split(/[?#]/)[0].split("/").pop()}function q(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 D(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})`:""}.`)}"undefined"!=typeof document&&"complete"!==document.readyState&&document.addEventListener("DOMContentLoaded",()=>{N=!0},{once:!0});let F=null;const B=/^sha(256|384|512)-[A-Za-z0-9+/=]+$/;function H(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 J(e,t){const n=H(e,t);if(n)return n;const i=H(e,m);return i&&/\/(languages|langs)\//.test(t)?(F||(F=U(b.map(e=>`${$(u,e)}/${m}`),i,m).then(e=>e.json()).catch(e=>{throw F=null,e})),H(await F,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||z(e[0]||"");let l=null;for(const o of e){let c=n;if(s){const e=t||(i?q(o):z(o));c=e&&await J(s,e)||(i?y:null),c||(i?D(`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."):D(`${e||o} has no integrity hash in this release.`,"Not loaded."))}try{return await O(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,X=new Set,G=new Map,Q=()=>"undefined"!=typeof performance?performance.now():Date.now(),K=e=>G.has(e)?Q()-G.get(e):0;async function Y(e,t=v,n=!0){const i=Z.get(e);if(i)return i.version!==t&&console.warn(`[Manifest Loader] ${e} already loaded at ${i.version} — ignoring request for ${t}`),i.promise;const o=async function(e,t,n=!0){let i=!1;g&&t!==u&&(D(`Integrity checks cover this loader's own version (${u}); ${e} was requested at ${t}.`,"Not loaded."),i=!0);const o=["components","data","localization"].includes(e)?"high":null;return V(C(e,t),{unchecked:i,priority:o,ordered:n})}(e,t,n);return Z.set(e,{version:t,promise:o}),o.then(()=>{X.add(e),G.set(e,Q())},()=>Z.delete(e)),o}function ee(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=A[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 te=[{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:M.includes(e.plugin)&&!["rich-text","submissions"].includes(e.plugin),re:e.magic?new RegExp("\\"+e.magic+"\\b"):null})),ne=[...new Set(te.map(e=>e.plugin))],ie=new Map(te.filter(e=>e.attr).map(e=>[e.attr,e])),oe=te.filter(e=>e.family).map(e=>[e.attr+"-",e]),re=e=>{const t=ae(e);return t&&t.plugin};function ae(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=ie.get(n);if(i)return i;for(const[e,t]of oe)if(n.startsWith(e))return t}let se=!1;!function(){if("undefined"==typeof window||"undefined"==typeof document||se)return;se=!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 ce=!1;!function(){if("undefined"==typeof window||"undefined"==typeof document||ce)return;ce=!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 le=te.filter(e=>e.late),de=le.filter(e=>e.attr).map(e=>e.attr),ue="undefined"==typeof window?[]:le.filter(e=>window[e.present]).map(e=>e.plugin),fe=new Set,pe=new Map,me=e=>{if(fe.has(e))return Promise.resolve();if(!pe.has(e)){let t;const n=new Promise(e=>{t=e});pe.set(e,{promise:n,resolve:t})}return pe.get(e).promise},we=new Map,he=new Set,ge=e=>{const t=ae(e);return t&&t.late&&!ue.includes(t.plugin)?t:null},ye=new Set;function ve(e){if(We.has(e)||ye.has(e))return null;if(!Z.has(e)){if(!Oe||P.includes(e))return null;Fe(ee([e]).filter(e=>!De(e)))}const t=Z.get(e);return t?t.promise:null}const be=new WeakSet,_e=new WeakSet,$e=new WeakMap;let ke=0,Ee=null;const xe=["markdown","code","svg"];function Se(e,t,n){const i=ve(n.plugin);if(!i)return!1;const o=n.attr.slice(2);be.add(t),_e.add(t),!ke++&&window.ManifestPending&&(Ee=window.ManifestPending.hold("held"));let r=!1;const a=()=>{if(!r&&(r=!0,be.delete(t),_e.delete(t),! --ke&&Ee)){const e=Ee;Ee=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=xe.includes(n.plugin)?t.style.opacity:null,null!==c&&(t.style.opacity="0")}catch(e){}const l=new Promise(e=>{let t=!1;me(o).then(()=>{t=!0,e()});const r=i=>{t||(ye.add(n.plugin),he.has(n.plugin)||(he.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(()=>{return setTimeout(()=>r("has not started 10 s after loading"),(e=n.plugin,Math.max(0,1e4-K(e))));var e},()=>{})}),d=l.then(()=>{let e=null;try{be.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 WeakMap,i=e=>{n.get(e)===e.currentTarget&&e.stopPropagation()},r=[];for(const[n,i,o]of t)try{if(!n.isConnected||n.readOnly||n.disabled)continue;let t=!1;for(let i=n;i&&i!==e;i=i.parentElement)if(_e.has(i)){t=!0;break}if(t){$e.has(n)||$e.set(n,e);continue}const a=$e.get(n)||e;$e.delete(n),r.push([n,i,o,a])}catch(e){}const a=new Set(r.map(e=>e[3]));a.forEach(e=>{e.addEventListener("input",i),e.addEventListener("change",i)});const s=(e,t,i)=>{const o=new Event(t,{bubbles:!0});n.set(o,i),e.dispatchEvent(o)};for(const[e,t,n,i]of r)try{"options"===t?[...e.options].forEach((e,t)=>{e.selected=!!n[t]}):"files"!==t&&(e[t]=n),s(e,"input",i),s(e,"change",i)}catch(e){}if(a.forEach(e=>{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 Me=!1;function Ae(){const e="undefined"==typeof window?null:window.Alpine;if(Me||!e||!e.directive||!e.magic)return;Me=!0;const t=e.directive,n=e.magic;if(e.directive=function(e){const n=t.apply(this,arguments);if(!fe.has(e)){fe.add(e);const t=pe.get(e);t&&(pe.delete(e),t.resolve());const n=we.get(e);n&&(we.delete(e),setTimeout(()=>n.forEach(([e,t])=>{const n=Le(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(!be.has(n))for(const i of n.attributes){const o=ge(i.name);if(o&&!fe.has(o.attr.slice(2)))if(ye.has(o.plugin))Pe(o,n,i.name);else if(t){if(Se(e,n,o))return}else ve(o.plugin)&&Pe(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 le){if(!a.magic||ue.includes(a.plugin)||X.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=ve(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,ve(a.plugin)||he.has(s)||he.has(a.plugin)))){he.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||he.has("$import:activation")||(he.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 le.some(t=>t.magic==="$"+e)&&(n[e]=o,setTimeout(()=>{i.v++},0)),t.apply(this,arguments)}}(e,n)}const Le=e=>e&&"function"==typeof e.deref?e.deref():e;function Pe(e,t,n){const i=e.attr.slice(2);if(fe.has(i))return;we.has(i)||we.set(i,[]);const o=we.get(i).filter(([e])=>Le(e));o.push(["function"==typeof WeakRef?new WeakRef(t):t,n]),we.set(i,o)}"undefined"!=typeof document&&(document.addEventListener("alpine:init",Ae,{once:!0}),"undefined"!=typeof window&&window.Alpine&&window.Alpine.magic&&Ae()),"undefined"!=typeof window&&(window.__manifestHeld=e=>{if(!ke)return!1;for(let t=e;t;t=t.parentElement)if(be.has(t))return!0;return!1});const Ce=/^x-(code|code-group)$/,je=new RegExp("\\$("+te.filter(e=>e.magic).map(e=>e.magic.slice(1)).join("|")+")\\b"),Ie=new Set;function Ne(e,t=("undefined"==typeof document?null:document)){const n=te.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-")&&!Ce.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(re(t.name));const e=t.value;if(e&&-1!==e.indexOf("$")&&!Ie.has(e))if(je.test(e))for(const t of n)t.re&&!o.has(t.plugin)&&t.re.test(e)&&o.add(t.plugin);else Ie.size>2e4&&Ie.clear(),Ie.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 Te=null;function Re(){if(Te)return Te;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=Ne([]);return Te={used:n,take(){t&&t.disconnect();const i=new Set(n);for(const t of e)t.isConnected&&Ne([...i],t).forEach(e=>i.add(e));return e.clear(),[...i]}},Te}let Oe=!1,ze=!1,qe=null;const We=new Set,De=e=>X.has(e)||We.has(e);function Ue(e,t=v){if(!ze)return qe&&e?qe.promise.then(()=>ze?Ue(e,t):[]):Promise.resolve([]);if(!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=Ne(ne.filter(De).concat("components",P),n);return i.length?Fe(ee(i).filter(e=>!De(e)),t):Promise.resolve([])}function Fe(e,t=v){if(!e.length)return Promise.resolve([]);const n=window.ManifestPending?window.ManifestPending.hold("module"):()=>{},i=Promise.all(e.map(e=>Y(e,t,!le.some(t=>t.plugin===e)).catch(t=>{We.has(e)||(We.add(e),console.warn(`[Manifest Loader] Failed to load plugin ${e}:`,t))}))).then(()=>Promise.all(e.map(He))).then(()=>new Promise(e=>setTimeout(e,0)));return i.then(n),Promise.race([i,new Promise(e=>setTimeout(e,Be))]).then(()=>e)}const Be=1500;function He(e){const t=le.find(t=>t.plugin===e&&t.attr);return!t||!window[t.present]||We.has(e)||ye.has(e)||ue.includes(e)||fe.has(t.attr.slice(2))?null:Promise.race([me(t.attr.slice(2)),new Promise(t=>setTimeout(t,Math.max(0,Be-K(e))))])}function Je(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 Ve(e.target,e.attributeName);!n&&t.size&&(n=!0,setTimeout(()=>{n=!1;const o=[...t].filter(e=>e.isConnected);t.clear(),o.forEach(t=>Ue(t,e)),te.every(e=>De(e.plugin)||P.includes(e.plugin))&&i.disconnect()},0))});i.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:de})}function Ve(e,t){const n=ge(t);n&&e.hasAttribute(t)&&!fe.has(n.attr.slice(2))&&!window.__manifestHeld(e)&&ve(n.plugin)&&Pe(n,e,t)}const Ze={"text-edit":"rich-text"};function Xe(e){return e.filter(e=>{const t=e.replace(/^\+/,"");return!Ze[t]||(console.warn(`[Manifest Loader] ${t} was renamed to ${Ze[t]}`),!1)})}function Ge(){try{return!!document.querySelector("style[data-mnfst-utilities][data-mnfst-utilities-complete]")}catch(e){return!1}}const Qe="tailwind-engine-cache:v2",Ke=6048e5;function Ye(){return Array.from(document.querySelectorAll('style[type="text/tailwindcss"]:not(#manifest-tailwind-variants)'),e=>e.textContent)}function et(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 tt(e){const t=document.getElementById("manifest-styles");document.head.insertBefore(e,t&&t.parentNode===document.head?t:null)}const nt=e=>Array.isArray(e)&&e.every(e=>"string"==typeof e);async function it(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,...M,...S,...x,"payments","chat","device","native","import","tailwind"].includes(e))return Ze[e]?Xe([e]):console.warn(`[Manifest Loader] Unknown module: ${e}`),Promise.reject(new Error(`Unknown module: ${e}`));const n=ee([e]);return Promise.all(n.map(e=>Y(e,t)))},loadTailwind:it,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 J(n,e),i||D(`${e} has no integrity hash in this release.`,"Not loaded.")),U(b.map(t=>`${t}/${e}`),i,e)},get integrity(){return g},getPluginUrl:j,getModuleUrl:j,loadUsed:Ue},window.Manifest.loadModule=window.Manifest.loadPlugin;const ot="/sw.js";const rt={registered:!1,version:null,kill:()=>st(null)};function at(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 st(e){rt.registered=!1;try{const t=e||await navigator.serviceWorker.getRegistration(ot);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 ct(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=at(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(ot).catch(()=>null);if(c||r||a&&!n)return i("skip:",c?"kill switch":r?"mnfst-run":"dev origin",l?"(unregistering)":""),void await st(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(ot,{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] ${ot} 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 ${ot}), set data-sw="off", or set data-integrity="warn" to register it anyway.`),void await st(l);try{sessionStorage.setItem("manifest:sw-probe","ok")}catch(e){}}var f;const p=s&&"string"==typeof s.deployment?s.deployment:"",m=`${ot}?v=${encodeURIComponent(e.version)}&d=${encodeURIComponent(p)}`,h=await navigator.serviceWorker.register(m,{scope:"/"});rt.registered=!0,rt.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=rt;const lt=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=Xe(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=ee(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 dt;if(lt&&lt.version&&(v=lt.version),lt&&lt.pluginBase&&(dt=lt.pluginBase,L=dt||null),lt&&lt.omitted&&(P=lt.omitted),lt&&lt.cdn&&function(e){if(!e)return;const t=e.split(",").map(e=>e.trim().replace(/\/$/,"")).filter(Boolean);t.length&&(b=t)}(lt.cdn),lt&&lt.integrity&&(w=lt.integrity,!lt.versionSet&&f&&(v=lt.version=u),g=lt.version===u,y=lt.alpineIntegrity&&B.test(lt.alpineIntegrity.trim())?lt.alpineIntegrity.trim():null,h=async function(e){if(e.version!==u)return D(`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=L?[`${L.replace(/\/$/,"")}/${p}`]:b.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.`)}}(lt),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{ct(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)}(lt),lt&&lt.plugins.length>0){if(window.__manifestLoaderStarted)return;if(window.__manifestLoaderStarted=!0,lt.deriveFromManifest){let Et;qe={promise:new Promise(e=>{Et=e}),resolve:Et}}const wt=["data","localization","components","appwrite-auth","appwrite-data","appwrite-presences","payments","chat"],ht=document.querySelector('link[rel="manifest"]')?.getAttribute("href")||"/manifest.json",gt=new Set,yt=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]:(gt.has(t)||(gt.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)},vt=()=>window.__manifestLoaded?Promise.resolve(window.__manifestLoaded):(window.__manifestPromise||(window.__manifestPromise=fetch(ht).then(e=>e.ok?e.json():null).then(e=>(e&&!e.__interpolated&&(yt(e),Object.defineProperty(e,"__interpolated",{value:!0,enumerable:!1})),e)).catch(()=>null)),window.__manifestPromise),bt=()=>{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{(lt.deriveFromManifest||lt.plugins.some(e=>wt.includes(e)))&&vt();const e=L?null:b[0];if(e&&new URL(e,location.href).origin!==location.origin&&t("preconnect",new URL(e,location.href).origin),lt.deriveFromManifest){const e=["data","localization","components","status"];for(const n of[...E,...lt.plugins])e.includes(n)||t("preload",j(n,lt.version),"script")}T(()=>{try{if(window.Alpine||document.querySelector('script[src*="alpinejs"]')||t("preload",I(lt.alpine)[0],"script"),lt.deriveFromManifest){const e=Re().used.filter(e=>"components"!==e&&!P.includes(e));for(const n of ee(e))lt.plugins.includes(n)||Z.has(n)||t("preload",j(n,lt.version),"script")}}catch(e){}})}catch(e){}},_t=async()=>{if(h){(lt.deriveFromManifest||lt.plugins.some(e=>wt.includes(e)))&&vt();try{await h}catch(e){return void(e.logged||console.error(`[Manifest Loader] ${e.message}`))}}let e=null,t=lt.plugins,n=null;if(lt.deriveFromManifest){e=await vt();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=ee([...E,...(i=[...n,...o,...r,...a,...s,...lt.extraPlugins||[]],P.length?i.filter(e=>!P.includes(e)):i)])}else{t=ee([...E,...t.filter(e=>!E.includes(e))]);lt.plugins.some(e=>wt.includes(e))&&(n=vt()),"undefined"!=typeof window&&window.Capacitor&&!t.includes("device")&&(t=ee([...t,"device"]))}var i;const o=t.map(e=>Y(e,lt.version).catch(t=>{console.warn(`[Manifest Loader] Failed to load plugin ${e}:`,t)}));lt.deriveFromManifest&&(ze=!0,qe.resolve()),lt.tailwind&&!Ge()&&o.push(lt.tailwindCache?kt.then(e=>e?null:it(lt.version)).catch(()=>{}):it(lt.version).catch(()=>{}));const r=lt.deriveFromManifest?new Promise(e=>T(()=>{let n=[];try{const e=Re().take(),i=e.filter(e=>P.includes(e)&&!t.includes(e));i.forEach(e=>he.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=ee(o).filter(e=>!t.includes(e)).map(e=>Y(e,lt.version).catch(t=>{We.add(e),console.warn(`[Manifest Loader] Failed to load plugin ${e}:`,t)})))}catch(e){}Oe=!0,Je(lt.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=it(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&&tt(t.style)}(lt.version),n&&(e=await n),e&&"undefined"!=typeof window&&(window.__manifestLoaded=e,window.ManifestComponentsRegistry&&(window.ManifestComponentsRegistry.manifest=e)),T(async()=>{var e;r&&await r,$t(t,lt.tailwind),e=I(lt.alpine),T(()=>{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 $t(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 kt=lt.tailwindCache?function(e){const t=Promise.resolve(!1);try{if(!e.tailwindCache||!0===window.__manifestRender||window.__mnfstRun||at(location.hostname))return t;if(!e.plugins.includes("utilities")||Ge())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:Qe,v:n,idFor:e=>et(n,e),pathId:et("",[location.pathname]),record:null,armed:!1},o=JSON.parse(localStorage.getItem(Qe)||"null");return o&&nt(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<=Ke)return!1;const i=Ye(),o=et(e.v,i),r=JSON.parse(localStorage.getItem(`${Qe}:${o}`)||"null"),a=r?Date.now()-r.t:-1;if(!r||r.v!==e.v||"string"!=typeof r.css||!nt(r.tokens)||!nt(r.blocks))return!1;if(!(a>=0&&a<=Ke)||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,tt(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=Ye();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=it(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}}(lt):null;bt(),_t().finally(()=>{qe&&qe.resolve()})}}();
1
+ !function(){"use strict";const e=document.currentScript;if(!window.ManifestPending){const ut=new Map;let ft=0;window.ManifestPending={hold(e="work"){const t=++ft;return ut.set(t,e),()=>{ut.delete(t)}},get count(){return ut.size+(window.__manifestMarkdownPending||0)+(window.__manifestUtilitiesPending||0)},labels(){const e=[...ut.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 pt=!1;document.addEventListener("readystatechange",()=>{pt||"loading"===document.readyState||(pt=!0,l())})}else l();if("undefined"!=typeof window&&"undefined"!=typeof document){let mt=null;window.addEventListener("resize",()=>{document.documentElement.classList.add("window-resizing"),mt&&clearTimeout(mt),mt=setTimeout(()=>{document.documentElement.classList.remove("window-resizing"),mt=null},200)},{passive:!0})}const d="latest",u="0.5.338",f="sha384-HQR2b06NiHJw1dJ/+WVQYN+Qdqrr5H19hvXGlCJ3Zqx7I4o0Ae3K5G/ZHE6cDfY3",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"],M={"appwrite-data":["data"],"appwrite-presences":["data","appwrite-auth"],device:["utilities"],edit:["rich-text"]};let L=null;let P=[];function C(e,t=v){const n=e.replace(/-/g,".");if(L){return[`${L.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`)}let N=!1;function T(e){if(function(){if(N||"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 O(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 z(e){return e.split(/[?#]/)[0].split("/").pop()}function q(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 D(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})`:""}.`)}"undefined"!=typeof document&&"complete"!==document.readyState&&document.addEventListener("DOMContentLoaded",()=>{N=!0},{once:!0});let F=null;const B=/^sha(256|384|512)-[A-Za-z0-9+/=]+$/;function H(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 J(e,t){const n=H(e,t);if(n)return n;const i=H(e,m);return i&&/\/(languages|langs)\//.test(t)?(F||(F=U(b.map(e=>`${$(u,e)}/${m}`),i,m).then(e=>e.json()).catch(e=>{throw F=null,e})),H(await F,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||z(e[0]||"");let l=null;for(const o of e){let c=n;if(s){const e=t||(i?q(o):z(o));c=e&&await J(s,e)||(i?y:null),c||(i?D(`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."):D(`${e||o} has no integrity hash in this release.`,"Not loaded."))}try{return await O(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,Q=new Map,X=()=>"undefined"!=typeof performance?performance.now():Date.now(),Y=e=>Q.has(e)?X()-Q.get(e):0;async function K(e,t=v,n=!0){const i=Z.get(e);if(i)return i.version!==t&&console.warn(`[Manifest Loader] ${e} already loaded at ${i.version} — ignoring request for ${t}`),i.promise;const o=async function(e,t,n=!0){let i=!1;g&&t!==u&&(D(`Integrity checks cover this loader's own version (${u}); ${e} was requested at ${t}.`,"Not loaded."),i=!0);const o=["components","data","localization"].includes(e)?"high":null;return V(C(e,t),{unchecked:i,priority:o,ordered:n})}(e,t,n);return Z.set(e,{version:t,promise:o}),o.then(()=>{G.add(e),Q.set(e,X())},()=>Z.delete(e)),o}function ee(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=M[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 te=[{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})),ne=[...new Set(te.map(e=>e.plugin))],ie=new Map(te.filter(e=>e.attr).map(e=>[e.attr,e])),oe=te.filter(e=>e.family).map(e=>[e.attr+"-",e]),re=e=>{const t=ae(e);return t&&t.plugin};function ae(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=ie.get(n);if(i)return i;for(const[e,t]of oe)if(n.startsWith(e))return t}let se=!1;!function(){if("undefined"==typeof window||"undefined"==typeof document||se)return;se=!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 ce=!1;!function(){if("undefined"==typeof window||"undefined"==typeof document||ce)return;ce=!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 le=te.filter(e=>e.late),de=le.filter(e=>e.attr).map(e=>e.attr),ue="undefined"==typeof window?[]:le.filter(e=>window[e.present]).map(e=>e.plugin),fe=new Set,pe=new Map,me=e=>{if(fe.has(e))return Promise.resolve();if(!pe.has(e)){let t;const n=new Promise(e=>{t=e});pe.set(e,{promise:n,resolve:t})}return pe.get(e).promise},we=new Map,he=new Set,ge=e=>{const t=ae(e);return t&&t.late&&!ue.includes(t.plugin)?t:null},ye=new Set;function ve(e){if(We.has(e)||ye.has(e))return null;if(!Z.has(e)){if(!Oe||P.includes(e))return null;Fe(ee([e]).filter(e=>!De(e)))}const t=Z.get(e);return t?t.promise:null}const be=new WeakSet,_e=new WeakSet,$e=new WeakMap;let ke=0,Ee=null;const xe=["markdown","code","svg"];function Se(e,t,n){const i=ve(n.plugin);if(!i)return!1;const o=n.attr.slice(2);be.add(t),_e.add(t),!ke++&&window.ManifestPending&&(Ee=window.ManifestPending.hold("held"));let r=!1;const a=()=>{if(!r&&(r=!0,be.delete(t),_e.delete(t),! --ke&&Ee)){const e=Ee;Ee=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=xe.includes(n.plugin)?t.style.opacity:null,null!==c&&(t.style.opacity="0")}catch(e){}const l=new Promise(e=>{let t=!1;me(o).then(()=>{t=!0,e()});const r=i=>{t||(ye.add(n.plugin),he.has(n.plugin)||(he.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(()=>{return setTimeout(()=>r("has not started 10 s after loading"),(e=n.plugin,Math.max(0,1e4-Y(e))));var e},()=>{})}),d=l.then(()=>{let e=null;try{be.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 WeakMap,i=e=>{n.get(e)===e.currentTarget&&e.stopPropagation()},r=[];for(const[n,i,o]of t)try{if(!n.isConnected||n.readOnly||n.disabled)continue;let t=!1;for(let i=n;i&&i!==e;i=i.parentElement)if(_e.has(i)){t=!0;break}if(t){$e.has(n)||$e.set(n,e);continue}const a=$e.get(n)||e;$e.delete(n),r.push([n,i,o,a])}catch(e){}const a=new Set(r.map(e=>e[3]));a.forEach(e=>{e.addEventListener("input",i),e.addEventListener("change",i)});const s=(e,t,i)=>{const o=new Event(t,{bubbles:!0});n.set(o,i),e.dispatchEvent(o)};for(const[e,t,n,i]of r)try{"options"===t?[...e.options].forEach((e,t)=>{e.selected=!!n[t]}):"files"!==t&&(e[t]=n),s(e,"input",i),s(e,"change",i)}catch(e){}if(a.forEach(e=>{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 Ae=!1;function Me(){const e="undefined"==typeof window?null:window.Alpine;if(Ae||!e||!e.directive||!e.magic)return;Ae=!0;const t=e.directive,n=e.magic;if(e.directive=function(e){const n=t.apply(this,arguments);if(!fe.has(e)){fe.add(e);const t=pe.get(e);t&&(pe.delete(e),t.resolve());const n=we.get(e);n&&(we.delete(e),setTimeout(()=>n.forEach(([e,t])=>{const n=Le(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(!be.has(n))for(const i of n.attributes){const o=ge(i.name);if(o&&!fe.has(o.attr.slice(2)))if(ye.has(o.plugin))Pe(o,n,i.name);else if(t){if(Se(e,n,o))return}else ve(o.plugin)&&Pe(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 le){if(!a.magic||ue.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=ve(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,ve(a.plugin)||he.has(s)||he.has(a.plugin)))){he.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||he.has("$import:activation")||(he.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 le.some(t=>t.magic==="$"+e)&&(n[e]=o,setTimeout(()=>{i.v++},0)),t.apply(this,arguments)}}(e,n)}const Le=e=>e&&"function"==typeof e.deref?e.deref():e;function Pe(e,t,n){const i=e.attr.slice(2);if(fe.has(i))return;we.has(i)||we.set(i,[]);const o=we.get(i).filter(([e])=>Le(e));o.push(["function"==typeof WeakRef?new WeakRef(t):t,n]),we.set(i,o)}"undefined"!=typeof document&&(document.addEventListener("alpine:init",Me,{once:!0}),"undefined"!=typeof window&&window.Alpine&&window.Alpine.magic&&Me()),"undefined"!=typeof window&&(window.__manifestHeld=e=>{if(!ke)return!1;for(let t=e;t;t=t.parentElement)if(be.has(t))return!0;return!1});const Ce=/^x-(code|code-group)$/,je=new RegExp("\\$("+te.filter(e=>e.magic).map(e=>e.magic.slice(1)).join("|")+")\\b"),Ie=new Set;function Ne(e,t=("undefined"==typeof document?null:document)){const n=te.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-")&&!Ce.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(re(t.name));const e=t.value;if(e&&-1!==e.indexOf("$")&&!Ie.has(e))if(je.test(e))for(const t of n)t.re&&!o.has(t.plugin)&&t.re.test(e)&&o.add(t.plugin);else Ie.size>2e4&&Ie.clear(),Ie.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 Te=null;function Re(){if(Te)return Te;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=Ne([]);return Te={used:n,take(){t&&t.disconnect();const i=new Set(n);for(const t of e)t.isConnected&&Ne([...i],t).forEach(e=>i.add(e));return e.clear(),[...i]}},Te}let Oe=!1,ze=!1,qe=null;const We=new Set,De=e=>G.has(e)||We.has(e);function Ue(e,t=v){if(!ze)return qe&&e?qe.promise.then(()=>ze?Ue(e,t):[]):Promise.resolve([]);if(!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=Ne(ne.filter(De).concat("components",P),n);return i.length?Fe(ee(i).filter(e=>!De(e)),t):Promise.resolve([])}function Fe(e,t=v){if(!e.length)return Promise.resolve([]);const n=window.ManifestPending?window.ManifestPending.hold("module"):()=>{},i=Promise.all(e.map(e=>K(e,t,!le.some(t=>t.plugin===e)).catch(t=>{We.has(e)||(We.add(e),console.warn(`[Manifest Loader] Failed to load plugin ${e}:`,t))}))).then(()=>Promise.all(e.map(He))).then(()=>new Promise(e=>setTimeout(e,0)));return i.then(n),Promise.race([i,new Promise(e=>setTimeout(e,Be))]).then(()=>e)}const Be=1500;function He(e){const t=le.find(t=>t.plugin===e&&t.attr);return!t||!window[t.present]||We.has(e)||ye.has(e)||ue.includes(e)||fe.has(t.attr.slice(2))?null:Promise.race([me(t.attr.slice(2)),new Promise(t=>setTimeout(t,Math.max(0,Be-Y(e))))])}function Je(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 Ve(e.target,e.attributeName);!n&&t.size&&(n=!0,setTimeout(()=>{n=!1;const o=[...t].filter(e=>e.isConnected);t.clear(),o.forEach(t=>Ue(t,e)),te.every(e=>De(e.plugin)||P.includes(e.plugin))&&i.disconnect()},0))});i.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:de})}function Ve(e,t){const n=ge(t);n&&e.hasAttribute(t)&&!fe.has(n.attr.slice(2))&&!window.__manifestHeld(e)&&ve(n.plugin)&&Pe(n,e,t)}const Ze={"text-edit":"rich-text"};function Ge(e){return e.filter(e=>{const t=e.replace(/^\+/,"");return!Ze[t]||(console.warn(`[Manifest Loader] ${t} was renamed to ${Ze[t]}`),!1)})}function Qe(){try{return!!document.querySelector("style[data-mnfst-utilities][data-mnfst-utilities-complete]")}catch(e){return!1}}const Xe="tailwind-engine-cache:v2",Ye=6048e5;function Ke(){return Array.from(document.querySelectorAll('style[type="text/tailwindcss"]:not(#manifest-tailwind-variants)'),e=>e.textContent)}function et(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 tt(e){const t=document.getElementById("manifest-styles");document.head.insertBefore(e,t&&t.parentNode===document.head?t:null)}const nt=e=>Array.isArray(e)&&e.every(e=>"string"==typeof e);async function it(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 Ze[e]?Ge([e]):console.warn(`[Manifest Loader] Unknown module: ${e}`),Promise.reject(new Error(`Unknown module: ${e}`));const n=ee([e]);return Promise.all(n.map(e=>K(e,t)))},loadTailwind:it,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 J(n,e),i||D(`${e} has no integrity hash in this release.`,"Not loaded.")),U(b.map(t=>`${t}/${e}`),i,e)},get integrity(){return g},getPluginUrl:j,getModuleUrl:j,loadUsed:Ue},window.Manifest.loadModule=window.Manifest.loadPlugin;const ot="/sw.js";const rt={registered:!1,version:null,kill:()=>st(null)};function at(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 st(e){rt.registered=!1;try{const t=e||await navigator.serviceWorker.getRegistration(ot);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 ct(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=at(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(ot).catch(()=>null);if(c||r||a&&!n)return i("skip:",c?"kill switch":r?"mnfst-run":"dev origin",l?"(unregistering)":""),void await st(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(ot,{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] ${ot} 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 ${ot}), set data-sw="off", or set data-integrity="warn" to register it anyway.`),void await st(l);try{sessionStorage.setItem("manifest:sw-probe","ok")}catch(e){}}var f;const p=s&&"string"==typeof s.deployment?s.deployment:"",m=`${ot}?v=${encodeURIComponent(e.version)}&d=${encodeURIComponent(p)}`,h=await navigator.serviceWorker.register(m,{scope:"/"});rt.registered=!0,rt.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=rt;const lt=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=Ge(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=ee(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 dt;if(lt&&lt.version&&(v=lt.version),lt&&lt.pluginBase&&(dt=lt.pluginBase,L=dt||null),lt&&lt.omitted&&(P=lt.omitted),lt&&lt.cdn&&function(e){if(!e)return;const t=e.split(",").map(e=>e.trim().replace(/\/$/,"")).filter(Boolean);t.length&&(b=t)}(lt.cdn),lt&&lt.integrity&&(w=lt.integrity,!lt.versionSet&&f&&(v=lt.version=u),g=lt.version===u,y=lt.alpineIntegrity&&B.test(lt.alpineIntegrity.trim())?lt.alpineIntegrity.trim():null,h=async function(e){if(e.version!==u)return D(`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=L?[`${L.replace(/\/$/,"")}/${p}`]:b.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.`)}}(lt),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{ct(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)}(lt),lt&&lt.plugins.length>0){if(window.__manifestLoaderStarted)return;if(window.__manifestLoaderStarted=!0,lt.deriveFromManifest){let Et;qe={promise:new Promise(e=>{Et=e}),resolve:Et}}const wt=["data","localization","components","appwrite-auth","appwrite-data","appwrite-presences","payments","chat"],ht=document.querySelector('link[rel="manifest"]')?.getAttribute("href")||"/manifest.json",gt=new Set,yt=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]:(gt.has(t)||(gt.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)},vt=()=>window.__manifestLoaded?Promise.resolve(window.__manifestLoaded):(window.__manifestPromise||(window.__manifestPromise=fetch(ht).then(e=>e.ok?e.json():null).then(e=>(e&&!e.__interpolated&&(yt(e),Object.defineProperty(e,"__interpolated",{value:!0,enumerable:!1})),e)).catch(()=>null)),window.__manifestPromise),bt=()=>{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{(lt.deriveFromManifest||lt.plugins.some(e=>wt.includes(e)))&&vt();const e=L?null:b[0];if(e&&new URL(e,location.href).origin!==location.origin&&t("preconnect",new URL(e,location.href).origin),lt.deriveFromManifest){const e=["data","localization","components","status"];for(const n of[...E,...lt.plugins])e.includes(n)||t("preload",j(n,lt.version),"script")}T(()=>{try{if(window.Alpine||document.querySelector('script[src*="alpinejs"]')||t("preload",I(lt.alpine)[0],"script"),lt.deriveFromManifest){const e=Re().used.filter(e=>"components"!==e&&!P.includes(e));for(const n of ee(e))lt.plugins.includes(n)||Z.has(n)||t("preload",j(n,lt.version),"script")}}catch(e){}})}catch(e){}},_t=async()=>{if(h){(lt.deriveFromManifest||lt.plugins.some(e=>wt.includes(e)))&&vt();try{await h}catch(e){return void(e.logged||console.error(`[Manifest Loader] ${e.message}`))}}let e=null,t=lt.plugins,n=null;if(lt.deriveFromManifest){e=await vt();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=ee([...E,...(i=[...n,...o,...r,...a,...s,...lt.extraPlugins||[]],P.length?i.filter(e=>!P.includes(e)):i)])}else{t=ee([...E,...t.filter(e=>!E.includes(e))]);lt.plugins.some(e=>wt.includes(e))&&(n=vt()),"undefined"!=typeof window&&window.Capacitor&&!t.includes("device")&&(t=ee([...t,"device"]))}var i;const o=t.map(e=>K(e,lt.version).catch(t=>{console.warn(`[Manifest Loader] Failed to load plugin ${e}:`,t)}));lt.deriveFromManifest&&(ze=!0,qe.resolve()),lt.tailwind&&!Qe()&&o.push(lt.tailwindCache?kt.then(e=>e?null:it(lt.version)).catch(()=>{}):it(lt.version).catch(()=>{}));const r=lt.deriveFromManifest?new Promise(e=>T(()=>{let n=[];try{const e=Re().take(),i=e.filter(e=>P.includes(e)&&!t.includes(e));i.forEach(e=>he.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=ee(o).filter(e=>!t.includes(e)).map(e=>K(e,lt.version).catch(t=>{We.add(e),console.warn(`[Manifest Loader] Failed to load plugin ${e}:`,t)})))}catch(e){}Oe=!0,Je(lt.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=it(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&&tt(t.style)}(lt.version),n&&(e=await n),e&&"undefined"!=typeof window&&(window.__manifestLoaded=e,window.ManifestComponentsRegistry&&(window.ManifestComponentsRegistry.manifest=e)),T(async()=>{var e;r&&await r,$t(t,lt.tailwind),e=I(lt.alpine),T(()=>{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 $t(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 kt=lt.tailwindCache?function(e){const t=Promise.resolve(!1);try{if(!e.tailwindCache||!0===window.__manifestRender||window.__mnfstRun||at(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:Xe,v:n,idFor:e=>et(n,e),pathId:et("",[location.pathname]),record:null,armed:!1},o=JSON.parse(localStorage.getItem(Xe)||"null");return o&&nt(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<=Ye)return!1;const i=Ke(),o=et(e.v,i),r=JSON.parse(localStorage.getItem(`${Xe}:${o}`)||"null"),a=r?Date.now()-r.t:-1;if(!r||r.v!==e.v||"string"!=typeof r.css||!nt(r.tokens)||!nt(r.blocks))return!1;if(!(a>=0&&a<=Ye)||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,tt(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=Ke();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=it(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}}(lt):null;bt(),_t().finally(()=>{qe&&qe.resolve()})}}();
2
2
  //# sourceMappingURL=manifest.min.js.map