diff options
| author | Xe Iaso <me@xeiaso.net> | 2025-04-26 20:07:06 -0400 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2025-04-26 20:07:06 -0400 |
| commit | 62665656ffc8c20b7913b64dd14f4739bdcf29e7 (patch) | |
| tree | 52893728becf4b7cb7b6b21f36d3a030b33ab376 /cmd | |
| parent | 0a566abb1557f1a06723564b080061c06afd5de9 (diff) | |
| download | x-62665656ffc8c20b7913b64dd14f4739bdcf29e7.tar.xz x-62665656ffc8c20b7913b64dd14f4739bdcf29e7.zip | |
chore: reformat the world, set up autoformat on commit
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'cmd')
37 files changed, 11574 insertions, 830 deletions
diff --git a/cmd/_old/alvis/playbooks/README.md b/cmd/_old/alvis/playbooks/README.md index e778c37..39d642a 100644 --- a/cmd/_old/alvis/playbooks/README.md +++ b/cmd/_old/alvis/playbooks/README.md @@ -6,13 +6,12 @@ For example, consider what you would do to restart a Fly app after the health ch ```json { - "meta": { - "service": "xe-pronouns", - "condition": "health check failed" - }, + "meta": { + "service": "xe-pronouns", + "condition": "health check failed" + }, - "health_check_url": "https://pronouns.within.lgbt/.within/health", - "details": "Run your own copy of health checks.\n\nIf your health check fails, restart the app.\nIf it succeeds, close the incident.\n\nWait for one minute afte restarting the app.\nRun the health check again after restarting the app.\n\nIf it fails again, escalate to the on-call engineer." + "health_check_url": "https://pronouns.within.lgbt/.within/health", + "details": "Run your own copy of health checks.\n\nIf your health check fails, restart the app.\nIf it succeeds, close the incident.\n\nWait for one minute afte restarting the app.\nRun the health check again after restarting the app.\n\nIf it fails again, escalate to the on-call engineer." } ``` - diff --git a/cmd/_old/alvis/playbooks/xe-pronouns-healthcheck.json b/cmd/_old/alvis/playbooks/xe-pronouns-healthcheck.json index 1253427..22b3b16 100644 --- a/cmd/_old/alvis/playbooks/xe-pronouns-healthcheck.json +++ b/cmd/_old/alvis/playbooks/xe-pronouns-healthcheck.json @@ -1,9 +1,9 @@ { - "meta": { - "service": "xe-pronouns", - "condition": "health check failed" - }, + "meta": { + "service": "xe-pronouns", + "condition": "health check failed" + }, - "health_check_url": "https://pronouns.within.lgbt/.within/health", - "details": "Run your own copy of health checks.\n\nIf your health check fails, restart the app.\nIf it succeeds, close the incident.\n\nWait for one minute afte restarting the app.\nRun the health check again after restarting the app.\n\nIf it fails again, escalate to the on-call engineer." -}
\ No newline at end of file + "health_check_url": "https://pronouns.within.lgbt/.within/health", + "details": "Run your own copy of health checks.\n\nIf your health check fails, restart the app.\nIf it succeeds, close the incident.\n\nWait for one minute afte restarting the app.\nRun the health check again after restarting the app.\n\nIf it fails again, escalate to the on-call engineer." +} diff --git a/cmd/_old/azurda/static/js/alpine.js b/cmd/_old/azurda/static/js/alpine.js index 9b98d0c..9db67ba 100644 --- a/cmd/_old/azurda/static/js/alpine.js +++ b/cmd/_old/azurda/static/js/alpine.js @@ -1,9 +1,2713 @@ (() => { - var Ze = !1, Qe = !1, V = [], et = -1; function Kt(e) { bn(e) } function bn(e) { V.includes(e) || V.push(e), wn() } function we(e) { let t = V.indexOf(e); t !== -1 && t > et && V.splice(t, 1) } function wn() { !Qe && !Ze && (Ze = !0, queueMicrotask(En)) } function En() { Ze = !1, Qe = !0; for (let e = 0; e < V.length; e++)V[e](), et = e; V.length = 0, et = -1, Qe = !1 } var T, D, L, rt, tt = !0; function zt(e) { tt = !1, e(), tt = !0 } function Ht(e) { T = e.reactive, L = e.release, D = t => e.effect(t, { scheduler: r => { tt ? Kt(r) : r() } }), rt = e.raw } function nt(e) { D = e } function Vt(e) { let t = () => { }; return [n => { let i = D(n); return e._x_effects || (e._x_effects = new Set, e._x_runEffects = () => { e._x_effects.forEach(o => o()) }), e._x_effects.add(i), t = () => { i !== void 0 && (e._x_effects.delete(i), L(i)) }, i }, () => { t() }] } function q(e, t, r = {}) { e.dispatchEvent(new CustomEvent(t, { detail: r, bubbles: !0, composed: !0, cancelable: !0 })) } function O(e, t) { if (typeof ShadowRoot == "function" && e instanceof ShadowRoot) { Array.from(e.children).forEach(i => O(i, t)); return } let r = !1; if (t(e, () => r = !0), r) return; let n = e.firstElementChild; for (; n;)O(n, t, !1), n = n.nextElementSibling } function S(e, ...t) { console.warn(`Alpine Warning: ${e}`, ...t) } var qt = !1; function Ut() { qt && S("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."), qt = !0, document.body || S("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"), q(document, "alpine:init"), q(document, "alpine:initializing"), ce(), Qt(t => v(t, O)), Q(t => ae(t)), Se((t, r) => { le(t, r).forEach(n => n()) }); let e = t => !U(t.parentElement, !0); Array.from(document.querySelectorAll(Jt())).filter(e).forEach(t => { v(t) }), q(document, "alpine:initialized") } var it = [], Wt = []; function Gt() { return it.map(e => e()) } function Jt() { return it.concat(Wt).map(e => e()) } function Ee(e) { it.push(e) } function ve(e) { Wt.push(e) } function U(e, t = !1) { return Z(e, r => { if ((t ? Jt() : Gt()).some(i => r.matches(i))) return !0 }) } function Z(e, t) { if (e) { if (t(e)) return e; if (e._x_teleportBack && (e = e._x_teleportBack), !!e.parentElement) return Z(e.parentElement, t) } } function Yt(e) { return Gt().some(t => e.matches(t)) } var Xt = []; function Zt(e) { Xt.push(e) } function v(e, t = O, r = () => { }) { tr(() => { t(e, (n, i) => { r(n, i), Xt.forEach(o => o(n, i)), le(n, n.attributes).forEach(o => o()), n._x_ignore && i() }) }) } function ae(e) { O(e, t => { ot(t), er(t) }) } var rr = [], nr = [], ir = []; function Qt(e) { ir.push(e) } function Q(e, t) { typeof t == "function" ? (e._x_cleanups || (e._x_cleanups = []), e._x_cleanups.push(t)) : (t = e, nr.push(t)) } function Se(e) { rr.push(e) } function Oe(e, t, r) { e._x_attributeCleanups || (e._x_attributeCleanups = {}), e._x_attributeCleanups[t] || (e._x_attributeCleanups[t] = []), e._x_attributeCleanups[t].push(r) } function ot(e, t) { e._x_attributeCleanups && Object.entries(e._x_attributeCleanups).forEach(([r, n]) => { (t === void 0 || t.includes(r)) && (n.forEach(i => i()), delete e._x_attributeCleanups[r]) }) } function er(e) { if (e._x_cleanups) for (; e._x_cleanups.length;)e._x_cleanups.pop()() } var at = new MutationObserver(ft), ct = !1; function ce() { at.observe(document, { subtree: !0, childList: !0, attributes: !0, attributeOldValue: !0 }), ct = !0 } function lt() { vn(), at.disconnect(), ct = !1 } var ue = [], st = !1; function vn() { ue = ue.concat(at.takeRecords()), ue.length && !st && (st = !0, queueMicrotask(() => { Sn(), st = !1 })) } function Sn() { ft(ue), ue.length = 0 } function h(e) { if (!ct) return e(); lt(); let t = e(); return ce(), t } var ut = !1, Ae = []; function or() { ut = !0 } function sr() { ut = !1, ft(Ae), Ae = [] } function ft(e) { if (ut) { Ae = Ae.concat(e); return } let t = [], r = [], n = new Map, i = new Map; for (let o = 0; o < e.length; o++)if (!e[o].target._x_ignoreMutationObserver && (e[o].type === "childList" && (e[o].addedNodes.forEach(s => s.nodeType === 1 && t.push(s)), e[o].removedNodes.forEach(s => s.nodeType === 1 && r.push(s))), e[o].type === "attributes")) { let s = e[o].target, a = e[o].attributeName, c = e[o].oldValue, l = () => { n.has(s) || n.set(s, []), n.get(s).push({ name: a, value: s.getAttribute(a) }) }, u = () => { i.has(s) || i.set(s, []), i.get(s).push(a) }; s.hasAttribute(a) && c === null ? l() : s.hasAttribute(a) ? (u(), l()) : u() } i.forEach((o, s) => { ot(s, o) }), n.forEach((o, s) => { rr.forEach(a => a(s, o)) }); for (let o of r) t.includes(o) || (nr.forEach(s => s(o)), ae(o)); t.forEach(o => { o._x_ignoreSelf = !0, o._x_ignore = !0 }); for (let o of t) r.includes(o) || o.isConnected && (delete o._x_ignoreSelf, delete o._x_ignore, ir.forEach(s => s(o)), o._x_ignore = !0, o._x_ignoreSelf = !0); t.forEach(o => { delete o._x_ignoreSelf, delete o._x_ignore }), t = null, r = null, n = null, i = null } function Ce(e) { return F($(e)) } function N(e, t, r) { return e._x_dataStack = [t, ...$(r || e)], () => { e._x_dataStack = e._x_dataStack.filter(n => n !== t) } } function $(e) { return e._x_dataStack ? e._x_dataStack : typeof ShadowRoot == "function" && e instanceof ShadowRoot ? $(e.host) : e.parentNode ? $(e.parentNode) : [] } function F(e) { let t = new Proxy({}, { ownKeys: () => Array.from(new Set(e.flatMap(r => Object.keys(r)))), has: (r, n) => e.some(i => i.hasOwnProperty(n)), get: (r, n) => (e.find(i => { if (i.hasOwnProperty(n)) { let o = Object.getOwnPropertyDescriptor(i, n); if (o.get && o.get._x_alreadyBound || o.set && o.set._x_alreadyBound) return !0; if ((o.get || o.set) && o.enumerable) { let s = o.get, a = o.set, c = o; s = s && s.bind(t), a = a && a.bind(t), s && (s._x_alreadyBound = !0), a && (a._x_alreadyBound = !0), Object.defineProperty(i, n, { ...c, get: s, set: a }) } return !0 } return !1 }) || {})[n], set: (r, n, i) => { let o = e.find(s => s.hasOwnProperty(n)); return o ? o[n] = i : e[e.length - 1][n] = i, !0 } }); return t } function Te(e) { let t = n => typeof n == "object" && !Array.isArray(n) && n !== null, r = (n, i = "") => { Object.entries(Object.getOwnPropertyDescriptors(n)).forEach(([o, { value: s, enumerable: a }]) => { if (a === !1 || s === void 0) return; let c = i === "" ? o : `${i}.${o}`; typeof s == "object" && s !== null && s._x_interceptor ? n[o] = s.initialize(e, c, o) : t(s) && s !== n && !(s instanceof Element) && r(s, c) }) }; return r(e) } function Re(e, t = () => { }) { let r = { initialValue: void 0, _x_interceptor: !0, initialize(n, i, o) { return e(this.initialValue, () => An(n, i), s => dt(n, i, s), i, o) } }; return t(r), n => { if (typeof n == "object" && n !== null && n._x_interceptor) { let i = r.initialize.bind(r); r.initialize = (o, s, a) => { let c = n.initialize(o, s, a); return r.initialValue = c, i(o, s, a) } } else r.initialValue = n; return r } } function An(e, t) { return t.split(".").reduce((r, n) => r[n], e) } function dt(e, t, r) { if (typeof t == "string" && (t = t.split(".")), t.length === 1) e[t[0]] = r; else { if (t.length === 0) throw error; return e[t[0]] || (e[t[0]] = {}), dt(e[t[0]], t.slice(1), r) } } var ar = {}; function y(e, t) { ar[e] = t } function fe(e, t) { return Object.entries(ar).forEach(([r, n]) => { let i = null; function o() { if (i) return i; { let [s, a] = pt(t); return i = { interceptor: Re, ...s }, Q(t, a), i } } Object.defineProperty(e, `$${r}`, { get() { return n(t, o()) }, enumerable: !1 }) }), e } function cr(e, t, r, ...n) { try { return r(...n) } catch (i) { ee(i, e, t) } } function ee(e, t, r = void 0) { - Object.assign(e, { el: t, expression: r }), console.warn(`Alpine Expression Error: ${e.message} + var Ze = !1, + Qe = !1, + V = [], + et = -1; + function Kt(e) { + bn(e); + } + function bn(e) { + V.includes(e) || V.push(e), wn(); + } + function we(e) { + let t = V.indexOf(e); + t !== -1 && t > et && V.splice(t, 1); + } + function wn() { + !Qe && !Ze && ((Ze = !0), queueMicrotask(En)); + } + function En() { + (Ze = !1), (Qe = !0); + for (let e = 0; e < V.length; e++) V[e](), (et = e); + (V.length = 0), (et = -1), (Qe = !1); + } + var T, + D, + L, + rt, + tt = !0; + function zt(e) { + (tt = !1), e(), (tt = !0); + } + function Ht(e) { + (T = e.reactive), + (L = e.release), + (D = (t) => + e.effect(t, { + scheduler: (r) => { + tt ? Kt(r) : r(); + }, + })), + (rt = e.raw); + } + function nt(e) { + D = e; + } + function Vt(e) { + let t = () => {}; + return [ + (n) => { + let i = D(n); + return ( + e._x_effects || + ((e._x_effects = new Set()), + (e._x_runEffects = () => { + e._x_effects.forEach((o) => o()); + })), + e._x_effects.add(i), + (t = () => { + i !== void 0 && (e._x_effects.delete(i), L(i)); + }), + i + ); + }, + () => { + t(); + }, + ]; + } + function q(e, t, r = {}) { + e.dispatchEvent( + new CustomEvent(t, { + detail: r, + bubbles: !0, + composed: !0, + cancelable: !0, + }), + ); + } + function O(e, t) { + if (typeof ShadowRoot == "function" && e instanceof ShadowRoot) { + Array.from(e.children).forEach((i) => O(i, t)); + return; + } + let r = !1; + if ((t(e, () => (r = !0)), r)) return; + let n = e.firstElementChild; + for (; n; ) O(n, t, !1), (n = n.nextElementSibling); + } + function S(e, ...t) { + console.warn(`Alpine Warning: ${e}`, ...t); + } + var qt = !1; + function Ut() { + qt && + S( + "Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems.", + ), + (qt = !0), + document.body || + S( + "Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?", + ), + q(document, "alpine:init"), + q(document, "alpine:initializing"), + ce(), + Qt((t) => v(t, O)), + Q((t) => ae(t)), + Se((t, r) => { + le(t, r).forEach((n) => n()); + }); + let e = (t) => !U(t.parentElement, !0); + Array.from(document.querySelectorAll(Jt())) + .filter(e) + .forEach((t) => { + v(t); + }), + q(document, "alpine:initialized"); + } + var it = [], + Wt = []; + function Gt() { + return it.map((e) => e()); + } + function Jt() { + return it.concat(Wt).map((e) => e()); + } + function Ee(e) { + it.push(e); + } + function ve(e) { + Wt.push(e); + } + function U(e, t = !1) { + return Z(e, (r) => { + if ((t ? Jt() : Gt()).some((i) => r.matches(i))) return !0; + }); + } + function Z(e, t) { + if (e) { + if (t(e)) return e; + if ((e._x_teleportBack && (e = e._x_teleportBack), !!e.parentElement)) + return Z(e.parentElement, t); + } + } + function Yt(e) { + return Gt().some((t) => e.matches(t)); + } + var Xt = []; + function Zt(e) { + Xt.push(e); + } + function v(e, t = O, r = () => {}) { + tr(() => { + t(e, (n, i) => { + r(n, i), + Xt.forEach((o) => o(n, i)), + le(n, n.attributes).forEach((o) => o()), + n._x_ignore && i(); + }); + }); + } + function ae(e) { + O(e, (t) => { + ot(t), er(t); + }); + } + var rr = [], + nr = [], + ir = []; + function Qt(e) { + ir.push(e); + } + function Q(e, t) { + typeof t == "function" + ? (e._x_cleanups || (e._x_cleanups = []), e._x_cleanups.push(t)) + : ((t = e), nr.push(t)); + } + function Se(e) { + rr.push(e); + } + function Oe(e, t, r) { + e._x_attributeCleanups || (e._x_attributeCleanups = {}), + e._x_attributeCleanups[t] || (e._x_attributeCleanups[t] = []), + e._x_attributeCleanups[t].push(r); + } + function ot(e, t) { + e._x_attributeCleanups && + Object.entries(e._x_attributeCleanups).forEach(([r, n]) => { + (t === void 0 || t.includes(r)) && + (n.forEach((i) => i()), delete e._x_attributeCleanups[r]); + }); + } + function er(e) { + if (e._x_cleanups) for (; e._x_cleanups.length; ) e._x_cleanups.pop()(); + } + var at = new MutationObserver(ft), + ct = !1; + function ce() { + at.observe(document, { + subtree: !0, + childList: !0, + attributes: !0, + attributeOldValue: !0, + }), + (ct = !0); + } + function lt() { + vn(), at.disconnect(), (ct = !1); + } + var ue = [], + st = !1; + function vn() { + (ue = ue.concat(at.takeRecords())), + ue.length && + !st && + ((st = !0), + queueMicrotask(() => { + Sn(), (st = !1); + })); + } + function Sn() { + ft(ue), (ue.length = 0); + } + function h(e) { + if (!ct) return e(); + lt(); + let t = e(); + return ce(), t; + } + var ut = !1, + Ae = []; + function or() { + ut = !0; + } + function sr() { + (ut = !1), ft(Ae), (Ae = []); + } + function ft(e) { + if (ut) { + Ae = Ae.concat(e); + return; + } + let t = [], + r = [], + n = new Map(), + i = new Map(); + for (let o = 0; o < e.length; o++) + if ( + !e[o].target._x_ignoreMutationObserver && + (e[o].type === "childList" && + (e[o].addedNodes.forEach((s) => s.nodeType === 1 && t.push(s)), + e[o].removedNodes.forEach((s) => s.nodeType === 1 && r.push(s))), + e[o].type === "attributes") + ) { + let s = e[o].target, + a = e[o].attributeName, + c = e[o].oldValue, + l = () => { + n.has(s) || n.set(s, []), + n.get(s).push({ name: a, value: s.getAttribute(a) }); + }, + u = () => { + i.has(s) || i.set(s, []), i.get(s).push(a); + }; + s.hasAttribute(a) && c === null + ? l() + : s.hasAttribute(a) + ? (u(), l()) + : u(); + } + i.forEach((o, s) => { + ot(s, o); + }), + n.forEach((o, s) => { + rr.forEach((a) => a(s, o)); + }); + for (let o of r) t.includes(o) || (nr.forEach((s) => s(o)), ae(o)); + t.forEach((o) => { + (o._x_ignoreSelf = !0), (o._x_ignore = !0); + }); + for (let o of t) + r.includes(o) || + (o.isConnected && + (delete o._x_ignoreSelf, + delete o._x_ignore, + ir.forEach((s) => s(o)), + (o._x_ignore = !0), + (o._x_ignoreSelf = !0))); + t.forEach((o) => { + delete o._x_ignoreSelf, delete o._x_ignore; + }), + (t = null), + (r = null), + (n = null), + (i = null); + } + function Ce(e) { + return F($(e)); + } + function N(e, t, r) { + return ( + (e._x_dataStack = [t, ...$(r || e)]), + () => { + e._x_dataStack = e._x_dataStack.filter((n) => n !== t); + } + ); + } + function $(e) { + return e._x_dataStack + ? e._x_dataStack + : typeof ShadowRoot == "function" && e instanceof ShadowRoot + ? $(e.host) + : e.parentNode + ? $(e.parentNode) + : []; + } + function F(e) { + let t = new Proxy( + {}, + { + ownKeys: () => Array.from(new Set(e.flatMap((r) => Object.keys(r)))), + has: (r, n) => e.some((i) => i.hasOwnProperty(n)), + get: (r, n) => + (e.find((i) => { + if (i.hasOwnProperty(n)) { + let o = Object.getOwnPropertyDescriptor(i, n); + if ( + (o.get && o.get._x_alreadyBound) || + (o.set && o.set._x_alreadyBound) + ) + return !0; + if ((o.get || o.set) && o.enumerable) { + let s = o.get, + a = o.set, + c = o; + (s = s && s.bind(t)), + (a = a && a.bind(t)), + s && (s._x_alreadyBound = !0), + a && (a._x_alreadyBound = !0), + Object.defineProperty(i, n, { ...c, get: s, set: a }); + } + return !0; + } + return !1; + }) || {})[n], + set: (r, n, i) => { + let o = e.find((s) => s.hasOwnProperty(n)); + return o ? (o[n] = i) : (e[e.length - 1][n] = i), !0; + }, + }, + ); + return t; + } + function Te(e) { + let t = (n) => typeof n == "object" && !Array.isArray(n) && n !== null, + r = (n, i = "") => { + Object.entries(Object.getOwnPropertyDescriptors(n)).forEach( + ([o, { value: s, enumerable: a }]) => { + if (a === !1 || s === void 0) return; + let c = i === "" ? o : `${i}.${o}`; + typeof s == "object" && s !== null && s._x_interceptor + ? (n[o] = s.initialize(e, c, o)) + : t(s) && s !== n && !(s instanceof Element) && r(s, c); + }, + ); + }; + return r(e); + } + function Re(e, t = () => {}) { + let r = { + initialValue: void 0, + _x_interceptor: !0, + initialize(n, i, o) { + return e( + this.initialValue, + () => An(n, i), + (s) => dt(n, i, s), + i, + o, + ); + }, + }; + return ( + t(r), + (n) => { + if (typeof n == "object" && n !== null && n._x_interceptor) { + let i = r.initialize.bind(r); + r.initialize = (o, s, a) => { + let c = n.initialize(o, s, a); + return (r.initialValue = c), i(o, s, a); + }; + } else r.initialValue = n; + return r; + } + ); + } + function An(e, t) { + return t.split(".").reduce((r, n) => r[n], e); + } + function dt(e, t, r) { + if ((typeof t == "string" && (t = t.split(".")), t.length === 1)) + e[t[0]] = r; + else { + if (t.length === 0) throw error; + return e[t[0]] || (e[t[0]] = {}), dt(e[t[0]], t.slice(1), r); + } + } + var ar = {}; + function y(e, t) { + ar[e] = t; + } + function fe(e, t) { + return ( + Object.entries(ar).forEach(([r, n]) => { + let i = null; + function o() { + if (i) return i; + { + let [s, a] = pt(t); + return (i = { interceptor: Re, ...s }), Q(t, a), i; + } + } + Object.defineProperty(e, `$${r}`, { + get() { + return n(t, o()); + }, + enumerable: !1, + }); + }), + e + ); + } + function cr(e, t, r, ...n) { + try { + return r(...n); + } catch (i) { + ee(i, e, t); + } + } + function ee(e, t, r = void 0) { + Object.assign(e, { el: t, expression: r }), + console.warn( + `Alpine Expression Error: ${e.message} -${r ? 'Expression: "' + r + `" +${ + r + ? 'Expression: "' + + r + + `" -`: ""}`, t), setTimeout(() => { throw e }, 0) - } var Me = !0; function Pe(e) { let t = Me; Me = !1; let r = e(); return Me = t, r } function R(e, t, r = {}) { let n; return x(e, t)(i => n = i, r), n } function x(...e) { return lr(...e) } var lr = ht; function ur(e) { lr = e } function ht(e, t) { let r = {}; fe(r, e); let n = [r, ...$(e)], i = typeof t == "function" ? On(n, t) : Tn(n, t, e); return cr.bind(null, e, t, i) } function On(e, t) { return (r = () => { }, { scope: n = {}, params: i = [] } = {}) => { let o = t.apply(F([n, ...e]), i); Ne(r, o) } } var mt = {}; function Cn(e, t) { if (mt[e]) return mt[e]; let r = Object.getPrototypeOf(async function () { }).constructor, n = /^[\n\s]*if.*\(.*\)/.test(e.trim()) || /^(let|const)\s/.test(e.trim()) ? `(async()=>{ ${e} })()` : e, o = (() => { try { return new r(["__self", "scope"], `with (scope) { __self.result = ${n} }; __self.finished = true; return __self.result;`) } catch (s) { return ee(s, t, e), Promise.resolve() } })(); return mt[e] = o, o } function Tn(e, t, r) { let n = Cn(t, r); return (i = () => { }, { scope: o = {}, params: s = [] } = {}) => { n.result = void 0, n.finished = !1; let a = F([o, ...e]); if (typeof n == "function") { let c = n(n, a).catch(l => ee(l, r, t)); n.finished ? (Ne(i, n.result, a, s, r), n.result = void 0) : c.then(l => { Ne(i, l, a, s, r) }).catch(l => ee(l, r, t)).finally(() => n.result = void 0) } } } function Ne(e, t, r, n, i) { if (Me && typeof t == "function") { let o = t.apply(r, n); o instanceof Promise ? o.then(s => Ne(e, s, r, n)).catch(s => ee(s, i, t)) : e(o) } else typeof t == "object" && t instanceof Promise ? t.then(o => e(o)) : e(t) } var yt = "x-"; function C(e = "") { return yt + e } function fr(e) { yt = e } var _t = {}; function p(e, t) { return _t[e] = t, { before(r) { if (!_t[r]) { console.warn("Cannot find directive `${directive}`. `${name}` will use the default order of execution"); return } let n = W.indexOf(r); W.splice(n >= 0 ? n : W.indexOf("DEFAULT"), 0, e) } } } function le(e, t, r) { if (t = Array.from(t), e._x_virtualDirectives) { let o = Object.entries(e._x_virtualDirectives).map(([a, c]) => ({ name: a, value: c })), s = bt(o); o = o.map(a => s.find(c => c.name === a.name) ? { name: `x-bind:${a.name}`, value: `"${a.value}"` } : a), t = t.concat(o) } let n = {}; return t.map(pr((o, s) => n[o] = s)).filter(hr).map(Mn(n, r)).sort(Nn).map(o => Rn(e, o)) } function bt(e) { return Array.from(e).map(pr()).filter(t => !hr(t)) } var gt = !1, de = new Map, dr = Symbol(); function tr(e) { gt = !0; let t = Symbol(); dr = t, de.set(t, []); let r = () => { for (; de.get(t).length;)de.get(t).shift()(); de.delete(t) }, n = () => { gt = !1, r() }; e(r), n() } function pt(e) { let t = [], r = a => t.push(a), [n, i] = Vt(e); return t.push(i), [{ Alpine: j, effect: n, cleanup: r, evaluateLater: x.bind(x, e), evaluate: R.bind(R, e) }, () => t.forEach(a => a())] } function Rn(e, t) { let r = () => { }, n = _t[t.type] || r, [i, o] = pt(e); Oe(e, t.original, o); let s = () => { e._x_ignore || e._x_ignoreSelf || (n.inline && n.inline(e, t, i), n = n.bind(n, e, t, i), gt ? de.get(dr).push(n) : n()) }; return s.runCleanups = o, s } var De = (e, t) => ({ name: r, value: n }) => (r.startsWith(e) && (r = r.replace(e, t)), { name: r, value: n }), Ie = e => e; function pr(e = () => { }) { return ({ name: t, value: r }) => { let { name: n, value: i } = mr.reduce((o, s) => s(o), { name: t, value: r }); return n !== t && e(n, t), { name: n, value: i } } } var mr = []; function te(e) { mr.push(e) } function hr({ name: e }) { return _r().test(e) } var _r = () => new RegExp(`^${yt}([^:^.]+)\\b`); function Mn(e, t) { return ({ name: r, value: n }) => { let i = r.match(_r()), o = r.match(/:([a-zA-Z0-9\-:]+)/), s = r.match(/\.[^.\]]+(?=[^\]]*$)/g) || [], a = t || e[r] || r; return { type: i ? i[1] : null, value: o ? o[1] : null, modifiers: s.map(c => c.replace(".", "")), expression: n, original: a } } } var xt = "DEFAULT", W = ["ignore", "ref", "data", "id", "bind", "init", "for", "model", "modelable", "transition", "show", "if", xt, "teleport"]; function Nn(e, t) { let r = W.indexOf(e.type) === -1 ? xt : e.type, n = W.indexOf(t.type) === -1 ? xt : t.type; return W.indexOf(r) - W.indexOf(n) } var wt = [], Et = !1; function re(e = () => { }) { return queueMicrotask(() => { Et || setTimeout(() => { ke() }) }), new Promise(t => { wt.push(() => { e(), t() }) }) } function ke() { for (Et = !1; wt.length;)wt.shift()() } function gr() { Et = !0 } function pe(e, t) { return Array.isArray(t) ? xr(e, t.join(" ")) : typeof t == "object" && t !== null ? Pn(e, t) : typeof t == "function" ? pe(e, t()) : xr(e, t) } function xr(e, t) { let r = o => o.split(" ").filter(Boolean), n = o => o.split(" ").filter(s => !e.classList.contains(s)).filter(Boolean), i = o => (e.classList.add(...o), () => { e.classList.remove(...o) }); return t = t === !0 ? t = "" : t || "", i(n(t)) } function Pn(e, t) { let r = a => a.split(" ").filter(Boolean), n = Object.entries(t).flatMap(([a, c]) => c ? r(a) : !1).filter(Boolean), i = Object.entries(t).flatMap(([a, c]) => c ? !1 : r(a)).filter(Boolean), o = [], s = []; return i.forEach(a => { e.classList.contains(a) && (e.classList.remove(a), s.push(a)) }), n.forEach(a => { e.classList.contains(a) || (e.classList.add(a), o.push(a)) }), () => { s.forEach(a => e.classList.add(a)), o.forEach(a => e.classList.remove(a)) } } function G(e, t) { return typeof t == "object" && t !== null ? Dn(e, t) : In(e, t) } function Dn(e, t) { let r = {}; return Object.entries(t).forEach(([n, i]) => { r[n] = e.style[n], n.startsWith("--") || (n = kn(n)), e.style.setProperty(n, i) }), setTimeout(() => { e.style.length === 0 && e.removeAttribute("style") }), () => { G(e, r) } } function In(e, t) { let r = e.getAttribute("style", t); return e.setAttribute("style", t), () => { e.setAttribute("style", r || "") } } function kn(e) { return e.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase() } function me(e, t = () => { }) { let r = !1; return function () { r ? t.apply(this, arguments) : (r = !0, e.apply(this, arguments)) } } p("transition", (e, { value: t, modifiers: r, expression: n }, { evaluate: i }) => { typeof n == "function" && (n = i(n)), n !== !1 && (!n || typeof n == "boolean" ? $n(e, r, t) : Ln(e, n, t)) }); function Ln(e, t, r) { yr(e, pe, ""), { enter: i => { e._x_transition.enter.during = i }, "enter-start": i => { e._x_transition.enter.start = i }, "enter-end": i => { e._x_transition.enter.end = i }, leave: i => { e._x_transition.leave.during = i }, "leave-start": i => { e._x_transition.leave.start = i }, "leave-end": i => { e._x_transition.leave.end = i } }[r](t) } function $n(e, t, r) { yr(e, G); let n = !t.includes("in") && !t.includes("out") && !r, i = n || t.includes("in") || ["enter"].includes(r), o = n || t.includes("out") || ["leave"].includes(r); t.includes("in") && !n && (t = t.filter((g, b) => b < t.indexOf("out"))), t.includes("out") && !n && (t = t.filter((g, b) => b > t.indexOf("out"))); let s = !t.includes("opacity") && !t.includes("scale"), a = s || t.includes("opacity"), c = s || t.includes("scale"), l = a ? 0 : 1, u = c ? he(t, "scale", 95) / 100 : 1, d = he(t, "delay", 0) / 1e3, m = he(t, "origin", "center"), w = "opacity, transform", k = he(t, "duration", 150) / 1e3, be = he(t, "duration", 75) / 1e3, f = "cubic-bezier(0.4, 0.0, 0.2, 1)"; i && (e._x_transition.enter.during = { transformOrigin: m, transitionDelay: `${d}s`, transitionProperty: w, transitionDuration: `${k}s`, transitionTimingFunction: f }, e._x_transition.enter.start = { opacity: l, transform: `scale(${u})` }, e._x_transition.enter.end = { opacity: 1, transform: "scale(1)" }), o && (e._x_transition.leave.during = { transformOrigin: m, transitionDelay: `${d}s`, transitionProperty: w, transitionDuration: `${be}s`, transitionTimingFunction: f }, e._x_transition.leave.start = { opacity: 1, transform: "scale(1)" }, e._x_transition.leave.end = { opacity: l, transform: `scale(${u})` }) } function yr(e, t, r = {}) { e._x_transition || (e._x_transition = { enter: { during: r, start: r, end: r }, leave: { during: r, start: r, end: r }, in(n = () => { }, i = () => { }) { Le(e, t, { during: this.enter.during, start: this.enter.start, end: this.enter.end }, n, i) }, out(n = () => { }, i = () => { }) { Le(e, t, { during: this.leave.during, start: this.leave.start, end: this.leave.end }, n, i) } }) } window.Element.prototype._x_toggleAndCascadeWithTransitions = function (e, t, r, n) { let i = document.visibilityState === "visible" ? requestAnimationFrame : setTimeout, o = () => i(r); if (t) { e._x_transition && (e._x_transition.enter || e._x_transition.leave) ? e._x_transition.enter && (Object.entries(e._x_transition.enter.during).length || Object.entries(e._x_transition.enter.start).length || Ob |
