UNPKG

storybook

Version:

Storybook: Develop, document, and test UI components in isolation

1,627 lines (1,584 loc) • 425 kB
var wp = Object.create; var Tn = Object.defineProperty; var bp = Object.getOwnPropertyDescriptor; var yp = Object.getOwnPropertyNames; var Rp = Object.getPrototypeOf, xp = Object.prototype.hasOwnProperty; var o = (e, t) => Tn(e, "name", { value: t, configurable: !0 }), Xr = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (t, r) => (typeof require < "u" ? require : t)[r] }) : e)(function(e) { if (typeof require < "u") return require.apply(this, arguments); throw Error('Dynamic require of "' + e + '" is not supported'); }); var C = (e, t) => () => (e && (t = e(e = 0)), t); var H = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), Zr = (e, t) => { for (var r in t) Tn(e, r, { get: t[r], enumerable: !0 }); }, Ep = (e, t, r, n) => { if (t && typeof t == "object" || typeof t == "function") for (let a of yp(t)) !xp.call(e, a) && a !== r && Tn(e, a, { get: () => t[a], enumerable: !(n = bp(t, a)) || n.enumerable }); return e; }; var me = (e, t, r) => (r = e != null ? wp(Rp(e)) : {}, Ep( // If the importer is in node compatibility mode or this is not an ESM // file that has been converted to a CommonJS file using a Babel- // compatible transform (i.e. "__esModule" has not been set), then set // "default" to the CommonJS "module.exports" for node compatibility. t || !e || !e.__esModule ? Tn(r, "default", { value: e, enumerable: !0 }) : r, e )); // ../node_modules/@babel/runtime/helpers/esm/extends.js function W() { return W = Object.assign ? Object.assign.bind() : function(e) { for (var t = 1; t < arguments.length; t++) { var r = arguments[t]; for (var n in r) ({}).hasOwnProperty.call(r, n) && (e[n] = r[n]); } return e; }, W.apply(null, arguments); } var Kr = C(() => { o(W, "_extends"); }); // ../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js function Tl(e) { if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } var Hl = C(() => { o(Tl, "_assertThisInitialized"); }); // ../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js function ht(e, t) { return ht = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, n) { return r.__proto__ = n, r; }, ht(e, t); } var Hn = C(() => { o(ht, "_setPrototypeOf"); }); // ../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js function Pn(e) { return Pn = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) { return t.__proto__ || Object.getPrototypeOf(t); }, Pn(e); } var kl = C(() => { o(Pn, "_getPrototypeOf"); }); // ../node_modules/memoizerific/memoizerific.js var Qr = H((Ul, ia) => { (function(e) { if (typeof Ul == "object" && typeof ia < "u") ia.exports = e(); else if (typeof define == "function" && define.amd) define([], e); else { var t; typeof window < "u" ? t = window : typeof global < "u" ? t = global : typeof self < "u" ? t = self : t = this, t.memoizerific = e(); } })(function() { var e, t, r; return (/* @__PURE__ */ o(function n(a, i, c) { function l(f, d) { if (!i[f]) { if (!a[f]) { var m = typeof Xr == "function" && Xr; if (!d && m) return m(f, !0); if (s) return s(f, !0); var v = new Error("Cannot find module '" + f + "'"); throw v.code = "MODULE_NOT_FOUND", v; } var y = i[f] = { exports: {} }; a[f][0].call(y.exports, function(p) { var h = a[f][1][p]; return l(h || p); }, y, y.exports, n, a, i, c); } return i[f].exports; } o(l, "s"); for (var s = typeof Xr == "function" && Xr, u = 0; u < c.length; u++) l(c[u]); return l; }, "e"))({ 1: [function(n, a, i) { a.exports = function(c) { if (typeof Map != "function" || c) { var l = n("./similar"); return new l(); } else return /* @__PURE__ */ new Map(); }; }, { "./similar": 2 }], 2: [function(n, a, i) { function c() { return this.list = [], this.lastItem = void 0, this.size = 0, this; } o(c, "Similar"), c.prototype.get = function(l) { var s; if (this.lastItem && this.isEqual(this.lastItem.key, l)) return this.lastItem.val; if (s = this.indexOf(l), s >= 0) return this.lastItem = this.list[s], this.list[s].val; }, c.prototype.set = function(l, s) { var u; return this.lastItem && this.isEqual(this.lastItem.key, l) ? (this.lastItem.val = s, this) : (u = this.indexOf(l), u >= 0 ? (this.lastItem = this.list[u], this.list[u].val = s, this) : (this.lastItem = { key: l, val: s }, this.list.push(this.lastItem), this.size++, this)); }, c.prototype.delete = function(l) { var s; if (this.lastItem && this.isEqual(this.lastItem.key, l) && (this.lastItem = void 0), s = this.indexOf(l), s >= 0) return this.size--, this.list.splice(s, 1)[0]; }, c.prototype.has = function(l) { var s; return this.lastItem && this.isEqual(this.lastItem.key, l) ? !0 : (s = this.indexOf(l), s >= 0 ? (this.lastItem = this.list[s], !0) : !1); }, c.prototype.forEach = function(l, s) { var u; for (u = 0; u < this.size; u++) l.call(s || this, this.list[u].val, this.list[u].key, this); }, c.prototype.indexOf = function(l) { var s; for (s = 0; s < this.size; s++) if (this.isEqual(this.list[s].key, l)) return s; return -1; }, c.prototype.isEqual = function(l, s) { return l === s || l !== l && s !== s; }, a.exports = c; }, {}], 3: [function(n, a, i) { var c = n("map-or-similar"); a.exports = function(f) { var d = new c(!1), m = []; return function(v) { var y = /* @__PURE__ */ o(function() { var p = d, h, g, w = arguments.length - 1, b = Array(w + 1), x = !0, E; if ((y.numArgs || y.numArgs === 0) && y.numArgs !== w + 1) throw new Error("Memoizerific functions should always be called with the same number of arguments"); for (E = 0; E < w; E++) { if (b[E] = { cacheItem: p, arg: arguments[E] }, p.has(arguments[E])) { p = p.get(arguments[E]); continue; } x = !1, h = new c(!1), p.set(arguments[E], h), p = h; } return x && (p.has(arguments[w]) ? g = p.get(arguments[w]) : x = !1), x || (g = v.apply(null, arguments), p.set(arguments[w], g)), f > 0 && (b[w] = { cacheItem: p, arg: arguments[w] }, x ? l(m, b) : m.push(b), m.length > f && s(m.shift())), y.wasMemoized = x, y.numArgs = w + 1, g; }, "memoizerific"); return y.limit = f, y.wasMemoized = !1, y.cache = d, y.lru = m, y; }; }; function l(f, d) { var m = f.length, v = d.length, y, p, h; for (p = 0; p < m; p++) { for (y = !0, h = 0; h < v; h++) if (!u(f[p][h].arg, d[h].arg)) { y = !1; break; } if (y) break; } f.push(f.splice(p, 1)[0]); } o(l, "moveToMostRecentLru"); function s(f) { var d = f.length, m = f[d - 1], v, y; for (m.cacheItem.delete(m.arg), y = d - 2; y >= 0 && (m = f[y], v = m.cacheItem.get(m.arg), !v || !v.size); y--) m.cacheItem.delete(m.arg); } o(s, "removeCachedResult"); function u(f, d) { return f === d || f !== f && d !== d; } o(u, "isEqual"); }, { "map-or-similar": 1 }] }, {}, [3])(3); }); }); // ../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js function ur(e, t) { if (e == null) return {}; var r = {}; for (var n in e) if ({}.hasOwnProperty.call(e, n)) { if (t.indexOf(n) !== -1) continue; r[n] = e[n]; } return r; } var Bn = C(() => { o(ur, "_objectWithoutPropertiesLoose"); }); // ../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js function ql(e, t) { if (e == null) return {}; var r, n, a = ur(e, t); if (Object.getOwnPropertySymbols) { var i = Object.getOwnPropertySymbols(e); for (n = 0; n < i.length; n++) r = i[n], t.indexOf(r) === -1 && {}.propertyIsEnumerable.call(e, r) && (a[r] = e[r]); } return a; } var Gl = C(() => { Bn(); o(ql, "_objectWithoutProperties"); }); // ../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js function en(e, t) { (t == null || t > e.length) && (t = e.length); for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r]; return n; } var la = C(() => { o(en, "_arrayLikeToArray"); }); // ../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js function Yl(e) { if (Array.isArray(e)) return en(e); } var Xl = C(() => { la(); o(Yl, "_arrayWithoutHoles"); }); // ../node_modules/@babel/runtime/helpers/esm/iterableToArray.js function Zl(e) { if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e); } var Kl = C(() => { o(Zl, "_iterableToArray"); }); // ../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js function Jl(e, t) { if (e) { if (typeof e == "string") return en(e, t); var r = {}.toString.call(e).slice(8, -1); return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/. test(r) ? en(e, t) : void 0; } } var Ql = C(() => { la(); o(Jl, "_unsupportedIterableToArray"); }); // ../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js function ec() { throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } var tc = C(() => { o(ec, "_nonIterableSpread"); }); // ../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js function Nn(e) { return Yl(e) || Zl(e) || Jl(e) || ec(); } var rc = C(() => { Xl(); Kl(); Ql(); tc(); o(Nn, "_toConsumableArray"); }); // ../node_modules/@babel/runtime/helpers/esm/typeof.js function Dt(e) { "@babel/helpers - typeof"; return Dt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, Dt(e); } var ca = C(() => { o(Dt, "_typeof"); }); // ../node_modules/@babel/runtime/helpers/esm/toPrimitive.js function nc(e, t) { if (Dt(e) != "object" || !e) return e; var r = e[Symbol.toPrimitive]; if (r !== void 0) { var n = r.call(e, t || "default"); if (Dt(n) != "object") return n; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } var oc = C(() => { ca(); o(nc, "toPrimitive"); }); // ../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js function ac(e) { var t = nc(e, "string"); return Dt(t) == "symbol" ? t : t + ""; } var ic = C(() => { ca(); oc(); o(ac, "toPropertyKey"); }); // ../node_modules/@babel/runtime/helpers/esm/defineProperty.js function Fn(e, t, r) { return (t = ac(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e; } var sa = C(() => { ic(); o(Fn, "_defineProperty"); }); // ../node_modules/react-syntax-highlighter/dist/esm/create-element.js import p2 from "react"; function lc(e, t) { var r = Object.keys(e); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); t && (n = n.filter(function(a) { return Object.getOwnPropertyDescriptor(e, a).enumerable; })), r.push.apply(r, n); } return r; } function fr(e) { for (var t = 1; t < arguments.length; t++) { var r = arguments[t] != null ? arguments[t] : {}; t % 2 ? lc(Object(r), !0).forEach(function(n) { Fn(e, n, r[n]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : lc(Object(r)).forEach(function(n) { Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n)); }); } return e; } function m2(e) { var t = e.length; if (t === 0 || t === 1) return e; if (t === 2) return [e[0], e[1], "".concat(e[0], ".").concat(e[1]), "".concat(e[1], ".").concat(e[0])]; if (t === 3) return [e[0], e[1], e[2], "".concat(e[0], ".").concat(e[1]), "".concat(e[0], ".").concat(e[2]), "".concat(e[1], ".").concat(e[0]), "".concat( e[1], ".").concat(e[2]), "".concat(e[2], ".").concat(e[0]), "".concat(e[2], ".").concat(e[1]), "".concat(e[0], ".").concat(e[1], ".").concat( e[2]), "".concat(e[0], ".").concat(e[2], ".").concat(e[1]), "".concat(e[1], ".").concat(e[0], ".").concat(e[2]), "".concat(e[1], ".").concat( e[2], ".").concat(e[0]), "".concat(e[2], ".").concat(e[0], ".").concat(e[1]), "".concat(e[2], ".").concat(e[1], ".").concat(e[0])]; if (t >= 4) return [e[0], e[1], e[2], e[3], "".concat(e[0], ".").concat(e[1]), "".concat(e[0], ".").concat(e[2]), "".concat(e[0], ".").concat(e[3]), "".concat(e[1], ".").concat(e[0]), "".concat(e[1], ".").concat(e[2]), "".concat(e[1], ".").concat(e[3]), "".concat(e[2], ".").concat(e[0]), "".concat(e[2], ".").concat(e[1]), "".concat(e[2], ".").concat(e[3]), "".concat(e[3], ".").concat(e[0]), "".concat(e[3], ".").concat(e[1]), "".concat(e[3], ".").concat(e[2]), "".concat(e[0], ".").concat(e[1], ".").concat(e[2]), "".concat(e[0], ".").concat(e[1], ".").concat(e[3]), "".concat(e[0], ".").concat(e[2], ".").concat(e[1]), "".concat(e[0], ".").concat(e[2], ".").concat(e[3]), "".concat(e[0], ".").concat(e[3], ".").concat(e[1]), "".concat(e[0], ".").concat(e[3], ".").concat(e[2]), "".concat(e[1], ".").concat(e[0], ".").concat(e[2]), "".concat(e[1], ".").concat(e[0], ".").concat(e[3]), "".concat(e[1], ".").concat(e[2], ".").concat(e[0]), "".concat(e[1], ".").concat(e[2], ".").concat( e[3]), "".concat(e[1], ".").concat(e[3], ".").concat(e[0]), "".concat(e[1], ".").concat(e[3], ".").concat(e[2]), "".concat(e[2], ".").concat( e[0], ".").concat(e[1]), "".concat(e[2], ".").concat(e[0], ".").concat(e[3]), "".concat(e[2], ".").concat(e[1], ".").concat(e[0]), "".concat( e[2], ".").concat(e[1], ".").concat(e[3]), "".concat(e[2], ".").concat(e[3], ".").concat(e[0]), "".concat(e[2], ".").concat(e[3], ".").concat( e[1]), "".concat(e[3], ".").concat(e[0], ".").concat(e[1]), "".concat(e[3], ".").concat(e[0], ".").concat(e[2]), "".concat(e[3], ".").concat( e[1], ".").concat(e[0]), "".concat(e[3], ".").concat(e[1], ".").concat(e[2]), "".concat(e[3], ".").concat(e[2], ".").concat(e[0]), "".concat( e[3], ".").concat(e[2], ".").concat(e[1]), "".concat(e[0], ".").concat(e[1], ".").concat(e[2], ".").concat(e[3]), "".concat(e[0], ".").concat( e[1], ".").concat(e[3], ".").concat(e[2]), "".concat(e[0], ".").concat(e[2], ".").concat(e[1], ".").concat(e[3]), "".concat(e[0], ".").concat( e[2], ".").concat(e[3], ".").concat(e[1]), "".concat(e[0], ".").concat(e[3], ".").concat(e[1], ".").concat(e[2]), "".concat(e[0], ".").concat( e[3], ".").concat(e[2], ".").concat(e[1]), "".concat(e[1], ".").concat(e[0], ".").concat(e[2], ".").concat(e[3]), "".concat(e[1], ".").concat( e[0], ".").concat(e[3], ".").concat(e[2]), "".concat(e[1], ".").concat(e[2], ".").concat(e[0], ".").concat(e[3]), "".concat(e[1], ".").concat( e[2], ".").concat(e[3], ".").concat(e[0]), "".concat(e[1], ".").concat(e[3], ".").concat(e[0], ".").concat(e[2]), "".concat(e[1], ".").concat( e[3], ".").concat(e[2], ".").concat(e[0]), "".concat(e[2], ".").concat(e[0], ".").concat(e[1], ".").concat(e[3]), "".concat(e[2], ".").concat( e[0], ".").concat(e[3], ".").concat(e[1]), "".concat(e[2], ".").concat(e[1], ".").concat(e[0], ".").concat(e[3]), "".concat(e[2], ".").concat( e[1], ".").concat(e[3], ".").concat(e[0]), "".concat(e[2], ".").concat(e[3], ".").concat(e[0], ".").concat(e[1]), "".concat(e[2], ".").concat( e[3], ".").concat(e[1], ".").concat(e[0]), "".concat(e[3], ".").concat(e[0], ".").concat(e[1], ".").concat(e[2]), "".concat(e[3], ".").concat( e[0], ".").concat(e[2], ".").concat(e[1]), "".concat(e[3], ".").concat(e[1], ".").concat(e[0], ".").concat(e[2]), "".concat(e[3], ".").concat( e[1], ".").concat(e[2], ".").concat(e[0]), "".concat(e[3], ".").concat(e[2], ".").concat(e[0], ".").concat(e[1]), "".concat(e[3], ".").concat( e[2], ".").concat(e[1], ".").concat(e[0])]; } function h2(e) { if (e.length === 0 || e.length === 1) return e; var t = e.join("."); return ua[t] || (ua[t] = m2(e)), ua[t]; } function g2(e) { var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = arguments.length > 2 ? arguments[2] : void 0, n = e.filter( function(i) { return i !== "token"; }), a = h2(n); return a.reduce(function(i, c) { return fr(fr({}, i), r[c]); }, t); } function cc(e) { return e.join(" "); } function v2(e, t) { var r = 0; return function(n) { return r += 1, n.map(function(a, i) { return _t({ node: a, stylesheet: e, useInlineStyles: t, key: "code-segment-".concat(r, "-").concat(i) }); }); }; } function _t(e) { var t = e.node, r = e.stylesheet, n = e.style, a = n === void 0 ? {} : n, i = e.useInlineStyles, c = e.key, l = t.properties, s = t.type, u = t. tagName, f = t.value; if (s === "text") return f; if (u) { var d = v2(r, i), m; if (!i) m = fr(fr({}, l), {}, { className: cc(l.className) }); else { var v = Object.keys(r).reduce(function(g, w) { return w.split(".").forEach(function(b) { g.includes(b) || g.push(b); }), g; }, []), y = l.className && l.className.includes("token") ? ["token"] : [], p = l.className && y.concat(l.className.filter(function(g) { return !v.includes(g); })); m = fr(fr({}, l), {}, { className: cc(p) || void 0, style: g2(l.className, Object.assign({}, l.style, a), r) }); } var h = d(t.children); return /* @__PURE__ */ p2.createElement(u, W({ key: c }, m), h); } } var ua, fa = C(() => { Kr(); sa(); o(lc, "ownKeys"); o(fr, "_objectSpread"); o(m2, "powerSetPermutations"); ua = {}; o(h2, "getClassNameCombinations"); o(g2, "createStyleObject"); o(cc, "createClassNameString"); o(v2, "createChildren"); o(_t, "createElement"); }); // ../node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.js var sc, uc = C(() => { sc = /* @__PURE__ */ o(function(e, t) { var r = e.listLanguages(); return r.indexOf(t) !== -1; }, "default"); }); // ../node_modules/react-syntax-highlighter/dist/esm/highlight.js import $t from "react"; function fc(e, t) { var r = Object.keys(e); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); t && (n = n.filter(function(a) { return Object.getOwnPropertyDescriptor(e, a).enumerable; })), r.push.apply(r, n); } return r; } function bt(e) { for (var t = 1; t < arguments.length; t++) { var r = arguments[t] != null ? arguments[t] : {}; t % 2 ? fc(Object(r), !0).forEach(function(n) { Fn(e, n, r[n]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : fc(Object(r)).forEach(function(n) { Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n)); }); } return e; } function y2(e) { return e.match(b2); } function R2(e) { var t = e.lines, r = e.startingLineNumber, n = e.style; return t.map(function(a, i) { var c = i + r; return /* @__PURE__ */ $t.createElement("span", { key: "line-".concat(i), className: "react-syntax-highlighter-line-number", style: typeof n == "function" ? n(c) : n }, "".concat(c, ` `)); }); } function x2(e) { var t = e.codeString, r = e.codeStyle, n = e.containerStyle, a = n === void 0 ? { float: "left", paddingRight: "10px" } : n, i = e.numberStyle, c = i === void 0 ? {} : i, l = e.startingLineNumber; return /* @__PURE__ */ $t.createElement("code", { style: Object.assign({}, r, a) }, R2({ lines: t.replace(/\n$/, "").split(` `), style: c, startingLineNumber: l })); } function E2(e) { return "".concat(e.toString().length, ".25em"); } function dc(e, t) { return { type: "element", tagName: "span", properties: { key: "line-number--".concat(e), className: ["comment", "linenumber", "react-syntax-highlighter-line-number"], style: t }, children: [{ type: "text", value: e }] }; } function pc(e, t, r) { var n = { display: "inline-block", minWidth: E2(r), paddingRight: "1em", textAlign: "right", userSelect: "none" }, a = typeof e == "function" ? e(t) : e, i = bt(bt({}, n), a); return i; } function Dn(e) { var t = e.children, r = e.lineNumber, n = e.lineNumberStyle, a = e.largestLineNumber, i = e.showInlineLineNumbers, c = e.lineProps, l = c === void 0 ? {} : c, s = e.className, u = s === void 0 ? [] : s, f = e.showLineNumbers, d = e.wrapLongLines, m = e.wrapLines, v = m === void 0 ? !1 : m, y = v ? bt({}, typeof l == "function" ? l(r) : l) : {}; if (y.className = y.className ? [].concat(Nn(y.className.trim().split(/\s+/)), Nn(u)) : u, r && i) { var p = pc(n, r, a); t.unshift(dc(r, p)); } return d & f && (y.style = bt({ display: "flex" }, y.style)), { type: "element", tagName: "span", properties: y, children: t }; } function mc(e) { for (var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [], n = 0; n < e.length; n++) { var a = e[n]; if (a.type === "text") r.push(Dn({ children: [a], className: Nn(new Set(t)) })); else if (a.children) { var i = t.concat(a.properties.className); mc(a.children, i).forEach(function(c) { return r.push(c); }); } } return r; } function S2(e, t, r, n, a, i, c, l, s) { var u, f = mc(e.value), d = [], m = -1, v = 0; function y(E, R) { var S = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : []; return Dn({ children: E, lineNumber: R, lineNumberStyle: l, largestLineNumber: c, showInlineLineNumbers: a, lineProps: r, className: S, showLineNumbers: n, wrapLongLines: s, wrapLines: t }); } o(y, "createWrappedLine"); function p(E, R) { if (n && R && a) { var S = pc(l, R, c); E.unshift(dc(R, S)); } return E; } o(p, "createUnwrappedLine"); function h(E, R) { var S = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : []; return t || S.length > 0 ? y(E, R, S) : p(E, R); } o(h, "createLine"); for (var g = /* @__PURE__ */ o(function() { var R = f[v], S = R.children[0].value, A = y2(S); if (A) { var M = S.split(` `); M.forEach(function(L, P) { var _ = n && d.length + i, D = { type: "text", value: "".concat(L, ` `) }; if (P === 0) { var K = f.slice(m + 1, v).concat(Dn({ children: [D], className: R.properties.className })), T = h(K, _); d.push(T); } else if (P === M.length - 1) { var z = f[v + 1] && f[v + 1].children && f[v + 1].children[0], k = { type: "text", value: "".concat(L) }; if (z) { var V = Dn({ children: [k], className: R.properties.className }); f.splice(v + 1, 0, V); } else { var F = [k], j = h(F, _, R.properties.className); d.push(j); } } else { var O = [D], G = h(O, _, R.properties.className); d.push(G); } }), m = v; } v++; }, "_loop"); v < f.length; ) g(); if (m !== f.length - 1) { var w = f.slice(m + 1, f.length); if (w && w.length) { var b = n && d.length + i, x = h(w, b); d.push(x); } } return t ? d : (u = []).concat.apply(u, d); } function C2(e) { var t = e.rows, r = e.stylesheet, n = e.useInlineStyles; return t.map(function(a, i) { return _t({ node: a, stylesheet: r, useInlineStyles: n, key: "code-segement".concat(i) }); }); } function hc(e) { return e && typeof e.highlightAuto < "u"; } function M2(e) { var t = e.astGenerator, r = e.language, n = e.code, a = e.defaultCodeValue; if (hc(t)) { var i = sc(t, r); return r === "text" ? { value: a, language: "text" } : i ? t.highlight(r, n) : t.highlightAuto(n); } try { return r && r !== "text" ? { value: t.highlight(n, r) } : { value: a }; } catch { return { value: a }; } } function da(e, t) { return /* @__PURE__ */ o(function(n) { var a = n.language, i = n.children, c = n.style, l = c === void 0 ? t : c, s = n.customStyle, u = s === void 0 ? {} : s, f = n.codeTagProps, d = f === void 0 ? { className: a ? "language-".concat(a) : void 0, style: bt(bt({}, l['code[class*="language-"]']), l['code[class*="language-'.concat(a, '"]')]) } : f, m = n.useInlineStyles, v = m === void 0 ? !0 : m, y = n.showLineNumbers, p = y === void 0 ? !1 : y, h = n.showInlineLineNumbers, g = h === void 0 ? !0 : h, w = n.startingLineNumber, b = w === void 0 ? 1 : w, x = n.lineNumberContainerStyle, E = n.lineNumberStyle, R = E === void 0 ? {} : E, S = n.wrapLines, A = n.wrapLongLines, M = A === void 0 ? !1 : A, L = n.lineProps, P = L === void 0 ? {} : L, _ = n.renderer, D = n. PreTag, K = D === void 0 ? "pre" : D, T = n.CodeTag, z = T === void 0 ? "code" : T, k = n.code, V = k === void 0 ? (Array.isArray(i) ? i[0] : i) || "" : k, F = n.astGenerator, j = ql(n, w2); F = F || e; var O = p ? /* @__PURE__ */ $t.createElement(x2, { containerStyle: x, codeStyle: d.style || {}, numberStyle: R, startingLineNumber: b, codeString: V }) : null, G = l.hljs || l['pre[class*="language-"]'] || { backgroundColor: "#fff" }, Ee = hc(F) ? "hljs" : "prismjs", pe = v ? Object.assign({}, j, { style: Object.assign({}, G, u) }) : Object.assign({}, j, { className: j.className ? "".concat(Ee, " ").concat(j.className) : Ee, style: Object.assign({}, u) }); if (M ? d.style = bt({ whiteSpace: "pre-wrap" }, d.style) : d.style = bt({ whiteSpace: "pre" }, d.style), !F) return /* @__PURE__ */ $t.createElement(K, pe, O, /* @__PURE__ */ $t.createElement(z, d, V)); (S === void 0 && _ || M) && (S = !0), _ = _ || C2; var se = [{ type: "text", value: V }], ue = M2({ astGenerator: F, language: a, code: V, defaultCodeValue: se }); ue.language === null && (ue.value = se); var ve = ue.value.length; ve === 1 && ue.value[0].type === "text" && (ve = ue.value[0].value.split(` `).length); var Se = ve + b, Ot = S2(ue, S, P, p, g, b, Se, R, M); return /* @__PURE__ */ $t.createElement(K, pe, /* @__PURE__ */ $t.createElement(z, d, !g && O, _({ rows: Ot, stylesheet: l, useInlineStyles: v }))); }, "SyntaxHighlighter"); } var w2, b2, gc = C(() => { Gl(); rc(); sa(); fa(); uc(); w2 = ["language", "children", "style", "customStyle", "codeTagProps", "useInlineStyles", "showLineNumbers", "showInlineLineNumbers", "star\ tingLineNumber", "lineNumberContainerStyle", "lineNumberStyle", "wrapLines", "wrapLongLines", "lineProps", "renderer", "PreTag", "CodeTag", "\ code", "astGenerator"]; o(fc, "ownKeys"); o(bt, "_objectSpread"); b2 = /\n/g; o(y2, "getNewLines"); o(R2, "getAllLineNumbers"); o(x2, "AllLineNumbers"); o(E2, "getEmWidthOfNumber"); o(dc, "getInlineLineNumber"); o(pc, "assembleLineNumberStyles"); o(Dn, "createLineElement"); o(mc, "flattenCodeTree"); o(S2, "processLines"); o(C2, "defaultRenderer"); o(hc, "isHighlightJs"); o(M2, "getCodeTree"); o(da, "default"); }); // ../node_modules/xtend/immutable.js var wc = H((kb, vc) => { vc.exports = L2; var A2 = Object.prototype.hasOwnProperty; function L2() { for (var e = {}, t = 0; t < arguments.length; t++) { var r = arguments[t]; for (var n in r) A2.call(r, n) && (e[n] = r[n]); } return e; } o(L2, "extend"); }); // ../node_modules/hastscript/node_modules/property-information/lib/util/schema.js var ma = H((Bb, yc) => { "use strict"; yc.exports = bc; var pa = bc.prototype; pa.space = null; pa.normal = {}; pa.property = {}; function bc(e, t, r) { this.property = e, this.normal = t, r && (this.space = r); } o(bc, "Schema"); }); // ../node_modules/hastscript/node_modules/property-information/lib/util/merge.js var Ec = H((Fb, xc) => { "use strict"; var Rc = wc(), I2 = ma(); xc.exports = z2; function z2(e) { for (var t = e.length, r = [], n = [], a = -1, i, c; ++a < t; ) i = e[a], r.push(i.property), n.push(i.normal), c = i.space; return new I2( Rc.apply(null, r), Rc.apply(null, n), c ); } o(z2, "merge"); }); // ../node_modules/hastscript/node_modules/property-information/normalize.js var _n = H((_b, Sc) => { "use strict"; Sc.exports = T2; function T2(e) { return e.toLowerCase(); } o(T2, "normalize"); }); // ../node_modules/hastscript/node_modules/property-information/lib/util/info.js var ha = H((Vb, Mc) => { "use strict"; Mc.exports = Cc; var Fe = Cc.prototype; Fe.space = null; Fe.attribute = null; Fe.property = null; Fe.boolean = !1; Fe.booleanish = !1; Fe.overloadedBoolean = !1; Fe.number = !1; Fe.commaSeparated = !1; Fe.spaceSeparated = !1; Fe.commaOrSpaceSeparated = !1; Fe.mustUseProperty = !1; Fe.defined = !1; function Cc(e, t) { this.property = e, this.attribute = t; } o(Cc, "Info"); }); // ../node_modules/hastscript/node_modules/property-information/lib/util/types.js var $n = H((yt) => { "use strict"; var H2 = 0; yt.boolean = Vt(); yt.booleanish = Vt(); yt.overloadedBoolean = Vt(); yt.number = Vt(); yt.spaceSeparated = Vt(); yt.commaSeparated = Vt(); yt.commaOrSpaceSeparated = Vt(); function Vt() { return Math.pow(2, ++H2); } o(Vt, "increment"); }); // ../node_modules/hastscript/node_modules/property-information/lib/util/defined-info.js var va = H((qb, Tc) => { "use strict"; var Ic = ha(), Ac = $n(); Tc.exports = ga; ga.prototype = new Ic(); ga.prototype.defined = !0; var zc = [ "boolean", "booleanish", "overloadedBoolean", "number", "commaSeparated", "spaceSeparated", "commaOrSpaceSeparated" ], P2 = zc.length; function ga(e, t, r, n) { var a = -1, i; for (Lc(this, "space", n), Ic.call(this, e, t); ++a < P2; ) i = zc[a], Lc(this, i, (r & Ac[i]) === Ac[i]); } o(ga, "DefinedInfo"); function Lc(e, t, r) { r && (e[t] = r); } o(Lc, "mark"); }); // ../node_modules/hastscript/node_modules/property-information/lib/util/create.js var dr = H((Yb, Pc) => { "use strict"; var Hc = _n(), k2 = ma(), O2 = va(); Pc.exports = B2; function B2(e) { var t = e.space, r = e.mustUseProperty || [], n = e.attributes || {}, a = e.properties, i = e.transform, c = {}, l = {}, s, u; for (s in a) u = new O2( s, i(n, s), a[s], t ), r.indexOf(s) !== -1 && (u.mustUseProperty = !0), c[s] = u, l[Hc(s)] = s, l[Hc(u.attribute)] = s; return new k2(c, l, t); } o(B2, "create"); }); // ../node_modules/hastscript/node_modules/property-information/lib/xlink.js var Oc = H((Zb, kc) => { "use strict"; var N2 = dr(); kc.exports = N2({ space: "xlink", transform: F2, properties: { xLinkActuate: null, xLinkArcRole: null, xLinkHref: null, xLinkRole: null, xLinkShow: null, xLinkTitle: null, xLinkType: null } }); function F2(e, t) { return "xlink:" + t.slice(5).toLowerCase(); } o(F2, "xlinkTransform"); }); // ../node_modules/hastscript/node_modules/property-information/lib/xml.js var Nc = H((Jb, Bc) => { "use strict"; var D2 = dr(); Bc.exports = D2({ space: "xml", transform: _2, properties: { xmlLang: null, xmlBase: null, xmlSpace: null } }); function _2(e, t) { return "xml:" + t.slice(3).toLowerCase(); } o(_2, "xmlTransform"); }); // ../node_modules/hastscript/node_modules/property-information/lib/util/case-sensitive-transform.js var Dc = H((e9, Fc) => { "use strict"; Fc.exports = $2; function $2(e, t) { return t in e ? e[t] : t; } o($2, "caseSensitiveTransform"); }); // ../node_modules/hastscript/node_modules/property-information/lib/util/case-insensitive-transform.js var wa = H((r9, _c) => { "use strict"; var V2 = Dc(); _c.exports = j2; function j2(e, t) { return V2(e, t.toLowerCase()); } o(j2, "caseInsensitiveTransform"); }); // ../node_modules/hastscript/node_modules/property-information/lib/xmlns.js var Vc = H((o9, $c) => { "use strict"; var W2 = dr(), U2 = wa(); $c.exports = W2({ space: "xmlns", attributes: { xmlnsxlink: "xmlns:xlink" }, transform: U2, properties: { xmlns: null, xmlnsXLink: null } }); }); // ../node_modules/hastscript/node_modules/property-information/lib/aria.js var Wc = H((a9, jc) => { "use strict"; var ba = $n(), q2 = dr(), Ae = ba.booleanish, De = ba.number, jt = ba.spaceSeparated; jc.exports = q2({ transform: G2, properties: { ariaActiveDescendant: null, ariaAtomic: Ae, ariaAutoComplete: null, ariaBusy: Ae, ariaChecked: Ae, ariaColCount: De, ariaColIndex: De, ariaColSpan: De, ariaControls: jt, ariaCurrent: null, ariaDescribedBy: jt, ariaDetails: null, ariaDisabled: Ae, ariaDropEffect: jt, ariaErrorMessage: null, ariaExpanded: Ae, ariaFlowTo: jt, ariaGrabbed: Ae, ariaHasPopup: null, ariaHidden: Ae, ariaInvalid: null, ariaKeyShortcuts: null, ariaLabel: null, ariaLabelledBy: jt, ariaLevel: De, ariaLive: null, ariaModal: Ae, ariaMultiLine: Ae, ariaMultiSelectable: Ae, ariaOrientation: null, ariaOwns: jt, ariaPlaceholder: null, ariaPosInSet: De, ariaPressed: Ae, ariaReadOnly: Ae, ariaRelevant: null, ariaRequired: Ae, ariaRoleDescription: jt, ariaRowCount: De, ariaRowIndex: De, ariaRowSpan: De, ariaSelected: Ae, ariaSetSize: De, ariaSort: null, ariaValueMax: De, ariaValueMin: De, ariaValueNow: De, ariaValueText: null, role: null } }); function G2(e, t) { return t === "role" ? t : "aria-" + t.slice(4).toLowerCase(); } o(G2, "ariaTransform"); }); // ../node_modules/hastscript/node_modules/property-information/lib/html.js var qc = H((l9, Uc) => { "use strict"; var pr = $n(), Y2 = dr(), X2 = wa(), B = pr.boolean, Z2 = pr.overloadedBoolean, tn = pr.booleanish, Y = pr.number, ye = pr.spaceSeparated, Vn = pr.commaSeparated; Uc.exports = Y2({ space: "html", attributes: { acceptcharset: "accept-charset", classname: "class", htmlfor: "for", httpequiv: "http-equiv" }, transform: X2, mustUseProperty: ["checked", "multiple", "muted", "selected"], properties: { // Standard Properties. abbr: null, accept: Vn, acceptCharset: ye, accessKey: ye, action: null, allow: null, allowFullScreen: B, allowPaymentRequest: B, allowUserMedia: B, alt: null, as: null, async: B, autoCapitalize: null, autoComplete: ye, autoFocus: B, autoPlay: B, capture: B, charSet: null, checked: B, cite: null, className: ye, cols: Y, colSpan: null, content: null, contentEditable: tn, controls: B, controlsList: ye, coords: Y | Vn, crossOrigin: null, data: null, dateTime: null, decoding: null, default: B, defer: B, dir: null, dirName: null, disabled: B, download: Z2, draggable: tn, encType: null, enterKeyHint: null, form: null, formAction: null, formEncType: null, formMethod: null, formNoValidate: B, formTarget: null, headers: ye, height: Y, hidden: B, high: Y, href: null, hrefLang: null, htmlFor: ye, httpEquiv: ye, id: null, imageSizes: null, imageSrcSet: Vn, inputMode: null, integrity: null, is: null, isMap: B, itemId: null, itemProp: ye, itemRef: ye, itemScope: B, itemType: ye, kind: null, label: null, lang: null, language: null, list: null, loading: null, loop: B, low: Y, manifest: null, max: null, maxLength: Y, media: null, method: null, min: null, minLength: Y, multiple: B, muted: B, name: null, nonce: null, noModule: B, noValidate: B, onAbort: null, onAfterPrint: null, onAuxClick: null, onBeforePrint: null, onBeforeUnload: null, onBlur: null, onCancel: null, onCanPlay: null, onCanPlayThrough: null, onChange: null, onClick: null, onClose: null, onContextMenu: null, onCopy: null, onCueChange: null, onCut: null, onDblClick: null, onDrag: null, onDragEnd: null, onDragEnter: null, onDragExit: null, onDragLeave: null, onDragOver: null, onDragStart: null, onDrop: null, onDurationChange: null, onEmptied: null, onEnded: null, onError: null, onFocus: null, onFormData: null, onHashChange: null, onInput: null, onInvalid: null, onKeyDown: null, onKeyPress: null, onKeyUp: null, onLanguageChange: null, onLoad: null, onLoadedData: null, onLoadedMetadata: null, onLoadEnd: null, onLoadStart: null, onMessage: null, onMessageError: null, onMouseDown: null, onMouseEnter: null, onMouseLeave: null, onMouseMove: null, onMouseOut: null, onMouseOver: null, onMouseUp: null, onOffline: null, onOnline: null, onPageHide: null, onPageShow: null, onPaste: null, onPause: null, onPlay: null, onPlaying: null, onPopState: null, onProgress: null, onRateChange: null, onRejectionHandled: null, onReset: null, onResize: null, onScroll: null, onSecurityPolicyViolation: null, onSeeked: null, onSeeking: null, onSelect: null, onSlotChange: null, onStalled: null, onStorage: null, onSubmit: null, onSuspend: null, onTimeUpdate: null, onToggle: null, onUnhandledRejection: null, onUnload: null, onVolumeChange: null, onWaiting: null, onWheel: null, open: B, optimum: Y, pattern: null, ping: ye, placeholder: null, playsInline: B, poster: null, preload: null, readOnly: B, referrerPolicy: null, rel: ye, required: B, reversed: B, rows: Y, rowSpan: Y, sandbox: ye, scope: null, scoped: B, seamless: B, selected: B, shape: null, size: Y, sizes: null, slot: null, span: Y, spellCheck: tn, src: null, srcDoc: null, srcLang: null, srcSet: Vn, start: Y, step: null, style: null, tabIndex: Y, target: null, title: null, translate: null, type: null, typeMustMatch: B, useMap: null, value: tn, width: Y, wrap: null, // Legacy. // See: https://html.spec.whatwg.org/#other-elements,-attributes-and-apis align: null, // Several. Use CSS `text-align` instead, aLink: null, // `<body>`. Use CSS `a:active {color}` instead archive: ye, // `<object>`. List of URIs to archives axis: null, // `<td>` and `<th>`. Use `scope` on `<th>` background: null, // `<body>`. Use CSS `background-image` instead bgColor: null, // `<body>` and table elements. Use CSS `background-color` instead border: Y, // `<table>`. Use CSS `border-width` instead, borderColor: null, // `<table>`. Use CSS `border-color` instead, bottomMargin: Y, // `<body>` cellPadding: null, // `<table>` cellSpacing: null, // `<table>` char: null, // Several table elements. When `align=char`, sets the character to align on charOff: null, // Several table elements. When `char`, offsets the alignment classId: null, // `<object>` clear: null, // `<br>`. Use CSS `clear` instead code: null, // `<object>` codeBase: null, // `<object>` codeType: null, // `<object>` color: null, // `<font>` and `<hr>`. Use CSS instead compact: B, // Lists. Use CSS to reduce space between items instead declare: B, // `<object>` event: null, // `<script>` face: null, // `<font>`. Use CSS instead frame: null, // `<table>` frameBorder: null, // `<iframe>`. Use CSS `border` instead hSpace: Y, // `<img>` and `<object>` leftMargin: Y, // `<body>` link: null, // `<body>`. Use CSS `a:link {color: *}` instead longDesc: null, // `<frame>`, `<iframe>`, and `<img>`. Use an `<a>` lowSrc: null, // `<img>`. Use a `<picture>` marginHeight: Y, // `<body>` marginWidth: Y, // `<body>` noResize: B, // `<frame>` noHref: B, // `<area>`. Use no href instead of an explicit `nohref` noShade: B, // `<hr>`. Use background-color and height instead of borders noWrap: B, // `<td>` and `<th>` object: null, // `<applet>` profile: null, // `<head>` prompt: null, // `<isindex>` rev: null, // `<link>` rightMargin: Y, // `<body>` rules: null, // `<table>` scheme: null, // `<meta>` scrolling: tn, // `<frame>`. Use overflow in the child context standby: null, // `<object>` summary: null, // `<table>` text: null, // `<body>`. Use CSS `color` instead topMargin: Y, // `<body>` valueType: null, // `<param>` version: null, // `<html>`. Use a doctype. vAlign: null, // Several. Use CSS `vertical-align` instead vLink: null, // `<body>`. Use CSS `a:visited {color}` instead vSpace: Y, // `<img>` and `<object>` // Non-standard Properties. allowTransparency: null, autoCorrect: null, autoSave: null, disablePictureInPicture: B, disableRemotePlayback: B, prefix: null, property: null, results: Y, security: null, unselectable: null } }); }); // ../node_modules/hastscript/node_modules/property-information/html.js var Yc = H((c9, Gc) => { "use strict"; var K2 = Ec(), J2 = Oc(), Q2 = Nc(), e4 = Vc(), t4 = Wc(), r4 = qc(); Gc.exports = K2([Q2, J2, e4, t4, r4]); }); // ../node_modules/hastscript/node_modules/property-information/find.js var Kc = H((s9, Zc) => { "use strict"; var n4 = _n(), o4 = va(), a4 = ha(), ya = "data"; Zc.exports = c4; var i4 = /^data[-\w.:]+$/i, Xc = /-[a-z]/g, l4 = /[A-Z]/g; function c4(e, t) { var r = n4(t), n = t, a = a4; return r in e.normal ? e.property[e.normal[r]] : (r.length > 4 && r.slice(0, 4) === ya && i4.test(t) && (t.charAt(4) === "-" ? n = s4(t) : t = u4(t), a = o4), new a(n, t)); } o(c4, "find"); function s4(e) { var t = e.slice(5).replace(Xc, d4); return ya + t.charAt(0).toUpperCase() + t.slice(1); } o(s4, "datasetToProperty"); function u4(e) { var t = e.slice(4); return Xc.test(t) ? e : (t = t.replace(l4, f4), t.charAt(0) !== "-" && (t = "-" + t), ya + t); } o(u4, "datasetToAttribute"); function f4(e) { return "-" + e.toLowerCase(); } o(f4, "kebab"); function d4(e) { return e.charAt(1).toUpperCase(); } o(d4, "camelcase"); }); // ../node_modules/hast-util-parse-selector/index.js var es = H((f9, Qc) => { "use strict"; Qc.exports = p4; var Jc = /[#.]/g; function p4(e, t) { for (var r = e || "", n = t || "div", a = {}, i = 0, c, l, s; i < r.length; ) Jc.lastIndex = i, s = Jc.exec(r), c = r.slice(i, s ? s.index : r.length), c && (l ? l === "#" ? a.id = c : a.className ? a.className.push( c) : a.className = [c] : n = c, i += c.length), s && (l = s[0], i++); return { type: "element", tagName: n, properties: a, children: [] }; } o(p4, "parse"); }); // ../node_modules/hastscript/node_modules/space-separated-tokens/index.js var rs = H((Ra) => { "use strict"; Ra.parse = g4; Ra.stringify = v4; var ts = "", m4 = " ", h4 = /[ \t\n\r\f]+/g; function g4(e) { var t = String(e || ts).trim(); return t === ts ? [] : t.split(h4); } o(g4, "parse"); function v4(e) { return e.join(m4).trim(); } o(v4, "stringify"); }); // ../node_modules/hastscript/node_modules/comma-separated-tokens/index.js var os = H((Ea) => { "use strict"; Ea.parse = w4; Ea.stringify = b4; var xa = ",", ns = " ", rn = ""; function w4(e) { for (var t = [], r = String(e || rn), n = r.indexOf(xa), a = 0, i = !1, c; !i; ) n === -1 && (n = r.length, i = !0), c = r.slice(a, n).trim(), (c || !i) && t.push(c), a = n + 1, n = r.indexOf(xa, a); return t; } o(w4, "parse"); function b4(e, t) { var r = t || {}, n = r.padLeft === !1 ? rn : ns, a = r.padRight ? ns : rn; return e[e.length - 1] === rn && (e = e.concat(rn)), e.join(a + xa + n).trim(); } o(b4, "stringify"); }); // ../node_modules/hastscript/factory.js var fs = H((v9, us) => { "use strict"; var y4 = Kc(), as = _n(), R4 = es(), is = rs().parse, ls = os().parse; us.exports = E4; var x4 = {}.hasOwnProperty; function E4(e, t, r) { var n = r ? L4(r) : null; return a; function a(c, l) { var s = R4(c, t), u = Array.prototype.slice.call(arguments, 2), f = s.tagName.toLowerCase(), d; if (s.tagName = n && x4.call(n, f) ? n[f] : f, l && S4(l, s) && (u.unshift(l), l = null), l) for (d in l) i(s.properties, d, l[d]); return ss(s.children, u), s.tagName === "template" && (s.content = { type: "root", children: s.children }, s.children = []), s; } function i(c, l, s) { var u, f, d; s == null || s !== s || (u = y4(e, l), f = u.property, d = s, typeof d == "string" && (u.spaceSeparated ? d = is(d) : u.commaSeparated ? d = ls(d) : u.commaOrSpaceSeparated && (d = is(ls(d).join(" ")))), f === "style" && typeof s != "string" && (d = A4(d)), f === "classN\ ame" && c.className && (d = c.className.concat(d)), c[f] = M4(u, f, d)); } } o(E4, "factory"); function S4(e, t) { return typeof e == "string" || "length" in e || C4(t.tagName, e); } o(S4, "isChildren"); function C4(e, t) { var r = t.type; return e === "input" || !r || typeof r != "string" ? !1 : typeof t.children == "object" && "length" in t.children ? !0 : (r = r.toLowerCase(), e === "button" ? r !== "menu" && r !== "submit" && r !== "reset" && r !== "button" : "value" in t); } o(C4, "isNode"); function ss(e, t) { var r, n; if (typeof t == "string" || typeof t == "number") { e.push({ type: "text", value: String(t) }); return; } if (typeof t == "object" && "length" in t) { for (r = -1, n = t.length; ++r < n; ) ss(e, t[r]); return; } if (typeof t != "object" || !("type" in t)) throw new Error("Expected node, nodes, or string, got `" + t + "`"); e.push(t); } o(ss, "addChild"); function M4(e, t, r) { var n, a, i; if (typeof r != "object" || !("length" in r)) return cs(e, t, r); for (a = r.length, n = -1, i = []; ++n < a; ) i[n] = cs(e, t, r[n]); return i; } o(M4, "parsePrimitives"); function cs(e, t, r) { var n = r; return e.number || e.positiveNumber ? !isNaN(n) && n !== "" && (n = Number(n)) : (e.boolean || e.overloadedBoolean) && typeof n == "stri\ ng" && (n === "" || as(r) === as(t)) && (n = !0), n; } o(cs, "parsePrimitive"); function A4(e) { var t = [], r; for (r in e) t.push([r, e[r]].join(": ")); return t.join("; "); } o(A4, "style"); function L4(e) { for (var t = e.length, r = -1, n = {}, a; ++r < t; ) a = e[r], n[a.toLowerCase()] = a; return n; } o(L4, "createAdjustMap"); }); // ../node_modules/hastscript/html.js var ms = H((b9, ps) => { "use strict"; var I4 = Yc(), z4 = fs(), ds = z4(I4, "div"); ds.displayName = "html"; ps.exports = ds; }); // ../node_modules/hastscript/index.js var gs = H((y9, hs) => { "us