2022-03-18 17:35:45 -05:00
|
|
|
/** @license Copyright 2020 Google LLC (BSD-3-Clause) */
|
|
|
|
/** Bundled JS generated from "@astrojs/lit/client-shim.js" */
|
|
|
|
var N = Object.defineProperty;
|
|
|
|
var i = (t, n) => () => (t && (n = t((t = 0))), n);
|
|
|
|
var b = (t, n) => {
|
|
|
|
for (var a in n) N(t, a, { get: n[a], enumerable: !0 });
|
|
|
|
};
|
|
|
|
function s() {
|
|
|
|
if (d === void 0) {
|
|
|
|
let t = document.createElement('div');
|
2023-02-01 08:44:56 -05:00
|
|
|
(t.innerHTML = '<div><template shadowroot="open" shadowrootmode="open"></template></div>'),
|
2022-04-02 15:15:41 -05:00
|
|
|
(d = !!t.firstElementChild.shadowRoot);
|
2022-03-18 17:35:45 -05:00
|
|
|
}
|
|
|
|
return d;
|
|
|
|
}
|
|
|
|
var d,
|
|
|
|
m = i(() => {});
|
|
|
|
var p,
|
|
|
|
c,
|
|
|
|
f,
|
|
|
|
u = i(() => {
|
2022-04-02 15:15:41 -05:00
|
|
|
(p = (t) => t.parentElement === null),
|
|
|
|
(c = (t) => t.tagName === 'TEMPLATE'),
|
|
|
|
(f = (t) => t.nodeType === Node.ELEMENT_NODE);
|
2022-03-18 17:35:45 -05:00
|
|
|
});
|
|
|
|
var h,
|
|
|
|
E = i(() => {
|
|
|
|
m();
|
|
|
|
u();
|
|
|
|
h = (t) => {
|
|
|
|
var n;
|
|
|
|
if (s()) return;
|
|
|
|
let a = [],
|
|
|
|
e = t.firstElementChild;
|
|
|
|
for (; e !== t && e !== null; )
|
|
|
|
if (c(e)) a.push(e), (e = e.content);
|
|
|
|
else if (e.firstElementChild !== null) e = e.firstElementChild;
|
|
|
|
else if (f(e) && e.nextElementSibling !== null) e = e.nextElementSibling;
|
|
|
|
else {
|
|
|
|
let o;
|
|
|
|
for (; e !== t && e !== null; )
|
|
|
|
if (p(e)) {
|
|
|
|
o = a.pop();
|
|
|
|
let r = o.parentElement,
|
|
|
|
l = o.getAttribute('shadowroot');
|
|
|
|
if (((e = o), l === 'open' || l === 'closed')) {
|
|
|
|
let y = o.hasAttribute('shadowrootdelegatesfocus');
|
|
|
|
try {
|
|
|
|
r.attachShadow({ mode: l, delegatesFocus: y }).append(o.content);
|
|
|
|
} catch {}
|
|
|
|
} else o = void 0;
|
|
|
|
} else {
|
|
|
|
let r = e.nextElementSibling;
|
|
|
|
if (r != null) {
|
|
|
|
(e = r), o !== void 0 && o.parentElement.removeChild(o);
|
|
|
|
break;
|
|
|
|
}
|
2022-04-02 15:15:41 -05:00
|
|
|
let l =
|
|
|
|
(n = e.parentElement) === null || n === void 0 ? void 0 : n.nextElementSibling;
|
2022-03-18 17:35:45 -05:00
|
|
|
if (l != null) {
|
|
|
|
(e = l), o !== void 0 && o.parentElement.removeChild(o);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
(e = e.parentElement), o !== void 0 && (o.parentElement.removeChild(o), (o = void 0));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
});
|
|
|
|
var w = i(() => {
|
|
|
|
E();
|
|
|
|
});
|
|
|
|
var v = {};
|
|
|
|
b(v, { hasNativeDeclarativeShadowRoots: () => s, hydrateShadowRoots: () => h });
|
|
|
|
var S = i(() => {
|
|
|
|
m();
|
|
|
|
w();
|
|
|
|
});
|
|
|
|
async function g() {
|
|
|
|
let { hydrateShadowRoots: t } = await Promise.resolve().then(() => (S(), v));
|
2022-05-31 10:41:24 -05:00
|
|
|
window.addEventListener('DOMContentLoaded', () => t(document.body), { once: true });
|
2022-03-18 17:35:45 -05:00
|
|
|
}
|
2022-04-02 15:15:41 -05:00
|
|
|
var x = new DOMParser()
|
2023-02-01 08:46:50 -05:00
|
|
|
.parseFromString(
|
|
|
|
'<p><template shadowroot="open" shadowrootmode="open"></template></p>',
|
|
|
|
'text/html',
|
|
|
|
{
|
|
|
|
includeShadowRoots: !0,
|
|
|
|
}
|
|
|
|
)
|
2022-04-02 15:15:41 -05:00
|
|
|
.querySelector('p');
|
2022-03-18 17:35:45 -05:00
|
|
|
(!x || !x.shadowRoot) && g();
|