app/assets/build/coco/book.js in coveragebook_components-0.8.3 vs app/assets/build/coco/book.js in coveragebook_components-0.8.4
- old
+ new
@@ -5648,21 +5648,21 @@
}
function i(e2, t2) {
switch (e2.type) {
case 4:
return function(e3, t3) {
- const o2 = n(e3.left, t3), s2 = n(e3.right, t3), l3 = e3.operator;
+ const o2 = n(e3.left, t3), s2 = n(e3.right, t3), l2 = e3.operator;
if (4 === o2.type && 4 === s2.type || 5 === o2.type && 5 === s2.type)
return function(e4, t4, n2) {
return 1 === n2 ? r(e4.value === t4.value) : { type: 1 };
- }(o2, s2, l3);
+ }(o2, s2, l2);
if (3 === o2.type || 3 === s2.type) {
const e4 = c(o2, t3), n2 = c(s2, t3);
if (null != e4 && null != n2)
- return u(e4, n2, l3);
+ return u(e4, n2, l2);
} else if (2 === o2.type && 2 === s2.type)
- return u(o2.value, s2.value, l3);
+ return u(o2.value, s2.value, l2);
return { type: 1 };
}(e2, t2);
case 2:
return function(e3, t3) {
const n2 = i(e3.left, t3);
@@ -5726,11 +5726,11 @@
let n2 = false;
for (const r3 of e2) {
const e3 = r3.codePointAt(0);
n2 && 10 !== e3 && (n2 = false, t2.push(10)), 0 === e3 || e3 >= 55296 && e3 <= 57343 ? t2.push(65533) : 13 === e3 ? n2 = true : t2.push(e3);
}
- const r2 = q(t2, -1), { at: u2, consume: o2, error: s2, reconsume: l3 } = r2;
+ const r2 = q(t2, -1), { at: u2, consume: o2, error: s2, reconsume: l2 } = r2;
function c2() {
return String.fromCodePoint(r2.value);
}
function i2() {
return { type: 13, value: c2() };
@@ -5806,11 +5806,11 @@
for (; ; ) {
const n3 = o2(1);
if (-1 === n3 || n3 === e3)
return -1 === n3 && s2(), { type: 2, value: t3 };
if (E(n3))
- return s2(), l3(), { type: 3 };
+ return s2(), l2(), { type: 3 };
if (92 === n3) {
const e4 = u2(1);
if (-1 === e4)
continue;
E(e4) ? o2(1) : t3 += v2();
@@ -5846,11 +5846,11 @@
const t3 = o2(1);
if (M(t3))
e3 += c2();
else {
if (!j(t3, u2(1)))
- return l3(), e3;
+ return l2(), e3;
e3 += v2();
}
}
}
function g2() {
@@ -5877,18 +5877,18 @@
else if (40 === e3)
yield { type: 4 };
else if (41 === e3)
yield { type: 5 };
else if (43 === e3)
- m2(e3, u2(1), u2(2)) ? (l3(), yield p2()) : yield i2();
+ m2(e3, u2(1), u2(2)) ? (l2(), yield p2()) : yield i2();
else if (44 === e3)
yield { type: 6 };
else if (45 === e3) {
const t3 = u2(1), n3 = u2(2);
- m2(e3, t3, n3) ? (l3(), yield p2()) : 45 === t3 && 62 === n3 ? (o2(2), yield { type: 19 }) : d2(e3, t3, n3) ? (l3(), yield y2()) : yield i2();
+ m2(e3, t3, n3) ? (l2(), yield p2()) : 45 === t3 && 62 === n3 ? (o2(2), yield { type: 19 }) : d2(e3, t3, n3) ? (l2(), yield y2()) : yield i2();
} else if (46 === e3)
- m2(e3, u2(1), u2(2)) ? (l3(), yield p2()) : yield i2();
+ m2(e3, u2(1), u2(2)) ? (l2(), yield p2()) : yield i2();
else if (58 === e3)
yield { type: 7 };
else if (59 === e3)
yield { type: 8 };
else if (60 === e3)
@@ -5900,21 +5900,21 @@
} else
yield i2();
else if (91 === e3)
yield { type: 9 };
else if (92 === e3)
- j(e3, u2(1)) ? (l3(), yield y2()) : (s2(), yield i2());
+ j(e3, u2(1)) ? (l2(), yield y2()) : (s2(), yield i2());
else if (93 === e3)
yield { type: 10 };
else if (123 === e3)
yield { type: 11 };
else if (125 === e3)
yield { type: 12 };
else if (k(e3))
- l3(), yield p2();
+ l2(), yield p2();
else if (L(e3))
- l3(), yield y2();
+ l2(), yield y2();
else {
if (-1 === e3)
return yield { type: 0 }, r2.errorIndices;
yield { type: 13, value: c2() };
}
@@ -6445,12 +6445,12 @@
return r4 !== x ? { type: 2, feature: r4, bounds: [[u2, n4], null] } : x;
}
const s2 = J(e4);
if (s2 === x || !(X(u2) && X(s2) || K(u2) && K(s2)))
return x;
- const l3 = Y(e4, false), c2 = Z(o2, t4);
- return c2 !== x ? { type: 2, feature: c2, bounds: [[u2, n4], [s2, l3]] } : x;
+ const l2 = Y(e4, false), c2 = Z(o2, t4);
+ return c2 !== x ? { type: 2, feature: c2, bounds: [[u2, n4], [s2, l2]] } : x;
}(e3, ie);
if (n3 === x)
return x;
const r2 = ce[n3.feature];
if (null == r2)
@@ -6623,18 +6623,18 @@
case "container":
return function(t3, n3) {
if (t3.value) {
const r2 = $e(t3.prelude);
if (r2 !== x) {
- const u2 = { rule: r2, selector: null, parent: n3.parent, uid: "c" + Ae++ }, o2 = /* @__PURE__ */ new Set(), s2 = [], l3 = Oe(P(t3.value.value.value), { descriptors: n3.descriptors, parent: u2, transformStyleRule: (t4) => {
+ const u2 = { rule: r2, selector: null, parent: n3.parent, uid: "c" + Ae++ }, o2 = /* @__PURE__ */ new Set(), s2 = [], l2 = Oe(P(t3.value.value.value), { descriptors: n3.descriptors, parent: u2, transformStyleRule: (t4) => {
const [n4, r3] = function(e2, t5, n5) {
const r4 = C(e2), u3 = [], o3 = [];
for (; ; ) {
if (0 === r4.at(1).type)
return [u3, o3];
const n6 = Math.max(0, r4.index);
- for (; l5 = r4.at(1), c2 = r4.at(2), !(Fe(l5) || 7 === l5.type && (7 === c2.type || 24 === c2.type && Me.has(c2.value.toLowerCase()))); )
+ for (; l4 = r4.at(1), c2 = r4.at(2), !(Fe(l4) || 7 === l4.type && (7 === c2.type || 24 === c2.type && Me.has(c2.value.toLowerCase()))); )
r4.consume(1);
const i2 = r4.index + 1, a2 = e2.slice(n6, i2), f2 = a2.length > 0 ? Ue(a2) : [ee("*")];
for (; !Fe(r4.at(1)); )
r4.consume(1);
const p2 = e2.slice(i2, Math.max(0, r4.index + 1));
@@ -6645,17 +6645,17 @@
const e3 = f2.map(B).join("");
e3.endsWith(Le) ? y2 = N(Array.from($(e3.substring(0, e3.length - Le.length)))) : s2.push({ actual: e3, expected: e3 + Le });
}
u3.push(...f2), o3.push(...y2), o3.push(...h2), o3.push(...p2), r4.consume(1);
}
- var l5, c2;
+ var l4, c2;
}(t4.prelude, u2.uid);
if (s2.length > 0)
return t4;
- const l4 = n4.map(B).join("");
+ const l3 = n4.map(B).join("");
try {
- je.matches(l4), o2.add(l4);
+ je.matches(l3), o2.add(l3);
} catch (e2) {
}
return e({}, t4, { prelude: r3 });
} }).value;
if (s2.length > 0) {
@@ -6668,11 +6668,11 @@
e2.has(u3) || (t4.push(`${u3}${r3.substring(0, n4 - u3.length)} => ${o3}`), e2.add(u3));
console.warn(`The :where() pseudo-class is not supported by this browser. To use the Container Query Polyfill, you must modify the selectors under your @container rules:
${t4.join("\n")}`);
}
- return o2.size > 0 && (u2.selector = Array.from(o2).join(", ")), n3.descriptors.push(u2), { type: 25, name: "media", prelude: [ne("all")], value: e({}, t3.value, { value: { type: 3, value: l3 } }) };
+ return o2.size > 0 && (u2.selector = Array.from(o2).join(", ")), n3.descriptors.push(u2), { type: 25, name: "media", prelude: [ne("all")], value: e({}, t3.value, { value: { type: 3, value: l2 } }) };
}
}
return t3;
}(t2, n2);
}
@@ -6737,12 +6737,12 @@
var e2 = this;
const t2 = this.node;
if ("stylesheet" === t2.rel) {
const n2 = new URL(t2.href, document.baseURI);
n2.origin === location.origin && (this.controller = rt(async function(r2) {
- const u2 = await fetch(n2.toString(), { signal: r2 }), o2 = await u2.text(), s2 = e2.styleSheet = await e2.context.registerStyleSheet({ source: o2, url: n2, signal: r2 }), l3 = new Blob([s2.source], { type: "text/css" }), c2 = new Image();
- c2.onload = c2.onerror = s2.refresh, c2.src = t2.href = URL.createObjectURL(l3);
+ const u2 = await fetch(n2.toString(), { signal: r2 }), o2 = await u2.text(), s2 = e2.styleSheet = await e2.context.registerStyleSheet({ source: o2, url: n2, signal: r2 }), l2 = new Blob([s2.source], { type: "text/css" }), c2 = new Image();
+ c2.onload = c2.onerror = s2.refresh, c2.src = t2.href = URL.createObjectURL(l2);
}));
}
}
disconnected() {
var e2, t2;
@@ -6854,11 +6854,11 @@
null == t3 || t3.disconnect();
}
t2.target.nodeType !== Node.DOCUMENT_NODE && t2.target.nodeType !== Node.DOCUMENT_FRAGMENT_NODE && null === t2.target.parentNode || "attributes" === t2.type && t2.attributeName && (t2.attributeName === v || t2.attributeName === d || t2.target instanceof Element && t2.target.getAttribute(t2.attributeName) === t2.oldValue) || (A2(t2.target).mutate(), S2());
}
}).observe(u2, { childList: true, subtree: true, attributes: true, attributeOldValue: true });
- const l3 = new ResizeObserver((e2) => {
+ const l2 = new ResizeObserver((e2) => {
for (const t2 of e2)
A2(t2.target).resize();
A2(u2).update(C2());
}), c2 = new Xe(u2);
async function a2(e2, { source: t2, url: n3, signal: r3 }) {
@@ -6880,22 +6880,22 @@
} catch (t4) {
return console.warn("An error occurred while transpiling stylesheet: " + t4), { source: e3, descriptors: [] };
}
}(t2, n3 ? n3.toString() : void 0);
let s3 = () => {
- }, l4 = () => {
+ }, l3 = () => {
};
const c3 = A2(u2);
let i2 = false;
- return null != r3 && r3.aborted || (l4 = () => {
+ return null != r3 && r3.aborted || (l3 = () => {
if (!i2) {
const { sheet: t3 } = e2;
null != t3 && (pt(t3, o3.descriptors), i2 = true, s3 = () => {
pt(t3), c3.mutate(), S2();
}, c3.mutate(), S2());
}
- }), { source: o3.source, dispose: s3, refresh: l4 };
+ }), { source: o3.source, dispose: s3, refresh: l3 };
}
const p2 = { cqw: null, cqh: null };
function y2({ width: e2, height: t2 }) {
p2.cqw = e2, p2.cqh = t2;
}
@@ -6908,11 +6908,11 @@
}
r3.length > 0 ? e2.setAttribute(n3, r3) : e2.removeAttribute(n3);
}
}
function S2() {
- l3.unobserve(u2), l3.observe(u2);
+ l2.unobserve(u2), l2.observe(u2);
}
const x2 = () => {
const e2 = [];
for (const t2 of document.styleSheets)
for (const n3 of ft(t2))
@@ -6934,18 +6934,18 @@
return function(n5) {
let u3 = null;
return (...n6) => {
if (null == u3 || !De(u3[0], n6)) {
const o3 = ((n7, u4) => {
- const { context: o4, conditions: s3 } = n7, l4 = (e2) => r4.getPropertyValue(e2), c3 = it(l4), a3 = e({}, o4, { writingAxis: c3.writingAxis });
+ const { context: o4, conditions: s3 } = n7, l3 = (e2) => r4.getPropertyValue(e2), c3 = it(l3), a3 = e({}, o4, { writingAxis: c3.writingAxis });
let f3 = s3, p4 = false, y3 = c3.displayFlags;
0 == (1 & n7.displayFlags) && (y3 = 0);
const { containerType: h3, containerNames: v2 } = c3;
if (h3 > 0) {
const e2 = h3 > 0 && 2 == (2 & y3), n8 = new Map(s3.map((e3) => [e3[0].value, e3[1]]));
if (f3 = [], p4 = true, e2) {
- const e3 = ct(l4);
+ const e3 = ct(l3);
a3.fontSize = e3.fontSize;
const r5 = function(e4, t2) {
const n9 = { value: t2.width }, r6 = { value: t2.height };
let u6 = n9, o5 = r6;
if (1 === e4.writingAxis) {
@@ -6963,12 +6963,12 @@
r7.set(n10, e6);
}
const o6 = i(e5.condition, { sizeFeatures: r7, treeContext: n9.treeContext });
return 5 === o6.type ? o6.value : null;
}(r6, u5) : null;
- var l5;
- return null == s4 ? 1 === ((null != (l5 = n8.get(e4)) ? l5 : 0) && 1) : true === s4;
+ var l4;
+ return null == s4 ? 1 === ((null != (l4 = n8.get(e4)) ? l4 : 0) && 1) : true === s4;
}, y4 = (e4, t2) => {
let n9 = e4.get(t2);
if (null == n9) {
const r6 = p5(t2);
n9 = (r6 ? 1 : 0) | (true !== r6 || null != t2.parent && 1 != (1 & y4(e4, t2.parent)) ? 0 : 2), e4.set(t2, n9);
@@ -7000,27 +7000,27 @@
f2 = { connect() {
for (let e2 = n3.firstChild; null != e2; e2 = e2.nextSibling)
A2(e2);
p3.connected();
}, disconnect() {
- n3 instanceof Element && (l3.unobserve(n3), n3.removeAttribute(v), n3.removeAttribute(d)), z2 && (z2.removeProperty(g), z2.removeProperty(b), z2.removeProperty(m), z2.removeProperty(w));
+ n3 instanceof Element && (l2.unobserve(n3), n3.removeAttribute(v), n3.removeAttribute(d)), z2 && (z2.removeProperty(g), z2.removeProperty(b), z2.removeProperty(m), z2.removeProperty(w));
for (let e2 = n3.firstChild; null != e2; e2 = e2.nextSibling) {
const t2 = r2(e2);
null == t2 || t2.disconnect();
}
p3.disconnected(), delete n3[We];
}, update(e2) {
const [t2, r3] = E2(e2);
if (r3) {
if (h2(n3, e2, d), h2(n3, t2, v), n3 instanceof Element) {
const e3 = x3 || t2.isQueryContainer;
- e3 && !L2 ? (l3.observe(n3), L2 = true) : !e3 && L2 && (l3.unobserve(n3), L2 = false);
+ e3 && !L2 ? (l2.observe(n3), L2 = true) : !e3 && L2 && (l2.unobserve(n3), L2 = false);
}
if (z2) {
const n4 = t2.context, r4 = n4.writingAxis;
- let u3 = null, o3 = null, s3 = null, l4 = null;
- (r4 !== e2.context.writingAxis || t2.isQueryContainer) && (u3 = `var(${0 === r4 ? m : w})`, o3 = `var(${1 === r4 ? m : w})`), e2 && !t2.isQueryContainer || (n4.cqw && (s3 = n4.cqw + "px"), n4.cqh && (l4 = n4.cqh + "px")), at(z2, g, u3), at(z2, b, o3), at(z2, m, s3), at(z2, w, l4);
+ let u3 = null, o3 = null, s3 = null, l3 = null;
+ (r4 !== e2.context.writingAxis || t2.isQueryContainer) && (u3 = `var(${0 === r4 ? m : w})`, o3 = `var(${1 === r4 ? m : w})`), e2 && !t2.isQueryContainer || (n4.cqw && (s3 = n4.cqw + "px"), n4.cqh && (l3 = n4.cqh + "px")), at(z2, g, u3), at(z2, b, o3), at(z2, m, s3), at(z2, w, l3);
}
p3.updated();
}
for (let e3 = n3.firstChild; null != e3; e3 = e3.nextSibling)
A2(e3).update(t2);
@@ -8763,11 +8763,11 @@
var arrayInstrumentations = {};
["includes", "indexOf", "lastIndexOf"].forEach((key) => {
const method = Array.prototype[key];
arrayInstrumentations[key] = function(...args) {
const arr = toRaw(this);
- for (let i2 = 0, l3 = this.length; i2 < l3; i2++) {
+ for (let i2 = 0, l2 = this.length; i2 < l2; i2++) {
track(arr, "get", i2 + "");
}
const res = method.apply(arr, args);
if (res === -1 || res === false) {
return method.apply(arr, args.map(toRaw));
@@ -10441,11 +10441,11 @@
function src_default4(Alpine3) {
Alpine3.directive("intersect", (el, { value, expression, modifiers }, { evaluateLater: evaluateLater2, cleanup: cleanup2 }) => {
let evaluate2 = evaluateLater2(expression);
let options = {
rootMargin: getRootMargin(modifiers),
- threshold: getThreshold(modifiers)
+ threshold: getThreshhold(modifiers)
};
let observer2 = new IntersectionObserver((entries) => {
entries.forEach((entry) => {
if (entry.isIntersecting === (value === "leave"))
return;
@@ -10457,11 +10457,11 @@
cleanup2(() => {
observer2.disconnect();
});
});
}
- function getThreshold(modifiers) {
+ function getThreshhold(modifiers) {
if (modifiers.includes("full"))
return 0.99;
if (modifiers.includes("half"))
return 0.5;
if (!modifiers.includes("threshold"))
@@ -10619,13 +10619,11 @@
function formatMoney(input, delimiter = ".", thousands, precision = 2) {
if (input === "-")
return "-";
if (/^\D+$/.test(input))
return "9";
- if (thousands === null || thousands === void 0) {
- thousands = delimiter === "," ? "." : ",";
- }
+ thousands = thousands != null ? thousands : delimiter === "," ? "." : ",";
let addThousands = (input2, thousands2) => {
let output = "";
let counter = 0;
for (let i2 = input2.length - 1; i2 >= 0; i2--) {
if (input2[i2] === thousands2)
@@ -10655,11 +10653,11 @@
});
return template;
}
var module_default5 = src_default5;
- // ../../../node_modules/@alpinejs/focus/dist/module.esm.js
+ // ../../../node_modules/tabbable/dist/index.esm.js
var candidateSelectors = ["input", "select", "textarea", "a[href]", "button", "[tabindex]:not(slot)", "audio[controls]", "video[controls]", '[contenteditable]:not([contenteditable="false"])', "details>summary:first-of-type", "details"];
var candidateSelector = /* @__PURE__ */ candidateSelectors.join(",");
var NoElement = typeof Element === "undefined";
var matches = NoElement ? function() {
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
@@ -10929,10 +10927,12 @@
if (matches.call(node, focusableCandidateSelector) === false) {
return false;
}
return isNodeMatchingSelectorFocusable(options, node);
};
+
+ // ../../../node_modules/focus-trap/dist/focus-trap.esm.js
function ownKeys2(object, enumerableOnly) {
var keys = Object.keys(object);
if (Object.getOwnPropertySymbols) {
var symbols = Object.getOwnPropertySymbols(object);
enumerableOnly && (symbols = symbols.filter(function(sym) {
@@ -11450,10 +11450,12 @@
}
};
trap.updateContainerElements(elements);
return trap;
};
+
+ // ../../../node_modules/@alpinejs/focus/dist/module.esm.js
function src_default6(Alpine3) {
let lastFocused;
let currentFocused;
window.addEventListener("focusin", () => {
lastFocused = currentFocused;
@@ -11653,26 +11655,10 @@
document.documentElement.style.paddingRight = paddingRight;
};
}
var module_default6 = src_default6;
- // ../../../node_modules/alpinejs-tash/dist/tash.esm.js
- function l2(s2) {
- s2.directive("tash", (r2, { modifiers: c2, expression: a2 }, { evaluate: u2, effect: m2 }) => {
- let p2 = (e2) => new RegExp(`${d2}${e2}${f2}`, "g"), i2 = c2.includes("vue"), o2 = c2.includes("angular"), d2 = i2 ? "{{ " : o2 ? "{{" : "{", f2 = i2 ? " }}" : o2 ? "}}" : "}", g2 = a2.split(",").map((e2) => e2.trim()), t2 = document.createElement("template");
- t2.innerHTML = r2.innerHTML;
- let n2 = `${t2.innerHTML}`;
- m2(() => {
- g2.forEach((e2) => {
- let H2 = u2(e2), h2 = p2(e2);
- n2 = n2.replace(h2, H2);
- }), r2.innerHTML = n2, n2 = t2.innerHTML;
- });
- });
- }
- var M2 = l2;
-
// helpers/alpine.js
function registerComponents(components) {
document.addEventListener("alpine:init", () => {
components.forEach((module) => {
if (module.default && module.default.component === true) {
@@ -15089,11 +15075,10 @@
}).before("init");
}
// libs/alpine/index.js
window.Alpine = module_default;
- module_default.plugin(M2);
module_default.plugin(module_default5);
module_default.plugin(module_default6);
module_default.plugin(module_default2);
module_default.plugin(module_default3);
module_default.plugin(module_default4);
@@ -15392,11 +15377,11 @@
default: () => modal_default
});
// helpers/location.js
function navigateTo(url, options = {}) {
- if (window.Turbo && options.turbo !== false) {
+ if (window.Turbo && options.turbo === true) {
delete options.turbo;
turboOptions = Object.assign({ action: "advance" }, options);
window.Turbo.visit(url, turboOptions);
} else {
location.assign(url);
@@ -15584,21 +15569,17 @@
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*)
-@alpinejs/focus/dist/module.esm.js:
- (*! Bundled license information:
-
- tabbable/dist/index.esm.js:
- (*!
- * tabbable 5.3.3
- * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
- *)
-
- focus-trap/dist/focus-trap.esm.js:
- (*!
- * focus-trap 6.9.4
- * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
- *)
+tabbable/dist/index.esm.js:
+ (*!
+ * tabbable 5.3.3
+ * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
+ *)
+
+focus-trap/dist/focus-trap.esm.js:
+ (*!
+ * focus-trap 6.9.4
+ * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
*)
*/