0&&(C[v]={cacheItem:g,arg:arguments[v]},w?i(p,C):p.push(C),p.length>u&&l(p.shift())),f.wasMemoized=w,f.numArgs=v+1,x};return f.limit=u,f.wasMemoized=!1,f.cache=d,f.lru=p,f}};function i(u,d){var p=u.length,c=d.length,f,g,y;for(g=0;g=0&&(p=u[f],c=p.cacheItem.get(p.arg),!c||!c.size);f--)p.cacheItem.delete(p.arg)}function s(u,d){return u===d||u!==u&&d!==d}},{"map-or-similar":1}]},{},[3])(3)})}});function et(){return et=Object.assign?Object.assign.bind():function(e){for(var t=1;t
+ h.createElement(HT, { id: "clipboard-code", ...t }, e),
+ "ClipboardCode",
+ ),
+ dS = SE,
+ pS = {};
+Object.keys(SE).forEach((e) => {
+ pS[e] = b.forwardRef((t, r) => b.createElement(e, { ...t, ref: r }));
+});
+const WT = Object.freeze(
+ Object.defineProperty(
+ {
+ __proto__: null,
+ A: aE,
+ get ActionBar() {
+ return al;
+ },
+ AddonPanel: FT,
+ Badge: FF,
+ Bar: ip,
+ Blockquote: iE,
+ Button: _r,
+ ClipboardCode: UT,
+ Code: zd,
+ DL: lE,
+ Div: sE,
+ DocumentWrapper: jF,
+ EmptyTabContent: Sl,
+ ErrorFormatter: Gw,
+ FlexBar: wl,
+ Form: uo,
+ H1: uE,
+ H2: Hd,
+ H3: Ud,
+ H4: cE,
+ H5: dE,
+ H6: pE,
+ HR: fE,
+ IconButton: $r,
+ Img: gE,
+ LI: mE,
+ Link: Jn,
+ ListItem: eS,
+ Loader: sS,
+ Modal: Z_,
+ OL: hE,
+ P: yE,
+ Placeholder: o4,
+ Pre: bE,
+ ProgressSpinner: zT,
+ ResetWrapper: Md,
+ get ScrollArea() {
+ return Yo;
+ },
+ Separator: up,
+ Spaced: e4,
+ Span: vE,
+ StorybookIcon: TT,
+ StorybookLogo: _T,
+ SyntaxHighlighter: ml,
+ TT: xE,
+ TabBar: lp,
+ TabButton: ca,
+ TabWrapper: $T,
+ Table: EE,
+ Tabs: sp,
+ TabsState: lS,
+ TooltipLinkList: tS,
+ TooltipMessage: X4,
+ TooltipNote: J4,
+ UL: wE,
+ WithTooltip: U4,
+ WithTooltipPure: Qw,
+ Zoom: qw,
+ codeCommon: cr,
+ components: dS,
+ createCopyToClipboardFunction: vi,
+ getStoryHref: cS,
+ interleaveSeparators: DT,
+ nameSpaceClassNames: ve,
+ resetComponents: pS,
+ withReset: we,
+ },
+ Symbol.toStringTag,
+ { value: "Module" },
+ ),
+);
+var VT = b.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, n) =>
+ b.createElement(
+ "svg",
+ {
+ width: t,
+ height: t,
+ viewBox: "0 0 14 14",
+ fill: "none",
+ xmlns: "http://www.w3.org/2000/svg",
+ ref: n,
+ ...r,
+ },
+ b.createElement("path", {
+ d: "M6 3.5a.5.5 0 01.5.5v1.5H8a.5.5 0 010 1H6.5V8a.5.5 0 01-1 0V6.5H4a.5.5 0 010-1h1.5V4a.5.5 0 01.5-.5z",
+ fill: e,
+ }),
+ b.createElement("path", {
+ fillRule: "evenodd",
+ clipRule: "evenodd",
+ d: "M9.544 10.206a5.5 5.5 0 11.662-.662.5.5 0 01.148.102l3 3a.5.5 0 01-.708.708l-3-3a.5.5 0 01-.102-.148zM10.5 6a4.5 4.5 0 11-9 0 4.5 4.5 0 019 0z",
+ fill: e,
+ }),
+ ),
+ ),
+ qT = b.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, n) =>
+ b.createElement(
+ "svg",
+ {
+ width: t,
+ height: t,
+ viewBox: "0 0 14 14",
+ fill: "none",
+ xmlns: "http://www.w3.org/2000/svg",
+ ref: n,
+ ...r,
+ },
+ b.createElement("path", {
+ d: "M4 5.5a.5.5 0 000 1h4a.5.5 0 000-1H4z",
+ fill: e,
+ }),
+ b.createElement("path", {
+ fillRule: "evenodd",
+ clipRule: "evenodd",
+ d: "M6 11.5c1.35 0 2.587-.487 3.544-1.294a.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 106 11.5zm0-1a4.5 4.5 0 100-9 4.5 4.5 0 000 9z",
+ fill: e,
+ }),
+ ),
+ ),
+ GT = b.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, n) =>
+ b.createElement(
+ "svg",
+ {
+ width: t,
+ height: t,
+ viewBox: "0 0 14 14",
+ fill: "none",
+ xmlns: "http://www.w3.org/2000/svg",
+ ref: n,
+ ...r,
+ },
+ b.createElement("path", {
+ d: "M1.5 2.837V1.5a.5.5 0 00-1 0V4a.5.5 0 00.5.5h2.5a.5.5 0 000-1H2.258a4.5 4.5 0 11-.496 4.016.5.5 0 10-.942.337 5.502 5.502 0 008.724 2.353.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 101.5 2.837z",
+ fill: e,
+ }),
+ ),
+ ),
+ YT = b.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, n) =>
+ b.createElement(
+ "svg",
+ {
+ width: t,
+ height: t,
+ viewBox: "0 0 14 14",
+ fill: "none",
+ xmlns: "http://www.w3.org/2000/svg",
+ ref: n,
+ ...r,
+ },
+ b.createElement("path", {
+ d: "M7 9.5a2.5 2.5 0 100-5 2.5 2.5 0 000 5z",
+ fill: e,
+ }),
+ b.createElement("path", {
+ fillRule: "evenodd",
+ clipRule: "evenodd",
+ d: "M14 7l-.21.293C13.669 7.465 10.739 11.5 7 11.5S.332 7.465.21 7.293L0 7l.21-.293C.331 6.536 3.261 2.5 7 2.5s6.668 4.036 6.79 4.207L14 7zM2.896 5.302A12.725 12.725 0 001.245 7c.296.37.874 1.04 1.65 1.698C4.043 9.67 5.482 10.5 7 10.5c1.518 0 2.958-.83 4.104-1.802A12.72 12.72 0 0012.755 7c-.297-.37-.875-1.04-1.65-1.698C9.957 4.33 8.517 3.5 7 3.5c-1.519 0-2.958.83-4.104 1.802z",
+ fill: e,
+ }),
+ ),
+ ),
+ KT = b.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, n) =>
+ b.createElement(
+ "svg",
+ {
+ width: t,
+ height: t,
+ viewBox: "0 0 14 14",
+ fill: "none",
+ xmlns: "http://www.w3.org/2000/svg",
+ ref: n,
+ ...r,
+ },
+ b.createElement("path", {
+ d: "M1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.708-.708l-11-11zM11.104 8.698c-.177.15-.362.298-.553.439l.714.714a13.25 13.25 0 002.526-2.558L14 7l-.21-.293C13.669 6.536 10.739 2.5 7 2.5c-.89 0-1.735.229-2.506.58l.764.763A4.859 4.859 0 017 3.5c1.518 0 2.958.83 4.104 1.802A12.724 12.724 0 0112.755 7a12.72 12.72 0 01-1.65 1.698zM.21 6.707c.069-.096 1.03-1.42 2.525-2.558l.714.714c-.191.141-.376.288-.553.439A12.725 12.725 0 001.245 7c.296.37.874 1.04 1.65 1.698C4.043 9.67 5.482 10.5 7 10.5a4.86 4.86 0 001.742-.344l.764.764c-.772.351-1.616.58-2.506.58C3.262 11.5.332 7.465.21 7.293L0 7l.21-.293z",
+ fill: e,
+ }),
+ b.createElement("path", {
+ d: "M4.5 7c0-.322.061-.63.172-.914l3.242 3.242A2.5 2.5 0 014.5 7zM9.328 7.914L6.086 4.672a2.5 2.5 0 013.241 3.241z",
+ fill: e,
+ }),
+ ),
+ ),
+ Xu = b.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, n) =>
+ b.createElement(
+ "svg",
+ {
+ width: t,
+ height: t,
+ viewBox: "0 0 14 14",
+ fill: "none",
+ xmlns: "http://www.w3.org/2000/svg",
+ ref: n,
+ ...r,
+ },
+ b.createElement("path", {
+ d: "M4 5.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5zM4.5 7.5a.5.5 0 000 1h5a.5.5 0 000-1h-5zM4 10.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5z",
+ fill: e,
+ }),
+ b.createElement("path", {
+ fillRule: "evenodd",
+ clipRule: "evenodd",
+ d: "M1.5 0a.5.5 0 00-.5.5v13a.5.5 0 00.5.5h11a.5.5 0 00.5-.5V3.207a.5.5 0 00-.146-.353L10.146.146A.5.5 0 009.793 0H1.5zM2 1h7.5v2a.5.5 0 00.5.5h2V13H2V1z",
+ fill: e,
+ }),
+ ),
+ ),
+ MN = b.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, n) =>
+ b.createElement(
+ "svg",
+ {
+ width: t,
+ height: t,
+ viewBox: "0 0 14 14",
+ fill: "none",
+ xmlns: "http://www.w3.org/2000/svg",
+ ref: n,
+ ...r,
+ },
+ b.createElement("path", {
+ d: "M8.982 1.632a.5.5 0 00-.964-.263l-3 11a.5.5 0 10.964.263l3-11zM3.32 3.616a.5.5 0 01.064.704L1.151 7l2.233 2.68a.5.5 0 11-.768.64l-2.5-3a.5.5 0 010-.64l2.5-3a.5.5 0 01.704-.064zM10.68 3.616a.5.5 0 00-.064.704L12.849 7l-2.233 2.68a.5.5 0 00.768.64l2.5-3a.5.5 0 000-.64l-2.5-3a.5.5 0 00-.704-.064z",
+ fill: e,
+ }),
+ ),
+ ),
+ XT = b.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, n) =>
+ b.createElement(
+ "svg",
+ {
+ width: t,
+ height: t,
+ viewBox: "0 0 14 14",
+ fill: "none",
+ xmlns: "http://www.w3.org/2000/svg",
+ ref: n,
+ ...r,
+ },
+ b.createElement("path", {
+ d: "M7 3a.5.5 0 01.5.5v3h3a.5.5 0 010 1h-3v3a.5.5 0 01-1 0v-3h-3a.5.5 0 010-1h3v-3A.5.5 0 017 3z",
+ fill: e,
+ }),
+ b.createElement("path", {
+ fillRule: "evenodd",
+ clipRule: "evenodd",
+ d: "M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",
+ fill: e,
+ }),
+ ),
+ ),
+ ZT = b.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, n) =>
+ b.createElement(
+ "svg",
+ {
+ width: t,
+ height: t,
+ viewBox: "0 0 14 14",
+ fill: "none",
+ xmlns: "http://www.w3.org/2000/svg",
+ ref: n,
+ ...r,
+ },
+ b.createElement("path", {
+ d: "M3.5 6.5a.5.5 0 000 1h7a.5.5 0 000-1h-7z",
+ fill: e,
+ }),
+ b.createElement("path", {
+ fillRule: "evenodd",
+ clipRule: "evenodd",
+ d: "M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",
+ fill: e,
+ }),
+ ),
+ ),
+ JT = b.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, n) =>
+ b.createElement(
+ "svg",
+ {
+ width: t,
+ height: t,
+ viewBox: "0 0 14 14",
+ fill: "none",
+ xmlns: "http://www.w3.org/2000/svg",
+ ref: n,
+ ...r,
+ },
+ b.createElement("path", {
+ d: "M11.841 2.159a2.25 2.25 0 00-3.182 0l-2.5 2.5a2.25 2.25 0 000 3.182.5.5 0 01-.707.707 3.25 3.25 0 010-4.596l2.5-2.5a3.25 3.25 0 014.596 4.596l-2.063 2.063a4.27 4.27 0 00-.094-1.32l1.45-1.45a2.25 2.25 0 000-3.182z",
+ fill: e,
+ }),
+ b.createElement("path", {
+ d: "M3.61 7.21c-.1-.434-.132-.88-.095-1.321L1.452 7.952a3.25 3.25 0 104.596 4.596l2.5-2.5a3.25 3.25 0 000-4.596.5.5 0 00-.707.707 2.25 2.25 0 010 3.182l-2.5 2.5A2.25 2.25 0 112.159 8.66l1.45-1.45z",
+ fill: e,
+ }),
+ ),
+ ),
+ QT = b.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, n) =>
+ b.createElement(
+ "svg",
+ {
+ width: t,
+ height: t,
+ viewBox: "0 0 14 14",
+ fill: "none",
+ xmlns: "http://www.w3.org/2000/svg",
+ ref: n,
+ ...r,
+ },
+ b.createElement("path", {
+ d: "M1.146 4.604l5.5 5.5a.5.5 0 00.708 0l5.5-5.5a.5.5 0 00-.708-.708L7 9.043 1.854 3.896a.5.5 0 10-.708.708z",
+ fill: e,
+ }),
+ ),
+ ),
+ eR = b.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, n) =>
+ b.createElement(
+ "svg",
+ {
+ width: t,
+ height: t,
+ viewBox: "0 0 14 14",
+ fill: "none",
+ xmlns: "http://www.w3.org/2000/svg",
+ ref: n,
+ ...r,
+ },
+ b.createElement("path", {
+ d: "M11.104 7.354l-5.5 5.5a.5.5 0 01-.708-.708L10.043 7 4.896 1.854a.5.5 0 11.708-.708l5.5 5.5a.5.5 0 010 .708z",
+ fill: e,
+ }),
+ ),
+ ),
+ tR = b.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, n) =>
+ b.createElement(
+ "svg",
+ {
+ width: t,
+ height: t,
+ viewBox: "0 0 14 14",
+ fill: "none",
+ xmlns: "http://www.w3.org/2000/svg",
+ ref: n,
+ ...r,
+ },
+ b.createElement("path", {
+ d: "M3.854 9.104a.5.5 0 11-.708-.708l3.5-3.5a.5.5 0 01.708 0l3.5 3.5a.5.5 0 01-.708.708L7 5.957 3.854 9.104z",
+ fill: e,
+ }),
+ ),
+ ),
+ fS = b.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, n) =>
+ b.createElement(
+ "svg",
+ {
+ width: t,
+ height: t,
+ viewBox: "0 0 14 14",
+ fill: "none",
+ xmlns: "http://www.w3.org/2000/svg",
+ ref: n,
+ ...r,
+ },
+ b.createElement("path", {
+ d: "M3.854 4.896a.5.5 0 10-.708.708l3.5 3.5a.5.5 0 00.708 0l3.5-3.5a.5.5 0 00-.708-.708L7 8.043 3.854 4.896z",
+ fill: e,
+ }),
+ ),
+ ),
+ rR = b.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, n) =>
+ b.createElement(
+ "svg",
+ {
+ width: t,
+ height: t,
+ viewBox: "0 0 14 14",
+ fill: "none",
+ xmlns: "http://www.w3.org/2000/svg",
+ ref: n,
+ ...r,
+ },
+ b.createElement("path", {
+ d: "M1.146 3.854a.5.5 0 010-.708l2-2a.5.5 0 11.708.708L2.707 3h6.295A4 4 0 019 11H3a.5.5 0 010-1h6a3 3 0 100-6H2.707l1.147 1.146a.5.5 0 11-.708.708l-2-2z",
+ fill: e,
+ }),
+ ),
+ );
+function nR(e) {
+ for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
+ var n = Array.from(typeof e == "string" ? [e] : e);
+ n[n.length - 1] = n[n.length - 1].replace(/\r?\n([\t ]*)$/, "");
+ var o = n.reduce(function (l, s) {
+ var u = s.match(/\n([\t ]+|(?!\s).)/g);
+ return u
+ ? l.concat(
+ u.map(function (d) {
+ var p, c;
+ return (c =
+ (p = d.match(/[\t ]/g)) === null || p === void 0
+ ? void 0
+ : p.length) !== null && c !== void 0
+ ? c
+ : 0;
+ }),
+ )
+ : l;
+ }, []);
+ if (o.length) {
+ var a = new RegExp(
+ `
+[ ]{` +
+ Math.min.apply(Math, o) +
+ "}",
+ "g",
+ );
+ n = n.map(function (l) {
+ return l.replace(
+ a,
+ `
+`,
+ );
+ });
+ }
+ n[0] = n[0].replace(/^\r?\n/, "");
+ var i = n[0];
+ return (
+ t.forEach(function (l, s) {
+ var u = i.match(/(?:^|\n)( *)$/),
+ d = u ? u[1] : "",
+ p = l;
+ (typeof l == "string" &&
+ l.includes(`
+`) &&
+ (p = String(l)
+ .split(
+ `
+`,
+ )
+ .map(function (c, f) {
+ return f === 0 ? c : "" + d + c;
+ }).join(`
+`)),
+ (i += p + n[s + 1]));
+ }),
+ i
+ );
+}
+const {
+ deprecate: oR,
+ once: aR,
+ logger: cp,
+ } = __STORYBOOK_MODULE_CLIENT_LOGGER__,
+ {
+ NAVIGATE_URL: gS,
+ STORY_ARGS_UPDATED: Am,
+ UPDATE_STORY_ARGS: iR,
+ RESET_STORY_ARGS: lR,
+ GLOBALS_UPDATED: Dm,
+ } = __STORYBOOK_MODULE_CORE_EVENTS__,
+ {
+ filterArgTypes: km,
+ composeConfigs: zN,
+ Preview: HN,
+ DocsContext: UN,
+ } = __STORYBOOK_MODULE_PREVIEW_API__,
+ { Channel: WN } = __STORYBOOK_MODULE_CHANNELS__;
+var sR = aD({
+ "../../node_modules/memoizerific/memoizerific.js"(e, t) {
+ (function (r) {
+ if (typeof e == "object" && typeof t < "u") t.exports = r();
+ else if (typeof define == "function" && define.amd) define([], r);
+ else {
+ var n;
+ (typeof window < "u"
+ ? (n = window)
+ : typeof global < "u"
+ ? (n = global)
+ : typeof self < "u"
+ ? (n = self)
+ : (n = this),
+ (n.memoizerific = r()));
+ }
+ })(function () {
+ return (function r(n, o, a) {
+ function i(u, d) {
+ if (!o[u]) {
+ if (!n[u]) {
+ var p = typeof ya == "function" && ya;
+ if (!d && p) return p(u, !0);
+ if (l) return l(u, !0);
+ var c = new Error("Cannot find module '" + u + "'");
+ throw ((c.code = "MODULE_NOT_FOUND"), c);
+ }
+ var f = (o[u] = { exports: {} });
+ n[u][0].call(
+ f.exports,
+ function (g) {
+ var y = n[u][1][g];
+ return i(y || g);
+ },
+ f,
+ f.exports,
+ r,
+ n,
+ o,
+ a,
+ );
+ }
+ return o[u].exports;
+ }
+ for (var l = typeof ya == "function" && ya, s = 0; s < a.length; s++)
+ i(a[s]);
+ return i;
+ })(
+ {
+ 1: [
+ function (r, n, o) {
+ n.exports = function (a) {
+ if (typeof Map != "function" || a) {
+ var i = r("./similar");
+ return new i();
+ } else return new Map();
+ };
+ },
+ { "./similar": 2 },
+ ],
+ 2: [
+ function (r, n, o) {
+ function a() {
+ return (
+ (this.list = []),
+ (this.lastItem = void 0),
+ (this.size = 0),
+ this
+ );
+ }
+ ((a.prototype.get = function (i) {
+ var l;
+ if (this.lastItem && this.isEqual(this.lastItem.key, i))
+ return this.lastItem.val;
+ if (((l = this.indexOf(i)), l >= 0))
+ return ((this.lastItem = this.list[l]), this.list[l].val);
+ }),
+ (a.prototype.set = function (i, l) {
+ var s;
+ return this.lastItem && this.isEqual(this.lastItem.key, i)
+ ? ((this.lastItem.val = l), this)
+ : ((s = this.indexOf(i)),
+ s >= 0
+ ? ((this.lastItem = this.list[s]),
+ (this.list[s].val = l),
+ this)
+ : ((this.lastItem = { key: i, val: l }),
+ this.list.push(this.lastItem),
+ this.size++,
+ this));
+ }),
+ (a.prototype.delete = function (i) {
+ var l;
+ if (
+ (this.lastItem &&
+ this.isEqual(this.lastItem.key, i) &&
+ (this.lastItem = void 0),
+ (l = this.indexOf(i)),
+ l >= 0)
+ )
+ return (this.size--, this.list.splice(l, 1)[0]);
+ }),
+ (a.prototype.has = function (i) {
+ var l;
+ return this.lastItem && this.isEqual(this.lastItem.key, i)
+ ? !0
+ : ((l = this.indexOf(i)),
+ l >= 0 ? ((this.lastItem = this.list[l]), !0) : !1);
+ }),
+ (a.prototype.forEach = function (i, l) {
+ var s;
+ for (s = 0; s < this.size; s++)
+ i.call(l || this, this.list[s].val, this.list[s].key, this);
+ }),
+ (a.prototype.indexOf = function (i) {
+ var l;
+ for (l = 0; l < this.size; l++)
+ if (this.isEqual(this.list[l].key, i)) return l;
+ return -1;
+ }),
+ (a.prototype.isEqual = function (i, l) {
+ return i === l || (i !== i && l !== l);
+ }),
+ (n.exports = a));
+ },
+ {},
+ ],
+ 3: [
+ function (r, n, o) {
+ var a = r("map-or-similar");
+ n.exports = function (u) {
+ var d = new a(!1),
+ p = [];
+ return function (c) {
+ var f = function () {
+ var g = d,
+ y,
+ x,
+ v = arguments.length - 1,
+ C = Array(v + 1),
+ w = !0,
+ E;
+ if ((f.numArgs || f.numArgs === 0) && f.numArgs !== v + 1)
+ throw new Error(
+ "Memoizerific functions should always be called with the same number of arguments",
+ );
+ for (E = 0; E < v; E++) {
+ if (
+ ((C[E] = { cacheItem: g, arg: arguments[E] }),
+ g.has(arguments[E]))
+ ) {
+ g = g.get(arguments[E]);
+ continue;
+ }
+ ((w = !1),
+ (y = new a(!1)),
+ g.set(arguments[E], y),
+ (g = y));
+ }
+ return (
+ w &&
+ (g.has(arguments[v])
+ ? (x = g.get(arguments[v]))
+ : (w = !1)),
+ w ||
+ ((x = c.apply(null, arguments)),
+ g.set(arguments[v], x)),
+ u > 0 &&
+ ((C[v] = { cacheItem: g, arg: arguments[v] }),
+ w ? i(p, C) : p.push(C),
+ p.length > u && l(p.shift())),
+ (f.wasMemoized = w),
+ (f.numArgs = v + 1),
+ x
+ );
+ };
+ return (
+ (f.limit = u),
+ (f.wasMemoized = !1),
+ (f.cache = d),
+ (f.lru = p),
+ f
+ );
+ };
+ };
+ function i(u, d) {
+ var p = u.length,
+ c = d.length,
+ f,
+ g,
+ y;
+ for (g = 0; g < p; g++) {
+ for (f = !0, y = 0; y < c; y++)
+ if (!s(u[g][y].arg, d[y].arg)) {
+ f = !1;
+ break;
+ }
+ if (f) break;
+ }
+ u.push(u.splice(g, 1)[0]);
+ }
+ function l(u) {
+ var d = u.length,
+ p = u[d - 1],
+ c,
+ f;
+ for (
+ p.cacheItem.delete(p.arg), f = d - 2;
+ f >= 0 &&
+ ((p = u[f]), (c = p.cacheItem.get(p.arg)), !c || !c.size);
+ f--
+ )
+ p.cacheItem.delete(p.arg);
+ }
+ function s(u, d) {
+ return u === d || (u !== u && d !== d);
+ }
+ },
+ { "map-or-similar": 1 },
+ ],
+ },
+ {},
+ [3],
+ )(3);
+ });
+ },
+});
+function et() {
+ return (
+ (et = 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;
+ }),
+ et.apply(null, arguments)
+ );
+}
+function uR(e) {
+ if (e === void 0)
+ throw new ReferenceError(
+ "this hasn't been initialised - super() hasn't been called",
+ );
+ return e;
+}
+function Jo(e, t) {
+ return (
+ (Jo = Object.setPrototypeOf
+ ? Object.setPrototypeOf.bind()
+ : function (r, n) {
+ return ((r.__proto__ = n), r);
+ }),
+ Jo(e, t)
+ );
+}
+function cR(e, t) {
+ ((e.prototype = Object.create(t.prototype)),
+ (e.prototype.constructor = e),
+ Jo(e, t));
+}
+function Zu(e) {
+ return (
+ (Zu = Object.setPrototypeOf
+ ? Object.getPrototypeOf.bind()
+ : function (t) {
+ return t.__proto__ || Object.getPrototypeOf(t);
+ }),
+ Zu(e)
+ );
+}
+function dR(e) {
+ try {
+ return Function.toString.call(e).indexOf("[native code]") !== -1;
+ } catch {
+ return typeof e == "function";
+ }
+}
+function mS() {
+ try {
+ var e = !Boolean.prototype.valueOf.call(
+ Reflect.construct(Boolean, [], function () {}),
+ );
+ } catch {}
+ return (mS = function () {
+ return !!e;
+ })();
+}
+function pR(e, t, r) {
+ if (mS()) return Reflect.construct.apply(null, arguments);
+ var n = [null];
+ n.push.apply(n, t);
+ var o = new (e.bind.apply(e, n))();
+ return (r && Jo(o, r.prototype), o);
+}
+function Ju(e) {
+ var t = typeof Map == "function" ? new Map() : void 0;
+ return (
+ (Ju = function (r) {
+ if (r === null || !dR(r)) return r;
+ if (typeof r != "function")
+ throw new TypeError(
+ "Super expression must either be null or a function",
+ );
+ if (t !== void 0) {
+ if (t.has(r)) return t.get(r);
+ t.set(r, n);
+ }
+ function n() {
+ return pR(r, arguments, Zu(this).constructor);
+ }
+ return (
+ (n.prototype = Object.create(r.prototype, {
+ constructor: {
+ value: n,
+ enumerable: !1,
+ writable: !0,
+ configurable: !0,
+ },
+ })),
+ Jo(n, r)
+ );
+ }),
+ Ju(e)
+ );
+}
+var fR = {
+ 1: `Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).
-`,2:`Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).
+`,
+ 2: `Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).
-`,3:`Passed an incorrect argument to a color function, please pass a string representation of a color.
+`,
+ 3: `Passed an incorrect argument to a color function, please pass a string representation of a color.
-`,4:`Couldn't generate valid rgb string from %s, it returned %s.
+`,
+ 4: `Couldn't generate valid rgb string from %s, it returned %s.
-`,5:`Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.
+`,
+ 5: `Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.
-`,6:`Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).
+`,
+ 6: `Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).
-`,7:`Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).
+`,
+ 7: `Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).
-`,8:`Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.
+`,
+ 8: `Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.
-`,9:`Please provide a number of steps to the modularScale helper.
+`,
+ 9: `Please provide a number of steps to the modularScale helper.
-`,10:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio.
+`,
+ 10: `Please pass a number or one of the predefined scales to the modularScale helper as the ratio.
-`,11:`Invalid value passed as base to modularScale, expected number or em string but got "%s"
+`,
+ 11: `Invalid value passed as base to modularScale, expected number or em string but got "%s"
-`,12:`Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead.
+`,
+ 12: `Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead.
-`,13:`Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead.
+`,
+ 13: `Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead.
-`,14:`Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12.
+`,
+ 14: `Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12.
-`,15:`Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12.
+`,
+ 15: `Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12.
-`,16:`You must provide a template to this method.
+`,
+ 16: `You must provide a template to this method.
-`,17:`You passed an unsupported selector state to this method.
+`,
+ 17: `You passed an unsupported selector state to this method.
-`,18:`minScreen and maxScreen must be provided as stringified numbers with the same units.
+`,
+ 18: `minScreen and maxScreen must be provided as stringified numbers with the same units.
-`,19:`fromSize and toSize must be provided as stringified numbers with the same units.
+`,
+ 19: `fromSize and toSize must be provided as stringified numbers with the same units.
-`,20:`expects either an array of objects or a single object with the properties prop, fromSize, and toSize.
+`,
+ 20: `expects either an array of objects or a single object with the properties prop, fromSize, and toSize.
-`,21:"expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",22:"expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",23:`fontFace expects a name of a font-family.
+`,
+ 21: "expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",
+ 22: "expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",
+ 23: `fontFace expects a name of a font-family.
-`,24:`fontFace expects either the path to the font file(s) or a name of a local copy.
+`,
+ 24: `fontFace expects either the path to the font file(s) or a name of a local copy.
-`,25:`fontFace expects localFonts to be an array.
+`,
+ 25: `fontFace expects localFonts to be an array.
-`,26:`fontFace expects fileFormats to be an array.
+`,
+ 26: `fontFace expects fileFormats to be an array.
-`,27:`radialGradient requries at least 2 color-stops to properly render.
+`,
+ 27: `radialGradient requries at least 2 color-stops to properly render.
-`,28:`Please supply a filename to retinaImage() as the first argument.
+`,
+ 28: `Please supply a filename to retinaImage() as the first argument.
-`,29:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.
+`,
+ 29: `Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.
-`,30:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",31:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation
+`,
+ 30: "Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",
+ 31: `The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation
-`,32:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])
+`,
+ 32: `To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])
To pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')
-`,33:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation
+`,
+ 33: `The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation
-`,34:`borderRadius expects a radius value as a string or number as the second argument.
+`,
+ 34: `borderRadius expects a radius value as a string or number as the second argument.
-`,35:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.
+`,
+ 35: `borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.
-`,36:`Property must be a string value.
+`,
+ 36: `Property must be a string value.
-`,37:`Syntax Error at %s.
+`,
+ 37: `Syntax Error at %s.
-`,38:`Formula contains a function that needs parentheses at %s.
+`,
+ 38: `Formula contains a function that needs parentheses at %s.
-`,39:`Formula is missing closing parenthesis at %s.
+`,
+ 39: `Formula is missing closing parenthesis at %s.
-`,40:`Formula has too many closing parentheses at %s.
+`,
+ 40: `Formula has too many closing parentheses at %s.
-`,41:`All values in a formula must have the same unit or be unitless.
+`,
+ 41: `All values in a formula must have the same unit or be unitless.
-`,42:`Please provide a number of steps to the modularScale helper.
+`,
+ 42: `Please provide a number of steps to the modularScale helper.
-`,43:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio.
+`,
+ 43: `Please pass a number or one of the predefined scales to the modularScale helper as the ratio.
-`,44:`Invalid value passed as base to modularScale, expected number or em/rem string but got %s.
+`,
+ 44: `Invalid value passed as base to modularScale, expected number or em/rem string but got %s.
-`,45:`Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.
+`,
+ 45: `Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.
-`,46:`Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.
+`,
+ 46: `Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.
-`,47:`minScreen and maxScreen must be provided as stringified numbers with the same units.
+`,
+ 47: `minScreen and maxScreen must be provided as stringified numbers with the same units.
-`,48:`fromSize and toSize must be provided as stringified numbers with the same units.
+`,
+ 48: `fromSize and toSize must be provided as stringified numbers with the same units.
-`,49:`Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.
+`,
+ 49: `Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.
-`,50:`Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.
+`,
+ 50: `Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.
-`,51:`Expects the first argument object to have the properties prop, fromSize, and toSize.
+`,
+ 51: `Expects the first argument object to have the properties prop, fromSize, and toSize.
-`,52:`fontFace expects either the path to the font file(s) or a name of a local copy.
+`,
+ 52: `fontFace expects either the path to the font file(s) or a name of a local copy.
-`,53:`fontFace expects localFonts to be an array.
+`,
+ 53: `fontFace expects localFonts to be an array.
-`,54:`fontFace expects fileFormats to be an array.
+`,
+ 54: `fontFace expects fileFormats to be an array.
-`,55:`fontFace expects a name of a font-family.
+`,
+ 55: `fontFace expects a name of a font-family.
-`,56:`linearGradient requries at least 2 color-stops to properly render.
+`,
+ 56: `linearGradient requries at least 2 color-stops to properly render.
-`,57:`radialGradient requries at least 2 color-stops to properly render.
+`,
+ 57: `radialGradient requries at least 2 color-stops to properly render.
-`,58:`Please supply a filename to retinaImage() as the first argument.
+`,
+ 58: `Please supply a filename to retinaImage() as the first argument.
-`,59:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.
+`,
+ 59: `Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.
-`,60:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",61:`Property must be a string value.
+`,
+ 60: "Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",
+ 61: `Property must be a string value.
-`,62:`borderRadius expects a radius value as a string or number as the second argument.
+`,
+ 62: `borderRadius expects a radius value as a string or number as the second argument.
-`,63:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.
+`,
+ 63: `borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.
-`,64:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.
+`,
+ 64: `The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.
-`,65:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s').
+`,
+ 65: `To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s').
-`,66:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.
+`,
+ 66: `The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.
-`,67:`You must provide a template to this method.
+`,
+ 67: `You must provide a template to this method.
-`,68:`You passed an unsupported selector state to this method.
+`,
+ 68: `You passed an unsupported selector state to this method.
-`,69:`Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead.
+`,
+ 69: `Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead.
-`,70:`Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead.
+`,
+ 70: `Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead.
-`,71:`Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12.
+`,
+ 71: `Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12.
-`,72:`Passed invalid base value %s to %s(), please pass a value like "12px" or 12.
+`,
+ 72: `Passed invalid base value %s to %s(), please pass a value like "12px" or 12.
-`,73:`Please provide a valid CSS variable.
+`,
+ 73: `Please provide a valid CSS variable.
-`,74:`CSS variable not found and no default was provided.
+`,
+ 74: `CSS variable not found and no default was provided.
-`,75:`important requires a valid style object, got a %s instead.
+`,
+ 75: `important requires a valid style object, got a %s instead.
-`,76:`fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.
+`,
+ 76: `fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.
-`,77:`remToPx expects a value in "rem" but you provided it in "%s".
+`,
+ 77: `remToPx expects a value in "rem" but you provided it in "%s".
-`,78:`base must be set in "px" or "%" but you set it in "%s".
-`};function gR(){for(var e=arguments.length,t=new Array(e),r=0;r1?o-1:0),i=1;i=0&&o<1?(l=a,s=i):o>=1&&o<2?(l=i,s=a):o>=2&&o<3?(s=a,u=i):o>=3&&o<4?(s=i,u=a):o>=4&&o<5?(l=i,u=a):o>=5&&o<6&&(l=a,u=i);var d=r-a/2,p=l+d,c=s+d,f=u+d;return n(p,c,f)}var Om={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function hR(e){if(typeof e!="string")return e;var t=e.toLowerCase();return Om[t]?"#"+Om[t]:e}var yR=/^#[a-fA-F0-9]{6}$/,bR=/^#[a-fA-F0-9]{8}$/,vR=/^#[a-fA-F0-9]{3}$/,xR=/^#[a-fA-F0-9]{4}$/,xs=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,ER=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,wR=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,SR=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function to(e){if(typeof e!="string")throw new Ht(3);var t=hR(e);if(t.match(yR))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(bR)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(vR))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(xR)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var o=xs.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=ER.exec(t.substring(0,50));if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])>1?parseFloat(""+a[4])/100:parseFloat(""+a[4])};var i=wR.exec(t);if(i){var l=parseInt(""+i[1],10),s=parseInt(""+i[2],10)/100,u=parseInt(""+i[3],10)/100,d="rgb("+Di(l,s,u)+")",p=xs.exec(d);if(!p)throw new Ht(4,t,d);return{red:parseInt(""+p[1],10),green:parseInt(""+p[2],10),blue:parseInt(""+p[3],10)}}var c=SR.exec(t.substring(0,50));if(c){var f=parseInt(""+c[1],10),g=parseInt(""+c[2],10)/100,y=parseInt(""+c[3],10)/100,x="rgb("+Di(f,g,y)+")",v=xs.exec(x);if(!v)throw new Ht(4,t,x);return{red:parseInt(""+v[1],10),green:parseInt(""+v[2],10),blue:parseInt(""+v[3],10),alpha:parseFloat(""+c[4])>1?parseFloat(""+c[4])/100:parseFloat(""+c[4])}}throw new Ht(5)}function CR(e){var t=e.red/255,r=e.green/255,n=e.blue/255,o=Math.max(t,r,n),a=Math.min(t,r,n),i=(o+a)/2;if(o===a)return e.alpha!==void 0?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var l,s=o-a,u=i>.5?s/(2-o-a):s/(o+a);switch(o){case t:l=(r-n)/s+(r=1?hS(e.hue,e.saturation,e.lightness):"rgba("+Di(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Ht(2)}function yS(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return Qu("#"+Mr(e)+Mr(t)+Mr(r));if(typeof e=="object"&&t===void 0&&r===void 0)return Qu("#"+Mr(e.red)+Mr(e.green)+Mr(e.blue));throw new Ht(6)}function jt(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var o=to(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}else if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?yS(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new Ht(7)}var OR=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},FR=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},_R=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},TR=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function Rr(e){if(typeof e!="object")throw new Ht(8);if(FR(e))return jt(e);if(OR(e))return yS(e);if(TR(e))return kR(e);if(_R(e))return DR(e);throw new Ht(8)}function bS(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):bS(e,t,n)}}function ct(e){return bS(e,e.length,[])}function RR(e,t){if(t==="transparent")return t;var r=Tr(t);return Rr(et({},r,{hue:r.hue+parseFloat(e)}))}ct(RR);function co(e,t,r){return Math.max(e,Math.min(t,r))}function PR(e,t){if(t==="transparent")return t;var r=Tr(t);return Rr(et({},r,{lightness:co(0,1,r.lightness-parseFloat(e))}))}var IR=ct(PR),Bt=IR;function LR(e,t){if(t==="transparent")return t;var r=Tr(t);return Rr(et({},r,{saturation:co(0,1,r.saturation-parseFloat(e))}))}ct(LR);function BR(e,t){if(t==="transparent")return t;var r=Tr(t);return Rr(et({},r,{lightness:co(0,1,r.lightness+parseFloat(e))}))}var NR=ct(BR),zr=NR;function jR(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var n=to(t),o=et({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),a=to(r),i=et({},a,{alpha:typeof a.alpha=="number"?a.alpha:1}),l=o.alpha-i.alpha,s=parseFloat(e)*2-1,u=s*l===-1?s:s+l,d=1+s*l,p=(u/d+1)/2,c=1-p,f={red:Math.floor(o.red*p+i.red*c),green:Math.floor(o.green*p+i.green*c),blue:Math.floor(o.blue*p+i.blue*c),alpha:o.alpha*parseFloat(e)+i.alpha*(1-parseFloat(e))};return jt(f)}var MR=ct(jR),vS=MR;function zR(e,t){if(t==="transparent")return t;var r=to(t),n=typeof r.alpha=="number"?r.alpha:1,o=et({},r,{alpha:co(0,1,(n*100+parseFloat(e)*100)/100)});return jt(o)}var HR=ct(zR),Oa=HR;function UR(e,t){if(t==="transparent")return t;var r=Tr(t);return Rr(et({},r,{saturation:co(0,1,r.saturation+parseFloat(e))}))}ct(UR);function WR(e,t){return t==="transparent"?t:Rr(et({},Tr(t),{hue:parseFloat(e)}))}ct(WR);function VR(e,t){return t==="transparent"?t:Rr(et({},Tr(t),{lightness:parseFloat(e)}))}ct(VR);function qR(e,t){return t==="transparent"?t:Rr(et({},Tr(t),{saturation:parseFloat(e)}))}ct(qR);function GR(e,t){return t==="transparent"?t:vS(parseFloat(e),"rgb(0, 0, 0)",t)}ct(GR);function YR(e,t){return t==="transparent"?t:vS(parseFloat(e),"rgb(255, 255, 255)",t)}ct(YR);function KR(e,t){if(t==="transparent")return t;var r=to(t),n=typeof r.alpha=="number"?r.alpha:1,o=et({},r,{alpha:co(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return jt(o)}var XR=ct(KR),ye=XR,ZR=T.div(we,({theme:e})=>({backgroundColor:e.base==="light"?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:e.appBorderRadius,border:`1px dashed ${e.appBorderColor}`,display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:ye(.3,e.color.defaultText),fontSize:e.typography.size.s2})),xS=e=>h.createElement(ZR,{...e,className:"docblock-emptyblock sb-unstyled"}),JR=T(ml)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),QR=T.div(({theme:e})=>({background:e.background.content,borderRadius:e.appBorderRadius,border:`1px solid ${e.appBorderColor}`,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"})),Fa=T.div(({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${gu}`]:{margin:0}})),e6=()=>h.createElement(QR,null,h.createElement(Fa,null),h.createElement(Fa,{style:{width:"80%"}}),h.createElement(Fa,{style:{width:"30%"}}),h.createElement(Fa,{style:{width:"80%"}})),ES=({isLoading:e,error:t,language:r,code:n,dark:o,format:a=!0,...i})=>{let{typography:l}=Mb();if(e)return h.createElement(e6,null);if(t)return h.createElement(xS,null,t);let s=h.createElement(JR,{bordered:!0,copyable:!0,format:a,language:r??"jsx",className:"docblock-source sb-unstyled",...i},n);if(typeof o>"u")return s;let u=o?pu.dark:pu.light;return h.createElement(zb,{theme:fu({...u,fontCode:l.fonts.mono,fontBase:l.fonts.base})},s)},Oe=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,dp=600,t6=T.h1(we,({theme:e})=>({color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${dp}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),r6=T.h2(we,({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${dp}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:ye(.25,e.color.defaultText)})),n6=T.div(({theme:e})=>{let t={fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},r={margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& code":{fontSize:"inherit"}},n={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?ye(.1,e.color.defaultText):ye(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",minWidth:0,[Oe("a")]:{...t,fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}},[Oe("blockquote")]:{...t,margin:"16px 0",borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[Oe("div")]:t,[Oe("dl")]:{...t,margin:"16px 0",padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[Oe("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[Oe("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[Oe("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[Oe("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[Oe("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[Oe("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[Oe("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[Oe("img")]:{maxWidth:"100%"},[Oe("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[Oe("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[Oe("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[Oe("pre")]:{...t,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}},[Oe("span")]:{...t,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}},[Oe("table")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[Oe("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),o6=T.div(({theme:e})=>({background:e.background.content,display:"flex",flexDirection:"row-reverse",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${dp}px)`]:{}})),a6=({children:e,toc:t})=>h.createElement(o6,{className:"sbdocs sbdocs-wrapper"},t,h.createElement(n6,{className:"sbdocs sbdocs-content"},e)),Cl=e=>({borderRadius:e.appBorderRadius,background:e.background.content,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${e.appBorderColor}`}),{window:i6}=globalThis,l6=class extends b.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=i6.document.getElementById(e)}shouldComponentUpdate(e){let{scale:t}=e;return t!==this.props.scale&&this.setIframeBodyStyle({width:`${t*100}%`,height:`${t*100}%`,transform:`scale(${1/t})`,transformOrigin:"top left"}),!1}setIframeBodyStyle(e){return Object.assign(this.iframe.contentDocument.body.style,e)}render(){let{id:e,title:t,src:r,allowFullScreen:n,scale:o,...a}=this.props;return h.createElement("iframe",{id:e,title:t,src:r,...n?{allow:"fullscreen"}:{},loading:"lazy",...a})}},wS=b.createContext({scale:1}),{PREVIEW_URL:s6}=globalThis,u6=s6||"iframe.html",ec=({story:e,primary:t})=>`story--${e.id}${t?"--primary":""}`,c6=e=>{let t=b.useRef(),[r,n]=b.useState(!0),[o,a]=b.useState(),{story:i,height:l,autoplay:s,forceInitialArgs:u,renderStoryToElement:d}=e;return b.useEffect(()=>{if(!(i&&t.current))return()=>{};let p=t.current,c=d(i,p,{showMain:()=>{},showError:({title:f,description:g})=>a(new Error(`${f} - ${g}`)),showException:f=>a(f)},{autoplay:s,forceInitialArgs:u});return n(!1),()=>{Promise.resolve().then(()=>c())}},[s,d,i]),o?h.createElement("pre",null,h.createElement(Gw,{error:o})):h.createElement(h.Fragment,null,l?h.createElement("style",null,`#${ec(e)} { min-height: ${l}; transform: translateZ(0); overflow: auto }`):null,r&&h.createElement(SS,null),h.createElement("div",{ref:t,id:`${ec(e)}-inner`,"data-name":i.name}))},d6=({story:e,height:t="500px"})=>h.createElement("div",{style:{width:"100%",height:t}},h.createElement(wS.Consumer,null,({scale:r})=>h.createElement(l6,{key:"iframe",id:`iframe--${e.id}`,title:e.name,src:cS(u6,e.id,{viewMode:"story"}),allowFullScreen:!0,scale:r,style:{width:"100%",height:"100%",border:"0 none"}}))),p6=T.strong(({theme:e})=>({color:e.color.orange})),f6=e=>{let{inline:t,story:r}=e;return t&&!e.autoplay&&r.usesMount?h.createElement(p6,null,"This story mounts inside of play. Set"," ",h.createElement("a",{href:"https://storybook.js.org/docs/api/doc-blocks/doc-block-story#autoplay"},"autoplay")," ","to true to view this story."):h.createElement("div",{id:ec(e),className:"sb-story sb-unstyled","data-story-block":"true"},t?h.createElement(c6,{...e}):h.createElement(d6,{...e}))},SS=()=>h.createElement(sS,null),g6=T(wl)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),m6=T.div({display:"flex",alignItems:"center",gap:4}),h6=T.div(({theme:e})=>({width:14,height:14,borderRadius:2,margin:"0 7px",backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),y6=({isLoading:e,storyId:t,baseUrl:r,zoom:n,resetZoom:o,...a})=>h.createElement(g6,{...a},h.createElement(m6,{key:"left"},e?[1,2,3].map(i=>h.createElement(h6,{key:i})):h.createElement(h.Fragment,null,h.createElement($r,{key:"zoomin",onClick:i=>{i.preventDefault(),n(.8)},title:"Zoom in"},h.createElement(VT,null)),h.createElement($r,{key:"zoomout",onClick:i=>{i.preventDefault(),n(1.25)},title:"Zoom out"},h.createElement(qT,null)),h.createElement($r,{key:"zoomreset",onClick:i=>{i.preventDefault(),o()},title:"Reset zoom"},h.createElement(GT,null))))),b6=T.div(({isColumn:e,columns:t,layout:r})=>({display:e||!t?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:e?"column":"row","& .innerZoomElementWrapper > *":e?{width:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"inline-block"}}),({layout:e="padded",inline:t})=>e==="centered"||e==="padded"?{padding:t?"32px 22px":"0px","& .innerZoomElementWrapper > *":{width:"auto",border:"8px solid transparent!important"}}:{},({layout:e="padded",inline:t})=>e==="centered"&&t?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{},({columns:e})=>e&&e>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${e} - 20px)`}}:{}),Fm=T(ES)(({theme:e})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:e.appBorderRadius,borderBottomRightRadius:e.appBorderRadius,border:"none",background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Bt(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Bt(.05,e.background.content)}})),v6=T.div(({theme:e,withSource:t,isExpanded:r})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...Cl(e),borderBottomLeftRadius:t&&r&&0,borderBottomRightRadius:t&&r&&0,borderBottomWidth:r&&0,"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40}),x6=(e,t,r)=>{switch(!0){case!!(e&&e.error):return{source:null,actionItem:{title:"No code available",className:"docblock-code-toggle docblock-code-toggle--disabled",disabled:!0,onClick:()=>r(!1)}};case t:return{source:h.createElement(Fm,{...e,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>r(!1)}};default:return{source:h.createElement(Fm,{...e,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>r(!0)}}}};function E6(e){if(b.Children.count(e)===1){let t=e;if(t.props)return t.props.id}return null}var w6=T(y6)({position:"absolute",top:0,left:0,right:0,height:40}),S6=T.div({overflow:"hidden",position:"relative"}),CS=({isLoading:e,isColumn:t,columns:r,children:n,withSource:o,withToolbar:a=!1,isExpanded:i=!1,additionalActions:l,className:s,layout:u="padded",inline:d=!1,...p})=>{let[c,f]=b.useState(i),{source:g,actionItem:y}=x6(o,c,f),[x,v]=b.useState(1),C=[s].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),w=o?[y]:[],[E,$]=b.useState(l?[...l]:[]),A=[...w,...E],{window:S}=globalThis,D=b.useCallback(async k=>{let{createCopyToClipboardFunction:_}=await cc(()=>Promise.resolve().then(()=>WT),void 0);_()},[]),F=k=>{let _=S.getSelection();_&&_.type==="Range"||(k.preventDefault(),E.filter(I=>I.title==="Copied").length===0&&D(g?.props.code??"").then(()=>{$([...E,{title:"Copied",onClick:()=>{}}]),S.setTimeout(()=>$(E.filter(I=>I.title!=="Copied")),1500)}))};return h.createElement(v6,{withSource:o,withToolbar:a,...p,className:C.join(" ")},a&&h.createElement(w6,{isLoading:e,border:!0,zoom:k=>v(x*k),resetZoom:()=>v(1),storyId:E6(n),baseUrl:"./iframe.html"}),h.createElement(wS.Provider,{value:{scale:x}},h.createElement(S6,{className:"docs-story",onCopyCapture:o&&F},h.createElement(b6,{isColumn:t||!Array.isArray(n),columns:r,layout:u,inline:d},h.createElement(qw.Element,{centered:u==="centered",scale:d?x:1},Array.isArray(n)?n.map((k,_)=>h.createElement("div",{key:_},k)):h.createElement("div",null,n))),h.createElement(al,{actionItems:A}))),o&&c&&g)};T(CS)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));var C6=({tabs:e,...t})=>{let r=Object.entries(e);return r.length===1?h.createElement(lc,{...r[0][1],...t}):h.createElement(lS,null,r.map((n,o)=>{let[a,i]=n,l=`prop_table_div_${a}`,s="div",u=o===0?t:{sort:t.sort};return h.createElement(s,{key:l,id:l,title:a},({active:d})=>d?h.createElement(lc,{key:`prop_table_${a}`,...i,...u}):null)}))};T.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?ye(.4,e.color.defaultText):ye(.6,e.color.defaultText)}));T.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});T.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});T.div(we,({theme:e})=>({...Cl(e),margin:"25px 0 40px",padding:"30px 20px"}));T.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));T.div(({theme:e})=>({color:e.base==="light"?ye(.2,e.color.defaultText):ye(.6,e.color.defaultText)}));T.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});T.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:e.base==="light"?ye(.4,e.color.defaultText):ye(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));T.div({display:"flex",flexDirection:"row"});T.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));T.div(({theme:e})=>({...Cl(e),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"}));T.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});T.div({flex:1,display:"flex",flexDirection:"row"});T.div({display:"flex",alignItems:"flex-start"});T.div({flex:"0 0 30%"});T.div({flex:1});T.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:e.base==="light"?ye(.4,e.color.defaultText):ye(.6,e.color.defaultText)}));T.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));T.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s1,color:e.color.defaultText,marginLeft:10,lineHeight:1.2,display:"-webkit-box",overflow:"hidden",wordBreak:"break-word",textOverflow:"ellipsis",WebkitLineClamp:2,WebkitBoxOrient:"vertical"}));T.div(({theme:e})=>({...Cl(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));T.div({display:"inline-flex",flexDirection:"row",alignItems:"center",width:"100%"});T.div({display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(140px, 1fr))",gridGap:"8px 16px",gridAutoFlow:"row dense",gridAutoRows:50});function $6(e){let t=[].forEach,r=[].some,n=typeof window<"u"&&document.body,o=" ",a,i=!0,l=0;function s(k,_){let I=_.appendChild(d(k));if(k.children.length){let L=p(k.isCollapsed);k.children.forEach(j=>{s(j,L)}),I.appendChild(L)}}function u(k,_){let I=p(!1);if(_.forEach(L=>{s(L,I)}),a=k||a,a!==null)return a.firstChild&&a.removeChild(a.firstChild),_.length===0?a:a.appendChild(I)}function d(k){let _=document.createElement("li"),I=document.createElement("a");return e.listItemClass&&_.setAttribute("class",e.listItemClass),e.onClick&&(I.onclick=e.onClick),e.includeTitleTags&&I.setAttribute("title",k.textContent),e.includeHtml&&k.childNodes.length?t.call(k.childNodes,L=>{I.appendChild(L.cloneNode(!0))}):I.textContent=k.textContent,I.setAttribute("href",`${e.basePath}#${k.id}`),I.setAttribute("class",`${e.linkClass+o}node-name--${k.nodeName}${o}${e.extraLinkClasses}`),_.appendChild(I),_}function p(k){let _=e.orderedList?"ol":"ul",I=document.createElement(_),L=e.listClass+o+e.extraListClasses;return k&&(L=L+o+e.collapsibleClass,L=L+o+e.isCollapsedClass),I.setAttribute("class",L),I}function c(){let k=S(),_=document.querySelector(e.positionFixedSelector);e.fixedSidebarOffset==="auto"&&(e.fixedSidebarOffset=a.offsetTop),k>e.fixedSidebarOffset?_.className.indexOf(e.positionFixedClass)===-1&&(_.className+=o+e.positionFixedClass):_.className=_.className.replace(o+e.positionFixedClass,"")}function f(k){let _=0;return k!==null&&(_=k.offsetTop,e.hasInnerContainers&&(_+=f(k.offsetParent))),_}function g(k,_){return k&&k.className!==_&&(k.className=_),k}function y(k,_){e.positionFixedSelector&&c();let I=k,L=_?.target?.getAttribute?_?.target?.getAttribute("href"):null,j=L&&L.charAt(0)==="#"?E(L.replace("#","")):!1,B=i||j;if(_&&l<5&&l++,B&&a&&I.length>0){let z=D(I),V=a.querySelector(`.${e.activeLinkClass}`),Y=z.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1"),W=window.location.hash.replace("#",""),G=Y,J=$();L&&j?G=L.replace("#",""):W&&W!==Y&&J&&(E(Y)||l<=2)&&(G=W);let Q=a.querySelector(`.${e.linkClass}[href="${e.basePath}#${G}"]`);if(V===Q)return;let re=a.querySelectorAll(`.${e.linkClass}`);t.call(re,Z=>{g(Z,Z.className.replace(o+e.activeLinkClass,""))});let ie=a.querySelectorAll(`.${e.listItemClass}`);t.call(ie,Z=>{g(Z,Z.className.replace(o+e.activeListItemClass,""))}),Q&&Q.className.indexOf(e.activeLinkClass)===-1&&(Q.className+=o+e.activeLinkClass);let H=Q?.parentNode;H&&H.className.indexOf(e.activeListItemClass)===-1&&(H.className+=o+e.activeListItemClass);let X=a.querySelectorAll(`.${e.listClass}.${e.collapsibleClass}`);t.call(X,Z=>{Z.className.indexOf(e.isCollapsedClass)===-1&&(Z.className+=o+e.isCollapsedClass)}),Q?.nextSibling&&Q.nextSibling.className.indexOf(e.isCollapsedClass)!==-1&&g(Q.nextSibling,Q.nextSibling.className.replace(o+e.isCollapsedClass,"")),x(Q?.parentNode.parentNode)}}function x(k){return k&&k.className.indexOf(e.collapsibleClass)!==-1&&k.className.indexOf(e.isCollapsedClass)!==-1?(g(k,k.className.replace(o+e.isCollapsedClass,"")),x(k.parentNode.parentNode)):k}function v(k){let _=k.target||k.srcElement;typeof _.className!="string"||_.className.indexOf(e.linkClass)===-1||(i=!1)}function C(){i=!0}function w(){return i}function E(k){let _=A();return(document?.getElementById(k)).offsetTop>_.offsetHeight-_.clientHeight*1.4-e.bottomModeThreshold}function $(){let k=A(),_=k.scrollHeight>k.clientHeight,I=S()+k.clientHeight>k.offsetHeight-e.bottomModeThreshold;return _&&I}function A(){let k;return e.scrollContainer&&document.querySelector(e.scrollContainer)?k=document.querySelector(e.scrollContainer):k=document.documentElement||n,k}function S(){return A()?.scrollTop||0}function D(k,_=S()){let I;return r.call(k,(L,j)=>{if(f(L)>_+e.headingsOffset+10){let B=j===0?j:j-1;return I=k[B],!0}if(j===k.length-1)return I=k[k.length-1],!0}),I}function F(k){let _=S(),I=D(k,_),L=$();if((!I||_<5)&&!L)window.location.hash==="#"||window.location.hash===""||window.history.pushState(null,null,"#");else if(I&&!L){let j=`#${I.id}`;window.location.hash!==j&&window.history.pushState(null,null,j)}}return{enableTocAnimation:C,disableTocAnimation:v,render:u,updateToc:y,getCurrentlyHighlighting:w,getTopHeader:D,getScrollTop:S,updateUrlHashForHeader:F}}var A6={tocSelector:".js-toc",tocElement:null,contentSelector:".js-toc-content",contentElement:null,headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:!1,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:!0,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(e){},headingsOffset:1,enableUrlHashUpdateOnScroll:!1,scrollHandlerType:"auto",scrollHandlerTimeout:50,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,onClick:function(e){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1,tocScrollingWrapper:null,tocScrollOffset:30,bottomModeThreshold:30};function D6(e){let t=[].reduce;function r(u){return u[u.length-1]}function n(u){return+u.nodeName.toUpperCase().replace("H","")}function o(u){try{return u instanceof window.HTMLElement||u instanceof window.parent.HTMLElement}catch{return u instanceof window.HTMLElement}}function a(u){if(!o(u))return u;if(e.ignoreHiddenElements&&(!u.offsetHeight||!u.offsetParent))return null;let d=u.getAttribute("data-heading-label")||(e.headingLabelCallback?String(e.headingLabelCallback(u.innerText)):(u.innerText||u.textContent).trim()),p={id:u.id,children:[],nodeName:u.nodeName,headingLevel:n(u),textContent:d};return e.includeHtml&&(p.childNodes=u.childNodes),e.headingObjectCallback?e.headingObjectCallback(p,u):p}function i(u,d){let p=a(u),c=p.headingLevel,f=d,g=r(f),y=g?g.headingLevel:0,x=c-y;for(;x>0&&(g=r(f),!(g&&c===g.headingLevel));)g&&g.children!==void 0&&(f=g.children),x--;return c>=e.collapseDepth&&(p.isCollapsed=!0),f.push(p),f}function l(u,d){let p=d;e.ignoreSelector&&(p=d.split(",").map(function(c){return`${c.trim()}:not(${e.ignoreSelector})`}));try{return u.querySelectorAll(p)}catch{return console.warn(`Headers not found with selector: ${p}`),null}}function s(u){return t.call(u,function(d,p){let c=a(p);return c&&i(c,d.nest),d},{nest:[]})}return{nestHeadingsArray:s,selectHeadings:l}}function k6(e){var t=e.duration,r=e.offset;if(typeof window>"u"||typeof location>"u")return;var n=location.hash?i(location.href):location.href;o();function o(){document.body.addEventListener("click",s,!1);function s(u){!a(u.target)||u.target.className.indexOf("no-smooth-scroll")>-1||u.target.href.charAt(u.target.href.length-2)==="#"&&u.target.href.charAt(u.target.href.length-1)==="!"||u.target.className.indexOf(e.linkClass)===-1||O6(u.target.hash,{duration:t,offset:r,callback:function(){l(u.target.hash)}})}}function a(s){return s.tagName.toLowerCase()==="a"&&(s.hash.length>0||s.href.charAt(s.href.length-1)==="#")&&(i(s.href)===n||i(s.href)+"#"===n)}function i(s){return s.slice(0,s.lastIndexOf("#"))}function l(s){var u=document.getElementById(s.substring(1));u&&(/^(?:a|select|input|button|textarea)$/i.test(u.tagName)||(u.tabIndex=-1),u.focus())}}function O6(e,t){var r=window.pageYOffset,n={duration:t.duration,offset:t.offset||0,callback:t.callback,easing:t.easing||p},o=document.querySelector('[id="'+decodeURI(e).split("#").join("")+'"]')||document.querySelector('[id="'+e.split("#").join("")+'"]'),a=typeof e=="string"?n.offset+(e?o&&o.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):e,i=typeof n.duration=="function"?n.duration(a):n.duration,l,s;requestAnimationFrame(function(c){l=c,u(c)});function u(c){s=c-l,window.scrollTo(0,n.easing(s,r,a,i)),st.clientHeight){let r=t.querySelector(`.${e.activeListItemClass}`);if(r){let n=r.offsetTop-e.tocScrollOffset;t.scrollTop=n>0?n:0}}}var ae={},xt,ws,Nr,wt,Wo;function $S(e){let t=!1;ae=R6(A6,e||{}),ae.scrollSmooth&&(ae.duration=ae.scrollSmoothDuration,ae.offset=ae.scrollSmoothOffset,k6(ae)),xt=$6(ae),ws=D6(ae),pp();let r=I6(ae);if(r===null)return;let n=AS(ae);if(n===null||(Nr=ws.selectHeadings(r,ae.headingSelector),Nr===null))return;let o=ws.nestHeadingsArray(Nr).nest;if(!ae.skipRendering)xt.render(n,o);else return this;let a=!1,i=ae.scrollHandlerTimeout||ae.throttleTimeout;wt=((s,u)=>P6(s,u,ae.scrollHandlerType))(s=>{xt.updateToc(Nr,s),!ae.disableTocScrollSync&&!a&&F6(ae),ae.enableUrlHashUpdateOnScroll&&t&&xt.getCurrentlyHighlighting()&&xt.updateUrlHashForHeader(Nr);let u=s?.target?.scrollingElement?.scrollTop===0;(s&&(s.eventPhase===0||s.currentTarget===null)||u)&&(xt.updateToc(Nr),ae.scrollEndCallback?.(s))},i),t||(wt(),t=!0),window.onhashchange=window.onscrollend=s=>{wt(s)},ae.scrollContainer&&document.querySelector(ae.scrollContainer)?(document.querySelector(ae.scrollContainer).addEventListener("scroll",wt,!1),document.querySelector(ae.scrollContainer).addEventListener("resize",wt,!1)):(document.addEventListener("scroll",wt,!1),document.addEventListener("resize",wt,!1));let l=null;Wo=tc(s=>{a=!0,ae.scrollSmooth&&xt.disableTocAnimation(s),xt.updateToc(Nr,s),l&&clearTimeout(l),l=setTimeout(()=>{xt.enableTocAnimation()},ae.scrollSmoothDuration),setTimeout(()=>{a=!1},ae.scrollSmoothDuration+100)},ae.throttleTimeout),ae.scrollContainer&&document.querySelector(ae.scrollContainer)?document.querySelector(ae.scrollContainer).addEventListener("click",Wo,!1):document.addEventListener("click",Wo,!1)}function pp(){let e=AS(ae);e!==null&&(ae.skipRendering||e&&(e.innerHTML=""),ae.scrollContainer&&document.querySelector(ae.scrollContainer)?(document.querySelector(ae.scrollContainer).removeEventListener("scroll",wt,!1),document.querySelector(ae.scrollContainer).removeEventListener("resize",wt,!1),xt&&document.querySelector(ae.scrollContainer).removeEventListener("click",Wo,!1)):(document.removeEventListener("scroll",wt,!1),document.removeEventListener("resize",wt,!1),xt&&document.removeEventListener("click",Wo,!1)))}function _6(e){pp(),$S(e||ae)}var T6=Object.prototype.hasOwnProperty;function R6(...e){let t={};for(let r=0;r{n=l,e.apply(i,a)},t)):(n=l,e.apply(i,a))}}function _m(e,t){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>e.apply(this,n),t)}}function P6(e,t,r="auto"){switch(r){case"debounce":return _m(e,t);case"throttle":return tc(e,t);default:return t<334?_m(e,t):tc(e,t)}}function I6(e){try{return e.contentElement||document.querySelector(e.contentSelector)}catch{return console.warn(`Contents element not found: ${e.contentSelector}`),null}}function AS(e){try{return e.tocElement||document.querySelector(e.tocSelector)}catch{return console.warn(`TOC element not found: ${e.tocSelector}`),null}}var L6={destroy:pp,init:$S,refresh:_6},Tm=L6,B6=T.aside(()=>({width:"10rem","@media (max-width: 768px)":{display:"none"}})),N6=T.nav(({theme:e})=>({position:"fixed",bottom:0,top:0,width:"10rem",paddingTop:"4rem",paddingBottom:"2rem",overflowY:"auto",fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch","& *":{boxSizing:"border-box"},"& > .toc-wrapper > .toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`}}},"& .toc-list-item":{position:"relative",listStyleType:"none",marginLeft:20,paddingTop:3,paddingBottom:3},"& .toc-list-item::before":{content:'""',position:"absolute",height:"100%",top:0,left:0,transform:"translateX(calc(-2px - 20px))",borderLeft:`solid 2px ${e.color.mediumdark}`,opacity:0,transition:"opacity 0.2s"},"& .toc-list-item.is-active-li::before":{opacity:1},"& .toc-list-item > a":{color:e.color.defaultText,textDecoration:"none"},"& .toc-list-item.is-active-li > a":{fontWeight:600,color:e.color.secondary,textDecoration:"none"}})),j6=T.p(({theme:e})=>({fontWeight:600,fontSize:"0.875em",color:e.textColor,textTransform:"uppercase",marginBottom:10})),M6=({headingId:e,title:t})=>typeof t=="string"||!t?h.createElement(j6,{as:"h2",id:e,className:t?"":"sb-sr-only"},t||"Table of contents"):h.createElement("div",{id:e},t),z6=({title:e,disable:t,headingSelector:r,contentsSelector:n,ignoreSelector:o,unsafeTocbotOptions:a,channel:i,className:l})=>{b.useEffect(()=>{if(t)return()=>{};let u={tocSelector:".toc-wrapper",contentSelector:n??".sbdocs-content",headingSelector:r??"h3",ignoreSelector:o??".docs-story *, .skip-toc",headingsOffset:40,scrollSmoothOffset:-40,orderedList:!1,onClick:p=>{if(p.preventDefault(),p.currentTarget instanceof HTMLAnchorElement){let[,c]=p.currentTarget.href.split("#");c&&i.emit(gS,`#${c}`)}},...a},d=setTimeout(()=>Tm.init(u),100);return()=>{clearTimeout(d),Tm.destroy()}},[i,t,o,n,r,a]);let s=b.useId();return h.createElement(B6,{className:l},t?null:h.createElement(N6,{"aria-labelledby":s},h.createElement(M6,{headingId:s,title:e}),h.createElement("div",{className:"toc-wrapper"})))};function Ur(){return Ur=Object.assign?Object.assign.bind():function(e){for(var t=1;t(e[t.toLowerCase()]=t,e),{class:"className",for:"htmlFor"}),Im={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},U6=["style","script"],W6=["src","href","data","formAction","srcDoc","action"],V6=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,q6=/mailto:/i,G6=/\n{2,}$/,DS=/^(\s*>[\s\S]*?)(?=\n\n|$)/,Y6=/^ *> ?/gm,K6=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,X6=/^ {2,}\n/,Z6=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,kS=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,OS=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,J6=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,Q6=/^(?:\n *)*\n/,eP=/\r\n?/g,tP=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,rP=/^\[\^([^\]]+)]/,nP=/\f/g,oP=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,aP=/^\s*?\[(x|\s)\]/,FS=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,_S=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,TS=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,rc=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,iP=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,RS=/^)/,lP=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,nc=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,sP=/^\{.*\}$/,uP=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,cP=/^<([^ >]+@[^ >]+)>/,dP=/^<([^ >]+:\/[^ >]+)>/,pP=/-([a-z])?/gi,PS=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,fP=/^\[([^\]]*)\]:\s+([^\s>]+)>?\s*("([^"]*)")?/,gP=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,mP=/^\[([^\]]*)\] ?\[([^\]]*)\]/,hP=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,yP=/\t/g,bP=/(^ *\||\| *$)/g,vP=/^ *:-+: *$/,xP=/^ *:-+ *$/,EP=/^ *-+: *$/,$l="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",wP=new RegExp(`^([*_])\\1${$l}\\1\\1(?!\\1)`),SP=new RegExp(`^([*_])${$l}\\1(?!\\1)`),CP=new RegExp(`^(==)${$l}\\1`),$P=new RegExp(`^(~~)${$l}\\1`),AP=/^\\([^0-9A-Za-z\s])/,Lm=/\\([^0-9A-Za-z\s])/g,DP=/^([\s\S](?:(?! |[0-9]\.)[^=*_~\-\n<`\\\[!])*)/,kP=/^\n+/,OP=/^([ \t]*)/,FP=/\\([^\\])/g,_P=/(?:^|\n)( *)$/,fp="(?:\\d+\\.)",gp="(?:[*+-])";function IS(e){return"( *)("+(e===1?fp:gp)+") +"}var LS=IS(1),BS=IS(2);function NS(e){return new RegExp("^"+(e===1?LS:BS))}var TP=NS(1),RP=NS(2);function jS(e){return new RegExp("^"+(e===1?LS:BS)+"[^\\n]*(?:\\n(?!\\1"+(e===1?fp:gp)+" )[^\\n]*)*(\\n|$)","gm")}var PP=jS(1),IP=jS(2);function MS(e){let t=e===1?fp:gp;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}var zS=MS(1),HS=MS(2);function Bm(e,t){let r=t===1,n=r?zS:HS,o=r?PP:IP,a=r?TP:RP;return{match:ro(function(i,l){let s=_P.exec(l.prevCapture);return s&&(l.list||!l.inline&&!l.simple)?n.exec(i=s[1]+i):null}),order:1,parse(i,l,s){let u=r?+i[2]:void 0,d=i[0].replace(G6,`
-`).match(o),p=!1;return{items:d.map(function(c,f){let g=a.exec(c)[0].length,y=new RegExp("^ {1,"+g+"}","gm"),x=c.replace(y,"").replace(a,""),v=f===d.length-1,C=x.indexOf(`
+`,
+ 78: `base must be set in "px" or "%" but you set it in "%s".
+`,
+};
+function gR() {
+ for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
+ t[r] = arguments[r];
+ var n = t[0],
+ o = [],
+ a;
+ for (a = 1; a < t.length; a += 1) o.push(t[a]);
+ return (
+ o.forEach(function (i) {
+ n = n.replace(/%[a-z]/, i);
+ }),
+ n
+ );
+}
+var Ht = (function (e) {
+ cR(t, e);
+ function t(r) {
+ for (
+ var n, o = arguments.length, a = new Array(o > 1 ? o - 1 : 0), i = 1;
+ i < o;
+ i++
+ )
+ a[i - 1] = arguments[i];
+ return (
+ (n = e.call(this, gR.apply(void 0, [fR[r]].concat(a))) || this),
+ uR(n)
+ );
+ }
+ return t;
+})(Ju(Error));
+function vs(e) {
+ return Math.round(e * 255);
+}
+function mR(e, t, r) {
+ return vs(e) + "," + vs(t) + "," + vs(r);
+}
+function Di(e, t, r, n) {
+ if ((n === void 0 && (n = mR), t === 0)) return n(r, r, r);
+ var o = (((e % 360) + 360) % 360) / 60,
+ a = (1 - Math.abs(2 * r - 1)) * t,
+ i = a * (1 - Math.abs((o % 2) - 1)),
+ l = 0,
+ s = 0,
+ u = 0;
+ o >= 0 && o < 1
+ ? ((l = a), (s = i))
+ : o >= 1 && o < 2
+ ? ((l = i), (s = a))
+ : o >= 2 && o < 3
+ ? ((s = a), (u = i))
+ : o >= 3 && o < 4
+ ? ((s = i), (u = a))
+ : o >= 4 && o < 5
+ ? ((l = i), (u = a))
+ : o >= 5 && o < 6 && ((l = a), (u = i));
+ var d = r - a / 2,
+ p = l + d,
+ c = s + d,
+ f = u + d;
+ return n(p, c, f);
+}
+var Om = {
+ aliceblue: "f0f8ff",
+ antiquewhite: "faebd7",
+ aqua: "00ffff",
+ aquamarine: "7fffd4",
+ azure: "f0ffff",
+ beige: "f5f5dc",
+ bisque: "ffe4c4",
+ black: "000",
+ blanchedalmond: "ffebcd",
+ blue: "0000ff",
+ blueviolet: "8a2be2",
+ brown: "a52a2a",
+ burlywood: "deb887",
+ cadetblue: "5f9ea0",
+ chartreuse: "7fff00",
+ chocolate: "d2691e",
+ coral: "ff7f50",
+ cornflowerblue: "6495ed",
+ cornsilk: "fff8dc",
+ crimson: "dc143c",
+ cyan: "00ffff",
+ darkblue: "00008b",
+ darkcyan: "008b8b",
+ darkgoldenrod: "b8860b",
+ darkgray: "a9a9a9",
+ darkgreen: "006400",
+ darkgrey: "a9a9a9",
+ darkkhaki: "bdb76b",
+ darkmagenta: "8b008b",
+ darkolivegreen: "556b2f",
+ darkorange: "ff8c00",
+ darkorchid: "9932cc",
+ darkred: "8b0000",
+ darksalmon: "e9967a",
+ darkseagreen: "8fbc8f",
+ darkslateblue: "483d8b",
+ darkslategray: "2f4f4f",
+ darkslategrey: "2f4f4f",
+ darkturquoise: "00ced1",
+ darkviolet: "9400d3",
+ deeppink: "ff1493",
+ deepskyblue: "00bfff",
+ dimgray: "696969",
+ dimgrey: "696969",
+ dodgerblue: "1e90ff",
+ firebrick: "b22222",
+ floralwhite: "fffaf0",
+ forestgreen: "228b22",
+ fuchsia: "ff00ff",
+ gainsboro: "dcdcdc",
+ ghostwhite: "f8f8ff",
+ gold: "ffd700",
+ goldenrod: "daa520",
+ gray: "808080",
+ green: "008000",
+ greenyellow: "adff2f",
+ grey: "808080",
+ honeydew: "f0fff0",
+ hotpink: "ff69b4",
+ indianred: "cd5c5c",
+ indigo: "4b0082",
+ ivory: "fffff0",
+ khaki: "f0e68c",
+ lavender: "e6e6fa",
+ lavenderblush: "fff0f5",
+ lawngreen: "7cfc00",
+ lemonchiffon: "fffacd",
+ lightblue: "add8e6",
+ lightcoral: "f08080",
+ lightcyan: "e0ffff",
+ lightgoldenrodyellow: "fafad2",
+ lightgray: "d3d3d3",
+ lightgreen: "90ee90",
+ lightgrey: "d3d3d3",
+ lightpink: "ffb6c1",
+ lightsalmon: "ffa07a",
+ lightseagreen: "20b2aa",
+ lightskyblue: "87cefa",
+ lightslategray: "789",
+ lightslategrey: "789",
+ lightsteelblue: "b0c4de",
+ lightyellow: "ffffe0",
+ lime: "0f0",
+ limegreen: "32cd32",
+ linen: "faf0e6",
+ magenta: "f0f",
+ maroon: "800000",
+ mediumaquamarine: "66cdaa",
+ mediumblue: "0000cd",
+ mediumorchid: "ba55d3",
+ mediumpurple: "9370db",
+ mediumseagreen: "3cb371",
+ mediumslateblue: "7b68ee",
+ mediumspringgreen: "00fa9a",
+ mediumturquoise: "48d1cc",
+ mediumvioletred: "c71585",
+ midnightblue: "191970",
+ mintcream: "f5fffa",
+ mistyrose: "ffe4e1",
+ moccasin: "ffe4b5",
+ navajowhite: "ffdead",
+ navy: "000080",
+ oldlace: "fdf5e6",
+ olive: "808000",
+ olivedrab: "6b8e23",
+ orange: "ffa500",
+ orangered: "ff4500",
+ orchid: "da70d6",
+ palegoldenrod: "eee8aa",
+ palegreen: "98fb98",
+ paleturquoise: "afeeee",
+ palevioletred: "db7093",
+ papayawhip: "ffefd5",
+ peachpuff: "ffdab9",
+ peru: "cd853f",
+ pink: "ffc0cb",
+ plum: "dda0dd",
+ powderblue: "b0e0e6",
+ purple: "800080",
+ rebeccapurple: "639",
+ red: "f00",
+ rosybrown: "bc8f8f",
+ royalblue: "4169e1",
+ saddlebrown: "8b4513",
+ salmon: "fa8072",
+ sandybrown: "f4a460",
+ seagreen: "2e8b57",
+ seashell: "fff5ee",
+ sienna: "a0522d",
+ silver: "c0c0c0",
+ skyblue: "87ceeb",
+ slateblue: "6a5acd",
+ slategray: "708090",
+ slategrey: "708090",
+ snow: "fffafa",
+ springgreen: "00ff7f",
+ steelblue: "4682b4",
+ tan: "d2b48c",
+ teal: "008080",
+ thistle: "d8bfd8",
+ tomato: "ff6347",
+ turquoise: "40e0d0",
+ violet: "ee82ee",
+ wheat: "f5deb3",
+ white: "fff",
+ whitesmoke: "f5f5f5",
+ yellow: "ff0",
+ yellowgreen: "9acd32",
+};
+function hR(e) {
+ if (typeof e != "string") return e;
+ var t = e.toLowerCase();
+ return Om[t] ? "#" + Om[t] : e;
+}
+var yR = /^#[a-fA-F0-9]{6}$/,
+ bR = /^#[a-fA-F0-9]{8}$/,
+ vR = /^#[a-fA-F0-9]{3}$/,
+ xR = /^#[a-fA-F0-9]{4}$/,
+ xs = /^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,
+ ER =
+ /^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,
+ wR =
+ /^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,
+ SR =
+ /^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;
+function to(e) {
+ if (typeof e != "string") throw new Ht(3);
+ var t = hR(e);
+ if (t.match(yR))
+ return {
+ red: parseInt("" + t[1] + t[2], 16),
+ green: parseInt("" + t[3] + t[4], 16),
+ blue: parseInt("" + t[5] + t[6], 16),
+ };
+ if (t.match(bR)) {
+ var r = parseFloat((parseInt("" + t[7] + t[8], 16) / 255).toFixed(2));
+ return {
+ red: parseInt("" + t[1] + t[2], 16),
+ green: parseInt("" + t[3] + t[4], 16),
+ blue: parseInt("" + t[5] + t[6], 16),
+ alpha: r,
+ };
+ }
+ if (t.match(vR))
+ return {
+ red: parseInt("" + t[1] + t[1], 16),
+ green: parseInt("" + t[2] + t[2], 16),
+ blue: parseInt("" + t[3] + t[3], 16),
+ };
+ if (t.match(xR)) {
+ var n = parseFloat((parseInt("" + t[4] + t[4], 16) / 255).toFixed(2));
+ return {
+ red: parseInt("" + t[1] + t[1], 16),
+ green: parseInt("" + t[2] + t[2], 16),
+ blue: parseInt("" + t[3] + t[3], 16),
+ alpha: n,
+ };
+ }
+ var o = xs.exec(t);
+ if (o)
+ return {
+ red: parseInt("" + o[1], 10),
+ green: parseInt("" + o[2], 10),
+ blue: parseInt("" + o[3], 10),
+ };
+ var a = ER.exec(t.substring(0, 50));
+ if (a)
+ return {
+ red: parseInt("" + a[1], 10),
+ green: parseInt("" + a[2], 10),
+ blue: parseInt("" + a[3], 10),
+ alpha:
+ parseFloat("" + a[4]) > 1
+ ? parseFloat("" + a[4]) / 100
+ : parseFloat("" + a[4]),
+ };
+ var i = wR.exec(t);
+ if (i) {
+ var l = parseInt("" + i[1], 10),
+ s = parseInt("" + i[2], 10) / 100,
+ u = parseInt("" + i[3], 10) / 100,
+ d = "rgb(" + Di(l, s, u) + ")",
+ p = xs.exec(d);
+ if (!p) throw new Ht(4, t, d);
+ return {
+ red: parseInt("" + p[1], 10),
+ green: parseInt("" + p[2], 10),
+ blue: parseInt("" + p[3], 10),
+ };
+ }
+ var c = SR.exec(t.substring(0, 50));
+ if (c) {
+ var f = parseInt("" + c[1], 10),
+ g = parseInt("" + c[2], 10) / 100,
+ y = parseInt("" + c[3], 10) / 100,
+ x = "rgb(" + Di(f, g, y) + ")",
+ v = xs.exec(x);
+ if (!v) throw new Ht(4, t, x);
+ return {
+ red: parseInt("" + v[1], 10),
+ green: parseInt("" + v[2], 10),
+ blue: parseInt("" + v[3], 10),
+ alpha:
+ parseFloat("" + c[4]) > 1
+ ? parseFloat("" + c[4]) / 100
+ : parseFloat("" + c[4]),
+ };
+ }
+ throw new Ht(5);
+}
+function CR(e) {
+ var t = e.red / 255,
+ r = e.green / 255,
+ n = e.blue / 255,
+ o = Math.max(t, r, n),
+ a = Math.min(t, r, n),
+ i = (o + a) / 2;
+ if (o === a)
+ return e.alpha !== void 0
+ ? { hue: 0, saturation: 0, lightness: i, alpha: e.alpha }
+ : { hue: 0, saturation: 0, lightness: i };
+ var l,
+ s = o - a,
+ u = i > 0.5 ? s / (2 - o - a) : s / (o + a);
+ switch (o) {
+ case t:
+ l = (r - n) / s + (r < n ? 6 : 0);
+ break;
+ case r:
+ l = (n - t) / s + 2;
+ break;
+ default:
+ l = (t - r) / s + 4;
+ break;
+ }
+ return (
+ (l *= 60),
+ e.alpha !== void 0
+ ? { hue: l, saturation: u, lightness: i, alpha: e.alpha }
+ : { hue: l, saturation: u, lightness: i }
+ );
+}
+function Tr(e) {
+ return CR(to(e));
+}
+var $R = function (e) {
+ return e.length === 7 && e[1] === e[2] && e[3] === e[4] && e[5] === e[6]
+ ? "#" + e[1] + e[3] + e[5]
+ : e;
+ },
+ Qu = $R;
+function Mr(e) {
+ var t = e.toString(16);
+ return t.length === 1 ? "0" + t : t;
+}
+function Es(e) {
+ return Mr(Math.round(e * 255));
+}
+function AR(e, t, r) {
+ return Qu("#" + Es(e) + Es(t) + Es(r));
+}
+function hS(e, t, r) {
+ return Di(e, t, r, AR);
+}
+function DR(e, t, r) {
+ if (typeof e == "object" && t === void 0 && r === void 0)
+ return hS(e.hue, e.saturation, e.lightness);
+ throw new Ht(1);
+}
+function kR(e, t, r, n) {
+ if (typeof e == "object" && t === void 0 && r === void 0 && n === void 0)
+ return e.alpha >= 1
+ ? hS(e.hue, e.saturation, e.lightness)
+ : "rgba(" + Di(e.hue, e.saturation, e.lightness) + "," + e.alpha + ")";
+ throw new Ht(2);
+}
+function yS(e, t, r) {
+ if (typeof e == "number" && typeof t == "number" && typeof r == "number")
+ return Qu("#" + Mr(e) + Mr(t) + Mr(r));
+ if (typeof e == "object" && t === void 0 && r === void 0)
+ return Qu("#" + Mr(e.red) + Mr(e.green) + Mr(e.blue));
+ throw new Ht(6);
+}
+function jt(e, t, r, n) {
+ if (typeof e == "string" && typeof t == "number") {
+ var o = to(e);
+ return "rgba(" + o.red + "," + o.green + "," + o.blue + "," + t + ")";
+ } else if (
+ typeof e == "object" &&
+ t === void 0 &&
+ r === void 0 &&
+ n === void 0
+ )
+ return e.alpha >= 1
+ ? yS(e.red, e.green, e.blue)
+ : "rgba(" + e.red + "," + e.green + "," + e.blue + "," + e.alpha + ")";
+ throw new Ht(7);
+}
+var OR = function (e) {
+ return (
+ typeof e.red == "number" &&
+ typeof e.green == "number" &&
+ typeof e.blue == "number" &&
+ (typeof e.alpha != "number" || typeof e.alpha > "u")
+ );
+ },
+ FR = function (e) {
+ return (
+ typeof e.red == "number" &&
+ typeof e.green == "number" &&
+ typeof e.blue == "number" &&
+ typeof e.alpha == "number"
+ );
+ },
+ _R = function (e) {
+ return (
+ typeof e.hue == "number" &&
+ typeof e.saturation == "number" &&
+ typeof e.lightness == "number" &&
+ (typeof e.alpha != "number" || typeof e.alpha > "u")
+ );
+ },
+ TR = function (e) {
+ return (
+ typeof e.hue == "number" &&
+ typeof e.saturation == "number" &&
+ typeof e.lightness == "number" &&
+ typeof e.alpha == "number"
+ );
+ };
+function Rr(e) {
+ if (typeof e != "object") throw new Ht(8);
+ if (FR(e)) return jt(e);
+ if (OR(e)) return yS(e);
+ if (TR(e)) return kR(e);
+ if (_R(e)) return DR(e);
+ throw new Ht(8);
+}
+function bS(e, t, r) {
+ return function () {
+ var n = r.concat(Array.prototype.slice.call(arguments));
+ return n.length >= t ? e.apply(this, n) : bS(e, t, n);
+ };
+}
+function ct(e) {
+ return bS(e, e.length, []);
+}
+function RR(e, t) {
+ if (t === "transparent") return t;
+ var r = Tr(t);
+ return Rr(et({}, r, { hue: r.hue + parseFloat(e) }));
+}
+ct(RR);
+function co(e, t, r) {
+ return Math.max(e, Math.min(t, r));
+}
+function PR(e, t) {
+ if (t === "transparent") return t;
+ var r = Tr(t);
+ return Rr(et({}, r, { lightness: co(0, 1, r.lightness - parseFloat(e)) }));
+}
+var IR = ct(PR),
+ Bt = IR;
+function LR(e, t) {
+ if (t === "transparent") return t;
+ var r = Tr(t);
+ return Rr(et({}, r, { saturation: co(0, 1, r.saturation - parseFloat(e)) }));
+}
+ct(LR);
+function BR(e, t) {
+ if (t === "transparent") return t;
+ var r = Tr(t);
+ return Rr(et({}, r, { lightness: co(0, 1, r.lightness + parseFloat(e)) }));
+}
+var NR = ct(BR),
+ zr = NR;
+function jR(e, t, r) {
+ if (t === "transparent") return r;
+ if (r === "transparent") return t;
+ if (e === 0) return r;
+ var n = to(t),
+ o = et({}, n, { alpha: typeof n.alpha == "number" ? n.alpha : 1 }),
+ a = to(r),
+ i = et({}, a, { alpha: typeof a.alpha == "number" ? a.alpha : 1 }),
+ l = o.alpha - i.alpha,
+ s = parseFloat(e) * 2 - 1,
+ u = s * l === -1 ? s : s + l,
+ d = 1 + s * l,
+ p = (u / d + 1) / 2,
+ c = 1 - p,
+ f = {
+ red: Math.floor(o.red * p + i.red * c),
+ green: Math.floor(o.green * p + i.green * c),
+ blue: Math.floor(o.blue * p + i.blue * c),
+ alpha: o.alpha * parseFloat(e) + i.alpha * (1 - parseFloat(e)),
+ };
+ return jt(f);
+}
+var MR = ct(jR),
+ vS = MR;
+function zR(e, t) {
+ if (t === "transparent") return t;
+ var r = to(t),
+ n = typeof r.alpha == "number" ? r.alpha : 1,
+ o = et({}, r, { alpha: co(0, 1, (n * 100 + parseFloat(e) * 100) / 100) });
+ return jt(o);
+}
+var HR = ct(zR),
+ Oa = HR;
+function UR(e, t) {
+ if (t === "transparent") return t;
+ var r = Tr(t);
+ return Rr(et({}, r, { saturation: co(0, 1, r.saturation + parseFloat(e)) }));
+}
+ct(UR);
+function WR(e, t) {
+ return t === "transparent" ? t : Rr(et({}, Tr(t), { hue: parseFloat(e) }));
+}
+ct(WR);
+function VR(e, t) {
+ return t === "transparent"
+ ? t
+ : Rr(et({}, Tr(t), { lightness: parseFloat(e) }));
+}
+ct(VR);
+function qR(e, t) {
+ return t === "transparent"
+ ? t
+ : Rr(et({}, Tr(t), { saturation: parseFloat(e) }));
+}
+ct(qR);
+function GR(e, t) {
+ return t === "transparent" ? t : vS(parseFloat(e), "rgb(0, 0, 0)", t);
+}
+ct(GR);
+function YR(e, t) {
+ return t === "transparent" ? t : vS(parseFloat(e), "rgb(255, 255, 255)", t);
+}
+ct(YR);
+function KR(e, t) {
+ if (t === "transparent") return t;
+ var r = to(t),
+ n = typeof r.alpha == "number" ? r.alpha : 1,
+ o = et({}, r, {
+ alpha: co(0, 1, +(n * 100 - parseFloat(e) * 100).toFixed(2) / 100),
+ });
+ return jt(o);
+}
+var XR = ct(KR),
+ ye = XR,
+ ZR = T.div(we, ({ theme: e }) => ({
+ backgroundColor:
+ e.base === "light" ? "rgba(0,0,0,.01)" : "rgba(255,255,255,.01)",
+ borderRadius: e.appBorderRadius,
+ border: `1px dashed ${e.appBorderColor}`,
+ display: "flex",
+ alignItems: "center",
+ justifyContent: "center",
+ padding: 20,
+ margin: "25px 0 40px",
+ color: ye(0.3, e.color.defaultText),
+ fontSize: e.typography.size.s2,
+ })),
+ xS = (e) =>
+ h.createElement(ZR, { ...e, className: "docblock-emptyblock sb-unstyled" }),
+ JR = T(ml)(({ theme: e }) => ({
+ fontSize: `${e.typography.size.s2 - 1}px`,
+ lineHeight: "19px",
+ margin: "25px 0 40px",
+ borderRadius: e.appBorderRadius,
+ boxShadow:
+ e.base === "light"
+ ? "rgba(0, 0, 0, 0.10) 0 1px 3px 0"
+ : "rgba(0, 0, 0, 0.20) 0 2px 5px 0",
+ "pre.prismjs": { padding: 20, background: "inherit" },
+ })),
+ QR = T.div(({ theme: e }) => ({
+ background: e.background.content,
+ borderRadius: e.appBorderRadius,
+ border: `1px solid ${e.appBorderColor}`,
+ boxShadow:
+ e.base === "light"
+ ? "rgba(0, 0, 0, 0.10) 0 1px 3px 0"
+ : "rgba(0, 0, 0, 0.20) 0 2px 5px 0",
+ margin: "25px 0 40px",
+ padding: "20px 20px 20px 22px",
+ })),
+ Fa = T.div(({ theme: e }) => ({
+ animation: `${e.animation.glow} 1.5s ease-in-out infinite`,
+ background: e.appBorderColor,
+ height: 17,
+ marginTop: 1,
+ width: "60%",
+ [`&:first-child${gu}`]: { margin: 0 },
+ })),
+ e6 = () =>
+ h.createElement(
+ QR,
+ null,
+ h.createElement(Fa, null),
+ h.createElement(Fa, { style: { width: "80%" } }),
+ h.createElement(Fa, { style: { width: "30%" } }),
+ h.createElement(Fa, { style: { width: "80%" } }),
+ ),
+ ES = ({
+ isLoading: e,
+ error: t,
+ language: r,
+ code: n,
+ dark: o,
+ format: a = !0,
+ ...i
+ }) => {
+ let { typography: l } = Mb();
+ if (e) return h.createElement(e6, null);
+ if (t) return h.createElement(xS, null, t);
+ let s = h.createElement(
+ JR,
+ {
+ bordered: !0,
+ copyable: !0,
+ format: a,
+ language: r ?? "jsx",
+ className: "docblock-source sb-unstyled",
+ ...i,
+ },
+ n,
+ );
+ if (typeof o > "u") return s;
+ let u = o ? pu.dark : pu.light;
+ return h.createElement(
+ zb,
+ { theme: fu({ ...u, fontCode: l.fonts.mono, fontBase: l.fonts.base }) },
+ s,
+ );
+ },
+ Oe = (e) => `& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,
+ dp = 600,
+ t6 = T.h1(we, ({ theme: e }) => ({
+ color: e.color.defaultText,
+ fontSize: e.typography.size.m3,
+ fontWeight: e.typography.weight.bold,
+ lineHeight: "32px",
+ [`@media (min-width: ${dp}px)`]: {
+ fontSize: e.typography.size.l1,
+ lineHeight: "36px",
+ marginBottom: "16px",
+ },
+ })),
+ r6 = T.h2(we, ({ theme: e }) => ({
+ fontWeight: e.typography.weight.regular,
+ fontSize: e.typography.size.s3,
+ lineHeight: "20px",
+ borderBottom: "none",
+ marginBottom: 15,
+ [`@media (min-width: ${dp}px)`]: {
+ fontSize: e.typography.size.m1,
+ lineHeight: "28px",
+ marginBottom: 24,
+ },
+ color: ye(0.25, e.color.defaultText),
+ })),
+ n6 = T.div(({ theme: e }) => {
+ let t = {
+ fontFamily: e.typography.fonts.base,
+ fontSize: e.typography.size.s3,
+ margin: 0,
+ WebkitFontSmoothing: "antialiased",
+ MozOsxFontSmoothing: "grayscale",
+ WebkitTapHighlightColor: "rgba(0, 0, 0, 0)",
+ WebkitOverflowScrolling: "touch",
+ },
+ r = {
+ margin: "20px 0 8px",
+ padding: 0,
+ cursor: "text",
+ position: "relative",
+ color: e.color.defaultText,
+ "&:first-of-type": { marginTop: 0, paddingTop: 0 },
+ "&:hover a.anchor": { textDecoration: "none" },
+ "& code": { fontSize: "inherit" },
+ },
+ n = {
+ lineHeight: 1,
+ margin: "0 2px",
+ padding: "3px 5px",
+ whiteSpace: "nowrap",
+ borderRadius: 3,
+ fontSize: e.typography.size.s2 - 1,
+ border:
+ e.base === "light"
+ ? `1px solid ${e.color.mediumlight}`
+ : `1px solid ${e.color.darker}`,
+ color:
+ e.base === "light"
+ ? ye(0.1, e.color.defaultText)
+ : ye(0.3, e.color.defaultText),
+ backgroundColor: e.base === "light" ? e.color.lighter : e.color.border,
+ };
+ return {
+ maxWidth: 1e3,
+ width: "100%",
+ minWidth: 0,
+ [Oe("a")]: {
+ ...t,
+ fontSize: "inherit",
+ lineHeight: "24px",
+ color: e.color.secondary,
+ textDecoration: "none",
+ "&.absent": { color: "#cc0000" },
+ "&.anchor": {
+ display: "block",
+ paddingLeft: 30,
+ marginLeft: -30,
+ cursor: "pointer",
+ position: "absolute",
+ top: 0,
+ left: 0,
+ bottom: 0,
+ },
+ },
+ [Oe("blockquote")]: {
+ ...t,
+ margin: "16px 0",
+ borderLeft: `4px solid ${e.color.medium}`,
+ padding: "0 15px",
+ color: e.color.dark,
+ "& > :first-of-type": { marginTop: 0 },
+ "& > :last-child": { marginBottom: 0 },
+ },
+ [Oe("div")]: t,
+ [Oe("dl")]: {
+ ...t,
+ margin: "16px 0",
+ padding: 0,
+ "& dt": {
+ fontSize: "14px",
+ fontWeight: "bold",
+ fontStyle: "italic",
+ padding: 0,
+ margin: "16px 0 4px",
+ },
+ "& dt:first-of-type": { padding: 0 },
+ "& dt > :first-of-type": { marginTop: 0 },
+ "& dt > :last-child": { marginBottom: 0 },
+ "& dd": { margin: "0 0 16px", padding: "0 15px" },
+ "& dd > :first-of-type": { marginTop: 0 },
+ "& dd > :last-child": { marginBottom: 0 },
+ },
+ [Oe("h1")]: {
+ ...t,
+ ...r,
+ fontSize: `${e.typography.size.l1}px`,
+ fontWeight: e.typography.weight.bold,
+ },
+ [Oe("h2")]: {
+ ...t,
+ ...r,
+ fontSize: `${e.typography.size.m2}px`,
+ paddingBottom: 4,
+ borderBottom: `1px solid ${e.appBorderColor}`,
+ },
+ [Oe("h3")]: {
+ ...t,
+ ...r,
+ fontSize: `${e.typography.size.m1}px`,
+ fontWeight: e.typography.weight.bold,
+ },
+ [Oe("h4")]: { ...t, ...r, fontSize: `${e.typography.size.s3}px` },
+ [Oe("h5")]: { ...t, ...r, fontSize: `${e.typography.size.s2}px` },
+ [Oe("h6")]: {
+ ...t,
+ ...r,
+ fontSize: `${e.typography.size.s2}px`,
+ color: e.color.dark,
+ },
+ [Oe("hr")]: {
+ border: "0 none",
+ borderTop: `1px solid ${e.appBorderColor}`,
+ height: 4,
+ padding: 0,
+ },
+ [Oe("img")]: { maxWidth: "100%" },
+ [Oe("li")]: {
+ ...t,
+ fontSize: e.typography.size.s2,
+ color: e.color.defaultText,
+ lineHeight: "24px",
+ "& + li": { marginTop: ".25em" },
+ "& ul, & ol": { marginTop: ".25em", marginBottom: 0 },
+ "& code": n,
+ },
+ [Oe("ol")]: {
+ ...t,
+ margin: "16px 0",
+ paddingLeft: 30,
+ "& :first-of-type": { marginTop: 0 },
+ "& :last-child": { marginBottom: 0 },
+ },
+ [Oe("p")]: {
+ ...t,
+ margin: "16px 0",
+ fontSize: e.typography.size.s2,
+ lineHeight: "24px",
+ color: e.color.defaultText,
+ "& code": n,
+ },
+ [Oe("pre")]: {
+ ...t,
+ fontFamily: e.typography.fonts.mono,
+ WebkitFontSmoothing: "antialiased",
+ MozOsxFontSmoothing: "grayscale",
+ lineHeight: "18px",
+ padding: "11px 1rem",
+ whiteSpace: "pre-wrap",
+ color: "inherit",
+ borderRadius: 3,
+ margin: "1rem 0",
+ "&:not(.prismjs)": {
+ background: "transparent",
+ border: "none",
+ borderRadius: 0,
+ padding: 0,
+ margin: 0,
+ },
+ "& pre, &.prismjs": {
+ padding: 15,
+ margin: 0,
+ whiteSpace: "pre-wrap",
+ color: "inherit",
+ fontSize: "13px",
+ lineHeight: "19px",
+ code: { color: "inherit", fontSize: "inherit" },
+ },
+ "& code": { whiteSpace: "pre" },
+ "& code, & tt": { border: "none" },
+ },
+ [Oe("span")]: {
+ ...t,
+ "&.frame": {
+ display: "block",
+ overflow: "hidden",
+ "& > span": {
+ border: `1px solid ${e.color.medium}`,
+ display: "block",
+ float: "left",
+ overflow: "hidden",
+ margin: "13px 0 0",
+ padding: 7,
+ width: "auto",
+ },
+ "& span img": { display: "block", float: "left" },
+ "& span span": {
+ clear: "both",
+ color: e.color.darkest,
+ display: "block",
+ padding: "5px 0 0",
+ },
+ },
+ "&.align-center": {
+ display: "block",
+ overflow: "hidden",
+ clear: "both",
+ "& > span": {
+ display: "block",
+ overflow: "hidden",
+ margin: "13px auto 0",
+ textAlign: "center",
+ },
+ "& span img": { margin: "0 auto", textAlign: "center" },
+ },
+ "&.align-right": {
+ display: "block",
+ overflow: "hidden",
+ clear: "both",
+ "& > span": {
+ display: "block",
+ overflow: "hidden",
+ margin: "13px 0 0",
+ textAlign: "right",
+ },
+ "& span img": { margin: 0, textAlign: "right" },
+ },
+ "&.float-left": {
+ display: "block",
+ marginRight: 13,
+ overflow: "hidden",
+ float: "left",
+ "& span": { margin: "13px 0 0" },
+ },
+ "&.float-right": {
+ display: "block",
+ marginLeft: 13,
+ overflow: "hidden",
+ float: "right",
+ "& > span": {
+ display: "block",
+ overflow: "hidden",
+ margin: "13px auto 0",
+ textAlign: "right",
+ },
+ },
+ },
+ [Oe("table")]: {
+ ...t,
+ margin: "16px 0",
+ fontSize: e.typography.size.s2,
+ lineHeight: "24px",
+ padding: 0,
+ borderCollapse: "collapse",
+ "& tr": {
+ borderTop: `1px solid ${e.appBorderColor}`,
+ backgroundColor: e.appContentBg,
+ margin: 0,
+ padding: 0,
+ },
+ "& tr:nth-of-type(2n)": {
+ backgroundColor: e.base === "dark" ? e.color.darker : e.color.lighter,
+ },
+ "& tr th": {
+ fontWeight: "bold",
+ color: e.color.defaultText,
+ border: `1px solid ${e.appBorderColor}`,
+ margin: 0,
+ padding: "6px 13px",
+ },
+ "& tr td": {
+ border: `1px solid ${e.appBorderColor}`,
+ color: e.color.defaultText,
+ margin: 0,
+ padding: "6px 13px",
+ },
+ "& tr th :first-of-type, & tr td :first-of-type": { marginTop: 0 },
+ "& tr th :last-child, & tr td :last-child": { marginBottom: 0 },
+ },
+ [Oe("ul")]: {
+ ...t,
+ margin: "16px 0",
+ paddingLeft: 30,
+ "& :first-of-type": { marginTop: 0 },
+ "& :last-child": { marginBottom: 0 },
+ listStyle: "disc",
+ },
+ };
+ }),
+ o6 = T.div(({ theme: e }) => ({
+ background: e.background.content,
+ display: "flex",
+ flexDirection: "row-reverse",
+ justifyContent: "center",
+ padding: "4rem 20px",
+ minHeight: "100vh",
+ boxSizing: "border-box",
+ gap: "3rem",
+ [`@media (min-width: ${dp}px)`]: {},
+ })),
+ a6 = ({ children: e, toc: t }) =>
+ h.createElement(
+ o6,
+ { className: "sbdocs sbdocs-wrapper" },
+ t,
+ h.createElement(n6, { className: "sbdocs sbdocs-content" }, e),
+ ),
+ Cl = (e) => ({
+ borderRadius: e.appBorderRadius,
+ background: e.background.content,
+ boxShadow:
+ e.base === "light"
+ ? "rgba(0, 0, 0, 0.10) 0 1px 3px 0"
+ : "rgba(0, 0, 0, 0.20) 0 2px 5px 0",
+ border: `1px solid ${e.appBorderColor}`,
+ }),
+ { window: i6 } = globalThis,
+ l6 = class extends b.Component {
+ constructor() {
+ (super(...arguments), (this.iframe = null));
+ }
+ componentDidMount() {
+ let { id: e } = this.props;
+ this.iframe = i6.document.getElementById(e);
+ }
+ shouldComponentUpdate(e) {
+ let { scale: t } = e;
+ return (
+ t !== this.props.scale &&
+ this.setIframeBodyStyle({
+ width: `${t * 100}%`,
+ height: `${t * 100}%`,
+ transform: `scale(${1 / t})`,
+ transformOrigin: "top left",
+ }),
+ !1
+ );
+ }
+ setIframeBodyStyle(e) {
+ return Object.assign(this.iframe.contentDocument.body.style, e);
+ }
+ render() {
+ let {
+ id: e,
+ title: t,
+ src: r,
+ allowFullScreen: n,
+ scale: o,
+ ...a
+ } = this.props;
+ return h.createElement("iframe", {
+ id: e,
+ title: t,
+ src: r,
+ ...(n ? { allow: "fullscreen" } : {}),
+ loading: "lazy",
+ ...a,
+ });
+ }
+ },
+ wS = b.createContext({ scale: 1 }),
+ { PREVIEW_URL: s6 } = globalThis,
+ u6 = s6 || "iframe.html",
+ ec = ({ story: e, primary: t }) => `story--${e.id}${t ? "--primary" : ""}`,
+ c6 = (e) => {
+ let t = b.useRef(),
+ [r, n] = b.useState(!0),
+ [o, a] = b.useState(),
+ {
+ story: i,
+ height: l,
+ autoplay: s,
+ forceInitialArgs: u,
+ renderStoryToElement: d,
+ } = e;
+ return (
+ b.useEffect(() => {
+ if (!(i && t.current)) return () => {};
+ let p = t.current,
+ c = d(
+ i,
+ p,
+ {
+ showMain: () => {},
+ showError: ({ title: f, description: g }) =>
+ a(new Error(`${f} - ${g}`)),
+ showException: (f) => a(f),
+ },
+ { autoplay: s, forceInitialArgs: u },
+ );
+ return (
+ n(!1),
+ () => {
+ Promise.resolve().then(() => c());
+ }
+ );
+ }, [s, d, i]),
+ o
+ ? h.createElement("pre", null, h.createElement(Gw, { error: o }))
+ : h.createElement(
+ h.Fragment,
+ null,
+ l
+ ? h.createElement(
+ "style",
+ null,
+ `#${ec(e)} { min-height: ${l}; transform: translateZ(0); overflow: auto }`,
+ )
+ : null,
+ r && h.createElement(SS, null),
+ h.createElement("div", {
+ ref: t,
+ id: `${ec(e)}-inner`,
+ "data-name": i.name,
+ }),
+ )
+ );
+ },
+ d6 = ({ story: e, height: t = "500px" }) =>
+ h.createElement(
+ "div",
+ { style: { width: "100%", height: t } },
+ h.createElement(wS.Consumer, null, ({ scale: r }) =>
+ h.createElement(l6, {
+ key: "iframe",
+ id: `iframe--${e.id}`,
+ title: e.name,
+ src: cS(u6, e.id, { viewMode: "story" }),
+ allowFullScreen: !0,
+ scale: r,
+ style: { width: "100%", height: "100%", border: "0 none" },
+ }),
+ ),
+ ),
+ p6 = T.strong(({ theme: e }) => ({ color: e.color.orange })),
+ f6 = (e) => {
+ let { inline: t, story: r } = e;
+ return t && !e.autoplay && r.usesMount
+ ? h.createElement(
+ p6,
+ null,
+ "This story mounts inside of play. Set",
+ " ",
+ h.createElement(
+ "a",
+ {
+ href: "https://storybook.js.org/docs/api/doc-blocks/doc-block-story#autoplay",
+ },
+ "autoplay",
+ ),
+ " ",
+ "to true to view this story.",
+ )
+ : h.createElement(
+ "div",
+ {
+ id: ec(e),
+ className: "sb-story sb-unstyled",
+ "data-story-block": "true",
+ },
+ t ? h.createElement(c6, { ...e }) : h.createElement(d6, { ...e }),
+ );
+ },
+ SS = () => h.createElement(sS, null),
+ g6 = T(wl)({
+ position: "absolute",
+ left: 0,
+ right: 0,
+ top: 0,
+ transition: "transform .2s linear",
+ }),
+ m6 = T.div({ display: "flex", alignItems: "center", gap: 4 }),
+ h6 = T.div(({ theme: e }) => ({
+ width: 14,
+ height: 14,
+ borderRadius: 2,
+ margin: "0 7px",
+ backgroundColor: e.appBorderColor,
+ animation: `${e.animation.glow} 1.5s ease-in-out infinite`,
+ })),
+ y6 = ({
+ isLoading: e,
+ storyId: t,
+ baseUrl: r,
+ zoom: n,
+ resetZoom: o,
+ ...a
+ }) =>
+ h.createElement(
+ g6,
+ { ...a },
+ h.createElement(
+ m6,
+ { key: "left" },
+ e
+ ? [1, 2, 3].map((i) => h.createElement(h6, { key: i }))
+ : h.createElement(
+ h.Fragment,
+ null,
+ h.createElement(
+ $r,
+ {
+ key: "zoomin",
+ onClick: (i) => {
+ (i.preventDefault(), n(0.8));
+ },
+ title: "Zoom in",
+ },
+ h.createElement(VT, null),
+ ),
+ h.createElement(
+ $r,
+ {
+ key: "zoomout",
+ onClick: (i) => {
+ (i.preventDefault(), n(1.25));
+ },
+ title: "Zoom out",
+ },
+ h.createElement(qT, null),
+ ),
+ h.createElement(
+ $r,
+ {
+ key: "zoomreset",
+ onClick: (i) => {
+ (i.preventDefault(), o());
+ },
+ title: "Reset zoom",
+ },
+ h.createElement(GT, null),
+ ),
+ ),
+ ),
+ ),
+ b6 = T.div(
+ ({ isColumn: e, columns: t, layout: r }) => ({
+ display: e || !t ? "block" : "flex",
+ position: "relative",
+ flexWrap: "wrap",
+ overflow: "auto",
+ flexDirection: e ? "column" : "row",
+ "& .innerZoomElementWrapper > *": e
+ ? {
+ width: r !== "fullscreen" ? "calc(100% - 20px)" : "100%",
+ display: "block",
+ }
+ : {
+ maxWidth: r !== "fullscreen" ? "calc(100% - 20px)" : "100%",
+ display: "inline-block",
+ },
+ }),
+ ({ layout: e = "padded", inline: t }) =>
+ e === "centered" || e === "padded"
+ ? {
+ padding: t ? "32px 22px" : "0px",
+ "& .innerZoomElementWrapper > *": {
+ width: "auto",
+ border: "8px solid transparent!important",
+ },
+ }
+ : {},
+ ({ layout: e = "padded", inline: t }) =>
+ e === "centered" && t
+ ? {
+ display: "flex",
+ justifyContent: "center",
+ justifyItems: "center",
+ alignContent: "center",
+ alignItems: "center",
+ }
+ : {},
+ ({ columns: e }) =>
+ e && e > 1
+ ? {
+ ".innerZoomElementWrapper > *": {
+ minWidth: `calc(100% / ${e} - 20px)`,
+ },
+ }
+ : {},
+ ),
+ Fm = T(ES)(({ theme: e }) => ({
+ margin: 0,
+ borderTopLeftRadius: 0,
+ borderTopRightRadius: 0,
+ borderBottomLeftRadius: e.appBorderRadius,
+ borderBottomRightRadius: e.appBorderRadius,
+ border: "none",
+ background:
+ e.base === "light"
+ ? "rgba(0, 0, 0, 0.85)"
+ : Bt(0.05, e.background.content),
+ color: e.color.lightest,
+ button: {
+ background:
+ e.base === "light"
+ ? "rgba(0, 0, 0, 0.85)"
+ : Bt(0.05, e.background.content),
+ },
+ })),
+ v6 = T.div(
+ ({ theme: e, withSource: t, isExpanded: r }) => ({
+ position: "relative",
+ overflow: "hidden",
+ margin: "25px 0 40px",
+ ...Cl(e),
+ borderBottomLeftRadius: t && r && 0,
+ borderBottomRightRadius: t && r && 0,
+ borderBottomWidth: r && 0,
+ "h3 + &": { marginTop: "16px" },
+ }),
+ ({ withToolbar: e }) => e && { paddingTop: 40 },
+ ),
+ x6 = (e, t, r) => {
+ switch (!0) {
+ case !!(e && e.error):
+ return {
+ source: null,
+ actionItem: {
+ title: "No code available",
+ className: "docblock-code-toggle docblock-code-toggle--disabled",
+ disabled: !0,
+ onClick: () => r(!1),
+ },
+ };
+ case t:
+ return {
+ source: h.createElement(Fm, { ...e, dark: !0 }),
+ actionItem: {
+ title: "Hide code",
+ className: "docblock-code-toggle docblock-code-toggle--expanded",
+ onClick: () => r(!1),
+ },
+ };
+ default:
+ return {
+ source: h.createElement(Fm, { ...e, dark: !0 }),
+ actionItem: {
+ title: "Show code",
+ className: "docblock-code-toggle",
+ onClick: () => r(!0),
+ },
+ };
+ }
+ };
+function E6(e) {
+ if (b.Children.count(e) === 1) {
+ let t = e;
+ if (t.props) return t.props.id;
+ }
+ return null;
+}
+var w6 = T(y6)({ position: "absolute", top: 0, left: 0, right: 0, height: 40 }),
+ S6 = T.div({ overflow: "hidden", position: "relative" }),
+ CS = ({
+ isLoading: e,
+ isColumn: t,
+ columns: r,
+ children: n,
+ withSource: o,
+ withToolbar: a = !1,
+ isExpanded: i = !1,
+ additionalActions: l,
+ className: s,
+ layout: u = "padded",
+ inline: d = !1,
+ ...p
+ }) => {
+ let [c, f] = b.useState(i),
+ { source: g, actionItem: y } = x6(o, c, f),
+ [x, v] = b.useState(1),
+ C = [s].concat(["sbdocs", "sbdocs-preview", "sb-unstyled"]),
+ w = o ? [y] : [],
+ [E, $] = b.useState(l ? [...l] : []),
+ A = [...w, ...E],
+ { window: S } = globalThis,
+ D = b.useCallback(async (k) => {
+ let { createCopyToClipboardFunction: _ } = await cc(
+ () => Promise.resolve().then(() => WT),
+ void 0,
+ );
+ _();
+ }, []),
+ F = (k) => {
+ let _ = S.getSelection();
+ (_ && _.type === "Range") ||
+ (k.preventDefault(),
+ E.filter((I) => I.title === "Copied").length === 0 &&
+ D(g?.props.code ?? "").then(() => {
+ ($([...E, { title: "Copied", onClick: () => {} }]),
+ S.setTimeout(
+ () => $(E.filter((I) => I.title !== "Copied")),
+ 1500,
+ ));
+ }));
+ };
+ return h.createElement(
+ v6,
+ { withSource: o, withToolbar: a, ...p, className: C.join(" ") },
+ a &&
+ h.createElement(w6, {
+ isLoading: e,
+ border: !0,
+ zoom: (k) => v(x * k),
+ resetZoom: () => v(1),
+ storyId: E6(n),
+ baseUrl: "./iframe.html",
+ }),
+ h.createElement(
+ wS.Provider,
+ { value: { scale: x } },
+ h.createElement(
+ S6,
+ { className: "docs-story", onCopyCapture: o && F },
+ h.createElement(
+ b6,
+ {
+ isColumn: t || !Array.isArray(n),
+ columns: r,
+ layout: u,
+ inline: d,
+ },
+ h.createElement(
+ qw.Element,
+ { centered: u === "centered", scale: d ? x : 1 },
+ Array.isArray(n)
+ ? n.map((k, _) => h.createElement("div", { key: _ }, k))
+ : h.createElement("div", null, n),
+ ),
+ ),
+ h.createElement(al, { actionItems: A }),
+ ),
+ ),
+ o && c && g,
+ );
+ };
+T(CS)(() => ({ ".docs-story": { paddingTop: 32, paddingBottom: 40 } }));
+var C6 = ({ tabs: e, ...t }) => {
+ let r = Object.entries(e);
+ return r.length === 1
+ ? h.createElement(lc, { ...r[0][1], ...t })
+ : h.createElement(
+ lS,
+ null,
+ r.map((n, o) => {
+ let [a, i] = n,
+ l = `prop_table_div_${a}`,
+ s = "div",
+ u = o === 0 ? t : { sort: t.sort };
+ return h.createElement(
+ s,
+ { key: l, id: l, title: a },
+ ({ active: d }) =>
+ d
+ ? h.createElement(lc, { key: `prop_table_${a}`, ...i, ...u })
+ : null,
+ );
+ }),
+ );
+};
+T.div(({ theme: e }) => ({
+ marginRight: 30,
+ fontSize: `${e.typography.size.s1}px`,
+ color:
+ e.base === "light"
+ ? ye(0.4, e.color.defaultText)
+ : ye(0.6, e.color.defaultText),
+}));
+T.div({ overflow: "hidden", whiteSpace: "nowrap", textOverflow: "ellipsis" });
+T.div({
+ display: "flex",
+ flexDirection: "row",
+ alignItems: "baseline",
+ "&:not(:last-child)": { marginBottom: "1rem" },
+});
+T.div(we, ({ theme: e }) => ({
+ ...Cl(e),
+ margin: "25px 0 40px",
+ padding: "30px 20px",
+}));
+T.div(({ theme: e }) => ({
+ fontWeight: e.typography.weight.bold,
+ color: e.color.defaultText,
+}));
+T.div(({ theme: e }) => ({
+ color:
+ e.base === "light"
+ ? ye(0.2, e.color.defaultText)
+ : ye(0.6, e.color.defaultText),
+}));
+T.div({ flex: "0 0 30%", lineHeight: "20px", marginTop: 5 });
+T.div(({ theme: e }) => ({
+ flex: 1,
+ textAlign: "center",
+ fontFamily: e.typography.fonts.mono,
+ fontSize: e.typography.size.s1,
+ lineHeight: 1,
+ overflow: "hidden",
+ color:
+ e.base === "light"
+ ? ye(0.4, e.color.defaultText)
+ : ye(0.6, e.color.defaultText),
+ "> div": {
+ display: "inline-block",
+ overflow: "hidden",
+ maxWidth: "100%",
+ textOverflow: "ellipsis",
+ },
+ span: { display: "block", marginTop: 2 },
+}));
+T.div({ display: "flex", flexDirection: "row" });
+T.div(({ background: e }) => ({
+ position: "relative",
+ flex: 1,
+ "&::before": {
+ position: "absolute",
+ top: 0,
+ left: 0,
+ width: "100%",
+ height: "100%",
+ background: e,
+ content: '""',
+ },
+}));
+T.div(({ theme: e }) => ({
+ ...Cl(e),
+ display: "flex",
+ flexDirection: "row",
+ height: 50,
+ marginBottom: 5,
+ overflow: "hidden",
+ backgroundColor: "white",
+ backgroundImage:
+ "repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",
+ backgroundClip: "padding-box",
+}));
+T.div({
+ display: "flex",
+ flexDirection: "column",
+ flex: 1,
+ position: "relative",
+ marginBottom: 30,
+});
+T.div({ flex: 1, display: "flex", flexDirection: "row" });
+T.div({ display: "flex", alignItems: "flex-start" });
+T.div({ flex: "0 0 30%" });
+T.div({ flex: 1 });
+T.div(({ theme: e }) => ({
+ display: "flex",
+ flexDirection: "row",
+ alignItems: "center",
+ paddingBottom: 20,
+ fontWeight: e.typography.weight.bold,
+ color:
+ e.base === "light"
+ ? ye(0.4, e.color.defaultText)
+ : ye(0.6, e.color.defaultText),
+}));
+T.div(({ theme: e }) => ({
+ fontSize: e.typography.size.s2,
+ lineHeight: "20px",
+ display: "flex",
+ flexDirection: "column",
+}));
+T.div(({ theme: e }) => ({
+ fontFamily: e.typography.fonts.base,
+ fontSize: e.typography.size.s1,
+ color: e.color.defaultText,
+ marginLeft: 10,
+ lineHeight: 1.2,
+ display: "-webkit-box",
+ overflow: "hidden",
+ wordBreak: "break-word",
+ textOverflow: "ellipsis",
+ WebkitLineClamp: 2,
+ WebkitBoxOrient: "vertical",
+}));
+T.div(({ theme: e }) => ({
+ ...Cl(e),
+ overflow: "hidden",
+ height: 40,
+ width: 40,
+ display: "flex",
+ alignItems: "center",
+ justifyContent: "center",
+ flex: "none",
+ "> img, > svg": { width: 20, height: 20 },
+}));
+T.div({
+ display: "inline-flex",
+ flexDirection: "row",
+ alignItems: "center",
+ width: "100%",
+});
+T.div({
+ display: "grid",
+ gridTemplateColumns: "repeat(auto-fill, minmax(140px, 1fr))",
+ gridGap: "8px 16px",
+ gridAutoFlow: "row dense",
+ gridAutoRows: 50,
+});
+function $6(e) {
+ let t = [].forEach,
+ r = [].some,
+ n = typeof window < "u" && document.body,
+ o = " ",
+ a,
+ i = !0,
+ l = 0;
+ function s(k, _) {
+ let I = _.appendChild(d(k));
+ if (k.children.length) {
+ let L = p(k.isCollapsed);
+ (k.children.forEach((j) => {
+ s(j, L);
+ }),
+ I.appendChild(L));
+ }
+ }
+ function u(k, _) {
+ let I = p(!1);
+ if (
+ (_.forEach((L) => {
+ s(L, I);
+ }),
+ (a = k || a),
+ a !== null)
+ )
+ return (
+ a.firstChild && a.removeChild(a.firstChild),
+ _.length === 0 ? a : a.appendChild(I)
+ );
+ }
+ function d(k) {
+ let _ = document.createElement("li"),
+ I = document.createElement("a");
+ return (
+ e.listItemClass && _.setAttribute("class", e.listItemClass),
+ e.onClick && (I.onclick = e.onClick),
+ e.includeTitleTags && I.setAttribute("title", k.textContent),
+ e.includeHtml && k.childNodes.length
+ ? t.call(k.childNodes, (L) => {
+ I.appendChild(L.cloneNode(!0));
+ })
+ : (I.textContent = k.textContent),
+ I.setAttribute("href", `${e.basePath}#${k.id}`),
+ I.setAttribute(
+ "class",
+ `${e.linkClass + o}node-name--${k.nodeName}${o}${e.extraLinkClasses}`,
+ ),
+ _.appendChild(I),
+ _
+ );
+ }
+ function p(k) {
+ let _ = e.orderedList ? "ol" : "ul",
+ I = document.createElement(_),
+ L = e.listClass + o + e.extraListClasses;
+ return (
+ k && ((L = L + o + e.collapsibleClass), (L = L + o + e.isCollapsedClass)),
+ I.setAttribute("class", L),
+ I
+ );
+ }
+ function c() {
+ let k = S(),
+ _ = document.querySelector(e.positionFixedSelector);
+ (e.fixedSidebarOffset === "auto" && (e.fixedSidebarOffset = a.offsetTop),
+ k > e.fixedSidebarOffset
+ ? _.className.indexOf(e.positionFixedClass) === -1 &&
+ (_.className += o + e.positionFixedClass)
+ : (_.className = _.className.replace(o + e.positionFixedClass, "")));
+ }
+ function f(k) {
+ let _ = 0;
+ return (
+ k !== null &&
+ ((_ = k.offsetTop), e.hasInnerContainers && (_ += f(k.offsetParent))),
+ _
+ );
+ }
+ function g(k, _) {
+ return (k && k.className !== _ && (k.className = _), k);
+ }
+ function y(k, _) {
+ e.positionFixedSelector && c();
+ let I = k,
+ L = _?.target?.getAttribute ? _?.target?.getAttribute("href") : null,
+ j = L && L.charAt(0) === "#" ? E(L.replace("#", "")) : !1,
+ B = i || j;
+ if ((_ && l < 5 && l++, B && a && I.length > 0)) {
+ let z = D(I),
+ V = a.querySelector(`.${e.activeLinkClass}`),
+ Y = z.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g, "\\$1"),
+ W = window.location.hash.replace("#", ""),
+ G = Y,
+ J = $();
+ L && j
+ ? (G = L.replace("#", ""))
+ : W && W !== Y && J && (E(Y) || l <= 2) && (G = W);
+ let Q = a.querySelector(`.${e.linkClass}[href="${e.basePath}#${G}"]`);
+ if (V === Q) return;
+ let re = a.querySelectorAll(`.${e.linkClass}`);
+ t.call(re, (Z) => {
+ g(Z, Z.className.replace(o + e.activeLinkClass, ""));
+ });
+ let ie = a.querySelectorAll(`.${e.listItemClass}`);
+ (t.call(ie, (Z) => {
+ g(Z, Z.className.replace(o + e.activeListItemClass, ""));
+ }),
+ Q &&
+ Q.className.indexOf(e.activeLinkClass) === -1 &&
+ (Q.className += o + e.activeLinkClass));
+ let H = Q?.parentNode;
+ H &&
+ H.className.indexOf(e.activeListItemClass) === -1 &&
+ (H.className += o + e.activeListItemClass);
+ let X = a.querySelectorAll(`.${e.listClass}.${e.collapsibleClass}`);
+ (t.call(X, (Z) => {
+ Z.className.indexOf(e.isCollapsedClass) === -1 &&
+ (Z.className += o + e.isCollapsedClass);
+ }),
+ Q?.nextSibling &&
+ Q.nextSibling.className.indexOf(e.isCollapsedClass) !== -1 &&
+ g(
+ Q.nextSibling,
+ Q.nextSibling.className.replace(o + e.isCollapsedClass, ""),
+ ),
+ x(Q?.parentNode.parentNode));
+ }
+ }
+ function x(k) {
+ return k &&
+ k.className.indexOf(e.collapsibleClass) !== -1 &&
+ k.className.indexOf(e.isCollapsedClass) !== -1
+ ? (g(k, k.className.replace(o + e.isCollapsedClass, "")),
+ x(k.parentNode.parentNode))
+ : k;
+ }
+ function v(k) {
+ let _ = k.target || k.srcElement;
+ typeof _.className != "string" ||
+ _.className.indexOf(e.linkClass) === -1 ||
+ (i = !1);
+ }
+ function C() {
+ i = !0;
+ }
+ function w() {
+ return i;
+ }
+ function E(k) {
+ let _ = A();
+ return (
+ (document?.getElementById(k)).offsetTop >
+ _.offsetHeight - _.clientHeight * 1.4 - e.bottomModeThreshold
+ );
+ }
+ function $() {
+ let k = A(),
+ _ = k.scrollHeight > k.clientHeight,
+ I = S() + k.clientHeight > k.offsetHeight - e.bottomModeThreshold;
+ return _ && I;
+ }
+ function A() {
+ let k;
+ return (
+ e.scrollContainer && document.querySelector(e.scrollContainer)
+ ? (k = document.querySelector(e.scrollContainer))
+ : (k = document.documentElement || n),
+ k
+ );
+ }
+ function S() {
+ return A()?.scrollTop || 0;
+ }
+ function D(k, _ = S()) {
+ let I;
+ return (
+ r.call(k, (L, j) => {
+ if (f(L) > _ + e.headingsOffset + 10) {
+ let B = j === 0 ? j : j - 1;
+ return ((I = k[B]), !0);
+ }
+ if (j === k.length - 1) return ((I = k[k.length - 1]), !0);
+ }),
+ I
+ );
+ }
+ function F(k) {
+ let _ = S(),
+ I = D(k, _),
+ L = $();
+ if ((!I || _ < 5) && !L)
+ window.location.hash === "#" ||
+ window.location.hash === "" ||
+ window.history.pushState(null, null, "#");
+ else if (I && !L) {
+ let j = `#${I.id}`;
+ window.location.hash !== j && window.history.pushState(null, null, j);
+ }
+ }
+ return {
+ enableTocAnimation: C,
+ disableTocAnimation: v,
+ render: u,
+ updateToc: y,
+ getCurrentlyHighlighting: w,
+ getTopHeader: D,
+ getScrollTop: S,
+ updateUrlHashForHeader: F,
+ };
+}
+var A6 = {
+ tocSelector: ".js-toc",
+ tocElement: null,
+ contentSelector: ".js-toc-content",
+ contentElement: null,
+ headingSelector: "h1, h2, h3",
+ ignoreSelector: ".js-toc-ignore",
+ hasInnerContainers: !1,
+ linkClass: "toc-link",
+ extraLinkClasses: "",
+ activeLinkClass: "is-active-link",
+ listClass: "toc-list",
+ extraListClasses: "",
+ isCollapsedClass: "is-collapsed",
+ collapsibleClass: "is-collapsible",
+ listItemClass: "toc-list-item",
+ activeListItemClass: "is-active-li",
+ collapseDepth: 0,
+ scrollSmooth: !0,
+ scrollSmoothDuration: 420,
+ scrollSmoothOffset: 0,
+ scrollEndCallback: function (e) {},
+ headingsOffset: 1,
+ enableUrlHashUpdateOnScroll: !1,
+ scrollHandlerType: "auto",
+ scrollHandlerTimeout: 50,
+ throttleTimeout: 50,
+ positionFixedSelector: null,
+ positionFixedClass: "is-position-fixed",
+ fixedSidebarOffset: "auto",
+ includeHtml: !1,
+ includeTitleTags: !1,
+ onClick: function (e) {},
+ orderedList: !0,
+ scrollContainer: null,
+ skipRendering: !1,
+ headingLabelCallback: !1,
+ ignoreHiddenElements: !1,
+ headingObjectCallback: null,
+ basePath: "",
+ disableTocScrollSync: !1,
+ tocScrollingWrapper: null,
+ tocScrollOffset: 30,
+ bottomModeThreshold: 30,
+};
+function D6(e) {
+ let t = [].reduce;
+ function r(u) {
+ return u[u.length - 1];
+ }
+ function n(u) {
+ return +u.nodeName.toUpperCase().replace("H", "");
+ }
+ function o(u) {
+ try {
+ return (
+ u instanceof window.HTMLElement ||
+ u instanceof window.parent.HTMLElement
+ );
+ } catch {
+ return u instanceof window.HTMLElement;
+ }
+ }
+ function a(u) {
+ if (!o(u)) return u;
+ if (e.ignoreHiddenElements && (!u.offsetHeight || !u.offsetParent))
+ return null;
+ let d =
+ u.getAttribute("data-heading-label") ||
+ (e.headingLabelCallback
+ ? String(e.headingLabelCallback(u.innerText))
+ : (u.innerText || u.textContent).trim()),
+ p = {
+ id: u.id,
+ children: [],
+ nodeName: u.nodeName,
+ headingLevel: n(u),
+ textContent: d,
+ };
+ return (
+ e.includeHtml && (p.childNodes = u.childNodes),
+ e.headingObjectCallback ? e.headingObjectCallback(p, u) : p
+ );
+ }
+ function i(u, d) {
+ let p = a(u),
+ c = p.headingLevel,
+ f = d,
+ g = r(f),
+ y = g ? g.headingLevel : 0,
+ x = c - y;
+ for (; x > 0 && ((g = r(f)), !(g && c === g.headingLevel)); )
+ (g && g.children !== void 0 && (f = g.children), x--);
+ return (c >= e.collapseDepth && (p.isCollapsed = !0), f.push(p), f);
+ }
+ function l(u, d) {
+ let p = d;
+ e.ignoreSelector &&
+ (p = d.split(",").map(function (c) {
+ return `${c.trim()}:not(${e.ignoreSelector})`;
+ }));
+ try {
+ return u.querySelectorAll(p);
+ } catch {
+ return (console.warn(`Headers not found with selector: ${p}`), null);
+ }
+ }
+ function s(u) {
+ return t.call(
+ u,
+ function (d, p) {
+ let c = a(p);
+ return (c && i(c, d.nest), d);
+ },
+ { nest: [] },
+ );
+ }
+ return { nestHeadingsArray: s, selectHeadings: l };
+}
+function k6(e) {
+ var t = e.duration,
+ r = e.offset;
+ if (typeof window > "u" || typeof location > "u") return;
+ var n = location.hash ? i(location.href) : location.href;
+ o();
+ function o() {
+ document.body.addEventListener("click", s, !1);
+ function s(u) {
+ !a(u.target) ||
+ u.target.className.indexOf("no-smooth-scroll") > -1 ||
+ (u.target.href.charAt(u.target.href.length - 2) === "#" &&
+ u.target.href.charAt(u.target.href.length - 1) === "!") ||
+ u.target.className.indexOf(e.linkClass) === -1 ||
+ O6(u.target.hash, {
+ duration: t,
+ offset: r,
+ callback: function () {
+ l(u.target.hash);
+ },
+ });
+ }
+ }
+ function a(s) {
+ return (
+ s.tagName.toLowerCase() === "a" &&
+ (s.hash.length > 0 || s.href.charAt(s.href.length - 1) === "#") &&
+ (i(s.href) === n || i(s.href) + "#" === n)
+ );
+ }
+ function i(s) {
+ return s.slice(0, s.lastIndexOf("#"));
+ }
+ function l(s) {
+ var u = document.getElementById(s.substring(1));
+ u &&
+ (/^(?:a|select|input|button|textarea)$/i.test(u.tagName) ||
+ (u.tabIndex = -1),
+ u.focus());
+ }
+}
+function O6(e, t) {
+ var r = window.pageYOffset,
+ n = {
+ duration: t.duration,
+ offset: t.offset || 0,
+ callback: t.callback,
+ easing: t.easing || p,
+ },
+ o =
+ document.querySelector(
+ '[id="' + decodeURI(e).split("#").join("") + '"]',
+ ) || document.querySelector('[id="' + e.split("#").join("") + '"]'),
+ a =
+ typeof e == "string"
+ ? n.offset +
+ (e
+ ? (o && o.getBoundingClientRect().top) || 0
+ : -(document.documentElement.scrollTop || document.body.scrollTop))
+ : e,
+ i = typeof n.duration == "function" ? n.duration(a) : n.duration,
+ l,
+ s;
+ requestAnimationFrame(function (c) {
+ ((l = c), u(c));
+ });
+ function u(c) {
+ ((s = c - l),
+ window.scrollTo(0, n.easing(s, r, a, i)),
+ s < i ? requestAnimationFrame(u) : d());
+ }
+ function d() {
+ (window.scrollTo(0, r + a),
+ typeof n.callback == "function" && n.callback());
+ }
+ function p(c, f, g, y) {
+ return (
+ (c /= y / 2),
+ c < 1 ? (g / 2) * c * c + f : (c--, (-g / 2) * (c * (c - 2) - 1) + f)
+ );
+ }
+}
+function F6(e) {
+ let t =
+ e.tocScrollingWrapper ||
+ e.tocElement ||
+ document.querySelector(e.tocSelector);
+ if (t && t.scrollHeight > t.clientHeight) {
+ let r = t.querySelector(`.${e.activeListItemClass}`);
+ if (r) {
+ let n = r.offsetTop - e.tocScrollOffset;
+ t.scrollTop = n > 0 ? n : 0;
+ }
+ }
+}
+var ae = {},
+ xt,
+ ws,
+ Nr,
+ wt,
+ Wo;
+function $S(e) {
+ let t = !1;
+ ((ae = R6(A6, e || {})),
+ ae.scrollSmooth &&
+ ((ae.duration = ae.scrollSmoothDuration),
+ (ae.offset = ae.scrollSmoothOffset),
+ k6(ae)),
+ (xt = $6(ae)),
+ (ws = D6(ae)),
+ pp());
+ let r = I6(ae);
+ if (r === null) return;
+ let n = AS(ae);
+ if (
+ n === null ||
+ ((Nr = ws.selectHeadings(r, ae.headingSelector)), Nr === null)
+ )
+ return;
+ let o = ws.nestHeadingsArray(Nr).nest;
+ if (!ae.skipRendering) xt.render(n, o);
+ else return this;
+ let a = !1,
+ i = ae.scrollHandlerTimeout || ae.throttleTimeout;
+ ((wt = ((s, u) => P6(s, u, ae.scrollHandlerType))((s) => {
+ (xt.updateToc(Nr, s),
+ !ae.disableTocScrollSync && !a && F6(ae),
+ ae.enableUrlHashUpdateOnScroll &&
+ t &&
+ xt.getCurrentlyHighlighting() &&
+ xt.updateUrlHashForHeader(Nr));
+ let u = s?.target?.scrollingElement?.scrollTop === 0;
+ ((s && (s.eventPhase === 0 || s.currentTarget === null)) || u) &&
+ (xt.updateToc(Nr), ae.scrollEndCallback?.(s));
+ }, i)),
+ t || (wt(), (t = !0)),
+ (window.onhashchange = window.onscrollend =
+ (s) => {
+ wt(s);
+ }),
+ ae.scrollContainer && document.querySelector(ae.scrollContainer)
+ ? (document
+ .querySelector(ae.scrollContainer)
+ .addEventListener("scroll", wt, !1),
+ document
+ .querySelector(ae.scrollContainer)
+ .addEventListener("resize", wt, !1))
+ : (document.addEventListener("scroll", wt, !1),
+ document.addEventListener("resize", wt, !1)));
+ let l = null;
+ ((Wo = tc((s) => {
+ ((a = !0),
+ ae.scrollSmooth && xt.disableTocAnimation(s),
+ xt.updateToc(Nr, s),
+ l && clearTimeout(l),
+ (l = setTimeout(() => {
+ xt.enableTocAnimation();
+ }, ae.scrollSmoothDuration)),
+ setTimeout(() => {
+ a = !1;
+ }, ae.scrollSmoothDuration + 100));
+ }, ae.throttleTimeout)),
+ ae.scrollContainer && document.querySelector(ae.scrollContainer)
+ ? document
+ .querySelector(ae.scrollContainer)
+ .addEventListener("click", Wo, !1)
+ : document.addEventListener("click", Wo, !1));
+}
+function pp() {
+ let e = AS(ae);
+ e !== null &&
+ (ae.skipRendering || (e && (e.innerHTML = "")),
+ ae.scrollContainer && document.querySelector(ae.scrollContainer)
+ ? (document
+ .querySelector(ae.scrollContainer)
+ .removeEventListener("scroll", wt, !1),
+ document
+ .querySelector(ae.scrollContainer)
+ .removeEventListener("resize", wt, !1),
+ xt &&
+ document
+ .querySelector(ae.scrollContainer)
+ .removeEventListener("click", Wo, !1))
+ : (document.removeEventListener("scroll", wt, !1),
+ document.removeEventListener("resize", wt, !1),
+ xt && document.removeEventListener("click", Wo, !1)));
+}
+function _6(e) {
+ (pp(), $S(e || ae));
+}
+var T6 = Object.prototype.hasOwnProperty;
+function R6(...e) {
+ let t = {};
+ for (let r = 0; r < e.length; r++) {
+ let n = e[r];
+ for (let o in n) T6.call(n, o) && (t[o] = n[o]);
+ }
+ return t;
+}
+function tc(e, t, r) {
+ t || (t = 250);
+ let n, o;
+ return function (...a) {
+ let i = this,
+ l = +new Date();
+ n && l < n + t
+ ? (clearTimeout(o),
+ (o = setTimeout(() => {
+ ((n = l), e.apply(i, a));
+ }, t)))
+ : ((n = l), e.apply(i, a));
+ };
+}
+function _m(e, t) {
+ let r;
+ return (...n) => {
+ (clearTimeout(r), (r = setTimeout(() => e.apply(this, n), t)));
+ };
+}
+function P6(e, t, r = "auto") {
+ switch (r) {
+ case "debounce":
+ return _m(e, t);
+ case "throttle":
+ return tc(e, t);
+ default:
+ return t < 334 ? _m(e, t) : tc(e, t);
+ }
+}
+function I6(e) {
+ try {
+ return e.contentElement || document.querySelector(e.contentSelector);
+ } catch {
+ return (
+ console.warn(`Contents element not found: ${e.contentSelector}`),
+ null
+ );
+ }
+}
+function AS(e) {
+ try {
+ return e.tocElement || document.querySelector(e.tocSelector);
+ } catch {
+ return (console.warn(`TOC element not found: ${e.tocSelector}`), null);
+ }
+}
+var L6 = { destroy: pp, init: $S, refresh: _6 },
+ Tm = L6,
+ B6 = T.aside(() => ({
+ width: "10rem",
+ "@media (max-width: 768px)": { display: "none" },
+ })),
+ N6 = T.nav(({ theme: e }) => ({
+ position: "fixed",
+ bottom: 0,
+ top: 0,
+ width: "10rem",
+ paddingTop: "4rem",
+ paddingBottom: "2rem",
+ overflowY: "auto",
+ fontFamily: e.typography.fonts.base,
+ fontSize: e.typography.size.s2,
+ WebkitFontSmoothing: "antialiased",
+ MozOsxFontSmoothing: "grayscale",
+ WebkitTapHighlightColor: "rgba(0, 0, 0, 0)",
+ WebkitOverflowScrolling: "touch",
+ "& *": { boxSizing: "border-box" },
+ "& > .toc-wrapper > .toc-list": {
+ paddingLeft: 0,
+ borderLeft: `solid 2px ${e.color.mediumlight}`,
+ ".toc-list": {
+ paddingLeft: 0,
+ borderLeft: `solid 2px ${e.color.mediumlight}`,
+ ".toc-list": {
+ paddingLeft: 0,
+ borderLeft: `solid 2px ${e.color.mediumlight}`,
+ },
+ },
+ },
+ "& .toc-list-item": {
+ position: "relative",
+ listStyleType: "none",
+ marginLeft: 20,
+ paddingTop: 3,
+ paddingBottom: 3,
+ },
+ "& .toc-list-item::before": {
+ content: '""',
+ position: "absolute",
+ height: "100%",
+ top: 0,
+ left: 0,
+ transform: "translateX(calc(-2px - 20px))",
+ borderLeft: `solid 2px ${e.color.mediumdark}`,
+ opacity: 0,
+ transition: "opacity 0.2s",
+ },
+ "& .toc-list-item.is-active-li::before": { opacity: 1 },
+ "& .toc-list-item > a": {
+ color: e.color.defaultText,
+ textDecoration: "none",
+ },
+ "& .toc-list-item.is-active-li > a": {
+ fontWeight: 600,
+ color: e.color.secondary,
+ textDecoration: "none",
+ },
+ })),
+ j6 = T.p(({ theme: e }) => ({
+ fontWeight: 600,
+ fontSize: "0.875em",
+ color: e.textColor,
+ textTransform: "uppercase",
+ marginBottom: 10,
+ })),
+ M6 = ({ headingId: e, title: t }) =>
+ typeof t == "string" || !t
+ ? h.createElement(
+ j6,
+ { as: "h2", id: e, className: t ? "" : "sb-sr-only" },
+ t || "Table of contents",
+ )
+ : h.createElement("div", { id: e }, t),
+ z6 = ({
+ title: e,
+ disable: t,
+ headingSelector: r,
+ contentsSelector: n,
+ ignoreSelector: o,
+ unsafeTocbotOptions: a,
+ channel: i,
+ className: l,
+ }) => {
+ b.useEffect(() => {
+ if (t) return () => {};
+ let u = {
+ tocSelector: ".toc-wrapper",
+ contentSelector: n ?? ".sbdocs-content",
+ headingSelector: r ?? "h3",
+ ignoreSelector: o ?? ".docs-story *, .skip-toc",
+ headingsOffset: 40,
+ scrollSmoothOffset: -40,
+ orderedList: !1,
+ onClick: (p) => {
+ if (
+ (p.preventDefault(), p.currentTarget instanceof HTMLAnchorElement)
+ ) {
+ let [, c] = p.currentTarget.href.split("#");
+ c && i.emit(gS, `#${c}`);
+ }
+ },
+ ...a,
+ },
+ d = setTimeout(() => Tm.init(u), 100);
+ return () => {
+ (clearTimeout(d), Tm.destroy());
+ };
+ }, [i, t, o, n, r, a]);
+ let s = b.useId();
+ return h.createElement(
+ B6,
+ { className: l },
+ t
+ ? null
+ : h.createElement(
+ N6,
+ { "aria-labelledby": s },
+ h.createElement(M6, { headingId: s, title: e }),
+ h.createElement("div", { className: "toc-wrapper" }),
+ ),
+ );
+ };
+function Ur() {
+ return (
+ (Ur = Object.assign
+ ? Object.assign.bind()
+ : function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var r = arguments[t];
+ for (var n in r)
+ Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
+ }
+ return e;
+ }),
+ Ur.apply(this, arguments)
+ );
+}
+var H6 = ["children", "options"],
+ ee = {
+ blockQuote: "0",
+ breakLine: "1",
+ breakThematic: "2",
+ codeBlock: "3",
+ codeFenced: "4",
+ codeInline: "5",
+ footnote: "6",
+ footnoteReference: "7",
+ gfmTask: "8",
+ heading: "9",
+ headingSetext: "10",
+ htmlBlock: "11",
+ htmlComment: "12",
+ htmlSelfClosing: "13",
+ image: "14",
+ link: "15",
+ linkAngleBraceStyleDetector: "16",
+ linkBareUrlDetector: "17",
+ linkMailtoDetector: "18",
+ newlineCoalescer: "19",
+ orderedList: "20",
+ paragraph: "21",
+ ref: "22",
+ refImage: "23",
+ refLink: "24",
+ table: "25",
+ text: "27",
+ textBolded: "28",
+ textEmphasized: "29",
+ textEscaped: "30",
+ textMarked: "31",
+ textStrikethroughed: "32",
+ unorderedList: "33",
+ },
+ Rm;
+(function (e) {
+ ((e[(e.MAX = 0)] = "MAX"),
+ (e[(e.HIGH = 1)] = "HIGH"),
+ (e[(e.MED = 2)] = "MED"),
+ (e[(e.LOW = 3)] = "LOW"),
+ (e[(e.MIN = 4)] = "MIN"));
+})(Rm || (Rm = {}));
+var Pm = [
+ "allowFullScreen",
+ "allowTransparency",
+ "autoComplete",
+ "autoFocus",
+ "autoPlay",
+ "cellPadding",
+ "cellSpacing",
+ "charSet",
+ "classId",
+ "colSpan",
+ "contentEditable",
+ "contextMenu",
+ "crossOrigin",
+ "encType",
+ "formAction",
+ "formEncType",
+ "formMethod",
+ "formNoValidate",
+ "formTarget",
+ "frameBorder",
+ "hrefLang",
+ "inputMode",
+ "keyParams",
+ "keyType",
+ "marginHeight",
+ "marginWidth",
+ "maxLength",
+ "mediaGroup",
+ "minLength",
+ "noValidate",
+ "radioGroup",
+ "readOnly",
+ "rowSpan",
+ "spellCheck",
+ "srcDoc",
+ "srcLang",
+ "srcSet",
+ "tabIndex",
+ "useMap",
+ ].reduce((e, t) => ((e[t.toLowerCase()] = t), e), {
+ class: "className",
+ for: "htmlFor",
+ }),
+ Im = { amp: "&", apos: "'", gt: ">", lt: "<", nbsp: " ", quot: "“" },
+ U6 = ["style", "script"],
+ W6 = ["src", "href", "data", "formAction", "srcDoc", "action"],
+ V6 =
+ /([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,
+ q6 = /mailto:/i,
+ G6 = /\n{2,}$/,
+ DS = /^(\s*>[\s\S]*?)(?=\n\n|$)/,
+ Y6 = /^ *> ?/gm,
+ K6 = /^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,
+ X6 = /^ {2,}\n/,
+ Z6 = /^(?:( *[-*_])){3,} *(?:\n *)+\n/,
+ kS = /^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,
+ OS = /^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,
+ J6 = /^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,
+ Q6 = /^(?:\n *)*\n/,
+ eP = /\r\n?/g,
+ tP = /^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,
+ rP = /^\[\^([^\]]+)]/,
+ nP = /\f/g,
+ oP = /^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,
+ aP = /^\s*?\[(x|\s)\]/,
+ FS = /^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,
+ _S = /^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,
+ TS = /^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,
+ rc =
+ /^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,
+ iP = /&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,
+ RS = /^)/,
+ lP = /^(data|aria|x)-[a-z_][a-z\d_.-]*$/,
+ nc = /^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,
+ sP = /^\{.*\}$/,
+ uP = /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,
+ cP = /^<([^ >]+@[^ >]+)>/,
+ dP = /^<([^ >]+:\/[^ >]+)>/,
+ pP = /-([a-z])?/gi,
+ PS = /^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,
+ fP = /^\[([^\]]*)\]:\s+([^\s>]+)>?\s*("([^"]*)")?/,
+ gP = /^!\[([^\]]*)\] ?\[([^\]]*)\]/,
+ mP = /^\[([^\]]*)\] ?\[([^\]]*)\]/,
+ hP = /(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,
+ yP = /\t/g,
+ bP = /(^ *\||\| *$)/g,
+ vP = /^ *:-+: *$/,
+ xP = /^ *:-+ *$/,
+ EP = /^ *-+: *$/,
+ $l =
+ "((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",
+ wP = new RegExp(`^([*_])\\1${$l}\\1\\1(?!\\1)`),
+ SP = new RegExp(`^([*_])${$l}\\1(?!\\1)`),
+ CP = new RegExp(`^(==)${$l}\\1`),
+ $P = new RegExp(`^(~~)${$l}\\1`),
+ AP = /^\\([^0-9A-Za-z\s])/,
+ Lm = /\\([^0-9A-Za-z\s])/g,
+ DP = /^([\s\S](?:(?! |[0-9]\.)[^=*_~\-\n<`\\\[!])*)/,
+ kP = /^\n+/,
+ OP = /^([ \t]*)/,
+ FP = /\\([^\\])/g,
+ _P = /(?:^|\n)( *)$/,
+ fp = "(?:\\d+\\.)",
+ gp = "(?:[*+-])";
+function IS(e) {
+ return "( *)(" + (e === 1 ? fp : gp) + ") +";
+}
+var LS = IS(1),
+ BS = IS(2);
+function NS(e) {
+ return new RegExp("^" + (e === 1 ? LS : BS));
+}
+var TP = NS(1),
+ RP = NS(2);
+function jS(e) {
+ return new RegExp(
+ "^" +
+ (e === 1 ? LS : BS) +
+ "[^\\n]*(?:\\n(?!\\1" +
+ (e === 1 ? fp : gp) +
+ " )[^\\n]*)*(\\n|$)",
+ "gm",
+ );
+}
+var PP = jS(1),
+ IP = jS(2);
+function MS(e) {
+ let t = e === 1 ? fp : gp;
+ return new RegExp(
+ "^( *)(" +
+ t +
+ ") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1" +
+ t +
+ " (?!" +
+ t +
+ " ))\\n*|\\s*\\n*$)",
+ );
+}
+var zS = MS(1),
+ HS = MS(2);
+function Bm(e, t) {
+ let r = t === 1,
+ n = r ? zS : HS,
+ o = r ? PP : IP,
+ a = r ? TP : RP;
+ return {
+ match: ro(function (i, l) {
+ let s = _P.exec(l.prevCapture);
+ return s && (l.list || (!l.inline && !l.simple))
+ ? n.exec((i = s[1] + i))
+ : null;
+ }),
+ order: 1,
+ parse(i, l, s) {
+ let u = r ? +i[2] : void 0,
+ d = i[0]
+ .replace(
+ G6,
+ `
+`,
+ )
+ .match(o),
+ p = !1;
+ return {
+ items: d.map(function (c, f) {
+ let g = a.exec(c)[0].length,
+ y = new RegExp("^ {1," + g + "}", "gm"),
+ x = c.replace(y, "").replace(a, ""),
+ v = f === d.length - 1,
+ C =
+ x.indexOf(`
-`)!==-1||v&&p;p=C;let w=s.inline,E=s.list,$;s.list=!0,C?(s.inline=!1,$=Qo(x)+`
+`) !== -1 ||
+ (v && p);
+ p = C;
+ let w = s.inline,
+ E = s.list,
+ $;
+ ((s.list = !0),
+ C
+ ? ((s.inline = !1),
+ ($ =
+ Qo(x) +
+ `
-`):(s.inline=!0,$=Qo(x));let A=l($,s);return s.inline=w,s.list=E,A}),ordered:r,start:u}},render:(i,l,s)=>e(i.ordered?"ol":"ul",{key:s.key,start:i.type===ee.orderedList?i.start:void 0},i.items.map(function(u,d){return e("li",{key:d},l(u,s))}))}}var LP=new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),BP=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,US=[DS,kS,OS,FS,TS,_S,PS,zS,HS],NP=[...US,/^[^\n]+(?: \n|\n{2,})/,rc,RS,nc];function Qo(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function Co(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function jP(e){return EP.test(e)?"right":vP.test(e)?"center":xP.test(e)?"left":null}function Nm(e,t,r,n){let o=r.inTable;r.inTable=!0;let a=[[]],i="";function l(){if(!i)return;let s=a[a.length-1];s.push.apply(s,t(i,r)),i=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((s,u,d)=>{s.trim()==="|"&&(l(),n)?u!==0&&u!==d.length-1&&a.push([]):i+=s}),l(),r.inTable=o,a}function MP(e,t,r){r.inline=!0;let n=e[2]?e[2].replace(bP,"").split("|").map(jP):[],o=e[3]?function(i,l,s){return i.trim().split(`
-`).map(function(u){return Nm(u,l,s,!0)})}(e[3],t,r):[],a=Nm(e[1],t,r,!!o.length);return r.inline=!1,o.length?{align:n,cells:o,header:a,type:ee.table}:{children:a,type:ee.paragraph}}function jm(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function ro(e){return e.inline=1,e}function fr(e){return ro(function(t,r){return r.inline?e.exec(t):null})}function gr(e){return ro(function(t,r){return r.inline||r.simple?e.exec(t):null})}function Xt(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function $o(e){return ro(function(t){return e.exec(t)})}function zP(e,t){if(t.inline||t.simple)return null;let r="";e.split(`
-`).every(o=>(o+=`
-`,!US.some(a=>a.test(o))&&(r+=o,!!o.trim())));let n=Qo(r);return n==""?null:[r,,n]}var HP=/(javascript|vbscript|data(?!:image)):/i;function UP(e){try{let t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(HP.test(t))return null}catch{return null}return e}function Mm(e){return e.replace(FP,"$1")}function Ka(e,t,r){let n=r.inline||!1,o=r.simple||!1;r.inline=!0,r.simple=!0;let a=e(t,r);return r.inline=n,r.simple=o,a}function WP(e,t,r){let n=r.inline||!1,o=r.simple||!1;r.inline=!1,r.simple=!0;let a=e(t,r);return r.inline=n,r.simple=o,a}function VP(e,t,r){let n=r.inline||!1;r.inline=!1;let o=e(t,r);return r.inline=n,o}var Ss=(e,t,r)=>({children:Ka(t,e[2],r)});function Cs(){return{}}function $s(){return null}function qP(...e){return e.filter(Boolean).join(" ")}function As(e,t,r){let n=e,o=t.split(".");for(;o.length&&(n=n[o[0]],n!==void 0);)o.shift();return n||r}function GP(e="",t={}){function r(c,f,...g){let y=As(t.overrides,`${c}.props`,{});return t.createElement(function(x,v){let C=As(v,x);return C?typeof C=="function"||typeof C=="object"&&"render"in C?C:As(v,`${x}.component`,x):x}(c,t.overrides),Ur({},f,y,{className:qP(f?.className,y.className)||void 0}),...g)}function n(c){c=c.replace(oP,"");let f=!1;t.forceInline?f=!0:t.forceBlock||(f=hP.test(c)===!1);let g=u(s(f?c:`${Qo(c).replace(kP,"")}
+`))
+ : ((s.inline = !0), ($ = Qo(x))));
+ let A = l($, s);
+ return ((s.inline = w), (s.list = E), A);
+ }),
+ ordered: r,
+ start: u,
+ };
+ },
+ render: (i, l, s) =>
+ e(
+ i.ordered ? "ol" : "ul",
+ { key: s.key, start: i.type === ee.orderedList ? i.start : void 0 },
+ i.items.map(function (u, d) {
+ return e("li", { key: d }, l(u, s));
+ }),
+ ),
+ };
+}
+var LP = new RegExp(
+ `^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`,
+ ),
+ BP = /^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,
+ US = [DS, kS, OS, FS, TS, _S, PS, zS, HS],
+ NP = [...US, /^[^\n]+(?: \n|\n{2,})/, rc, RS, nc];
+function Qo(e) {
+ let t = e.length;
+ for (; t > 0 && e[t - 1] <= " "; ) t--;
+ return e.slice(0, t);
+}
+function Co(e) {
+ return e
+ .replace(/[ÀÁÂÃÄÅàáâãä忯]/g, "a")
+ .replace(/[çÇ]/g, "c")
+ .replace(/[ðÐ]/g, "d")
+ .replace(/[ÈÉÊËéèêë]/g, "e")
+ .replace(/[ÏïÎîÍíÌì]/g, "i")
+ .replace(/[Ññ]/g, "n")
+ .replace(/[øØœŒÕõÔôÓóÒò]/g, "o")
+ .replace(/[ÜüÛûÚúÙù]/g, "u")
+ .replace(/[ŸÿÝý]/g, "y")
+ .replace(/[^a-z0-9- ]/gi, "")
+ .replace(/ /gi, "-")
+ .toLowerCase();
+}
+function jP(e) {
+ return EP.test(e)
+ ? "right"
+ : vP.test(e)
+ ? "center"
+ : xP.test(e)
+ ? "left"
+ : null;
+}
+function Nm(e, t, r, n) {
+ let o = r.inTable;
+ r.inTable = !0;
+ let a = [[]],
+ i = "";
+ function l() {
+ if (!i) return;
+ let s = a[a.length - 1];
+ (s.push.apply(s, t(i, r)), (i = ""));
+ }
+ return (
+ e
+ .trim()
+ .split(/(`[^`]*`|\\\||\|)/)
+ .filter(Boolean)
+ .forEach((s, u, d) => {
+ s.trim() === "|" && (l(), n)
+ ? u !== 0 && u !== d.length - 1 && a.push([])
+ : (i += s);
+ }),
+ l(),
+ (r.inTable = o),
+ a
+ );
+}
+function MP(e, t, r) {
+ r.inline = !0;
+ let n = e[2] ? e[2].replace(bP, "").split("|").map(jP) : [],
+ o = e[3]
+ ? (function (i, l, s) {
+ return i
+ .trim()
+ .split(
+ `
+`,
+ )
+ .map(function (u) {
+ return Nm(u, l, s, !0);
+ });
+ })(e[3], t, r)
+ : [],
+ a = Nm(e[1], t, r, !!o.length);
+ return (
+ (r.inline = !1),
+ o.length
+ ? { align: n, cells: o, header: a, type: ee.table }
+ : { children: a, type: ee.paragraph }
+ );
+}
+function jm(e, t) {
+ return e.align[t] == null ? {} : { textAlign: e.align[t] };
+}
+function ro(e) {
+ return ((e.inline = 1), e);
+}
+function fr(e) {
+ return ro(function (t, r) {
+ return r.inline ? e.exec(t) : null;
+ });
+}
+function gr(e) {
+ return ro(function (t, r) {
+ return r.inline || r.simple ? e.exec(t) : null;
+ });
+}
+function Xt(e) {
+ return function (t, r) {
+ return r.inline || r.simple ? null : e.exec(t);
+ };
+}
+function $o(e) {
+ return ro(function (t) {
+ return e.exec(t);
+ });
+}
+function zP(e, t) {
+ if (t.inline || t.simple) return null;
+ let r = "";
+ e.split(
+ `
+`,
+ ).every(
+ (o) => (
+ (o += `
+`),
+ !US.some((a) => a.test(o)) && ((r += o), !!o.trim())
+ ),
+ );
+ let n = Qo(r);
+ return n == "" ? null : [r, , n];
+}
+var HP = /(javascript|vbscript|data(?!:image)):/i;
+function UP(e) {
+ try {
+ let t = decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g, "");
+ if (HP.test(t)) return null;
+ } catch {
+ return null;
+ }
+ return e;
+}
+function Mm(e) {
+ return e.replace(FP, "$1");
+}
+function Ka(e, t, r) {
+ let n = r.inline || !1,
+ o = r.simple || !1;
+ ((r.inline = !0), (r.simple = !0));
+ let a = e(t, r);
+ return ((r.inline = n), (r.simple = o), a);
+}
+function WP(e, t, r) {
+ let n = r.inline || !1,
+ o = r.simple || !1;
+ ((r.inline = !1), (r.simple = !0));
+ let a = e(t, r);
+ return ((r.inline = n), (r.simple = o), a);
+}
+function VP(e, t, r) {
+ let n = r.inline || !1;
+ r.inline = !1;
+ let o = e(t, r);
+ return ((r.inline = n), o);
+}
+var Ss = (e, t, r) => ({ children: Ka(t, e[2], r) });
+function Cs() {
+ return {};
+}
+function $s() {
+ return null;
+}
+function qP(...e) {
+ return e.filter(Boolean).join(" ");
+}
+function As(e, t, r) {
+ let n = e,
+ o = t.split(".");
+ for (; o.length && ((n = n[o[0]]), n !== void 0); ) o.shift();
+ return n || r;
+}
+function GP(e = "", t = {}) {
+ function r(c, f, ...g) {
+ let y = As(t.overrides, `${c}.props`, {});
+ return t.createElement(
+ (function (x, v) {
+ let C = As(v, x);
+ return C
+ ? typeof C == "function" || (typeof C == "object" && "render" in C)
+ ? C
+ : As(v, `${x}.component`, x)
+ : x;
+ })(c, t.overrides),
+ Ur({}, f, y, { className: qP(f?.className, y.className) || void 0 }),
+ ...g,
+ );
+ }
+ function n(c) {
+ c = c.replace(oP, "");
+ let f = !1;
+ t.forceInline ? (f = !0) : t.forceBlock || (f = hP.test(c) === !1);
+ let g = u(
+ s(
+ f
+ ? c
+ : `${Qo(c).replace(kP, "")}
-`,{inline:f}));for(;typeof g[g.length-1]=="string"&&!g[g.length-1].trim();)g.pop();if(t.wrapper===null)return g;let y=t.wrapper||(f?"span":"div"),x;if(g.length>1||t.forceWrapper)x=g;else{if(g.length===1)return x=g[0],typeof x=="string"?r("span",{key:"outer"},x):x;x=null}return t.createElement(y,{key:"outer"},x)}function o(c,f){let g=f.match(V6);return g?g.reduce(function(y,x){let v=x.indexOf("=");if(v!==-1){let C=function(A){return A.indexOf("-")!==-1&&A.match(lP)===null&&(A=A.replace(pP,function(S,D){return D.toUpperCase()})),A}(x.slice(0,v)).trim(),w=function(A){let S=A[0];return(S==='"'||S==="'")&&A.length>=2&&A[A.length-1]===S?A.slice(1,-1):A}(x.slice(v+1).trim()),E=Pm[C]||C;if(E==="ref")return y;let $=y[E]=function(A,S,D,F){return S==="style"?function(k){let _=[],I="",L=!1,j=!1,B="";if(!k)return _;for(let V=0;V0){let J=W.slice(0,G).trim(),Q=W.slice(G+1).trim();_.push([J,Q])}}I=""}}let z=I.trim();if(z){let V=z.indexOf(":");if(V>0){let Y=z.slice(0,V).trim(),W=z.slice(V+1).trim();_.push([Y,W])}}return _}(D).reduce(function(k,[_,I]){return k[_.replace(/(-[a-z])/g,L=>L[1].toUpperCase())]=F(I,A,_),k},{}):W6.indexOf(S)!==-1?F(D,A,S):(D.match(sP)&&(D=D.slice(1,D.length-1)),D==="true"||D!=="false"&&D)}(c,C,w,t.sanitizer);typeof $=="string"&&(rc.test($)||nc.test($))&&(y[E]=n($.trim()))}else x!=="style"&&(y[Pm[x]||x]=!0);return y},{}):null}t.overrides=t.overrides||{},t.sanitizer=t.sanitizer||UP,t.slugify=t.slugify||Co,t.namedCodesToUnicode=t.namedCodesToUnicode?Ur({},Im,t.namedCodesToUnicode):Im,t.createElement=t.createElement||b.createElement;let a=[],i={},l={[ee.blockQuote]:{match:Xt(DS),order:1,parse(c,f,g){let[,y,x]=c[0].replace(Y6,"").match(K6);return{alert:y,children:f(x,g)}},render(c,f,g){let y={key:g.key};return c.alert&&(y.className="markdown-alert-"+t.slugify(c.alert.toLowerCase(),Co),c.children.unshift({attrs:{},children:[{type:ee.text,text:c.alert}],noInnerParse:!0,type:ee.htmlBlock,tag:"header"})),r("blockquote",y,f(c.children,g))}},[ee.breakLine]:{match:$o(X6),order:1,parse:Cs,render:(c,f,g)=>r("br",{key:g.key})},[ee.breakThematic]:{match:Xt(Z6),order:1,parse:Cs,render:(c,f,g)=>r("hr",{key:g.key})},[ee.codeBlock]:{match:Xt(OS),order:0,parse:c=>({lang:void 0,text:Qo(c[0].replace(/^ {4}/gm,"")).replace(Lm,"$1")}),render:(c,f,g)=>r("pre",{key:g.key},r("code",Ur({},c.attrs,{className:c.lang?`lang-${c.lang}`:""}),c.text))},[ee.codeFenced]:{match:Xt(kS),order:0,parse:c=>({attrs:o("code",c[3]||""),lang:c[2]||void 0,text:c[4],type:ee.codeBlock})},[ee.codeInline]:{match:gr(J6),order:3,parse:c=>({text:c[2].replace(Lm,"$1")}),render:(c,f,g)=>r("code",{key:g.key},c.text)},[ee.footnote]:{match:Xt(tP),order:0,parse:c=>(a.push({footnote:c[2],identifier:c[1]}),{}),render:$s},[ee.footnoteReference]:{match:fr(rP),order:1,parse:c=>({target:`#${t.slugify(c[1],Co)}`,text:c[1]}),render:(c,f,g)=>r("a",{key:g.key,href:t.sanitizer(c.target,"a","href")},r("sup",{key:g.key},c.text))},[ee.gfmTask]:{match:fr(aP),order:1,parse:c=>({completed:c[1].toLowerCase()==="x"}),render:(c,f,g)=>r("input",{checked:c.completed,key:g.key,readOnly:!0,type:"checkbox"})},[ee.heading]:{match:Xt(t.enforceAtxHeadings?_S:FS),order:1,parse:(c,f,g)=>({children:Ka(f,c[2],g),id:t.slugify(c[2],Co),level:c[1].length}),render:(c,f,g)=>r(`h${c.level}`,{id:c.id,key:g.key},f(c.children,g))},[ee.headingSetext]:{match:Xt(TS),order:0,parse:(c,f,g)=>({children:Ka(f,c[1],g),level:c[2]==="="?1:2,type:ee.heading})},[ee.htmlBlock]:{match:$o(rc),order:1,parse(c,f,g){let[,y]=c[3].match(OP),x=new RegExp(`^${y}`,"gm"),v=c[3].replace(x,""),C=(w=v,NP.some(D=>D.test(w))?VP:Ka);var w;let E=c[1].toLowerCase(),$=U6.indexOf(E)!==-1,A=($?E:c[1]).trim(),S={attrs:o(A,c[2]),noInnerParse:$,tag:A};return g.inAnchor=g.inAnchor||E==="a",$?S.text=c[3]:S.children=C(f,v,g),g.inAnchor=!1,S},render:(c,f,g)=>r(c.tag,Ur({key:g.key},c.attrs),c.text||(c.children?f(c.children,g):""))},[ee.htmlSelfClosing]:{match:$o(nc),order:1,parse(c){let f=c[1].trim();return{attrs:o(f,c[2]||""),tag:f}},render:(c,f,g)=>r(c.tag,Ur({},c.attrs,{key:g.key}))},[ee.htmlComment]:{match:$o(RS),order:1,parse:()=>({}),render:$s},[ee.image]:{match:gr(BP),order:1,parse:c=>({alt:c[1],target:Mm(c[2]),title:c[3]}),render:(c,f,g)=>r("img",{key:g.key,alt:c.alt||void 0,title:c.title||void 0,src:t.sanitizer(c.target,"img","src")})},[ee.link]:{match:fr(LP),order:3,parse:(c,f,g)=>({children:WP(f,c[1],g),target:Mm(c[2]),title:c[3]}),render:(c,f,g)=>r("a",{key:g.key,href:t.sanitizer(c.target,"a","href"),title:c.title},f(c.children,g))},[ee.linkAngleBraceStyleDetector]:{match:fr(dP),order:0,parse:c=>({children:[{text:c[1],type:ee.text}],target:c[1],type:ee.link})},[ee.linkBareUrlDetector]:{match:ro((c,f)=>f.inAnchor||t.disableAutoLink?null:fr(uP)(c,f)),order:0,parse:c=>({children:[{text:c[1],type:ee.text}],target:c[1],title:void 0,type:ee.link})},[ee.linkMailtoDetector]:{match:fr(cP),order:0,parse(c){let f=c[1],g=c[1];return q6.test(g)||(g="mailto:"+g),{children:[{text:f.replace("mailto:",""),type:ee.text}],target:g,type:ee.link}}},[ee.orderedList]:Bm(r,1),[ee.unorderedList]:Bm(r,2),[ee.newlineCoalescer]:{match:Xt(Q6),order:3,parse:Cs,render:()=>`
-`},[ee.paragraph]:{match:ro(zP),order:3,parse:Ss,render:(c,f,g)=>r("p",{key:g.key},f(c.children,g))},[ee.ref]:{match:fr(fP),order:0,parse:c=>(i[c[1]]={target:c[2],title:c[4]},{}),render:$s},[ee.refImage]:{match:gr(gP),order:0,parse:c=>({alt:c[1]||void 0,ref:c[2]}),render:(c,f,g)=>i[c.ref]?r("img",{key:g.key,alt:c.alt,src:t.sanitizer(i[c.ref].target,"img","src"),title:i[c.ref].title}):null},[ee.refLink]:{match:fr(mP),order:0,parse:(c,f,g)=>({children:f(c[1],g),fallbackChildren:c[0],ref:c[2]}),render:(c,f,g)=>i[c.ref]?r("a",{key:g.key,href:t.sanitizer(i[c.ref].target,"a","href"),title:i[c.ref].title},f(c.children,g)):r("span",{key:g.key},c.fallbackChildren)},[ee.table]:{match:Xt(PS),order:1,parse:MP,render(c,f,g){let y=c;return r("table",{key:g.key},r("thead",null,r("tr",null,y.header.map(function(x,v){return r("th",{key:v,style:jm(y,v)},f(x,g))}))),r("tbody",null,y.cells.map(function(x,v){return r("tr",{key:v},x.map(function(C,w){return r("td",{key:w,style:jm(y,w)},f(C,g))}))})))}},[ee.text]:{match:$o(DP),order:4,parse:c=>({text:c[0].replace(iP,(f,g)=>t.namedCodesToUnicode[g]?t.namedCodesToUnicode[g]:f)}),render:c=>c.text},[ee.textBolded]:{match:gr(wP),order:2,parse:(c,f,g)=>({children:f(c[2],g)}),render:(c,f,g)=>r("strong",{key:g.key},f(c.children,g))},[ee.textEmphasized]:{match:gr(SP),order:3,parse:(c,f,g)=>({children:f(c[2],g)}),render:(c,f,g)=>r("em",{key:g.key},f(c.children,g))},[ee.textEscaped]:{match:gr(AP),order:1,parse:c=>({text:c[1],type:ee.text})},[ee.textMarked]:{match:gr(CP),order:3,parse:Ss,render:(c,f,g)=>r("mark",{key:g.key},f(c.children,g))},[ee.textStrikethroughed]:{match:gr($P),order:3,parse:Ss,render:(c,f,g)=>r("del",{key:g.key},f(c.children,g))}};t.disableParsingRawHTML===!0&&(delete l[ee.htmlBlock],delete l[ee.htmlSelfClosing]);let s=function(c){let f=Object.keys(c);function g(y,x){let v,C,w=[],E="",$="";for(x.prevCapture=x.prevCapture||"";y;){let A=0;for(;Av(g,y,x),g,y,x):v(g,y,x)}}(l,t.renderRule),function c(f,g={}){if(Array.isArray(f)){let y=g.key,x=[],v=!1;for(let C=0;C{let{children:t="",options:r}=e,n=function(o,a){if(o==null)return{};var i,l,s={},u=Object.keys(o);for(l=0;l=0||(s[i]=o[i]);return s}(e,H6);return b.cloneElement(GP(t,r),n)},YP=T.label(({theme:e})=>({lineHeight:"18px",alignItems:"center",marginBottom:8,display:"inline-block",position:"relative",whiteSpace:"nowrap",background:e.boolean.background,borderRadius:"3em",padding:1,'&[aria-disabled="true"]':{opacity:.5,input:{cursor:"not-allowed"}},input:{appearance:"none",width:"100%",height:"100%",position:"absolute",left:0,top:0,margin:0,padding:0,border:"none",background:"transparent",cursor:"pointer",borderRadius:"3em","&:focus":{outline:"none",boxShadow:`${e.color.secondary} 0 0 0 1px inset !important`},"@media (forced-colors: active)":{"&:focus":{outline:"1px solid highlight"}}},span:{textAlign:"center",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:"1",cursor:"pointer",display:"inline-block",padding:"7px 15px",transition:"all 100ms ease-out",userSelect:"none",borderRadius:"3em",color:ye(.5,e.color.defaultText),background:"transparent","&:hover":{boxShadow:`${Oa(.3,e.appBorderColor)} 0 0 0 1px inset`},"&:active":{boxShadow:`${Oa(.05,e.appBorderColor)} 0 0 0 2px inset`,color:Oa(1,e.appBorderColor)},"&:first-of-type":{paddingRight:8},"&:last-of-type":{paddingLeft:8}},"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type":{background:e.boolean.selectedBackground,boxShadow:e.base==="light"?`${Oa(.1,e.appBorderColor)} 0 0 2px`:`${e.appBorderColor} 0 0 0 1px`,color:e.color.defaultText,padding:"7px 15px","@media (forced-colors: active)":{textDecoration:"underline"}}})),KP=e=>e==="true",XP=({name:e,value:t,onChange:r,onBlur:n,onFocus:o,argType:a})=>{let i=b.useCallback(()=>r(!1),[r]),l=!!a?.table?.readonly;if(t===void 0)return h.createElement(_r,{variant:"outline",size:"medium",id:Vi(e),onClick:i,disabled:l},"Set boolean");let s=Ft(e),u=typeof t=="string"?KP(t):t;return h.createElement(YP,{"aria-disabled":l,htmlFor:s,"aria-label":e},h.createElement("input",{id:s,type:"checkbox",onChange:d=>r(d.target.checked),checked:u,role:"switch",disabled:l,name:e,onBlur:n,onFocus:o}),h.createElement("span",{"aria-hidden":"true"},"False"),h.createElement("span",{"aria-hidden":"true"},"True"))},ZP=e=>{let[t,r,n]=e.split("-"),o=new Date;return o.setFullYear(parseInt(t,10),parseInt(r,10)-1,parseInt(n,10)),o},JP=e=>{let[t,r]=e.split(":"),n=new Date;return n.setHours(parseInt(t,10)),n.setMinutes(parseInt(r,10)),n},QP=e=>{let t=new Date(e),r=`000${t.getFullYear()}`.slice(-4),n=`0${t.getMonth()+1}`.slice(-2),o=`0${t.getDate()}`.slice(-2);return`${r}-${n}-${o}`},e8=e=>{let t=new Date(e),r=`0${t.getHours()}`.slice(-2),n=`0${t.getMinutes()}`.slice(-2);return`${r}:${n}`},zm=T(uo.Input)(({readOnly:e})=>({opacity:e?.5:1})),t8=T.div(({theme:e})=>({flex:1,display:"flex",input:{marginLeft:10,flex:1,height:32,"&::-webkit-calendar-picker-indicator":{opacity:.5,height:12,filter:e.base==="light"?void 0:"invert(1)"}},"input:first-of-type":{marginLeft:0,flexGrow:4},"input:last-of-type":{flexGrow:3}})),r8=({name:e,value:t,onChange:r,onFocus:n,onBlur:o,argType:a})=>{let[i,l]=b.useState(!0),s=b.useRef(),u=b.useRef(),d=!!a?.table?.readonly;b.useEffect(()=>{i!==!1&&(s&&s.current&&(s.current.value=t?QP(t):""),u&&u.current&&(u.current.value=t?e8(t):""))},[t]);let p=g=>{if(!g.target.value)return r();let y=ZP(g.target.value),x=new Date(t??"");x.setFullYear(y.getFullYear(),y.getMonth(),y.getDate());let v=x.getTime();v&&r(v),l(!!v)},c=g=>{if(!g.target.value)return r();let y=JP(g.target.value),x=new Date(t??"");x.setHours(y.getHours()),x.setMinutes(y.getMinutes());let v=x.getTime();v&&r(v),l(!!v)},f=Ft(e);return h.createElement(t8,null,h.createElement(zm,{type:"date",max:"9999-12-31",ref:s,id:`${f}-date`,name:`${f}-date`,readOnly:d,onChange:p,onFocus:n,onBlur:o}),h.createElement(zm,{type:"time",id:`${f}-time`,name:`${f}-time`,ref:u,onChange:c,readOnly:d,onFocus:n,onBlur:o}),i?null:h.createElement("div",null,"invalid"))},n8=T.label({display:"flex"}),o8=e=>{let t=parseFloat(e);return Number.isNaN(t)?void 0:t},a8=T(uo.Input)(({readOnly:e})=>({opacity:e?.5:1})),i8=({name:e,value:t,onChange:r,min:n,max:o,step:a,onBlur:i,onFocus:l,argType:s})=>{let[u,d]=b.useState(typeof t=="number"?t:""),[p,c]=b.useState(!1),[f,g]=b.useState(null),y=!!s?.table?.readonly,x=b.useCallback(w=>{d(w.target.value);let E=parseFloat(w.target.value);Number.isNaN(E)?g(new Error(`'${w.target.value}' is not a number`)):(r(E),g(null))},[r,g]),v=b.useCallback(()=>{d("0"),r(0),c(!0)},[c]),C=b.useRef(null);return b.useEffect(()=>{p&&C.current&&C.current.select()},[p]),b.useEffect(()=>{let w=typeof t=="number"?t:"";u!==w&&d(w)},[t]),t===void 0?h.createElement(_r,{variant:"outline",size:"medium",id:Vi(e),onClick:v,disabled:y},"Set number"):h.createElement(n8,null,h.createElement(a8,{ref:C,id:Ft(e),type:"number",onChange:x,size:"flex",placeholder:"Edit number...",value:u,valid:f?"error":void 0,autoFocus:p,readOnly:y,name:e,min:n,max:o,step:a,onFocus:l,onBlur:i}))},VS=(e,t)=>{let r=t&&Object.entries(t).find(([n,o])=>o===e);return r?r[0]:void 0},oc=(e,t)=>e&&t?Object.entries(t).filter(r=>e.includes(r[1])).map(r=>r[0]):[],qS=(e,t)=>e&&t&&e.map(r=>t[r]),l8=T.div(({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}},e=>{if(e["aria-readonly"]==="true")return{input:{cursor:"not-allowed"}}}),s8=T.span({"[aria-readonly=true] &":{opacity:.5}}),u8=T.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),Hm=({name:e,options:t,value:r,onChange:n,isInline:o,argType:a})=>{if(!t)return cp.warn(`Checkbox with no options: ${e}`),h.createElement(h.Fragment,null,"-");let i=oc(r||[],t),[l,s]=b.useState(i),u=!!a?.table?.readonly,d=c=>{let f=c.target.value,g=[...l];g.includes(f)?g.splice(g.indexOf(f),1):g.push(f),n(qS(g,t)),s(g)};b.useEffect(()=>{s(oc(r||[],t))},[r]);let p=Ft(e);return h.createElement(l8,{"aria-readonly":u,isInline:o},Object.keys(t).map((c,f)=>{let g=`${p}-${f}`;return h.createElement(u8,{key:g,htmlFor:g},h.createElement("input",{type:"checkbox",disabled:u,id:g,name:g,value:c,onChange:d,checked:l?.includes(c)}),h.createElement(s8,null,c))}))},c8=T.div(({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}},e=>{if(e["aria-readonly"]==="true")return{input:{cursor:"not-allowed"}}}),d8=T.span({"[aria-readonly=true] &":{opacity:.5}}),p8=T.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),Um=({name:e,options:t,value:r,onChange:n,isInline:o,argType:a})=>{if(!t)return cp.warn(`Radio with no options: ${e}`),h.createElement(h.Fragment,null,"-");let i=VS(r,t),l=Ft(e),s=!!a?.table?.readonly;return h.createElement(c8,{"aria-readonly":s,isInline:o},Object.keys(t).map((u,d)=>{let p=`${l}-${d}`;return h.createElement(p8,{key:p,htmlFor:p},h.createElement("input",{type:"radio",id:p,name:l,disabled:s,value:u,onChange:c=>n(t[c.currentTarget.value]),checked:u===i}),h.createElement(d8,null,u))}))},f8={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},GS=T.select(f8,({theme:e})=>({boxSizing:"border-box",position:"relative",padding:"6px 10px",width:"100%",color:e.input.color||"inherit",background:e.input.background,borderRadius:e.input.borderRadius,boxShadow:`${e.input.border} 0 0 0 1px inset`,fontSize:e.typography.size.s2-1,lineHeight:"20px","&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"::placeholder":{color:e.textMutedColor},"&[multiple]":{overflow:"auto",padding:0,option:{display:"block",padding:"6px 10px",marginLeft:1,marginRight:1}}})),YS=T.span(({theme:e})=>({display:"inline-block",lineHeight:"normal",overflow:"hidden",position:"relative",verticalAlign:"top",width:"100%",svg:{position:"absolute",zIndex:1,pointerEvents:"none",height:"12px",marginTop:"-6px",right:"12px",top:"50%",fill:e.textMutedColor,path:{fill:e.textMutedColor}}})),Wm="Choose option...",g8=({name:e,value:t,options:r,onChange:n,argType:o})=>{let a=u=>{n(r[u.currentTarget.value])},i=VS(t,r)||Wm,l=Ft(e),s=!!o?.table?.readonly;return h.createElement(YS,null,h.createElement(fS,null),h.createElement(GS,{disabled:s,id:l,value:i,onChange:a},h.createElement("option",{key:"no-selection",disabled:!0},Wm),Object.keys(r).map(u=>h.createElement("option",{key:u,value:u},u))))},m8=({name:e,value:t,options:r,onChange:n,argType:o})=>{let a=u=>{let d=Array.from(u.currentTarget.options).filter(p=>p.selected).map(p=>p.value);n(qS(d,r))},i=oc(t,r),l=Ft(e),s=!!o?.table?.readonly;return h.createElement(YS,null,h.createElement(GS,{disabled:s,id:l,multiple:!0,value:i,onChange:a},Object.keys(r).map(u=>h.createElement("option",{key:u,value:u},u))))},Vm=e=>{let{name:t,options:r}=e;return r?e.isMulti?h.createElement(m8,{...e}):h.createElement(g8,{...e}):(cp.warn(`Select with no options: ${t}`),h.createElement(h.Fragment,null,"-"))},h8=(e,t)=>Array.isArray(e)?e.reduce((r,n)=>(r[t?.[n]||String(n)]=n,r),{}):e,y8={check:Hm,"inline-check":Hm,radio:Um,"inline-radio":Um,select:Vm,"multi-select":Vm},yn=e=>{let{type:t="select",labels:r,argType:n}=e,o={...e,argType:n,options:n?h8(n.options,r):{},isInline:t.includes("inline"),isMulti:t.includes("multi")},a=y8[t];if(a)return h.createElement(a,{...o});throw new Error(`Unknown options type: ${t}`)},b8=T.div(({theme:e})=>({position:"relative",":hover":{"& > .rejt-accordion-button::after":{background:e.color.secondary},"& > .rejt-accordion-region > :is(.rejt-plus-menu, .rejt-minus-menu)":{opacity:1}}})),v8=T.button(({theme:e})=>({padding:0,background:"transparent",border:"none",marginRight:"3px",lineHeight:"22px",color:e.color.secondary,"::after":{content:'""',position:"absolute",top:0,display:"block",width:"100%",marginLeft:"-1rem",height:"22px",background:"transparent",borderRadius:4,transition:"background 0.2s",opacity:.1,paddingRight:"20px"},"::before":{content:'""',position:"absolute"},'&[aria-expanded="true"]::before':{left:-10,top:10,borderTop:"3px solid rgba(153,153,153,0.6)",borderLeft:"3px solid transparent",borderRight:"3px solid transparent"},'&[aria-expanded="false"]::before':{left:-8,top:8,borderTop:"3px solid transparent",borderBottom:"3px solid transparent",borderLeft:"3px solid rgba(153,153,153,0.6)"}})),x8=T.div({display:"inline"});function KS({children:e,name:t,collapsed:r,keyPath:n,deep:o,...a}){let i=`${n.at(-1)??"root"}-${t}-${o}`,l={trigger:`${i}-trigger`,region:`${i}-region`},s=n.length>0?"li":"div";return h.createElement(b8,{as:s},h.createElement(v8,{type:"button","aria-expanded":!r,id:l.trigger,"aria-controls":l.region,className:"rejt-accordion-button",...a},t," :"),h.createElement(x8,{role:"region",id:l.region,"aria-labelledby":l.trigger,className:"rejt-accordion-region"},e))}var E8="Error",w8="Object",S8="Array",C8="String",$8="Number",A8="Boolean",D8="Date",k8="Null",O8="Undefined",F8="Function",_8="Symbol",XS="ADD_DELTA_TYPE",ZS="REMOVE_DELTA_TYPE",JS="UPDATE_DELTA_TYPE",mp="value",T8="key";function Gr(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&typeof e[Symbol.iterator]=="function"?"Iterable":Object.prototype.toString.call(e).slice(8,-1)}function QS(e,t){let r=Gr(e),n=Gr(t);return(r==="Function"||n==="Function")&&n!==r}var hp=class extends b.Component{constructor(e){super(e),this.state={inputRefKey:null,inputRefValue:null},this.refInputValue=this.refInputValue.bind(this),this.refInputKey=this.refInputKey.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onSubmit=this.onSubmit.bind(this)}componentDidMount(){let{inputRefKey:e,inputRefValue:t}=this.state,{onlyValue:r}=this.props;e&&typeof e.focus=="function"&&e.focus(),r&&t&&typeof t.focus=="function"&&t.focus()}onKeydown(e){if(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat)return;let{inputRefKey:t,inputRefValue:r}=this.state,{addButtonElement:n,handleCancel:o}=this.props;[t,r,n].some(a=>a===e.target)&&((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.onSubmit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),o()))}onSubmit(){let{handleAdd:e,onlyValue:t,onSubmitValueParser:r,keyPath:n,deep:o}=this.props,{inputRefKey:a,inputRefValue:i}=this.state,l={};if(!t){if(!a.value)return;l.key=a.value}l.newValue=r(!1,n,o,l.key,i.value),e(l)}refInputKey(e){this.state.inputRefKey=e}refInputValue(e){this.state.inputRefValue=e}render(){let{handleCancel:e,onlyValue:t,addButtonElement:r,cancelButtonElement:n,inputElementGenerator:o,keyPath:a,deep:i}=this.props,l=r&&b.cloneElement(r,{onClick:this.onSubmit}),s=n&&b.cloneElement(n,{onClick:e}),u=o(mp,a,i),d=b.cloneElement(u,{placeholder:"Value",ref:this.refInputValue,onKeyDown:this.onKeydown}),p=null;if(!t){let c=o(T8,a,i);p=b.cloneElement(c,{placeholder:"Key",ref:this.refInputKey,onKeyDown:this.onKeydown})}return h.createElement("span",{className:"rejt-add-value-node"},p,d,l,s)}};hp.defaultProps={onlyValue:!1,addButtonElement:h.createElement("button",null,"+"),cancelButtonElement:h.createElement("button",null,"c")};var e2=class extends b.Component{constructor(e){super(e);let t=[...e.keyPath||[],e.name];this.state={data:e.data,name:e.name,keyPath:t??[],deep:e.deep??0,nextDeep:(e.deep??0)+1,collapsed:e.isCollapsed(t,e.deep??0,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveItem=this.handleRemoveItem.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n=[]}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:o}=this.props,a=n.length;o(n[a-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleRemoveItem(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:o,nextDeep:a}=this.state,i=n[e];(t||Promise.resolve.bind(Promise))(e,o,a,i).then(()=>{let l={keyPath:o,deep:a,key:e,oldValue:i,type:ZS};n.splice(e,1),this.setState({data:n});let{onUpdate:s,onDeltaUpdate:u}=this.props;s(o[o.length-1],n),u(l)}).catch(r.error)}}handleAddValueAdd({key:e,newValue:t}){let{data:r,keyPath:n=[],nextDeep:o}=this.state,{beforeAddAction:a,logger:i}=this.props;(a||Promise.resolve.bind(Promise))(e,n,o,t).then(()=>{r[e]=t,this.setState({data:r}),this.handleAddValueCancel();let{onUpdate:l,onDeltaUpdate:s}=this.props;l(n[n.length-1],r),s({type:XS,keyPath:n,deep:o,key:e,newValue:t})}).catch(i.error)}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:o}=this.props,{data:a,keyPath:i,nextDeep:l}=this.state,s=a[e];(o||Promise.resolve.bind(Promise))(e,i,l,s,t).then(()=>{a[e]=t,this.setState({data:a});let{onUpdate:u,onDeltaUpdate:d}=this.props;u(i[i.length-1],a),d({type:JS,keyPath:i,deep:l,key:e,newValue:t,oldValue:s}),r(void 0)}).catch(n)})}renderCollapsed(){let{name:e,data:t,keyPath:r,deep:n}=this.state,{handleRemove:o,readOnly:a,getStyle:i,dataType:l,minusMenuElement:s}=this.props,{minus:u,collapsed:d}=i(e,t,r,n,l),p=a(e,t,r,n,l),c=s&&b.cloneElement(s,{onClick:o,className:"rejt-minus-menu",style:u,"aria-label":`remove the array '${String(e)}'`});return h.createElement(h.Fragment,null,h.createElement("span",{style:d},"[...] ",t.length," ",t.length===1?"item":"items"),!p&&c)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,addFormVisible:o,nextDeep:a}=this.state,{isCollapsed:i,handleRemove:l,onDeltaUpdate:s,readOnly:u,getStyle:d,dataType:p,addButtonElement:c,cancelButtonElement:f,inputElementGenerator:g,textareaElementGenerator:y,minusMenuElement:x,plusMenuElement:v,beforeRemoveAction:C,beforeAddAction:w,beforeUpdateAction:E,logger:$,onSubmitValueParser:A}=this.props,{minus:S,plus:D,delimiter:F,ul:k,addForm:_}=d(e,t,r,n,p),I=u(e,t,r,n,p),L=v&&b.cloneElement(v,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:D,"aria-label":`add a new item to the '${String(e)}' array`}),j=x&&b.cloneElement(x,{onClick:l,className:"rejt-minus-menu",style:S,"aria-label":`remove the array '${String(e)}'`});return h.createElement(h.Fragment,null,h.createElement("span",{className:"rejt-not-collapsed-delimiter",style:F},"["),!o&&L,h.createElement("ul",{className:"rejt-not-collapsed-list",style:k},t.map((B,z)=>h.createElement(Al,{key:z,name:z.toString(),data:B,keyPath:r,deep:a,isCollapsed:i,handleRemove:this.handleRemoveItem(z),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:s,readOnly:u,getStyle:d,addButtonElement:c,cancelButtonElement:f,inputElementGenerator:g,textareaElementGenerator:y,minusMenuElement:x,plusMenuElement:v,beforeRemoveAction:C,beforeAddAction:w,beforeUpdateAction:E,logger:$,onSubmitValueParser:A}))),!I&&o&&h.createElement("div",{className:"rejt-add-form",style:_},h.createElement(hp,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue:!0,addButtonElement:c,cancelButtonElement:f,inputElementGenerator:g,keyPath:r,deep:n,onSubmitValueParser:A})),h.createElement("span",{className:"rejt-not-collapsed-delimiter",style:F},"]"),!I&&j)}render(){let{name:e,collapsed:t,keyPath:r,deep:n}=this.state,o=t?this.renderCollapsed():this.renderNotCollapsed();return h.createElement(KS,{name:e,collapsed:t,deep:n,keyPath:r,onClick:this.handleCollapseMode},o)}};e2.defaultProps={keyPath:[],deep:0,minusMenuElement:h.createElement("span",null," - "),plusMenuElement:h.createElement("span",null," + ")};var t2=class extends b.Component{constructor(e){super(e);let t=[...e.keyPath||[],e.name];this.state={value:e.value,name:e.name,keyPath:t??[],deep:e.deep??0,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:o,deep:a}=this.state,{readOnly:i,dataType:l}=this.props,s=i(r,n,o,a,l);e&&!s&&typeof t.focus=="function"&&t.focus()}onKeydown(e){let{inputRef:t}=this.state;e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||t!==e.target||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:o}=this.props,{inputRef:a,name:i,deep:l}=this.state;if(!a)return;let s=n(!0,o,l,i,a.value),u={value:s,key:i};(e||Promise.resolve.bind(Promise))(u).then(()=>{QS(t,s)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:o}=this.state,{handleRemove:a,originalValue:i,readOnly:l,dataType:s,getStyle:u,textareaElementGenerator:d,minusMenuElement:p,keyPath:c=[]}=this.props,f=u(e,i,n,o,s),g=null,y=null,x=l(e,i,n,o,s);if(r&&!x){let v=d(mp,c,o,e,i,s),C=b.cloneElement(v,{ref:this.refInput,defaultValue:t,onKeyDown:this.onKeydown});g=h.createElement("span",{className:"rejt-edit-form",style:f.editForm},C),y=null}else{g=h.createElement("span",{className:"rejt-value",style:f.value,onClick:x?void 0:this.handleEditMode},t);let v=c.at(-1),C=p&&b.cloneElement(p,{onClick:a,className:"rejt-minus-menu",style:f.minus,"aria-label":`remove the function '${String(e)}'${String(v)?` from '${String(v)}'`:""}`});y=x?null:C}return h.createElement("li",{className:"rejt-value-node",style:f.li},h.createElement("span",{className:"rejt-name",style:f.name},e," :"," "),g,y)}};t2.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>{},cancelButtonElement:h.createElement("button",null,"c"),minusMenuElement:h.createElement("span",null," - ")};var Al=class extends b.Component{constructor(e){super(e),this.state={data:e.data,name:e.name,keyPath:e.keyPath??[],deep:e.deep??0}}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}render(){let{data:e,name:t,keyPath:r,deep:n}=this.state,{isCollapsed:o,handleRemove:a,handleUpdateValue:i,onUpdate:l,onDeltaUpdate:s,readOnly:u,getStyle:d,addButtonElement:p,cancelButtonElement:c,inputElementGenerator:f,textareaElementGenerator:g,minusMenuElement:y,plusMenuElement:x,beforeRemoveAction:v,beforeAddAction:C,beforeUpdateAction:w,logger:E,onSubmitValueParser:$}=this.props,A=()=>!0,S=Gr(e);switch(S){case E8:return h.createElement(ac,{data:e,name:t,isCollapsed:o,keyPath:r,deep:n,handleRemove:a,onUpdate:l,onDeltaUpdate:s,readOnly:A,dataType:S,getStyle:d,addButtonElement:p,cancelButtonElement:c,inputElementGenerator:f,textareaElementGenerator:g,minusMenuElement:y,plusMenuElement:x,beforeRemoveAction:v,beforeAddAction:C,beforeUpdateAction:w,logger:E,onSubmitValueParser:$});case w8:return h.createElement(ac,{data:e,name:t,isCollapsed:o,keyPath:r,deep:n,handleRemove:a,onUpdate:l,onDeltaUpdate:s,readOnly:u,dataType:S,getStyle:d,addButtonElement:p,cancelButtonElement:c,inputElementGenerator:f,textareaElementGenerator:g,minusMenuElement:y,plusMenuElement:x,beforeRemoveAction:v,beforeAddAction:C,beforeUpdateAction:w,logger:E,onSubmitValueParser:$});case S8:return h.createElement(e2,{data:e,name:t,isCollapsed:o,keyPath:r,deep:n,handleRemove:a,onUpdate:l,onDeltaUpdate:s,readOnly:u,dataType:S,getStyle:d,addButtonElement:p,cancelButtonElement:c,inputElementGenerator:f,textareaElementGenerator:g,minusMenuElement:y,plusMenuElement:x,beforeRemoveAction:v,beforeAddAction:C,beforeUpdateAction:w,logger:E,onSubmitValueParser:$});case C8:return h.createElement(hr,{name:t,value:`"${e}"`,originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:u,dataType:S,getStyle:d,cancelButtonElement:c,inputElementGenerator:f,minusMenuElement:y,logger:E,onSubmitValueParser:$});case $8:return h.createElement(hr,{name:t,value:e,originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:u,dataType:S,getStyle:d,cancelButtonElement:c,inputElementGenerator:f,minusMenuElement:y,logger:E,onSubmitValueParser:$});case A8:return h.createElement(hr,{name:t,value:e?"true":"false",originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:u,dataType:S,getStyle:d,cancelButtonElement:c,inputElementGenerator:f,minusMenuElement:y,logger:E,onSubmitValueParser:$});case D8:return h.createElement(hr,{name:t,value:e.toISOString(),originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:A,dataType:S,getStyle:d,cancelButtonElement:c,inputElementGenerator:f,minusMenuElement:y,logger:E,onSubmitValueParser:$});case k8:return h.createElement(hr,{name:t,value:"null",originalValue:"null",keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:u,dataType:S,getStyle:d,cancelButtonElement:c,inputElementGenerator:f,minusMenuElement:y,logger:E,onSubmitValueParser:$});case O8:return h.createElement(hr,{name:t,value:"undefined",originalValue:"undefined",keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:u,dataType:S,getStyle:d,cancelButtonElement:c,inputElementGenerator:f,minusMenuElement:y,logger:E,onSubmitValueParser:$});case F8:return h.createElement(t2,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:u,dataType:S,getStyle:d,cancelButtonElement:c,textareaElementGenerator:g,minusMenuElement:y,logger:E,onSubmitValueParser:$});case _8:return h.createElement(hr,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:A,dataType:S,getStyle:d,cancelButtonElement:c,inputElementGenerator:f,minusMenuElement:y,logger:E,onSubmitValueParser:$});default:return null}}};Al.defaultProps={keyPath:[],deep:0};var ac=class extends b.Component{constructor(e){super(e);let t=e.deep===-1?[]:[...e.keyPath||[],e.name];this.state={name:e.name,data:e.data,keyPath:t??[],deep:e.deep??0,nextDeep:(e.deep??0)+1,collapsed:e.isCollapsed(t,e.deep??0,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveValue=this.handleRemoveValue.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n=[]}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:o}=this.props,a=n.length;o(n[a-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleAddValueAdd({key:e,newValue:t}){let{data:r,keyPath:n=[],nextDeep:o}=this.state,{beforeAddAction:a,logger:i}=this.props;(a||Promise.resolve.bind(Promise))(e,n,o,t).then(()=>{r[e]=t,this.setState({data:r}),this.handleAddValueCancel();let{onUpdate:l,onDeltaUpdate:s}=this.props;l(n[n.length-1],r),s({type:XS,keyPath:n,deep:o,key:e,newValue:t})}).catch(i.error)}handleRemoveValue(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:o=[],nextDeep:a}=this.state,i=n[e];(t||Promise.resolve.bind(Promise))(e,o,a,i).then(()=>{let l={keyPath:o,deep:a,key:e,oldValue:i,type:ZS};delete n[e],this.setState({data:n});let{onUpdate:s,onDeltaUpdate:u}=this.props;s(o[o.length-1],n),u(l)}).catch(r.error)}}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:o}=this.props,{data:a,keyPath:i=[],nextDeep:l}=this.state,s=a[e];(o||Promise.resolve.bind(Promise))(e,i,l,s,t).then(()=>{a[e]=t,this.setState({data:a});let{onUpdate:u,onDeltaUpdate:d}=this.props;u(i[i.length-1],a),d({type:JS,keyPath:i,deep:l,key:e,newValue:t,oldValue:s}),r()}).catch(n)})}renderCollapsed(){let{name:e,keyPath:t,deep:r,data:n}=this.state,{handleRemove:o,readOnly:a,dataType:i,getStyle:l,minusMenuElement:s}=this.props,{minus:u,collapsed:d}=l(e,n,t,r,i),p=Object.getOwnPropertyNames(n),c=a(e,n,t,r,i),f=s&&b.cloneElement(s,{onClick:o,className:"rejt-minus-menu",style:u,"aria-label":`remove the object '${String(e)}'`});return h.createElement(h.Fragment,null,h.createElement("span",{style:d},"{...}"," ",p.length," ",p.length===1?"key":"keys"),!c&&f)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,nextDeep:o,addFormVisible:a}=this.state,{isCollapsed:i,handleRemove:l,onDeltaUpdate:s,readOnly:u,getStyle:d,dataType:p,addButtonElement:c,cancelButtonElement:f,inputElementGenerator:g,textareaElementGenerator:y,minusMenuElement:x,plusMenuElement:v,beforeRemoveAction:C,beforeAddAction:w,beforeUpdateAction:E,logger:$,onSubmitValueParser:A}=this.props,{minus:S,plus:D,addForm:F,ul:k,delimiter:_}=d(e,t,r,n,p),I=Object.getOwnPropertyNames(t),L=u(e,t,r,n,p),j=v&&b.cloneElement(v,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:D,"aria-label":`add a new property to the object '${String(e)}'`}),B=x&&b.cloneElement(x,{onClick:l,className:"rejt-minus-menu",style:S,"aria-label":`remove the object '${String(e)}'`}),z=I.map(V=>h.createElement(Al,{key:V,name:V,data:t[V],keyPath:r,deep:o,isCollapsed:i,handleRemove:this.handleRemoveValue(V),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:s,readOnly:u,getStyle:d,addButtonElement:c,cancelButtonElement:f,inputElementGenerator:g,textareaElementGenerator:y,minusMenuElement:x,plusMenuElement:v,beforeRemoveAction:C,beforeAddAction:w,beforeUpdateAction:E,logger:$,onSubmitValueParser:A}));return h.createElement(h.Fragment,null,h.createElement("span",{className:"rejt-not-collapsed-delimiter",style:_},"{"),!L&&j,h.createElement("ul",{className:"rejt-not-collapsed-list",style:k},z),!L&&a&&h.createElement("div",{className:"rejt-add-form",style:F},h.createElement(hp,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement:c,cancelButtonElement:f,inputElementGenerator:g,keyPath:r,deep:n,onSubmitValueParser:A})),h.createElement("span",{className:"rejt-not-collapsed-delimiter",style:_},"}"),!L&&B)}render(){let{name:e,collapsed:t,keyPath:r,deep:n=0}=this.state,o=t?this.renderCollapsed():this.renderNotCollapsed();return h.createElement(KS,{name:e,collapsed:t,deep:n,keyPath:r,onClick:this.handleCollapseMode},o)}};ac.defaultProps={keyPath:[],deep:0,minusMenuElement:h.createElement("span",null," - "),plusMenuElement:h.createElement("span",null," + ")};var hr=class extends b.Component{constructor(e){super(e);let t=[...e.keyPath||[],e.name];this.state={value:e.value,name:e.name,keyPath:t??[],deep:e.deep??0,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:o,deep:a}=this.state,{readOnly:i,dataType:l}=this.props,s=i(r,n,o,a,l);e&&!s&&typeof t.focus=="function"&&t.focus()}onKeydown(e){let{inputRef:t}=this.state;e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||t!==e.target||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:o}=this.props,{inputRef:a,name:i,deep:l}=this.state;if(!a)return;let s=n(!0,o,l,i,a.value),u={value:s,key:i};(e||Promise.resolve.bind(Promise))(u).then(()=>{QS(t,s)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:o}=this.state,{handleRemove:a,originalValue:i,readOnly:l,dataType:s,getStyle:u,inputElementGenerator:d,minusMenuElement:p,keyPath:c}=this.props,f=u(e,i,n,o,s),g=l(e,i,n,o,s),y=r&&!g,x=d(mp,c,o,e,i,s),v=b.cloneElement(x,{ref:this.refInput,defaultValue:JSON.stringify(i),onKeyDown:this.onKeydown}),C=n.at(-2),w=p&&b.cloneElement(p,{onClick:a,className:"rejt-minus-menu",style:f.minus,"aria-label":`remove the property '${String(e)}' with value '${String(i)}'${String(C)?` from '${String(C)}'`:""}`});return h.createElement("li",{className:"rejt-value-node",style:f.li},h.createElement("span",{className:"rejt-name",style:f.name},e," : "),y?h.createElement("span",{className:"rejt-edit-form",style:f.editForm},v):h.createElement("span",{className:"rejt-value",style:f.value,onClick:g?void 0:this.handleEditMode},String(t)),!g&&!y&&w)}};hr.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>Promise.resolve(),cancelButtonElement:h.createElement("button",null,"c"),minusMenuElement:h.createElement("span",null," - ")};function R8(e){let t=e;if(t.indexOf("function")===0)return(0,eval)(`(${t})`);try{t=JSON.parse(e)}catch{}return t}var P8={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},I8={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},L8={minus:{color:"red"},editForm:{},value:{color:"#7bba3d"},li:{minHeight:"22px",lineHeight:"22px",outline:"0px"},name:{color:"#2287CD"}},r2=class extends b.Component{constructor(e){super(e),this.state={data:e.data,rootName:e.rootName},this.onUpdate=this.onUpdate.bind(this),this.removeRoot=this.removeRoot.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data||e.rootName!==t.rootName?{data:e.data,rootName:e.rootName}:null}onUpdate(e,t){this.setState({data:t}),this.props.onFullyUpdate?.(t)}removeRoot(){this.onUpdate(null,null)}render(){let{data:e,rootName:t}=this.state,{isCollapsed:r,onDeltaUpdate:n,readOnly:o,getStyle:a,addButtonElement:i,cancelButtonElement:l,inputElement:s,textareaElement:u,minusMenuElement:d,plusMenuElement:p,beforeRemoveAction:c,beforeAddAction:f,beforeUpdateAction:g,logger:y,onSubmitValueParser:x,fallback:v=null}=this.props,C=Gr(e),w=o;Gr(o)==="Boolean"&&(w=()=>o);let E=s;s&&Gr(s)!=="Function"&&(E=()=>s);let $=u;return u&&Gr(u)!=="Function"&&($=()=>u),C==="Object"||C==="Array"?h.createElement("div",{className:"rejt-tree"},h.createElement(Al,{data:e,name:t||"root",deep:-1,isCollapsed:r??(()=>!1),onUpdate:this.onUpdate,onDeltaUpdate:n??(()=>{}),readOnly:w,getStyle:a??(()=>({})),addButtonElement:i,cancelButtonElement:l,inputElementGenerator:E,textareaElementGenerator:$,minusMenuElement:d,plusMenuElement:p,handleRemove:this.removeRoot,beforeRemoveAction:c,beforeAddAction:f,beforeUpdateAction:g,logger:y??{},onSubmitValueParser:x??(A=>A)})):v}};r2.defaultProps={rootName:"root",isCollapsed:(e,t)=>t!==-1,getStyle:(e,t,r,n,o)=>{switch(o){case"Object":case"Error":return P8;case"Array":return I8;default:return L8}},readOnly:()=>!1,onFullyUpdate:()=>{},onDeltaUpdate:()=>{},beforeRemoveAction:()=>Promise.resolve(),beforeAddAction:()=>Promise.resolve(),beforeUpdateAction:()=>Promise.resolve(),logger:{error:()=>{}},onSubmitValueParser:(e,t,r,n,o)=>R8(o),inputElement:()=>h.createElement("input",null),textareaElement:()=>h.createElement("textarea",null),fallback:null};var{window:B8}=globalThis,N8=T.div(({theme:e})=>({position:"relative",display:"flex",'&[aria-readonly="true"]':{opacity:.5},".rejt-tree":{marginLeft:"1rem",fontSize:"13px",listStyleType:"none"},".rejt-value-node:hover":{"& > button":{opacity:1}},".rejt-add-form":{marginLeft:10},".rejt-add-value-node":{display:"inline-flex",alignItems:"center"},".rejt-name":{lineHeight:"22px"},".rejt-not-collapsed-delimiter":{lineHeight:"22px"},".rejt-value":{display:"inline-block",border:"1px solid transparent",borderRadius:4,margin:"1px 0",padding:"0 4px",cursor:"text",color:e.color.defaultText},".rejt-value-node:hover > .rejt-value":{background:e.color.lighter,borderColor:e.appBorderColor}})),qm=T.button(({theme:e,primary:t})=>({border:0,height:20,margin:1,borderRadius:4,background:t?e.color.secondary:"transparent",color:t?e.color.lightest:e.color.dark,fontWeight:t?"bold":"normal",cursor:"pointer"})),Gm=T.button(({theme:e})=>({background:"none",border:0,display:"inline-flex",verticalAlign:"middle",padding:3,marginLeft:5,color:e.textMutedColor,opacity:0,transition:"opacity 0.2s",cursor:"pointer",position:"relative",svg:{width:9,height:9},":disabled":{cursor:"not-allowed"},":hover, :focus-visible":{opacity:1},"&:hover:not(:disabled), &:focus-visible:not(:disabled)":{"&.rejt-plus-menu":{color:e.color.ancillary},"&.rejt-minus-menu":{color:e.color.negative}}})),Ym=T.input(({theme:e,placeholder:t})=>({outline:0,margin:t?1:"1px 0",padding:"3px 4px",color:e.color.defaultText,background:e.background.app,border:`1px solid ${e.appBorderColor}`,borderRadius:4,lineHeight:"14px",width:t==="Key"?80:120,"&:focus":{border:`1px solid ${e.color.secondary}`}})),j8=T($r)(({theme:e})=>({position:"absolute",zIndex:2,top:2,right:2,height:21,padding:"0 3px",background:e.background.bar,border:`1px solid ${e.appBorderColor}`,borderRadius:3,color:e.textMutedColor,fontSize:"9px",fontWeight:"bold",textDecoration:"none",span:{marginLeft:3,marginTop:1}})),M8=T(uo.Textarea)(({theme:e})=>({flex:1,padding:"7px 6px",fontFamily:e.typography.fonts.mono,fontSize:"12px",lineHeight:"18px","&::placeholder":{fontFamily:e.typography.fonts.base,fontSize:"13px"},"&:placeholder-shown":{padding:"7px 10px"}})),z8={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},H8=e=>{e.currentTarget.dispatchEvent(new B8.KeyboardEvent("keydown",z8))},U8=e=>{e.currentTarget.select()},W8=e=>()=>({name:{color:e.color.secondary},collapsed:{color:e.color.dark},ul:{listStyle:"none",margin:"0 0 0 1rem",padding:0},li:{outline:0}}),Km=({name:e,value:t,onChange:r,argType:n})=>{let o=Mb(),a=b.useMemo(()=>t&&U3(t),[t]),i=a!=null,[l,s]=b.useState(!i),[u,d]=b.useState(null),p=!!n?.table?.readonly,c=b.useCallback(w=>{try{w&&r(JSON.parse(w)),d(null)}catch(E){d(E)}},[r]),[f,g]=b.useState(!1),y=b.useCallback(()=>{r({}),g(!0)},[g]),x=b.useRef(null);if(b.useEffect(()=>{f&&x.current&&x.current.select()},[f]),!i)return h.createElement(_r,{disabled:p,id:Vi(e),onClick:y},"Set object");let v=h.createElement(M8,{ref:x,id:Ft(e),name:e,defaultValue:t===null?"":JSON.stringify(t,null,2),onBlur:w=>c(w.target.value),placeholder:"Edit JSON string...",autoFocus:f,valid:u?"error":void 0,readOnly:p}),C=Array.isArray(t)||typeof t=="object"&&t?.constructor===Object;return h.createElement(N8,{"aria-readonly":p},C&&h.createElement(j8,{role:"switch","aria-checked":l,"aria-label":`Edit the ${e} properties in text format`,onClick:w=>{w.preventDefault(),s(E=>!E)}},l?h.createElement(KT,null):h.createElement(YT,null),h.createElement("span",null,"RAW")),l?v:h.createElement(r2,{readOnly:p||!C,isCollapsed:C?void 0:()=>!0,data:a,rootName:e,onFullyUpdate:r,getStyle:W8(o),cancelButtonElement:h.createElement(qm,{type:"button"},"Cancel"),addButtonElement:h.createElement(qm,{type:"submit",primary:!0},"Save"),plusMenuElement:h.createElement(Gm,{type:"button"},h.createElement(XT,null)),minusMenuElement:h.createElement(Gm,{type:"button"},h.createElement(ZT,null)),inputElement:(w,E,$,A)=>A?h.createElement(Ym,{onFocus:U8,onBlur:H8}):h.createElement(Ym,null),fallback:v}))},V8=T.input(({theme:e,min:t,max:r,value:n,disabled:o})=>({"&":{width:"100%",backgroundColor:"transparent",appearance:"none"},"&::-webkit-slider-runnable-track":{background:e.base==="light"?`linear-gradient(to right,
- ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
- ${Bt(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
- ${Bt(.02,e.input.background)} 100%)`:`linear-gradient(to right,
- ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
- ${zr(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
- ${zr(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:o?"not-allowed":"pointer"},"&::-webkit-slider-thumb":{marginTop:"-6px",width:16,height:16,border:`1px solid ${jt(e.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${jt(e.appBorderColor,.2)}`,cursor:o?"not-allowed":"grab",appearance:"none",background:`${e.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${Bt(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:o?"not-allowed":"grab"}},"&:focus":{outline:"none","&::-webkit-slider-runnable-track":{borderColor:jt(e.color.secondary,.4)},"&::-webkit-slider-thumb":{borderColor:e.color.secondary,boxShadow:`0 0px 5px 0px ${e.color.secondary}`}},"&::-moz-range-track":{background:e.base==="light"?`linear-gradient(to right,
- ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
- ${Bt(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
- ${Bt(.02,e.input.background)} 100%)`:`linear-gradient(to right,
- ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
- ${zr(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
- ${zr(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:o?"not-allowed":"pointer",outline:"none"},"&::-moz-range-thumb":{width:16,height:16,border:`1px solid ${jt(e.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${jt(e.appBorderColor,.2)}`,cursor:o?"not-allowed":"grap",background:`${e.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${Bt(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:"grabbing"}},"&::-ms-track":{background:e.base==="light"?`linear-gradient(to right,
- ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
- ${Bt(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
- ${Bt(.02,e.input.background)} 100%)`:`linear-gradient(to right,
- ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
- ${zr(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
- ${zr(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:`${e.input.background}`,border:`1px solid ${jt(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),n2=T.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums","[aria-readonly=true] &":{opacity:.5}}),q8=T(n2)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),G8=T.div({display:"flex",alignItems:"center",width:"100%"});function Y8(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var K8=({name:e,value:t,onChange:r,min:n=0,max:o=100,step:a=1,onBlur:i,onFocus:l,argType:s})=>{let u=f=>{r(o8(f.target.value))},d=t!==void 0,p=b.useMemo(()=>Y8(a),[a]),c=!!s?.table?.readonly;return h.createElement(G8,{"aria-readonly":c},h.createElement(n2,null,n),h.createElement(V8,{id:Ft(e),type:"range",disabled:c,onChange:u,name:e,min:n,max:o,step:a,onFocus:l,onBlur:i,value:t??n}),h.createElement(q8,{numberOFDecimalsPlaces:p,max:o},d?t.toFixed(p):"--"," / ",o))},X8=T.label({display:"flex"}),Z8=T.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),J8=({name:e,value:t,onChange:r,onFocus:n,onBlur:o,maxLength:a,argType:i})=>{let l=f=>{r(f.target.value)},s=!!i?.table?.readonly,[u,d]=b.useState(!1),p=b.useCallback(()=>{r(""),d(!0)},[d]);if(t===void 0)return h.createElement(_r,{variant:"outline",size:"medium",disabled:s,id:Vi(e),onClick:p},"Set string");let c=typeof t=="string";return h.createElement(X8,null,h.createElement(uo.Textarea,{id:Ft(e),maxLength:a,onChange:l,disabled:s,size:"flex",placeholder:"Edit string...",autoFocus:u,valid:c?void 0:"error",name:e,value:c?t:"",onFocus:n,onBlur:o}),a&&h.createElement(Z8,{isMaxed:t?.length===a},t?.length??0," / ",a))},Q8=T(uo.Input)({padding:10});function eI(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var tI=({onChange:e,name:t,accept:r="image/*",value:n,argType:o})=>{let a=b.useRef(null),i=o?.control?.readOnly;function l(s){if(!s.target.files)return;let u=Array.from(s.target.files).map(d=>URL.createObjectURL(d));e(u),eI(n||[])}return b.useEffect(()=>{n==null&&a.current&&(a.current.value="")},[n,t]),h.createElement(Q8,{ref:a,id:Ft(t),type:"file",name:t,multiple:!0,disabled:i,onChange:l,accept:r,size:"flex"})},rI=b.lazy(()=>cc(()=>import("./Color-AVL7NMMY-Doxq8aw5.js"),__vite__mapDeps([0,1,2,3,4,5]))),nI=e=>h.createElement(b.Suspense,{fallback:h.createElement("div",null)},h.createElement(rI,{...e})),oI={array:Km,object:Km,boolean:XP,color:nI,date:r8,number:i8,check:yn,"inline-check":yn,radio:yn,"inline-radio":yn,select:yn,"multi-select":yn,range:K8,text:J8,file:tI},Xm=()=>h.createElement(h.Fragment,null,"-"),aI=({row:e,arg:t,updateArgs:r,isHovered:n})=>{let{key:o,control:a}=e,[i,l]=b.useState(!1),[s,u]=b.useState({value:t});b.useEffect(()=>{i||u({value:t})},[i,t]);let d=b.useCallback(y=>(u({value:y}),r({[o]:y}),y),[r,o]),p=b.useCallback(()=>l(!1),[]),c=b.useCallback(()=>l(!0),[]);if(!a||a.disable){let y=a?.disable!==!0&&e?.type?.name!=="function";return n&&y?h.createElement(Jn,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):h.createElement(Xm,null)}let f={name:o,argType:e,value:s.value,onChange:d,onBlur:p,onFocus:c},g=oI[a.type]||Xm;return h.createElement(g,{...f,...a,controlType:a.type})},iI=T.table(({theme:e})=>({"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{padding:0,border:"none",width:"auto!important"},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:"none",border:"none"},code:cr({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),lI=({tags:e})=>{let t=(e.params||[]).filter(a=>a.description),r=t.length!==0,n=e.deprecated!=null,o=e.returns!=null&&e.returns.description!=null;return!r&&!o&&!n?null:h.createElement(h.Fragment,null,h.createElement(iI,null,h.createElement("tbody",null,n&&h.createElement("tr",{key:"deprecated"},h.createElement("td",{colSpan:2},h.createElement("strong",null,"Deprecated"),": ",e.deprecated?.toString())),r&&t.map(a=>h.createElement("tr",{key:a.name},h.createElement("td",null,h.createElement("code",null,a.name)),h.createElement("td",null,a.description))),o&&h.createElement("tr",{key:"returns"},h.createElement("td",null,h.createElement("code",null,"Returns")),h.createElement("td",null,e.returns?.description)))))},sI=lD(sR()),ic=8,Zm=T.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),uI=T.span(cr,({theme:e,simple:t=!1})=>({flex:"0 0 auto",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...t&&{background:"transparent",border:"0 none",paddingLeft:0}})),cI=T.button(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,marginBottom:"4px",background:"none",border:"none"})),dI=T.div(cr,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"})),pI=T.div(({theme:e,width:t})=>({width:t,minWidth:200,maxWidth:800,padding:15,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}})),fI=T(tR)({marginLeft:4}),gI=T(fS)({marginLeft:4}),mI=()=>h.createElement("span",null,"-"),o2=({text:e,simple:t})=>h.createElement(uI,{simple:t},e),hI=(0,sI.default)(1e3)(e=>{let t=e.split(/\r?\n/);return`${Math.max(...t.map(r=>r.length))}ch`}),yI=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return V3(t)},Jm=(e,t=!0)=>{let r=e;return t||(r=e.slice(0,ic)),r.map(n=>h.createElement(o2,{key:n,text:n===""?'""':n}))},bI=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[o,a]=b.useState(!1),[i,l]=b.useState(t||!1);if(r==null)return null;let s=typeof r.toString=="function"?r.toString():r;if(n==null){if(/[(){}[\]<>]/.test(s))return h.createElement(o2,{text:s});let u=yI(s),d=u.length;return d>ic?h.createElement(Zm,{isExpanded:i},Jm(u,i),h.createElement(cI,{onClick:()=>l(!i)},i?"Show less...":`Show ${d-ic} more...`)):h.createElement(Zm,null,Jm(u))}return h.createElement(Qw,{closeOnOutsideClick:!0,placement:"bottom",visible:o,onVisibleChange:u=>{a(u)},tooltip:h.createElement(pI,{width:hI(n)},h.createElement(ml,{language:"jsx",format:!1},n))},h.createElement(dI,{className:"sbdocs-expandable"},h.createElement("span",null,s),o?h.createElement(fI,null):h.createElement(gI,null)))},Ds=({value:e,initialExpandedArgs:t})=>e==null?h.createElement(mI,null):h.createElement(bI,{value:e,initialExpandedArgs:t}),vI=T.span({fontWeight:"bold"}),xI=T.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),EI=T.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...cr({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),wI=T.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?ye(.1,e.color.defaultText):ye(.2,e.color.defaultText),marginTop:t?4:0})),SI=T.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?ye(.1,e.color.defaultText):ye(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),CI=T.td(({expandable:e})=>({paddingLeft:e?"40px !important":"20px !important"})),$I=e=>e&&{summary:typeof e=="string"?e:e.name},_a=e=>{let[t,r]=b.useState(!1),{row:n,updateArgs:o,compact:a,expandable:i,initialExpandedArgs:l}=e,{name:s,description:u}=n,d=n.table||{},p=d.type||$I(n.type),c=d.defaultValue||n.defaultValue,f=n.type?.required,g=u!=null&&u!=="";return h.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},h.createElement(CI,{expandable:i??!1},h.createElement(vI,null,s),f?h.createElement(xI,{title:"Required"},"*"):null),a?null:h.createElement("td",null,g&&h.createElement(EI,null,h.createElement(WS,null,u)),d.jsDocTags!=null?h.createElement(h.Fragment,null,h.createElement(SI,{hasDescription:g},h.createElement(Ds,{value:p,initialExpandedArgs:l})),h.createElement(lI,{tags:d.jsDocTags})):h.createElement(wI,{hasDescription:g},h.createElement(Ds,{value:p,initialExpandedArgs:l}))),a?null:h.createElement("td",null,h.createElement(Ds,{value:c,initialExpandedArgs:l})),o?h.createElement("td",null,h.createElement(aI,{...e,isHovered:t})):null)},AI=T.div(({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content})),DI=T.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),kI=({inAddonPanel:e})=>{let[t,r]=b.useState(!0);return b.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:h.createElement(AI,{inAddonPanel:e},h.createElement(Sl,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:h.createElement(h.Fragment,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically."),footer:h.createElement(DI,null,e&&h.createElement(h.Fragment,null,h.createElement(Jn,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},h.createElement(Xu,null)," Read docs")),!e&&h.createElement(Jn,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},h.createElement(Xu,null)," Learn how to set that up"))}))},OI=T(QT)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?ye(.25,e.color.defaultText):ye(.3,e.color.defaultText),border:"none",display:"inline-block"})),FI=T(eR)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?ye(.25,e.color.defaultText):ye(.3,e.color.defaultText),border:"none",display:"inline-block"})),_I=T.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),TI=T.td(({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:e.base==="light"?ye(.4,e.color.defaultText):ye(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),RI=T.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),PI=T.td({position:"relative"}),II=T.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${zr(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),Qm=T.button({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"}),ks=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:o=3})=>{let[a,i]=b.useState(n),l=e==="subsection"?RI:TI,s=r?.length||0,u=e==="subsection"?`${s} item${s!==1?"s":""}`:"",d=`${a?"Hide":"Show"} ${e==="subsection"?s:t} item${s!==1?"s":""}`;return h.createElement(h.Fragment,null,h.createElement(II,{title:d},h.createElement(l,{colSpan:1},h.createElement(Qm,{onClick:p=>i(!a),tabIndex:0},d),h.createElement(_I,null,a?h.createElement(OI,null):h.createElement(FI,null),t)),h.createElement(PI,{colSpan:o-1},h.createElement(Qm,{onClick:p=>i(!a),tabIndex:-1,style:{outline:"none"}},d),a?null:u)),a?r:null)},LI=T.div(({theme:e})=>({width:"100%",borderSpacing:0,color:e.color.defaultText})),Ta=T.div(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),ze=T.div(({position:e,theme:t})=>{let r={display:"flex",flexDirection:"column",gap:5,padding:"10px 15px",alignItems:"flex-start"};switch(e){case"first":return{...r,width:"25%",paddingLeft:20};case"second":return{...r,width:"35%"};case"third":return{...r,width:"15%"};case"last":return{...r,width:"25%",paddingRight:20}}}),Fe=T.div(({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3})),BI=()=>h.createElement(LI,null,h.createElement(Ta,null,h.createElement(ze,{position:"first"},h.createElement(Fe,{width:"60%"})),h.createElement(ze,{position:"second"},h.createElement(Fe,{width:"30%"})),h.createElement(ze,{position:"third"},h.createElement(Fe,{width:"60%"})),h.createElement(ze,{position:"last"},h.createElement(Fe,{width:"60%"}))),h.createElement(Ta,null,h.createElement(ze,{position:"first"},h.createElement(Fe,{width:"60%"})),h.createElement(ze,{position:"second"},h.createElement(Fe,{width:"80%"}),h.createElement(Fe,{width:"30%"})),h.createElement(ze,{position:"third"},h.createElement(Fe,{width:"60%"})),h.createElement(ze,{position:"last"},h.createElement(Fe,{width:"60%"}))),h.createElement(Ta,null,h.createElement(ze,{position:"first"},h.createElement(Fe,{width:"60%"})),h.createElement(ze,{position:"second"},h.createElement(Fe,{width:"80%"}),h.createElement(Fe,{width:"30%"})),h.createElement(ze,{position:"third"},h.createElement(Fe,{width:"60%"})),h.createElement(ze,{position:"last"},h.createElement(Fe,{width:"60%"}))),h.createElement(Ta,null,h.createElement(ze,{position:"first"},h.createElement(Fe,{width:"60%"})),h.createElement(ze,{position:"second"},h.createElement(Fe,{width:"80%"}),h.createElement(Fe,{width:"30%"})),h.createElement(ze,{position:"third"},h.createElement(Fe,{width:"60%"})),h.createElement(ze,{position:"last"},h.createElement(Fe,{width:"60%"})))),NI=T.table(({theme:e,compact:t,inAddonPanel:r})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:"35%"}},"td:nth-of-type(3)":{...t?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:"25%"}},th:{color:e.base==="light"?ye(.25,e.color.defaultText):ye(.45,e.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginLeft:r?0:1,marginRight:r?0:1,tbody:{...r?null:{filter:e.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}}}})),jI=T($r)(({theme:e})=>({margin:"-4px -12px -4px 0"})),MI=T.span({display:"flex",justifyContent:"space-between"}),zI={alpha:(e,t)=>(e.name??"").localeCompare(t.name??""),requiredFirst:(e,t)=>+!!t.type?.required-+!!e.type?.required||(e.name??"").localeCompare(t.name??""),none:null},HI=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([a,i])=>{let{category:l,subcategory:s}=i?.table||{};if(l){let u=r.sections[l]||{ungrouped:[],subsections:{}};if(!s)u.ungrouped.push({key:a,...i});else{let d=u.subsections[s]||[];d.push({key:a,...i}),u.subsections[s]=d}r.sections[l]=u}else if(s){let u=r.ungroupedSubsections[s]||[];u.push({key:a,...i}),r.ungroupedSubsections[s]=u}else r.ungrouped.push({key:a,...i})});let n=zI[t],o=a=>n?Object.keys(a).reduce((i,l)=>({...i,[l]:a[l].sort(n)}),{}):a;return{ungrouped:n?r.ungrouped.sort(n):r.ungrouped,ungroupedSubsections:o(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((a,i)=>({...a,[i]:{ungrouped:n?r.sections[i].ungrouped.sort(n):r.sections[i].ungrouped,subsections:o(r.sections[i].subsections)}}),{})}},UI=(e,t,r)=>{try{return ey(e,t,r)}catch(n){return aR.warn(n.message),!1}},lc=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:o,initialExpandedArgs:a,sort:i="none",isLoading:l}=e;if("error"in e){let{error:C}=e;return h.createElement(xS,null,C," ",h.createElement(Jn,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},h.createElement(Xu,null)," Read the docs"))}if(l)return h.createElement(BI,null);let{rows:s,args:u,globals:d}="rows"in e?e:{rows:void 0,args:void 0,globals:void 0},p=HI(eD(s||{},C=>!C?.table?.disable&&UI(C,u||{},d||{})),i),c=p.ungrouped.length===0,f=Object.entries(p.sections).length===0,g=Object.entries(p.ungroupedSubsections).length===0;if(c&&f&&g)return h.createElement(kI,{inAddonPanel:o});let y=1;t&&(y+=1),n||(y+=2);let x=Object.keys(p.sections).length>0,v={updateArgs:t,compact:n,inAddonPanel:o,initialExpandedArgs:a};return h.createElement(Md,null,h.createElement(NI,{compact:n,inAddonPanel:o,className:"docblock-argstable sb-unstyled"},h.createElement("thead",{className:"docblock-argstable-head"},h.createElement("tr",null,h.createElement("th",null,h.createElement("span",null,"Name")),n?null:h.createElement("th",null,h.createElement("span",null,"Description")),n?null:h.createElement("th",null,h.createElement("span",null,"Default")),t?h.createElement("th",null,h.createElement(MI,null,"Control"," ",!l&&r&&h.createElement(jI,{onClick:()=>r(),title:"Reset controls"},h.createElement(rR,{"aria-hidden":!0})))):null)),h.createElement("tbody",{className:"docblock-argstable-body"},p.ungrouped.map(C=>h.createElement(_a,{key:C.key,row:C,arg:u&&u[C.key],...v})),Object.entries(p.ungroupedSubsections).map(([C,w])=>h.createElement(ks,{key:C,label:C,level:"subsection",colSpan:y},w.map(E=>h.createElement(_a,{key:E.key,row:E,arg:u&&u[E.key],expandable:x,...v})))),Object.entries(p.sections).map(([C,w])=>h.createElement(ks,{key:C,label:C,level:"section",colSpan:y},w.ungrouped.map(E=>h.createElement(_a,{key:E.key,row:E,arg:u&&u[E.key],...v})),Object.entries(w.subsections).map(([E,$])=>h.createElement(ks,{key:E,label:E,level:"subsection",colSpan:y},$.map(A=>h.createElement(_a,{key:A.key,row:A,arg:u&&u[A.key],expandable:x,...v})))))))))},WI=e=>`anchor--${e}`,VI=({storyId:e,children:t})=>h.createElement("div",{id:WI(e),className:"sb-anchor"},t);globalThis&&globalThis.__DOCS_CONTEXT__===void 0&&(globalThis.__DOCS_CONTEXT__=b.createContext(null),globalThis.__DOCS_CONTEXT__.displayName="DocsContext");var Vt=globalThis?globalThis.__DOCS_CONTEXT__:b.createContext(null),pn=(e,t)=>b.useContext(Vt).resolveOf(e,t),qI=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),GI=e=>{if(e)return typeof e=="string"?e.includes("-")?qI(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function YI(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}var KI=Object.create,a2=Object.defineProperty,XI=Object.getOwnPropertyDescriptor,i2=Object.getOwnPropertyNames,ZI=Object.getPrototypeOf,JI=Object.prototype.hasOwnProperty,oe=(e,t)=>function(){return t||(0,e[i2(e)[0]])((t={exports:{}}).exports,t),t.exports},QI=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of i2(t))!JI.call(e,o)&&o!==r&&a2(e,o,{get:()=>t[o],enumerable:!(n=XI(t,o))||n.enumerable});return e},yp=(e,t,r)=>(r=e!=null?KI(ZI(e)):{},QI(!e||!e.__esModule?a2(r,"default",{value:e,enumerable:!0}):r,e)),e7=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],t7=["detail"];function r7(e){let t=e7.filter(r=>e[r]!==void 0).reduce((r,n)=>(r[n]=e[n],r),{});if(e instanceof CustomEvent)for(let r of t7.filter(n=>e[n]!==void 0))t[r]=e[r];return t}var l2=oe({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),n7=oe({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),o7=oe({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),a7=oe({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),i7=oe({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),l7=oe({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),bp=oe({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),s7=oe({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),u7=oe({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),c7=oe({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),d7=oe({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),p7=oe({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),f7=oe({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),g7=oe({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),m7=oe({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(e,t){t.exports=Number.isNaN||function(r){return r!==r}}}),h7=oe({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var r=m7();t.exports=function(n){return r(n)||n===0?n:n<0?-1:1}}}),y7=oe({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),vp=oe({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var r=y7();if(r)try{r([],"length")}catch{r=null}t.exports=r}}),b7=oe({"node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(e,t){var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}t.exports=r}}),s2=oe({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),o=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var a=42;r[n]=a;for(var i in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var l=Object.getOwnPropertySymbols(r);if(l.length!==1||l[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(r,n);if(s.value!==a||s.enumerable!==!0)return!1}return!0}}}),u2=oe({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=s2();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),c2=oe({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js"(e,t){t.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null}}),d2=oe({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){var r=l2();t.exports=r.getPrototypeOf||null}}),v7=oe({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(e,t){var r="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,o=Math.max,a="[object Function]",i=function(u,d){for(var p=[],c=0;c"u"||!F?r:F(Uint8Array),z={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":D&&F?F([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":j,"%AsyncGenerator%":j,"%AsyncGeneratorFunction%":j,"%AsyncIteratorPrototype%":j,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":C,"%GeneratorFunction%":j,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":D&&F?F(F([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!D||!F?r:F(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":E,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":i,"%ReferenceError%":l,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!D||!F?r:F(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":D&&F?F(""[Symbol.iterator]()):r,"%Symbol%":D?Symbol:r,"%SyntaxError%":s,"%ThrowTypeError%":S,"%TypedArray%":B,"%TypeError%":u,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":d,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":L,"%Function.prototype.apply%":I,"%Object.defineProperty%":$,"%Object.getPrototypeOf%":k,"%Math.abs%":p,"%Math.floor%":c,"%Math.max%":f,"%Math.min%":g,"%Math.pow%":y,"%Math.round%":x,"%Math.sign%":v,"%Reflect.getPrototypeOf%":_};if(F)try{null.error}catch(ne){V=F(F(ne)),z["%Error.prototype%"]=V}var V,Y=function ne(de){var M;if(de==="%AsyncFunction%")M=w("async function () {}");else if(de==="%GeneratorFunction%")M=w("function* () {}");else if(de==="%AsyncGeneratorFunction%")M=w("async function* () {}");else if(de==="%AsyncGenerator%"){var U=ne("%AsyncGeneratorFunction%");U&&(M=U.prototype)}else if(de==="%AsyncIteratorPrototype%"){var fe=ne("%AsyncGenerator%");fe&&F&&(M=F(fe.prototype))}return z[de]=M,M},W={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},G=Dl(),J=g2(),Q=G.call(L,Array.prototype.concat),re=G.call(I,Array.prototype.splice),ie=G.call(L,String.prototype.replace),H=G.call(L,String.prototype.slice),X=G.call(L,RegExp.prototype.exec),Z=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,le=/\\(\\)?/g,me=function(ne){var de=H(ne,0,1),M=H(ne,-1);if(de==="%"&&M!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(M==="%"&&de!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var U=[];return ie(ne,Z,function(fe,ke,be,We){U[U.length]=be?ie(We,le,"$1"):ke||fe}),U},Re=function(ne,de){var M=ne,U;if(J(W,M)&&(U=W[M],M="%"+U[0]+"%"),J(z,M)){var fe=z[M];if(fe===j&&(fe=Y(M)),typeof fe>"u"&&!de)throw new u("intrinsic "+ne+" exists, but is not available. Please file an issue!");return{alias:U,name:M,value:fe}}throw new s("intrinsic "+ne+" does not exist!")};t.exports=function(ne,de){if(typeof ne!="string"||ne.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof de!="boolean")throw new u('"allowMissing" argument must be a boolean');if(X(/^%?[^%]*%?$/,ne)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var M=me(ne),U=M.length>0?M[0]:"",fe=Re("%"+U+"%",de),ke=fe.name,be=fe.value,We=!1,pr=fe.alias;pr&&(U=pr[0],re(M,Q([0,1],pr)));for(var Ce=1,nt=!0;Ce=M.length){var yt=E(be,$e);nt=!!yt,nt&&"get"in yt&&!("originalValue"in yt.get)?be=yt.get:be=be[$e]}else nt=J(be,$e),be=be[$e];nt&&!We&&(z[ke]=be)}}return be}}}),Ep=oe({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var r=C7(),n=f2(),o=n([r("%String.prototype.indexOf%")]);t.exports=function(a,i){var l=r(a,!!i);return typeof l=="function"&&o(a,".prototype.")>-1?n([l]):l}}}),$7=oe({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var r=s2();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),m2=oe({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var r=Ep(),n=$7()(),o=g2(),a=vp(),i;n?(l=r("RegExp.prototype.exec"),s={},u=function(){throw s},d={toString:u,valueOf:u},typeof Symbol.toPrimitive=="symbol"&&(d[Symbol.toPrimitive]=u),i=function(f){if(!f||typeof f!="object")return!1;var g=a(f,"lastIndex"),y=g&&o(g,"value");if(!y)return!1;try{l(f,d)}catch(x){return x===s}}):(p=r("Object.prototype.toString"),c="[object RegExp]",i=function(f){return!f||typeof f!="object"&&typeof f!="function"?!1:p(f)===c});var l,s,u,d,p,c;t.exports=i}}),A7=oe({"node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js"(e,t){t.exports=n;var r=Object.prototype.toString;function n(o){if(!o)return!1;var a=r.call(o);return a==="[object Function]"||typeof o=="function"&&a!=="[object RegExp]"||typeof window<"u"&&(o===window.setTimeout||o===window.alert||o===window.confirm||o===window.prompt)}}}),D7=oe({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var r=Ep(),n=m2(),o=r("RegExp.prototype.exec"),a=bp();t.exports=function(i){if(!n(i))throw new a("`regex` must be a RegExp");return function(l){return o(i,l)!==null}}}}),k7=oe({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var r=Ep(),n=r("Object.prototype.toString"),o=u2()(),a=D7();o?(i=r("Symbol.prototype.toString"),l=a(/^Symbol\(.*\)$/),s=function(u){return typeof u.valueOf()!="symbol"?!1:l(i(u))},t.exports=function(u){if(typeof u=="symbol")return!0;if(!u||typeof u!="object"||n(u)!=="[object Symbol]")return!1;try{return s(u)}catch{return!1}}):t.exports=function(u){return!1};var i,l,s}}),O7=yp(m2()),F7=yp(A7()),_7=yp(k7());function T7(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var R7=typeof global=="object"&&global&&global.Object===Object&&global,P7=R7,I7=typeof self=="object"&&self&&self.Object===Object&&self,L7=P7||I7||Function("return this")(),wp=L7,B7=wp.Symbol,no=B7,h2=Object.prototype,N7=h2.hasOwnProperty,j7=h2.toString,Ao=no?no.toStringTag:void 0;function M7(e){var t=N7.call(e,Ao),r=e[Ao];try{e[Ao]=void 0;var n=!0}catch{}var o=j7.call(e);return n&&(t?e[Ao]=r:delete e[Ao]),o}var z7=M7,H7=Object.prototype,U7=H7.toString;function W7(e){return U7.call(e)}var V7=W7,q7="[object Null]",G7="[object Undefined]",eh=no?no.toStringTag:void 0;function Y7(e){return e==null?e===void 0?G7:q7:eh&&eh in Object(e)?z7(e):V7(e)}var K7=Y7,th=no?no.prototype:void 0;th&&th.toString;function X7(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var y2=X7,Z7="[object AsyncFunction]",J7="[object Function]",Q7="[object GeneratorFunction]",eL="[object Proxy]";function tL(e){if(!y2(e))return!1;var t=K7(e);return t==J7||t==Q7||t==Z7||t==eL}var rL=tL,nL=wp["__core-js_shared__"],Os=nL,rh=function(){var e=/[^.]+$/.exec(Os&&Os.keys&&Os.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function oL(e){return!!rh&&rh in e}var aL=oL,iL=Function.prototype,lL=iL.toString;function sL(e){if(e!=null){try{return lL.call(e)}catch{}try{return e+""}catch{}}return""}var uL=sL,cL=/[\\^$.*+?()[\]{}|]/g,dL=/^\[object .+?Constructor\]$/,pL=Function.prototype,fL=Object.prototype,gL=pL.toString,mL=fL.hasOwnProperty,hL=RegExp("^"+gL.call(mL).replace(cL,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function yL(e){if(!y2(e)||aL(e))return!1;var t=rL(e)?hL:dL;return t.test(uL(e))}var bL=yL;function vL(e,t){return e?.[t]}var xL=vL;function EL(e,t){var r=xL(e,t);return bL(r)?r:void 0}var b2=EL;function wL(e,t){return e===t||e!==e&&t!==t}var SL=wL,CL=b2(Object,"create"),ea=CL;function $L(){this.__data__=ea?ea(null):{},this.size=0}var AL=$L;function DL(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var kL=DL,OL="__lodash_hash_undefined__",FL=Object.prototype,_L=FL.hasOwnProperty;function TL(e){var t=this.__data__;if(ea){var r=t[e];return r===OL?void 0:r}return _L.call(t,e)?t[e]:void 0}var RL=TL,PL=Object.prototype,IL=PL.hasOwnProperty;function LL(e){var t=this.__data__;return ea?t[e]!==void 0:IL.call(t,e)}var BL=LL,NL="__lodash_hash_undefined__";function jL(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ea&&t===void 0?NL:t,this}var ML=jL;function po(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var ZL=XL;function JL(e,t){var r=this.__data__,n=kl(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var QL=JL;function fo(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{try{t[o]&&t[o].toJSON,n[o]=t[o]}catch{r=!0}return n},{}),r?t:e}var $B=function(e){let t,r,n,o;return function(a,i){try{if(a==="")return o=[],t=new Map([[i,"[]"]]),r=new Map,n=[],i;let l=r.get(this)||this;for(;n.length&&l!==n[0];)n.shift(),o.pop();if(typeof i=="boolean")return i;if(i===void 0)return e.allowUndefined?"_undefined_":void 0;if(i===null)return null;if(typeof i=="number")return i===Number.NEGATIVE_INFINITY?"_-Infinity_":i===Number.POSITIVE_INFINITY?"_Infinity_":Number.isNaN(i)?"_NaN_":i;if(typeof i=="bigint")return`_bigint_${i.toString()}`;if(typeof i=="string")return CB.test(i)?e.allowDate?`_date_${i}`:void 0:i;if((0,O7.default)(i))return e.allowRegExp?`_regexp_${i.flags}|${i.source}`:void 0;if((0,F7.default)(i))return;if((0,_7.default)(i)){if(!e.allowSymbol)return;let u=Symbol.keyFor(i);return u!==void 0?`_gsymbol_${u}`:`_symbol_${i.toString().slice(7,-1)}`}if(n.length>=e.maxDepth)return Array.isArray(i)?`[Array(${i.length})]`:"[Object]";if(i===this)return`_duplicate_${JSON.stringify(o)}`;if(i instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...i.cause?{cause:i.cause}:{},...i,name:i.name,message:i.message,stack:i.stack,"_constructor-name_":i.constructor.name}};if(i?.constructor?.name&&i.constructor.name!=="Object"&&!Array.isArray(i)){let u=t.get(i);if(!u){let d={__isClassInstance__:!0,__className__:i.constructor.name,...Object.getOwnPropertyNames(i).reduce((p,c)=>{try{p[c]=i[c]}catch{}return p},{})};return o.push(a),n.unshift(d),t.set(i,JSON.stringify(o)),i!==d&&r.set(i,d),d}return`_duplicate_${u}`}let s=t.get(i);if(!s){let u=Array.isArray(i)?i:x2(i);return o.push(a),n.unshift(u),t.set(i,JSON.stringify(o)),i!==u&&r.set(i,u),u}return`_duplicate_${s}`}catch{return}}},AB={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},DB=(e,t={})=>{let r={...AB,...t};return JSON.stringify(x2(e),$B(r),t.space)};function E2(e){return DB(e,{maxDepth:50})}var w2=b.createContext({sources:{}}),S2="--unknown--",kB=({children:e,channel:t})=>{let[r,n]=b.useState({});return b.useEffect(()=>{let o=(a,i=null,l=!1)=>{let{id:s,args:u=void 0,source:d,format:p}=typeof a=="string"?{id:a,source:i,format:l}:a,c=u?E2(u):S2;n(f=>({...f,[s]:{...f[s],[c]:{code:d||"",format:p}}}))};return t.on(Fp,o),()=>t.off(Fp,o)},[]),h.createElement(w2.Provider,{value:{sources:r}},e)};function OB(e,t,r){let[n,o]=b.useState("Transforming..."),a=t?t?.(e,r):e;return b.useEffect(()=>{async function i(){let l=await a;l!==n&&o(l)}i()}),typeof a=="object"&&typeof a.then=="function"?n:a}var FB=(e,t,r)=>{let{sources:n}=r,o=n?.[e];return o?.[E2(t)]||o?.[S2]||{code:""}},_B=({snippet:e,storyContext:t,typeFromProps:r,transformFromProps:n})=>{let o=t.parameters??{},{__isArgsStory:a}=o,i=o.docs?.source||{},l=r||i.type||Tl.AUTO,s=l===Tl.DYNAMIC||l===Tl.AUTO&&e&&a?e:i.originalSource||"",u=n??i.transform,d=u?OB(s,u,t):s;return i.code!==void 0?i.code:d},TB=(e,t,r)=>{let{of:n}=e,o=b.useMemo(()=>{if(n)return t.resolveOf(n,["story"]).story;try{return t.storyById()}catch{}},[t,n]),a=o?t.getStoryContext(o):{},i=e.__forceInitialArgs?a.initialArgs:a.unmappedArgs,l=o?FB(o.id,i,r):null,s=_B({snippet:l?l.code:"",storyContext:{...a,args:i},typeFromProps:e.type,transformFromProps:e.transform});if("of"in e&&n===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let u=o?.parameters?.docs?.source||{},d=e.format,p=e.language??u.language??"jsx",c=e.dark??u.dark??!1;return!e.code&&!o?{error:"Oh no! The source is not available."}:e.code?{code:e.code,format:d,language:p,dark:c}:(d=l?.format??!0,{code:s,format:d,language:p,dark:c})};function RB(e,t){let r=PB([e],t);return r&&r[0]}function PB(e,t){let[r,n]=b.useState({});return b.useEffect(()=>{Promise.all(e.map(async o=>{let a=await t.loadStory(o);n(i=>i[o]===a?i:{...i,[o]:a})}))}),e.map(o=>{if(r[o])return r[o];try{return t.storyById(o)}catch{return}})}var IB=(e,t)=>{let{of:r,meta:n}=e;if("of"in e&&r===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");return n&&t.referenceMeta(n,!1),t.resolveOf(r||"story",["story"]).story.id},LB=(e,t,r)=>{let{parameters:n={}}=t||{},{docs:o={}}=n,a=o.story||{};if(o.disable)return null;if(e.inline??a.inline??!1){let l=e.height??a.height,s=e.autoplay??a.autoplay??!1;return{story:t,inline:!0,height:l,autoplay:s,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:r.renderStoryToElement}}let i=e.height??a.height??a.iframeHeight??"100px";return{story:t,inline:!1,height:i,primary:!!e.__primary}},BB=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=b.useContext(Vt),r=IB(e,t),n=RB(r,t);if(!n)return h.createElement(SS,null);let o=LB(e,n,t);return o?h.createElement(f6,{...o}):null},NB=e=>{let t=b.useContext(Vt),r=b.useContext(w2),{of:n,source:o}=e;if("of"in e&&n===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{story:a}=pn(n||"story",["story"]),i=TB({...o,...n&&{of:n}},t,r),l=e.layout??a.parameters.layout??a.parameters.docs?.canvas?.layout??"padded",s=e.withToolbar??a.parameters.docs?.canvas?.withToolbar??!1,u=e.additionalActions??a.parameters.docs?.canvas?.additionalActions,d=e.sourceState??a.parameters.docs?.canvas?.sourceState??"hidden",p=e.className??a.parameters.docs?.canvas?.className,c=e.story?.inline??a.parameters?.docs?.story?.inline??!1;return h.createElement(CS,{withSource:d==="none"?void 0:i,isExpanded:d==="shown",withToolbar:s,additionalActions:u,className:p,layout:l,inline:c},h.createElement(BB,{of:n||a.moduleExport,meta:e.meta,...e.story}))},jB=(e,t)=>{let r=MB(e,t);if(!r)throw new Error("No result when story was defined");return r},MB=(e,t)=>{let r=e?t.getStoryContext(e):{args:{}},{id:n}=e||{id:"none"},[o,a]=b.useState(r.args);b.useEffect(()=>{let s=u=>{u.storyId===n&&a(u.args)};return t.channel.on(Am,s),()=>t.channel.off(Am,s)},[n,t.channel]);let i=b.useCallback(s=>t.channel.emit(iR,{storyId:n,updatedArgs:s}),[n,t.channel]),l=b.useCallback(s=>t.channel.emit(lR,{storyId:n,argNames:s}),[n,t.channel]);return e&&[o,i,l]},zB=(e,t)=>{let r=t.getStoryContext(e),[n,o]=b.useState(r.globals);return b.useEffect(()=>{let a=i=>{o(i.globals)};return t.channel.on(Dm,a),()=>t.channel.off(Dm,a)},[t.channel]),[n]};function HB(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}var UB=e=>{let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let r=b.useContext(Vt),{story:n}=r.resolveOf(t||"story",["story"]),{parameters:o,argTypes:a,component:i,subcomponents:l}=n,s=o.docs?.controls||{},u=e.include??s.include,d=e.exclude??s.exclude,p=e.sort??s.sort,[c,f,g]=jB(n,r),[y]=zB(n,r),x=km(a,u,d);if(!(l&&Object.keys(l||{}).length>0))return Object.keys(x).length>0||Object.keys(c).length>0?h.createElement(lc,{rows:x,sort:p,args:c,globals:y,updateArgs:f,resetArgs:g}):null;let v=GI(i)||"Story",C=Object.fromEntries(Object.entries(l||{}).map(([E,$])=>[E,{rows:km(HB($,o),u,d),sort:p}])),w={[v]:{rows:x,sort:p},...C};return h.createElement(C6,{tabs:w,sort:p,args:c,globals:y,updateArgs:f,resetArgs:g})},{document:C2}=globalThis,$2=({className:e,children:t,...r})=>{if(typeof e!="string"&&(typeof t!="string"||!t.match(/[\n\r]/g)))return h.createElement(zd,null,t);let n=e&&e.split("-");return h.createElement(ES,{language:n&&n[1]||"text",format:!1,code:t,...r})};function Cp(e,t){e.channel.emit(gS,t)}var sc=dS.a,WB=({hash:e,children:t})=>{let r=b.useContext(Vt);return h.createElement(sc,{href:e,target:"_self",onClick:n=>{let o=e.substring(1);C2.getElementById(o)&&Cp(r,e)}},t)},A2=e=>{let{href:t,target:r,children:n,...o}=e,a=b.useContext(Vt);return!t||r==="_blank"||/^https?:\/\//.test(t)?h.createElement(sc,{...e}):t.startsWith("#")?h.createElement(WB,{hash:t},n):h.createElement(sc,{href:t,onClick:i=>{i.button===0&&!i.altKey&&!i.ctrlKey&&!i.metaKey&&!i.shiftKey&&(i.preventDefault(),Cp(a,i.currentTarget.getAttribute("href")||""))},target:r,...o},n)},D2=["h1","h2","h3","h4","h5","h6"],VB=D2.reduce((e,t)=>({...e,[t]:T(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),qB=T.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),GB=({as:e,id:t,children:r,...n})=>{let o=b.useContext(Vt),a=VB[e],i=`#${t}`;return h.createElement(a,{id:t,...n},h.createElement(qB,{"aria-hidden":"true",href:i,tabIndex:-1,target:"_self",onClick:l=>{C2.getElementById(t)&&Cp(o,i)}},h.createElement(JT,null)),r)},$p=e=>{let{as:t,id:r,children:n,...o}=e;if(r)return h.createElement(GB,{as:t,id:r,...o},n);let a=t,{as:i,...l}=e;return h.createElement(a,{...ve(l,t)})},k2=D2.reduce((e,t)=>({...e,[t]:r=>h.createElement($p,{as:t,...r})}),{}),YB=e=>{if(!e.children)return null;if(typeof e.children!="string")throw new Error(nR`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}'
+`,
+ { inline: f },
+ ),
+ );
+ for (; typeof g[g.length - 1] == "string" && !g[g.length - 1].trim(); )
+ g.pop();
+ if (t.wrapper === null) return g;
+ let y = t.wrapper || (f ? "span" : "div"),
+ x;
+ if (g.length > 1 || t.forceWrapper) x = g;
+ else {
+ if (g.length === 1)
+ return (
+ (x = g[0]),
+ typeof x == "string" ? r("span", { key: "outer" }, x) : x
+ );
+ x = null;
+ }
+ return t.createElement(y, { key: "outer" }, x);
+ }
+ function o(c, f) {
+ let g = f.match(V6);
+ return g
+ ? g.reduce(function (y, x) {
+ let v = x.indexOf("=");
+ if (v !== -1) {
+ let C = (function (A) {
+ return (
+ A.indexOf("-") !== -1 &&
+ A.match(lP) === null &&
+ (A = A.replace(pP, function (S, D) {
+ return D.toUpperCase();
+ })),
+ A
+ );
+ })(x.slice(0, v)).trim(),
+ w = (function (A) {
+ let S = A[0];
+ return (S === '"' || S === "'") &&
+ A.length >= 2 &&
+ A[A.length - 1] === S
+ ? A.slice(1, -1)
+ : A;
+ })(x.slice(v + 1).trim()),
+ E = Pm[C] || C;
+ if (E === "ref") return y;
+ let $ = (y[E] = (function (A, S, D, F) {
+ return S === "style"
+ ? (function (k) {
+ let _ = [],
+ I = "",
+ L = !1,
+ j = !1,
+ B = "";
+ if (!k) return _;
+ for (let V = 0; V < k.length; V++) {
+ let Y = k[V];
+ if (
+ ((Y !== '"' && Y !== "'") ||
+ L ||
+ (j
+ ? Y === B && ((j = !1), (B = ""))
+ : ((j = !0), (B = Y))),
+ Y === "(" && I.endsWith("url")
+ ? (L = !0)
+ : Y === ")" && L && (L = !1),
+ Y !== ";" || j || L)
+ )
+ I += Y;
+ else {
+ let W = I.trim();
+ if (W) {
+ let G = W.indexOf(":");
+ if (G > 0) {
+ let J = W.slice(0, G).trim(),
+ Q = W.slice(G + 1).trim();
+ _.push([J, Q]);
+ }
+ }
+ I = "";
+ }
+ }
+ let z = I.trim();
+ if (z) {
+ let V = z.indexOf(":");
+ if (V > 0) {
+ let Y = z.slice(0, V).trim(),
+ W = z.slice(V + 1).trim();
+ _.push([Y, W]);
+ }
+ }
+ return _;
+ })(D).reduce(function (k, [_, I]) {
+ return (
+ (k[_.replace(/(-[a-z])/g, (L) => L[1].toUpperCase())] = F(
+ I,
+ A,
+ _,
+ )),
+ k
+ );
+ }, {})
+ : W6.indexOf(S) !== -1
+ ? F(D, A, S)
+ : (D.match(sP) && (D = D.slice(1, D.length - 1)),
+ D === "true" || (D !== "false" && D));
+ })(c, C, w, t.sanitizer));
+ typeof $ == "string" &&
+ (rc.test($) || nc.test($)) &&
+ (y[E] = n($.trim()));
+ } else x !== "style" && (y[Pm[x] || x] = !0);
+ return y;
+ }, {})
+ : null;
+ }
+ ((t.overrides = t.overrides || {}),
+ (t.sanitizer = t.sanitizer || UP),
+ (t.slugify = t.slugify || Co),
+ (t.namedCodesToUnicode = t.namedCodesToUnicode
+ ? Ur({}, Im, t.namedCodesToUnicode)
+ : Im),
+ (t.createElement = t.createElement || b.createElement));
+ let a = [],
+ i = {},
+ l = {
+ [ee.blockQuote]: {
+ match: Xt(DS),
+ order: 1,
+ parse(c, f, g) {
+ let [, y, x] = c[0].replace(Y6, "").match(K6);
+ return { alert: y, children: f(x, g) };
+ },
+ render(c, f, g) {
+ let y = { key: g.key };
+ return (
+ c.alert &&
+ ((y.className =
+ "markdown-alert-" + t.slugify(c.alert.toLowerCase(), Co)),
+ c.children.unshift({
+ attrs: {},
+ children: [{ type: ee.text, text: c.alert }],
+ noInnerParse: !0,
+ type: ee.htmlBlock,
+ tag: "header",
+ })),
+ r("blockquote", y, f(c.children, g))
+ );
+ },
+ },
+ [ee.breakLine]: {
+ match: $o(X6),
+ order: 1,
+ parse: Cs,
+ render: (c, f, g) => r("br", { key: g.key }),
+ },
+ [ee.breakThematic]: {
+ match: Xt(Z6),
+ order: 1,
+ parse: Cs,
+ render: (c, f, g) => r("hr", { key: g.key }),
+ },
+ [ee.codeBlock]: {
+ match: Xt(OS),
+ order: 0,
+ parse: (c) => ({
+ lang: void 0,
+ text: Qo(c[0].replace(/^ {4}/gm, "")).replace(Lm, "$1"),
+ }),
+ render: (c, f, g) =>
+ r(
+ "pre",
+ { key: g.key },
+ r(
+ "code",
+ Ur({}, c.attrs, { className: c.lang ? `lang-${c.lang}` : "" }),
+ c.text,
+ ),
+ ),
+ },
+ [ee.codeFenced]: {
+ match: Xt(kS),
+ order: 0,
+ parse: (c) => ({
+ attrs: o("code", c[3] || ""),
+ lang: c[2] || void 0,
+ text: c[4],
+ type: ee.codeBlock,
+ }),
+ },
+ [ee.codeInline]: {
+ match: gr(J6),
+ order: 3,
+ parse: (c) => ({ text: c[2].replace(Lm, "$1") }),
+ render: (c, f, g) => r("code", { key: g.key }, c.text),
+ },
+ [ee.footnote]: {
+ match: Xt(tP),
+ order: 0,
+ parse: (c) => (a.push({ footnote: c[2], identifier: c[1] }), {}),
+ render: $s,
+ },
+ [ee.footnoteReference]: {
+ match: fr(rP),
+ order: 1,
+ parse: (c) => ({ target: `#${t.slugify(c[1], Co)}`, text: c[1] }),
+ render: (c, f, g) =>
+ r(
+ "a",
+ { key: g.key, href: t.sanitizer(c.target, "a", "href") },
+ r("sup", { key: g.key }, c.text),
+ ),
+ },
+ [ee.gfmTask]: {
+ match: fr(aP),
+ order: 1,
+ parse: (c) => ({ completed: c[1].toLowerCase() === "x" }),
+ render: (c, f, g) =>
+ r("input", {
+ checked: c.completed,
+ key: g.key,
+ readOnly: !0,
+ type: "checkbox",
+ }),
+ },
+ [ee.heading]: {
+ match: Xt(t.enforceAtxHeadings ? _S : FS),
+ order: 1,
+ parse: (c, f, g) => ({
+ children: Ka(f, c[2], g),
+ id: t.slugify(c[2], Co),
+ level: c[1].length,
+ }),
+ render: (c, f, g) =>
+ r(`h${c.level}`, { id: c.id, key: g.key }, f(c.children, g)),
+ },
+ [ee.headingSetext]: {
+ match: Xt(TS),
+ order: 0,
+ parse: (c, f, g) => ({
+ children: Ka(f, c[1], g),
+ level: c[2] === "=" ? 1 : 2,
+ type: ee.heading,
+ }),
+ },
+ [ee.htmlBlock]: {
+ match: $o(rc),
+ order: 1,
+ parse(c, f, g) {
+ let [, y] = c[3].match(OP),
+ x = new RegExp(`^${y}`, "gm"),
+ v = c[3].replace(x, ""),
+ C = ((w = v), NP.some((D) => D.test(w)) ? VP : Ka);
+ var w;
+ let E = c[1].toLowerCase(),
+ $ = U6.indexOf(E) !== -1,
+ A = ($ ? E : c[1]).trim(),
+ S = { attrs: o(A, c[2]), noInnerParse: $, tag: A };
+ return (
+ (g.inAnchor = g.inAnchor || E === "a"),
+ $ ? (S.text = c[3]) : (S.children = C(f, v, g)),
+ (g.inAnchor = !1),
+ S
+ );
+ },
+ render: (c, f, g) =>
+ r(
+ c.tag,
+ Ur({ key: g.key }, c.attrs),
+ c.text || (c.children ? f(c.children, g) : ""),
+ ),
+ },
+ [ee.htmlSelfClosing]: {
+ match: $o(nc),
+ order: 1,
+ parse(c) {
+ let f = c[1].trim();
+ return { attrs: o(f, c[2] || ""), tag: f };
+ },
+ render: (c, f, g) => r(c.tag, Ur({}, c.attrs, { key: g.key })),
+ },
+ [ee.htmlComment]: {
+ match: $o(RS),
+ order: 1,
+ parse: () => ({}),
+ render: $s,
+ },
+ [ee.image]: {
+ match: gr(BP),
+ order: 1,
+ parse: (c) => ({ alt: c[1], target: Mm(c[2]), title: c[3] }),
+ render: (c, f, g) =>
+ r("img", {
+ key: g.key,
+ alt: c.alt || void 0,
+ title: c.title || void 0,
+ src: t.sanitizer(c.target, "img", "src"),
+ }),
+ },
+ [ee.link]: {
+ match: fr(LP),
+ order: 3,
+ parse: (c, f, g) => ({
+ children: WP(f, c[1], g),
+ target: Mm(c[2]),
+ title: c[3],
+ }),
+ render: (c, f, g) =>
+ r(
+ "a",
+ {
+ key: g.key,
+ href: t.sanitizer(c.target, "a", "href"),
+ title: c.title,
+ },
+ f(c.children, g),
+ ),
+ },
+ [ee.linkAngleBraceStyleDetector]: {
+ match: fr(dP),
+ order: 0,
+ parse: (c) => ({
+ children: [{ text: c[1], type: ee.text }],
+ target: c[1],
+ type: ee.link,
+ }),
+ },
+ [ee.linkBareUrlDetector]: {
+ match: ro((c, f) =>
+ f.inAnchor || t.disableAutoLink ? null : fr(uP)(c, f),
+ ),
+ order: 0,
+ parse: (c) => ({
+ children: [{ text: c[1], type: ee.text }],
+ target: c[1],
+ title: void 0,
+ type: ee.link,
+ }),
+ },
+ [ee.linkMailtoDetector]: {
+ match: fr(cP),
+ order: 0,
+ parse(c) {
+ let f = c[1],
+ g = c[1];
+ return (
+ q6.test(g) || (g = "mailto:" + g),
+ {
+ children: [{ text: f.replace("mailto:", ""), type: ee.text }],
+ target: g,
+ type: ee.link,
+ }
+ );
+ },
+ },
+ [ee.orderedList]: Bm(r, 1),
+ [ee.unorderedList]: Bm(r, 2),
+ [ee.newlineCoalescer]: {
+ match: Xt(Q6),
+ order: 3,
+ parse: Cs,
+ render: () => `
+`,
+ },
+ [ee.paragraph]: {
+ match: ro(zP),
+ order: 3,
+ parse: Ss,
+ render: (c, f, g) => r("p", { key: g.key }, f(c.children, g)),
+ },
+ [ee.ref]: {
+ match: fr(fP),
+ order: 0,
+ parse: (c) => ((i[c[1]] = { target: c[2], title: c[4] }), {}),
+ render: $s,
+ },
+ [ee.refImage]: {
+ match: gr(gP),
+ order: 0,
+ parse: (c) => ({ alt: c[1] || void 0, ref: c[2] }),
+ render: (c, f, g) =>
+ i[c.ref]
+ ? r("img", {
+ key: g.key,
+ alt: c.alt,
+ src: t.sanitizer(i[c.ref].target, "img", "src"),
+ title: i[c.ref].title,
+ })
+ : null,
+ },
+ [ee.refLink]: {
+ match: fr(mP),
+ order: 0,
+ parse: (c, f, g) => ({
+ children: f(c[1], g),
+ fallbackChildren: c[0],
+ ref: c[2],
+ }),
+ render: (c, f, g) =>
+ i[c.ref]
+ ? r(
+ "a",
+ {
+ key: g.key,
+ href: t.sanitizer(i[c.ref].target, "a", "href"),
+ title: i[c.ref].title,
+ },
+ f(c.children, g),
+ )
+ : r("span", { key: g.key }, c.fallbackChildren),
+ },
+ [ee.table]: {
+ match: Xt(PS),
+ order: 1,
+ parse: MP,
+ render(c, f, g) {
+ let y = c;
+ return r(
+ "table",
+ { key: g.key },
+ r(
+ "thead",
+ null,
+ r(
+ "tr",
+ null,
+ y.header.map(function (x, v) {
+ return r("th", { key: v, style: jm(y, v) }, f(x, g));
+ }),
+ ),
+ ),
+ r(
+ "tbody",
+ null,
+ y.cells.map(function (x, v) {
+ return r(
+ "tr",
+ { key: v },
+ x.map(function (C, w) {
+ return r("td", { key: w, style: jm(y, w) }, f(C, g));
+ }),
+ );
+ }),
+ ),
+ );
+ },
+ },
+ [ee.text]: {
+ match: $o(DP),
+ order: 4,
+ parse: (c) => ({
+ text: c[0].replace(iP, (f, g) =>
+ t.namedCodesToUnicode[g] ? t.namedCodesToUnicode[g] : f,
+ ),
+ }),
+ render: (c) => c.text,
+ },
+ [ee.textBolded]: {
+ match: gr(wP),
+ order: 2,
+ parse: (c, f, g) => ({ children: f(c[2], g) }),
+ render: (c, f, g) => r("strong", { key: g.key }, f(c.children, g)),
+ },
+ [ee.textEmphasized]: {
+ match: gr(SP),
+ order: 3,
+ parse: (c, f, g) => ({ children: f(c[2], g) }),
+ render: (c, f, g) => r("em", { key: g.key }, f(c.children, g)),
+ },
+ [ee.textEscaped]: {
+ match: gr(AP),
+ order: 1,
+ parse: (c) => ({ text: c[1], type: ee.text }),
+ },
+ [ee.textMarked]: {
+ match: gr(CP),
+ order: 3,
+ parse: Ss,
+ render: (c, f, g) => r("mark", { key: g.key }, f(c.children, g)),
+ },
+ [ee.textStrikethroughed]: {
+ match: gr($P),
+ order: 3,
+ parse: Ss,
+ render: (c, f, g) => r("del", { key: g.key }, f(c.children, g)),
+ },
+ };
+ t.disableParsingRawHTML === !0 &&
+ (delete l[ee.htmlBlock], delete l[ee.htmlSelfClosing]);
+ let s = (function (c) {
+ let f = Object.keys(c);
+ function g(y, x) {
+ let v,
+ C,
+ w = [],
+ E = "",
+ $ = "";
+ for (x.prevCapture = x.prevCapture || ""; y; ) {
+ let A = 0;
+ for (; A < f.length; ) {
+ if (((E = f[A]), (v = c[E]), x.inline && !v.match.inline)) {
+ A++;
+ continue;
+ }
+ let S = v.match(y, x);
+ if (S) {
+ (($ = S[0]),
+ (x.prevCapture += $),
+ (y = y.substring($.length)),
+ (C = v.parse(S, g, x)),
+ C.type == null && (C.type = E),
+ w.push(C));
+ break;
+ }
+ A++;
+ }
+ }
+ return ((x.prevCapture = ""), w);
+ }
+ return (
+ f.sort(function (y, x) {
+ let v = c[y].order,
+ C = c[x].order;
+ return v !== C ? v - C : y < x ? -1 : 1;
+ }),
+ function (y, x) {
+ return g(
+ (function (v) {
+ return v
+ .replace(
+ eP,
+ `
+`,
+ )
+ .replace(nP, "")
+ .replace(yP, " ");
+ })(y),
+ x,
+ );
+ }
+ );
+ })(l),
+ u =
+ ((d = (function (c, f) {
+ return function (g, y, x) {
+ let v = c[g.type].render;
+ return f ? f(() => v(g, y, x), g, y, x) : v(g, y, x);
+ };
+ })(l, t.renderRule)),
+ function c(f, g = {}) {
+ if (Array.isArray(f)) {
+ let y = g.key,
+ x = [],
+ v = !1;
+ for (let C = 0; C < f.length; C++) {
+ g.key = C;
+ let w = c(f[C], g),
+ E = typeof w == "string";
+ (E && v ? (x[x.length - 1] += w) : w !== null && x.push(w),
+ (v = E));
+ }
+ return ((g.key = y), x);
+ }
+ return d(f, c, g);
+ });
+ var d;
+ let p = n(e);
+ return a.length
+ ? r(
+ "div",
+ null,
+ p,
+ r(
+ "footer",
+ { key: "footer" },
+ a.map(function (c) {
+ return r(
+ "div",
+ { id: t.slugify(c.identifier, Co), key: c.identifier },
+ c.identifier,
+ u(s(c.footnote, { inline: !0 })),
+ );
+ }),
+ ),
+ )
+ : p;
+}
+var WS = (e) => {
+ let { children: t = "", options: r } = e,
+ n = (function (o, a) {
+ if (o == null) return {};
+ var i,
+ l,
+ s = {},
+ u = Object.keys(o);
+ for (l = 0; l < u.length; l++)
+ a.indexOf((i = u[l])) >= 0 || (s[i] = o[i]);
+ return s;
+ })(e, H6);
+ return b.cloneElement(GP(t, r), n);
+ },
+ YP = T.label(({ theme: e }) => ({
+ lineHeight: "18px",
+ alignItems: "center",
+ marginBottom: 8,
+ display: "inline-block",
+ position: "relative",
+ whiteSpace: "nowrap",
+ background: e.boolean.background,
+ borderRadius: "3em",
+ padding: 1,
+ '&[aria-disabled="true"]': {
+ opacity: 0.5,
+ input: { cursor: "not-allowed" },
+ },
+ input: {
+ appearance: "none",
+ width: "100%",
+ height: "100%",
+ position: "absolute",
+ left: 0,
+ top: 0,
+ margin: 0,
+ padding: 0,
+ border: "none",
+ background: "transparent",
+ cursor: "pointer",
+ borderRadius: "3em",
+ "&:focus": {
+ outline: "none",
+ boxShadow: `${e.color.secondary} 0 0 0 1px inset !important`,
+ },
+ "@media (forced-colors: active)": {
+ "&:focus": { outline: "1px solid highlight" },
+ },
+ },
+ span: {
+ textAlign: "center",
+ fontSize: e.typography.size.s1,
+ fontWeight: e.typography.weight.bold,
+ lineHeight: "1",
+ cursor: "pointer",
+ display: "inline-block",
+ padding: "7px 15px",
+ transition: "all 100ms ease-out",
+ userSelect: "none",
+ borderRadius: "3em",
+ color: ye(0.5, e.color.defaultText),
+ background: "transparent",
+ "&:hover": { boxShadow: `${Oa(0.3, e.appBorderColor)} 0 0 0 1px inset` },
+ "&:active": {
+ boxShadow: `${Oa(0.05, e.appBorderColor)} 0 0 0 2px inset`,
+ color: Oa(1, e.appBorderColor),
+ },
+ "&:first-of-type": { paddingRight: 8 },
+ "&:last-of-type": { paddingLeft: 8 },
+ },
+ "input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type":
+ {
+ background: e.boolean.selectedBackground,
+ boxShadow:
+ e.base === "light"
+ ? `${Oa(0.1, e.appBorderColor)} 0 0 2px`
+ : `${e.appBorderColor} 0 0 0 1px`,
+ color: e.color.defaultText,
+ padding: "7px 15px",
+ "@media (forced-colors: active)": { textDecoration: "underline" },
+ },
+ })),
+ KP = (e) => e === "true",
+ XP = ({
+ name: e,
+ value: t,
+ onChange: r,
+ onBlur: n,
+ onFocus: o,
+ argType: a,
+ }) => {
+ let i = b.useCallback(() => r(!1), [r]),
+ l = !!a?.table?.readonly;
+ if (t === void 0)
+ return h.createElement(
+ _r,
+ {
+ variant: "outline",
+ size: "medium",
+ id: Vi(e),
+ onClick: i,
+ disabled: l,
+ },
+ "Set boolean",
+ );
+ let s = Ft(e),
+ u = typeof t == "string" ? KP(t) : t;
+ return h.createElement(
+ YP,
+ { "aria-disabled": l, htmlFor: s, "aria-label": e },
+ h.createElement("input", {
+ id: s,
+ type: "checkbox",
+ onChange: (d) => r(d.target.checked),
+ checked: u,
+ role: "switch",
+ disabled: l,
+ name: e,
+ onBlur: n,
+ onFocus: o,
+ }),
+ h.createElement("span", { "aria-hidden": "true" }, "False"),
+ h.createElement("span", { "aria-hidden": "true" }, "True"),
+ );
+ },
+ ZP = (e) => {
+ let [t, r, n] = e.split("-"),
+ o = new Date();
+ return (
+ o.setFullYear(parseInt(t, 10), parseInt(r, 10) - 1, parseInt(n, 10)),
+ o
+ );
+ },
+ JP = (e) => {
+ let [t, r] = e.split(":"),
+ n = new Date();
+ return (n.setHours(parseInt(t, 10)), n.setMinutes(parseInt(r, 10)), n);
+ },
+ QP = (e) => {
+ let t = new Date(e),
+ r = `000${t.getFullYear()}`.slice(-4),
+ n = `0${t.getMonth() + 1}`.slice(-2),
+ o = `0${t.getDate()}`.slice(-2);
+ return `${r}-${n}-${o}`;
+ },
+ e8 = (e) => {
+ let t = new Date(e),
+ r = `0${t.getHours()}`.slice(-2),
+ n = `0${t.getMinutes()}`.slice(-2);
+ return `${r}:${n}`;
+ },
+ zm = T(uo.Input)(({ readOnly: e }) => ({ opacity: e ? 0.5 : 1 })),
+ t8 = T.div(({ theme: e }) => ({
+ flex: 1,
+ display: "flex",
+ input: {
+ marginLeft: 10,
+ flex: 1,
+ height: 32,
+ "&::-webkit-calendar-picker-indicator": {
+ opacity: 0.5,
+ height: 12,
+ filter: e.base === "light" ? void 0 : "invert(1)",
+ },
+ },
+ "input:first-of-type": { marginLeft: 0, flexGrow: 4 },
+ "input:last-of-type": { flexGrow: 3 },
+ })),
+ r8 = ({
+ name: e,
+ value: t,
+ onChange: r,
+ onFocus: n,
+ onBlur: o,
+ argType: a,
+ }) => {
+ let [i, l] = b.useState(!0),
+ s = b.useRef(),
+ u = b.useRef(),
+ d = !!a?.table?.readonly;
+ b.useEffect(() => {
+ i !== !1 &&
+ (s && s.current && (s.current.value = t ? QP(t) : ""),
+ u && u.current && (u.current.value = t ? e8(t) : ""));
+ }, [t]);
+ let p = (g) => {
+ if (!g.target.value) return r();
+ let y = ZP(g.target.value),
+ x = new Date(t ?? "");
+ x.setFullYear(y.getFullYear(), y.getMonth(), y.getDate());
+ let v = x.getTime();
+ (v && r(v), l(!!v));
+ },
+ c = (g) => {
+ if (!g.target.value) return r();
+ let y = JP(g.target.value),
+ x = new Date(t ?? "");
+ (x.setHours(y.getHours()), x.setMinutes(y.getMinutes()));
+ let v = x.getTime();
+ (v && r(v), l(!!v));
+ },
+ f = Ft(e);
+ return h.createElement(
+ t8,
+ null,
+ h.createElement(zm, {
+ type: "date",
+ max: "9999-12-31",
+ ref: s,
+ id: `${f}-date`,
+ name: `${f}-date`,
+ readOnly: d,
+ onChange: p,
+ onFocus: n,
+ onBlur: o,
+ }),
+ h.createElement(zm, {
+ type: "time",
+ id: `${f}-time`,
+ name: `${f}-time`,
+ ref: u,
+ onChange: c,
+ readOnly: d,
+ onFocus: n,
+ onBlur: o,
+ }),
+ i ? null : h.createElement("div", null, "invalid"),
+ );
+ },
+ n8 = T.label({ display: "flex" }),
+ o8 = (e) => {
+ let t = parseFloat(e);
+ return Number.isNaN(t) ? void 0 : t;
+ },
+ a8 = T(uo.Input)(({ readOnly: e }) => ({ opacity: e ? 0.5 : 1 })),
+ i8 = ({
+ name: e,
+ value: t,
+ onChange: r,
+ min: n,
+ max: o,
+ step: a,
+ onBlur: i,
+ onFocus: l,
+ argType: s,
+ }) => {
+ let [u, d] = b.useState(typeof t == "number" ? t : ""),
+ [p, c] = b.useState(!1),
+ [f, g] = b.useState(null),
+ y = !!s?.table?.readonly,
+ x = b.useCallback(
+ (w) => {
+ d(w.target.value);
+ let E = parseFloat(w.target.value);
+ Number.isNaN(E)
+ ? g(new Error(`'${w.target.value}' is not a number`))
+ : (r(E), g(null));
+ },
+ [r, g],
+ ),
+ v = b.useCallback(() => {
+ (d("0"), r(0), c(!0));
+ }, [c]),
+ C = b.useRef(null);
+ return (
+ b.useEffect(() => {
+ p && C.current && C.current.select();
+ }, [p]),
+ b.useEffect(() => {
+ let w = typeof t == "number" ? t : "";
+ u !== w && d(w);
+ }, [t]),
+ t === void 0
+ ? h.createElement(
+ _r,
+ {
+ variant: "outline",
+ size: "medium",
+ id: Vi(e),
+ onClick: v,
+ disabled: y,
+ },
+ "Set number",
+ )
+ : h.createElement(
+ n8,
+ null,
+ h.createElement(a8, {
+ ref: C,
+ id: Ft(e),
+ type: "number",
+ onChange: x,
+ size: "flex",
+ placeholder: "Edit number...",
+ value: u,
+ valid: f ? "error" : void 0,
+ autoFocus: p,
+ readOnly: y,
+ name: e,
+ min: n,
+ max: o,
+ step: a,
+ onFocus: l,
+ onBlur: i,
+ }),
+ )
+ );
+ },
+ VS = (e, t) => {
+ let r = t && Object.entries(t).find(([n, o]) => o === e);
+ return r ? r[0] : void 0;
+ },
+ oc = (e, t) =>
+ e && t
+ ? Object.entries(t)
+ .filter((r) => e.includes(r[1]))
+ .map((r) => r[0])
+ : [],
+ qS = (e, t) => e && t && e.map((r) => t[r]),
+ l8 = T.div(
+ ({ isInline: e }) =>
+ e
+ ? {
+ display: "flex",
+ flexWrap: "wrap",
+ alignItems: "flex-start",
+ label: { display: "inline-flex", marginRight: 15 },
+ }
+ : { label: { display: "flex" } },
+ (e) => {
+ if (e["aria-readonly"] === "true")
+ return { input: { cursor: "not-allowed" } };
+ },
+ ),
+ s8 = T.span({ "[aria-readonly=true] &": { opacity: 0.5 } }),
+ u8 = T.label({
+ lineHeight: "20px",
+ alignItems: "center",
+ marginBottom: 8,
+ "&:last-child": { marginBottom: 0 },
+ input: { margin: 0, marginRight: 6 },
+ }),
+ Hm = ({
+ name: e,
+ options: t,
+ value: r,
+ onChange: n,
+ isInline: o,
+ argType: a,
+ }) => {
+ if (!t)
+ return (
+ cp.warn(`Checkbox with no options: ${e}`),
+ h.createElement(h.Fragment, null, "-")
+ );
+ let i = oc(r || [], t),
+ [l, s] = b.useState(i),
+ u = !!a?.table?.readonly,
+ d = (c) => {
+ let f = c.target.value,
+ g = [...l];
+ (g.includes(f) ? g.splice(g.indexOf(f), 1) : g.push(f),
+ n(qS(g, t)),
+ s(g));
+ };
+ b.useEffect(() => {
+ s(oc(r || [], t));
+ }, [r]);
+ let p = Ft(e);
+ return h.createElement(
+ l8,
+ { "aria-readonly": u, isInline: o },
+ Object.keys(t).map((c, f) => {
+ let g = `${p}-${f}`;
+ return h.createElement(
+ u8,
+ { key: g, htmlFor: g },
+ h.createElement("input", {
+ type: "checkbox",
+ disabled: u,
+ id: g,
+ name: g,
+ value: c,
+ onChange: d,
+ checked: l?.includes(c),
+ }),
+ h.createElement(s8, null, c),
+ );
+ }),
+ );
+ },
+ c8 = T.div(
+ ({ isInline: e }) =>
+ e
+ ? {
+ display: "flex",
+ flexWrap: "wrap",
+ alignItems: "flex-start",
+ label: { display: "inline-flex", marginRight: 15 },
+ }
+ : { label: { display: "flex" } },
+ (e) => {
+ if (e["aria-readonly"] === "true")
+ return { input: { cursor: "not-allowed" } };
+ },
+ ),
+ d8 = T.span({ "[aria-readonly=true] &": { opacity: 0.5 } }),
+ p8 = T.label({
+ lineHeight: "20px",
+ alignItems: "center",
+ marginBottom: 8,
+ "&:last-child": { marginBottom: 0 },
+ input: { margin: 0, marginRight: 6 },
+ }),
+ Um = ({
+ name: e,
+ options: t,
+ value: r,
+ onChange: n,
+ isInline: o,
+ argType: a,
+ }) => {
+ if (!t)
+ return (
+ cp.warn(`Radio with no options: ${e}`),
+ h.createElement(h.Fragment, null, "-")
+ );
+ let i = VS(r, t),
+ l = Ft(e),
+ s = !!a?.table?.readonly;
+ return h.createElement(
+ c8,
+ { "aria-readonly": s, isInline: o },
+ Object.keys(t).map((u, d) => {
+ let p = `${l}-${d}`;
+ return h.createElement(
+ p8,
+ { key: p, htmlFor: p },
+ h.createElement("input", {
+ type: "radio",
+ id: p,
+ name: l,
+ disabled: s,
+ value: u,
+ onChange: (c) => n(t[c.currentTarget.value]),
+ checked: u === i,
+ }),
+ h.createElement(d8, null, u),
+ );
+ }),
+ );
+ },
+ f8 = {
+ appearance: "none",
+ border: "0 none",
+ boxSizing: "inherit",
+ display: " block",
+ margin: " 0",
+ background: "transparent",
+ padding: 0,
+ fontSize: "inherit",
+ position: "relative",
+ },
+ GS = T.select(f8, ({ theme: e }) => ({
+ boxSizing: "border-box",
+ position: "relative",
+ padding: "6px 10px",
+ width: "100%",
+ color: e.input.color || "inherit",
+ background: e.input.background,
+ borderRadius: e.input.borderRadius,
+ boxShadow: `${e.input.border} 0 0 0 1px inset`,
+ fontSize: e.typography.size.s2 - 1,
+ lineHeight: "20px",
+ "&:focus": {
+ boxShadow: `${e.color.secondary} 0 0 0 1px inset`,
+ outline: "none",
+ },
+ "&[disabled]": { cursor: "not-allowed", opacity: 0.5 },
+ "::placeholder": { color: e.textMutedColor },
+ "&[multiple]": {
+ overflow: "auto",
+ padding: 0,
+ option: {
+ display: "block",
+ padding: "6px 10px",
+ marginLeft: 1,
+ marginRight: 1,
+ },
+ },
+ })),
+ YS = T.span(({ theme: e }) => ({
+ display: "inline-block",
+ lineHeight: "normal",
+ overflow: "hidden",
+ position: "relative",
+ verticalAlign: "top",
+ width: "100%",
+ svg: {
+ position: "absolute",
+ zIndex: 1,
+ pointerEvents: "none",
+ height: "12px",
+ marginTop: "-6px",
+ right: "12px",
+ top: "50%",
+ fill: e.textMutedColor,
+ path: { fill: e.textMutedColor },
+ },
+ })),
+ Wm = "Choose option...",
+ g8 = ({ name: e, value: t, options: r, onChange: n, argType: o }) => {
+ let a = (u) => {
+ n(r[u.currentTarget.value]);
+ },
+ i = VS(t, r) || Wm,
+ l = Ft(e),
+ s = !!o?.table?.readonly;
+ return h.createElement(
+ YS,
+ null,
+ h.createElement(fS, null),
+ h.createElement(
+ GS,
+ { disabled: s, id: l, value: i, onChange: a },
+ h.createElement("option", { key: "no-selection", disabled: !0 }, Wm),
+ Object.keys(r).map((u) =>
+ h.createElement("option", { key: u, value: u }, u),
+ ),
+ ),
+ );
+ },
+ m8 = ({ name: e, value: t, options: r, onChange: n, argType: o }) => {
+ let a = (u) => {
+ let d = Array.from(u.currentTarget.options)
+ .filter((p) => p.selected)
+ .map((p) => p.value);
+ n(qS(d, r));
+ },
+ i = oc(t, r),
+ l = Ft(e),
+ s = !!o?.table?.readonly;
+ return h.createElement(
+ YS,
+ null,
+ h.createElement(
+ GS,
+ { disabled: s, id: l, multiple: !0, value: i, onChange: a },
+ Object.keys(r).map((u) =>
+ h.createElement("option", { key: u, value: u }, u),
+ ),
+ ),
+ );
+ },
+ Vm = (e) => {
+ let { name: t, options: r } = e;
+ return r
+ ? e.isMulti
+ ? h.createElement(m8, { ...e })
+ : h.createElement(g8, { ...e })
+ : (cp.warn(`Select with no options: ${t}`),
+ h.createElement(h.Fragment, null, "-"));
+ },
+ h8 = (e, t) =>
+ Array.isArray(e)
+ ? e.reduce((r, n) => ((r[t?.[n] || String(n)] = n), r), {})
+ : e,
+ y8 = {
+ check: Hm,
+ "inline-check": Hm,
+ radio: Um,
+ "inline-radio": Um,
+ select: Vm,
+ "multi-select": Vm,
+ },
+ yn = (e) => {
+ let { type: t = "select", labels: r, argType: n } = e,
+ o = {
+ ...e,
+ argType: n,
+ options: n ? h8(n.options, r) : {},
+ isInline: t.includes("inline"),
+ isMulti: t.includes("multi"),
+ },
+ a = y8[t];
+ if (a) return h.createElement(a, { ...o });
+ throw new Error(`Unknown options type: ${t}`);
+ },
+ b8 = T.div(({ theme: e }) => ({
+ position: "relative",
+ ":hover": {
+ "& > .rejt-accordion-button::after": { background: e.color.secondary },
+ "& > .rejt-accordion-region > :is(.rejt-plus-menu, .rejt-minus-menu)": {
+ opacity: 1,
+ },
+ },
+ })),
+ v8 = T.button(({ theme: e }) => ({
+ padding: 0,
+ background: "transparent",
+ border: "none",
+ marginRight: "3px",
+ lineHeight: "22px",
+ color: e.color.secondary,
+ "::after": {
+ content: '""',
+ position: "absolute",
+ top: 0,
+ display: "block",
+ width: "100%",
+ marginLeft: "-1rem",
+ height: "22px",
+ background: "transparent",
+ borderRadius: 4,
+ transition: "background 0.2s",
+ opacity: 0.1,
+ paddingRight: "20px",
+ },
+ "::before": { content: '""', position: "absolute" },
+ '&[aria-expanded="true"]::before': {
+ left: -10,
+ top: 10,
+ borderTop: "3px solid rgba(153,153,153,0.6)",
+ borderLeft: "3px solid transparent",
+ borderRight: "3px solid transparent",
+ },
+ '&[aria-expanded="false"]::before': {
+ left: -8,
+ top: 8,
+ borderTop: "3px solid transparent",
+ borderBottom: "3px solid transparent",
+ borderLeft: "3px solid rgba(153,153,153,0.6)",
+ },
+ })),
+ x8 = T.div({ display: "inline" });
+function KS({ children: e, name: t, collapsed: r, keyPath: n, deep: o, ...a }) {
+ let i = `${n.at(-1) ?? "root"}-${t}-${o}`,
+ l = { trigger: `${i}-trigger`, region: `${i}-region` },
+ s = n.length > 0 ? "li" : "div";
+ return h.createElement(
+ b8,
+ { as: s },
+ h.createElement(
+ v8,
+ {
+ type: "button",
+ "aria-expanded": !r,
+ id: l.trigger,
+ "aria-controls": l.region,
+ className: "rejt-accordion-button",
+ ...a,
+ },
+ t,
+ " :",
+ ),
+ h.createElement(
+ x8,
+ {
+ role: "region",
+ id: l.region,
+ "aria-labelledby": l.trigger,
+ className: "rejt-accordion-region",
+ },
+ e,
+ ),
+ );
+}
+var E8 = "Error",
+ w8 = "Object",
+ S8 = "Array",
+ C8 = "String",
+ $8 = "Number",
+ A8 = "Boolean",
+ D8 = "Date",
+ k8 = "Null",
+ O8 = "Undefined",
+ F8 = "Function",
+ _8 = "Symbol",
+ XS = "ADD_DELTA_TYPE",
+ ZS = "REMOVE_DELTA_TYPE",
+ JS = "UPDATE_DELTA_TYPE",
+ mp = "value",
+ T8 = "key";
+function Gr(e) {
+ return e !== null &&
+ typeof e == "object" &&
+ !Array.isArray(e) &&
+ typeof e[Symbol.iterator] == "function"
+ ? "Iterable"
+ : Object.prototype.toString.call(e).slice(8, -1);
+}
+function QS(e, t) {
+ let r = Gr(e),
+ n = Gr(t);
+ return (r === "Function" || n === "Function") && n !== r;
+}
+var hp = class extends b.Component {
+ constructor(e) {
+ (super(e),
+ (this.state = { inputRefKey: null, inputRefValue: null }),
+ (this.refInputValue = this.refInputValue.bind(this)),
+ (this.refInputKey = this.refInputKey.bind(this)),
+ (this.onKeydown = this.onKeydown.bind(this)),
+ (this.onSubmit = this.onSubmit.bind(this)));
+ }
+ componentDidMount() {
+ let { inputRefKey: e, inputRefValue: t } = this.state,
+ { onlyValue: r } = this.props;
+ (e && typeof e.focus == "function" && e.focus(),
+ r && t && typeof t.focus == "function" && t.focus());
+ }
+ onKeydown(e) {
+ if (e.altKey || e.ctrlKey || e.metaKey || e.shiftKey || e.repeat) return;
+ let { inputRefKey: t, inputRefValue: r } = this.state,
+ { addButtonElement: n, handleCancel: o } = this.props;
+ [t, r, n].some((a) => a === e.target) &&
+ ((e.code === "Enter" || e.key === "Enter") &&
+ (e.preventDefault(), this.onSubmit()),
+ (e.code === "Escape" || e.key === "Escape") && (e.preventDefault(), o()));
+ }
+ onSubmit() {
+ let {
+ handleAdd: e,
+ onlyValue: t,
+ onSubmitValueParser: r,
+ keyPath: n,
+ deep: o,
+ } = this.props,
+ { inputRefKey: a, inputRefValue: i } = this.state,
+ l = {};
+ if (!t) {
+ if (!a.value) return;
+ l.key = a.value;
+ }
+ ((l.newValue = r(!1, n, o, l.key, i.value)), e(l));
+ }
+ refInputKey(e) {
+ this.state.inputRefKey = e;
+ }
+ refInputValue(e) {
+ this.state.inputRefValue = e;
+ }
+ render() {
+ let {
+ handleCancel: e,
+ onlyValue: t,
+ addButtonElement: r,
+ cancelButtonElement: n,
+ inputElementGenerator: o,
+ keyPath: a,
+ deep: i,
+ } = this.props,
+ l = r && b.cloneElement(r, { onClick: this.onSubmit }),
+ s = n && b.cloneElement(n, { onClick: e }),
+ u = o(mp, a, i),
+ d = b.cloneElement(u, {
+ placeholder: "Value",
+ ref: this.refInputValue,
+ onKeyDown: this.onKeydown,
+ }),
+ p = null;
+ if (!t) {
+ let c = o(T8, a, i);
+ p = b.cloneElement(c, {
+ placeholder: "Key",
+ ref: this.refInputKey,
+ onKeyDown: this.onKeydown,
+ });
+ }
+ return h.createElement(
+ "span",
+ { className: "rejt-add-value-node" },
+ p,
+ d,
+ l,
+ s,
+ );
+ }
+};
+hp.defaultProps = {
+ onlyValue: !1,
+ addButtonElement: h.createElement("button", null, "+"),
+ cancelButtonElement: h.createElement("button", null, "c"),
+};
+var e2 = class extends b.Component {
+ constructor(e) {
+ super(e);
+ let t = [...(e.keyPath || []), e.name];
+ ((this.state = {
+ data: e.data,
+ name: e.name,
+ keyPath: t ?? [],
+ deep: e.deep ?? 0,
+ nextDeep: (e.deep ?? 0) + 1,
+ collapsed: e.isCollapsed(t, e.deep ?? 0, e.data),
+ addFormVisible: !1,
+ }),
+ (this.handleCollapseMode = this.handleCollapseMode.bind(this)),
+ (this.handleRemoveItem = this.handleRemoveItem.bind(this)),
+ (this.handleAddMode = this.handleAddMode.bind(this)),
+ (this.handleAddValueAdd = this.handleAddValueAdd.bind(this)),
+ (this.handleAddValueCancel = this.handleAddValueCancel.bind(this)),
+ (this.handleEditValue = this.handleEditValue.bind(this)),
+ (this.onChildUpdate = this.onChildUpdate.bind(this)),
+ (this.renderCollapsed = this.renderCollapsed.bind(this)),
+ (this.renderNotCollapsed = this.renderNotCollapsed.bind(this)));
+ }
+ static getDerivedStateFromProps(e, t) {
+ return e.data !== t.data ? { data: e.data } : null;
+ }
+ onChildUpdate(e, t) {
+ let { data: r, keyPath: n = [] } = this.state;
+ ((r[e] = t), this.setState({ data: r }));
+ let { onUpdate: o } = this.props,
+ a = n.length;
+ o(n[a - 1], r);
+ }
+ handleAddMode() {
+ this.setState({ addFormVisible: !0 });
+ }
+ handleCollapseMode() {
+ this.setState((e) => ({ collapsed: !e.collapsed }));
+ }
+ handleRemoveItem(e) {
+ return () => {
+ let { beforeRemoveAction: t, logger: r } = this.props,
+ { data: n, keyPath: o, nextDeep: a } = this.state,
+ i = n[e];
+ (t || Promise.resolve.bind(Promise))(e, o, a, i)
+ .then(() => {
+ let l = { keyPath: o, deep: a, key: e, oldValue: i, type: ZS };
+ (n.splice(e, 1), this.setState({ data: n }));
+ let { onUpdate: s, onDeltaUpdate: u } = this.props;
+ (s(o[o.length - 1], n), u(l));
+ })
+ .catch(r.error);
+ };
+ }
+ handleAddValueAdd({ key: e, newValue: t }) {
+ let { data: r, keyPath: n = [], nextDeep: o } = this.state,
+ { beforeAddAction: a, logger: i } = this.props;
+ (a || Promise.resolve.bind(Promise))(e, n, o, t)
+ .then(() => {
+ ((r[e] = t), this.setState({ data: r }), this.handleAddValueCancel());
+ let { onUpdate: l, onDeltaUpdate: s } = this.props;
+ (l(n[n.length - 1], r),
+ s({ type: XS, keyPath: n, deep: o, key: e, newValue: t }));
+ })
+ .catch(i.error);
+ }
+ handleAddValueCancel() {
+ this.setState({ addFormVisible: !1 });
+ }
+ handleEditValue({ key: e, value: t }) {
+ return new Promise((r, n) => {
+ let { beforeUpdateAction: o } = this.props,
+ { data: a, keyPath: i, nextDeep: l } = this.state,
+ s = a[e];
+ (o || Promise.resolve.bind(Promise))(e, i, l, s, t)
+ .then(() => {
+ ((a[e] = t), this.setState({ data: a }));
+ let { onUpdate: u, onDeltaUpdate: d } = this.props;
+ (u(i[i.length - 1], a),
+ d({
+ type: JS,
+ keyPath: i,
+ deep: l,
+ key: e,
+ newValue: t,
+ oldValue: s,
+ }),
+ r(void 0));
+ })
+ .catch(n);
+ });
+ }
+ renderCollapsed() {
+ let { name: e, data: t, keyPath: r, deep: n } = this.state,
+ {
+ handleRemove: o,
+ readOnly: a,
+ getStyle: i,
+ dataType: l,
+ minusMenuElement: s,
+ } = this.props,
+ { minus: u, collapsed: d } = i(e, t, r, n, l),
+ p = a(e, t, r, n, l),
+ c =
+ s &&
+ b.cloneElement(s, {
+ onClick: o,
+ className: "rejt-minus-menu",
+ style: u,
+ "aria-label": `remove the array '${String(e)}'`,
+ });
+ return h.createElement(
+ h.Fragment,
+ null,
+ h.createElement(
+ "span",
+ { style: d },
+ "[...] ",
+ t.length,
+ " ",
+ t.length === 1 ? "item" : "items",
+ ),
+ !p && c,
+ );
+ }
+ renderNotCollapsed() {
+ let {
+ name: e,
+ data: t,
+ keyPath: r,
+ deep: n,
+ addFormVisible: o,
+ nextDeep: a,
+ } = this.state,
+ {
+ isCollapsed: i,
+ handleRemove: l,
+ onDeltaUpdate: s,
+ readOnly: u,
+ getStyle: d,
+ dataType: p,
+ addButtonElement: c,
+ cancelButtonElement: f,
+ inputElementGenerator: g,
+ textareaElementGenerator: y,
+ minusMenuElement: x,
+ plusMenuElement: v,
+ beforeRemoveAction: C,
+ beforeAddAction: w,
+ beforeUpdateAction: E,
+ logger: $,
+ onSubmitValueParser: A,
+ } = this.props,
+ { minus: S, plus: D, delimiter: F, ul: k, addForm: _ } = d(e, t, r, n, p),
+ I = u(e, t, r, n, p),
+ L =
+ v &&
+ b.cloneElement(v, {
+ onClick: this.handleAddMode,
+ className: "rejt-plus-menu",
+ style: D,
+ "aria-label": `add a new item to the '${String(e)}' array`,
+ }),
+ j =
+ x &&
+ b.cloneElement(x, {
+ onClick: l,
+ className: "rejt-minus-menu",
+ style: S,
+ "aria-label": `remove the array '${String(e)}'`,
+ });
+ return h.createElement(
+ h.Fragment,
+ null,
+ h.createElement(
+ "span",
+ { className: "rejt-not-collapsed-delimiter", style: F },
+ "[",
+ ),
+ !o && L,
+ h.createElement(
+ "ul",
+ { className: "rejt-not-collapsed-list", style: k },
+ t.map((B, z) =>
+ h.createElement(Al, {
+ key: z,
+ name: z.toString(),
+ data: B,
+ keyPath: r,
+ deep: a,
+ isCollapsed: i,
+ handleRemove: this.handleRemoveItem(z),
+ handleUpdateValue: this.handleEditValue,
+ onUpdate: this.onChildUpdate,
+ onDeltaUpdate: s,
+ readOnly: u,
+ getStyle: d,
+ addButtonElement: c,
+ cancelButtonElement: f,
+ inputElementGenerator: g,
+ textareaElementGenerator: y,
+ minusMenuElement: x,
+ plusMenuElement: v,
+ beforeRemoveAction: C,
+ beforeAddAction: w,
+ beforeUpdateAction: E,
+ logger: $,
+ onSubmitValueParser: A,
+ }),
+ ),
+ ),
+ !I &&
+ o &&
+ h.createElement(
+ "div",
+ { className: "rejt-add-form", style: _ },
+ h.createElement(hp, {
+ handleAdd: this.handleAddValueAdd,
+ handleCancel: this.handleAddValueCancel,
+ onlyValue: !0,
+ addButtonElement: c,
+ cancelButtonElement: f,
+ inputElementGenerator: g,
+ keyPath: r,
+ deep: n,
+ onSubmitValueParser: A,
+ }),
+ ),
+ h.createElement(
+ "span",
+ { className: "rejt-not-collapsed-delimiter", style: F },
+ "]",
+ ),
+ !I && j,
+ );
+ }
+ render() {
+ let { name: e, collapsed: t, keyPath: r, deep: n } = this.state,
+ o = t ? this.renderCollapsed() : this.renderNotCollapsed();
+ return h.createElement(
+ KS,
+ {
+ name: e,
+ collapsed: t,
+ deep: n,
+ keyPath: r,
+ onClick: this.handleCollapseMode,
+ },
+ o,
+ );
+ }
+};
+e2.defaultProps = {
+ keyPath: [],
+ deep: 0,
+ minusMenuElement: h.createElement("span", null, " - "),
+ plusMenuElement: h.createElement("span", null, " + "),
+};
+var t2 = class extends b.Component {
+ constructor(e) {
+ super(e);
+ let t = [...(e.keyPath || []), e.name];
+ ((this.state = {
+ value: e.value,
+ name: e.name,
+ keyPath: t ?? [],
+ deep: e.deep ?? 0,
+ editEnabled: !1,
+ inputRef: null,
+ }),
+ (this.handleEditMode = this.handleEditMode.bind(this)),
+ (this.refInput = this.refInput.bind(this)),
+ (this.handleCancelEdit = this.handleCancelEdit.bind(this)),
+ (this.handleEdit = this.handleEdit.bind(this)),
+ (this.onKeydown = this.onKeydown.bind(this)));
+ }
+ static getDerivedStateFromProps(e, t) {
+ return e.value !== t.value ? { value: e.value } : null;
+ }
+ componentDidUpdate() {
+ let {
+ editEnabled: e,
+ inputRef: t,
+ name: r,
+ value: n,
+ keyPath: o,
+ deep: a,
+ } = this.state,
+ { readOnly: i, dataType: l } = this.props,
+ s = i(r, n, o, a, l);
+ e && !s && typeof t.focus == "function" && t.focus();
+ }
+ onKeydown(e) {
+ let { inputRef: t } = this.state;
+ e.altKey ||
+ e.ctrlKey ||
+ e.metaKey ||
+ e.shiftKey ||
+ e.repeat ||
+ t !== e.target ||
+ ((e.code === "Enter" || e.key === "Enter") &&
+ (e.preventDefault(), this.handleEdit()),
+ (e.code === "Escape" || e.key === "Escape") &&
+ (e.preventDefault(), this.handleCancelEdit()));
+ }
+ handleEdit() {
+ let {
+ handleUpdateValue: e,
+ originalValue: t,
+ logger: r,
+ onSubmitValueParser: n,
+ keyPath: o,
+ } = this.props,
+ { inputRef: a, name: i, deep: l } = this.state;
+ if (!a) return;
+ let s = n(!0, o, l, i, a.value),
+ u = { value: s, key: i };
+ (e || Promise.resolve.bind(Promise))(u)
+ .then(() => {
+ QS(t, s) || this.handleCancelEdit();
+ })
+ .catch(r.error);
+ }
+ handleEditMode() {
+ this.setState({ editEnabled: !0 });
+ }
+ refInput(e) {
+ this.state.inputRef = e;
+ }
+ handleCancelEdit() {
+ this.setState({ editEnabled: !1 });
+ }
+ render() {
+ let { name: e, value: t, editEnabled: r, keyPath: n, deep: o } = this.state,
+ {
+ handleRemove: a,
+ originalValue: i,
+ readOnly: l,
+ dataType: s,
+ getStyle: u,
+ textareaElementGenerator: d,
+ minusMenuElement: p,
+ keyPath: c = [],
+ } = this.props,
+ f = u(e, i, n, o, s),
+ g = null,
+ y = null,
+ x = l(e, i, n, o, s);
+ if (r && !x) {
+ let v = d(mp, c, o, e, i, s),
+ C = b.cloneElement(v, {
+ ref: this.refInput,
+ defaultValue: t,
+ onKeyDown: this.onKeydown,
+ });
+ ((g = h.createElement(
+ "span",
+ { className: "rejt-edit-form", style: f.editForm },
+ C,
+ )),
+ (y = null));
+ } else {
+ g = h.createElement(
+ "span",
+ {
+ className: "rejt-value",
+ style: f.value,
+ onClick: x ? void 0 : this.handleEditMode,
+ },
+ t,
+ );
+ let v = c.at(-1),
+ C =
+ p &&
+ b.cloneElement(p, {
+ onClick: a,
+ className: "rejt-minus-menu",
+ style: f.minus,
+ "aria-label": `remove the function '${String(e)}'${String(v) ? ` from '${String(v)}'` : ""}`,
+ });
+ y = x ? null : C;
+ }
+ return h.createElement(
+ "li",
+ { className: "rejt-value-node", style: f.li },
+ h.createElement(
+ "span",
+ { className: "rejt-name", style: f.name },
+ e,
+ " :",
+ " ",
+ ),
+ g,
+ y,
+ );
+ }
+};
+t2.defaultProps = {
+ keyPath: [],
+ deep: 0,
+ handleUpdateValue: () => {},
+ cancelButtonElement: h.createElement("button", null, "c"),
+ minusMenuElement: h.createElement("span", null, " - "),
+};
+var Al = class extends b.Component {
+ constructor(e) {
+ (super(e),
+ (this.state = {
+ data: e.data,
+ name: e.name,
+ keyPath: e.keyPath ?? [],
+ deep: e.deep ?? 0,
+ }));
+ }
+ static getDerivedStateFromProps(e, t) {
+ return e.data !== t.data ? { data: e.data } : null;
+ }
+ render() {
+ let { data: e, name: t, keyPath: r, deep: n } = this.state,
+ {
+ isCollapsed: o,
+ handleRemove: a,
+ handleUpdateValue: i,
+ onUpdate: l,
+ onDeltaUpdate: s,
+ readOnly: u,
+ getStyle: d,
+ addButtonElement: p,
+ cancelButtonElement: c,
+ inputElementGenerator: f,
+ textareaElementGenerator: g,
+ minusMenuElement: y,
+ plusMenuElement: x,
+ beforeRemoveAction: v,
+ beforeAddAction: C,
+ beforeUpdateAction: w,
+ logger: E,
+ onSubmitValueParser: $,
+ } = this.props,
+ A = () => !0,
+ S = Gr(e);
+ switch (S) {
+ case E8:
+ return h.createElement(ac, {
+ data: e,
+ name: t,
+ isCollapsed: o,
+ keyPath: r,
+ deep: n,
+ handleRemove: a,
+ onUpdate: l,
+ onDeltaUpdate: s,
+ readOnly: A,
+ dataType: S,
+ getStyle: d,
+ addButtonElement: p,
+ cancelButtonElement: c,
+ inputElementGenerator: f,
+ textareaElementGenerator: g,
+ minusMenuElement: y,
+ plusMenuElement: x,
+ beforeRemoveAction: v,
+ beforeAddAction: C,
+ beforeUpdateAction: w,
+ logger: E,
+ onSubmitValueParser: $,
+ });
+ case w8:
+ return h.createElement(ac, {
+ data: e,
+ name: t,
+ isCollapsed: o,
+ keyPath: r,
+ deep: n,
+ handleRemove: a,
+ onUpdate: l,
+ onDeltaUpdate: s,
+ readOnly: u,
+ dataType: S,
+ getStyle: d,
+ addButtonElement: p,
+ cancelButtonElement: c,
+ inputElementGenerator: f,
+ textareaElementGenerator: g,
+ minusMenuElement: y,
+ plusMenuElement: x,
+ beforeRemoveAction: v,
+ beforeAddAction: C,
+ beforeUpdateAction: w,
+ logger: E,
+ onSubmitValueParser: $,
+ });
+ case S8:
+ return h.createElement(e2, {
+ data: e,
+ name: t,
+ isCollapsed: o,
+ keyPath: r,
+ deep: n,
+ handleRemove: a,
+ onUpdate: l,
+ onDeltaUpdate: s,
+ readOnly: u,
+ dataType: S,
+ getStyle: d,
+ addButtonElement: p,
+ cancelButtonElement: c,
+ inputElementGenerator: f,
+ textareaElementGenerator: g,
+ minusMenuElement: y,
+ plusMenuElement: x,
+ beforeRemoveAction: v,
+ beforeAddAction: C,
+ beforeUpdateAction: w,
+ logger: E,
+ onSubmitValueParser: $,
+ });
+ case C8:
+ return h.createElement(hr, {
+ name: t,
+ value: `"${e}"`,
+ originalValue: e,
+ keyPath: r,
+ deep: n,
+ handleRemove: a,
+ handleUpdateValue: i,
+ readOnly: u,
+ dataType: S,
+ getStyle: d,
+ cancelButtonElement: c,
+ inputElementGenerator: f,
+ minusMenuElement: y,
+ logger: E,
+ onSubmitValueParser: $,
+ });
+ case $8:
+ return h.createElement(hr, {
+ name: t,
+ value: e,
+ originalValue: e,
+ keyPath: r,
+ deep: n,
+ handleRemove: a,
+ handleUpdateValue: i,
+ readOnly: u,
+ dataType: S,
+ getStyle: d,
+ cancelButtonElement: c,
+ inputElementGenerator: f,
+ minusMenuElement: y,
+ logger: E,
+ onSubmitValueParser: $,
+ });
+ case A8:
+ return h.createElement(hr, {
+ name: t,
+ value: e ? "true" : "false",
+ originalValue: e,
+ keyPath: r,
+ deep: n,
+ handleRemove: a,
+ handleUpdateValue: i,
+ readOnly: u,
+ dataType: S,
+ getStyle: d,
+ cancelButtonElement: c,
+ inputElementGenerator: f,
+ minusMenuElement: y,
+ logger: E,
+ onSubmitValueParser: $,
+ });
+ case D8:
+ return h.createElement(hr, {
+ name: t,
+ value: e.toISOString(),
+ originalValue: e,
+ keyPath: r,
+ deep: n,
+ handleRemove: a,
+ handleUpdateValue: i,
+ readOnly: A,
+ dataType: S,
+ getStyle: d,
+ cancelButtonElement: c,
+ inputElementGenerator: f,
+ minusMenuElement: y,
+ logger: E,
+ onSubmitValueParser: $,
+ });
+ case k8:
+ return h.createElement(hr, {
+ name: t,
+ value: "null",
+ originalValue: "null",
+ keyPath: r,
+ deep: n,
+ handleRemove: a,
+ handleUpdateValue: i,
+ readOnly: u,
+ dataType: S,
+ getStyle: d,
+ cancelButtonElement: c,
+ inputElementGenerator: f,
+ minusMenuElement: y,
+ logger: E,
+ onSubmitValueParser: $,
+ });
+ case O8:
+ return h.createElement(hr, {
+ name: t,
+ value: "undefined",
+ originalValue: "undefined",
+ keyPath: r,
+ deep: n,
+ handleRemove: a,
+ handleUpdateValue: i,
+ readOnly: u,
+ dataType: S,
+ getStyle: d,
+ cancelButtonElement: c,
+ inputElementGenerator: f,
+ minusMenuElement: y,
+ logger: E,
+ onSubmitValueParser: $,
+ });
+ case F8:
+ return h.createElement(t2, {
+ name: t,
+ value: e.toString(),
+ originalValue: e,
+ keyPath: r,
+ deep: n,
+ handleRemove: a,
+ handleUpdateValue: i,
+ readOnly: u,
+ dataType: S,
+ getStyle: d,
+ cancelButtonElement: c,
+ textareaElementGenerator: g,
+ minusMenuElement: y,
+ logger: E,
+ onSubmitValueParser: $,
+ });
+ case _8:
+ return h.createElement(hr, {
+ name: t,
+ value: e.toString(),
+ originalValue: e,
+ keyPath: r,
+ deep: n,
+ handleRemove: a,
+ handleUpdateValue: i,
+ readOnly: A,
+ dataType: S,
+ getStyle: d,
+ cancelButtonElement: c,
+ inputElementGenerator: f,
+ minusMenuElement: y,
+ logger: E,
+ onSubmitValueParser: $,
+ });
+ default:
+ return null;
+ }
+ }
+};
+Al.defaultProps = { keyPath: [], deep: 0 };
+var ac = class extends b.Component {
+ constructor(e) {
+ super(e);
+ let t = e.deep === -1 ? [] : [...(e.keyPath || []), e.name];
+ ((this.state = {
+ name: e.name,
+ data: e.data,
+ keyPath: t ?? [],
+ deep: e.deep ?? 0,
+ nextDeep: (e.deep ?? 0) + 1,
+ collapsed: e.isCollapsed(t, e.deep ?? 0, e.data),
+ addFormVisible: !1,
+ }),
+ (this.handleCollapseMode = this.handleCollapseMode.bind(this)),
+ (this.handleRemoveValue = this.handleRemoveValue.bind(this)),
+ (this.handleAddMode = this.handleAddMode.bind(this)),
+ (this.handleAddValueAdd = this.handleAddValueAdd.bind(this)),
+ (this.handleAddValueCancel = this.handleAddValueCancel.bind(this)),
+ (this.handleEditValue = this.handleEditValue.bind(this)),
+ (this.onChildUpdate = this.onChildUpdate.bind(this)),
+ (this.renderCollapsed = this.renderCollapsed.bind(this)),
+ (this.renderNotCollapsed = this.renderNotCollapsed.bind(this)));
+ }
+ static getDerivedStateFromProps(e, t) {
+ return e.data !== t.data ? { data: e.data } : null;
+ }
+ onChildUpdate(e, t) {
+ let { data: r, keyPath: n = [] } = this.state;
+ ((r[e] = t), this.setState({ data: r }));
+ let { onUpdate: o } = this.props,
+ a = n.length;
+ o(n[a - 1], r);
+ }
+ handleAddMode() {
+ this.setState({ addFormVisible: !0 });
+ }
+ handleAddValueCancel() {
+ this.setState({ addFormVisible: !1 });
+ }
+ handleAddValueAdd({ key: e, newValue: t }) {
+ let { data: r, keyPath: n = [], nextDeep: o } = this.state,
+ { beforeAddAction: a, logger: i } = this.props;
+ (a || Promise.resolve.bind(Promise))(e, n, o, t)
+ .then(() => {
+ ((r[e] = t), this.setState({ data: r }), this.handleAddValueCancel());
+ let { onUpdate: l, onDeltaUpdate: s } = this.props;
+ (l(n[n.length - 1], r),
+ s({ type: XS, keyPath: n, deep: o, key: e, newValue: t }));
+ })
+ .catch(i.error);
+ }
+ handleRemoveValue(e) {
+ return () => {
+ let { beforeRemoveAction: t, logger: r } = this.props,
+ { data: n, keyPath: o = [], nextDeep: a } = this.state,
+ i = n[e];
+ (t || Promise.resolve.bind(Promise))(e, o, a, i)
+ .then(() => {
+ let l = { keyPath: o, deep: a, key: e, oldValue: i, type: ZS };
+ (delete n[e], this.setState({ data: n }));
+ let { onUpdate: s, onDeltaUpdate: u } = this.props;
+ (s(o[o.length - 1], n), u(l));
+ })
+ .catch(r.error);
+ };
+ }
+ handleCollapseMode() {
+ this.setState((e) => ({ collapsed: !e.collapsed }));
+ }
+ handleEditValue({ key: e, value: t }) {
+ return new Promise((r, n) => {
+ let { beforeUpdateAction: o } = this.props,
+ { data: a, keyPath: i = [], nextDeep: l } = this.state,
+ s = a[e];
+ (o || Promise.resolve.bind(Promise))(e, i, l, s, t)
+ .then(() => {
+ ((a[e] = t), this.setState({ data: a }));
+ let { onUpdate: u, onDeltaUpdate: d } = this.props;
+ (u(i[i.length - 1], a),
+ d({
+ type: JS,
+ keyPath: i,
+ deep: l,
+ key: e,
+ newValue: t,
+ oldValue: s,
+ }),
+ r());
+ })
+ .catch(n);
+ });
+ }
+ renderCollapsed() {
+ let { name: e, keyPath: t, deep: r, data: n } = this.state,
+ {
+ handleRemove: o,
+ readOnly: a,
+ dataType: i,
+ getStyle: l,
+ minusMenuElement: s,
+ } = this.props,
+ { minus: u, collapsed: d } = l(e, n, t, r, i),
+ p = Object.getOwnPropertyNames(n),
+ c = a(e, n, t, r, i),
+ f =
+ s &&
+ b.cloneElement(s, {
+ onClick: o,
+ className: "rejt-minus-menu",
+ style: u,
+ "aria-label": `remove the object '${String(e)}'`,
+ });
+ return h.createElement(
+ h.Fragment,
+ null,
+ h.createElement(
+ "span",
+ { style: d },
+ "{...}",
+ " ",
+ p.length,
+ " ",
+ p.length === 1 ? "key" : "keys",
+ ),
+ !c && f,
+ );
+ }
+ renderNotCollapsed() {
+ let {
+ name: e,
+ data: t,
+ keyPath: r,
+ deep: n,
+ nextDeep: o,
+ addFormVisible: a,
+ } = this.state,
+ {
+ isCollapsed: i,
+ handleRemove: l,
+ onDeltaUpdate: s,
+ readOnly: u,
+ getStyle: d,
+ dataType: p,
+ addButtonElement: c,
+ cancelButtonElement: f,
+ inputElementGenerator: g,
+ textareaElementGenerator: y,
+ minusMenuElement: x,
+ plusMenuElement: v,
+ beforeRemoveAction: C,
+ beforeAddAction: w,
+ beforeUpdateAction: E,
+ logger: $,
+ onSubmitValueParser: A,
+ } = this.props,
+ { minus: S, plus: D, addForm: F, ul: k, delimiter: _ } = d(e, t, r, n, p),
+ I = Object.getOwnPropertyNames(t),
+ L = u(e, t, r, n, p),
+ j =
+ v &&
+ b.cloneElement(v, {
+ onClick: this.handleAddMode,
+ className: "rejt-plus-menu",
+ style: D,
+ "aria-label": `add a new property to the object '${String(e)}'`,
+ }),
+ B =
+ x &&
+ b.cloneElement(x, {
+ onClick: l,
+ className: "rejt-minus-menu",
+ style: S,
+ "aria-label": `remove the object '${String(e)}'`,
+ }),
+ z = I.map((V) =>
+ h.createElement(Al, {
+ key: V,
+ name: V,
+ data: t[V],
+ keyPath: r,
+ deep: o,
+ isCollapsed: i,
+ handleRemove: this.handleRemoveValue(V),
+ handleUpdateValue: this.handleEditValue,
+ onUpdate: this.onChildUpdate,
+ onDeltaUpdate: s,
+ readOnly: u,
+ getStyle: d,
+ addButtonElement: c,
+ cancelButtonElement: f,
+ inputElementGenerator: g,
+ textareaElementGenerator: y,
+ minusMenuElement: x,
+ plusMenuElement: v,
+ beforeRemoveAction: C,
+ beforeAddAction: w,
+ beforeUpdateAction: E,
+ logger: $,
+ onSubmitValueParser: A,
+ }),
+ );
+ return h.createElement(
+ h.Fragment,
+ null,
+ h.createElement(
+ "span",
+ { className: "rejt-not-collapsed-delimiter", style: _ },
+ "{",
+ ),
+ !L && j,
+ h.createElement(
+ "ul",
+ { className: "rejt-not-collapsed-list", style: k },
+ z,
+ ),
+ !L &&
+ a &&
+ h.createElement(
+ "div",
+ { className: "rejt-add-form", style: F },
+ h.createElement(hp, {
+ handleAdd: this.handleAddValueAdd,
+ handleCancel: this.handleAddValueCancel,
+ addButtonElement: c,
+ cancelButtonElement: f,
+ inputElementGenerator: g,
+ keyPath: r,
+ deep: n,
+ onSubmitValueParser: A,
+ }),
+ ),
+ h.createElement(
+ "span",
+ { className: "rejt-not-collapsed-delimiter", style: _ },
+ "}",
+ ),
+ !L && B,
+ );
+ }
+ render() {
+ let { name: e, collapsed: t, keyPath: r, deep: n = 0 } = this.state,
+ o = t ? this.renderCollapsed() : this.renderNotCollapsed();
+ return h.createElement(
+ KS,
+ {
+ name: e,
+ collapsed: t,
+ deep: n,
+ keyPath: r,
+ onClick: this.handleCollapseMode,
+ },
+ o,
+ );
+ }
+};
+ac.defaultProps = {
+ keyPath: [],
+ deep: 0,
+ minusMenuElement: h.createElement("span", null, " - "),
+ plusMenuElement: h.createElement("span", null, " + "),
+};
+var hr = class extends b.Component {
+ constructor(e) {
+ super(e);
+ let t = [...(e.keyPath || []), e.name];
+ ((this.state = {
+ value: e.value,
+ name: e.name,
+ keyPath: t ?? [],
+ deep: e.deep ?? 0,
+ editEnabled: !1,
+ inputRef: null,
+ }),
+ (this.handleEditMode = this.handleEditMode.bind(this)),
+ (this.refInput = this.refInput.bind(this)),
+ (this.handleCancelEdit = this.handleCancelEdit.bind(this)),
+ (this.handleEdit = this.handleEdit.bind(this)),
+ (this.onKeydown = this.onKeydown.bind(this)));
+ }
+ static getDerivedStateFromProps(e, t) {
+ return e.value !== t.value ? { value: e.value } : null;
+ }
+ componentDidUpdate() {
+ let {
+ editEnabled: e,
+ inputRef: t,
+ name: r,
+ value: n,
+ keyPath: o,
+ deep: a,
+ } = this.state,
+ { readOnly: i, dataType: l } = this.props,
+ s = i(r, n, o, a, l);
+ e && !s && typeof t.focus == "function" && t.focus();
+ }
+ onKeydown(e) {
+ let { inputRef: t } = this.state;
+ e.altKey ||
+ e.ctrlKey ||
+ e.metaKey ||
+ e.shiftKey ||
+ e.repeat ||
+ t !== e.target ||
+ ((e.code === "Enter" || e.key === "Enter") &&
+ (e.preventDefault(), this.handleEdit()),
+ (e.code === "Escape" || e.key === "Escape") &&
+ (e.preventDefault(), this.handleCancelEdit()));
+ }
+ handleEdit() {
+ let {
+ handleUpdateValue: e,
+ originalValue: t,
+ logger: r,
+ onSubmitValueParser: n,
+ keyPath: o,
+ } = this.props,
+ { inputRef: a, name: i, deep: l } = this.state;
+ if (!a) return;
+ let s = n(!0, o, l, i, a.value),
+ u = { value: s, key: i };
+ (e || Promise.resolve.bind(Promise))(u)
+ .then(() => {
+ QS(t, s) || this.handleCancelEdit();
+ })
+ .catch(r.error);
+ }
+ handleEditMode() {
+ this.setState({ editEnabled: !0 });
+ }
+ refInput(e) {
+ this.state.inputRef = e;
+ }
+ handleCancelEdit() {
+ this.setState({ editEnabled: !1 });
+ }
+ render() {
+ let { name: e, value: t, editEnabled: r, keyPath: n, deep: o } = this.state,
+ {
+ handleRemove: a,
+ originalValue: i,
+ readOnly: l,
+ dataType: s,
+ getStyle: u,
+ inputElementGenerator: d,
+ minusMenuElement: p,
+ keyPath: c,
+ } = this.props,
+ f = u(e, i, n, o, s),
+ g = l(e, i, n, o, s),
+ y = r && !g,
+ x = d(mp, c, o, e, i, s),
+ v = b.cloneElement(x, {
+ ref: this.refInput,
+ defaultValue: JSON.stringify(i),
+ onKeyDown: this.onKeydown,
+ }),
+ C = n.at(-2),
+ w =
+ p &&
+ b.cloneElement(p, {
+ onClick: a,
+ className: "rejt-minus-menu",
+ style: f.minus,
+ "aria-label": `remove the property '${String(e)}' with value '${String(i)}'${String(C) ? ` from '${String(C)}'` : ""}`,
+ });
+ return h.createElement(
+ "li",
+ { className: "rejt-value-node", style: f.li },
+ h.createElement(
+ "span",
+ { className: "rejt-name", style: f.name },
+ e,
+ " : ",
+ ),
+ y
+ ? h.createElement(
+ "span",
+ { className: "rejt-edit-form", style: f.editForm },
+ v,
+ )
+ : h.createElement(
+ "span",
+ {
+ className: "rejt-value",
+ style: f.value,
+ onClick: g ? void 0 : this.handleEditMode,
+ },
+ String(t),
+ ),
+ !g && !y && w,
+ );
+ }
+};
+hr.defaultProps = {
+ keyPath: [],
+ deep: 0,
+ handleUpdateValue: () => Promise.resolve(),
+ cancelButtonElement: h.createElement("button", null, "c"),
+ minusMenuElement: h.createElement("span", null, " - "),
+};
+function R8(e) {
+ let t = e;
+ if (t.indexOf("function") === 0) return (0, eval)(`(${t})`);
+ try {
+ t = JSON.parse(e);
+ } catch {}
+ return t;
+}
+var P8 = {
+ minus: { color: "red" },
+ plus: { color: "green" },
+ collapsed: { color: "grey" },
+ delimiter: {},
+ ul: { padding: "0px", margin: "0 0 0 25px", listStyle: "none" },
+ name: { color: "#2287CD" },
+ addForm: {},
+ },
+ I8 = {
+ minus: { color: "red" },
+ plus: { color: "green" },
+ collapsed: { color: "grey" },
+ delimiter: {},
+ ul: { padding: "0px", margin: "0 0 0 25px", listStyle: "none" },
+ name: { color: "#2287CD" },
+ addForm: {},
+ },
+ L8 = {
+ minus: { color: "red" },
+ editForm: {},
+ value: { color: "#7bba3d" },
+ li: { minHeight: "22px", lineHeight: "22px", outline: "0px" },
+ name: { color: "#2287CD" },
+ },
+ r2 = class extends b.Component {
+ constructor(e) {
+ (super(e),
+ (this.state = { data: e.data, rootName: e.rootName }),
+ (this.onUpdate = this.onUpdate.bind(this)),
+ (this.removeRoot = this.removeRoot.bind(this)));
+ }
+ static getDerivedStateFromProps(e, t) {
+ return e.data !== t.data || e.rootName !== t.rootName
+ ? { data: e.data, rootName: e.rootName }
+ : null;
+ }
+ onUpdate(e, t) {
+ (this.setState({ data: t }), this.props.onFullyUpdate?.(t));
+ }
+ removeRoot() {
+ this.onUpdate(null, null);
+ }
+ render() {
+ let { data: e, rootName: t } = this.state,
+ {
+ isCollapsed: r,
+ onDeltaUpdate: n,
+ readOnly: o,
+ getStyle: a,
+ addButtonElement: i,
+ cancelButtonElement: l,
+ inputElement: s,
+ textareaElement: u,
+ minusMenuElement: d,
+ plusMenuElement: p,
+ beforeRemoveAction: c,
+ beforeAddAction: f,
+ beforeUpdateAction: g,
+ logger: y,
+ onSubmitValueParser: x,
+ fallback: v = null,
+ } = this.props,
+ C = Gr(e),
+ w = o;
+ Gr(o) === "Boolean" && (w = () => o);
+ let E = s;
+ s && Gr(s) !== "Function" && (E = () => s);
+ let $ = u;
+ return (
+ u && Gr(u) !== "Function" && ($ = () => u),
+ C === "Object" || C === "Array"
+ ? h.createElement(
+ "div",
+ { className: "rejt-tree" },
+ h.createElement(Al, {
+ data: e,
+ name: t || "root",
+ deep: -1,
+ isCollapsed: r ?? (() => !1),
+ onUpdate: this.onUpdate,
+ onDeltaUpdate: n ?? (() => {}),
+ readOnly: w,
+ getStyle: a ?? (() => ({})),
+ addButtonElement: i,
+ cancelButtonElement: l,
+ inputElementGenerator: E,
+ textareaElementGenerator: $,
+ minusMenuElement: d,
+ plusMenuElement: p,
+ handleRemove: this.removeRoot,
+ beforeRemoveAction: c,
+ beforeAddAction: f,
+ beforeUpdateAction: g,
+ logger: y ?? {},
+ onSubmitValueParser: x ?? ((A) => A),
+ }),
+ )
+ : v
+ );
+ }
+ };
+r2.defaultProps = {
+ rootName: "root",
+ isCollapsed: (e, t) => t !== -1,
+ getStyle: (e, t, r, n, o) => {
+ switch (o) {
+ case "Object":
+ case "Error":
+ return P8;
+ case "Array":
+ return I8;
+ default:
+ return L8;
+ }
+ },
+ readOnly: () => !1,
+ onFullyUpdate: () => {},
+ onDeltaUpdate: () => {},
+ beforeRemoveAction: () => Promise.resolve(),
+ beforeAddAction: () => Promise.resolve(),
+ beforeUpdateAction: () => Promise.resolve(),
+ logger: { error: () => {} },
+ onSubmitValueParser: (e, t, r, n, o) => R8(o),
+ inputElement: () => h.createElement("input", null),
+ textareaElement: () => h.createElement("textarea", null),
+ fallback: null,
+};
+var { window: B8 } = globalThis,
+ N8 = T.div(({ theme: e }) => ({
+ position: "relative",
+ display: "flex",
+ '&[aria-readonly="true"]': { opacity: 0.5 },
+ ".rejt-tree": {
+ marginLeft: "1rem",
+ fontSize: "13px",
+ listStyleType: "none",
+ },
+ ".rejt-value-node:hover": { "& > button": { opacity: 1 } },
+ ".rejt-add-form": { marginLeft: 10 },
+ ".rejt-add-value-node": { display: "inline-flex", alignItems: "center" },
+ ".rejt-name": { lineHeight: "22px" },
+ ".rejt-not-collapsed-delimiter": { lineHeight: "22px" },
+ ".rejt-value": {
+ display: "inline-block",
+ border: "1px solid transparent",
+ borderRadius: 4,
+ margin: "1px 0",
+ padding: "0 4px",
+ cursor: "text",
+ color: e.color.defaultText,
+ },
+ ".rejt-value-node:hover > .rejt-value": {
+ background: e.color.lighter,
+ borderColor: e.appBorderColor,
+ },
+ })),
+ qm = T.button(({ theme: e, primary: t }) => ({
+ border: 0,
+ height: 20,
+ margin: 1,
+ borderRadius: 4,
+ background: t ? e.color.secondary : "transparent",
+ color: t ? e.color.lightest : e.color.dark,
+ fontWeight: t ? "bold" : "normal",
+ cursor: "pointer",
+ })),
+ Gm = T.button(({ theme: e }) => ({
+ background: "none",
+ border: 0,
+ display: "inline-flex",
+ verticalAlign: "middle",
+ padding: 3,
+ marginLeft: 5,
+ color: e.textMutedColor,
+ opacity: 0,
+ transition: "opacity 0.2s",
+ cursor: "pointer",
+ position: "relative",
+ svg: { width: 9, height: 9 },
+ ":disabled": { cursor: "not-allowed" },
+ ":hover, :focus-visible": { opacity: 1 },
+ "&:hover:not(:disabled), &:focus-visible:not(:disabled)": {
+ "&.rejt-plus-menu": { color: e.color.ancillary },
+ "&.rejt-minus-menu": { color: e.color.negative },
+ },
+ })),
+ Ym = T.input(({ theme: e, placeholder: t }) => ({
+ outline: 0,
+ margin: t ? 1 : "1px 0",
+ padding: "3px 4px",
+ color: e.color.defaultText,
+ background: e.background.app,
+ border: `1px solid ${e.appBorderColor}`,
+ borderRadius: 4,
+ lineHeight: "14px",
+ width: t === "Key" ? 80 : 120,
+ "&:focus": { border: `1px solid ${e.color.secondary}` },
+ })),
+ j8 = T($r)(({ theme: e }) => ({
+ position: "absolute",
+ zIndex: 2,
+ top: 2,
+ right: 2,
+ height: 21,
+ padding: "0 3px",
+ background: e.background.bar,
+ border: `1px solid ${e.appBorderColor}`,
+ borderRadius: 3,
+ color: e.textMutedColor,
+ fontSize: "9px",
+ fontWeight: "bold",
+ textDecoration: "none",
+ span: { marginLeft: 3, marginTop: 1 },
+ })),
+ M8 = T(uo.Textarea)(({ theme: e }) => ({
+ flex: 1,
+ padding: "7px 6px",
+ fontFamily: e.typography.fonts.mono,
+ fontSize: "12px",
+ lineHeight: "18px",
+ "&::placeholder": { fontFamily: e.typography.fonts.base, fontSize: "13px" },
+ "&:placeholder-shown": { padding: "7px 10px" },
+ })),
+ z8 = {
+ bubbles: !0,
+ cancelable: !0,
+ key: "Enter",
+ code: "Enter",
+ keyCode: 13,
+ },
+ H8 = (e) => {
+ e.currentTarget.dispatchEvent(new B8.KeyboardEvent("keydown", z8));
+ },
+ U8 = (e) => {
+ e.currentTarget.select();
+ },
+ W8 = (e) => () => ({
+ name: { color: e.color.secondary },
+ collapsed: { color: e.color.dark },
+ ul: { listStyle: "none", margin: "0 0 0 1rem", padding: 0 },
+ li: { outline: 0 },
+ }),
+ Km = ({ name: e, value: t, onChange: r, argType: n }) => {
+ let o = Mb(),
+ a = b.useMemo(() => t && U3(t), [t]),
+ i = a != null,
+ [l, s] = b.useState(!i),
+ [u, d] = b.useState(null),
+ p = !!n?.table?.readonly,
+ c = b.useCallback(
+ (w) => {
+ try {
+ (w && r(JSON.parse(w)), d(null));
+ } catch (E) {
+ d(E);
+ }
+ },
+ [r],
+ ),
+ [f, g] = b.useState(!1),
+ y = b.useCallback(() => {
+ (r({}), g(!0));
+ }, [g]),
+ x = b.useRef(null);
+ if (
+ (b.useEffect(() => {
+ f && x.current && x.current.select();
+ }, [f]),
+ !i)
+ )
+ return h.createElement(
+ _r,
+ { disabled: p, id: Vi(e), onClick: y },
+ "Set object",
+ );
+ let v = h.createElement(M8, {
+ ref: x,
+ id: Ft(e),
+ name: e,
+ defaultValue: t === null ? "" : JSON.stringify(t, null, 2),
+ onBlur: (w) => c(w.target.value),
+ placeholder: "Edit JSON string...",
+ autoFocus: f,
+ valid: u ? "error" : void 0,
+ readOnly: p,
+ }),
+ C =
+ Array.isArray(t) || (typeof t == "object" && t?.constructor === Object);
+ return h.createElement(
+ N8,
+ { "aria-readonly": p },
+ C &&
+ h.createElement(
+ j8,
+ {
+ role: "switch",
+ "aria-checked": l,
+ "aria-label": `Edit the ${e} properties in text format`,
+ onClick: (w) => {
+ (w.preventDefault(), s((E) => !E));
+ },
+ },
+ l ? h.createElement(KT, null) : h.createElement(YT, null),
+ h.createElement("span", null, "RAW"),
+ ),
+ l
+ ? v
+ : h.createElement(r2, {
+ readOnly: p || !C,
+ isCollapsed: C ? void 0 : () => !0,
+ data: a,
+ rootName: e,
+ onFullyUpdate: r,
+ getStyle: W8(o),
+ cancelButtonElement: h.createElement(
+ qm,
+ { type: "button" },
+ "Cancel",
+ ),
+ addButtonElement: h.createElement(
+ qm,
+ { type: "submit", primary: !0 },
+ "Save",
+ ),
+ plusMenuElement: h.createElement(
+ Gm,
+ { type: "button" },
+ h.createElement(XT, null),
+ ),
+ minusMenuElement: h.createElement(
+ Gm,
+ { type: "button" },
+ h.createElement(ZT, null),
+ ),
+ inputElement: (w, E, $, A) =>
+ A
+ ? h.createElement(Ym, { onFocus: U8, onBlur: H8 })
+ : h.createElement(Ym, null),
+ fallback: v,
+ }),
+ );
+ },
+ V8 = T.input(({ theme: e, min: t, max: r, value: n, disabled: o }) => ({
+ "&": { width: "100%", backgroundColor: "transparent", appearance: "none" },
+ "&::-webkit-slider-runnable-track": {
+ background:
+ e.base === "light"
+ ? `linear-gradient(to right,
+ ${e.color.green} 0%, ${e.color.green} ${((n - t) / (r - t)) * 100}%,
+ ${Bt(0.02, e.input.background)} ${((n - t) / (r - t)) * 100}%,
+ ${Bt(0.02, e.input.background)} 100%)`
+ : `linear-gradient(to right,
+ ${e.color.green} 0%, ${e.color.green} ${((n - t) / (r - t)) * 100}%,
+ ${zr(0.02, e.input.background)} ${((n - t) / (r - t)) * 100}%,
+ ${zr(0.02, e.input.background)} 100%)`,
+ boxShadow: `${e.appBorderColor} 0 0 0 1px inset`,
+ borderRadius: 6,
+ width: "100%",
+ height: 6,
+ cursor: o ? "not-allowed" : "pointer",
+ },
+ "&::-webkit-slider-thumb": {
+ marginTop: "-6px",
+ width: 16,
+ height: 16,
+ border: `1px solid ${jt(e.appBorderColor, 0.2)}`,
+ borderRadius: "50px",
+ boxShadow: `0 1px 3px 0px ${jt(e.appBorderColor, 0.2)}`,
+ cursor: o ? "not-allowed" : "grab",
+ appearance: "none",
+ background: `${e.input.background}`,
+ transition: "all 150ms ease-out",
+ "&:hover": {
+ background: `${Bt(0.05, e.input.background)}`,
+ transform: "scale3d(1.1, 1.1, 1.1) translateY(-1px)",
+ transition: "all 50ms ease-out",
+ },
+ "&:active": {
+ background: `${e.input.background}`,
+ transform: "scale3d(1, 1, 1) translateY(0px)",
+ cursor: o ? "not-allowed" : "grab",
+ },
+ },
+ "&:focus": {
+ outline: "none",
+ "&::-webkit-slider-runnable-track": {
+ borderColor: jt(e.color.secondary, 0.4),
+ },
+ "&::-webkit-slider-thumb": {
+ borderColor: e.color.secondary,
+ boxShadow: `0 0px 5px 0px ${e.color.secondary}`,
+ },
+ },
+ "&::-moz-range-track": {
+ background:
+ e.base === "light"
+ ? `linear-gradient(to right,
+ ${e.color.green} 0%, ${e.color.green} ${((n - t) / (r - t)) * 100}%,
+ ${Bt(0.02, e.input.background)} ${((n - t) / (r - t)) * 100}%,
+ ${Bt(0.02, e.input.background)} 100%)`
+ : `linear-gradient(to right,
+ ${e.color.green} 0%, ${e.color.green} ${((n - t) / (r - t)) * 100}%,
+ ${zr(0.02, e.input.background)} ${((n - t) / (r - t)) * 100}%,
+ ${zr(0.02, e.input.background)} 100%)`,
+ boxShadow: `${e.appBorderColor} 0 0 0 1px inset`,
+ borderRadius: 6,
+ width: "100%",
+ height: 6,
+ cursor: o ? "not-allowed" : "pointer",
+ outline: "none",
+ },
+ "&::-moz-range-thumb": {
+ width: 16,
+ height: 16,
+ border: `1px solid ${jt(e.appBorderColor, 0.2)}`,
+ borderRadius: "50px",
+ boxShadow: `0 1px 3px 0px ${jt(e.appBorderColor, 0.2)}`,
+ cursor: o ? "not-allowed" : "grap",
+ background: `${e.input.background}`,
+ transition: "all 150ms ease-out",
+ "&:hover": {
+ background: `${Bt(0.05, e.input.background)}`,
+ transform: "scale3d(1.1, 1.1, 1.1) translateY(-1px)",
+ transition: "all 50ms ease-out",
+ },
+ "&:active": {
+ background: `${e.input.background}`,
+ transform: "scale3d(1, 1, 1) translateY(0px)",
+ cursor: "grabbing",
+ },
+ },
+ "&::-ms-track": {
+ background:
+ e.base === "light"
+ ? `linear-gradient(to right,
+ ${e.color.green} 0%, ${e.color.green} ${((n - t) / (r - t)) * 100}%,
+ ${Bt(0.02, e.input.background)} ${((n - t) / (r - t)) * 100}%,
+ ${Bt(0.02, e.input.background)} 100%)`
+ : `linear-gradient(to right,
+ ${e.color.green} 0%, ${e.color.green} ${((n - t) / (r - t)) * 100}%,
+ ${zr(0.02, e.input.background)} ${((n - t) / (r - t)) * 100}%,
+ ${zr(0.02, e.input.background)} 100%)`,
+ boxShadow: `${e.appBorderColor} 0 0 0 1px inset`,
+ color: "transparent",
+ width: "100%",
+ height: "6px",
+ cursor: "pointer",
+ },
+ "&::-ms-fill-lower": { borderRadius: 6 },
+ "&::-ms-fill-upper": { borderRadius: 6 },
+ "&::-ms-thumb": {
+ width: 16,
+ height: 16,
+ background: `${e.input.background}`,
+ border: `1px solid ${jt(e.appBorderColor, 0.2)}`,
+ borderRadius: 50,
+ cursor: "grab",
+ marginTop: 0,
+ },
+ "@supports (-ms-ime-align:auto)": { "input[type=range]": { margin: "0" } },
+ })),
+ n2 = T.span({
+ paddingLeft: 5,
+ paddingRight: 5,
+ fontSize: 12,
+ whiteSpace: "nowrap",
+ fontFeatureSettings: "tnum",
+ fontVariantNumeric: "tabular-nums",
+ "[aria-readonly=true] &": { opacity: 0.5 },
+ }),
+ q8 = T(n2)(({ numberOFDecimalsPlaces: e, max: t }) => ({
+ width: `${e + t.toString().length * 2 + 3}ch`,
+ textAlign: "right",
+ flexShrink: 0,
+ })),
+ G8 = T.div({ display: "flex", alignItems: "center", width: "100%" });
+function Y8(e) {
+ let t = e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);
+ return t ? Math.max(0, (t[1] ? t[1].length : 0) - (t[2] ? +t[2] : 0)) : 0;
+}
+var K8 = ({
+ name: e,
+ value: t,
+ onChange: r,
+ min: n = 0,
+ max: o = 100,
+ step: a = 1,
+ onBlur: i,
+ onFocus: l,
+ argType: s,
+ }) => {
+ let u = (f) => {
+ r(o8(f.target.value));
+ },
+ d = t !== void 0,
+ p = b.useMemo(() => Y8(a), [a]),
+ c = !!s?.table?.readonly;
+ return h.createElement(
+ G8,
+ { "aria-readonly": c },
+ h.createElement(n2, null, n),
+ h.createElement(V8, {
+ id: Ft(e),
+ type: "range",
+ disabled: c,
+ onChange: u,
+ name: e,
+ min: n,
+ max: o,
+ step: a,
+ onFocus: l,
+ onBlur: i,
+ value: t ?? n,
+ }),
+ h.createElement(
+ q8,
+ { numberOFDecimalsPlaces: p, max: o },
+ d ? t.toFixed(p) : "--",
+ " / ",
+ o,
+ ),
+ );
+ },
+ X8 = T.label({ display: "flex" }),
+ Z8 = T.div(({ isMaxed: e }) => ({
+ marginLeft: "0.75rem",
+ paddingTop: "0.35rem",
+ color: e ? "red" : void 0,
+ })),
+ J8 = ({
+ name: e,
+ value: t,
+ onChange: r,
+ onFocus: n,
+ onBlur: o,
+ maxLength: a,
+ argType: i,
+ }) => {
+ let l = (f) => {
+ r(f.target.value);
+ },
+ s = !!i?.table?.readonly,
+ [u, d] = b.useState(!1),
+ p = b.useCallback(() => {
+ (r(""), d(!0));
+ }, [d]);
+ if (t === void 0)
+ return h.createElement(
+ _r,
+ {
+ variant: "outline",
+ size: "medium",
+ disabled: s,
+ id: Vi(e),
+ onClick: p,
+ },
+ "Set string",
+ );
+ let c = typeof t == "string";
+ return h.createElement(
+ X8,
+ null,
+ h.createElement(uo.Textarea, {
+ id: Ft(e),
+ maxLength: a,
+ onChange: l,
+ disabled: s,
+ size: "flex",
+ placeholder: "Edit string...",
+ autoFocus: u,
+ valid: c ? void 0 : "error",
+ name: e,
+ value: c ? t : "",
+ onFocus: n,
+ onBlur: o,
+ }),
+ a &&
+ h.createElement(
+ Z8,
+ { isMaxed: t?.length === a },
+ t?.length ?? 0,
+ " / ",
+ a,
+ ),
+ );
+ },
+ Q8 = T(uo.Input)({ padding: 10 });
+function eI(e) {
+ e.forEach((t) => {
+ t.startsWith("blob:") && URL.revokeObjectURL(t);
+ });
+}
+var tI = ({
+ onChange: e,
+ name: t,
+ accept: r = "image/*",
+ value: n,
+ argType: o,
+ }) => {
+ let a = b.useRef(null),
+ i = o?.control?.readOnly;
+ function l(s) {
+ if (!s.target.files) return;
+ let u = Array.from(s.target.files).map((d) => URL.createObjectURL(d));
+ (e(u), eI(n || []));
+ }
+ return (
+ b.useEffect(() => {
+ n == null && a.current && (a.current.value = "");
+ }, [n, t]),
+ h.createElement(Q8, {
+ ref: a,
+ id: Ft(t),
+ type: "file",
+ name: t,
+ multiple: !0,
+ disabled: i,
+ onChange: l,
+ accept: r,
+ size: "flex",
+ })
+ );
+ },
+ rI = b.lazy(() =>
+ cc(
+ () => import("./Color-AVL7NMMY-Doxq8aw5.js"),
+ __vite__mapDeps([0, 1, 2, 3, 4, 5]),
+ ),
+ ),
+ nI = (e) =>
+ h.createElement(
+ b.Suspense,
+ { fallback: h.createElement("div", null) },
+ h.createElement(rI, { ...e }),
+ ),
+ oI = {
+ array: Km,
+ object: Km,
+ boolean: XP,
+ color: nI,
+ date: r8,
+ number: i8,
+ check: yn,
+ "inline-check": yn,
+ radio: yn,
+ "inline-radio": yn,
+ select: yn,
+ "multi-select": yn,
+ range: K8,
+ text: J8,
+ file: tI,
+ },
+ Xm = () => h.createElement(h.Fragment, null, "-"),
+ aI = ({ row: e, arg: t, updateArgs: r, isHovered: n }) => {
+ let { key: o, control: a } = e,
+ [i, l] = b.useState(!1),
+ [s, u] = b.useState({ value: t });
+ b.useEffect(() => {
+ i || u({ value: t });
+ }, [i, t]);
+ let d = b.useCallback((y) => (u({ value: y }), r({ [o]: y }), y), [r, o]),
+ p = b.useCallback(() => l(!1), []),
+ c = b.useCallback(() => l(!0), []);
+ if (!a || a.disable) {
+ let y = a?.disable !== !0 && e?.type?.name !== "function";
+ return n && y
+ ? h.createElement(
+ Jn,
+ {
+ href: "https://storybook.js.org/docs/essentials/controls",
+ target: "_blank",
+ withArrow: !0,
+ },
+ "Setup controls",
+ )
+ : h.createElement(Xm, null);
+ }
+ let f = {
+ name: o,
+ argType: e,
+ value: s.value,
+ onChange: d,
+ onBlur: p,
+ onFocus: c,
+ },
+ g = oI[a.type] || Xm;
+ return h.createElement(g, { ...f, ...a, controlType: a.type });
+ },
+ iI = T.table(({ theme: e }) => ({
+ "&&": {
+ borderCollapse: "collapse",
+ borderSpacing: 0,
+ border: "none",
+ tr: { border: "none !important", background: "none" },
+ "td, th": { padding: 0, border: "none", width: "auto!important" },
+ marginTop: 0,
+ marginBottom: 0,
+ "th:first-of-type, td:first-of-type": { paddingLeft: 0 },
+ "th:last-of-type, td:last-of-type": { paddingRight: 0 },
+ td: {
+ paddingTop: 0,
+ paddingBottom: 4,
+ "&:not(:first-of-type)": { paddingLeft: 10, paddingRight: 0 },
+ },
+ tbody: { boxShadow: "none", border: "none" },
+ code: cr({ theme: e }),
+ div: { span: { fontWeight: "bold" } },
+ "& code": {
+ margin: 0,
+ display: "inline-block",
+ fontSize: e.typography.size.s1,
+ },
+ },
+ })),
+ lI = ({ tags: e }) => {
+ let t = (e.params || []).filter((a) => a.description),
+ r = t.length !== 0,
+ n = e.deprecated != null,
+ o = e.returns != null && e.returns.description != null;
+ return !r && !o && !n
+ ? null
+ : h.createElement(
+ h.Fragment,
+ null,
+ h.createElement(
+ iI,
+ null,
+ h.createElement(
+ "tbody",
+ null,
+ n &&
+ h.createElement(
+ "tr",
+ { key: "deprecated" },
+ h.createElement(
+ "td",
+ { colSpan: 2 },
+ h.createElement("strong", null, "Deprecated"),
+ ": ",
+ e.deprecated?.toString(),
+ ),
+ ),
+ r &&
+ t.map((a) =>
+ h.createElement(
+ "tr",
+ { key: a.name },
+ h.createElement(
+ "td",
+ null,
+ h.createElement("code", null, a.name),
+ ),
+ h.createElement("td", null, a.description),
+ ),
+ ),
+ o &&
+ h.createElement(
+ "tr",
+ { key: "returns" },
+ h.createElement(
+ "td",
+ null,
+ h.createElement("code", null, "Returns"),
+ ),
+ h.createElement("td", null, e.returns?.description),
+ ),
+ ),
+ ),
+ );
+ },
+ sI = lD(sR()),
+ ic = 8,
+ Zm = T.div(({ isExpanded: e }) => ({
+ display: "flex",
+ flexDirection: e ? "column" : "row",
+ flexWrap: "wrap",
+ alignItems: "flex-start",
+ marginBottom: "-4px",
+ minWidth: 100,
+ })),
+ uI = T.span(cr, ({ theme: e, simple: t = !1 }) => ({
+ flex: "0 0 auto",
+ fontFamily: e.typography.fonts.mono,
+ fontSize: e.typography.size.s1,
+ wordBreak: "break-word",
+ whiteSpace: "normal",
+ maxWidth: "100%",
+ margin: 0,
+ marginRight: "4px",
+ marginBottom: "4px",
+ paddingTop: "2px",
+ paddingBottom: "2px",
+ lineHeight: "13px",
+ ...(t && { background: "transparent", border: "0 none", paddingLeft: 0 }),
+ })),
+ cI = T.button(({ theme: e }) => ({
+ fontFamily: e.typography.fonts.mono,
+ color: e.color.secondary,
+ marginBottom: "4px",
+ background: "none",
+ border: "none",
+ })),
+ dI = T.div(cr, ({ theme: e }) => ({
+ fontFamily: e.typography.fonts.mono,
+ color: e.color.secondary,
+ fontSize: e.typography.size.s1,
+ margin: 0,
+ whiteSpace: "nowrap",
+ display: "flex",
+ alignItems: "center",
+ })),
+ pI = T.div(({ theme: e, width: t }) => ({
+ width: t,
+ minWidth: 200,
+ maxWidth: 800,
+ padding: 15,
+ fontFamily: e.typography.fonts.mono,
+ fontSize: e.typography.size.s1,
+ boxSizing: "content-box",
+ "& code": { padding: "0 !important" },
+ })),
+ fI = T(tR)({ marginLeft: 4 }),
+ gI = T(fS)({ marginLeft: 4 }),
+ mI = () => h.createElement("span", null, "-"),
+ o2 = ({ text: e, simple: t }) => h.createElement(uI, { simple: t }, e),
+ hI = (0, sI.default)(1e3)((e) => {
+ let t = e.split(/\r?\n/);
+ return `${Math.max(...t.map((r) => r.length))}ch`;
+ }),
+ yI = (e) => {
+ if (!e) return [e];
+ let t = e.split("|").map((r) => r.trim());
+ return V3(t);
+ },
+ Jm = (e, t = !0) => {
+ let r = e;
+ return (
+ t || (r = e.slice(0, ic)),
+ r.map((n) => h.createElement(o2, { key: n, text: n === "" ? '""' : n }))
+ );
+ },
+ bI = ({ value: e, initialExpandedArgs: t }) => {
+ let { summary: r, detail: n } = e,
+ [o, a] = b.useState(!1),
+ [i, l] = b.useState(t || !1);
+ if (r == null) return null;
+ let s = typeof r.toString == "function" ? r.toString() : r;
+ if (n == null) {
+ if (/[(){}[\]<>]/.test(s)) return h.createElement(o2, { text: s });
+ let u = yI(s),
+ d = u.length;
+ return d > ic
+ ? h.createElement(
+ Zm,
+ { isExpanded: i },
+ Jm(u, i),
+ h.createElement(
+ cI,
+ { onClick: () => l(!i) },
+ i ? "Show less..." : `Show ${d - ic} more...`,
+ ),
+ )
+ : h.createElement(Zm, null, Jm(u));
+ }
+ return h.createElement(
+ Qw,
+ {
+ closeOnOutsideClick: !0,
+ placement: "bottom",
+ visible: o,
+ onVisibleChange: (u) => {
+ a(u);
+ },
+ tooltip: h.createElement(
+ pI,
+ { width: hI(n) },
+ h.createElement(ml, { language: "jsx", format: !1 }, n),
+ ),
+ },
+ h.createElement(
+ dI,
+ { className: "sbdocs-expandable" },
+ h.createElement("span", null, s),
+ o ? h.createElement(fI, null) : h.createElement(gI, null),
+ ),
+ );
+ },
+ Ds = ({ value: e, initialExpandedArgs: t }) =>
+ e == null
+ ? h.createElement(mI, null)
+ : h.createElement(bI, { value: e, initialExpandedArgs: t }),
+ vI = T.span({ fontWeight: "bold" }),
+ xI = T.span(({ theme: e }) => ({
+ color: e.color.negative,
+ fontFamily: e.typography.fonts.mono,
+ cursor: "help",
+ })),
+ EI = T.div(({ theme: e }) => ({
+ "&&": { p: { margin: "0 0 10px 0" }, a: { color: e.color.secondary } },
+ code: {
+ ...cr({ theme: e }),
+ fontSize: 12,
+ fontFamily: e.typography.fonts.mono,
+ },
+ "& code": { margin: 0, display: "inline-block" },
+ "& pre > code": { whiteSpace: "pre-wrap" },
+ })),
+ wI = T.div(({ theme: e, hasDescription: t }) => ({
+ color:
+ e.base === "light"
+ ? ye(0.1, e.color.defaultText)
+ : ye(0.2, e.color.defaultText),
+ marginTop: t ? 4 : 0,
+ })),
+ SI = T.div(({ theme: e, hasDescription: t }) => ({
+ color:
+ e.base === "light"
+ ? ye(0.1, e.color.defaultText)
+ : ye(0.2, e.color.defaultText),
+ marginTop: t ? 12 : 0,
+ marginBottom: 12,
+ })),
+ CI = T.td(({ expandable: e }) => ({
+ paddingLeft: e ? "40px !important" : "20px !important",
+ })),
+ $I = (e) => e && { summary: typeof e == "string" ? e : e.name },
+ _a = (e) => {
+ let [t, r] = b.useState(!1),
+ {
+ row: n,
+ updateArgs: o,
+ compact: a,
+ expandable: i,
+ initialExpandedArgs: l,
+ } = e,
+ { name: s, description: u } = n,
+ d = n.table || {},
+ p = d.type || $I(n.type),
+ c = d.defaultValue || n.defaultValue,
+ f = n.type?.required,
+ g = u != null && u !== "";
+ return h.createElement(
+ "tr",
+ { onMouseEnter: () => r(!0), onMouseLeave: () => r(!1) },
+ h.createElement(
+ CI,
+ { expandable: i ?? !1 },
+ h.createElement(vI, null, s),
+ f ? h.createElement(xI, { title: "Required" }, "*") : null,
+ ),
+ a
+ ? null
+ : h.createElement(
+ "td",
+ null,
+ g && h.createElement(EI, null, h.createElement(WS, null, u)),
+ d.jsDocTags != null
+ ? h.createElement(
+ h.Fragment,
+ null,
+ h.createElement(
+ SI,
+ { hasDescription: g },
+ h.createElement(Ds, { value: p, initialExpandedArgs: l }),
+ ),
+ h.createElement(lI, { tags: d.jsDocTags }),
+ )
+ : h.createElement(
+ wI,
+ { hasDescription: g },
+ h.createElement(Ds, { value: p, initialExpandedArgs: l }),
+ ),
+ ),
+ a
+ ? null
+ : h.createElement(
+ "td",
+ null,
+ h.createElement(Ds, { value: c, initialExpandedArgs: l }),
+ ),
+ o
+ ? h.createElement(
+ "td",
+ null,
+ h.createElement(aI, { ...e, isHovered: t }),
+ )
+ : null,
+ );
+ },
+ AI = T.div(({ inAddonPanel: e, theme: t }) => ({
+ height: e ? "100%" : "auto",
+ display: "flex",
+ border: e ? "none" : `1px solid ${t.appBorderColor}`,
+ borderRadius: e ? 0 : t.appBorderRadius,
+ padding: e ? 0 : 40,
+ alignItems: "center",
+ justifyContent: "center",
+ flexDirection: "column",
+ gap: 15,
+ background: t.background.content,
+ })),
+ DI = T.div(({ theme: e }) => ({
+ display: "flex",
+ fontSize: e.typography.size.s2 - 1,
+ gap: 25,
+ })),
+ kI = ({ inAddonPanel: e }) => {
+ let [t, r] = b.useState(!0);
+ return (
+ b.useEffect(() => {
+ let n = setTimeout(() => {
+ r(!1);
+ }, 100);
+ return () => clearTimeout(n);
+ }, []),
+ t
+ ? null
+ : h.createElement(
+ AI,
+ { inAddonPanel: e },
+ h.createElement(Sl, {
+ title: e
+ ? "Interactive story playground"
+ : "Args table with interactive controls couldn't be auto-generated",
+ description: h.createElement(
+ h.Fragment,
+ null,
+ "Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically.",
+ ),
+ footer: h.createElement(
+ DI,
+ null,
+ e &&
+ h.createElement(
+ h.Fragment,
+ null,
+ h.createElement(
+ Jn,
+ {
+ href: "https://storybook.js.org/docs/essentials/controls",
+ target: "_blank",
+ withArrow: !0,
+ },
+ h.createElement(Xu, null),
+ " Read docs",
+ ),
+ ),
+ !e &&
+ h.createElement(
+ Jn,
+ {
+ href: "https://storybook.js.org/docs/essentials/controls",
+ target: "_blank",
+ withArrow: !0,
+ },
+ h.createElement(Xu, null),
+ " Learn how to set that up",
+ ),
+ ),
+ }),
+ )
+ );
+ },
+ OI = T(QT)(({ theme: e }) => ({
+ marginRight: 8,
+ marginLeft: -10,
+ marginTop: -2,
+ height: 12,
+ width: 12,
+ color:
+ e.base === "light"
+ ? ye(0.25, e.color.defaultText)
+ : ye(0.3, e.color.defaultText),
+ border: "none",
+ display: "inline-block",
+ })),
+ FI = T(eR)(({ theme: e }) => ({
+ marginRight: 8,
+ marginLeft: -10,
+ marginTop: -2,
+ height: 12,
+ width: 12,
+ color:
+ e.base === "light"
+ ? ye(0.25, e.color.defaultText)
+ : ye(0.3, e.color.defaultText),
+ border: "none",
+ display: "inline-block",
+ })),
+ _I = T.span(({ theme: e }) => ({
+ display: "flex",
+ lineHeight: "20px",
+ alignItems: "center",
+ })),
+ TI = T.td(({ theme: e }) => ({
+ position: "relative",
+ letterSpacing: "0.35em",
+ textTransform: "uppercase",
+ fontWeight: e.typography.weight.bold,
+ fontSize: e.typography.size.s1 - 1,
+ color:
+ e.base === "light"
+ ? ye(0.4, e.color.defaultText)
+ : ye(0.6, e.color.defaultText),
+ background: `${e.background.app} !important`,
+ "& ~ td": { background: `${e.background.app} !important` },
+ })),
+ RI = T.td(({ theme: e }) => ({
+ position: "relative",
+ fontWeight: e.typography.weight.bold,
+ fontSize: e.typography.size.s2 - 1,
+ background: e.background.app,
+ })),
+ PI = T.td({ position: "relative" }),
+ II = T.tr(({ theme: e }) => ({
+ "&:hover > td": {
+ backgroundColor: `${zr(0.005, e.background.app)} !important`,
+ boxShadow: `${e.color.mediumlight} 0 - 1px 0 0 inset`,
+ cursor: "row-resize",
+ },
+ })),
+ Qm = T.button({
+ background: "none",
+ border: "none",
+ padding: "0",
+ font: "inherit",
+ position: "absolute",
+ top: 0,
+ bottom: 0,
+ left: 0,
+ right: 0,
+ height: "100%",
+ width: "100%",
+ color: "transparent",
+ cursor: "row-resize !important",
+ }),
+ ks = ({
+ level: e = "section",
+ label: t,
+ children: r,
+ initialExpanded: n = !0,
+ colSpan: o = 3,
+ }) => {
+ let [a, i] = b.useState(n),
+ l = e === "subsection" ? RI : TI,
+ s = r?.length || 0,
+ u = e === "subsection" ? `${s} item${s !== 1 ? "s" : ""}` : "",
+ d = `${a ? "Hide" : "Show"} ${e === "subsection" ? s : t} item${s !== 1 ? "s" : ""}`;
+ return h.createElement(
+ h.Fragment,
+ null,
+ h.createElement(
+ II,
+ { title: d },
+ h.createElement(
+ l,
+ { colSpan: 1 },
+ h.createElement(Qm, { onClick: (p) => i(!a), tabIndex: 0 }, d),
+ h.createElement(
+ _I,
+ null,
+ a ? h.createElement(OI, null) : h.createElement(FI, null),
+ t,
+ ),
+ ),
+ h.createElement(
+ PI,
+ { colSpan: o - 1 },
+ h.createElement(
+ Qm,
+ { onClick: (p) => i(!a), tabIndex: -1, style: { outline: "none" } },
+ d,
+ ),
+ a ? null : u,
+ ),
+ ),
+ a ? r : null,
+ );
+ },
+ LI = T.div(({ theme: e }) => ({
+ width: "100%",
+ borderSpacing: 0,
+ color: e.color.defaultText,
+ })),
+ Ta = T.div(({ theme: e }) => ({
+ display: "flex",
+ borderBottom: `1px solid ${e.appBorderColor}`,
+ "&:last-child": { borderBottom: 0 },
+ })),
+ ze = T.div(({ position: e, theme: t }) => {
+ let r = {
+ display: "flex",
+ flexDirection: "column",
+ gap: 5,
+ padding: "10px 15px",
+ alignItems: "flex-start",
+ };
+ switch (e) {
+ case "first":
+ return { ...r, width: "25%", paddingLeft: 20 };
+ case "second":
+ return { ...r, width: "35%" };
+ case "third":
+ return { ...r, width: "15%" };
+ case "last":
+ return { ...r, width: "25%", paddingRight: 20 };
+ }
+ }),
+ Fe = T.div(({ theme: e, width: t, height: r }) => ({
+ animation: `${e.animation.glow} 1.5s ease-in-out infinite`,
+ background: e.appBorderColor,
+ width: t || "100%",
+ height: r || 16,
+ borderRadius: 3,
+ })),
+ BI = () =>
+ h.createElement(
+ LI,
+ null,
+ h.createElement(
+ Ta,
+ null,
+ h.createElement(
+ ze,
+ { position: "first" },
+ h.createElement(Fe, { width: "60%" }),
+ ),
+ h.createElement(
+ ze,
+ { position: "second" },
+ h.createElement(Fe, { width: "30%" }),
+ ),
+ h.createElement(
+ ze,
+ { position: "third" },
+ h.createElement(Fe, { width: "60%" }),
+ ),
+ h.createElement(
+ ze,
+ { position: "last" },
+ h.createElement(Fe, { width: "60%" }),
+ ),
+ ),
+ h.createElement(
+ Ta,
+ null,
+ h.createElement(
+ ze,
+ { position: "first" },
+ h.createElement(Fe, { width: "60%" }),
+ ),
+ h.createElement(
+ ze,
+ { position: "second" },
+ h.createElement(Fe, { width: "80%" }),
+ h.createElement(Fe, { width: "30%" }),
+ ),
+ h.createElement(
+ ze,
+ { position: "third" },
+ h.createElement(Fe, { width: "60%" }),
+ ),
+ h.createElement(
+ ze,
+ { position: "last" },
+ h.createElement(Fe, { width: "60%" }),
+ ),
+ ),
+ h.createElement(
+ Ta,
+ null,
+ h.createElement(
+ ze,
+ { position: "first" },
+ h.createElement(Fe, { width: "60%" }),
+ ),
+ h.createElement(
+ ze,
+ { position: "second" },
+ h.createElement(Fe, { width: "80%" }),
+ h.createElement(Fe, { width: "30%" }),
+ ),
+ h.createElement(
+ ze,
+ { position: "third" },
+ h.createElement(Fe, { width: "60%" }),
+ ),
+ h.createElement(
+ ze,
+ { position: "last" },
+ h.createElement(Fe, { width: "60%" }),
+ ),
+ ),
+ h.createElement(
+ Ta,
+ null,
+ h.createElement(
+ ze,
+ { position: "first" },
+ h.createElement(Fe, { width: "60%" }),
+ ),
+ h.createElement(
+ ze,
+ { position: "second" },
+ h.createElement(Fe, { width: "80%" }),
+ h.createElement(Fe, { width: "30%" }),
+ ),
+ h.createElement(
+ ze,
+ { position: "third" },
+ h.createElement(Fe, { width: "60%" }),
+ ),
+ h.createElement(
+ ze,
+ { position: "last" },
+ h.createElement(Fe, { width: "60%" }),
+ ),
+ ),
+ ),
+ NI = T.table(({ theme: e, compact: t, inAddonPanel: r }) => ({
+ "&&": {
+ borderSpacing: 0,
+ color: e.color.defaultText,
+ "td, th": {
+ padding: 0,
+ border: "none",
+ verticalAlign: "top",
+ textOverflow: "ellipsis",
+ },
+ fontSize: e.typography.size.s2 - 1,
+ lineHeight: "20px",
+ textAlign: "left",
+ width: "100%",
+ marginTop: r ? 0 : 25,
+ marginBottom: r ? 0 : 40,
+ "thead th:first-of-type, td:first-of-type": { width: "25%" },
+ "th:first-of-type, td:first-of-type": { paddingLeft: 20 },
+ "th:nth-of-type(2), td:nth-of-type(2)": {
+ ...(t ? null : { width: "35%" }),
+ },
+ "td:nth-of-type(3)": { ...(t ? null : { width: "15%" }) },
+ "th:last-of-type, td:last-of-type": {
+ paddingRight: 20,
+ ...(t ? null : { width: "25%" }),
+ },
+ th: {
+ color:
+ e.base === "light"
+ ? ye(0.25, e.color.defaultText)
+ : ye(0.45, e.color.defaultText),
+ paddingTop: 10,
+ paddingBottom: 10,
+ paddingLeft: 15,
+ paddingRight: 15,
+ },
+ td: {
+ paddingTop: "10px",
+ paddingBottom: "10px",
+ "&:not(:first-of-type)": { paddingLeft: 15, paddingRight: 15 },
+ "&:last-of-type": { paddingRight: 20 },
+ },
+ marginLeft: r ? 0 : 1,
+ marginRight: r ? 0 : 1,
+ tbody: {
+ ...(r
+ ? null
+ : {
+ filter:
+ e.base === "light"
+ ? "drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))"
+ : "drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))",
+ }),
+ "> tr > *": {
+ background: e.background.content,
+ borderTop: `1px solid ${e.appBorderColor}`,
+ },
+ ...(r
+ ? null
+ : {
+ "> tr:first-of-type > *": {
+ borderBlockStart: `1px solid ${e.appBorderColor}`,
+ },
+ "> tr:last-of-type > *": {
+ borderBlockEnd: `1px solid ${e.appBorderColor}`,
+ },
+ "> tr > *:first-of-type": {
+ borderInlineStart: `1px solid ${e.appBorderColor}`,
+ },
+ "> tr > *:last-of-type": {
+ borderInlineEnd: `1px solid ${e.appBorderColor}`,
+ },
+ "> tr:first-of-type > td:first-of-type": {
+ borderTopLeftRadius: e.appBorderRadius,
+ },
+ "> tr:first-of-type > td:last-of-type": {
+ borderTopRightRadius: e.appBorderRadius,
+ },
+ "> tr:last-of-type > td:first-of-type": {
+ borderBottomLeftRadius: e.appBorderRadius,
+ },
+ "> tr:last-of-type > td:last-of-type": {
+ borderBottomRightRadius: e.appBorderRadius,
+ },
+ }),
+ },
+ },
+ })),
+ jI = T($r)(({ theme: e }) => ({ margin: "-4px -12px -4px 0" })),
+ MI = T.span({ display: "flex", justifyContent: "space-between" }),
+ zI = {
+ alpha: (e, t) => (e.name ?? "").localeCompare(t.name ?? ""),
+ requiredFirst: (e, t) =>
+ +!!t.type?.required - +!!e.type?.required ||
+ (e.name ?? "").localeCompare(t.name ?? ""),
+ none: null,
+ },
+ HI = (e, t) => {
+ let r = { ungrouped: [], ungroupedSubsections: {}, sections: {} };
+ if (!e) return r;
+ Object.entries(e).forEach(([a, i]) => {
+ let { category: l, subcategory: s } = i?.table || {};
+ if (l) {
+ let u = r.sections[l] || { ungrouped: [], subsections: {} };
+ if (!s) u.ungrouped.push({ key: a, ...i });
+ else {
+ let d = u.subsections[s] || [];
+ (d.push({ key: a, ...i }), (u.subsections[s] = d));
+ }
+ r.sections[l] = u;
+ } else if (s) {
+ let u = r.ungroupedSubsections[s] || [];
+ (u.push({ key: a, ...i }), (r.ungroupedSubsections[s] = u));
+ } else r.ungrouped.push({ key: a, ...i });
+ });
+ let n = zI[t],
+ o = (a) =>
+ n
+ ? Object.keys(a).reduce((i, l) => ({ ...i, [l]: a[l].sort(n) }), {})
+ : a;
+ return {
+ ungrouped: n ? r.ungrouped.sort(n) : r.ungrouped,
+ ungroupedSubsections: o(r.ungroupedSubsections),
+ sections: Object.keys(r.sections).reduce(
+ (a, i) => ({
+ ...a,
+ [i]: {
+ ungrouped: n
+ ? r.sections[i].ungrouped.sort(n)
+ : r.sections[i].ungrouped,
+ subsections: o(r.sections[i].subsections),
+ },
+ }),
+ {},
+ ),
+ };
+ },
+ UI = (e, t, r) => {
+ try {
+ return ey(e, t, r);
+ } catch (n) {
+ return (aR.warn(n.message), !1);
+ }
+ },
+ lc = (e) => {
+ let {
+ updateArgs: t,
+ resetArgs: r,
+ compact: n,
+ inAddonPanel: o,
+ initialExpandedArgs: a,
+ sort: i = "none",
+ isLoading: l,
+ } = e;
+ if ("error" in e) {
+ let { error: C } = e;
+ return h.createElement(
+ xS,
+ null,
+ C,
+ " ",
+ h.createElement(
+ Jn,
+ {
+ href: "http://storybook.js.org/docs/",
+ target: "_blank",
+ withArrow: !0,
+ },
+ h.createElement(Xu, null),
+ " Read the docs",
+ ),
+ );
+ }
+ if (l) return h.createElement(BI, null);
+ let {
+ rows: s,
+ args: u,
+ globals: d,
+ } = "rows" in e ? e : { rows: void 0, args: void 0, globals: void 0 },
+ p = HI(
+ eD(s || {}, (C) => !C?.table?.disable && UI(C, u || {}, d || {})),
+ i,
+ ),
+ c = p.ungrouped.length === 0,
+ f = Object.entries(p.sections).length === 0,
+ g = Object.entries(p.ungroupedSubsections).length === 0;
+ if (c && f && g) return h.createElement(kI, { inAddonPanel: o });
+ let y = 1;
+ (t && (y += 1), n || (y += 2));
+ let x = Object.keys(p.sections).length > 0,
+ v = {
+ updateArgs: t,
+ compact: n,
+ inAddonPanel: o,
+ initialExpandedArgs: a,
+ };
+ return h.createElement(
+ Md,
+ null,
+ h.createElement(
+ NI,
+ {
+ compact: n,
+ inAddonPanel: o,
+ className: "docblock-argstable sb-unstyled",
+ },
+ h.createElement(
+ "thead",
+ { className: "docblock-argstable-head" },
+ h.createElement(
+ "tr",
+ null,
+ h.createElement("th", null, h.createElement("span", null, "Name")),
+ n
+ ? null
+ : h.createElement(
+ "th",
+ null,
+ h.createElement("span", null, "Description"),
+ ),
+ n
+ ? null
+ : h.createElement(
+ "th",
+ null,
+ h.createElement("span", null, "Default"),
+ ),
+ t
+ ? h.createElement(
+ "th",
+ null,
+ h.createElement(
+ MI,
+ null,
+ "Control",
+ " ",
+ !l &&
+ r &&
+ h.createElement(
+ jI,
+ { onClick: () => r(), title: "Reset controls" },
+ h.createElement(rR, { "aria-hidden": !0 }),
+ ),
+ ),
+ )
+ : null,
+ ),
+ ),
+ h.createElement(
+ "tbody",
+ { className: "docblock-argstable-body" },
+ p.ungrouped.map((C) =>
+ h.createElement(_a, {
+ key: C.key,
+ row: C,
+ arg: u && u[C.key],
+ ...v,
+ }),
+ ),
+ Object.entries(p.ungroupedSubsections).map(([C, w]) =>
+ h.createElement(
+ ks,
+ { key: C, label: C, level: "subsection", colSpan: y },
+ w.map((E) =>
+ h.createElement(_a, {
+ key: E.key,
+ row: E,
+ arg: u && u[E.key],
+ expandable: x,
+ ...v,
+ }),
+ ),
+ ),
+ ),
+ Object.entries(p.sections).map(([C, w]) =>
+ h.createElement(
+ ks,
+ { key: C, label: C, level: "section", colSpan: y },
+ w.ungrouped.map((E) =>
+ h.createElement(_a, {
+ key: E.key,
+ row: E,
+ arg: u && u[E.key],
+ ...v,
+ }),
+ ),
+ Object.entries(w.subsections).map(([E, $]) =>
+ h.createElement(
+ ks,
+ { key: E, label: E, level: "subsection", colSpan: y },
+ $.map((A) =>
+ h.createElement(_a, {
+ key: A.key,
+ row: A,
+ arg: u && u[A.key],
+ expandable: x,
+ ...v,
+ }),
+ ),
+ ),
+ ),
+ ),
+ ),
+ ),
+ ),
+ );
+ },
+ WI = (e) => `anchor--${e}`,
+ VI = ({ storyId: e, children: t }) =>
+ h.createElement("div", { id: WI(e), className: "sb-anchor" }, t);
+globalThis &&
+ globalThis.__DOCS_CONTEXT__ === void 0 &&
+ ((globalThis.__DOCS_CONTEXT__ = b.createContext(null)),
+ (globalThis.__DOCS_CONTEXT__.displayName = "DocsContext"));
+var Vt = globalThis ? globalThis.__DOCS_CONTEXT__ : b.createContext(null),
+ pn = (e, t) => b.useContext(Vt).resolveOf(e, t),
+ qI = (e) =>
+ e
+ .split("-")
+ .map((t) => t.charAt(0).toUpperCase() + t.slice(1))
+ .join(""),
+ GI = (e) => {
+ if (e)
+ return typeof e == "string"
+ ? e.includes("-")
+ ? qI(e)
+ : e
+ : e.__docgenInfo && e.__docgenInfo.displayName
+ ? e.__docgenInfo.displayName
+ : e.name;
+ };
+function YI(e, t = "start") {
+ e.scrollIntoView({ behavior: "smooth", block: t, inline: "nearest" });
+}
+var KI = Object.create,
+ a2 = Object.defineProperty,
+ XI = Object.getOwnPropertyDescriptor,
+ i2 = Object.getOwnPropertyNames,
+ ZI = Object.getPrototypeOf,
+ JI = Object.prototype.hasOwnProperty,
+ oe = (e, t) =>
+ function () {
+ return (
+ t || (0, e[i2(e)[0]])((t = { exports: {} }).exports, t),
+ t.exports
+ );
+ },
+ QI = (e, t, r, n) => {
+ if ((t && typeof t == "object") || typeof t == "function")
+ for (let o of i2(t))
+ !JI.call(e, o) &&
+ o !== r &&
+ a2(e, o, {
+ get: () => t[o],
+ enumerable: !(n = XI(t, o)) || n.enumerable,
+ });
+ return e;
+ },
+ yp = (e, t, r) => (
+ (r = e != null ? KI(ZI(e)) : {}),
+ QI(
+ !e || !e.__esModule ? a2(r, "default", { value: e, enumerable: !0 }) : r,
+ e,
+ )
+ ),
+ e7 = [
+ "bubbles",
+ "cancelBubble",
+ "cancelable",
+ "composed",
+ "currentTarget",
+ "defaultPrevented",
+ "eventPhase",
+ "isTrusted",
+ "returnValue",
+ "srcElement",
+ "target",
+ "timeStamp",
+ "type",
+ ],
+ t7 = ["detail"];
+function r7(e) {
+ let t = e7
+ .filter((r) => e[r] !== void 0)
+ .reduce((r, n) => ((r[n] = e[n]), r), {});
+ if (e instanceof CustomEvent)
+ for (let r of t7.filter((n) => e[n] !== void 0)) t[r] = e[r];
+ return t;
+}
+var l2 = oe({
+ "node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(
+ e,
+ t,
+ ) {
+ t.exports = Object;
+ },
+ }),
+ n7 = oe({
+ "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e, t) {
+ t.exports = Error;
+ },
+ }),
+ o7 = oe({
+ "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e, t) {
+ t.exports = EvalError;
+ },
+ }),
+ a7 = oe({
+ "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e, t) {
+ t.exports = RangeError;
+ },
+ }),
+ i7 = oe({
+ "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e, t) {
+ t.exports = ReferenceError;
+ },
+ }),
+ l7 = oe({
+ "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(
+ e,
+ t,
+ ) {
+ t.exports = SyntaxError;
+ },
+ }),
+ bp = oe({
+ "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e, t) {
+ t.exports = TypeError;
+ },
+ }),
+ s7 = oe({
+ "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e, t) {
+ t.exports = URIError;
+ },
+ }),
+ u7 = oe({
+ "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(
+ e,
+ t,
+ ) {
+ t.exports = Math.abs;
+ },
+ }),
+ c7 = oe({
+ "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(
+ e,
+ t,
+ ) {
+ t.exports = Math.floor;
+ },
+ }),
+ d7 = oe({
+ "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(
+ e,
+ t,
+ ) {
+ t.exports = Math.max;
+ },
+ }),
+ p7 = oe({
+ "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(
+ e,
+ t,
+ ) {
+ t.exports = Math.min;
+ },
+ }),
+ f7 = oe({
+ "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(
+ e,
+ t,
+ ) {
+ t.exports = Math.pow;
+ },
+ }),
+ g7 = oe({
+ "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(
+ e,
+ t,
+ ) {
+ t.exports = Math.round;
+ },
+ }),
+ m7 = oe({
+ "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(
+ e,
+ t,
+ ) {
+ t.exports =
+ Number.isNaN ||
+ function (r) {
+ return r !== r;
+ };
+ },
+ }),
+ h7 = oe({
+ "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(
+ e,
+ t,
+ ) {
+ var r = m7();
+ t.exports = function (n) {
+ return r(n) || n === 0 ? n : n < 0 ? -1 : 1;
+ };
+ },
+ }),
+ y7 = oe({
+ "node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e, t) {
+ t.exports = Object.getOwnPropertyDescriptor;
+ },
+ }),
+ vp = oe({
+ "node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e, t) {
+ var r = y7();
+ if (r)
+ try {
+ r([], "length");
+ } catch {
+ r = null;
+ }
+ t.exports = r;
+ },
+ }),
+ b7 = oe({
+ "node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(
+ e,
+ t,
+ ) {
+ var r = Object.defineProperty || !1;
+ if (r)
+ try {
+ r({}, "a", { value: 1 });
+ } catch {
+ r = !1;
+ }
+ t.exports = r;
+ },
+ }),
+ s2 = oe({
+ "node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(
+ e,
+ t,
+ ) {
+ t.exports = function () {
+ if (
+ typeof Symbol != "function" ||
+ typeof Object.getOwnPropertySymbols != "function"
+ )
+ return !1;
+ if (typeof Symbol.iterator == "symbol") return !0;
+ var r = {},
+ n = Symbol("test"),
+ o = Object(n);
+ if (
+ typeof n == "string" ||
+ Object.prototype.toString.call(n) !== "[object Symbol]" ||
+ Object.prototype.toString.call(o) !== "[object Symbol]"
+ )
+ return !1;
+ var a = 42;
+ r[n] = a;
+ for (var i in r) return !1;
+ if (
+ (typeof Object.keys == "function" && Object.keys(r).length !== 0) ||
+ (typeof Object.getOwnPropertyNames == "function" &&
+ Object.getOwnPropertyNames(r).length !== 0)
+ )
+ return !1;
+ var l = Object.getOwnPropertySymbols(r);
+ if (
+ l.length !== 1 ||
+ l[0] !== n ||
+ !Object.prototype.propertyIsEnumerable.call(r, n)
+ )
+ return !1;
+ if (typeof Object.getOwnPropertyDescriptor == "function") {
+ var s = Object.getOwnPropertyDescriptor(r, n);
+ if (s.value !== a || s.enumerable !== !0) return !1;
+ }
+ return !0;
+ };
+ },
+ }),
+ u2 = oe({
+ "node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(
+ e,
+ t,
+ ) {
+ var r = typeof Symbol < "u" && Symbol,
+ n = s2();
+ t.exports = function () {
+ return typeof r != "function" ||
+ typeof Symbol != "function" ||
+ typeof r("foo") != "symbol" ||
+ typeof Symbol("bar") != "symbol"
+ ? !1
+ : n();
+ };
+ },
+ }),
+ c2 = oe({
+ "node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js"(
+ e,
+ t,
+ ) {
+ t.exports = (typeof Reflect < "u" && Reflect.getPrototypeOf) || null;
+ },
+ }),
+ d2 = oe({
+ "node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(
+ e,
+ t,
+ ) {
+ var r = l2();
+ t.exports = r.getPrototypeOf || null;
+ },
+ }),
+ v7 = oe({
+ "node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(
+ e,
+ t,
+ ) {
+ var r = "Function.prototype.bind called on incompatible ",
+ n = Object.prototype.toString,
+ o = Math.max,
+ a = "[object Function]",
+ i = function (u, d) {
+ for (var p = [], c = 0; c < u.length; c += 1) p[c] = u[c];
+ for (var f = 0; f < d.length; f += 1) p[f + u.length] = d[f];
+ return p;
+ },
+ l = function (u, d) {
+ for (var p = [], c = d, f = 0; c < u.length; c += 1, f += 1)
+ p[f] = u[c];
+ return p;
+ },
+ s = function (u, d) {
+ for (var p = "", c = 0; c < u.length; c += 1)
+ ((p += u[c]), c + 1 < u.length && (p += d));
+ return p;
+ };
+ t.exports = function (u) {
+ var d = this;
+ if (typeof d != "function" || n.apply(d) !== a)
+ throw new TypeError(r + d);
+ for (
+ var p = l(arguments, 1),
+ c,
+ f = function () {
+ if (this instanceof c) {
+ var C = d.apply(this, i(p, arguments));
+ return Object(C) === C ? C : this;
+ }
+ return d.apply(u, i(p, arguments));
+ },
+ g = o(0, d.length - p.length),
+ y = [],
+ x = 0;
+ x < g;
+ x++
+ )
+ y[x] = "$" + x;
+ if (
+ ((c = Function(
+ "binder",
+ "return function (" +
+ s(y, ",") +
+ "){ return binder.apply(this,arguments); }",
+ )(f)),
+ d.prototype)
+ ) {
+ var v = function () {};
+ ((v.prototype = d.prototype),
+ (c.prototype = new v()),
+ (v.prototype = null));
+ }
+ return c;
+ };
+ },
+ }),
+ Dl = oe({
+ "node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(
+ e,
+ t,
+ ) {
+ var r = v7();
+ t.exports = Function.prototype.bind || r;
+ },
+ }),
+ xp = oe({
+ "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js"(
+ e,
+ t,
+ ) {
+ t.exports = Function.prototype.call;
+ },
+ }),
+ p2 = oe({
+ "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js"(
+ e,
+ t,
+ ) {
+ t.exports = Function.prototype.apply;
+ },
+ }),
+ x7 = oe({
+ "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js"(
+ e,
+ t,
+ ) {
+ t.exports = typeof Reflect < "u" && Reflect && Reflect.apply;
+ },
+ }),
+ E7 = oe({
+ "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(
+ e,
+ t,
+ ) {
+ var r = Dl(),
+ n = p2(),
+ o = xp(),
+ a = x7();
+ t.exports = a || r.call(o, n);
+ },
+ }),
+ f2 = oe({
+ "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(
+ e,
+ t,
+ ) {
+ var r = Dl(),
+ n = bp(),
+ o = xp(),
+ a = E7();
+ t.exports = function (i) {
+ if (i.length < 1 || typeof i[0] != "function")
+ throw new n("a function is required");
+ return a(r, o, i);
+ };
+ },
+ }),
+ w7 = oe({
+ "node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(
+ e,
+ t,
+ ) {
+ var r = f2(),
+ n = vp(),
+ o;
+ try {
+ o = [].__proto__ === Array.prototype;
+ } catch (s) {
+ if (
+ !s ||
+ typeof s != "object" ||
+ !("code" in s) ||
+ s.code !== "ERR_PROTO_ACCESS"
+ )
+ throw s;
+ }
+ var a = !!o && n && n(Object.prototype, "__proto__"),
+ i = Object,
+ l = i.getPrototypeOf;
+ t.exports =
+ a && typeof a.get == "function"
+ ? r([a.get])
+ : typeof l == "function"
+ ? function (s) {
+ return l(s == null ? s : i(s));
+ }
+ : !1;
+ },
+ }),
+ S7 = oe({
+ "node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e, t) {
+ var r = c2(),
+ n = d2(),
+ o = w7();
+ t.exports = r
+ ? function (a) {
+ return r(a);
+ }
+ : n
+ ? function (a) {
+ if (!a || (typeof a != "object" && typeof a != "function"))
+ throw new TypeError("getProto: not an object");
+ return n(a);
+ }
+ : o
+ ? function (a) {
+ return o(a);
+ }
+ : null;
+ },
+ }),
+ g2 = oe({
+ "node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e, t) {
+ var r = Function.prototype.call,
+ n = Object.prototype.hasOwnProperty,
+ o = Dl();
+ t.exports = o.call(r, n);
+ },
+ }),
+ C7 = oe({
+ "node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(
+ e,
+ t,
+ ) {
+ var r,
+ n = l2(),
+ o = n7(),
+ a = o7(),
+ i = a7(),
+ l = i7(),
+ s = l7(),
+ u = bp(),
+ d = s7(),
+ p = u7(),
+ c = c7(),
+ f = d7(),
+ g = p7(),
+ y = f7(),
+ x = g7(),
+ v = h7(),
+ C = Function,
+ w = function (ne) {
+ try {
+ return C('"use strict"; return (' + ne + ").constructor;")();
+ } catch {}
+ },
+ E = vp(),
+ $ = b7(),
+ A = function () {
+ throw new u();
+ },
+ S = E
+ ? (function () {
+ try {
+ return (arguments.callee, A);
+ } catch {
+ try {
+ return E(arguments, "callee").get;
+ } catch {
+ return A;
+ }
+ }
+ })()
+ : A,
+ D = u2()(),
+ F = S7(),
+ k = d2(),
+ _ = c2(),
+ I = p2(),
+ L = xp(),
+ j = {},
+ B = typeof Uint8Array > "u" || !F ? r : F(Uint8Array),
+ z = {
+ __proto__: null,
+ "%AggregateError%": typeof AggregateError > "u" ? r : AggregateError,
+ "%Array%": Array,
+ "%ArrayBuffer%": typeof ArrayBuffer > "u" ? r : ArrayBuffer,
+ "%ArrayIteratorPrototype%": D && F ? F([][Symbol.iterator]()) : r,
+ "%AsyncFromSyncIteratorPrototype%": r,
+ "%AsyncFunction%": j,
+ "%AsyncGenerator%": j,
+ "%AsyncGeneratorFunction%": j,
+ "%AsyncIteratorPrototype%": j,
+ "%Atomics%": typeof Atomics > "u" ? r : Atomics,
+ "%BigInt%": typeof BigInt > "u" ? r : BigInt,
+ "%BigInt64Array%": typeof BigInt64Array > "u" ? r : BigInt64Array,
+ "%BigUint64Array%": typeof BigUint64Array > "u" ? r : BigUint64Array,
+ "%Boolean%": Boolean,
+ "%DataView%": typeof DataView > "u" ? r : DataView,
+ "%Date%": Date,
+ "%decodeURI%": decodeURI,
+ "%decodeURIComponent%": decodeURIComponent,
+ "%encodeURI%": encodeURI,
+ "%encodeURIComponent%": encodeURIComponent,
+ "%Error%": o,
+ "%eval%": eval,
+ "%EvalError%": a,
+ "%Float16Array%": typeof Float16Array > "u" ? r : Float16Array,
+ "%Float32Array%": typeof Float32Array > "u" ? r : Float32Array,
+ "%Float64Array%": typeof Float64Array > "u" ? r : Float64Array,
+ "%FinalizationRegistry%":
+ typeof FinalizationRegistry > "u" ? r : FinalizationRegistry,
+ "%Function%": C,
+ "%GeneratorFunction%": j,
+ "%Int8Array%": typeof Int8Array > "u" ? r : Int8Array,
+ "%Int16Array%": typeof Int16Array > "u" ? r : Int16Array,
+ "%Int32Array%": typeof Int32Array > "u" ? r : Int32Array,
+ "%isFinite%": isFinite,
+ "%isNaN%": isNaN,
+ "%IteratorPrototype%": D && F ? F(F([][Symbol.iterator]())) : r,
+ "%JSON%": typeof JSON == "object" ? JSON : r,
+ "%Map%": typeof Map > "u" ? r : Map,
+ "%MapIteratorPrototype%":
+ typeof Map > "u" || !D || !F ? r : F(new Map()[Symbol.iterator]()),
+ "%Math%": Math,
+ "%Number%": Number,
+ "%Object%": n,
+ "%Object.getOwnPropertyDescriptor%": E,
+ "%parseFloat%": parseFloat,
+ "%parseInt%": parseInt,
+ "%Promise%": typeof Promise > "u" ? r : Promise,
+ "%Proxy%": typeof Proxy > "u" ? r : Proxy,
+ "%RangeError%": i,
+ "%ReferenceError%": l,
+ "%Reflect%": typeof Reflect > "u" ? r : Reflect,
+ "%RegExp%": RegExp,
+ "%Set%": typeof Set > "u" ? r : Set,
+ "%SetIteratorPrototype%":
+ typeof Set > "u" || !D || !F ? r : F(new Set()[Symbol.iterator]()),
+ "%SharedArrayBuffer%":
+ typeof SharedArrayBuffer > "u" ? r : SharedArrayBuffer,
+ "%String%": String,
+ "%StringIteratorPrototype%": D && F ? F(""[Symbol.iterator]()) : r,
+ "%Symbol%": D ? Symbol : r,
+ "%SyntaxError%": s,
+ "%ThrowTypeError%": S,
+ "%TypedArray%": B,
+ "%TypeError%": u,
+ "%Uint8Array%": typeof Uint8Array > "u" ? r : Uint8Array,
+ "%Uint8ClampedArray%":
+ typeof Uint8ClampedArray > "u" ? r : Uint8ClampedArray,
+ "%Uint16Array%": typeof Uint16Array > "u" ? r : Uint16Array,
+ "%Uint32Array%": typeof Uint32Array > "u" ? r : Uint32Array,
+ "%URIError%": d,
+ "%WeakMap%": typeof WeakMap > "u" ? r : WeakMap,
+ "%WeakRef%": typeof WeakRef > "u" ? r : WeakRef,
+ "%WeakSet%": typeof WeakSet > "u" ? r : WeakSet,
+ "%Function.prototype.call%": L,
+ "%Function.prototype.apply%": I,
+ "%Object.defineProperty%": $,
+ "%Object.getPrototypeOf%": k,
+ "%Math.abs%": p,
+ "%Math.floor%": c,
+ "%Math.max%": f,
+ "%Math.min%": g,
+ "%Math.pow%": y,
+ "%Math.round%": x,
+ "%Math.sign%": v,
+ "%Reflect.getPrototypeOf%": _,
+ };
+ if (F)
+ try {
+ null.error;
+ } catch (ne) {
+ ((V = F(F(ne))), (z["%Error.prototype%"] = V));
+ }
+ var V,
+ Y = function ne(de) {
+ var M;
+ if (de === "%AsyncFunction%") M = w("async function () {}");
+ else if (de === "%GeneratorFunction%") M = w("function* () {}");
+ else if (de === "%AsyncGeneratorFunction%")
+ M = w("async function* () {}");
+ else if (de === "%AsyncGenerator%") {
+ var U = ne("%AsyncGeneratorFunction%");
+ U && (M = U.prototype);
+ } else if (de === "%AsyncIteratorPrototype%") {
+ var fe = ne("%AsyncGenerator%");
+ fe && F && (M = F(fe.prototype));
+ }
+ return ((z[de] = M), M);
+ },
+ W = {
+ __proto__: null,
+ "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
+ "%ArrayPrototype%": ["Array", "prototype"],
+ "%ArrayProto_entries%": ["Array", "prototype", "entries"],
+ "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
+ "%ArrayProto_keys%": ["Array", "prototype", "keys"],
+ "%ArrayProto_values%": ["Array", "prototype", "values"],
+ "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
+ "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
+ "%AsyncGeneratorPrototype%": [
+ "AsyncGeneratorFunction",
+ "prototype",
+ "prototype",
+ ],
+ "%BooleanPrototype%": ["Boolean", "prototype"],
+ "%DataViewPrototype%": ["DataView", "prototype"],
+ "%DatePrototype%": ["Date", "prototype"],
+ "%ErrorPrototype%": ["Error", "prototype"],
+ "%EvalErrorPrototype%": ["EvalError", "prototype"],
+ "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
+ "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
+ "%FunctionPrototype%": ["Function", "prototype"],
+ "%Generator%": ["GeneratorFunction", "prototype"],
+ "%GeneratorPrototype%": [
+ "GeneratorFunction",
+ "prototype",
+ "prototype",
+ ],
+ "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
+ "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
+ "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
+ "%JSONParse%": ["JSON", "parse"],
+ "%JSONStringify%": ["JSON", "stringify"],
+ "%MapPrototype%": ["Map", "prototype"],
+ "%NumberPrototype%": ["Number", "prototype"],
+ "%ObjectPrototype%": ["Object", "prototype"],
+ "%ObjProto_toString%": ["Object", "prototype", "toString"],
+ "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
+ "%PromisePrototype%": ["Promise", "prototype"],
+ "%PromiseProto_then%": ["Promise", "prototype", "then"],
+ "%Promise_all%": ["Promise", "all"],
+ "%Promise_reject%": ["Promise", "reject"],
+ "%Promise_resolve%": ["Promise", "resolve"],
+ "%RangeErrorPrototype%": ["RangeError", "prototype"],
+ "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
+ "%RegExpPrototype%": ["RegExp", "prototype"],
+ "%SetPrototype%": ["Set", "prototype"],
+ "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
+ "%StringPrototype%": ["String", "prototype"],
+ "%SymbolPrototype%": ["Symbol", "prototype"],
+ "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
+ "%TypedArrayPrototype%": ["TypedArray", "prototype"],
+ "%TypeErrorPrototype%": ["TypeError", "prototype"],
+ "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
+ "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
+ "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
+ "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
+ "%URIErrorPrototype%": ["URIError", "prototype"],
+ "%WeakMapPrototype%": ["WeakMap", "prototype"],
+ "%WeakSetPrototype%": ["WeakSet", "prototype"],
+ },
+ G = Dl(),
+ J = g2(),
+ Q = G.call(L, Array.prototype.concat),
+ re = G.call(I, Array.prototype.splice),
+ ie = G.call(L, String.prototype.replace),
+ H = G.call(L, String.prototype.slice),
+ X = G.call(L, RegExp.prototype.exec),
+ Z =
+ /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,
+ le = /\\(\\)?/g,
+ me = function (ne) {
+ var de = H(ne, 0, 1),
+ M = H(ne, -1);
+ if (de === "%" && M !== "%")
+ throw new s("invalid intrinsic syntax, expected closing `%`");
+ if (M === "%" && de !== "%")
+ throw new s("invalid intrinsic syntax, expected opening `%`");
+ var U = [];
+ return (
+ ie(ne, Z, function (fe, ke, be, We) {
+ U[U.length] = be ? ie(We, le, "$1") : ke || fe;
+ }),
+ U
+ );
+ },
+ Re = function (ne, de) {
+ var M = ne,
+ U;
+ if ((J(W, M) && ((U = W[M]), (M = "%" + U[0] + "%")), J(z, M))) {
+ var fe = z[M];
+ if ((fe === j && (fe = Y(M)), typeof fe > "u" && !de))
+ throw new u(
+ "intrinsic " +
+ ne +
+ " exists, but is not available. Please file an issue!",
+ );
+ return { alias: U, name: M, value: fe };
+ }
+ throw new s("intrinsic " + ne + " does not exist!");
+ };
+ t.exports = function (ne, de) {
+ if (typeof ne != "string" || ne.length === 0)
+ throw new u("intrinsic name must be a non-empty string");
+ if (arguments.length > 1 && typeof de != "boolean")
+ throw new u('"allowMissing" argument must be a boolean');
+ if (X(/^%?[^%]*%?$/, ne) === null)
+ throw new s(
+ "`%` may not be present anywhere but at the beginning and end of the intrinsic name",
+ );
+ var M = me(ne),
+ U = M.length > 0 ? M[0] : "",
+ fe = Re("%" + U + "%", de),
+ ke = fe.name,
+ be = fe.value,
+ We = !1,
+ pr = fe.alias;
+ pr && ((U = pr[0]), re(M, Q([0, 1], pr)));
+ for (var Ce = 1, nt = !0; Ce < M.length; Ce += 1) {
+ var $e = M[Ce],
+ ht = H($e, 0, 1),
+ Ve = H($e, -1);
+ if (
+ (ht === '"' ||
+ ht === "'" ||
+ ht === "`" ||
+ Ve === '"' ||
+ Ve === "'" ||
+ Ve === "`") &&
+ ht !== Ve
+ )
+ throw new s("property names with quotes must have matching quotes");
+ if (
+ (($e === "constructor" || !nt) && (We = !0),
+ (U += "." + $e),
+ (ke = "%" + U + "%"),
+ J(z, ke))
+ )
+ be = z[ke];
+ else if (be != null) {
+ if (!($e in be)) {
+ if (!de)
+ throw new u(
+ "base intrinsic for " +
+ ne +
+ " exists, but the property is not available.",
+ );
+ return;
+ }
+ if (E && Ce + 1 >= M.length) {
+ var yt = E(be, $e);
+ ((nt = !!yt),
+ nt && "get" in yt && !("originalValue" in yt.get)
+ ? (be = yt.get)
+ : (be = be[$e]));
+ } else ((nt = J(be, $e)), (be = be[$e]));
+ nt && !We && (z[ke] = be);
+ }
+ }
+ return be;
+ };
+ },
+ }),
+ Ep = oe({
+ "node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(
+ e,
+ t,
+ ) {
+ var r = C7(),
+ n = f2(),
+ o = n([r("%String.prototype.indexOf%")]);
+ t.exports = function (a, i) {
+ var l = r(a, !!i);
+ return typeof l == "function" && o(a, ".prototype.") > -1 ? n([l]) : l;
+ };
+ },
+ }),
+ $7 = oe({
+ "node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(
+ e,
+ t,
+ ) {
+ var r = s2();
+ t.exports = function () {
+ return r() && !!Symbol.toStringTag;
+ };
+ },
+ }),
+ m2 = oe({
+ "node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e, t) {
+ var r = Ep(),
+ n = $7()(),
+ o = g2(),
+ a = vp(),
+ i;
+ n
+ ? ((l = r("RegExp.prototype.exec")),
+ (s = {}),
+ (u = function () {
+ throw s;
+ }),
+ (d = { toString: u, valueOf: u }),
+ typeof Symbol.toPrimitive == "symbol" && (d[Symbol.toPrimitive] = u),
+ (i = function (f) {
+ if (!f || typeof f != "object") return !1;
+ var g = a(f, "lastIndex"),
+ y = g && o(g, "value");
+ if (!y) return !1;
+ try {
+ l(f, d);
+ } catch (x) {
+ return x === s;
+ }
+ }))
+ : ((p = r("Object.prototype.toString")),
+ (c = "[object RegExp]"),
+ (i = function (f) {
+ return !f || (typeof f != "object" && typeof f != "function")
+ ? !1
+ : p(f) === c;
+ }));
+ var l, s, u, d, p, c;
+ t.exports = i;
+ },
+ }),
+ A7 = oe({
+ "node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js"(
+ e,
+ t,
+ ) {
+ t.exports = n;
+ var r = Object.prototype.toString;
+ function n(o) {
+ if (!o) return !1;
+ var a = r.call(o);
+ return (
+ a === "[object Function]" ||
+ (typeof o == "function" && a !== "[object RegExp]") ||
+ (typeof window < "u" &&
+ (o === window.setTimeout ||
+ o === window.alert ||
+ o === window.confirm ||
+ o === window.prompt))
+ );
+ }
+ },
+ }),
+ D7 = oe({
+ "node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(
+ e,
+ t,
+ ) {
+ var r = Ep(),
+ n = m2(),
+ o = r("RegExp.prototype.exec"),
+ a = bp();
+ t.exports = function (i) {
+ if (!n(i)) throw new a("`regex` must be a RegExp");
+ return function (l) {
+ return o(i, l) !== null;
+ };
+ };
+ },
+ }),
+ k7 = oe({
+ "node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e, t) {
+ var r = Ep(),
+ n = r("Object.prototype.toString"),
+ o = u2()(),
+ a = D7();
+ o
+ ? ((i = r("Symbol.prototype.toString")),
+ (l = a(/^Symbol\(.*\)$/)),
+ (s = function (u) {
+ return typeof u.valueOf() != "symbol" ? !1 : l(i(u));
+ }),
+ (t.exports = function (u) {
+ if (typeof u == "symbol") return !0;
+ if (!u || typeof u != "object" || n(u) !== "[object Symbol]")
+ return !1;
+ try {
+ return s(u);
+ } catch {
+ return !1;
+ }
+ }))
+ : (t.exports = function (u) {
+ return !1;
+ });
+ var i, l, s;
+ },
+ }),
+ O7 = yp(m2()),
+ F7 = yp(A7()),
+ _7 = yp(k7());
+function T7(e) {
+ return e != null && typeof e == "object" && Array.isArray(e) === !1;
+}
+var R7 =
+ typeof global == "object" && global && global.Object === Object && global,
+ P7 = R7,
+ I7 = typeof self == "object" && self && self.Object === Object && self,
+ L7 = P7 || I7 || Function("return this")(),
+ wp = L7,
+ B7 = wp.Symbol,
+ no = B7,
+ h2 = Object.prototype,
+ N7 = h2.hasOwnProperty,
+ j7 = h2.toString,
+ Ao = no ? no.toStringTag : void 0;
+function M7(e) {
+ var t = N7.call(e, Ao),
+ r = e[Ao];
+ try {
+ e[Ao] = void 0;
+ var n = !0;
+ } catch {}
+ var o = j7.call(e);
+ return (n && (t ? (e[Ao] = r) : delete e[Ao]), o);
+}
+var z7 = M7,
+ H7 = Object.prototype,
+ U7 = H7.toString;
+function W7(e) {
+ return U7.call(e);
+}
+var V7 = W7,
+ q7 = "[object Null]",
+ G7 = "[object Undefined]",
+ eh = no ? no.toStringTag : void 0;
+function Y7(e) {
+ return e == null
+ ? e === void 0
+ ? G7
+ : q7
+ : eh && eh in Object(e)
+ ? z7(e)
+ : V7(e);
+}
+var K7 = Y7,
+ th = no ? no.prototype : void 0;
+th && th.toString;
+function X7(e) {
+ var t = typeof e;
+ return e != null && (t == "object" || t == "function");
+}
+var y2 = X7,
+ Z7 = "[object AsyncFunction]",
+ J7 = "[object Function]",
+ Q7 = "[object GeneratorFunction]",
+ eL = "[object Proxy]";
+function tL(e) {
+ if (!y2(e)) return !1;
+ var t = K7(e);
+ return t == J7 || t == Q7 || t == Z7 || t == eL;
+}
+var rL = tL,
+ nL = wp["__core-js_shared__"],
+ Os = nL,
+ rh = (function () {
+ var e = /[^.]+$/.exec((Os && Os.keys && Os.keys.IE_PROTO) || "");
+ return e ? "Symbol(src)_1." + e : "";
+ })();
+function oL(e) {
+ return !!rh && rh in e;
+}
+var aL = oL,
+ iL = Function.prototype,
+ lL = iL.toString;
+function sL(e) {
+ if (e != null) {
+ try {
+ return lL.call(e);
+ } catch {}
+ try {
+ return e + "";
+ } catch {}
+ }
+ return "";
+}
+var uL = sL,
+ cL = /[\\^$.*+?()[\]{}|]/g,
+ dL = /^\[object .+?Constructor\]$/,
+ pL = Function.prototype,
+ fL = Object.prototype,
+ gL = pL.toString,
+ mL = fL.hasOwnProperty,
+ hL = RegExp(
+ "^" +
+ gL
+ .call(mL)
+ .replace(cL, "\\$&")
+ .replace(
+ /hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,
+ "$1.*?",
+ ) +
+ "$",
+ );
+function yL(e) {
+ if (!y2(e) || aL(e)) return !1;
+ var t = rL(e) ? hL : dL;
+ return t.test(uL(e));
+}
+var bL = yL;
+function vL(e, t) {
+ return e?.[t];
+}
+var xL = vL;
+function EL(e, t) {
+ var r = xL(e, t);
+ return bL(r) ? r : void 0;
+}
+var b2 = EL;
+function wL(e, t) {
+ return e === t || (e !== e && t !== t);
+}
+var SL = wL,
+ CL = b2(Object, "create"),
+ ea = CL;
+function $L() {
+ ((this.__data__ = ea ? ea(null) : {}), (this.size = 0));
+}
+var AL = $L;
+function DL(e) {
+ var t = this.has(e) && delete this.__data__[e];
+ return ((this.size -= t ? 1 : 0), t);
+}
+var kL = DL,
+ OL = "__lodash_hash_undefined__",
+ FL = Object.prototype,
+ _L = FL.hasOwnProperty;
+function TL(e) {
+ var t = this.__data__;
+ if (ea) {
+ var r = t[e];
+ return r === OL ? void 0 : r;
+ }
+ return _L.call(t, e) ? t[e] : void 0;
+}
+var RL = TL,
+ PL = Object.prototype,
+ IL = PL.hasOwnProperty;
+function LL(e) {
+ var t = this.__data__;
+ return ea ? t[e] !== void 0 : IL.call(t, e);
+}
+var BL = LL,
+ NL = "__lodash_hash_undefined__";
+function jL(e, t) {
+ var r = this.__data__;
+ return (
+ (this.size += this.has(e) ? 0 : 1),
+ (r[e] = ea && t === void 0 ? NL : t),
+ this
+ );
+}
+var ML = jL;
+function po(e) {
+ var t = -1,
+ r = e == null ? 0 : e.length;
+ for (this.clear(); ++t < r; ) {
+ var n = e[t];
+ this.set(n[0], n[1]);
+ }
+}
+po.prototype.clear = AL;
+po.prototype.delete = kL;
+po.prototype.get = RL;
+po.prototype.has = BL;
+po.prototype.set = ML;
+var nh = po;
+function zL() {
+ ((this.__data__ = []), (this.size = 0));
+}
+var HL = zL;
+function UL(e, t) {
+ for (var r = e.length; r--; ) if (SL(e[r][0], t)) return r;
+ return -1;
+}
+var kl = UL,
+ WL = Array.prototype,
+ VL = WL.splice;
+function qL(e) {
+ var t = this.__data__,
+ r = kl(t, e);
+ if (r < 0) return !1;
+ var n = t.length - 1;
+ return (r == n ? t.pop() : VL.call(t, r, 1), --this.size, !0);
+}
+var GL = qL;
+function YL(e) {
+ var t = this.__data__,
+ r = kl(t, e);
+ return r < 0 ? void 0 : t[r][1];
+}
+var KL = YL;
+function XL(e) {
+ return kl(this.__data__, e) > -1;
+}
+var ZL = XL;
+function JL(e, t) {
+ var r = this.__data__,
+ n = kl(r, e);
+ return (n < 0 ? (++this.size, r.push([e, t])) : (r[n][1] = t), this);
+}
+var QL = JL;
+function fo(e) {
+ var t = -1,
+ r = e == null ? 0 : e.length;
+ for (this.clear(); ++t < r; ) {
+ var n = e[t];
+ this.set(n[0], n[1]);
+ }
+}
+fo.prototype.clear = HL;
+fo.prototype.delete = GL;
+fo.prototype.get = KL;
+fo.prototype.has = ZL;
+fo.prototype.set = QL;
+var eB = fo,
+ tB = b2(wp, "Map"),
+ rB = tB;
+function nB() {
+ ((this.size = 0),
+ (this.__data__ = {
+ hash: new nh(),
+ map: new (rB || eB)(),
+ string: new nh(),
+ }));
+}
+var oB = nB;
+function aB(e) {
+ var t = typeof e;
+ return t == "string" || t == "number" || t == "symbol" || t == "boolean"
+ ? e !== "__proto__"
+ : e === null;
+}
+var iB = aB;
+function lB(e, t) {
+ var r = e.__data__;
+ return iB(t) ? r[typeof t == "string" ? "string" : "hash"] : r.map;
+}
+var Ol = lB;
+function sB(e) {
+ var t = Ol(this, e).delete(e);
+ return ((this.size -= t ? 1 : 0), t);
+}
+var uB = sB;
+function cB(e) {
+ return Ol(this, e).get(e);
+}
+var dB = cB;
+function pB(e) {
+ return Ol(this, e).has(e);
+}
+var fB = pB;
+function gB(e, t) {
+ var r = Ol(this, e),
+ n = r.size;
+ return (r.set(e, t), (this.size += r.size == n ? 0 : 1), this);
+}
+var mB = gB;
+function go(e) {
+ var t = -1,
+ r = e == null ? 0 : e.length;
+ for (this.clear(); ++t < r; ) {
+ var n = e[t];
+ this.set(n[0], n[1]);
+ }
+}
+go.prototype.clear = oB;
+go.prototype.delete = uB;
+go.prototype.get = dB;
+go.prototype.has = fB;
+go.prototype.set = mB;
+var v2 = go,
+ hB = "Expected a function";
+function Sp(e, t) {
+ if (typeof e != "function" || (t != null && typeof t != "function"))
+ throw new TypeError(hB);
+ var r = function () {
+ var n = arguments,
+ o = t ? t.apply(this, n) : n[0],
+ a = r.cache;
+ if (a.has(o)) return a.get(o);
+ var i = e.apply(this, n);
+ return ((r.cache = a.set(o, i) || a), i);
+ };
+ return ((r.cache = new (Sp.Cache || v2)()), r);
+}
+Sp.Cache = v2;
+var yB = Sp,
+ bB = 500;
+function vB(e) {
+ var t = yB(e, function (n) {
+ return (r.size === bB && r.clear(), n);
+ }),
+ r = t.cache;
+ return t;
+}
+var xB = vB,
+ EB =
+ /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,
+ wB = /\\(\\)?/g;
+xB(function (e) {
+ var t = [];
+ return (
+ e.charCodeAt(0) === 46 && t.push(""),
+ e.replace(EB, function (r, n, o, a) {
+ t.push(o ? a.replace(wB, "$1") : n || r);
+ }),
+ t
+ );
+});
+var SB = T7,
+ CB = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/;
+function x2(e) {
+ if (!SB(e)) return e;
+ let t = e,
+ r = !1;
+ return (
+ typeof Event < "u" && e instanceof Event && ((t = r7(t)), (r = !0)),
+ (t = Object.keys(t).reduce((n, o) => {
+ try {
+ (t[o] && t[o].toJSON, (n[o] = t[o]));
+ } catch {
+ r = !0;
+ }
+ return n;
+ }, {})),
+ r ? t : e
+ );
+}
+var $B = function (e) {
+ let t, r, n, o;
+ return function (a, i) {
+ try {
+ if (a === "")
+ return (
+ (o = []),
+ (t = new Map([[i, "[]"]])),
+ (r = new Map()),
+ (n = []),
+ i
+ );
+ let l = r.get(this) || this;
+ for (; n.length && l !== n[0]; ) (n.shift(), o.pop());
+ if (typeof i == "boolean") return i;
+ if (i === void 0) return e.allowUndefined ? "_undefined_" : void 0;
+ if (i === null) return null;
+ if (typeof i == "number")
+ return i === Number.NEGATIVE_INFINITY
+ ? "_-Infinity_"
+ : i === Number.POSITIVE_INFINITY
+ ? "_Infinity_"
+ : Number.isNaN(i)
+ ? "_NaN_"
+ : i;
+ if (typeof i == "bigint") return `_bigint_${i.toString()}`;
+ if (typeof i == "string")
+ return CB.test(i) ? (e.allowDate ? `_date_${i}` : void 0) : i;
+ if ((0, O7.default)(i))
+ return e.allowRegExp ? `_regexp_${i.flags}|${i.source}` : void 0;
+ if ((0, F7.default)(i)) return;
+ if ((0, _7.default)(i)) {
+ if (!e.allowSymbol) return;
+ let u = Symbol.keyFor(i);
+ return u !== void 0
+ ? `_gsymbol_${u}`
+ : `_symbol_${i.toString().slice(7, -1)}`;
+ }
+ if (n.length >= e.maxDepth)
+ return Array.isArray(i) ? `[Array(${i.length})]` : "[Object]";
+ if (i === this) return `_duplicate_${JSON.stringify(o)}`;
+ if (i instanceof Error && e.allowError)
+ return {
+ __isConvertedError__: !0,
+ errorProperties: {
+ ...(i.cause ? { cause: i.cause } : {}),
+ ...i,
+ name: i.name,
+ message: i.message,
+ stack: i.stack,
+ "_constructor-name_": i.constructor.name,
+ },
+ };
+ if (
+ i?.constructor?.name &&
+ i.constructor.name !== "Object" &&
+ !Array.isArray(i)
+ ) {
+ let u = t.get(i);
+ if (!u) {
+ let d = {
+ __isClassInstance__: !0,
+ __className__: i.constructor.name,
+ ...Object.getOwnPropertyNames(i).reduce((p, c) => {
+ try {
+ p[c] = i[c];
+ } catch {}
+ return p;
+ }, {}),
+ };
+ return (
+ o.push(a),
+ n.unshift(d),
+ t.set(i, JSON.stringify(o)),
+ i !== d && r.set(i, d),
+ d
+ );
+ }
+ return `_duplicate_${u}`;
+ }
+ let s = t.get(i);
+ if (!s) {
+ let u = Array.isArray(i) ? i : x2(i);
+ return (
+ o.push(a),
+ n.unshift(u),
+ t.set(i, JSON.stringify(o)),
+ i !== u && r.set(i, u),
+ u
+ );
+ }
+ return `_duplicate_${s}`;
+ } catch {
+ return;
+ }
+ };
+ },
+ AB = {
+ maxDepth: 10,
+ space: void 0,
+ allowRegExp: !0,
+ allowDate: !0,
+ allowError: !0,
+ allowUndefined: !0,
+ allowSymbol: !0,
+ },
+ DB = (e, t = {}) => {
+ let r = { ...AB, ...t };
+ return JSON.stringify(x2(e), $B(r), t.space);
+ };
+function E2(e) {
+ return DB(e, { maxDepth: 50 });
+}
+var w2 = b.createContext({ sources: {} }),
+ S2 = "--unknown--",
+ kB = ({ children: e, channel: t }) => {
+ let [r, n] = b.useState({});
+ return (
+ b.useEffect(() => {
+ let o = (a, i = null, l = !1) => {
+ let {
+ id: s,
+ args: u = void 0,
+ source: d,
+ format: p,
+ } = typeof a == "string" ? { id: a, source: i, format: l } : a,
+ c = u ? E2(u) : S2;
+ n((f) => ({
+ ...f,
+ [s]: { ...f[s], [c]: { code: d || "", format: p } },
+ }));
+ };
+ return (t.on(Fp, o), () => t.off(Fp, o));
+ }, []),
+ h.createElement(w2.Provider, { value: { sources: r } }, e)
+ );
+ };
+function OB(e, t, r) {
+ let [n, o] = b.useState("Transforming..."),
+ a = t ? t?.(e, r) : e;
+ return (
+ b.useEffect(() => {
+ async function i() {
+ let l = await a;
+ l !== n && o(l);
+ }
+ i();
+ }),
+ typeof a == "object" && typeof a.then == "function" ? n : a
+ );
+}
+var FB = (e, t, r) => {
+ let { sources: n } = r,
+ o = n?.[e];
+ return o?.[E2(t)] || o?.[S2] || { code: "" };
+ },
+ _B = ({
+ snippet: e,
+ storyContext: t,
+ typeFromProps: r,
+ transformFromProps: n,
+ }) => {
+ let o = t.parameters ?? {},
+ { __isArgsStory: a } = o,
+ i = o.docs?.source || {},
+ l = r || i.type || Tl.AUTO,
+ s =
+ l === Tl.DYNAMIC || (l === Tl.AUTO && e && a)
+ ? e
+ : i.originalSource || "",
+ u = n ?? i.transform,
+ d = u ? OB(s, u, t) : s;
+ return i.code !== void 0 ? i.code : d;
+ },
+ TB = (e, t, r) => {
+ let { of: n } = e,
+ o = b.useMemo(() => {
+ if (n) return t.resolveOf(n, ["story"]).story;
+ try {
+ return t.storyById();
+ } catch {}
+ }, [t, n]),
+ a = o ? t.getStoryContext(o) : {},
+ i = e.__forceInitialArgs ? a.initialArgs : a.unmappedArgs,
+ l = o ? FB(o.id, i, r) : null,
+ s = _B({
+ snippet: l ? l.code : "",
+ storyContext: { ...a, args: i },
+ typeFromProps: e.type,
+ transformFromProps: e.transform,
+ });
+ if ("of" in e && n === void 0)
+ throw new Error(
+ "Unexpected `of={undefined}`, did you mistype a CSF file reference?",
+ );
+ let u = o?.parameters?.docs?.source || {},
+ d = e.format,
+ p = e.language ?? u.language ?? "jsx",
+ c = e.dark ?? u.dark ?? !1;
+ return !e.code && !o
+ ? { error: "Oh no! The source is not available." }
+ : e.code
+ ? { code: e.code, format: d, language: p, dark: c }
+ : ((d = l?.format ?? !0), { code: s, format: d, language: p, dark: c });
+ };
+function RB(e, t) {
+ let r = PB([e], t);
+ return r && r[0];
+}
+function PB(e, t) {
+ let [r, n] = b.useState({});
+ return (
+ b.useEffect(() => {
+ Promise.all(
+ e.map(async (o) => {
+ let a = await t.loadStory(o);
+ n((i) => (i[o] === a ? i : { ...i, [o]: a }));
+ }),
+ );
+ }),
+ e.map((o) => {
+ if (r[o]) return r[o];
+ try {
+ return t.storyById(o);
+ } catch {
+ return;
+ }
+ })
+ );
+}
+var IB = (e, t) => {
+ let { of: r, meta: n } = e;
+ if ("of" in e && r === void 0)
+ throw new Error(
+ "Unexpected `of={undefined}`, did you mistype a CSF file reference?",
+ );
+ return (
+ n && t.referenceMeta(n, !1),
+ t.resolveOf(r || "story", ["story"]).story.id
+ );
+ },
+ LB = (e, t, r) => {
+ let { parameters: n = {} } = t || {},
+ { docs: o = {} } = n,
+ a = o.story || {};
+ if (o.disable) return null;
+ if (e.inline ?? a.inline ?? !1) {
+ let l = e.height ?? a.height,
+ s = e.autoplay ?? a.autoplay ?? !1;
+ return {
+ story: t,
+ inline: !0,
+ height: l,
+ autoplay: s,
+ forceInitialArgs: !!e.__forceInitialArgs,
+ primary: !!e.__primary,
+ renderStoryToElement: r.renderStoryToElement,
+ };
+ }
+ let i = e.height ?? a.height ?? a.iframeHeight ?? "100px";
+ return { story: t, inline: !1, height: i, primary: !!e.__primary };
+ },
+ BB = (e = { __forceInitialArgs: !1, __primary: !1 }) => {
+ let t = b.useContext(Vt),
+ r = IB(e, t),
+ n = RB(r, t);
+ if (!n) return h.createElement(SS, null);
+ let o = LB(e, n, t);
+ return o ? h.createElement(f6, { ...o }) : null;
+ },
+ NB = (e) => {
+ let t = b.useContext(Vt),
+ r = b.useContext(w2),
+ { of: n, source: o } = e;
+ if ("of" in e && n === void 0)
+ throw new Error(
+ "Unexpected `of={undefined}`, did you mistype a CSF file reference?",
+ );
+ let { story: a } = pn(n || "story", ["story"]),
+ i = TB({ ...o, ...(n && { of: n }) }, t, r),
+ l =
+ e.layout ??
+ a.parameters.layout ??
+ a.parameters.docs?.canvas?.layout ??
+ "padded",
+ s = e.withToolbar ?? a.parameters.docs?.canvas?.withToolbar ?? !1,
+ u = e.additionalActions ?? a.parameters.docs?.canvas?.additionalActions,
+ d = e.sourceState ?? a.parameters.docs?.canvas?.sourceState ?? "hidden",
+ p = e.className ?? a.parameters.docs?.canvas?.className,
+ c = e.story?.inline ?? a.parameters?.docs?.story?.inline ?? !1;
+ return h.createElement(
+ CS,
+ {
+ withSource: d === "none" ? void 0 : i,
+ isExpanded: d === "shown",
+ withToolbar: s,
+ additionalActions: u,
+ className: p,
+ layout: l,
+ inline: c,
+ },
+ h.createElement(BB, {
+ of: n || a.moduleExport,
+ meta: e.meta,
+ ...e.story,
+ }),
+ );
+ },
+ jB = (e, t) => {
+ let r = MB(e, t);
+ if (!r) throw new Error("No result when story was defined");
+ return r;
+ },
+ MB = (e, t) => {
+ let r = e ? t.getStoryContext(e) : { args: {} },
+ { id: n } = e || { id: "none" },
+ [o, a] = b.useState(r.args);
+ b.useEffect(() => {
+ let s = (u) => {
+ u.storyId === n && a(u.args);
+ };
+ return (t.channel.on(Am, s), () => t.channel.off(Am, s));
+ }, [n, t.channel]);
+ let i = b.useCallback(
+ (s) => t.channel.emit(iR, { storyId: n, updatedArgs: s }),
+ [n, t.channel],
+ ),
+ l = b.useCallback(
+ (s) => t.channel.emit(lR, { storyId: n, argNames: s }),
+ [n, t.channel],
+ );
+ return e && [o, i, l];
+ },
+ zB = (e, t) => {
+ let r = t.getStoryContext(e),
+ [n, o] = b.useState(r.globals);
+ return (
+ b.useEffect(() => {
+ let a = (i) => {
+ o(i.globals);
+ };
+ return (t.channel.on(Dm, a), () => t.channel.off(Dm, a));
+ }, [t.channel]),
+ [n]
+ );
+ };
+function HB(e, t) {
+ let { extractArgTypes: r } = t.docs || {};
+ if (!r)
+ throw new Error(
+ "Args unsupported. See Args documentation for your framework.",
+ );
+ return r(e);
+}
+var UB = (e) => {
+ let { of: t } = e;
+ if ("of" in e && t === void 0)
+ throw new Error(
+ "Unexpected `of={undefined}`, did you mistype a CSF file reference?",
+ );
+ let r = b.useContext(Vt),
+ { story: n } = r.resolveOf(t || "story", ["story"]),
+ { parameters: o, argTypes: a, component: i, subcomponents: l } = n,
+ s = o.docs?.controls || {},
+ u = e.include ?? s.include,
+ d = e.exclude ?? s.exclude,
+ p = e.sort ?? s.sort,
+ [c, f, g] = jB(n, r),
+ [y] = zB(n, r),
+ x = km(a, u, d);
+ if (!(l && Object.keys(l || {}).length > 0))
+ return Object.keys(x).length > 0 || Object.keys(c).length > 0
+ ? h.createElement(lc, {
+ rows: x,
+ sort: p,
+ args: c,
+ globals: y,
+ updateArgs: f,
+ resetArgs: g,
+ })
+ : null;
+ let v = GI(i) || "Story",
+ C = Object.fromEntries(
+ Object.entries(l || {}).map(([E, $]) => [
+ E,
+ { rows: km(HB($, o), u, d), sort: p },
+ ]),
+ ),
+ w = { [v]: { rows: x, sort: p }, ...C };
+ return h.createElement(C6, {
+ tabs: w,
+ sort: p,
+ args: c,
+ globals: y,
+ updateArgs: f,
+ resetArgs: g,
+ });
+ },
+ { document: C2 } = globalThis,
+ $2 = ({ className: e, children: t, ...r }) => {
+ if (typeof e != "string" && (typeof t != "string" || !t.match(/[\n\r]/g)))
+ return h.createElement(zd, null, t);
+ let n = e && e.split("-");
+ return h.createElement(ES, {
+ language: (n && n[1]) || "text",
+ format: !1,
+ code: t,
+ ...r,
+ });
+ };
+function Cp(e, t) {
+ e.channel.emit(gS, t);
+}
+var sc = dS.a,
+ WB = ({ hash: e, children: t }) => {
+ let r = b.useContext(Vt);
+ return h.createElement(
+ sc,
+ {
+ href: e,
+ target: "_self",
+ onClick: (n) => {
+ let o = e.substring(1);
+ C2.getElementById(o) && Cp(r, e);
+ },
+ },
+ t,
+ );
+ },
+ A2 = (e) => {
+ let { href: t, target: r, children: n, ...o } = e,
+ a = b.useContext(Vt);
+ return !t || r === "_blank" || /^https?:\/\//.test(t)
+ ? h.createElement(sc, { ...e })
+ : t.startsWith("#")
+ ? h.createElement(WB, { hash: t }, n)
+ : h.createElement(
+ sc,
+ {
+ href: t,
+ onClick: (i) => {
+ i.button === 0 &&
+ !i.altKey &&
+ !i.ctrlKey &&
+ !i.metaKey &&
+ !i.shiftKey &&
+ (i.preventDefault(),
+ Cp(a, i.currentTarget.getAttribute("href") || ""));
+ },
+ target: r,
+ ...o,
+ },
+ n,
+ );
+ },
+ D2 = ["h1", "h2", "h3", "h4", "h5", "h6"],
+ VB = D2.reduce(
+ (e, t) => ({
+ ...e,
+ [t]: T(t)({
+ "& svg": { position: "relative", top: "-0.1em", visibility: "hidden" },
+ "&:hover svg": { visibility: "visible" },
+ }),
+ }),
+ {},
+ ),
+ qB = T.a(() => ({
+ float: "left",
+ lineHeight: "inherit",
+ paddingRight: "10px",
+ marginLeft: "-24px",
+ color: "inherit",
+ })),
+ GB = ({ as: e, id: t, children: r, ...n }) => {
+ let o = b.useContext(Vt),
+ a = VB[e],
+ i = `#${t}`;
+ return h.createElement(
+ a,
+ { id: t, ...n },
+ h.createElement(
+ qB,
+ {
+ "aria-hidden": "true",
+ href: i,
+ tabIndex: -1,
+ target: "_self",
+ onClick: (l) => {
+ C2.getElementById(t) && Cp(o, i);
+ },
+ },
+ h.createElement(JT, null),
+ ),
+ r,
+ );
+ },
+ $p = (e) => {
+ let { as: t, id: r, children: n, ...o } = e;
+ if (r) return h.createElement(GB, { as: t, id: r, ...o }, n);
+ let a = t,
+ { as: i, ...l } = e;
+ return h.createElement(a, { ...ve(l, t) });
+ },
+ k2 = D2.reduce(
+ (e, t) => ({ ...e, [t]: (r) => h.createElement($p, { as: t, ...r }) }),
+ {},
+ ),
+ YB = (e) => {
+ if (!e.children) return null;
+ if (typeof e.children != "string")
+ throw new Error(nR`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}'
This is often caused by not wrapping the child in a template string.
This is invalid:
@@ -1240,4 +35701,383 @@ To pass a single animation please supply them in simple values, e.g. animation('
A paragraph
\`}
- `);return h.createElement(WS,{...e,options:{forceBlock:!0,overrides:{code:$2,a:A2,...k2,...e?.options?.overrides},...e?.options}})},KB=(e=>(e.INFO="info",e.NOTES="notes",e.DOCGEN="docgen",e.AUTO="auto",e))(KB||{}),XB=e=>{switch(e.type){case"story":return e.story.parameters.docs?.description?.story||null;case"meta":{let{parameters:t,component:r}=e.preparedMeta;return t.docs?.description?.component||t.docs?.extractComponentDescription?.(r,{component:r,parameters:t})||null}case"component":{let{component:t,projectAnnotations:{parameters:r}}=e;return r?.docs?.extractComponentDescription?.(t,{component:t,parameters:r})||null}default:throw new Error(`Unrecognized module type resolved from 'useOf', got: ${e.type}`)}},uc=e=>{let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let r=pn(t||"meta"),n=XB(r);return n?h.createElement(YB,null,n):null},{document:ZB,window:JB}=globalThis,QB=({context:e,theme:t,children:r})=>{let n;try{n=e.resolveOf("meta",["meta"]).preparedMeta.parameters?.docs?.toc}catch{n=e?.projectAnnotations?.parameters?.docs?.toc}return b.useEffect(()=>{let o;try{if(o=new URL(JB.parent.location.toString()),o.hash){let a=ZB.getElementById(decodeURIComponent(o.hash.substring(1)));a&&setTimeout(()=>{YI(a)},200)}}catch{}}),h.createElement(Vt.Provider,{value:e},h.createElement(kB,{channel:e.channel},h.createElement(zb,{theme:Z5(t)},h.createElement(a6,{toc:n?h.createElement(z6,{className:"sbdocs sbdocs-toc--custom",channel:e.channel,...n}):null},r))))},eN=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,tN=Object.hasOwnProperty,rN=class{constructor(){this.occurrences,this.reset()}slug(e,t){let r=this,n=nN(e,t===!0),o=n;for(;tN.call(r.occurrences,n);)r.occurrences[o]++,n=o+"-"+r.occurrences[o];return r.occurrences[n]=0,n}reset(){this.occurrences=Object.create(null)}};function nN(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(eN,"").replace(/ /g,"-"))}var O2=new rN,oN=({children:e,disableAnchor:t,...r})=>{if(t||typeof e!="string")return h.createElement(Hd,null,e);let n=O2.slug(e.toLowerCase());return h.createElement($p,{as:"h2",id:n,...r},e)},aN=({children:e,disableAnchor:t})=>{if(t||typeof e!="string")return h.createElement(Ud,null,e);let r=O2.slug(e.toLowerCase());return h.createElement($p,{as:"h3",id:r},e)},F2=({of:e,expanded:t=!0,withToolbar:r=!1,__forceInitialArgs:n=!1,__primary:o=!1})=>{let{story:a}=pn(e||"story",["story"]),i=a.parameters.docs?.canvas?.withToolbar??r;return h.createElement(VI,{storyId:a.id},t&&h.createElement(h.Fragment,null,h.createElement(aN,null,a.name),h.createElement(uc,{of:e})),h.createElement(NB,{of:e,withToolbar:i,story:{__forceInitialArgs:n,__primary:o},source:{__forceInitialArgs:n}}))},iN=e=>{let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{csfFile:r}=pn(t||"meta",["meta"]),n=b.useContext(Vt).componentStoriesFromCSFFile(r)[0];return n?h.createElement(F2,{of:n.moduleExport,expanded:!1,__primary:!0,withToolbar:!0}):null},lN=T(oN)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,fontWeight:e.typography.weight.bold,lineHeight:"16px",letterSpacing:"0.35em",textTransform:"uppercase",color:e.textMutedColor,border:0,marginBottom:"12px","&:first-of-type":{marginTop:"56px"}})),sN=({title:e="Stories",includePrimary:t=!0})=>{let{componentStories:r,projectAnnotations:n,getStoryContext:o}=b.useContext(Vt),a=r(),{stories:{filter:i}={filter:void 0}}=n.parameters?.docs||{};return i&&(a=a.filter(l=>i(l,o(l)))),a.some(l=>l.tags?.includes("autodocs"))&&(a=a.filter(l=>l.tags?.includes("autodocs")&&!l.usesMount)),t||(a=a.slice(1)),!a||a.length===0?null:h.createElement(h.Fragment,null,typeof e=="string"?h.createElement(lN,null,e):e,a.map(l=>l&&h.createElement(F2,{key:l.id,of:l.moduleExport,expanded:!0,__forceInitialArgs:!0})))},uN="https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#subtitle-block-and-parameterscomponentsubtitle",cN=e=>{let{of:t,children:r}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let n;try{n=pn(t||"meta",["meta"]).preparedMeta}catch(l){if(r&&!l.message.includes("did you forget to use ?"))throw l}let{componentSubtitle:o,docs:a}=n?.parameters||{};o&&oR(`Using 'parameters.componentSubtitle' property to subtitle stories is deprecated. See ${uN}`);let i=r||a?.subtitle||o;return i?h.createElement(r6,{className:"sbdocs-subtitle sb-unstyled"},i):null},dN=/\s*\/\s*/,pN=e=>{let t=e.trim().split(dN);return t?.[t?.length-1]||e},fN=e=>{let{children:t,of:r}=e;if("of"in e&&r===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let n;try{n=pn(r||"meta",["meta"]).preparedMeta}catch(a){if(t&&a instanceof Error&&!a.message.includes("did you forget to use ?"))throw a}let o=t||pN(n?.title||"");return o?h.createElement(t6,{className:"sbdocs-title sb-unstyled"},o):null},gN=()=>{let e=pn("meta",["meta"]),{stories:t}=e.csfFile,r=Object.keys(t).length===1;return h.createElement(h.Fragment,null,h.createElement(fN,null),h.createElement(cN,null),h.createElement(uc,{of:"meta"}),r?h.createElement(uc,{of:"story"}):null,h.createElement(iN,null),h.createElement(UB,null),r?null:h.createElement(sN,null))};function mN({context:e,docsParameter:t}){let r=t.container||QB,n=t.page||gN;return h.createElement(r,{context:e,theme:t.theme},h.createElement(n,null))}var _2={code:$2,a:A2,...k2},hN=class extends b.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e){let{showException:t}=this.props;t(e)}render(){let{hasError:e}=this.state,{children:t}=this.props;return e?null:h.createElement(h.Fragment,null,t)}},yN=class{constructor(){this.render=async(e,t,r)=>{let n={..._2,...t?.components},o=mN;return new Promise((a,i)=>{cc(async()=>{const{MDXProvider:l}=await import("./index-O1jB17X4.js");return{MDXProvider:l}},__vite__mapDeps([6,1,2,3])).then(({MDXProvider:l})=>I2(h.createElement(hN,{showException:i,key:Math.random()},h.createElement(l,{components:n},h.createElement(o,{context:e,docsParameter:t}))),r)).then(()=>a())})},this.unmount=e=>{L2(e)}}};const VN=Object.freeze(Object.defineProperty({__proto__:null,DocsRenderer:yN,defaultComponents:_2},Symbol.toStringTag,{value:"Module"}));export{VN as D,MN as M,U4 as Y,uo as Z,lD as _,aD as a,LN as d,Ft as g,J4 as i,T as x};
+ `);
+ return h.createElement(WS, {
+ ...e,
+ options: {
+ forceBlock: !0,
+ overrides: { code: $2, a: A2, ...k2, ...e?.options?.overrides },
+ ...e?.options,
+ },
+ });
+ },
+ KB = ((e) => (
+ (e.INFO = "info"),
+ (e.NOTES = "notes"),
+ (e.DOCGEN = "docgen"),
+ (e.AUTO = "auto"),
+ e
+ ))(KB || {}),
+ XB = (e) => {
+ switch (e.type) {
+ case "story":
+ return e.story.parameters.docs?.description?.story || null;
+ case "meta": {
+ let { parameters: t, component: r } = e.preparedMeta;
+ return (
+ t.docs?.description?.component ||
+ t.docs?.extractComponentDescription?.(r, {
+ component: r,
+ parameters: t,
+ }) ||
+ null
+ );
+ }
+ case "component": {
+ let {
+ component: t,
+ projectAnnotations: { parameters: r },
+ } = e;
+ return (
+ r?.docs?.extractComponentDescription?.(t, {
+ component: t,
+ parameters: r,
+ }) || null
+ );
+ }
+ default:
+ throw new Error(
+ `Unrecognized module type resolved from 'useOf', got: ${e.type}`,
+ );
+ }
+ },
+ uc = (e) => {
+ let { of: t } = e;
+ if ("of" in e && t === void 0)
+ throw new Error(
+ "Unexpected `of={undefined}`, did you mistype a CSF file reference?",
+ );
+ let r = pn(t || "meta"),
+ n = XB(r);
+ return n ? h.createElement(YB, null, n) : null;
+ },
+ { document: ZB, window: JB } = globalThis,
+ QB = ({ context: e, theme: t, children: r }) => {
+ let n;
+ try {
+ n = e.resolveOf("meta", ["meta"]).preparedMeta.parameters?.docs?.toc;
+ } catch {
+ n = e?.projectAnnotations?.parameters?.docs?.toc;
+ }
+ return (
+ b.useEffect(() => {
+ let o;
+ try {
+ if (((o = new URL(JB.parent.location.toString())), o.hash)) {
+ let a = ZB.getElementById(decodeURIComponent(o.hash.substring(1)));
+ a &&
+ setTimeout(() => {
+ YI(a);
+ }, 200);
+ }
+ } catch {}
+ }),
+ h.createElement(
+ Vt.Provider,
+ { value: e },
+ h.createElement(
+ kB,
+ { channel: e.channel },
+ h.createElement(
+ zb,
+ { theme: Z5(t) },
+ h.createElement(
+ a6,
+ {
+ toc: n
+ ? h.createElement(z6, {
+ className: "sbdocs sbdocs-toc--custom",
+ channel: e.channel,
+ ...n,
+ })
+ : null,
+ },
+ r,
+ ),
+ ),
+ ),
+ )
+ );
+ },
+ eN =
+ /[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,
+ tN = Object.hasOwnProperty,
+ rN = class {
+ constructor() {
+ (this.occurrences, this.reset());
+ }
+ slug(e, t) {
+ let r = this,
+ n = nN(e, t === !0),
+ o = n;
+ for (; tN.call(r.occurrences, n); )
+ (r.occurrences[o]++, (n = o + "-" + r.occurrences[o]));
+ return ((r.occurrences[n] = 0), n);
+ }
+ reset() {
+ this.occurrences = Object.create(null);
+ }
+ };
+function nN(e, t) {
+ return typeof e != "string"
+ ? ""
+ : (t || (e = e.toLowerCase()), e.replace(eN, "").replace(/ /g, "-"));
+}
+var O2 = new rN(),
+ oN = ({ children: e, disableAnchor: t, ...r }) => {
+ if (t || typeof e != "string") return h.createElement(Hd, null, e);
+ let n = O2.slug(e.toLowerCase());
+ return h.createElement($p, { as: "h2", id: n, ...r }, e);
+ },
+ aN = ({ children: e, disableAnchor: t }) => {
+ if (t || typeof e != "string") return h.createElement(Ud, null, e);
+ let r = O2.slug(e.toLowerCase());
+ return h.createElement($p, { as: "h3", id: r }, e);
+ },
+ F2 = ({
+ of: e,
+ expanded: t = !0,
+ withToolbar: r = !1,
+ __forceInitialArgs: n = !1,
+ __primary: o = !1,
+ }) => {
+ let { story: a } = pn(e || "story", ["story"]),
+ i = a.parameters.docs?.canvas?.withToolbar ?? r;
+ return h.createElement(
+ VI,
+ { storyId: a.id },
+ t &&
+ h.createElement(
+ h.Fragment,
+ null,
+ h.createElement(aN, null, a.name),
+ h.createElement(uc, { of: e }),
+ ),
+ h.createElement(NB, {
+ of: e,
+ withToolbar: i,
+ story: { __forceInitialArgs: n, __primary: o },
+ source: { __forceInitialArgs: n },
+ }),
+ );
+ },
+ iN = (e) => {
+ let { of: t } = e;
+ if ("of" in e && t === void 0)
+ throw new Error(
+ "Unexpected `of={undefined}`, did you mistype a CSF file reference?",
+ );
+ let { csfFile: r } = pn(t || "meta", ["meta"]),
+ n = b.useContext(Vt).componentStoriesFromCSFFile(r)[0];
+ return n
+ ? h.createElement(F2, {
+ of: n.moduleExport,
+ expanded: !1,
+ __primary: !0,
+ withToolbar: !0,
+ })
+ : null;
+ },
+ lN = T(oN)(({ theme: e }) => ({
+ fontSize: `${e.typography.size.s2 - 1}px`,
+ fontWeight: e.typography.weight.bold,
+ lineHeight: "16px",
+ letterSpacing: "0.35em",
+ textTransform: "uppercase",
+ color: e.textMutedColor,
+ border: 0,
+ marginBottom: "12px",
+ "&:first-of-type": { marginTop: "56px" },
+ })),
+ sN = ({ title: e = "Stories", includePrimary: t = !0 }) => {
+ let {
+ componentStories: r,
+ projectAnnotations: n,
+ getStoryContext: o,
+ } = b.useContext(Vt),
+ a = r(),
+ { stories: { filter: i } = { filter: void 0 } } =
+ n.parameters?.docs || {};
+ return (
+ i && (a = a.filter((l) => i(l, o(l)))),
+ a.some((l) => l.tags?.includes("autodocs")) &&
+ (a = a.filter((l) => l.tags?.includes("autodocs") && !l.usesMount)),
+ t || (a = a.slice(1)),
+ !a || a.length === 0
+ ? null
+ : h.createElement(
+ h.Fragment,
+ null,
+ typeof e == "string" ? h.createElement(lN, null, e) : e,
+ a.map(
+ (l) =>
+ l &&
+ h.createElement(F2, {
+ key: l.id,
+ of: l.moduleExport,
+ expanded: !0,
+ __forceInitialArgs: !0,
+ }),
+ ),
+ )
+ );
+ },
+ uN =
+ "https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#subtitle-block-and-parameterscomponentsubtitle",
+ cN = (e) => {
+ let { of: t, children: r } = e;
+ if ("of" in e && t === void 0)
+ throw new Error(
+ "Unexpected `of={undefined}`, did you mistype a CSF file reference?",
+ );
+ let n;
+ try {
+ n = pn(t || "meta", ["meta"]).preparedMeta;
+ } catch (l) {
+ if (r && !l.message.includes("did you forget to use ?"))
+ throw l;
+ }
+ let { componentSubtitle: o, docs: a } = n?.parameters || {};
+ o &&
+ oR(
+ `Using 'parameters.componentSubtitle' property to subtitle stories is deprecated. See ${uN}`,
+ );
+ let i = r || a?.subtitle || o;
+ return i
+ ? h.createElement(r6, { className: "sbdocs-subtitle sb-unstyled" }, i)
+ : null;
+ },
+ dN = /\s*\/\s*/,
+ pN = (e) => {
+ let t = e.trim().split(dN);
+ return t?.[t?.length - 1] || e;
+ },
+ fN = (e) => {
+ let { children: t, of: r } = e;
+ if ("of" in e && r === void 0)
+ throw new Error(
+ "Unexpected `of={undefined}`, did you mistype a CSF file reference?",
+ );
+ let n;
+ try {
+ n = pn(r || "meta", ["meta"]).preparedMeta;
+ } catch (a) {
+ if (
+ t &&
+ a instanceof Error &&
+ !a.message.includes("did you forget to use ?")
+ )
+ throw a;
+ }
+ let o = t || pN(n?.title || "");
+ return o
+ ? h.createElement(t6, { className: "sbdocs-title sb-unstyled" }, o)
+ : null;
+ },
+ gN = () => {
+ let e = pn("meta", ["meta"]),
+ { stories: t } = e.csfFile,
+ r = Object.keys(t).length === 1;
+ return h.createElement(
+ h.Fragment,
+ null,
+ h.createElement(fN, null),
+ h.createElement(cN, null),
+ h.createElement(uc, { of: "meta" }),
+ r ? h.createElement(uc, { of: "story" }) : null,
+ h.createElement(iN, null),
+ h.createElement(UB, null),
+ r ? null : h.createElement(sN, null),
+ );
+ };
+function mN({ context: e, docsParameter: t }) {
+ let r = t.container || QB,
+ n = t.page || gN;
+ return h.createElement(
+ r,
+ { context: e, theme: t.theme },
+ h.createElement(n, null),
+ );
+}
+var _2 = { code: $2, a: A2, ...k2 },
+ hN = class extends b.Component {
+ constructor() {
+ (super(...arguments), (this.state = { hasError: !1 }));
+ }
+ static getDerivedStateFromError() {
+ return { hasError: !0 };
+ }
+ componentDidCatch(e) {
+ let { showException: t } = this.props;
+ t(e);
+ }
+ render() {
+ let { hasError: e } = this.state,
+ { children: t } = this.props;
+ return e ? null : h.createElement(h.Fragment, null, t);
+ }
+ },
+ yN = class {
+ constructor() {
+ ((this.render = async (e, t, r) => {
+ let n = { ..._2, ...t?.components },
+ o = mN;
+ return new Promise((a, i) => {
+ cc(
+ async () => {
+ const { MDXProvider: l } = await import("./index-O1jB17X4.js");
+ return { MDXProvider: l };
+ },
+ __vite__mapDeps([6, 1, 2, 3]),
+ )
+ .then(({ MDXProvider: l }) =>
+ I2(
+ h.createElement(
+ hN,
+ { showException: i, key: Math.random() },
+ h.createElement(
+ l,
+ { components: n },
+ h.createElement(o, { context: e, docsParameter: t }),
+ ),
+ ),
+ r,
+ ),
+ )
+ .then(() => a());
+ });
+ }),
+ (this.unmount = (e) => {
+ L2(e);
+ }));
+ }
+ };
+const VN = Object.freeze(
+ Object.defineProperty(
+ { __proto__: null, DocsRenderer: yN, defaultComponents: _2 },
+ Symbol.toStringTag,
+ { value: "Module" },
+ ),
+);
+export {
+ VN as D,
+ MN as M,
+ U4 as Y,
+ uo as Z,
+ lD as _,
+ aD as a,
+ LN as d,
+ Ft as g,
+ J4 as i,
+ T as x,
+};
diff --git a/docs/assets/Footer.stories-DFwAxlXr.js b/docs/assets/Footer.stories-DFwAxlXr.js
index b128f19..c206e16 100644
--- a/docs/assets/Footer.stories-DFwAxlXr.js
+++ b/docs/assets/Footer.stories-DFwAxlXr.js
@@ -1,4 +1,289 @@
-import{j as e}from"./jsx-runtime-C_nHp4yK.js";import{L as o}from"./Logo-DM7O8ATg.js";import"./iframe-D_aMTKb2.js";import"./preload-helper-DIZFD4sK.js";function n(){return e.jsx("div",{className:"flex flex-col items-center self-stretch",children:e.jsx("div",{className:"flex items-start self-stretch h-px w-full bg-[var(--border-color-default-secondary)]"})})}n.__docgenInfo={description:"",methods:[],displayName:"Separator"};function r(){const a={"@context":"https://schema.org","@type":"Organization",name:"Media Economies Design Lab",email:"medlab@colorado.edu",url:"https://communityrule.com",sameAs:["https://bsky.app/profile/medlabboulder","https://gitlab.com/medlabboulder"]};return e.jsxs(e.Fragment,{children:[e.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(a)}}),e.jsx("footer",{className:"bg-[var(--color-surface-default-primary)] w-full",children:e.jsxs("div",{className:"flex flex-col items-start mx-auto px-[var(--spacing-measures-spacing-016)] py-[var(--spacing-measures-spacing-040)] gap-[var(--spacing-measures-spacing-040)] sm:px-[var(--spacing-measures-spacing-032)] sm:py-[var(--spacing-measures-spacing-024)] sm:gap-[var(--spacing-measures-spacing-024)] lg:px-[var(--spacing-measures-spacing-120,120px)] lg:py-[var(--spacing-measures-spacing-096,96px)] lg:gap-[var(--spacing-measures-spacing-060,60px)]",children:[e.jsx("div",{className:"block sm:hidden",children:e.jsx(o,{})}),e.jsx("div",{className:"hidden sm:block lg:hidden",children:e.jsx(o,{size:"footer"})}),e.jsx("div",{className:"hidden lg:block",children:e.jsx(o,{size:"footerLg"})}),e.jsxs("div",{className:"flex flex-col items-start w-full gap-[var(--spacing-measures-spacing-048,48px)] sm:flex-row sm:justify-between sm:gap-0",children:[e.jsxs("div",{className:"flex flex-col items-start gap-[var(--spacing-measures-spacing-064,64px)] order-2 sm:order-1",children:[e.jsxs("div",{className:"flex flex-col items-start gap-[var(--spacing-measures-spacing-016,16px)]",children:[e.jsx("div",{className:"text-[var(--color-content-default-primary)] font-['Inter'] text-base leading-5 font-medium tracking-[0%] lg:text-2xl lg:leading-7 lg:font-normal",children:"Media Economies Design Lab"}),e.jsx("a",{href:"mailto:medlab@colorado.edu",className:"text-[var(--color-content-default-primary)] font-['Inter'] text-base leading-5 font-medium tracking-[0%] lg:text-2xl lg:leading-7 lg:font-normal hover:opacity-80 active:opacity-60 focus:opacity-80 focus:outline-none focus:ring-2 focus:ring-[var(--color-content-default-primary)] focus:ring-offset-2 focus:ring-offset-[var(--color-surface-default-primary)] transition-opacity p-2 -m-2 cursor-pointer",children:"medlab@colorado.edu"})]}),e.jsxs("div",{className:"flex flex-col items-start gap-[var(--spacing-measures-spacing-016,16px)]",children:[e.jsxs("a",{href:"#",className:"flex items-center gap-[var(--spacing-measures-spacing-06,6px)] hover:opacity-80 active:opacity-60 focus:opacity-80 focus:outline-none focus:ring-2 focus:ring-[var(--color-content-default-primary)] focus:ring-offset-2 focus:ring-offset-[var(--color-surface-default-primary)] transition-opacity p-2 -m-2 cursor-pointer group","aria-label":"Follow us on Bluesky",children:[e.jsx("img",{src:"assets/Bluesky_Logo.svg",alt:"Bluesky",width:24,height:22,className:"flex-shrink-0 group-hover:scale-110 transition-transform"}),e.jsx("div",{className:"text-[var(--color-content-default-primary)] font-['Inter'] text-base leading-5 font-medium tracking-[0%] lg:text-2xl lg:leading-7 lg:font-normal",children:"medlabboulder"})]}),e.jsxs("a",{href:"#",className:"flex items-center gap-[var(--spacing-measures-spacing-06,6px)] hover:opacity-80 active:opacity-60 focus:opacity-80 focus:outline-none focus:ring-2 focus:ring-[var(--color-content-default-primary)] focus:ring-offset-2 focus:ring-offset-[var(--color-surface-default-primary)] transition-opacity p-2 -m-2 cursor-pointer group","aria-label":"Follow us on GitLab",children:[e.jsx("img",{src:"assets/GitLab_Icon.png",alt:"GitLab",width:22,height:22,className:"flex-shrink-0 grayscale group-hover:scale-110 transition-transform"}),e.jsx("div",{className:"text-[var(--color-content-default-primary)] font-['Inter'] text-base leading-5 font-medium tracking-[0%] lg:text-2xl lg:leading-7 lg:font-normal",children:"medlabboulder"})]})]})]}),e.jsxs("div",{className:"flex flex-col items-start gap-[var(--spacing-measures-spacing-032,32px)] order-1 sm:order-2 sm:items-end",children:[e.jsx("a",{href:"#",className:"text-[var(--color-content-default-primary)] font-['Inter'] text-base leading-5 font-medium tracking-[0%] lg:text-2xl lg:leading-7 lg:font-normal hover:opacity-80 active:opacity-60 focus:opacity-80 focus:outline-none focus:ring-2 focus:ring-[var(--color-content-default-primary)] focus:ring-offset-2 focus:ring-offset-[var(--color-surface-default-primary)] transition-opacity p-2 -m-2 cursor-pointer",children:"Use cases"}),e.jsx("a",{href:"#",className:"text-[var(--color-content-default-primary)] font-['Inter'] text-base leading-5 font-medium tracking-[0%] lg:text-2xl lg:leading-7 lg:font-normal hover:opacity-80 active:opacity-60 focus:opacity-80 focus:outline-none focus:ring-2 focus:ring-[var(--color-content-default-primary)] focus:ring-offset-2 focus:ring-offset-[var(--color-surface-default-primary)] transition-opacity p-2 -m-2 cursor-pointer",children:"Learn"}),e.jsx("a",{href:"#",className:"text-[var(--color-content-default-primary)] font-['Inter'] text-base leading-5 font-medium tracking-[0%] lg:text-2xl lg:leading-7 lg:font-normal hover:opacity-80 active:opacity-60 focus:opacity-80 focus:outline-none focus:ring-2 focus:ring-[var(--color-content-default-primary)] focus:ring-offset-2 focus:ring-offset-[var(--color-surface-default-primary)] transition-opacity p-2 -m-2 cursor-pointer",children:"About"})]})]}),e.jsx(n,{}),e.jsxs("div",{className:"flex flex-col items-start gap-[var(--spacing-measures-spacing-032,32px)] sm:flex-row sm:justify-between sm:items-center w-full",children:[e.jsx("div",{className:"text-[var(--color-content-default-secondary)] font-['Inter'] text-sm leading-5 font-medium sm:text-xs sm:leading-4 lg:text-sm lg:leading-5 lg:font-normal",children:"© All right reserved"}),e.jsxs("div",{className:"flex flex-col items-start gap-[var(--spacing-measures-spacing-040,40px)] sm:flex-row sm:gap-[var(--spacing-measures-spacing-040,40px)]",children:[e.jsx("a",{href:"#",className:"text-[var(--color-content-default-secondary)] font-['Inter'] text-sm leading-5 font-medium underline sm:text-xs sm:leading-4 sm:no-underline lg:text-sm lg:leading-5 lg:font-normal hover:opacity-80 active:opacity-60 focus:opacity-80 focus:outline-none focus:ring-2 focus:ring-[var(--color-content-default-secondary)] focus:ring-offset-2 focus:ring-offset-[var(--color-surface-default-primary)] transition-opacity p-2 -m-2 cursor-pointer",children:"Privacy Policy"}),e.jsx("a",{href:"#",className:"text-[var(--color-content-default-secondary)] font-['Inter'] text-sm leading-5 font-medium underline sm:text-xs sm:leading-4 sm:no-underline lg:text-sm lg:leading-5 lg:font-normal hover:opacity-80 active:opacity-60 focus:opacity-80 focus:outline-none focus:ring-2 focus:ring-[var(--color-content-default-secondary)] focus:ring-offset-2 focus:ring-offset-[var(--color-surface-default-primary)] transition-opacity p-2 -m-2 cursor-pointer",children:"Terms of Service"}),e.jsx("a",{href:"#",className:"text-[var(--color-content-default-secondary)] font-['Inter'] text-sm leading-5 font-medium underline sm:text-xs sm:leading-4 sm:no-underline lg:text-sm lg:leading-5 lg:font-normal hover:opacity-80 active:opacity-60 focus:opacity-80 focus:outline-none focus:ring-2 focus:ring-[var(--color-content-default-secondary)] focus:ring-offset-2 focus:ring-offset-[var(--color-surface-default-primary)] transition-opacity p-2 -m-2 cursor-pointer",children:"Cookies Settings"})]})]})]})})]})}r.__docgenInfo={description:"",methods:[],displayName:"Footer"};const d={title:"Components/Footer",component:r,parameters:{layout:"fullscreen",docs:{description:{component:"The main footer with responsive layout, branding section, navigation links, and legal information. Features different logo sizes and layout changes across breakpoints."}}},tags:["autodocs"]},s={args:{},parameters:{docs:{description:{story:"Use the Viewport toolbar to see how the footer adapts to different screen sizes. The layout changes from stacked to side-by-side and logo sizes adjust."}}}},t={args:{},render:()=>e.jsxs("div",{className:"min-h-screen bg-[var(--color-surface-default-primary)]",children:[e.jsx("main",{className:"p-8",children:e.jsxs("div",{className:"max-w-4xl mx-auto",children:[e.jsx("h1",{className:"text-2xl font-bold text-white mb-4",children:"Example Page Content"}),e.jsx("p",{className:"text-white mb-4",children:"This demonstrates how the footer looks in a realistic page context. The footer maintains its responsive behavior while providing navigation and branding information."}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[1,2,3,4,5,6].map(a=>e.jsxs("div",{className:"bg-[var(--color-surface-default-secondary)] p-4 rounded-lg",children:[e.jsxs("h3",{className:"text-white font-semibold mb-2",children:["Content Block ",a]}),e.jsx("p",{className:"text-[var(--color-content-default-secondary)] text-sm",children:"This is example content to show how the footer integrates with page content."})]},a))})]})}),e.jsx(r,{})]}),parameters:{docs:{description:{story:"The footer integrated into a full page layout to show how it works in context."}}}};s.parameters={...s.parameters,docs:{...s.parameters?.docs,source:{originalSource:`{
+import { j as e } from "./jsx-runtime-C_nHp4yK.js";
+import { L as o } from "./Logo-DM7O8ATg.js";
+import "./iframe-D_aMTKb2.js";
+import "./preload-helper-DIZFD4sK.js";
+function n() {
+ return e.jsx("div", {
+ className: "flex flex-col items-center self-stretch",
+ children: e.jsx("div", {
+ className:
+ "flex items-start self-stretch h-px w-full bg-[var(--border-color-default-secondary)]",
+ }),
+ });
+}
+n.__docgenInfo = { description: "", methods: [], displayName: "Separator" };
+function r() {
+ const a = {
+ "@context": "https://schema.org",
+ "@type": "Organization",
+ name: "Media Economies Design Lab",
+ email: "medlab@colorado.edu",
+ url: "https://communityrule.com",
+ sameAs: [
+ "https://bsky.app/profile/medlabboulder",
+ "https://gitlab.com/medlabboulder",
+ ],
+ };
+ return e.jsxs(e.Fragment, {
+ children: [
+ e.jsx("script", {
+ type: "application/ld+json",
+ dangerouslySetInnerHTML: { __html: JSON.stringify(a) },
+ }),
+ e.jsx("footer", {
+ className: "bg-[var(--color-surface-default-primary)] w-full",
+ children: e.jsxs("div", {
+ className:
+ "flex flex-col items-start mx-auto px-[var(--spacing-measures-spacing-016)] py-[var(--spacing-measures-spacing-040)] gap-[var(--spacing-measures-spacing-040)] sm:px-[var(--spacing-measures-spacing-032)] sm:py-[var(--spacing-measures-spacing-024)] sm:gap-[var(--spacing-measures-spacing-024)] lg:px-[var(--spacing-measures-spacing-120,120px)] lg:py-[var(--spacing-measures-spacing-096,96px)] lg:gap-[var(--spacing-measures-spacing-060,60px)]",
+ children: [
+ e.jsx("div", {
+ className: "block sm:hidden",
+ children: e.jsx(o, {}),
+ }),
+ e.jsx("div", {
+ className: "hidden sm:block lg:hidden",
+ children: e.jsx(o, { size: "footer" }),
+ }),
+ e.jsx("div", {
+ className: "hidden lg:block",
+ children: e.jsx(o, { size: "footerLg" }),
+ }),
+ e.jsxs("div", {
+ className:
+ "flex flex-col items-start w-full gap-[var(--spacing-measures-spacing-048,48px)] sm:flex-row sm:justify-between sm:gap-0",
+ children: [
+ e.jsxs("div", {
+ className:
+ "flex flex-col items-start gap-[var(--spacing-measures-spacing-064,64px)] order-2 sm:order-1",
+ children: [
+ e.jsxs("div", {
+ className:
+ "flex flex-col items-start gap-[var(--spacing-measures-spacing-016,16px)]",
+ children: [
+ e.jsx("div", {
+ className:
+ "text-[var(--color-content-default-primary)] font-['Inter'] text-base leading-5 font-medium tracking-[0%] lg:text-2xl lg:leading-7 lg:font-normal",
+ children: "Media Economies Design Lab",
+ }),
+ e.jsx("a", {
+ href: "mailto:medlab@colorado.edu",
+ className:
+ "text-[var(--color-content-default-primary)] font-['Inter'] text-base leading-5 font-medium tracking-[0%] lg:text-2xl lg:leading-7 lg:font-normal hover:opacity-80 active:opacity-60 focus:opacity-80 focus:outline-none focus:ring-2 focus:ring-[var(--color-content-default-primary)] focus:ring-offset-2 focus:ring-offset-[var(--color-surface-default-primary)] transition-opacity p-2 -m-2 cursor-pointer",
+ children: "medlab@colorado.edu",
+ }),
+ ],
+ }),
+ e.jsxs("div", {
+ className:
+ "flex flex-col items-start gap-[var(--spacing-measures-spacing-016,16px)]",
+ children: [
+ e.jsxs("a", {
+ href: "#",
+ className:
+ "flex items-center gap-[var(--spacing-measures-spacing-06,6px)] hover:opacity-80 active:opacity-60 focus:opacity-80 focus:outline-none focus:ring-2 focus:ring-[var(--color-content-default-primary)] focus:ring-offset-2 focus:ring-offset-[var(--color-surface-default-primary)] transition-opacity p-2 -m-2 cursor-pointer group",
+ "aria-label": "Follow us on Bluesky",
+ children: [
+ e.jsx("img", {
+ src: "assets/Bluesky_Logo.svg",
+ alt: "Bluesky",
+ width: 24,
+ height: 22,
+ className:
+ "flex-shrink-0 group-hover:scale-110 transition-transform",
+ }),
+ e.jsx("div", {
+ className:
+ "text-[var(--color-content-default-primary)] font-['Inter'] text-base leading-5 font-medium tracking-[0%] lg:text-2xl lg:leading-7 lg:font-normal",
+ children: "medlabboulder",
+ }),
+ ],
+ }),
+ e.jsxs("a", {
+ href: "#",
+ className:
+ "flex items-center gap-[var(--spacing-measures-spacing-06,6px)] hover:opacity-80 active:opacity-60 focus:opacity-80 focus:outline-none focus:ring-2 focus:ring-[var(--color-content-default-primary)] focus:ring-offset-2 focus:ring-offset-[var(--color-surface-default-primary)] transition-opacity p-2 -m-2 cursor-pointer group",
+ "aria-label": "Follow us on GitLab",
+ children: [
+ e.jsx("img", {
+ src: "assets/GitLab_Icon.png",
+ alt: "GitLab",
+ width: 22,
+ height: 22,
+ className:
+ "flex-shrink-0 grayscale group-hover:scale-110 transition-transform",
+ }),
+ e.jsx("div", {
+ className:
+ "text-[var(--color-content-default-primary)] font-['Inter'] text-base leading-5 font-medium tracking-[0%] lg:text-2xl lg:leading-7 lg:font-normal",
+ children: "medlabboulder",
+ }),
+ ],
+ }),
+ ],
+ }),
+ ],
+ }),
+ e.jsxs("div", {
+ className:
+ "flex flex-col items-start gap-[var(--spacing-measures-spacing-032,32px)] order-1 sm:order-2 sm:items-end",
+ children: [
+ e.jsx("a", {
+ href: "#",
+ className:
+ "text-[var(--color-content-default-primary)] font-['Inter'] text-base leading-5 font-medium tracking-[0%] lg:text-2xl lg:leading-7 lg:font-normal hover:opacity-80 active:opacity-60 focus:opacity-80 focus:outline-none focus:ring-2 focus:ring-[var(--color-content-default-primary)] focus:ring-offset-2 focus:ring-offset-[var(--color-surface-default-primary)] transition-opacity p-2 -m-2 cursor-pointer",
+ children: "Use cases",
+ }),
+ e.jsx("a", {
+ href: "#",
+ className:
+ "text-[var(--color-content-default-primary)] font-['Inter'] text-base leading-5 font-medium tracking-[0%] lg:text-2xl lg:leading-7 lg:font-normal hover:opacity-80 active:opacity-60 focus:opacity-80 focus:outline-none focus:ring-2 focus:ring-[var(--color-content-default-primary)] focus:ring-offset-2 focus:ring-offset-[var(--color-surface-default-primary)] transition-opacity p-2 -m-2 cursor-pointer",
+ children: "Learn",
+ }),
+ e.jsx("a", {
+ href: "#",
+ className:
+ "text-[var(--color-content-default-primary)] font-['Inter'] text-base leading-5 font-medium tracking-[0%] lg:text-2xl lg:leading-7 lg:font-normal hover:opacity-80 active:opacity-60 focus:opacity-80 focus:outline-none focus:ring-2 focus:ring-[var(--color-content-default-primary)] focus:ring-offset-2 focus:ring-offset-[var(--color-surface-default-primary)] transition-opacity p-2 -m-2 cursor-pointer",
+ children: "About",
+ }),
+ ],
+ }),
+ ],
+ }),
+ e.jsx(n, {}),
+ e.jsxs("div", {
+ className:
+ "flex flex-col items-start gap-[var(--spacing-measures-spacing-032,32px)] sm:flex-row sm:justify-between sm:items-center w-full",
+ children: [
+ e.jsx("div", {
+ className:
+ "text-[var(--color-content-default-secondary)] font-['Inter'] text-sm leading-5 font-medium sm:text-xs sm:leading-4 lg:text-sm lg:leading-5 lg:font-normal",
+ children: "© All right reserved",
+ }),
+ e.jsxs("div", {
+ className:
+ "flex flex-col items-start gap-[var(--spacing-measures-spacing-040,40px)] sm:flex-row sm:gap-[var(--spacing-measures-spacing-040,40px)]",
+ children: [
+ e.jsx("a", {
+ href: "#",
+ className:
+ "text-[var(--color-content-default-secondary)] font-['Inter'] text-sm leading-5 font-medium underline sm:text-xs sm:leading-4 sm:no-underline lg:text-sm lg:leading-5 lg:font-normal hover:opacity-80 active:opacity-60 focus:opacity-80 focus:outline-none focus:ring-2 focus:ring-[var(--color-content-default-secondary)] focus:ring-offset-2 focus:ring-offset-[var(--color-surface-default-primary)] transition-opacity p-2 -m-2 cursor-pointer",
+ children: "Privacy Policy",
+ }),
+ e.jsx("a", {
+ href: "#",
+ className:
+ "text-[var(--color-content-default-secondary)] font-['Inter'] text-sm leading-5 font-medium underline sm:text-xs sm:leading-4 sm:no-underline lg:text-sm lg:leading-5 lg:font-normal hover:opacity-80 active:opacity-60 focus:opacity-80 focus:outline-none focus:ring-2 focus:ring-[var(--color-content-default-secondary)] focus:ring-offset-2 focus:ring-offset-[var(--color-surface-default-primary)] transition-opacity p-2 -m-2 cursor-pointer",
+ children: "Terms of Service",
+ }),
+ e.jsx("a", {
+ href: "#",
+ className:
+ "text-[var(--color-content-default-secondary)] font-['Inter'] text-sm leading-5 font-medium underline sm:text-xs sm:leading-4 sm:no-underline lg:text-sm lg:leading-5 lg:font-normal hover:opacity-80 active:opacity-60 focus:opacity-80 focus:outline-none focus:ring-2 focus:ring-[var(--color-content-default-secondary)] focus:ring-offset-2 focus:ring-offset-[var(--color-surface-default-primary)] transition-opacity p-2 -m-2 cursor-pointer",
+ children: "Cookies Settings",
+ }),
+ ],
+ }),
+ ],
+ }),
+ ],
+ }),
+ }),
+ ],
+ });
+}
+r.__docgenInfo = { description: "", methods: [], displayName: "Footer" };
+const d = {
+ title: "Components/Footer",
+ component: r,
+ parameters: {
+ layout: "fullscreen",
+ docs: {
+ description: {
+ component:
+ "The main footer with responsive layout, branding section, navigation links, and legal information. Features different logo sizes and layout changes across breakpoints.",
+ },
+ },
+ },
+ tags: ["autodocs"],
+ },
+ s = {
+ args: {},
+ parameters: {
+ docs: {
+ description: {
+ story:
+ "Use the Viewport toolbar to see how the footer adapts to different screen sizes. The layout changes from stacked to side-by-side and logo sizes adjust.",
+ },
+ },
+ },
+ },
+ t = {
+ args: {},
+ render: () =>
+ e.jsxs("div", {
+ className: "min-h-screen bg-[var(--color-surface-default-primary)]",
+ children: [
+ e.jsx("main", {
+ className: "p-8",
+ children: e.jsxs("div", {
+ className: "max-w-4xl mx-auto",
+ children: [
+ e.jsx("h1", {
+ className: "text-2xl font-bold text-white mb-4",
+ children: "Example Page Content",
+ }),
+ e.jsx("p", {
+ className: "text-white mb-4",
+ children:
+ "This demonstrates how the footer looks in a realistic page context. The footer maintains its responsive behavior while providing navigation and branding information.",
+ }),
+ e.jsx("div", {
+ className:
+ "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",
+ children: [1, 2, 3, 4, 5, 6].map((a) =>
+ e.jsxs(
+ "div",
+ {
+ className:
+ "bg-[var(--color-surface-default-secondary)] p-4 rounded-lg",
+ children: [
+ e.jsxs("h3", {
+ className: "text-white font-semibold mb-2",
+ children: ["Content Block ", a],
+ }),
+ e.jsx("p", {
+ className:
+ "text-[var(--color-content-default-secondary)] text-sm",
+ children:
+ "This is example content to show how the footer integrates with page content.",
+ }),
+ ],
+ },
+ a,
+ ),
+ ),
+ }),
+ ],
+ }),
+ }),
+ e.jsx(r, {}),
+ ],
+ }),
+ parameters: {
+ docs: {
+ description: {
+ story:
+ "The footer integrated into a full page layout to show how it works in context.",
+ },
+ },
+ },
+ };
+s.parameters = {
+ ...s.parameters,
+ docs: {
+ ...s.parameters?.docs,
+ source: {
+ originalSource: `{
args: {},
parameters: {
docs: {
@@ -7,7 +292,17 @@ import{j as e}from"./jsx-runtime-C_nHp4yK.js";import{L as o}from"./Logo-DM7O8ATg
}
}
}
-}`,...s.parameters?.docs?.source}}};t.parameters={...t.parameters,docs:{...t.parameters?.docs,source:{originalSource:`{
+}`,
+ ...s.parameters?.docs?.source,
+ },
+ },
+};
+t.parameters = {
+ ...t.parameters,
+ docs: {
+ ...t.parameters?.docs,
+ source: {
+ originalSource: `{
args: {},
render: () =>
@@ -42,4 +337,15 @@ import{j as e}from"./jsx-runtime-C_nHp4yK.js";import{L as o}from"./Logo-DM7O8ATg
}
}
}
-}`,...t.parameters?.docs?.source}}};const f=["Default","InPageContext"];export{s as Default,t as InPageContext,f as __namedExportsOrder,d as default};
+}`,
+ ...t.parameters?.docs?.source,
+ },
+ },
+};
+const f = ["Default", "InPageContext"];
+export {
+ s as Default,
+ t as InPageContext,
+ f as __namedExportsOrder,
+ d as default,
+};
diff --git a/docs/assets/Header-Bz-bT1Sq.js b/docs/assets/Header-Bz-bT1Sq.js
index cf1705b..0303bab 100644
--- a/docs/assets/Header-Bz-bT1Sq.js
+++ b/docs/assets/Header-Bz-bT1Sq.js
@@ -1 +1,191 @@
-import{j as e}from"./jsx-runtime-C_nHp4yK.js";import{L as v}from"./Logo-DM7O8ATg.js";import{M as t}from"./MenuBar-anMCqtJv.js";import{M as d}from"./MenuBarItem-Dp8NM2fx.js";import{B as j}from"./Button-Z4hbXct5.js";import{A as b}from"./AvatarContainer-Bt0G0TWZ.js";import{A as f}from"./Avatar-C4Vb3oYl.js";function N({onToggle:c}){const m={"@context":"https://schema.org","@type":"WebSite",name:"CommunityRule",url:"https://communityrule.com",potentialAction:{"@type":"SearchAction",target:"https://communityrule.com/search?q={search_term_string}","query-input":"required name=search_term_string"}},o=[{href:"#",text:"Use cases",extraPadding:!0},{href:"#",text:"Learn"},{href:"#",text:"About"}],x=[{src:"/assets/Avatar_1.png",alt:"Avatar 1"},{src:"/assets/Avatar_2.png",alt:"Avatar 2"},{src:"/assets/Avatar_3.png",alt:"Avatar 3"}],h=[{breakpoint:"block sm:hidden",size:"header",showText:!1},{breakpoint:"hidden sm:block md:hidden",size:"header",showText:!0},{breakpoint:"hidden md:block lg:hidden",size:"headerMd",showText:!0},{breakpoint:"hidden lg:block xl:hidden",size:"headerLg",showText:!0},{breakpoint:"hidden xl:block",size:"headerXl",showText:!0}],i=a=>o.map((s,r)=>e.jsx(d,{href:s.href,size:s.extraPadding&&a==="xsmall"?"xsmallUseCases":a,onClick:c,ariaLabel:`Navigate to ${s.text} page`,children:s.text},r)),g=(a,s)=>e.jsx(b,{size:a,children:x.map((r,u)=>e.jsx(f,{src:r.src,alt:r.alt,size:s},u))}),l=a=>e.jsx(d,{href:"#",size:a,ariaLabel:"Log in to your account",children:"Log in"}),n=(a,s,r)=>e.jsxs(j,{size:a,ariaLabel:"Create a new rule with avatar decoration",children:[g(s,r),e.jsx("span",{children:"Create rule"})]}),p=(a,s)=>e.jsx(v,{size:a,showText:s});return e.jsxs(e.Fragment,{children:[e.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(m)}}),e.jsx("header",{className:"bg-[var(--color-surface-default-primary)] w-full border-b border-[var(--border-color-default-tertiary)]",role:"banner","aria-label":"Main navigation header",children:e.jsxs("nav",{className:"flex items-center justify-between mx-auto h-[40px] lg:h-[84px] xl:h-[88px] px-[var(--spacing-measures-spacing-016)] py-[var(--spacing-measures-spacing-008)] lg:px-[var(--spacing-measures-spacing-64,64px)] lg:py-[var(--spacing-measures-spacing-016,16px)]",role:"navigation","aria-label":"Main navigation",children:[e.jsx("div",{className:"flex items-center",children:h.map((a,s)=>e.jsx("div",{className:a.breakpoint,children:p(a.size,a.showText)},s))}),e.jsxs("div",{className:"flex items-center",children:[e.jsx("div",{className:"block sm:hidden"}),e.jsx("div",{className:"hidden sm:block md:hidden",children:e.jsxs(t,{size:"default",children:[i("xsmall"),l("xsmall")]})}),e.jsx("div",{className:"hidden md:block lg:hidden",children:e.jsx(t,{size:"default",children:i("xsmall")})}),e.jsx("div",{className:"hidden lg:block xl:hidden",children:e.jsx(t,{size:"large",children:i("large")})}),e.jsx("div",{className:"hidden xl:block",children:e.jsx(t,{size:"large",children:i("xlarge")})})]}),e.jsxs("div",{className:"flex items-center",children:[e.jsx("div",{className:"block sm:hidden",children:e.jsxs("div",{className:"flex items-center gap-[var(--spacing-scale-001)]",children:[i("xsmall"),l("xsmall"),n("xsmall","small","small")]})}),e.jsx("div",{className:"hidden sm:block md:hidden",children:e.jsx("div",{className:"flex items-center gap-[var(--spacing-scale-004)]",children:n("xsmall","small","small")})}),e.jsx("div",{className:"hidden md:block lg:hidden",children:e.jsxs("div",{className:"flex items-center gap-[var(--spacing-measures-spacing-010)]",children:[l("xsmall"),n("xsmall","medium","medium")]})}),e.jsx("div",{className:"hidden lg:block xl:hidden",children:e.jsxs("div",{className:"flex items-center gap-[var(--spacing-measures-spacing-004)]",children:[l("large"),n("large","xlarge","xlarge")]})}),e.jsx("div",{className:"hidden xl:block",children:e.jsxs("div",{className:"flex items-center gap-[var(--spacing-measures-spacing-004)]",children:[l("xlarge"),n("xlarge","xlarge","xlarge")]})})]})]})})]})}N.__docgenInfo={description:"",methods:[],displayName:"Header"};export{N as H};
+import { j as e } from "./jsx-runtime-C_nHp4yK.js";
+import { L as v } from "./Logo-DM7O8ATg.js";
+import { M as t } from "./MenuBar-anMCqtJv.js";
+import { M as d } from "./MenuBarItem-Dp8NM2fx.js";
+import { B as j } from "./Button-Z4hbXct5.js";
+import { A as b } from "./AvatarContainer-Bt0G0TWZ.js";
+import { A as f } from "./Avatar-C4Vb3oYl.js";
+function N({ onToggle: c }) {
+ const m = {
+ "@context": "https://schema.org",
+ "@type": "WebSite",
+ name: "CommunityRule",
+ url: "https://communityrule.com",
+ potentialAction: {
+ "@type": "SearchAction",
+ target: "https://communityrule.com/search?q={search_term_string}",
+ "query-input": "required name=search_term_string",
+ },
+ },
+ o = [
+ { href: "#", text: "Use cases", extraPadding: !0 },
+ { href: "#", text: "Learn" },
+ { href: "#", text: "About" },
+ ],
+ x = [
+ { src: "/assets/Avatar_1.png", alt: "Avatar 1" },
+ { src: "/assets/Avatar_2.png", alt: "Avatar 2" },
+ { src: "/assets/Avatar_3.png", alt: "Avatar 3" },
+ ],
+ h = [
+ { breakpoint: "block sm:hidden", size: "header", showText: !1 },
+ { breakpoint: "hidden sm:block md:hidden", size: "header", showText: !0 },
+ {
+ breakpoint: "hidden md:block lg:hidden",
+ size: "headerMd",
+ showText: !0,
+ },
+ {
+ breakpoint: "hidden lg:block xl:hidden",
+ size: "headerLg",
+ showText: !0,
+ },
+ { breakpoint: "hidden xl:block", size: "headerXl", showText: !0 },
+ ],
+ i = (a) =>
+ o.map((s, r) =>
+ e.jsx(
+ d,
+ {
+ href: s.href,
+ size: s.extraPadding && a === "xsmall" ? "xsmallUseCases" : a,
+ onClick: c,
+ ariaLabel: `Navigate to ${s.text} page`,
+ children: s.text,
+ },
+ r,
+ ),
+ ),
+ g = (a, s) =>
+ e.jsx(b, {
+ size: a,
+ children: x.map((r, u) =>
+ e.jsx(f, { src: r.src, alt: r.alt, size: s }, u),
+ ),
+ }),
+ l = (a) =>
+ e.jsx(d, {
+ href: "#",
+ size: a,
+ ariaLabel: "Log in to your account",
+ children: "Log in",
+ }),
+ n = (a, s, r) =>
+ e.jsxs(j, {
+ size: a,
+ ariaLabel: "Create a new rule with avatar decoration",
+ children: [g(s, r), e.jsx("span", { children: "Create rule" })],
+ }),
+ p = (a, s) => e.jsx(v, { size: a, showText: s });
+ return e.jsxs(e.Fragment, {
+ children: [
+ e.jsx("script", {
+ type: "application/ld+json",
+ dangerouslySetInnerHTML: { __html: JSON.stringify(m) },
+ }),
+ e.jsx("header", {
+ className:
+ "bg-[var(--color-surface-default-primary)] w-full border-b border-[var(--border-color-default-tertiary)]",
+ role: "banner",
+ "aria-label": "Main navigation header",
+ children: e.jsxs("nav", {
+ className:
+ "flex items-center justify-between mx-auto h-[40px] lg:h-[84px] xl:h-[88px] px-[var(--spacing-measures-spacing-016)] py-[var(--spacing-measures-spacing-008)] lg:px-[var(--spacing-measures-spacing-64,64px)] lg:py-[var(--spacing-measures-spacing-016,16px)]",
+ role: "navigation",
+ "aria-label": "Main navigation",
+ children: [
+ e.jsx("div", {
+ className: "flex items-center",
+ children: h.map((a, s) =>
+ e.jsx(
+ "div",
+ { className: a.breakpoint, children: p(a.size, a.showText) },
+ s,
+ ),
+ ),
+ }),
+ e.jsxs("div", {
+ className: "flex items-center",
+ children: [
+ e.jsx("div", { className: "block sm:hidden" }),
+ e.jsx("div", {
+ className: "hidden sm:block md:hidden",
+ children: e.jsxs(t, {
+ size: "default",
+ children: [i("xsmall"), l("xsmall")],
+ }),
+ }),
+ e.jsx("div", {
+ className: "hidden md:block lg:hidden",
+ children: e.jsx(t, {
+ size: "default",
+ children: i("xsmall"),
+ }),
+ }),
+ e.jsx("div", {
+ className: "hidden lg:block xl:hidden",
+ children: e.jsx(t, { size: "large", children: i("large") }),
+ }),
+ e.jsx("div", {
+ className: "hidden xl:block",
+ children: e.jsx(t, { size: "large", children: i("xlarge") }),
+ }),
+ ],
+ }),
+ e.jsxs("div", {
+ className: "flex items-center",
+ children: [
+ e.jsx("div", {
+ className: "block sm:hidden",
+ children: e.jsxs("div", {
+ className:
+ "flex items-center gap-[var(--spacing-scale-001)]",
+ children: [
+ i("xsmall"),
+ l("xsmall"),
+ n("xsmall", "small", "small"),
+ ],
+ }),
+ }),
+ e.jsx("div", {
+ className: "hidden sm:block md:hidden",
+ children: e.jsx("div", {
+ className:
+ "flex items-center gap-[var(--spacing-scale-004)]",
+ children: n("xsmall", "small", "small"),
+ }),
+ }),
+ e.jsx("div", {
+ className: "hidden md:block lg:hidden",
+ children: e.jsxs("div", {
+ className:
+ "flex items-center gap-[var(--spacing-measures-spacing-010)]",
+ children: [l("xsmall"), n("xsmall", "medium", "medium")],
+ }),
+ }),
+ e.jsx("div", {
+ className: "hidden lg:block xl:hidden",
+ children: e.jsxs("div", {
+ className:
+ "flex items-center gap-[var(--spacing-measures-spacing-004)]",
+ children: [l("large"), n("large", "xlarge", "xlarge")],
+ }),
+ }),
+ e.jsx("div", {
+ className: "hidden xl:block",
+ children: e.jsxs("div", {
+ className:
+ "flex items-center gap-[var(--spacing-measures-spacing-004)]",
+ children: [l("xlarge"), n("xlarge", "xlarge", "xlarge")],
+ }),
+ }),
+ ],
+ }),
+ ],
+ }),
+ }),
+ ],
+ });
+}
+N.__docgenInfo = { description: "", methods: [], displayName: "Header" };
+export { N as H };
diff --git a/docs/assets/Header.stories-5BG7D2h7.js b/docs/assets/Header.stories-5BG7D2h7.js
index ed4ef66..dbc239b 100644
--- a/docs/assets/Header.stories-5BG7D2h7.js
+++ b/docs/assets/Header.stories-5BG7D2h7.js
@@ -1,4 +1,106 @@
-import{j as e}from"./jsx-runtime-C_nHp4yK.js";import{H as o}from"./Header-Bz-bT1Sq.js";import"./iframe-D_aMTKb2.js";import"./preload-helper-DIZFD4sK.js";import"./Logo-DM7O8ATg.js";import"./MenuBar-anMCqtJv.js";import"./MenuBarItem-Dp8NM2fx.js";import"./Button-Z4hbXct5.js";import"./AvatarContainer-Bt0G0TWZ.js";import"./Avatar-C4Vb3oYl.js";const x={title:"Components/Header",component:o,parameters:{layout:"fullscreen",docs:{description:{component:"The main navigation header with responsive behavior across different breakpoints."}}},argTypes:{onToggle:{action:"toggled"}},tags:["autodocs"]},t={args:{},parameters:{docs:{description:{story:"Use the Viewport toolbar to change the iframe width and see how the header adapts to different screen sizes. The header shows different layouts for mobile, tablet, and desktop breakpoints."}}}},a={args:{},render:()=>e.jsxs("div",{className:"min-h-screen bg-[var(--color-surface-default-primary)]",children:[e.jsx(o,{}),e.jsx("main",{className:"p-8",children:e.jsxs("div",{className:"max-w-4xl mx-auto",children:[e.jsx("h1",{className:"text-2xl font-bold text-white mb-4",children:"Example Page Content"}),e.jsx("p",{className:"text-white mb-4",children:"This demonstrates how the header looks in a realistic page context. The header maintains its responsive behavior while providing navigation for the page content."}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[1,2,3,4,5,6].map(s=>e.jsxs("div",{className:"bg-[var(--color-surface-default-secondary)] p-4 rounded-lg",children:[e.jsxs("h3",{className:"text-white font-semibold mb-2",children:["Content Block ",s]}),e.jsx("p",{className:"text-[var(--color-content-default-secondary)] text-sm",children:"This is example content to show how the header integrates with page content."})]},s))})]})})]}),parameters:{docs:{description:{story:"The header integrated into a full page layout to show how it works in context."}}}};t.parameters={...t.parameters,docs:{...t.parameters?.docs,source:{originalSource:`{
+import { j as e } from "./jsx-runtime-C_nHp4yK.js";
+import { H as o } from "./Header-Bz-bT1Sq.js";
+import "./iframe-D_aMTKb2.js";
+import "./preload-helper-DIZFD4sK.js";
+import "./Logo-DM7O8ATg.js";
+import "./MenuBar-anMCqtJv.js";
+import "./MenuBarItem-Dp8NM2fx.js";
+import "./Button-Z4hbXct5.js";
+import "./AvatarContainer-Bt0G0TWZ.js";
+import "./Avatar-C4Vb3oYl.js";
+const x = {
+ title: "Components/Header",
+ component: o,
+ parameters: {
+ layout: "fullscreen",
+ docs: {
+ description: {
+ component:
+ "The main navigation header with responsive behavior across different breakpoints.",
+ },
+ },
+ },
+ argTypes: { onToggle: { action: "toggled" } },
+ tags: ["autodocs"],
+ },
+ t = {
+ args: {},
+ parameters: {
+ docs: {
+ description: {
+ story:
+ "Use the Viewport toolbar to change the iframe width and see how the header adapts to different screen sizes. The header shows different layouts for mobile, tablet, and desktop breakpoints.",
+ },
+ },
+ },
+ },
+ a = {
+ args: {},
+ render: () =>
+ e.jsxs("div", {
+ className: "min-h-screen bg-[var(--color-surface-default-primary)]",
+ children: [
+ e.jsx(o, {}),
+ e.jsx("main", {
+ className: "p-8",
+ children: e.jsxs("div", {
+ className: "max-w-4xl mx-auto",
+ children: [
+ e.jsx("h1", {
+ className: "text-2xl font-bold text-white mb-4",
+ children: "Example Page Content",
+ }),
+ e.jsx("p", {
+ className: "text-white mb-4",
+ children:
+ "This demonstrates how the header looks in a realistic page context. The header maintains its responsive behavior while providing navigation for the page content.",
+ }),
+ e.jsx("div", {
+ className:
+ "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",
+ children: [1, 2, 3, 4, 5, 6].map((s) =>
+ e.jsxs(
+ "div",
+ {
+ className:
+ "bg-[var(--color-surface-default-secondary)] p-4 rounded-lg",
+ children: [
+ e.jsxs("h3", {
+ className: "text-white font-semibold mb-2",
+ children: ["Content Block ", s],
+ }),
+ e.jsx("p", {
+ className:
+ "text-[var(--color-content-default-secondary)] text-sm",
+ children:
+ "This is example content to show how the header integrates with page content.",
+ }),
+ ],
+ },
+ s,
+ ),
+ ),
+ }),
+ ],
+ }),
+ }),
+ ],
+ }),
+ parameters: {
+ docs: {
+ description: {
+ story:
+ "The header integrated into a full page layout to show how it works in context.",
+ },
+ },
+ },
+ };
+t.parameters = {
+ ...t.parameters,
+ docs: {
+ ...t.parameters?.docs,
+ source: {
+ originalSource: `{
args: {},
parameters: {
docs: {
@@ -7,7 +109,17 @@ import{j as e}from"./jsx-runtime-C_nHp4yK.js";import{H as o}from"./Header-Bz-bT1
}
}
}
-}`,...t.parameters?.docs?.source}}};a.parameters={...a.parameters,docs:{...a.parameters?.docs,source:{originalSource:`{
+}`,
+ ...t.parameters?.docs?.source,
+ },
+ },
+};
+a.parameters = {
+ ...a.parameters,
+ docs: {
+ ...a.parameters?.docs,
+ source: {
+ originalSource: `{
args: {},
render: () =>
@@ -42,4 +154,15 @@ import{j as e}from"./jsx-runtime-C_nHp4yK.js";import{H as o}from"./Header-Bz-bT1
}
}
}
-}`,...a.parameters?.docs?.source}}};const f=["Default","InPageContext"];export{t as Default,a as InPageContext,f as __namedExportsOrder,x as default};
+}`,
+ ...a.parameters?.docs?.source,
+ },
+ },
+};
+const f = ["Default", "InPageContext"];
+export {
+ t as Default,
+ a as InPageContext,
+ f as __namedExportsOrder,
+ x as default,
+};
diff --git a/docs/assets/HeaderTab-D9jUrYUx.js b/docs/assets/HeaderTab-D9jUrYUx.js
index 7d4d5cd..7ec8b47 100644
--- a/docs/assets/HeaderTab-D9jUrYUx.js
+++ b/docs/assets/HeaderTab-D9jUrYUx.js
@@ -1 +1,41 @@
-import{j as s}from"./jsx-runtime-C_nHp4yK.js";function n({children:a,className:e="",stretch:l=!1,...p}){const r=l?"flex-1 sm:mr-[var(--spacing-scale-008)] md:mr-[185px] lg:mr-[var(--spacing-scale-024)] xl:mr-[var(--spacing-scale-032)]":"";return s.jsxs("div",{className:`HeaderTab header-breakpoint-transition relative bg-[var(--color-surface-default-brand-primary)] rounded-t-[32px] sm:rounded-t-[32px] md:rounded-t-[32px] lg:rounded-t-[32px] xl:rounded-t-[32px] pl-[var(--spacing-measures-spacing-012)] h-[40px] sm:h-[52px] md:h-[52px] lg:h-[52px] xl:h-[64px] sm:pr-[var(--spacing-scale-006)] md:pl-[var(--spacing-scale-024)] lg:pl-[var(--spacing-scale-024)] xl:pl-[var(--spacing-scale-032)] md:pr-[var(--spacing-scale-012)] lg:pr-[var(--spacing-scale-048)] xl:pr-[var(--spacing-scale-120)] md:gap-[var(--spacing-scale-032)] ${r} ${e}`,...p,children:[a,s.jsx("img",{src:"assets/Union_xsm.svg",alt:"Union",className:"absolute -bottom-[3px] -right-[52px] w-[61px] h-[24px] sm:w-[61px] sm:h-[31.5px] sm:hidden -z-10"}),s.jsx("img",{src:"assets/Union_sm_md_lg.svg",alt:"Union",className:"absolute -bottom-[3.7px] -right-[53px] w-[61px] h-[24px] sm:w-[61px] sm:h-[31.5px] hidden sm:block xl:hidden -z-10"}),s.jsx("img",{src:"assets/Union_xlg.svg",alt:"Union",className:"absolute -bottom-[6px] -right-[94px] w-[105px] h-[53px] hidden xl:block -z-10"})]})}n.__docgenInfo={description:"",methods:[],displayName:"HeaderTab",props:{className:{defaultValue:{value:'""',computed:!1},required:!1},stretch:{defaultValue:{value:"false",computed:!1},required:!1}}};export{n as H};
+import { j as s } from "./jsx-runtime-C_nHp4yK.js";
+function n({ children: a, className: e = "", stretch: l = !1, ...p }) {
+ const r = l
+ ? "flex-1 sm:mr-[var(--spacing-scale-008)] md:mr-[185px] lg:mr-[var(--spacing-scale-024)] xl:mr-[var(--spacing-scale-032)]"
+ : "";
+ return s.jsxs("div", {
+ className: `HeaderTab header-breakpoint-transition relative bg-[var(--color-surface-default-brand-primary)] rounded-t-[32px] sm:rounded-t-[32px] md:rounded-t-[32px] lg:rounded-t-[32px] xl:rounded-t-[32px] pl-[var(--spacing-measures-spacing-012)] h-[40px] sm:h-[52px] md:h-[52px] lg:h-[52px] xl:h-[64px] sm:pr-[var(--spacing-scale-006)] md:pl-[var(--spacing-scale-024)] lg:pl-[var(--spacing-scale-024)] xl:pl-[var(--spacing-scale-032)] md:pr-[var(--spacing-scale-012)] lg:pr-[var(--spacing-scale-048)] xl:pr-[var(--spacing-scale-120)] md:gap-[var(--spacing-scale-032)] ${r} ${e}`,
+ ...p,
+ children: [
+ a,
+ s.jsx("img", {
+ src: "assets/Union_xsm.svg",
+ alt: "Union",
+ className:
+ "absolute -bottom-[3px] -right-[52px] w-[61px] h-[24px] sm:w-[61px] sm:h-[31.5px] sm:hidden -z-10",
+ }),
+ s.jsx("img", {
+ src: "assets/Union_sm_md_lg.svg",
+ alt: "Union",
+ className:
+ "absolute -bottom-[3.7px] -right-[53px] w-[61px] h-[24px] sm:w-[61px] sm:h-[31.5px] hidden sm:block xl:hidden -z-10",
+ }),
+ s.jsx("img", {
+ src: "assets/Union_xlg.svg",
+ alt: "Union",
+ className:
+ "absolute -bottom-[6px] -right-[94px] w-[105px] h-[53px] hidden xl:block -z-10",
+ }),
+ ],
+ });
+}
+n.__docgenInfo = {
+ description: "",
+ methods: [],
+ displayName: "HeaderTab",
+ props: {
+ className: { defaultValue: { value: '""', computed: !1 }, required: !1 },
+ stretch: { defaultValue: { value: "false", computed: !1 }, required: !1 },
+ },
+};
+export { n as H };
diff --git a/docs/assets/HeaderTab.stories-7KIqz1LH.js b/docs/assets/HeaderTab.stories-7KIqz1LH.js
index 24a9d6c..24c0f05 100644
--- a/docs/assets/HeaderTab.stories-7KIqz1LH.js
+++ b/docs/assets/HeaderTab.stories-7KIqz1LH.js
@@ -1,8 +1,53 @@
-import{j as t}from"./jsx-runtime-C_nHp4yK.js";import{H as r}from"./HeaderTab-D9jUrYUx.js";import{L as s}from"./Logo-DM7O8ATg.js";import"./iframe-D_aMTKb2.js";import"./preload-helper-DIZFD4sK.js";const p={title:"Components/HeaderTab",component:r,parameters:{layout:"centered",docs:{description:{component:"A header tab container with decorative Union images and responsive behavior. Used to wrap content in the header with consistent styling and responsive breakpoint transitions."}}},argTypes:{stretch:{control:{type:"boolean"},description:"Whether the tab should stretch to fill available space"},className:{control:{type:"text"},description:"Additional CSS classes"}},tags:["autodocs"]},e={args:{stretch:!1},render:a=>t.jsx(r,{...a,children:t.jsx(s,{size:"homeHeaderMd"})})};e.parameters={...e.parameters,docs:{...e.parameters?.docs,source:{originalSource:`{
+import { j as t } from "./jsx-runtime-C_nHp4yK.js";
+import { H as r } from "./HeaderTab-D9jUrYUx.js";
+import { L as s } from "./Logo-DM7O8ATg.js";
+import "./iframe-D_aMTKb2.js";
+import "./preload-helper-DIZFD4sK.js";
+const p = {
+ title: "Components/HeaderTab",
+ component: r,
+ parameters: {
+ layout: "centered",
+ docs: {
+ description: {
+ component:
+ "A header tab container with decorative Union images and responsive behavior. Used to wrap content in the header with consistent styling and responsive breakpoint transitions.",
+ },
+ },
+ },
+ argTypes: {
+ stretch: {
+ control: { type: "boolean" },
+ description: "Whether the tab should stretch to fill available space",
+ },
+ className: {
+ control: { type: "text" },
+ description: "Additional CSS classes",
+ },
+ },
+ tags: ["autodocs"],
+ },
+ e = {
+ args: { stretch: !1 },
+ render: (a) =>
+ t.jsx(r, { ...a, children: t.jsx(s, { size: "homeHeaderMd" }) }),
+ };
+e.parameters = {
+ ...e.parameters,
+ docs: {
+ ...e.parameters?.docs,
+ source: {
+ originalSource: `{
args: {
stretch: false
},
render: args =>
-}`,...e.parameters?.docs?.source}}};const m=["Default"];export{e as Default,m as __namedExportsOrder,p as default};
+}`,
+ ...e.parameters?.docs?.source,
+ },
+ },
+};
+const m = ["Default"];
+export { e as Default, m as __namedExportsOrder, p as default };
diff --git a/docs/assets/HeroBanner-D2qHR4vw.js b/docs/assets/HeroBanner-D2qHR4vw.js
index a683cc3..0639945 100644
--- a/docs/assets/HeroBanner-D2qHR4vw.js
+++ b/docs/assets/HeroBanner-D2qHR4vw.js
@@ -1 +1,43 @@
-import{j as a}from"./jsx-runtime-C_nHp4yK.js";import{C as t}from"./ContentLockup-DbWiPA4N.js";import{H as p}from"./HeroDecor-Csfoi-N_.js";const c=({title:e,subtitle:s,description:r,ctaText:l,ctaHref:n})=>a.jsx("section",{className:"bg-transparent px-[var(--spacing-scale-008)] sm:px-[var(--spacing-scale-010)] md:px-[var(--spacing-scale-016)] lg:px-[var(--spacing-scale-024)] xl:px-[var(--spacing-scale-048)]",children:a.jsx("div",{className:"flex flex-col gap-[var(--spacing-scale-010)]",children:a.jsxs("div",{className:"bg-[var(--color-surface-default-brand-primary)] p-[var(--spacing-scale-012)] sm:p-[var(--spacing-scale-016)] md:p-[var(--spacing-scale-064)] lg:py-[var(--spacing-scale-096)] lg:px-[var(--spacing-scale-064)] rounded-tl-none rounded-tr-[16px] rounded-br-[16px] rounded-bl-[16px] flex flex-col gap-[var(--spacing-scale-024)] sm:gap-[var(--spacing-scale-024)] md:flex-row md:gap-[var(--spacing-scale-048)] relative overflow-hidden",children:[a.jsx(p,{className:"pointer-events-none absolute z-0 left-0 top-0 translate-x-[-72px] translate-y-[26px] sm:translate-x-[-78px] sm:translate-y-[24px] md:translate-x-[-86px] md:translate-y-[16px] lg:translate-x-[-88px] lg:translate-y-[16px] w-[1540px] h-[645px] scale-[1.04]"}),a.jsx("div",{className:"md:flex-1",children:a.jsx(t,{title:e,subtitle:s,description:r,ctaText:l,ctaHref:n,buttonClassName:"shrink-0 whitespace-nowrap min-w-[280px]"})}),a.jsx("div",{className:"w-full md:flex-1 rounded-[8px] overflow-hidden relative z-10 flex items-center justify-center",children:a.jsx("img",{src:"assets/HeroImage.png",alt:"Hero illustration",className:"w-full h-auto"})})]})})});c.__docgenInfo={description:"",methods:[],displayName:"HeroBanner"};export{c as H};
+import { j as a } from "./jsx-runtime-C_nHp4yK.js";
+import { C as t } from "./ContentLockup-DbWiPA4N.js";
+import { H as p } from "./HeroDecor-Csfoi-N_.js";
+const c = ({ title: e, subtitle: s, description: r, ctaText: l, ctaHref: n }) =>
+ a.jsx("section", {
+ className:
+ "bg-transparent px-[var(--spacing-scale-008)] sm:px-[var(--spacing-scale-010)] md:px-[var(--spacing-scale-016)] lg:px-[var(--spacing-scale-024)] xl:px-[var(--spacing-scale-048)]",
+ children: a.jsx("div", {
+ className: "flex flex-col gap-[var(--spacing-scale-010)]",
+ children: a.jsxs("div", {
+ className:
+ "bg-[var(--color-surface-default-brand-primary)] p-[var(--spacing-scale-012)] sm:p-[var(--spacing-scale-016)] md:p-[var(--spacing-scale-064)] lg:py-[var(--spacing-scale-096)] lg:px-[var(--spacing-scale-064)] rounded-tl-none rounded-tr-[16px] rounded-br-[16px] rounded-bl-[16px] flex flex-col gap-[var(--spacing-scale-024)] sm:gap-[var(--spacing-scale-024)] md:flex-row md:gap-[var(--spacing-scale-048)] relative overflow-hidden",
+ children: [
+ a.jsx(p, {
+ className:
+ "pointer-events-none absolute z-0 left-0 top-0 translate-x-[-72px] translate-y-[26px] sm:translate-x-[-78px] sm:translate-y-[24px] md:translate-x-[-86px] md:translate-y-[16px] lg:translate-x-[-88px] lg:translate-y-[16px] w-[1540px] h-[645px] scale-[1.04]",
+ }),
+ a.jsx("div", {
+ className: "md:flex-1",
+ children: a.jsx(t, {
+ title: e,
+ subtitle: s,
+ description: r,
+ ctaText: l,
+ ctaHref: n,
+ buttonClassName: "shrink-0 whitespace-nowrap min-w-[280px]",
+ }),
+ }),
+ a.jsx("div", {
+ className:
+ "w-full md:flex-1 rounded-[8px] overflow-hidden relative z-10 flex items-center justify-center",
+ children: a.jsx("img", {
+ src: "assets/HeroImage.png",
+ alt: "Hero illustration",
+ className: "w-full h-auto",
+ }),
+ }),
+ ],
+ }),
+ }),
+ });
+c.__docgenInfo = { description: "", methods: [], displayName: "HeroBanner" };
+export { c as H };
diff --git a/docs/assets/HeroBanner.stories-BAL-8UkC.js b/docs/assets/HeroBanner.stories-BAL-8UkC.js
index 51093b4..2b2bd6b 100644
--- a/docs/assets/HeroBanner.stories-BAL-8UkC.js
+++ b/docs/assets/HeroBanner.stories-BAL-8UkC.js
@@ -1,4 +1,64 @@
-import{H as e}from"./HeroBanner-D2qHR4vw.js";import"./jsx-runtime-C_nHp4yK.js";import"./iframe-D_aMTKb2.js";import"./preload-helper-DIZFD4sK.js";import"./ContentLockup-DbWiPA4N.js";import"./Button-Z4hbXct5.js";import"./HeroDecor-Csfoi-N_.js";const p={title:"Components/HeroBanner",component:e,parameters:{layout:"fullscreen",docs:{description:{component:"A responsive hero banner component that showcases the Community Rule branding and messaging. Adapts across multiple breakpoints with proper spacing, typography, and interactive elements. Includes background decorations and product demo integration."}}},argTypes:{title:{control:{type:"text"},description:"The main title text"},subtitle:{control:{type:"text"},description:"The subtitle text"},description:{control:{type:"text"},description:"The description text"},ctaText:{control:{type:"text"},description:"The call-to-action button text"},ctaHref:{control:{type:"text"},description:"The call-to-action button link"}},tags:["autodocs"]},t={args:{title:"Collaborate",subtitle:"with clarity",description:"Help your community make important decisions in a way that reflects its unique values.",ctaText:"Learn how Community Rule works",ctaHref:"#"},parameters:{docs:{description:{story:"Default hero banner with standard Community Rule messaging and branding."}}}};t.parameters={...t.parameters,docs:{...t.parameters?.docs,source:{originalSource:`{
+import { H as e } from "./HeroBanner-D2qHR4vw.js";
+import "./jsx-runtime-C_nHp4yK.js";
+import "./iframe-D_aMTKb2.js";
+import "./preload-helper-DIZFD4sK.js";
+import "./ContentLockup-DbWiPA4N.js";
+import "./Button-Z4hbXct5.js";
+import "./HeroDecor-Csfoi-N_.js";
+const p = {
+ title: "Components/HeroBanner",
+ component: e,
+ parameters: {
+ layout: "fullscreen",
+ docs: {
+ description: {
+ component:
+ "A responsive hero banner component that showcases the Community Rule branding and messaging. Adapts across multiple breakpoints with proper spacing, typography, and interactive elements. Includes background decorations and product demo integration.",
+ },
+ },
+ },
+ argTypes: {
+ title: { control: { type: "text" }, description: "The main title text" },
+ subtitle: { control: { type: "text" }, description: "The subtitle text" },
+ description: {
+ control: { type: "text" },
+ description: "The description text",
+ },
+ ctaText: {
+ control: { type: "text" },
+ description: "The call-to-action button text",
+ },
+ ctaHref: {
+ control: { type: "text" },
+ description: "The call-to-action button link",
+ },
+ },
+ tags: ["autodocs"],
+ },
+ t = {
+ args: {
+ title: "Collaborate",
+ subtitle: "with clarity",
+ description:
+ "Help your community make important decisions in a way that reflects its unique values.",
+ ctaText: "Learn how Community Rule works",
+ ctaHref: "#",
+ },
+ parameters: {
+ docs: {
+ description: {
+ story:
+ "Default hero banner with standard Community Rule messaging and branding.",
+ },
+ },
+ },
+ };
+t.parameters = {
+ ...t.parameters,
+ docs: {
+ ...t.parameters?.docs,
+ source: {
+ originalSource: `{
args: {
title: "Collaborate",
subtitle: "with clarity",
@@ -13,4 +73,10 @@ import{H as e}from"./HeroBanner-D2qHR4vw.js";import"./jsx-runtime-C_nHp4yK.js";i
}
}
}
-}`,...t.parameters?.docs?.source}}};const l=["Default"];export{t as Default,l as __namedExportsOrder,p as default};
+}`,
+ ...t.parameters?.docs?.source,
+ },
+ },
+};
+const l = ["Default"];
+export { t as Default, l as __namedExportsOrder, p as default };
diff --git a/docs/assets/HeroBannerSystem.stories-FwOHoVvm.js b/docs/assets/HeroBannerSystem.stories-FwOHoVvm.js
index 26935fd..3fd9533 100644
--- a/docs/assets/HeroBannerSystem.stories-FwOHoVvm.js
+++ b/docs/assets/HeroBannerSystem.stories-FwOHoVvm.js
@@ -1,4 +1,338 @@
-import{j as e}from"./jsx-runtime-C_nHp4yK.js";import{H as t}from"./HeroBanner-D2qHR4vw.js";import{C as r}from"./ContentLockup-DbWiPA4N.js";import{H as o}from"./HeroDecor-Csfoi-N_.js";import"./iframe-D_aMTKb2.js";import"./preload-helper-DIZFD4sK.js";import"./Button-Z4hbXct5.js";const y={title:"Systems/HeroBanner System",parameters:{layout:"fullscreen",docs:{description:{component:"Complete HeroBanner system showcasing all nested components working together. This demonstrates the full responsive behavior and component integration."}}},tags:["autodocs"]},n={render:()=>e.jsx("div",{className:"min-h-screen bg-gray-50",children:e.jsx(t,{title:"Collaborate",subtitle:"with clarity",description:"Help your community make important decisions in a way that reflects its unique values.",ctaText:"Learn how Community Rule works",ctaHref:"#"})}),parameters:{docs:{description:{story:"Complete HeroBanner system with all components integrated. Resize your browser to see responsive behavior across all breakpoints."}}}},a={render:()=>e.jsx("div",{className:"space-y-12 p-8",children:e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold mb-6",children:"HeroBanner Components"}),e.jsxs("div",{className:"space-y-8",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-semibold mb-4",children:"1. ContentLockup Component"}),e.jsx("div",{className:"bg-[var(--color-surface-default-brand-primary)] p-8 rounded-lg",children:e.jsx(r,{title:"Collaborate",subtitle:"with clarity",description:"Help your community make important decisions in a way that reflects its unique values.",ctaText:"Learn how Community Rule works",ctaHref:"#"})})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-semibold mb-4",children:"2. HeroDecor Component"}),e.jsxs("div",{className:"bg-[var(--color-surface-default-brand-primary)] p-8 rounded-lg relative overflow-hidden h-64",children:[e.jsx(o,{className:"w-full h-full"}),e.jsx("div",{className:"relative z-10 text-white mt-4",children:e.jsx("p",{children:"Decoration appears behind content"})})]})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-semibold mb-4",children:"3. Complete HeroBanner"}),e.jsx(t,{title:"Collaborate",subtitle:"with clarity",description:"Help your community make important decisions in a way that reflects its unique values.",ctaText:"Learn how Community Rule works",ctaHref:"#"})]})]})]})}),parameters:{docs:{description:{story:"Breakdown of individual components that make up the HeroBanner system, showing how they work together."}}}},s={render:()=>e.jsxs("div",{className:"space-y-8 p-8",children:[e.jsx("h2",{className:"text-2xl font-bold",children:"Responsive Breakpoints"}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-semibold mb-2",children:"XSmall (≤429px)"}),e.jsx("div",{className:"border-2 border-gray-300 rounded-lg overflow-hidden",style:{width:"400px"},children:e.jsx(t,{title:"Collaborate",subtitle:"with clarity",description:"Help your community make important decisions in a way that reflects its unique values.",ctaText:"Learn how Community Rule works",ctaHref:"#"})})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-semibold mb-2",children:"Small (430px+)"}),e.jsx("div",{className:"border-2 border-gray-300 rounded-lg overflow-hidden",style:{width:"600px"},children:e.jsx(t,{title:"Collaborate",subtitle:"with clarity",description:"Help your community make important decisions in a way that reflects its unique values.",ctaText:"Learn how Community Rule works",ctaHref:"#"})})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-semibold mb-2",children:"Medium (768px+)"}),e.jsx("div",{className:"border-2 border-gray-300 rounded-lg overflow-hidden",style:{width:"900px"},children:e.jsx(t,{title:"Collaborate",subtitle:"with clarity",description:"Help your community make important decisions in a way that reflects its unique values.",ctaText:"Learn how Community Rule works",ctaHref:"#"})})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-semibold mb-2",children:"Large (1024px+)"}),e.jsx("div",{className:"border-2 border-gray-300 rounded-lg overflow-hidden",style:{width:"1200px"},children:e.jsx(t,{title:"Collaborate",subtitle:"with clarity",description:"Help your community make important decisions in a way that reflects its unique values.",ctaText:"Learn how Community Rule works",ctaHref:"#"})})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-semibold mb-2",children:"XLarge (1440px+)"}),e.jsx("div",{className:"border-2 border-gray-300 rounded-lg overflow-hidden",style:{width:"1600px"},children:e.jsx(t,{title:"Collaborate",subtitle:"with clarity",description:"Help your community make important decisions in a way that reflects its unique values.",ctaText:"Learn how Community Rule works",ctaHref:"#"})})]})]})]}),parameters:{docs:{description:{story:"HeroBanner system demonstrating responsive behavior at each breakpoint. Each container simulates a different screen size."}}}},i={render:()=>e.jsxs("div",{className:"space-y-8 p-8",children:[e.jsx("h2",{className:"text-2xl font-bold",children:"Content Variations"}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-semibold mb-2",children:"Standard Content"}),e.jsx(t,{title:"Collaborate",subtitle:"with clarity",description:"Help your community make important decisions in a way that reflects its unique values.",ctaText:"Learn how Community Rule works",ctaHref:"#"})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-semibold mb-2",children:"Alternative Content"}),e.jsx(t,{title:"Build",subtitle:"better communities",description:"Create operating manuals that help your community thrive and make decisions together.",ctaText:"Get started today",ctaHref:"/signup"})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-semibold mb-2",children:"Long Description"}),e.jsx(t,{title:"Collaborate",subtitle:"with clarity",description:"Help your community make important decisions in a way that reflects its unique values. Our platform provides the tools and frameworks needed to build successful, sustainable communities that can navigate complex challenges together.",ctaText:"Learn how Community Rule works",ctaHref:"#"})]})]})]}),parameters:{docs:{description:{story:"HeroBanner system with different content variations to demonstrate flexibility and content handling."}}}};n.parameters={...n.parameters,docs:{...n.parameters?.docs,source:{originalSource:`{
+import { j as e } from "./jsx-runtime-C_nHp4yK.js";
+import { H as t } from "./HeroBanner-D2qHR4vw.js";
+import { C as r } from "./ContentLockup-DbWiPA4N.js";
+import { H as o } from "./HeroDecor-Csfoi-N_.js";
+import "./iframe-D_aMTKb2.js";
+import "./preload-helper-DIZFD4sK.js";
+import "./Button-Z4hbXct5.js";
+const y = {
+ title: "Systems/HeroBanner System",
+ parameters: {
+ layout: "fullscreen",
+ docs: {
+ description: {
+ component:
+ "Complete HeroBanner system showcasing all nested components working together. This demonstrates the full responsive behavior and component integration.",
+ },
+ },
+ },
+ tags: ["autodocs"],
+ },
+ n = {
+ render: () =>
+ e.jsx("div", {
+ className: "min-h-screen bg-gray-50",
+ children: e.jsx(t, {
+ title: "Collaborate",
+ subtitle: "with clarity",
+ description:
+ "Help your community make important decisions in a way that reflects its unique values.",
+ ctaText: "Learn how Community Rule works",
+ ctaHref: "#",
+ }),
+ }),
+ parameters: {
+ docs: {
+ description: {
+ story:
+ "Complete HeroBanner system with all components integrated. Resize your browser to see responsive behavior across all breakpoints.",
+ },
+ },
+ },
+ },
+ a = {
+ render: () =>
+ e.jsx("div", {
+ className: "space-y-12 p-8",
+ children: e.jsxs("div", {
+ children: [
+ e.jsx("h2", {
+ className: "text-2xl font-bold mb-6",
+ children: "HeroBanner Components",
+ }),
+ e.jsxs("div", {
+ className: "space-y-8",
+ children: [
+ e.jsxs("div", {
+ children: [
+ e.jsx("h3", {
+ className: "text-lg font-semibold mb-4",
+ children: "1. ContentLockup Component",
+ }),
+ e.jsx("div", {
+ className:
+ "bg-[var(--color-surface-default-brand-primary)] p-8 rounded-lg",
+ children: e.jsx(r, {
+ title: "Collaborate",
+ subtitle: "with clarity",
+ description:
+ "Help your community make important decisions in a way that reflects its unique values.",
+ ctaText: "Learn how Community Rule works",
+ ctaHref: "#",
+ }),
+ }),
+ ],
+ }),
+ e.jsxs("div", {
+ children: [
+ e.jsx("h3", {
+ className: "text-lg font-semibold mb-4",
+ children: "2. HeroDecor Component",
+ }),
+ e.jsxs("div", {
+ className:
+ "bg-[var(--color-surface-default-brand-primary)] p-8 rounded-lg relative overflow-hidden h-64",
+ children: [
+ e.jsx(o, { className: "w-full h-full" }),
+ e.jsx("div", {
+ className: "relative z-10 text-white mt-4",
+ children: e.jsx("p", {
+ children: "Decoration appears behind content",
+ }),
+ }),
+ ],
+ }),
+ ],
+ }),
+ e.jsxs("div", {
+ children: [
+ e.jsx("h3", {
+ className: "text-lg font-semibold mb-4",
+ children: "3. Complete HeroBanner",
+ }),
+ e.jsx(t, {
+ title: "Collaborate",
+ subtitle: "with clarity",
+ description:
+ "Help your community make important decisions in a way that reflects its unique values.",
+ ctaText: "Learn how Community Rule works",
+ ctaHref: "#",
+ }),
+ ],
+ }),
+ ],
+ }),
+ ],
+ }),
+ }),
+ parameters: {
+ docs: {
+ description: {
+ story:
+ "Breakdown of individual components that make up the HeroBanner system, showing how they work together.",
+ },
+ },
+ },
+ },
+ s = {
+ render: () =>
+ e.jsxs("div", {
+ className: "space-y-8 p-8",
+ children: [
+ e.jsx("h2", {
+ className: "text-2xl font-bold",
+ children: "Responsive Breakpoints",
+ }),
+ e.jsxs("div", {
+ className: "space-y-6",
+ children: [
+ e.jsxs("div", {
+ children: [
+ e.jsx("h3", {
+ className: "text-lg font-semibold mb-2",
+ children: "XSmall (≤429px)",
+ }),
+ e.jsx("div", {
+ className:
+ "border-2 border-gray-300 rounded-lg overflow-hidden",
+ style: { width: "400px" },
+ children: e.jsx(t, {
+ title: "Collaborate",
+ subtitle: "with clarity",
+ description:
+ "Help your community make important decisions in a way that reflects its unique values.",
+ ctaText: "Learn how Community Rule works",
+ ctaHref: "#",
+ }),
+ }),
+ ],
+ }),
+ e.jsxs("div", {
+ children: [
+ e.jsx("h3", {
+ className: "text-lg font-semibold mb-2",
+ children: "Small (430px+)",
+ }),
+ e.jsx("div", {
+ className:
+ "border-2 border-gray-300 rounded-lg overflow-hidden",
+ style: { width: "600px" },
+ children: e.jsx(t, {
+ title: "Collaborate",
+ subtitle: "with clarity",
+ description:
+ "Help your community make important decisions in a way that reflects its unique values.",
+ ctaText: "Learn how Community Rule works",
+ ctaHref: "#",
+ }),
+ }),
+ ],
+ }),
+ e.jsxs("div", {
+ children: [
+ e.jsx("h3", {
+ className: "text-lg font-semibold mb-2",
+ children: "Medium (768px+)",
+ }),
+ e.jsx("div", {
+ className:
+ "border-2 border-gray-300 rounded-lg overflow-hidden",
+ style: { width: "900px" },
+ children: e.jsx(t, {
+ title: "Collaborate",
+ subtitle: "with clarity",
+ description:
+ "Help your community make important decisions in a way that reflects its unique values.",
+ ctaText: "Learn how Community Rule works",
+ ctaHref: "#",
+ }),
+ }),
+ ],
+ }),
+ e.jsxs("div", {
+ children: [
+ e.jsx("h3", {
+ className: "text-lg font-semibold mb-2",
+ children: "Large (1024px+)",
+ }),
+ e.jsx("div", {
+ className:
+ "border-2 border-gray-300 rounded-lg overflow-hidden",
+ style: { width: "1200px" },
+ children: e.jsx(t, {
+ title: "Collaborate",
+ subtitle: "with clarity",
+ description:
+ "Help your community make important decisions in a way that reflects its unique values.",
+ ctaText: "Learn how Community Rule works",
+ ctaHref: "#",
+ }),
+ }),
+ ],
+ }),
+ e.jsxs("div", {
+ children: [
+ e.jsx("h3", {
+ className: "text-lg font-semibold mb-2",
+ children: "XLarge (1440px+)",
+ }),
+ e.jsx("div", {
+ className:
+ "border-2 border-gray-300 rounded-lg overflow-hidden",
+ style: { width: "1600px" },
+ children: e.jsx(t, {
+ title: "Collaborate",
+ subtitle: "with clarity",
+ description:
+ "Help your community make important decisions in a way that reflects its unique values.",
+ ctaText: "Learn how Community Rule works",
+ ctaHref: "#",
+ }),
+ }),
+ ],
+ }),
+ ],
+ }),
+ ],
+ }),
+ parameters: {
+ docs: {
+ description: {
+ story:
+ "HeroBanner system demonstrating responsive behavior at each breakpoint. Each container simulates a different screen size.",
+ },
+ },
+ },
+ },
+ i = {
+ render: () =>
+ e.jsxs("div", {
+ className: "space-y-8 p-8",
+ children: [
+ e.jsx("h2", {
+ className: "text-2xl font-bold",
+ children: "Content Variations",
+ }),
+ e.jsxs("div", {
+ className: "space-y-6",
+ children: [
+ e.jsxs("div", {
+ children: [
+ e.jsx("h3", {
+ className: "text-lg font-semibold mb-2",
+ children: "Standard Content",
+ }),
+ e.jsx(t, {
+ title: "Collaborate",
+ subtitle: "with clarity",
+ description:
+ "Help your community make important decisions in a way that reflects its unique values.",
+ ctaText: "Learn how Community Rule works",
+ ctaHref: "#",
+ }),
+ ],
+ }),
+ e.jsxs("div", {
+ children: [
+ e.jsx("h3", {
+ className: "text-lg font-semibold mb-2",
+ children: "Alternative Content",
+ }),
+ e.jsx(t, {
+ title: "Build",
+ subtitle: "better communities",
+ description:
+ "Create operating manuals that help your community thrive and make decisions together.",
+ ctaText: "Get started today",
+ ctaHref: "/signup",
+ }),
+ ],
+ }),
+ e.jsxs("div", {
+ children: [
+ e.jsx("h3", {
+ className: "text-lg font-semibold mb-2",
+ children: "Long Description",
+ }),
+ e.jsx(t, {
+ title: "Collaborate",
+ subtitle: "with clarity",
+ description:
+ "Help your community make important decisions in a way that reflects its unique values. Our platform provides the tools and frameworks needed to build successful, sustainable communities that can navigate complex challenges together.",
+ ctaText: "Learn how Community Rule works",
+ ctaHref: "#",
+ }),
+ ],
+ }),
+ ],
+ }),
+ ],
+ }),
+ parameters: {
+ docs: {
+ description: {
+ story:
+ "HeroBanner system with different content variations to demonstrate flexibility and content handling.",
+ },
+ },
+ },
+ };
+n.parameters = {
+ ...n.parameters,
+ docs: {
+ ...n.parameters?.docs,
+ source: {
+ originalSource: `{
render: () =>
,
@@ -9,7 +343,17 @@ import{j as e}from"./jsx-runtime-C_nHp4yK.js";import{H as t}from"./HeroBanner-D2
}
}
}
-}`,...n.parameters?.docs?.source}}};a.parameters={...a.parameters,docs:{...a.parameters?.docs,source:{originalSource:`{
+}`,
+ ...n.parameters?.docs?.source,
+ },
+ },
+};
+a.parameters = {
+ ...a.parameters,
+ docs: {
+ ...a.parameters?.docs,
+ source: {
+ originalSource: `{
render: () =>
HeroBanner Components
@@ -52,7 +396,17 @@ import{j as e}from"./jsx-runtime-C_nHp4yK.js";import{H as t}from"./HeroBanner-D2
}
}
}
-}`,...a.parameters?.docs?.source}}};s.parameters={...s.parameters,docs:{...s.parameters?.docs,source:{originalSource:`{
+}`,
+ ...a.parameters?.docs?.source,
+ },
+ },
+};
+s.parameters = {
+ ...s.parameters,
+ docs: {
+ ...s.parameters?.docs,
+ source: {
+ originalSource: `{
render: () =>
Responsive Breakpoints
@@ -110,7 +464,17 @@ import{j as e}from"./jsx-runtime-C_nHp4yK.js";import{H as t}from"./HeroBanner-D2
}
}
}
-}`,...s.parameters?.docs?.source}}};i.parameters={...i.parameters,docs:{...i.parameters?.docs,source:{originalSource:`{
+}`,
+ ...s.parameters?.docs?.source,
+ },
+ },
+};
+i.parameters = {
+ ...i.parameters,
+ docs: {
+ ...i.parameters?.docs,
+ source: {
+ originalSource: `{
render: () =>
Content Variations
@@ -138,4 +502,22 @@ import{j as e}from"./jsx-runtime-C_nHp4yK.js";import{H as t}from"./HeroBanner-D2
}
}
}
-}`,...i.parameters?.docs?.source}}};const v=["CompleteSystem","ComponentBreakdown","ResponsiveBreakpoints","ContentVariations"];export{n as CompleteSystem,a as ComponentBreakdown,i as ContentVariations,s as ResponsiveBreakpoints,v as __namedExportsOrder,y as default};
+}`,
+ ...i.parameters?.docs?.source,
+ },
+ },
+};
+const v = [
+ "CompleteSystem",
+ "ComponentBreakdown",
+ "ResponsiveBreakpoints",
+ "ContentVariations",
+];
+export {
+ n as CompleteSystem,
+ a as ComponentBreakdown,
+ i as ContentVariations,
+ s as ResponsiveBreakpoints,
+ v as __namedExportsOrder,
+ y as default,
+};
diff --git a/docs/assets/HeroDecor-Csfoi-N_.js b/docs/assets/HeroDecor-Csfoi-N_.js
index 76db2e2..f56e051 100644
--- a/docs/assets/HeroDecor-Csfoi-N_.js
+++ b/docs/assets/HeroDecor-Csfoi-N_.js
@@ -1 +1,88 @@
-import{j as e}from"./jsx-runtime-C_nHp4yK.js";const s=({className:C=""})=>e.jsx("svg",{className:`text-[#FDFAA8] opacity-50 ${C}`,viewBox:"0 0 1540 645","aria-hidden":"true",overflow:"visible",preserveAspectRatio:"xMidYMid slice",children:e.jsxs("g",{fill:"currentColor",children:[e.jsx("defs",{children:e.jsxs("filter",{id:"grain",filterUnits:"objectBoundingBox",x:"0",y:"0",width:"1",height:"1",colorInterpolationFilters:"sRGB",children:[e.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.8",numOctaves:"2",seed:"3",stitchTiles:"stitch",result:"noise"}),e.jsx("feColorMatrix",{in:"noise",result:"softNoise",type:"matrix",values:" 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),e.jsx("feComposite",{in:"softNoise",in2:"SourceAlpha",operator:"in",result:"maskedNoise"}),e.jsx("feBlend",{in:"SourceGraphic",in2:"maskedNoise",mode:"multiply"})]})}),e.jsxs("g",{fill:"currentColor",filter:"url(#grain)",children:[e.jsx("path",{d:"M1441.54 226.758C1495.92 226.758 1540 320.385 1540 435.879C1540 551.373 1495.92 645 1441.54 645C1387.16 645 1343.08 551.373 1343.08 435.879C1343.08 320.385 1387.16 226.758 1441.54 226.758Z"}),e.jsx("path",{d:"M1441.54 226.758C1495.92 226.758 1540 320.385 1540 435.879C1540 551.373 1495.92 645 1441.54 645C1387.16 645 1343.08 551.373 1343.08 435.879C1343.08 320.385 1387.16 226.758 1441.54 226.758Z"}),e.jsx("path",{d:"M674.066 209.121C728.443 209.121 772.525 302.748 772.525 418.242C772.525 533.737 728.443 627.363 674.066 627.363C619.688 627.363 575.607 533.737 575.607 418.242C575.607 302.748 619.688 209.121 674.066 209.121Z"}),e.jsx("path",{d:"M674.066 209.121C728.443 209.121 772.525 302.748 772.525 418.242C772.525 533.737 728.443 627.363 674.066 627.363C619.688 627.363 575.607 533.737 575.607 418.242C575.607 302.748 619.688 209.121 674.066 209.121Z"}),e.jsx("path",{d:"M290.328 0C344.705 0 388.787 93.6267 388.787 209.121C388.787 211.519 388.765 213.907 388.728 216.285C401.725 133.082 438.661 73.0664 482.197 73.0664C536.574 73.0664 580.656 166.693 580.656 282.188C580.656 397.682 536.574 491.309 482.197 491.309C427.819 491.309 383.738 397.682 383.738 282.188C383.738 279.79 383.758 277.401 383.796 275.023C370.798 358.226 333.864 418.242 290.328 418.242C246.792 418.242 209.856 358.226 196.859 275.023C196.897 277.401 196.918 279.79 196.918 282.188C196.918 397.682 152.836 491.309 98.459 491.309C44.0816 491.309 0 397.682 0 282.188C0 166.693 44.0816 73.0664 98.459 73.0664C141.995 73.0664 178.929 133.082 191.927 216.285C191.889 213.907 191.869 211.519 191.869 209.121C191.869 93.6267 235.95 0 290.328 0Z"}),e.jsx("path",{d:"M290.328 0C344.705 0 388.787 93.6267 388.787 209.121C388.787 211.519 388.765 213.907 388.728 216.285C401.725 133.082 438.661 73.0664 482.197 73.0664C536.574 73.0664 580.656 166.693 580.656 282.188C580.656 397.682 536.574 491.309 482.197 491.309C427.819 491.309 383.738 397.682 383.738 282.188C383.738 279.79 383.758 277.401 383.796 275.023C370.798 358.226 333.864 418.242 290.328 418.242C246.792 418.242 209.856 358.226 196.859 275.023C196.897 277.401 196.918 279.79 196.918 282.188C196.918 397.682 152.836 491.309 98.459 491.309C44.0816 491.309 0 397.682 0 282.188C0 166.693 44.0816 73.0664 98.459 73.0664C141.995 73.0664 178.929 133.082 191.927 216.285C191.889 213.907 191.869 211.519 191.869 209.121C191.869 93.6267 235.95 0 290.328 0Z"}),e.jsx("path",{d:"M1057.8 0C1112.18 0 1156.26 93.6267 1156.26 209.121C1156.26 211.519 1156.24 213.907 1156.2 216.285C1169.2 133.082 1206.14 73.0664 1249.67 73.0664C1304.05 73.0664 1348.13 166.693 1348.13 282.188C1348.13 397.682 1304.05 491.309 1249.67 491.309C1195.29 491.309 1151.21 397.682 1151.21 282.188C1151.21 279.79 1151.23 277.401 1151.27 275.023C1138.27 358.226 1101.34 418.242 1057.8 418.242C1014.27 418.242 977.332 358.226 964.334 275.023C964.372 277.401 964.393 279.79 964.393 282.188C964.393 397.682 920.312 491.309 865.934 491.309C811.557 491.309 767.475 397.682 767.475 282.188C767.475 166.693 811.557 73.0664 865.934 73.0664C909.47 73.0664 946.405 133.082 959.402 216.285C959.365 213.907 959.344 211.519 959.344 209.121C959.344 93.6267 1003.43 0 1057.8 0Z"})]})]})});s.__docgenInfo={description:"",methods:[],displayName:"HeroDecor",props:{className:{defaultValue:{value:'""',computed:!1},required:!1}}};export{s as H};
+import { j as e } from "./jsx-runtime-C_nHp4yK.js";
+const s = ({ className: C = "" }) =>
+ e.jsx("svg", {
+ className: `text-[#FDFAA8] opacity-50 ${C}`,
+ viewBox: "0 0 1540 645",
+ "aria-hidden": "true",
+ overflow: "visible",
+ preserveAspectRatio: "xMidYMid slice",
+ children: e.jsxs("g", {
+ fill: "currentColor",
+ children: [
+ e.jsx("defs", {
+ children: e.jsxs("filter", {
+ id: "grain",
+ filterUnits: "objectBoundingBox",
+ x: "0",
+ y: "0",
+ width: "1",
+ height: "1",
+ colorInterpolationFilters: "sRGB",
+ children: [
+ e.jsx("feTurbulence", {
+ type: "fractalNoise",
+ baseFrequency: "0.8",
+ numOctaves: "2",
+ seed: "3",
+ stitchTiles: "stitch",
+ result: "noise",
+ }),
+ e.jsx("feColorMatrix", {
+ in: "noise",
+ result: "softNoise",
+ type: "matrix",
+ values: " 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0",
+ }),
+ e.jsx("feComposite", {
+ in: "softNoise",
+ in2: "SourceAlpha",
+ operator: "in",
+ result: "maskedNoise",
+ }),
+ e.jsx("feBlend", {
+ in: "SourceGraphic",
+ in2: "maskedNoise",
+ mode: "multiply",
+ }),
+ ],
+ }),
+ }),
+ e.jsxs("g", {
+ fill: "currentColor",
+ filter: "url(#grain)",
+ children: [
+ e.jsx("path", {
+ d: "M1441.54 226.758C1495.92 226.758 1540 320.385 1540 435.879C1540 551.373 1495.92 645 1441.54 645C1387.16 645 1343.08 551.373 1343.08 435.879C1343.08 320.385 1387.16 226.758 1441.54 226.758Z",
+ }),
+ e.jsx("path", {
+ d: "M1441.54 226.758C1495.92 226.758 1540 320.385 1540 435.879C1540 551.373 1495.92 645 1441.54 645C1387.16 645 1343.08 551.373 1343.08 435.879C1343.08 320.385 1387.16 226.758 1441.54 226.758Z",
+ }),
+ e.jsx("path", {
+ d: "M674.066 209.121C728.443 209.121 772.525 302.748 772.525 418.242C772.525 533.737 728.443 627.363 674.066 627.363C619.688 627.363 575.607 533.737 575.607 418.242C575.607 302.748 619.688 209.121 674.066 209.121Z",
+ }),
+ e.jsx("path", {
+ d: "M674.066 209.121C728.443 209.121 772.525 302.748 772.525 418.242C772.525 533.737 728.443 627.363 674.066 627.363C619.688 627.363 575.607 533.737 575.607 418.242C575.607 302.748 619.688 209.121 674.066 209.121Z",
+ }),
+ e.jsx("path", {
+ d: "M290.328 0C344.705 0 388.787 93.6267 388.787 209.121C388.787 211.519 388.765 213.907 388.728 216.285C401.725 133.082 438.661 73.0664 482.197 73.0664C536.574 73.0664 580.656 166.693 580.656 282.188C580.656 397.682 536.574 491.309 482.197 491.309C427.819 491.309 383.738 397.682 383.738 282.188C383.738 279.79 383.758 277.401 383.796 275.023C370.798 358.226 333.864 418.242 290.328 418.242C246.792 418.242 209.856 358.226 196.859 275.023C196.897 277.401 196.918 279.79 196.918 282.188C196.918 397.682 152.836 491.309 98.459 491.309C44.0816 491.309 0 397.682 0 282.188C0 166.693 44.0816 73.0664 98.459 73.0664C141.995 73.0664 178.929 133.082 191.927 216.285C191.889 213.907 191.869 211.519 191.869 209.121C191.869 93.6267 235.95 0 290.328 0Z",
+ }),
+ e.jsx("path", {
+ d: "M290.328 0C344.705 0 388.787 93.6267 388.787 209.121C388.787 211.519 388.765 213.907 388.728 216.285C401.725 133.082 438.661 73.0664 482.197 73.0664C536.574 73.0664 580.656 166.693 580.656 282.188C580.656 397.682 536.574 491.309 482.197 491.309C427.819 491.309 383.738 397.682 383.738 282.188C383.738 279.79 383.758 277.401 383.796 275.023C370.798 358.226 333.864 418.242 290.328 418.242C246.792 418.242 209.856 358.226 196.859 275.023C196.897 277.401 196.918 279.79 196.918 282.188C196.918 397.682 152.836 491.309 98.459 491.309C44.0816 491.309 0 397.682 0 282.188C0 166.693 44.0816 73.0664 98.459 73.0664C141.995 73.0664 178.929 133.082 191.927 216.285C191.889 213.907 191.869 211.519 191.869 209.121C191.869 93.6267 235.95 0 290.328 0Z",
+ }),
+ e.jsx("path", {
+ d: "M1057.8 0C1112.18 0 1156.26 93.6267 1156.26 209.121C1156.26 211.519 1156.24 213.907 1156.2 216.285C1169.2 133.082 1206.14 73.0664 1249.67 73.0664C1304.05 73.0664 1348.13 166.693 1348.13 282.188C1348.13 397.682 1304.05 491.309 1249.67 491.309C1195.29 491.309 1151.21 397.682 1151.21 282.188C1151.21 279.79 1151.23 277.401 1151.27 275.023C1138.27 358.226 1101.34 418.242 1057.8 418.242C1014.27 418.242 977.332 358.226 964.334 275.023C964.372 277.401 964.393 279.79 964.393 282.188C964.393 397.682 920.312 491.309 865.934 491.309C811.557 491.309 767.475 397.682 767.475 282.188C767.475 166.693 811.557 73.0664 865.934 73.0664C909.47 73.0664 946.405 133.082 959.402 216.285C959.365 213.907 959.344 211.519 959.344 209.121C959.344 93.6267 1003.43 0 1057.8 0Z",
+ }),
+ ],
+ }),
+ ],
+ }),
+ });
+s.__docgenInfo = {
+ description: "",
+ methods: [],
+ displayName: "HeroDecor",
+ props: {
+ className: { defaultValue: { value: '""', computed: !1 }, required: !1 },
+ },
+};
+export { s as H };
diff --git a/docs/assets/HeroDecor.stories-CUMQtAQh.js b/docs/assets/HeroDecor.stories-CUMQtAQh.js
index 00cffdb..75a0d7a 100644
--- a/docs/assets/HeroDecor.stories-CUMQtAQh.js
+++ b/docs/assets/HeroDecor.stories-CUMQtAQh.js
@@ -1,4 +1,73 @@
-import{j as e}from"./jsx-runtime-C_nHp4yK.js";import{H as o}from"./HeroDecor-Csfoi-N_.js";import"./iframe-D_aMTKb2.js";import"./preload-helper-DIZFD4sK.js";const d={title:"Components/HeroDecor",component:o,parameters:{layout:"centered",docs:{description:{component:"A decorative SVG component that provides background visual elements for the HeroBanner. Features grain effects and organic shapes that enhance the visual appeal without interfering with content readability."}}},argTypes:{className:{control:{type:"text"},description:"Additional CSS classes for positioning and styling"}},tags:["autodocs"]},r={args:{className:"w-[400px] h-[200px]"},parameters:{docs:{description:{story:"Default hero decoration with standard sizing and positioning."}}}},t={args:{className:"w-[600px] h-[300px]"},render:a=>e.jsxs("div",{className:"bg-[var(--color-surface-default-brand-primary)] p-8 rounded-lg relative overflow-hidden",children:[e.jsx(o,{...a}),e.jsxs("div",{className:"relative z-10 text-white mt-4",children:[e.jsx("h3",{children:"Content Overlay"}),e.jsx("p",{children:"This demonstrates how the decoration appears behind content."})]})]}),parameters:{docs:{description:{story:"Hero decoration with background color to show how it integrates with content."}}}};r.parameters={...r.parameters,docs:{...r.parameters?.docs,source:{originalSource:`{
+import { j as e } from "./jsx-runtime-C_nHp4yK.js";
+import { H as o } from "./HeroDecor-Csfoi-N_.js";
+import "./iframe-D_aMTKb2.js";
+import "./preload-helper-DIZFD4sK.js";
+const d = {
+ title: "Components/HeroDecor",
+ component: o,
+ parameters: {
+ layout: "centered",
+ docs: {
+ description: {
+ component:
+ "A decorative SVG component that provides background visual elements for the HeroBanner. Features grain effects and organic shapes that enhance the visual appeal without interfering with content readability.",
+ },
+ },
+ },
+ argTypes: {
+ className: {
+ control: { type: "text" },
+ description: "Additional CSS classes for positioning and styling",
+ },
+ },
+ tags: ["autodocs"],
+ },
+ r = {
+ args: { className: "w-[400px] h-[200px]" },
+ parameters: {
+ docs: {
+ description: {
+ story:
+ "Default hero decoration with standard sizing and positioning.",
+ },
+ },
+ },
+ },
+ t = {
+ args: { className: "w-[600px] h-[300px]" },
+ render: (a) =>
+ e.jsxs("div", {
+ className:
+ "bg-[var(--color-surface-default-brand-primary)] p-8 rounded-lg relative overflow-hidden",
+ children: [
+ e.jsx(o, { ...a }),
+ e.jsxs("div", {
+ className: "relative z-10 text-white mt-4",
+ children: [
+ e.jsx("h3", { children: "Content Overlay" }),
+ e.jsx("p", {
+ children:
+ "This demonstrates how the decoration appears behind content.",
+ }),
+ ],
+ }),
+ ],
+ }),
+ parameters: {
+ docs: {
+ description: {
+ story:
+ "Hero decoration with background color to show how it integrates with content.",
+ },
+ },
+ },
+ };
+r.parameters = {
+ ...r.parameters,
+ docs: {
+ ...r.parameters?.docs,
+ source: {
+ originalSource: `{
args: {
className: "w-[400px] h-[200px]"
},
@@ -9,7 +78,17 @@ import{j as e}from"./jsx-runtime-C_nHp4yK.js";import{H as o}from"./HeroDecor-Csf
}
}
}
-}`,...r.parameters?.docs?.source}}};t.parameters={...t.parameters,docs:{...t.parameters?.docs,source:{originalSource:`{
+}`,
+ ...r.parameters?.docs?.source,
+ },
+ },
+};
+t.parameters = {
+ ...t.parameters,
+ docs: {
+ ...t.parameters?.docs,
+ source: {
+ originalSource: `{
args: {
className: "w-[600px] h-[300px]"
},
@@ -27,4 +106,15 @@ import{j as e}from"./jsx-runtime-C_nHp4yK.js";import{H as o}from"./HeroDecor-Csf
}
}
}
-}`,...t.parameters?.docs?.source}}};const p=["Default","WithBackground"];export{r as Default,t as WithBackground,p as __namedExportsOrder,d as default};
+}`,
+ ...t.parameters?.docs?.source,
+ },
+ },
+};
+const p = ["Default", "WithBackground"];
+export {
+ r as Default,
+ t as WithBackground,
+ p as __namedExportsOrder,
+ d as default,
+};
diff --git a/docs/assets/HomeHeader.stories-BZFS_npz.js b/docs/assets/HomeHeader.stories-BZFS_npz.js
index 5ad3688..7d65d15 100644
--- a/docs/assets/HomeHeader.stories-BZFS_npz.js
+++ b/docs/assets/HomeHeader.stories-BZFS_npz.js
@@ -1,4 +1,333 @@
-import{j as e}from"./jsx-runtime-C_nHp4yK.js";import{r as w}from"./iframe-D_aMTKb2.js";import{L as N}from"./Logo-DM7O8ATg.js";import{M as l}from"./MenuBar-anMCqtJv.js";import{M as p}from"./MenuBarItem-Dp8NM2fx.js";import{B as y}from"./Button-Z4hbXct5.js";import{A as k}from"./AvatarContainer-Bt0G0TWZ.js";import{A as H}from"./Avatar-C4Vb3oYl.js";import{H as T}from"./HeaderTab-D9jUrYUx.js";import{H as A}from"./Header-Bz-bT1Sq.js";import"./preload-helper-DIZFD4sK.js";function m(){const[t,h]=w.useState(!1),g={"@context":"https://schema.org","@type":"WebSite",name:"CommunityRule",url:"https://communityrule.com",description:"Build operating manuals for successful communities",potentialAction:{"@type":"SearchAction",target:"https://communityrule.com/search?q={search_term_string}","query-input":"required name=search_term_string"}},x=[{href:"#",text:"Use cases",extraPadding:!0},{href:"#",text:"Learn"},{href:"#",text:"About"}],u=[{src:"/assets/Avatar_1.png",alt:"Avatar 1"},{src:"/assets/Avatar_2.png",alt:"Avatar 2"},{src:"/assets/Avatar_3.png",alt:"Avatar 3"}],f=[{breakpoint:"block sm:hidden",size:"homeHeaderXsmall",showText:!1},{breakpoint:"hidden sm:block md:hidden",size:"homeHeaderSm",showText:!0},{breakpoint:"hidden md:block lg:hidden",size:"homeHeaderMd",showText:!0},{breakpoint:"hidden lg:block xl:hidden",size:"homeHeaderLg",showText:!0},{breakpoint:"hidden xl:block",size:"homeHeaderXl",showText:!0}],n=a=>x.map((r,s)=>e.jsx(p,{href:r.href,size:r.extraPadding&&(a==="xsmall"||a==="default"||a==="home"||a==="homeMd"||a==="large"||a==="homeXlarge")?a==="home"||a==="homeMd"?"homeMd":a==="large"?"large":a==="homeXlarge"?"homeXlarge":"xsmallUseCases":a,variant:a==="xsmall"||a==="default"||a==="home"||a==="homeMd"||a==="large"||a==="homeXlarge"?"home":"default",onClick:()=>h(!t),ariaLabel:`Navigate to ${r.text} page`,children:r.text},s)),v=(a,r)=>e.jsx(k,{size:a,children:u.map((s,j)=>e.jsx(H,{src:s.src,alt:s.alt,size:r},j))}),o=a=>e.jsx(p,{href:"#",size:a,variant:a==="xsmall"||a==="default"?"home":"default",ariaLabel:"Log in to your account",children:"Log in"}),d=(a,r,s)=>e.jsxs(y,{size:a,variant:"secondary",ariaLabel:"Create a new rule with avatar decoration",children:[v(r,s),e.jsx("span",{children:"Create rule"})]}),b=(a,r)=>e.jsx(N,{size:a,showText:r});return t?e.jsx(A,{onToggle:()=>h(!1)}):e.jsxs(e.Fragment,{children:[e.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(g)}}),e.jsx("header",{className:"w-full bg-transparent overflow-hidden",role:"banner","aria-label":"Home page navigation header",children:e.jsxs("nav",{className:"relative flex items-center justify-between mx-auto h-[50px] sm:h-[62px] md:h-[68px] lg:h-[68px] xl:h-[88px] px-[var(--spacing-scale-008)] pr-[var(--spacing-scale-016)] pt-[var(--spacing-scale-010)] sm:px-[var(--spacing-scale-010)] sm:pr-[var(--spacing-scale-020)] sm:pt-[var(--spacing-scale-010)] md:px-[var(--spacing-scale-016)] md:pr-[var(--spacing-scale-032)] md:pt-[var(--spacing-scale-016)] lg:pl-[var(--spacing-scale-024)] lg:pt-[var(--spacing-scale-016)] lg:pr-[var(--spacing-scale-056)] xl:pl-[var(--spacing-scale-048)] xl:pt-[var(--spacing-scale-024)] xl:pr-[var(--spacing-scale-056)]",role:"navigation","aria-label":"Main navigation",children:[e.jsxs(T,{className:"flex items-center self-end",stretch:!0,children:[e.jsx("div",{children:f.map((a,r)=>e.jsx("div",{className:a.breakpoint,children:b(a.size,a.showText)},r))}),e.jsx("div",{className:"block sm:hidden -me-[2px]",children:e.jsxs(l,{size:"default",children:[n("xsmall"),o("xsmall")]})})]}),e.jsxs("div",{className:"absolute left-1/2 transform -translate-x-1/2 hidden sm:block",children:[e.jsx("div",{className:"hidden sm:block md:hidden",children:e.jsxs(l,{size:"default",children:[n("xsmall"),o("xsmall")]})}),e.jsx("div",{className:"hidden md:block lg:hidden",children:e.jsx(l,{size:"medium",children:n("homeMd")})}),e.jsx("div",{className:"hidden lg:block xl:hidden",children:e.jsx(l,{size:"large",children:n("large")})}),e.jsx("div",{className:"hidden xl:block",children:e.jsx(l,{size:"large",children:n("homeXlarge")})})]}),e.jsxs("div",{className:"flex items-center",children:[e.jsx("div",{className:"block md:hidden",children:d("xsmall","small","small")}),e.jsx("div",{className:"hidden md:block lg:hidden absolute right-[var(--spacing-measures-spacing-016)]",children:e.jsxs("div",{className:"flex items-center gap-[var(--spacing-scale-010)]",children:[o("homeMd"),d("small","medium","medium")]})}),e.jsx("div",{className:"hidden lg:flex xl:hidden items-center",children:e.jsxs("div",{className:"flex items-center gap-[var(--spacing-scale-004)]",children:[o("large"),d("large","large","large")]})}),e.jsx("div",{className:"hidden xl:flex items-center",children:e.jsxs("div",{className:"flex items-center gap-[var(--spacing-scale-004)]",children:[o("homeXlarge"),d("xlarge","xlarge","xlarge")]})})]})]})})]})}m.__docgenInfo={description:"",methods:[],displayName:"HomeHeader"};const U={title:"Components/HomeHeader",component:m,parameters:{layout:"fullscreen",docs:{description:{component:"The home page header with transparent background, HeaderTab wrapper, and responsive behavior. Features a toggle to switch between home header and regular header."}}},tags:["autodocs"]},i={args:{},parameters:{docs:{description:{story:"Use the Viewport toolbar to see how the home header adapts to different screen sizes. The header has a transparent background and uses HeaderTab for the left section."}}}},c={args:{},render:()=>e.jsxs("div",{className:"min-h-screen bg-gradient-to-b from-[var(--color-surface-default-primary)] to-[var(--color-surface-default-secondary)]",children:[e.jsx(m,{}),e.jsx("main",{className:"p-8",children:e.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[e.jsx("h1",{className:"text-4xl font-bold text-white mb-4",children:"Welcome to CommunityRule"}),e.jsx("p",{className:"text-xl text-[var(--color-content-default-secondary)] mb-8",children:"This demonstrates how the home header looks in a realistic home page context. The header maintains its transparent background and responsive behavior."}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:[1,2,3].map(t=>e.jsxs("div",{className:"bg-[var(--color-surface-default-secondary)] p-6 rounded-lg border border-[var(--border-color-default-tertiary)]",children:[e.jsxs("h3",{className:"text-white font-semibold mb-3",children:["Feature ",t]}),e.jsx("p",{className:"text-[var(--color-content-default-secondary)]",children:"This is example content to show how the home header integrates with home page content."})]},t))})]})})]}),parameters:{docs:{description:{story:"The home header integrated into a full home page layout with gradient background to show the transparent header effect."}}}};i.parameters={...i.parameters,docs:{...i.parameters?.docs,source:{originalSource:`{
+import { j as e } from "./jsx-runtime-C_nHp4yK.js";
+import { r as w } from "./iframe-D_aMTKb2.js";
+import { L as N } from "./Logo-DM7O8ATg.js";
+import { M as l } from "./MenuBar-anMCqtJv.js";
+import { M as p } from "./MenuBarItem-Dp8NM2fx.js";
+import { B as y } from "./Button-Z4hbXct5.js";
+import { A as k } from "./AvatarContainer-Bt0G0TWZ.js";
+import { A as H } from "./Avatar-C4Vb3oYl.js";
+import { H as T } from "./HeaderTab-D9jUrYUx.js";
+import { H as A } from "./Header-Bz-bT1Sq.js";
+import "./preload-helper-DIZFD4sK.js";
+function m() {
+ const [t, h] = w.useState(!1),
+ g = {
+ "@context": "https://schema.org",
+ "@type": "WebSite",
+ name: "CommunityRule",
+ url: "https://communityrule.com",
+ description: "Build operating manuals for successful communities",
+ potentialAction: {
+ "@type": "SearchAction",
+ target: "https://communityrule.com/search?q={search_term_string}",
+ "query-input": "required name=search_term_string",
+ },
+ },
+ x = [
+ { href: "#", text: "Use cases", extraPadding: !0 },
+ { href: "#", text: "Learn" },
+ { href: "#", text: "About" },
+ ],
+ u = [
+ { src: "/assets/Avatar_1.png", alt: "Avatar 1" },
+ { src: "/assets/Avatar_2.png", alt: "Avatar 2" },
+ { src: "/assets/Avatar_3.png", alt: "Avatar 3" },
+ ],
+ f = [
+ { breakpoint: "block sm:hidden", size: "homeHeaderXsmall", showText: !1 },
+ {
+ breakpoint: "hidden sm:block md:hidden",
+ size: "homeHeaderSm",
+ showText: !0,
+ },
+ {
+ breakpoint: "hidden md:block lg:hidden",
+ size: "homeHeaderMd",
+ showText: !0,
+ },
+ {
+ breakpoint: "hidden lg:block xl:hidden",
+ size: "homeHeaderLg",
+ showText: !0,
+ },
+ { breakpoint: "hidden xl:block", size: "homeHeaderXl", showText: !0 },
+ ],
+ n = (a) =>
+ x.map((r, s) =>
+ e.jsx(
+ p,
+ {
+ href: r.href,
+ size:
+ r.extraPadding &&
+ (a === "xsmall" ||
+ a === "default" ||
+ a === "home" ||
+ a === "homeMd" ||
+ a === "large" ||
+ a === "homeXlarge")
+ ? a === "home" || a === "homeMd"
+ ? "homeMd"
+ : a === "large"
+ ? "large"
+ : a === "homeXlarge"
+ ? "homeXlarge"
+ : "xsmallUseCases"
+ : a,
+ variant:
+ a === "xsmall" ||
+ a === "default" ||
+ a === "home" ||
+ a === "homeMd" ||
+ a === "large" ||
+ a === "homeXlarge"
+ ? "home"
+ : "default",
+ onClick: () => h(!t),
+ ariaLabel: `Navigate to ${r.text} page`,
+ children: r.text,
+ },
+ s,
+ ),
+ ),
+ v = (a, r) =>
+ e.jsx(k, {
+ size: a,
+ children: u.map((s, j) =>
+ e.jsx(H, { src: s.src, alt: s.alt, size: r }, j),
+ ),
+ }),
+ o = (a) =>
+ e.jsx(p, {
+ href: "#",
+ size: a,
+ variant: a === "xsmall" || a === "default" ? "home" : "default",
+ ariaLabel: "Log in to your account",
+ children: "Log in",
+ }),
+ d = (a, r, s) =>
+ e.jsxs(y, {
+ size: a,
+ variant: "secondary",
+ ariaLabel: "Create a new rule with avatar decoration",
+ children: [v(r, s), e.jsx("span", { children: "Create rule" })],
+ }),
+ b = (a, r) => e.jsx(N, { size: a, showText: r });
+ return t
+ ? e.jsx(A, { onToggle: () => h(!1) })
+ : e.jsxs(e.Fragment, {
+ children: [
+ e.jsx("script", {
+ type: "application/ld+json",
+ dangerouslySetInnerHTML: { __html: JSON.stringify(g) },
+ }),
+ e.jsx("header", {
+ className: "w-full bg-transparent overflow-hidden",
+ role: "banner",
+ "aria-label": "Home page navigation header",
+ children: e.jsxs("nav", {
+ className:
+ "relative flex items-center justify-between mx-auto h-[50px] sm:h-[62px] md:h-[68px] lg:h-[68px] xl:h-[88px] px-[var(--spacing-scale-008)] pr-[var(--spacing-scale-016)] pt-[var(--spacing-scale-010)] sm:px-[var(--spacing-scale-010)] sm:pr-[var(--spacing-scale-020)] sm:pt-[var(--spacing-scale-010)] md:px-[var(--spacing-scale-016)] md:pr-[var(--spacing-scale-032)] md:pt-[var(--spacing-scale-016)] lg:pl-[var(--spacing-scale-024)] lg:pt-[var(--spacing-scale-016)] lg:pr-[var(--spacing-scale-056)] xl:pl-[var(--spacing-scale-048)] xl:pt-[var(--spacing-scale-024)] xl:pr-[var(--spacing-scale-056)]",
+ role: "navigation",
+ "aria-label": "Main navigation",
+ children: [
+ e.jsxs(T, {
+ className: "flex items-center self-end",
+ stretch: !0,
+ children: [
+ e.jsx("div", {
+ children: f.map((a, r) =>
+ e.jsx(
+ "div",
+ {
+ className: a.breakpoint,
+ children: b(a.size, a.showText),
+ },
+ r,
+ ),
+ ),
+ }),
+ e.jsx("div", {
+ className: "block sm:hidden -me-[2px]",
+ children: e.jsxs(l, {
+ size: "default",
+ children: [n("xsmall"), o("xsmall")],
+ }),
+ }),
+ ],
+ }),
+ e.jsxs("div", {
+ className:
+ "absolute left-1/2 transform -translate-x-1/2 hidden sm:block",
+ children: [
+ e.jsx("div", {
+ className: "hidden sm:block md:hidden",
+ children: e.jsxs(l, {
+ size: "default",
+ children: [n("xsmall"), o("xsmall")],
+ }),
+ }),
+ e.jsx("div", {
+ className: "hidden md:block lg:hidden",
+ children: e.jsx(l, {
+ size: "medium",
+ children: n("homeMd"),
+ }),
+ }),
+ e.jsx("div", {
+ className: "hidden lg:block xl:hidden",
+ children: e.jsx(l, {
+ size: "large",
+ children: n("large"),
+ }),
+ }),
+ e.jsx("div", {
+ className: "hidden xl:block",
+ children: e.jsx(l, {
+ size: "large",
+ children: n("homeXlarge"),
+ }),
+ }),
+ ],
+ }),
+ e.jsxs("div", {
+ className: "flex items-center",
+ children: [
+ e.jsx("div", {
+ className: "block md:hidden",
+ children: d("xsmall", "small", "small"),
+ }),
+ e.jsx("div", {
+ className:
+ "hidden md:block lg:hidden absolute right-[var(--spacing-measures-spacing-016)]",
+ children: e.jsxs("div", {
+ className:
+ "flex items-center gap-[var(--spacing-scale-010)]",
+ children: [o("homeMd"), d("small", "medium", "medium")],
+ }),
+ }),
+ e.jsx("div", {
+ className: "hidden lg:flex xl:hidden items-center",
+ children: e.jsxs("div", {
+ className:
+ "flex items-center gap-[var(--spacing-scale-004)]",
+ children: [o("large"), d("large", "large", "large")],
+ }),
+ }),
+ e.jsx("div", {
+ className: "hidden xl:flex items-center",
+ children: e.jsxs("div", {
+ className:
+ "flex items-center gap-[var(--spacing-scale-004)]",
+ children: [
+ o("homeXlarge"),
+ d("xlarge", "xlarge", "xlarge"),
+ ],
+ }),
+ }),
+ ],
+ }),
+ ],
+ }),
+ }),
+ ],
+ });
+}
+m.__docgenInfo = { description: "", methods: [], displayName: "HomeHeader" };
+const U = {
+ title: "Components/HomeHeader",
+ component: m,
+ parameters: {
+ layout: "fullscreen",
+ docs: {
+ description: {
+ component:
+ "The home page header with transparent background, HeaderTab wrapper, and responsive behavior. Features a toggle to switch between home header and regular header.",
+ },
+ },
+ },
+ tags: ["autodocs"],
+ },
+ i = {
+ args: {},
+ parameters: {
+ docs: {
+ description: {
+ story:
+ "Use the Viewport toolbar to see how the home header adapts to different screen sizes. The header has a transparent background and uses HeaderTab for the left section.",
+ },
+ },
+ },
+ },
+ c = {
+ args: {},
+ render: () =>
+ e.jsxs("div", {
+ className:
+ "min-h-screen bg-gradient-to-b from-[var(--color-surface-default-primary)] to-[var(--color-surface-default-secondary)]",
+ children: [
+ e.jsx(m, {}),
+ e.jsx("main", {
+ className: "p-8",
+ children: e.jsxs("div", {
+ className: "max-w-4xl mx-auto text-center",
+ children: [
+ e.jsx("h1", {
+ className: "text-4xl font-bold text-white mb-4",
+ children: "Welcome to CommunityRule",
+ }),
+ e.jsx("p", {
+ className:
+ "text-xl text-[var(--color-content-default-secondary)] mb-8",
+ children:
+ "This demonstrates how the home header looks in a realistic home page context. The header maintains its transparent background and responsive behavior.",
+ }),
+ e.jsx("div", {
+ className:
+ "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",
+ children: [1, 2, 3].map((t) =>
+ e.jsxs(
+ "div",
+ {
+ className:
+ "bg-[var(--color-surface-default-secondary)] p-6 rounded-lg border border-[var(--border-color-default-tertiary)]",
+ children: [
+ e.jsxs("h3", {
+ className: "text-white font-semibold mb-3",
+ children: ["Feature ", t],
+ }),
+ e.jsx("p", {
+ className:
+ "text-[var(--color-content-default-secondary)]",
+ children:
+ "This is example content to show how the home header integrates with home page content.",
+ }),
+ ],
+ },
+ t,
+ ),
+ ),
+ }),
+ ],
+ }),
+ }),
+ ],
+ }),
+ parameters: {
+ docs: {
+ description: {
+ story:
+ "The home header integrated into a full home page layout with gradient background to show the transparent header effect.",
+ },
+ },
+ },
+ };
+i.parameters = {
+ ...i.parameters,
+ docs: {
+ ...i.parameters?.docs,
+ source: {
+ originalSource: `{
args: {},
parameters: {
docs: {
@@ -7,7 +336,17 @@ import{j as e}from"./jsx-runtime-C_nHp4yK.js";import{r as w}from"./iframe-D_aMTK
}
}
}
-}`,...i.parameters?.docs?.source}}};c.parameters={...c.parameters,docs:{...c.parameters?.docs,source:{originalSource:`{
+}`,
+ ...i.parameters?.docs?.source,
+ },
+ },
+};
+c.parameters = {
+ ...c.parameters,
+ docs: {
+ ...c.parameters?.docs,
+ source: {
+ originalSource: `{
args: {},
render: () =>
@@ -40,4 +379,15 @@ import{j as e}from"./jsx-runtime-C_nHp4yK.js";import{r as w}from"./iframe-D_aMTK
}
}
}
-}`,...c.parameters?.docs?.source}}};const q=["Default","InHomePageContext"];export{i as Default,c as InHomePageContext,q as __namedExportsOrder,U as default};
+}`,
+ ...c.parameters?.docs?.source,
+ },
+ },
+};
+const q = ["Default", "InHomePageContext"];
+export {
+ i as Default,
+ c as InHomePageContext,
+ q as __namedExportsOrder,
+ U as default,
+};
diff --git a/docs/assets/Logo-DM7O8ATg.js b/docs/assets/Logo-DM7O8ATg.js
index 3cc3f88..0ed74a3 100644
--- a/docs/assets/Logo-DM7O8ATg.js
+++ b/docs/assets/Logo-DM7O8ATg.js
@@ -1 +1,144 @@
-import{j as i}from"./jsx-runtime-C_nHp4yK.js";function p({size:e="default",showText:o=!0}){const a={default:{containerHeight:"h-[41px]",gap:"gap-[8.28px]",textSize:"text-[21.97px]",lineHeight:"leading-[27.05px]",iconSize:"w-[27.05px] h-[27.05px]"},homeHeaderXsmall:{containerHeight:"h-[14.11px]",gap:"gap-[4.21px]",textSize:"text-[11.57px]",lineHeight:"leading-[14.24px]",iconSize:"w-[14.11px] h-[14.11px]"},homeHeaderSm:{containerHeight:"h-[21.06px]",gap:"gap-[3.19px]",textSize:"text-[11.69px]",lineHeight:"leading-[14.39px]",iconSize:"w-[14.39px] h-[14.39px]"},homeHeaderMd:{containerHeight:"h-[32.24px]",gap:"gap-[4.89px]",textSize:"text-[17.89px]",lineHeight:"leading-[22.02px]",iconSize:"w-[22.02px] h-[22.02px]"},homeHeaderLg:{containerHeight:"h-[28px]",gap:"gap-[6.55px]",textSize:"text-[21.97px]",lineHeight:"leading-[27.05px]",iconSize:"w-[27.05px] h-[27.05px]"},homeHeaderXl:{containerHeight:"h-[36px]",gap:"gap-[8.64px]",textSize:"text-[29.01px]",lineHeight:"leading-[35.7px]",iconSize:"w-[35.7px] h-[35.7px]"},header:{containerHeight:"h-[20.85px]",gap:"gap-[4.21px]",textSize:"text-[11.57px]",lineHeight:"leading-[14.24px]",iconSize:"w-[14.24px] h-[14.24px]"},headerMd:{containerHeight:"h-[17.91px]",gap:"gap-[6.51px]",textSize:"text-[17.89px]",lineHeight:"leading-[22.02px]",iconSize:"w-[22.02px] h-[22.02px]"},headerLg:{containerHeight:"h-[28px]",gap:"gap-[6.55px]",textSize:"text-[21.97px]",lineHeight:"leading-[27.05px]",iconSize:"w-[27.05px] h-[27.05px]"},headerXl:{containerHeight:"h-[34px]",gap:"gap-[8.19px]",textSize:"text-[27.47px]",lineHeight:"leading-[33.81px]",iconSize:"w-[33.81px] h-[33.81px]"},footer:{containerHeight:"h-[calc(40px*1.37)]",gap:"gap-[calc(8px*1.37)]",textSize:"text-[calc(21.97px*1.37)]",lineHeight:"leading-[calc(27.05px*1.37)]",iconSize:"w-[calc(27.05px*1.37)] h-[calc(27.05px*1.37)]"},footerLg:{containerHeight:"h-[calc(40px*2.05)]",gap:"gap-[calc(8px*2.05)]",textSize:"text-[calc(21.97px*2.05)]",lineHeight:"leading-[calc(27.05px*2.05)]",iconSize:"w-[calc(27.05px*2.05)] h-[calc(27.05px*2.05)]"}},t=e==="homeHeaderXsmall"?a.homeHeaderXsmall:e==="homeHeaderSm"?a.homeHeaderSm:e==="homeHeaderMd"?a.homeHeaderMd:e==="homeHeaderLg"?a.homeHeaderLg:e==="homeHeaderXl"?a.homeHeaderXl:e==="header"?a.header:e==="headerMd"?a.headerMd:e==="headerLg"?a.headerLg:e==="headerXl"?a.headerXl:e==="footer"?a.footer:e==="footerLg"?a.footerLg:a.default;return i.jsxs("div",{className:`flex items-center ${t.containerHeight} ${o?t.gap:""} transition-all duration-200 ease-in-out hover:scale-[1.02] cursor-pointer`,role:"banner","aria-label":"CommunityRule Logo",children:[o&&i.jsx("div",{className:`font-['Bricolage_Grotesque'] ${e==="homeHeaderXsmall"||e==="homeHeaderSm"||e==="homeHeaderMd"||e==="homeHeaderLg"||e==="homeHeaderXl"?"text-[var(--color-content-inverse-primary)]":"text-[var(--color-content-default-primary)]"} ${t.textSize} ${t.lineHeight} font-normal tracking-[0px] transition-colors duration-200`,"aria-label":"CommunityRule",children:"CommunityRule"}),i.jsx("img",{src:"assets/Logo.svg",alt:"CommunityRule Logo Icon",width:27.05,height:27.05,className:`flex-shrink-0 ${t.iconSize} transition-all duration-200 ${e==="homeHeaderXsmall"||e==="homeHeaderSm"||e==="homeHeaderMd"||e==="homeHeaderLg"||e==="homeHeaderXl"?"filter brightness-0":""}`,"aria-hidden":"true"})]})}p.__docgenInfo={description:"",methods:[],displayName:"Logo",props:{size:{defaultValue:{value:'"default"',computed:!1},required:!1},showText:{defaultValue:{value:"true",computed:!1},required:!1}}};export{p as L};
+import { j as i } from "./jsx-runtime-C_nHp4yK.js";
+function p({ size: e = "default", showText: o = !0 }) {
+ const a = {
+ default: {
+ containerHeight: "h-[41px]",
+ gap: "gap-[8.28px]",
+ textSize: "text-[21.97px]",
+ lineHeight: "leading-[27.05px]",
+ iconSize: "w-[27.05px] h-[27.05px]",
+ },
+ homeHeaderXsmall: {
+ containerHeight: "h-[14.11px]",
+ gap: "gap-[4.21px]",
+ textSize: "text-[11.57px]",
+ lineHeight: "leading-[14.24px]",
+ iconSize: "w-[14.11px] h-[14.11px]",
+ },
+ homeHeaderSm: {
+ containerHeight: "h-[21.06px]",
+ gap: "gap-[3.19px]",
+ textSize: "text-[11.69px]",
+ lineHeight: "leading-[14.39px]",
+ iconSize: "w-[14.39px] h-[14.39px]",
+ },
+ homeHeaderMd: {
+ containerHeight: "h-[32.24px]",
+ gap: "gap-[4.89px]",
+ textSize: "text-[17.89px]",
+ lineHeight: "leading-[22.02px]",
+ iconSize: "w-[22.02px] h-[22.02px]",
+ },
+ homeHeaderLg: {
+ containerHeight: "h-[28px]",
+ gap: "gap-[6.55px]",
+ textSize: "text-[21.97px]",
+ lineHeight: "leading-[27.05px]",
+ iconSize: "w-[27.05px] h-[27.05px]",
+ },
+ homeHeaderXl: {
+ containerHeight: "h-[36px]",
+ gap: "gap-[8.64px]",
+ textSize: "text-[29.01px]",
+ lineHeight: "leading-[35.7px]",
+ iconSize: "w-[35.7px] h-[35.7px]",
+ },
+ header: {
+ containerHeight: "h-[20.85px]",
+ gap: "gap-[4.21px]",
+ textSize: "text-[11.57px]",
+ lineHeight: "leading-[14.24px]",
+ iconSize: "w-[14.24px] h-[14.24px]",
+ },
+ headerMd: {
+ containerHeight: "h-[17.91px]",
+ gap: "gap-[6.51px]",
+ textSize: "text-[17.89px]",
+ lineHeight: "leading-[22.02px]",
+ iconSize: "w-[22.02px] h-[22.02px]",
+ },
+ headerLg: {
+ containerHeight: "h-[28px]",
+ gap: "gap-[6.55px]",
+ textSize: "text-[21.97px]",
+ lineHeight: "leading-[27.05px]",
+ iconSize: "w-[27.05px] h-[27.05px]",
+ },
+ headerXl: {
+ containerHeight: "h-[34px]",
+ gap: "gap-[8.19px]",
+ textSize: "text-[27.47px]",
+ lineHeight: "leading-[33.81px]",
+ iconSize: "w-[33.81px] h-[33.81px]",
+ },
+ footer: {
+ containerHeight: "h-[calc(40px*1.37)]",
+ gap: "gap-[calc(8px*1.37)]",
+ textSize: "text-[calc(21.97px*1.37)]",
+ lineHeight: "leading-[calc(27.05px*1.37)]",
+ iconSize: "w-[calc(27.05px*1.37)] h-[calc(27.05px*1.37)]",
+ },
+ footerLg: {
+ containerHeight: "h-[calc(40px*2.05)]",
+ gap: "gap-[calc(8px*2.05)]",
+ textSize: "text-[calc(21.97px*2.05)]",
+ lineHeight: "leading-[calc(27.05px*2.05)]",
+ iconSize: "w-[calc(27.05px*2.05)] h-[calc(27.05px*2.05)]",
+ },
+ },
+ t =
+ e === "homeHeaderXsmall"
+ ? a.homeHeaderXsmall
+ : e === "homeHeaderSm"
+ ? a.homeHeaderSm
+ : e === "homeHeaderMd"
+ ? a.homeHeaderMd
+ : e === "homeHeaderLg"
+ ? a.homeHeaderLg
+ : e === "homeHeaderXl"
+ ? a.homeHeaderXl
+ : e === "header"
+ ? a.header
+ : e === "headerMd"
+ ? a.headerMd
+ : e === "headerLg"
+ ? a.headerLg
+ : e === "headerXl"
+ ? a.headerXl
+ : e === "footer"
+ ? a.footer
+ : e === "footerLg"
+ ? a.footerLg
+ : a.default;
+ return i.jsxs("div", {
+ className: `flex items-center ${t.containerHeight} ${o ? t.gap : ""} transition-all duration-200 ease-in-out hover:scale-[1.02] cursor-pointer`,
+ role: "banner",
+ "aria-label": "CommunityRule Logo",
+ children: [
+ o &&
+ i.jsx("div", {
+ className: `font-['Bricolage_Grotesque'] ${e === "homeHeaderXsmall" || e === "homeHeaderSm" || e === "homeHeaderMd" || e === "homeHeaderLg" || e === "homeHeaderXl" ? "text-[var(--color-content-inverse-primary)]" : "text-[var(--color-content-default-primary)]"} ${t.textSize} ${t.lineHeight} font-normal tracking-[0px] transition-colors duration-200`,
+ "aria-label": "CommunityRule",
+ children: "CommunityRule",
+ }),
+ i.jsx("img", {
+ src: "assets/Logo.svg",
+ alt: "CommunityRule Logo Icon",
+ width: 27.05,
+ height: 27.05,
+ className: `flex-shrink-0 ${t.iconSize} transition-all duration-200 ${e === "homeHeaderXsmall" || e === "homeHeaderSm" || e === "homeHeaderMd" || e === "homeHeaderLg" || e === "homeHeaderXl" ? "filter brightness-0" : ""}`,
+ "aria-hidden": "true",
+ }),
+ ],
+ });
+}
+p.__docgenInfo = {
+ description: "",
+ methods: [],
+ displayName: "Logo",
+ props: {
+ size: { defaultValue: { value: '"default"', computed: !1 }, required: !1 },
+ showText: { defaultValue: { value: "true", computed: !1 }, required: !1 },
+ },
+};
+export { p as L };
diff --git a/docs/assets/Logo.stories-CahJ_0p_.js b/docs/assets/Logo.stories-CahJ_0p_.js
index 6e1e043..8342004 100644
--- a/docs/assets/Logo.stories-CahJ_0p_.js
+++ b/docs/assets/Logo.stories-CahJ_0p_.js
@@ -1,9 +1,416 @@
-import{j as e}from"./jsx-runtime-C_nHp4yK.js";import{L as s}from"./Logo-DM7O8ATg.js";import"./iframe-D_aMTKb2.js";import"./preload-helper-DIZFD4sK.js";const h={title:"Components/Logo",component:s,parameters:{layout:"centered",docs:{description:{component:"The CommunityRule logo component with multiple size variants for different contexts (header, footer, home header). Can display with or without text and adapts colors based on context."}}},argTypes:{size:{control:{type:"select"},options:["default","homeHeaderXsmall","homeHeaderSm","homeHeaderMd","homeHeaderLg","homeHeaderXl","header","headerMd","headerLg","headerXl","footer","footerLg"],description:"The size variant of the logo"},showText:{control:{type:"boolean"},description:"Whether to show the text portion of the logo"}},tags:["autodocs"]},t={args:{size:"default",showText:!0}},n={args:{showText:!0},render:a=>e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-white font-semibold mb-3",children:"Default Sizes"}),e.jsxs("div",{className:"space-x-4",children:[e.jsx(s,{...a,size:"default"}),e.jsx(s,{...a,size:"header"}),e.jsx(s,{...a,size:"footer"})]})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-white font-semibold mb-3",children:"Header Sizes"}),e.jsxs("div",{className:"space-x-4",children:[e.jsx(s,{...a,size:"header"}),e.jsx(s,{...a,size:"headerMd"}),e.jsx(s,{...a,size:"headerLg"}),e.jsx(s,{...a,size:"headerXl"})]})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-white font-semibold mb-3",children:"Home Header Sizes"}),e.jsxs("div",{className:"space-x-4",children:[e.jsx(s,{...a,size:"homeHeaderXsmall"}),e.jsx(s,{...a,size:"homeHeaderSm"}),e.jsx(s,{...a,size:"homeHeaderMd"}),e.jsx(s,{...a,size:"homeHeaderLg"}),e.jsx(s,{...a,size:"homeHeaderXl"})]})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-white font-semibold mb-3",children:"Footer Sizes"}),e.jsxs("div",{className:"space-x-4",children:[e.jsx(s,{...a,size:"footer"}),e.jsx(s,{...a,size:"footerLg"})]})]})]}),parameters:{docs:{description:{story:"Different size variants available for the logo component across different contexts."}}}},r={args:{size:"default",showText:!1},render:a=>e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-white font-semibold mb-3",children:"Icon Only - Default Sizes"}),e.jsxs("div",{className:"space-x-4",children:[e.jsx(s,{...a,size:"default"}),e.jsx(s,{...a,size:"header"}),e.jsx(s,{...a,size:"footer"})]})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-white font-semibold mb-3",children:"Icon Only - Header Sizes"}),e.jsxs("div",{className:"space-x-4",children:[e.jsx(s,{...a,size:"header"}),e.jsx(s,{...a,size:"headerMd"}),e.jsx(s,{...a,size:"headerLg"}),e.jsx(s,{...a,size:"headerXl"})]})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-white font-semibold mb-3",children:"Icon Only - Home Header Sizes"}),e.jsxs("div",{className:"space-x-4",children:[e.jsx(s,{...a,size:"homeHeaderXsmall"}),e.jsx(s,{...a,size:"homeHeaderSm"}),e.jsx(s,{...a,size:"homeHeaderMd"}),e.jsx(s,{...a,size:"homeHeaderLg"}),e.jsx(s,{...a,size:"homeHeaderXl"})]})]})]}),parameters:{docs:{description:{story:"Logo variants with only the icon, no text. Useful for compact spaces."}}}},i={args:{},render:()=>e.jsx("div",{className:"min-h-screen bg-gradient-to-b from-[var(--color-surface-default-primary)] to-[var(--color-surface-default-secondary)] p-8",children:e.jsxs("div",{className:"max-w-4xl mx-auto",children:[e.jsx("h2",{className:"text-white font-semibold mb-6",children:"Home Header Context (White Text)"}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center space-x-4",children:[e.jsx("span",{className:"text-white text-sm w-24",children:"XSmall:"}),e.jsx(s,{size:"homeHeaderXsmall"})]}),e.jsxs("div",{className:"flex items-center space-x-4",children:[e.jsx("span",{className:"text-white text-sm w-24",children:"Small:"}),e.jsx(s,{size:"homeHeaderSm"})]}),e.jsxs("div",{className:"flex items-center space-x-4",children:[e.jsx("span",{className:"text-white text-sm w-24",children:"Medium:"}),e.jsx(s,{size:"homeHeaderMd"})]}),e.jsxs("div",{className:"flex items-center space-x-4",children:[e.jsx("span",{className:"text-white text-sm w-24",children:"Large:"}),e.jsx(s,{size:"homeHeaderLg"})]}),e.jsxs("div",{className:"flex items-center space-x-4",children:[e.jsx("span",{className:"text-white text-sm w-24",children:"XLarge:"}),e.jsx(s,{size:"homeHeaderXl"})]})]})]})}),parameters:{docs:{description:{story:"Home header context showing white text variants. These are used on dark/transparent backgrounds."}}}},o={args:{},render:()=>e.jsx("div",{className:"min-h-screen bg-[var(--color-surface-default-primary)] p-8",children:e.jsxs("div",{className:"max-w-4xl mx-auto",children:[e.jsx("h2",{className:"text-white font-semibold mb-6",children:"Header Context (Dark Text)"}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center space-x-4",children:[e.jsx("span",{className:"text-white text-sm w-24",children:"Default:"}),e.jsx(s,{size:"header"})]}),e.jsxs("div",{className:"flex items-center space-x-4",children:[e.jsx("span",{className:"text-white text-sm w-24",children:"Medium:"}),e.jsx(s,{size:"headerMd"})]}),e.jsxs("div",{className:"flex items-center space-x-4",children:[e.jsx("span",{className:"text-white text-sm w-24",children:"Large:"}),e.jsx(s,{size:"headerLg"})]}),e.jsxs("div",{className:"flex items-center space-x-4",children:[e.jsx("span",{className:"text-white text-sm w-24",children:"XLarge:"}),e.jsx(s,{size:"headerXl"})]})]})]})}),parameters:{docs:{description:{story:"Header context showing dark text variants. These are used on light backgrounds."}}}},d={args:{},render:()=>e.jsx("div",{className:"min-h-screen bg-[var(--color-surface-default-primary)] p-8",children:e.jsxs("div",{className:"max-w-4xl mx-auto",children:[e.jsx("h2",{className:"text-white font-semibold mb-6",children:"Footer Context (Larger Sizes)"}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center space-x-4",children:[e.jsx("span",{className:"text-white text-sm w-24",children:"Default:"}),e.jsx(s,{size:"footer"})]}),e.jsxs("div",{className:"flex items-center space-x-4",children:[e.jsx("span",{className:"text-white text-sm w-24",children:"Large:"}),e.jsx(s,{size:"footerLg"})]})]})]})}),parameters:{docs:{description:{story:"Footer context showing larger size variants for footer placement."}}}};t.parameters={...t.parameters,docs:{...t.parameters?.docs,source:{originalSource:`{
+import { j as e } from "./jsx-runtime-C_nHp4yK.js";
+import { L as s } from "./Logo-DM7O8ATg.js";
+import "./iframe-D_aMTKb2.js";
+import "./preload-helper-DIZFD4sK.js";
+const h = {
+ title: "Components/Logo",
+ component: s,
+ parameters: {
+ layout: "centered",
+ docs: {
+ description: {
+ component:
+ "The CommunityRule logo component with multiple size variants for different contexts (header, footer, home header). Can display with or without text and adapts colors based on context.",
+ },
+ },
+ },
+ argTypes: {
+ size: {
+ control: { type: "select" },
+ options: [
+ "default",
+ "homeHeaderXsmall",
+ "homeHeaderSm",
+ "homeHeaderMd",
+ "homeHeaderLg",
+ "homeHeaderXl",
+ "header",
+ "headerMd",
+ "headerLg",
+ "headerXl",
+ "footer",
+ "footerLg",
+ ],
+ description: "The size variant of the logo",
+ },
+ showText: {
+ control: { type: "boolean" },
+ description: "Whether to show the text portion of the logo",
+ },
+ },
+ tags: ["autodocs"],
+ },
+ t = { args: { size: "default", showText: !0 } },
+ n = {
+ args: { showText: !0 },
+ render: (a) =>
+ e.jsxs("div", {
+ className: "space-y-6",
+ children: [
+ e.jsxs("div", {
+ children: [
+ e.jsx("h3", {
+ className: "text-white font-semibold mb-3",
+ children: "Default Sizes",
+ }),
+ e.jsxs("div", {
+ className: "space-x-4",
+ children: [
+ e.jsx(s, { ...a, size: "default" }),
+ e.jsx(s, { ...a, size: "header" }),
+ e.jsx(s, { ...a, size: "footer" }),
+ ],
+ }),
+ ],
+ }),
+ e.jsxs("div", {
+ children: [
+ e.jsx("h3", {
+ className: "text-white font-semibold mb-3",
+ children: "Header Sizes",
+ }),
+ e.jsxs("div", {
+ className: "space-x-4",
+ children: [
+ e.jsx(s, { ...a, size: "header" }),
+ e.jsx(s, { ...a, size: "headerMd" }),
+ e.jsx(s, { ...a, size: "headerLg" }),
+ e.jsx(s, { ...a, size: "headerXl" }),
+ ],
+ }),
+ ],
+ }),
+ e.jsxs("div", {
+ children: [
+ e.jsx("h3", {
+ className: "text-white font-semibold mb-3",
+ children: "Home Header Sizes",
+ }),
+ e.jsxs("div", {
+ className: "space-x-4",
+ children: [
+ e.jsx(s, { ...a, size: "homeHeaderXsmall" }),
+ e.jsx(s, { ...a, size: "homeHeaderSm" }),
+ e.jsx(s, { ...a, size: "homeHeaderMd" }),
+ e.jsx(s, { ...a, size: "homeHeaderLg" }),
+ e.jsx(s, { ...a, size: "homeHeaderXl" }),
+ ],
+ }),
+ ],
+ }),
+ e.jsxs("div", {
+ children: [
+ e.jsx("h3", {
+ className: "text-white font-semibold mb-3",
+ children: "Footer Sizes",
+ }),
+ e.jsxs("div", {
+ className: "space-x-4",
+ children: [
+ e.jsx(s, { ...a, size: "footer" }),
+ e.jsx(s, { ...a, size: "footerLg" }),
+ ],
+ }),
+ ],
+ }),
+ ],
+ }),
+ parameters: {
+ docs: {
+ description: {
+ story:
+ "Different size variants available for the logo component across different contexts.",
+ },
+ },
+ },
+ },
+ r = {
+ args: { size: "default", showText: !1 },
+ render: (a) =>
+ e.jsxs("div", {
+ className: "space-y-6",
+ children: [
+ e.jsxs("div", {
+ children: [
+ e.jsx("h3", {
+ className: "text-white font-semibold mb-3",
+ children: "Icon Only - Default Sizes",
+ }),
+ e.jsxs("div", {
+ className: "space-x-4",
+ children: [
+ e.jsx(s, { ...a, size: "default" }),
+ e.jsx(s, { ...a, size: "header" }),
+ e.jsx(s, { ...a, size: "footer" }),
+ ],
+ }),
+ ],
+ }),
+ e.jsxs("div", {
+ children: [
+ e.jsx("h3", {
+ className: "text-white font-semibold mb-3",
+ children: "Icon Only - Header Sizes",
+ }),
+ e.jsxs("div", {
+ className: "space-x-4",
+ children: [
+ e.jsx(s, { ...a, size: "header" }),
+ e.jsx(s, { ...a, size: "headerMd" }),
+ e.jsx(s, { ...a, size: "headerLg" }),
+ e.jsx(s, { ...a, size: "headerXl" }),
+ ],
+ }),
+ ],
+ }),
+ e.jsxs("div", {
+ children: [
+ e.jsx("h3", {
+ className: "text-white font-semibold mb-3",
+ children: "Icon Only - Home Header Sizes",
+ }),
+ e.jsxs("div", {
+ className: "space-x-4",
+ children: [
+ e.jsx(s, { ...a, size: "homeHeaderXsmall" }),
+ e.jsx(s, { ...a, size: "homeHeaderSm" }),
+ e.jsx(s, { ...a, size: "homeHeaderMd" }),
+ e.jsx(s, { ...a, size: "homeHeaderLg" }),
+ e.jsx(s, { ...a, size: "homeHeaderXl" }),
+ ],
+ }),
+ ],
+ }),
+ ],
+ }),
+ parameters: {
+ docs: {
+ description: {
+ story:
+ "Logo variants with only the icon, no text. Useful for compact spaces.",
+ },
+ },
+ },
+ },
+ i = {
+ args: {},
+ render: () =>
+ e.jsx("div", {
+ className:
+ "min-h-screen bg-gradient-to-b from-[var(--color-surface-default-primary)] to-[var(--color-surface-default-secondary)] p-8",
+ children: e.jsxs("div", {
+ className: "max-w-4xl mx-auto",
+ children: [
+ e.jsx("h2", {
+ className: "text-white font-semibold mb-6",
+ children: "Home Header Context (White Text)",
+ }),
+ e.jsxs("div", {
+ className: "space-y-4",
+ children: [
+ e.jsxs("div", {
+ className: "flex items-center space-x-4",
+ children: [
+ e.jsx("span", {
+ className: "text-white text-sm w-24",
+ children: "XSmall:",
+ }),
+ e.jsx(s, { size: "homeHeaderXsmall" }),
+ ],
+ }),
+ e.jsxs("div", {
+ className: "flex items-center space-x-4",
+ children: [
+ e.jsx("span", {
+ className: "text-white text-sm w-24",
+ children: "Small:",
+ }),
+ e.jsx(s, { size: "homeHeaderSm" }),
+ ],
+ }),
+ e.jsxs("div", {
+ className: "flex items-center space-x-4",
+ children: [
+ e.jsx("span", {
+ className: "text-white text-sm w-24",
+ children: "Medium:",
+ }),
+ e.jsx(s, { size: "homeHeaderMd" }),
+ ],
+ }),
+ e.jsxs("div", {
+ className: "flex items-center space-x-4",
+ children: [
+ e.jsx("span", {
+ className: "text-white text-sm w-24",
+ children: "Large:",
+ }),
+ e.jsx(s, { size: "homeHeaderLg" }),
+ ],
+ }),
+ e.jsxs("div", {
+ className: "flex items-center space-x-4",
+ children: [
+ e.jsx("span", {
+ className: "text-white text-sm w-24",
+ children: "XLarge:",
+ }),
+ e.jsx(s, { size: "homeHeaderXl" }),
+ ],
+ }),
+ ],
+ }),
+ ],
+ }),
+ }),
+ parameters: {
+ docs: {
+ description: {
+ story:
+ "Home header context showing white text variants. These are used on dark/transparent backgrounds.",
+ },
+ },
+ },
+ },
+ o = {
+ args: {},
+ render: () =>
+ e.jsx("div", {
+ className: "min-h-screen bg-[var(--color-surface-default-primary)] p-8",
+ children: e.jsxs("div", {
+ className: "max-w-4xl mx-auto",
+ children: [
+ e.jsx("h2", {
+ className: "text-white font-semibold mb-6",
+ children: "Header Context (Dark Text)",
+ }),
+ e.jsxs("div", {
+ className: "space-y-4",
+ children: [
+ e.jsxs("div", {
+ className: "flex items-center space-x-4",
+ children: [
+ e.jsx("span", {
+ className: "text-white text-sm w-24",
+ children: "Default:",
+ }),
+ e.jsx(s, { size: "header" }),
+ ],
+ }),
+ e.jsxs("div", {
+ className: "flex items-center space-x-4",
+ children: [
+ e.jsx("span", {
+ className: "text-white text-sm w-24",
+ children: "Medium:",
+ }),
+ e.jsx(s, { size: "headerMd" }),
+ ],
+ }),
+ e.jsxs("div", {
+ className: "flex items-center space-x-4",
+ children: [
+ e.jsx("span", {
+ className: "text-white text-sm w-24",
+ children: "Large:",
+ }),
+ e.jsx(s, { size: "headerLg" }),
+ ],
+ }),
+ e.jsxs("div", {
+ className: "flex items-center space-x-4",
+ children: [
+ e.jsx("span", {
+ className: "text-white text-sm w-24",
+ children: "XLarge:",
+ }),
+ e.jsx(s, { size: "headerXl" }),
+ ],
+ }),
+ ],
+ }),
+ ],
+ }),
+ }),
+ parameters: {
+ docs: {
+ description: {
+ story:
+ "Header context showing dark text variants. These are used on light backgrounds.",
+ },
+ },
+ },
+ },
+ d = {
+ args: {},
+ render: () =>
+ e.jsx("div", {
+ className: "min-h-screen bg-[var(--color-surface-default-primary)] p-8",
+ children: e.jsxs("div", {
+ className: "max-w-4xl mx-auto",
+ children: [
+ e.jsx("h2", {
+ className: "text-white font-semibold mb-6",
+ children: "Footer Context (Larger Sizes)",
+ }),
+ e.jsxs("div", {
+ className: "space-y-4",
+ children: [
+ e.jsxs("div", {
+ className: "flex items-center space-x-4",
+ children: [
+ e.jsx("span", {
+ className: "text-white text-sm w-24",
+ children: "Default:",
+ }),
+ e.jsx(s, { size: "footer" }),
+ ],
+ }),
+ e.jsxs("div", {
+ className: "flex items-center space-x-4",
+ children: [
+ e.jsx("span", {
+ className: "text-white text-sm w-24",
+ children: "Large:",
+ }),
+ e.jsx(s, { size: "footerLg" }),
+ ],
+ }),
+ ],
+ }),
+ ],
+ }),
+ }),
+ parameters: {
+ docs: {
+ description: {
+ story:
+ "Footer context showing larger size variants for footer placement.",
+ },
+ },
+ },
+ };
+t.parameters = {
+ ...t.parameters,
+ docs: {
+ ...t.parameters?.docs,
+ source: {
+ originalSource: `{
args: {
size: "default",
showText: true
}
-}`,...t.parameters?.docs?.source}}};n.parameters={...n.parameters,docs:{...n.parameters?.docs,source:{originalSource:`{
+}`,
+ ...t.parameters?.docs?.source,
+ },
+ },
+};
+n.parameters = {
+ ...n.parameters,
+ docs: {
+ ...n.parameters?.docs,
+ source: {
+ originalSource: `{
args: {
showText: true
},
@@ -53,7 +460,17 @@ import{j as e}from"./jsx-runtime-C_nHp4yK.js";import{L as s}from"./Logo-DM7O8ATg
}
}
}
-}`,...n.parameters?.docs?.source}}};r.parameters={...r.parameters,docs:{...r.parameters?.docs,source:{originalSource:`{
+}`,
+ ...n.parameters?.docs?.source,
+ },
+ },
+};
+r.parameters = {
+ ...r.parameters,
+ docs: {
+ ...r.parameters?.docs,
+ source: {
+ originalSource: `{
args: {
size: "default",
showText: false
@@ -102,7 +519,17 @@ import{j as e}from"./jsx-runtime-C_nHp4yK.js";import{L as s}from"./Logo-DM7O8ATg
}
}
}
-}`,...r.parameters?.docs?.source}}};i.parameters={...i.parameters,docs:{...i.parameters?.docs,source:{originalSource:`{
+}`,
+ ...r.parameters?.docs?.source,
+ },
+ },
+};
+i.parameters = {
+ ...i.parameters,
+ docs: {
+ ...i.parameters?.docs,
+ source: {
+ originalSource: `{
args: {},
render: () =>
@@ -140,7 +567,17 @@ import{j as e}from"./jsx-runtime-C_nHp4yK.js";import{L as s}from"./Logo-DM7O8ATg
}
}
}
-}`,...i.parameters?.docs?.source}}};o.parameters={...o.parameters,docs:{...o.parameters?.docs,source:{originalSource:`{
+}`,
+ ...i.parameters?.docs?.source,
+ },
+ },
+};
+o.parameters = {
+ ...o.parameters,
+ docs: {
+ ...o.parameters?.docs,
+ source: {
+ originalSource: `{
args: {},
render: () =>
@@ -174,7 +611,17 @@ import{j as e}from"./jsx-runtime-C_nHp4yK.js";import{L as s}from"./Logo-DM7O8ATg
}
}
}
-}`,...o.parameters?.docs?.source}}};d.parameters={...d.parameters,docs:{...d.parameters?.docs,source:{originalSource:`{
+}`,
+ ...o.parameters?.docs?.source,
+ },
+ },
+};
+d.parameters = {
+ ...d.parameters,
+ docs: {
+ ...d.parameters?.docs,
+ source: {
+ originalSource: `{
args: {},
render: () =>
@@ -200,4 +647,26 @@ import{j as e}from"./jsx-runtime-C_nHp4yK.js";import{L as s}from"./Logo-DM7O8ATg
}
}
}
-}`,...d.parameters?.docs?.source}}};const p=["Default","Sizes","IconOnly","HomeHeaderContext","HeaderContext","FooterContext"];export{t as Default,d as FooterContext,o as HeaderContext,i as HomeHeaderContext,r as IconOnly,n as Sizes,p as __namedExportsOrder,h as default};
+}`,
+ ...d.parameters?.docs?.source,
+ },
+ },
+};
+const p = [
+ "Default",
+ "Sizes",
+ "IconOnly",
+ "HomeHeaderContext",
+ "HeaderContext",
+ "FooterContext",
+];
+export {
+ t as Default,
+ d as FooterContext,
+ o as HeaderContext,
+ i as HomeHeaderContext,
+ r as IconOnly,
+ n as Sizes,
+ p as __namedExportsOrder,
+ h as default,
+};
diff --git a/docs/assets/MenuBar-anMCqtJv.js b/docs/assets/MenuBar-anMCqtJv.js
index b4e9294..974d006 100644
--- a/docs/assets/MenuBar-anMCqtJv.js
+++ b/docs/assets/MenuBar-anMCqtJv.js
@@ -1 +1,21 @@
-import{j as p}from"./jsx-runtime-C_nHp4yK.js";function r({children:a,className:e="",size:s="default",...l}){const c=`flex items-center ${{xsmall:"px-[var(--spacing-scale-004)] py-[var(--spacing-scale-004)] gap-[var(--spacing-scale-001)] rounded-[4px]",default:"px-[var(--spacing-scale-004)] py-[var(--spacing-scale-004)] gap-[var(--spacing-scale-001)]",medium:"px-[var(--spacing-scale-004)] py-[var(--spacing-scale-004)] gap-[var(--spacing-scale-004)]",large:"px-[var(--spacing-scale-004)] py-[var(--spacing-scale-004)] gap-[var(--spacing-scale-012)]"}[s]} ${e}`;return p.jsx("nav",{className:c,role:"menubar","aria-label":"Main navigation menu",...l,children:a})}r.__docgenInfo={description:"",methods:[],displayName:"MenuBar",props:{className:{defaultValue:{value:'""',computed:!1},required:!1},size:{defaultValue:{value:'"default"',computed:!1},required:!1}}};export{r as M};
+import { j as p } from "./jsx-runtime-C_nHp4yK.js";
+function r({ children: a, className: e = "", size: s = "default", ...l }) {
+ const c = `flex items-center ${{ xsmall: "px-[var(--spacing-scale-004)] py-[var(--spacing-scale-004)] gap-[var(--spacing-scale-001)] rounded-[4px]", default: "px-[var(--spacing-scale-004)] py-[var(--spacing-scale-004)] gap-[var(--spacing-scale-001)]", medium: "px-[var(--spacing-scale-004)] py-[var(--spacing-scale-004)] gap-[var(--spacing-scale-004)]", large: "px-[var(--spacing-scale-004)] py-[var(--spacing-scale-004)] gap-[var(--spacing-scale-012)]" }[s]} ${e}`;
+ return p.jsx("nav", {
+ className: c,
+ role: "menubar",
+ "aria-label": "Main navigation menu",
+ ...l,
+ children: a,
+ });
+}
+r.__docgenInfo = {
+ description: "",
+ methods: [],
+ displayName: "MenuBar",
+ props: {
+ className: { defaultValue: { value: '""', computed: !1 }, required: !1 },
+ size: { defaultValue: { value: '"default"', computed: !1 }, required: !1 },
+ },
+};
+export { r as M };
diff --git a/docs/assets/MenuBar.stories-CLlNuM-O.js b/docs/assets/MenuBar.stories-CLlNuM-O.js
index 44fdbb2..edeb2b2 100644
--- a/docs/assets/MenuBar.stories-CLlNuM-O.js
+++ b/docs/assets/MenuBar.stories-CLlNuM-O.js
@@ -1,4 +1,132 @@
-import{j as e}from"./jsx-runtime-C_nHp4yK.js";import{M as s}from"./MenuBar-anMCqtJv.js";import{M as n}from"./MenuBarItem-Dp8NM2fx.js";import"./iframe-D_aMTKb2.js";import"./preload-helper-DIZFD4sK.js";const d={title:"Components/MenuBar",component:s,parameters:{layout:"centered",docs:{description:{component:"A navigation menu bar container that groups MenuBarItem components together. Provides consistent spacing and layout for navigation menus with multiple size variants."}}},argTypes:{size:{control:{type:"select"},options:["xsmall","default","medium","large"],description:"The size of the menu bar and its children"},className:{control:{type:"text"},description:"Additional CSS classes"}},tags:["autodocs"]},a={args:{size:"default"},render:t=>e.jsxs(s,{...t,children:[e.jsx(n,{size:"large",children:"Home"}),e.jsx(n,{size:"large",children:"About"}),e.jsx(n,{size:"large",children:"Contact"})]})},r={args:{},render:()=>e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-white font-semibold mb-3",children:"XSmall Size"}),e.jsxs(s,{size:"xsmall",children:[e.jsx(n,{size:"xsmall",children:"Home"}),e.jsx(n,{size:"xsmall",children:"About"}),e.jsx(n,{size:"xsmall",children:"Contact"})]})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-white font-semibold mb-3",children:"Default Size"}),e.jsxs(s,{size:"default",children:[e.jsx(n,{size:"large",children:"Home"}),e.jsx(n,{size:"large",children:"About"}),e.jsx(n,{size:"large",children:"Contact"})]})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-white font-semibold mb-3",children:"Medium Size"}),e.jsxs(s,{size:"medium",children:[e.jsx(n,{size:"large",children:"Home"}),e.jsx(n,{size:"large",children:"About"}),e.jsx(n,{size:"large",children:"Contact"})]})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-white font-semibold mb-3",children:"Large Size"}),e.jsxs(s,{size:"large",children:[e.jsx(n,{size:"large",children:"Home"}),e.jsx(n,{size:"large",children:"About"}),e.jsx(n,{size:"large",children:"Contact"})]})]})]}),parameters:{docs:{description:{story:"Different size variants of the menu bar with consistent spacing and layout."}}}};a.parameters={...a.parameters,docs:{...a.parameters?.docs,source:{originalSource:`{
+import { j as e } from "./jsx-runtime-C_nHp4yK.js";
+import { M as s } from "./MenuBar-anMCqtJv.js";
+import { M as n } from "./MenuBarItem-Dp8NM2fx.js";
+import "./iframe-D_aMTKb2.js";
+import "./preload-helper-DIZFD4sK.js";
+const d = {
+ title: "Components/MenuBar",
+ component: s,
+ parameters: {
+ layout: "centered",
+ docs: {
+ description: {
+ component:
+ "A navigation menu bar container that groups MenuBarItem components together. Provides consistent spacing and layout for navigation menus with multiple size variants.",
+ },
+ },
+ },
+ argTypes: {
+ size: {
+ control: { type: "select" },
+ options: ["xsmall", "default", "medium", "large"],
+ description: "The size of the menu bar and its children",
+ },
+ className: {
+ control: { type: "text" },
+ description: "Additional CSS classes",
+ },
+ },
+ tags: ["autodocs"],
+ },
+ a = {
+ args: { size: "default" },
+ render: (t) =>
+ e.jsxs(s, {
+ ...t,
+ children: [
+ e.jsx(n, { size: "large", children: "Home" }),
+ e.jsx(n, { size: "large", children: "About" }),
+ e.jsx(n, { size: "large", children: "Contact" }),
+ ],
+ }),
+ },
+ r = {
+ args: {},
+ render: () =>
+ e.jsxs("div", {
+ className: "space-y-6",
+ children: [
+ e.jsxs("div", {
+ children: [
+ e.jsx("h3", {
+ className: "text-white font-semibold mb-3",
+ children: "XSmall Size",
+ }),
+ e.jsxs(s, {
+ size: "xsmall",
+ children: [
+ e.jsx(n, { size: "xsmall", children: "Home" }),
+ e.jsx(n, { size: "xsmall", children: "About" }),
+ e.jsx(n, { size: "xsmall", children: "Contact" }),
+ ],
+ }),
+ ],
+ }),
+ e.jsxs("div", {
+ children: [
+ e.jsx("h3", {
+ className: "text-white font-semibold mb-3",
+ children: "Default Size",
+ }),
+ e.jsxs(s, {
+ size: "default",
+ children: [
+ e.jsx(n, { size: "large", children: "Home" }),
+ e.jsx(n, { size: "large", children: "About" }),
+ e.jsx(n, { size: "large", children: "Contact" }),
+ ],
+ }),
+ ],
+ }),
+ e.jsxs("div", {
+ children: [
+ e.jsx("h3", {
+ className: "text-white font-semibold mb-3",
+ children: "Medium Size",
+ }),
+ e.jsxs(s, {
+ size: "medium",
+ children: [
+ e.jsx(n, { size: "large", children: "Home" }),
+ e.jsx(n, { size: "large", children: "About" }),
+ e.jsx(n, { size: "large", children: "Contact" }),
+ ],
+ }),
+ ],
+ }),
+ e.jsxs("div", {
+ children: [
+ e.jsx("h3", {
+ className: "text-white font-semibold mb-3",
+ children: "Large Size",
+ }),
+ e.jsxs(s, {
+ size: "large",
+ children: [
+ e.jsx(n, { size: "large", children: "Home" }),
+ e.jsx(n, { size: "large", children: "About" }),
+ e.jsx(n, { size: "large", children: "Contact" }),
+ ],
+ }),
+ ],
+ }),
+ ],
+ }),
+ parameters: {
+ docs: {
+ description: {
+ story:
+ "Different size variants of the menu bar with consistent spacing and layout.",
+ },
+ },
+ },
+ };
+a.parameters = {
+ ...a.parameters,
+ docs: {
+ ...a.parameters?.docs,
+ source: {
+ originalSource: `{
args: {
size: "default"
},
@@ -7,7 +135,17 @@ import{j as e}from"./jsx-runtime-C_nHp4yK.js";import{M as s}from"./MenuBar-anMCq
About
Contact
-}`,...a.parameters?.docs?.source}}};r.parameters={...r.parameters,docs:{...r.parameters?.docs,source:{originalSource:`{
+}`,
+ ...a.parameters?.docs?.source,
+ },
+ },
+};
+r.parameters = {
+ ...r.parameters,
+ docs: {
+ ...r.parameters?.docs,
+ source: {
+ originalSource: `{
args: {},
render: () =>
@@ -53,4 +191,10 @@ import{j as e}from"./jsx-runtime-C_nHp4yK.js";import{M as s}from"./MenuBar-anMCq
}
}
}
-}`,...r.parameters?.docs?.source}}};const u=["Default","Sizes"];export{a as Default,r as Sizes,u as __namedExportsOrder,d as default};
+}`,
+ ...r.parameters?.docs?.source,
+ },
+ },
+};
+const u = ["Default", "Sizes"];
+export { a as Default, r as Sizes, u as __namedExportsOrder, d as default };
diff --git a/docs/assets/MenuBarItem-Dp8NM2fx.js b/docs/assets/MenuBarItem-Dp8NM2fx.js
index a43687b..c5f64cc 100644
--- a/docs/assets/MenuBarItem-Dp8NM2fx.js
+++ b/docs/assets/MenuBarItem-Dp8NM2fx.js
@@ -1 +1,123 @@
-import{j as p}from"./jsx-runtime-C_nHp4yK.js";function U({href:v="#",children:o,variant:d="default",size:e="default",className:f="",disabled:a=!1,ariaLabel:l,...m}){const x={default:"bg-transparent text-[var(--color-content-default-brand-primary)] hover:bg-[var(--color-surface-default-tertiary)] hover:text-[var(--color-content-default-brand-primary)] hover:scale-[1.02] active:bg-transparent active:text-[var(--color-content-default-brand-primary)] active:scale-[0.98] disabled:bg-[var(--color-surface-default-tertiary)] disabled:text-[var(--color-content-default-tertiary)] disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:scale-100 disabled:active:scale-100",home:"bg-transparent text-[var(--color-content-inverse-primary)] hover:bg-[var(--color-content-default-brand-accent)] hover:text-[var(--color-content-inverse-primary)] hover:scale-[1.02] active:bg-transparent active:text-[var(--color-content-inverse-primary)] active:scale-[0.98] disabled:bg-[var(--color-surface-default-tertiary)] disabled:text-[var(--color-content-default-tertiary)] disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:scale-100 disabled:active:scale-100"},g={xsmall:"active:outline-1 active:outline-[var(--color-content-default-primary)] focus:outline-1 focus:outline-[var(--color-content-default-primary)]",xsmallUseCases:"active:outline-1 active:outline-[var(--color-content-default-primary)] focus:outline-1 focus:outline-[var(--color-content-default-primary)]",default:"active:outline-1 active:outline-[var(--color-content-default-brand-primary)] focus:outline-1 focus:outline-[var(--color-content-default-brand-primary)]",homeMd:"active:outline-[1.5px] active:outline-[var(--color-content-default-brand-primary)] focus:outline-[1.5px] focus:outline-[var(--color-content-default-brand-primary)]",homeUseCases:"active:outline-[1.5px] active:outline-[var(--color-content-default-brand-primary)] focus:outline-[1.5px] focus:outline-[var(--color-content-default-brand-primary)]",large:"active:outline-[1.75px] active:outline-[var(--color-content-default-brand-primary)] focus:outline-[1.75px] focus:outline-[var(--color-content-default-brand-primary)]",largeUseCases:"active:outline-[1.75px] active:outline-[var(--color-content-default-brand-primary)] focus:outline-[1.75px] focus:outline-[var(--color-content-default-brand-primary)]",homeXlarge:"active:outline-[2px] active:outline-[var(--color-content-default-brand-primary)] focus:outline-[2px] focus:outline-[var(--color-content-default-brand-primary)]",xlarge:"active:outline-2 active:outline-[var(--color-content-default-brand-primary)] focus:outline-2 focus:outline-[var(--color-content-default-brand-primary)]"},y={xsmall:"active:outline-1 active:outline-[var(--color-content-default-primary)] focus:outline-1 focus:outline-[var(--color-content-default-primary)]",xsmallUseCases:"active:outline-1 active:outline-[var(--color-content-default-primary)] focus:outline-1 focus:outline-[var(--color-content-default-primary)]",default:"active:outline-[1.5px] active:outline-[var(--color-content-default-primary)] focus:outline-[1.5px] focus:outline-[var(--color-content-default-primary)]",homeMd:"active:outline-[1.5px] active:outline-[var(--color-content-default-primary)] focus:outline-[1.5px] focus:outline-[var(--color-content-default-primary)]",homeUseCases:"active:outline-[1.5px] active:outline-[var(--color-content-default-primary)] focus:outline-[1.5px] focus:outline-[var(--color-content-default-primary)]",largeUseCases:"active:outline-[1.75px] active:outline-[var(--color-content-default-primary)] focus:outline-[1.75px] focus:outline-[var(--color-content-default-primary)]",large:"active:outline-[1.75px] active:outline-[var(--color-content-default-primary)] focus:outline-[1.75px] focus:outline-[var(--color-content-default-primary)]",homeXlarge:"active:outline-[2px] active:outline-[var(--color-content-default-primary)] focus:outline-[2px] focus:outline-[var(--color-content-default-primary)]",xlarge:"active:outline-2 active:outline-[var(--color-content-default-primary)] focus:outline-2 focus:outline-[var(--color-content-default-primary)]"},b={default:"px-[var(--spacing-measures-spacing-016)] py-[var(--spacing-measures-spacing-016)] gap-[var(--spacing-scale-004)]",xsmall:"px-[var(--spacing-scale-004)] py-[var(--spacing-scale-002)] gap-[var(--spacing-scale-004)]",xsmallUseCases:"px-[var(--spacing-scale-002)] py-[var(--spacing-scale-002)] gap-[var(--spacing-scale-004)]",homeMd:"px-[var(--spacing-scale-008)] py-[var(--spacing-scale-008)] gap-[var(--spacing-scale-004)]",homeUseCases:"px-[var(--spacing-scale-002)] py-[var(--spacing-scale-008)] gap-[var(--spacing-scale-004)]",large:"px-[var(--spacing-scale-012)] py-[var(--spacing-scale-012)] gap-[var(--spacing-scale-004)] h-[44px]",largeUseCases:"px-[var(--spacing-scale-012)] py-[var(--spacing-scale-012)] gap-[var(--spacing-scale-004)] h-[44px]",homeXlarge:"px-[var(--spacing-scale-016)] py-[var(--spacing-scale-016)] gap-[var(--spacing-scale-004)] h-[44px]",xlarge:"px-[var(--spacing-scale-016)] py-[var(--spacing-scale-008)] gap-[var(--spacing-scale-004)] h-[44px]"},t="font-['Inter'] text-[10px] leading-[12px] font-medium tracking-[0%]",n="font-['Inter'] text-[12px] leading-[14px] font-medium tracking-[0%]",c="font-['Inter'] text-[16px] leading-[20px] font-medium tracking-[0%]",i="font-['Inter'] text-[24px] leading-[28px] font-normal tracking-[0%]",h={default:t,xsmall:t,xsmallUseCases:t,home:t,homeMd:n,homeUseCases:n,large:c,largeUseCases:c,homeXlarge:i,xlarge:i},C=`inline-flex items-center ${b[e]} rounded-[var(--radius-measures-radius-full)] ${h[e]} transition-all duration-200 ease-in-out cursor-pointer focus:scale-[1.02]`;let r=d;a&&(r="default");const s=`${C} ${x[r]} ${r==="home"?y[e]:g[e]} ${f}`,u={...l&&{"aria-label":l},...a&&{"aria-disabled":"true"},role:"menuitem",tabIndex:a?-1:0,...m};return a?p.jsx("span",{className:s,...u,children:o}):p.jsx("a",{href:v,className:s,...u,children:o})}U.__docgenInfo={description:"",methods:[],displayName:"MenuBarItem",props:{href:{defaultValue:{value:'"#"',computed:!1},required:!1},variant:{defaultValue:{value:'"default"',computed:!1},required:!1},size:{defaultValue:{value:'"default"',computed:!1},required:!1},className:{defaultValue:{value:'""',computed:!1},required:!1},disabled:{defaultValue:{value:"false",computed:!1},required:!1}}};export{U as M};
+import { j as p } from "./jsx-runtime-C_nHp4yK.js";
+function U({
+ href: v = "#",
+ children: o,
+ variant: d = "default",
+ size: e = "default",
+ className: f = "",
+ disabled: a = !1,
+ ariaLabel: l,
+ ...m
+}) {
+ const x = {
+ default:
+ "bg-transparent text-[var(--color-content-default-brand-primary)] hover:bg-[var(--color-surface-default-tertiary)] hover:text-[var(--color-content-default-brand-primary)] hover:scale-[1.02] active:bg-transparent active:text-[var(--color-content-default-brand-primary)] active:scale-[0.98] disabled:bg-[var(--color-surface-default-tertiary)] disabled:text-[var(--color-content-default-tertiary)] disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:scale-100 disabled:active:scale-100",
+ home: "bg-transparent text-[var(--color-content-inverse-primary)] hover:bg-[var(--color-content-default-brand-accent)] hover:text-[var(--color-content-inverse-primary)] hover:scale-[1.02] active:bg-transparent active:text-[var(--color-content-inverse-primary)] active:scale-[0.98] disabled:bg-[var(--color-surface-default-tertiary)] disabled:text-[var(--color-content-default-tertiary)] disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:scale-100 disabled:active:scale-100",
+ },
+ g = {
+ xsmall:
+ "active:outline-1 active:outline-[var(--color-content-default-primary)] focus:outline-1 focus:outline-[var(--color-content-default-primary)]",
+ xsmallUseCases:
+ "active:outline-1 active:outline-[var(--color-content-default-primary)] focus:outline-1 focus:outline-[var(--color-content-default-primary)]",
+ default:
+ "active:outline-1 active:outline-[var(--color-content-default-brand-primary)] focus:outline-1 focus:outline-[var(--color-content-default-brand-primary)]",
+ homeMd:
+ "active:outline-[1.5px] active:outline-[var(--color-content-default-brand-primary)] focus:outline-[1.5px] focus:outline-[var(--color-content-default-brand-primary)]",
+ homeUseCases:
+ "active:outline-[1.5px] active:outline-[var(--color-content-default-brand-primary)] focus:outline-[1.5px] focus:outline-[var(--color-content-default-brand-primary)]",
+ large:
+ "active:outline-[1.75px] active:outline-[var(--color-content-default-brand-primary)] focus:outline-[1.75px] focus:outline-[var(--color-content-default-brand-primary)]",
+ largeUseCases:
+ "active:outline-[1.75px] active:outline-[var(--color-content-default-brand-primary)] focus:outline-[1.75px] focus:outline-[var(--color-content-default-brand-primary)]",
+ homeXlarge:
+ "active:outline-[2px] active:outline-[var(--color-content-default-brand-primary)] focus:outline-[2px] focus:outline-[var(--color-content-default-brand-primary)]",
+ xlarge:
+ "active:outline-2 active:outline-[var(--color-content-default-brand-primary)] focus:outline-2 focus:outline-[var(--color-content-default-brand-primary)]",
+ },
+ y = {
+ xsmall:
+ "active:outline-1 active:outline-[var(--color-content-default-primary)] focus:outline-1 focus:outline-[var(--color-content-default-primary)]",
+ xsmallUseCases:
+ "active:outline-1 active:outline-[var(--color-content-default-primary)] focus:outline-1 focus:outline-[var(--color-content-default-primary)]",
+ default:
+ "active:outline-[1.5px] active:outline-[var(--color-content-default-primary)] focus:outline-[1.5px] focus:outline-[var(--color-content-default-primary)]",
+ homeMd:
+ "active:outline-[1.5px] active:outline-[var(--color-content-default-primary)] focus:outline-[1.5px] focus:outline-[var(--color-content-default-primary)]",
+ homeUseCases:
+ "active:outline-[1.5px] active:outline-[var(--color-content-default-primary)] focus:outline-[1.5px] focus:outline-[var(--color-content-default-primary)]",
+ largeUseCases:
+ "active:outline-[1.75px] active:outline-[var(--color-content-default-primary)] focus:outline-[1.75px] focus:outline-[var(--color-content-default-primary)]",
+ large:
+ "active:outline-[1.75px] active:outline-[var(--color-content-default-primary)] focus:outline-[1.75px] focus:outline-[var(--color-content-default-primary)]",
+ homeXlarge:
+ "active:outline-[2px] active:outline-[var(--color-content-default-primary)] focus:outline-[2px] focus:outline-[var(--color-content-default-primary)]",
+ xlarge:
+ "active:outline-2 active:outline-[var(--color-content-default-primary)] focus:outline-2 focus:outline-[var(--color-content-default-primary)]",
+ },
+ b = {
+ default:
+ "px-[var(--spacing-measures-spacing-016)] py-[var(--spacing-measures-spacing-016)] gap-[var(--spacing-scale-004)]",
+ xsmall:
+ "px-[var(--spacing-scale-004)] py-[var(--spacing-scale-002)] gap-[var(--spacing-scale-004)]",
+ xsmallUseCases:
+ "px-[var(--spacing-scale-002)] py-[var(--spacing-scale-002)] gap-[var(--spacing-scale-004)]",
+ homeMd:
+ "px-[var(--spacing-scale-008)] py-[var(--spacing-scale-008)] gap-[var(--spacing-scale-004)]",
+ homeUseCases:
+ "px-[var(--spacing-scale-002)] py-[var(--spacing-scale-008)] gap-[var(--spacing-scale-004)]",
+ large:
+ "px-[var(--spacing-scale-012)] py-[var(--spacing-scale-012)] gap-[var(--spacing-scale-004)] h-[44px]",
+ largeUseCases:
+ "px-[var(--spacing-scale-012)] py-[var(--spacing-scale-012)] gap-[var(--spacing-scale-004)] h-[44px]",
+ homeXlarge:
+ "px-[var(--spacing-scale-016)] py-[var(--spacing-scale-016)] gap-[var(--spacing-scale-004)] h-[44px]",
+ xlarge:
+ "px-[var(--spacing-scale-016)] py-[var(--spacing-scale-008)] gap-[var(--spacing-scale-004)] h-[44px]",
+ },
+ t = "font-['Inter'] text-[10px] leading-[12px] font-medium tracking-[0%]",
+ n = "font-['Inter'] text-[12px] leading-[14px] font-medium tracking-[0%]",
+ c = "font-['Inter'] text-[16px] leading-[20px] font-medium tracking-[0%]",
+ i = "font-['Inter'] text-[24px] leading-[28px] font-normal tracking-[0%]",
+ h = {
+ default: t,
+ xsmall: t,
+ xsmallUseCases: t,
+ home: t,
+ homeMd: n,
+ homeUseCases: n,
+ large: c,
+ largeUseCases: c,
+ homeXlarge: i,
+ xlarge: i,
+ },
+ C = `inline-flex items-center ${b[e]} rounded-[var(--radius-measures-radius-full)] ${h[e]} transition-all duration-200 ease-in-out cursor-pointer focus:scale-[1.02]`;
+ let r = d;
+ a && (r = "default");
+ const s = `${C} ${x[r]} ${r === "home" ? y[e] : g[e]} ${f}`,
+ u = {
+ ...(l && { "aria-label": l }),
+ ...(a && { "aria-disabled": "true" }),
+ role: "menuitem",
+ tabIndex: a ? -1 : 0,
+ ...m,
+ };
+ return a
+ ? p.jsx("span", { className: s, ...u, children: o })
+ : p.jsx("a", { href: v, className: s, ...u, children: o });
+}
+U.__docgenInfo = {
+ description: "",
+ methods: [],
+ displayName: "MenuBarItem",
+ props: {
+ href: { defaultValue: { value: '"#"', computed: !1 }, required: !1 },
+ variant: {
+ defaultValue: { value: '"default"', computed: !1 },
+ required: !1,
+ },
+ size: { defaultValue: { value: '"default"', computed: !1 }, required: !1 },
+ className: { defaultValue: { value: '""', computed: !1 }, required: !1 },
+ disabled: { defaultValue: { value: "false", computed: !1 }, required: !1 },
+ },
+};
+export { U as M };
diff --git a/docs/assets/MenuBarItem.stories-Btz38mn4.js b/docs/assets/MenuBarItem.stories-Btz38mn4.js
index 2ac12a1..965e029 100644
--- a/docs/assets/MenuBarItem.stories-Btz38mn4.js
+++ b/docs/assets/MenuBarItem.stories-Btz38mn4.js
@@ -1,9 +1,217 @@
-import{j as e}from"./jsx-runtime-C_nHp4yK.js";import{M as a}from"./MenuBarItem-Dp8NM2fx.js";import"./iframe-D_aMTKb2.js";import"./preload-helper-DIZFD4sK.js";const u={title:"Components/MenuBarItem",component:a,parameters:{layout:"centered",docs:{description:{component:"A navigation menu item component with multiple variants, sizes, and states. Can render as a link or disabled span with full accessibility support. Includes focus states with keyboard navigation - use Tab key to test focus indicators."}}},argTypes:{variant:{control:{type:"select"},options:["default","home"],description:"The visual style variant of the menu item"},size:{control:{type:"select"},options:["xsmall","xsmallUseCases","homeMd","homeUseCases","large","largeUseCases","homeXlarge","xlarge"],description:"The size of the menu item"},disabled:{control:{type:"boolean"},description:"Whether the menu item is disabled"},href:{control:{type:"text"},description:"The link destination"},onClick:{action:"clicked"}},tags:["autodocs"]},n={args:{children:"Menu Item",size:"large"}},r={args:{children:"Menu Item",size:"large"},render:s=>e.jsx("div",{className:"space-y-4",children:e.jsxs("div",{className:"space-x-4",children:[e.jsx(a,{...s,variant:"default",children:"Default"}),e.jsx(a,{...s,variant:"home",children:"Home"})]})}),parameters:{docs:{description:{story:"Different visual variants of the menu item component."}}}},t={args:{children:"Menu Item",variant:"default"},render:s=>e.jsx("div",{className:"space-y-4",children:e.jsxs("div",{className:"space-x-4",children:[e.jsx(a,{...s,size:"xsmall",children:"XSmall"}),e.jsx(a,{...s,size:"large",children:"Large"}),e.jsx(a,{...s,size:"xlarge",children:"XLarge"})]})}),parameters:{docs:{description:{story:"Different sizes available for the menu item component."}}}},i={args:{children:"Menu Item",size:"large",variant:"default"},render:s=>e.jsx("div",{className:"space-y-4",children:e.jsxs("div",{className:"space-x-4",children:[e.jsx(a,{...s,children:"Normal"}),e.jsx(a,{...s,disabled:!0,children:"Disabled"})]})}),parameters:{docs:{description:{story:"Different states of the menu item component."}}}},l={args:{},render:()=>e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-white font-semibold mb-3",children:"Default Variant"}),e.jsxs("div",{className:"space-x-4",children:[e.jsx(a,{size:"xsmall",children:"XSmall"}),e.jsx(a,{size:"large",children:"Large"}),e.jsx(a,{size:"xlarge",children:"XLarge"})]})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-white font-semibold mb-3",children:"Home Variant"}),e.jsxs("div",{className:"space-x-4",children:[e.jsx(a,{variant:"home",size:"xsmall",children:"XSmall"}),e.jsx(a,{variant:"home",size:"large",children:"Large"}),e.jsx(a,{variant:"home",size:"xlarge",children:"XLarge"})]})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-white font-semibold mb-3",children:"Disabled States"}),e.jsxs("div",{className:"space-x-4",children:[e.jsx(a,{size:"large",disabled:!0,children:"Default Disabled"}),e.jsx(a,{variant:"home",size:"large",disabled:!0,children:"Home Disabled"})]})]})]}),parameters:{docs:{description:{story:"Complete overview of all menu item variants, sizes, and states."}}}};n.parameters={...n.parameters,docs:{...n.parameters?.docs,source:{originalSource:`{
+import { j as e } from "./jsx-runtime-C_nHp4yK.js";
+import { M as a } from "./MenuBarItem-Dp8NM2fx.js";
+import "./iframe-D_aMTKb2.js";
+import "./preload-helper-DIZFD4sK.js";
+const u = {
+ title: "Components/MenuBarItem",
+ component: a,
+ parameters: {
+ layout: "centered",
+ docs: {
+ description: {
+ component:
+ "A navigation menu item component with multiple variants, sizes, and states. Can render as a link or disabled span with full accessibility support. Includes focus states with keyboard navigation - use Tab key to test focus indicators.",
+ },
+ },
+ },
+ argTypes: {
+ variant: {
+ control: { type: "select" },
+ options: ["default", "home"],
+ description: "The visual style variant of the menu item",
+ },
+ size: {
+ control: { type: "select" },
+ options: [
+ "xsmall",
+ "xsmallUseCases",
+ "homeMd",
+ "homeUseCases",
+ "large",
+ "largeUseCases",
+ "homeXlarge",
+ "xlarge",
+ ],
+ description: "The size of the menu item",
+ },
+ disabled: {
+ control: { type: "boolean" },
+ description: "Whether the menu item is disabled",
+ },
+ href: { control: { type: "text" }, description: "The link destination" },
+ onClick: { action: "clicked" },
+ },
+ tags: ["autodocs"],
+ },
+ n = { args: { children: "Menu Item", size: "large" } },
+ r = {
+ args: { children: "Menu Item", size: "large" },
+ render: (s) =>
+ e.jsx("div", {
+ className: "space-y-4",
+ children: e.jsxs("div", {
+ className: "space-x-4",
+ children: [
+ e.jsx(a, { ...s, variant: "default", children: "Default" }),
+ e.jsx(a, { ...s, variant: "home", children: "Home" }),
+ ],
+ }),
+ }),
+ parameters: {
+ docs: {
+ description: {
+ story: "Different visual variants of the menu item component.",
+ },
+ },
+ },
+ },
+ t = {
+ args: { children: "Menu Item", variant: "default" },
+ render: (s) =>
+ e.jsx("div", {
+ className: "space-y-4",
+ children: e.jsxs("div", {
+ className: "space-x-4",
+ children: [
+ e.jsx(a, { ...s, size: "xsmall", children: "XSmall" }),
+ e.jsx(a, { ...s, size: "large", children: "Large" }),
+ e.jsx(a, { ...s, size: "xlarge", children: "XLarge" }),
+ ],
+ }),
+ }),
+ parameters: {
+ docs: {
+ description: {
+ story: "Different sizes available for the menu item component.",
+ },
+ },
+ },
+ },
+ i = {
+ args: { children: "Menu Item", size: "large", variant: "default" },
+ render: (s) =>
+ e.jsx("div", {
+ className: "space-y-4",
+ children: e.jsxs("div", {
+ className: "space-x-4",
+ children: [
+ e.jsx(a, { ...s, children: "Normal" }),
+ e.jsx(a, { ...s, disabled: !0, children: "Disabled" }),
+ ],
+ }),
+ }),
+ parameters: {
+ docs: {
+ description: { story: "Different states of the menu item component." },
+ },
+ },
+ },
+ l = {
+ args: {},
+ render: () =>
+ e.jsxs("div", {
+ className: "space-y-6",
+ children: [
+ e.jsxs("div", {
+ children: [
+ e.jsx("h3", {
+ className: "text-white font-semibold mb-3",
+ children: "Default Variant",
+ }),
+ e.jsxs("div", {
+ className: "space-x-4",
+ children: [
+ e.jsx(a, { size: "xsmall", children: "XSmall" }),
+ e.jsx(a, { size: "large", children: "Large" }),
+ e.jsx(a, { size: "xlarge", children: "XLarge" }),
+ ],
+ }),
+ ],
+ }),
+ e.jsxs("div", {
+ children: [
+ e.jsx("h3", {
+ className: "text-white font-semibold mb-3",
+ children: "Home Variant",
+ }),
+ e.jsxs("div", {
+ className: "space-x-4",
+ children: [
+ e.jsx(a, {
+ variant: "home",
+ size: "xsmall",
+ children: "XSmall",
+ }),
+ e.jsx(a, {
+ variant: "home",
+ size: "large",
+ children: "Large",
+ }),
+ e.jsx(a, {
+ variant: "home",
+ size: "xlarge",
+ children: "XLarge",
+ }),
+ ],
+ }),
+ ],
+ }),
+ e.jsxs("div", {
+ children: [
+ e.jsx("h3", {
+ className: "text-white font-semibold mb-3",
+ children: "Disabled States",
+ }),
+ e.jsxs("div", {
+ className: "space-x-4",
+ children: [
+ e.jsx(a, {
+ size: "large",
+ disabled: !0,
+ children: "Default Disabled",
+ }),
+ e.jsx(a, {
+ variant: "home",
+ size: "large",
+ disabled: !0,
+ children: "Home Disabled",
+ }),
+ ],
+ }),
+ ],
+ }),
+ ],
+ }),
+ parameters: {
+ docs: {
+ description: {
+ story:
+ "Complete overview of all menu item variants, sizes, and states.",
+ },
+ },
+ },
+ };
+n.parameters = {
+ ...n.parameters,
+ docs: {
+ ...n.parameters?.docs,
+ source: {
+ originalSource: `{
args: {
children: "Menu Item",
size: "large"
}
-}`,...n.parameters?.docs?.source}}};r.parameters={...r.parameters,docs:{...r.parameters?.docs,source:{originalSource:`{
+}`,
+ ...n.parameters?.docs?.source,
+ },
+ },
+};
+r.parameters = {
+ ...r.parameters,
+ docs: {
+ ...r.parameters?.docs,
+ source: {
+ originalSource: `{
args: {
children: "Menu Item",
size: "large"
@@ -25,7 +233,17 @@ import{j as e}from"./jsx-runtime-C_nHp4yK.js";import{M as a}from"./MenuBarItem-D
}
}
}
-}`,...r.parameters?.docs?.source}}};t.parameters={...t.parameters,docs:{...t.parameters?.docs,source:{originalSource:`{
+}`,
+ ...r.parameters?.docs?.source,
+ },
+ },
+};
+t.parameters = {
+ ...t.parameters,
+ docs: {
+ ...t.parameters?.docs,
+ source: {
+ originalSource: `{
args: {
children: "Menu Item",
variant: "default"
@@ -50,7 +268,17 @@ import{j as e}from"./jsx-runtime-C_nHp4yK.js";import{M as a}from"./MenuBarItem-D
}
}
}
-}`,...t.parameters?.docs?.source}}};i.parameters={...i.parameters,docs:{...i.parameters?.docs,source:{originalSource:`{
+}`,
+ ...t.parameters?.docs?.source,
+ },
+ },
+};
+i.parameters = {
+ ...i.parameters,
+ docs: {
+ ...i.parameters?.docs,
+ source: {
+ originalSource: `{
args: {
children: "Menu Item",
size: "large",
@@ -71,7 +299,17 @@ import{j as e}from"./jsx-runtime-C_nHp4yK.js";import{M as a}from"./MenuBarItem-D
}
}
}
-}`,...i.parameters?.docs?.source}}};l.parameters={...l.parameters,docs:{...l.parameters?.docs,source:{originalSource:`{
+}`,
+ ...i.parameters?.docs?.source,
+ },
+ },
+};
+l.parameters = {
+ ...l.parameters,
+ docs: {
+ ...l.parameters?.docs,
+ source: {
+ originalSource: `{
args: {},
render: () =>
@@ -117,4 +355,18 @@ import{j as e}from"./jsx-runtime-C_nHp4yK.js";import{M as a}from"./MenuBarItem-D
}
}
}
-}`,...l.parameters?.docs?.source}}};const p=["Default","Variants","Sizes","States","AllVariants"];export{l as AllVariants,n as Default,t as Sizes,i as States,r as Variants,p as __namedExportsOrder,u as default};
+}`,
+ ...l.parameters?.docs?.source,
+ },
+ },
+};
+const p = ["Default", "Variants", "Sizes", "States", "AllVariants"];
+export {
+ l as AllVariants,
+ n as Default,
+ t as Sizes,
+ i as States,
+ r as Variants,
+ p as __namedExportsOrder,
+ u as default,
+};
diff --git a/docs/assets/NumberedCard-ClCynPua.js b/docs/assets/NumberedCard-ClCynPua.js
index e1dbd4f..b0d7ead 100644
--- a/docs/assets/NumberedCard-ClCynPua.js
+++ b/docs/assets/NumberedCard-ClCynPua.js
@@ -1 +1,24 @@
-import{j as e}from"./jsx-runtime-C_nHp4yK.js";import{S as t}from"./SectionNumber-Cptefv18.js";const r=({number:l,text:s,iconShape:o,iconColor:a})=>e.jsxs("div",{className:"bg-[var(--color-surface-inverse-primary)] rounded-[12px] p-5 shadow-lg flex flex-col gap-4 sm:p-8 sm:gap-8 sm:flex-row sm:items-center lg:p-8 lg:gap-0 lg:flex-row lg:items-stretch lg:relative lg:h-[238px]",children:[e.jsx("div",{className:"flex justify-end sm:justify-start sm:flex-shrink-0 lg:absolute lg:top-8 lg:right-8",children:e.jsx(t,{number:l})}),e.jsx("div",{className:"sm:flex-1 lg:absolute lg:bottom-8 lg:left-8 lg:right-16",children:e.jsx("p",{className:"font-bricolage-grotesque font-medium text-[24px] leading-[32px] sm:font-normal sm:leading-[24px] sm:text-[24px] lg:text-[24px] lg:leading-[24px] xl:text-[32px] xl:leading-[32px] text-[#141414]",children:s})})]});r.__docgenInfo={description:"",methods:[],displayName:"NumberedCard"};export{r as N};
+import { j as e } from "./jsx-runtime-C_nHp4yK.js";
+import { S as t } from "./SectionNumber-Cptefv18.js";
+const r = ({ number: l, text: s, iconShape: o, iconColor: a }) =>
+ e.jsxs("div", {
+ className:
+ "bg-[var(--color-surface-inverse-primary)] rounded-[12px] p-5 shadow-lg flex flex-col gap-4 sm:p-8 sm:gap-8 sm:flex-row sm:items-center lg:p-8 lg:gap-0 lg:flex-row lg:items-stretch lg:relative lg:h-[238px]",
+ children: [
+ e.jsx("div", {
+ className:
+ "flex justify-end sm:justify-start sm:flex-shrink-0 lg:absolute lg:top-8 lg:right-8",
+ children: e.jsx(t, { number: l }),
+ }),
+ e.jsx("div", {
+ className: "sm:flex-1 lg:absolute lg:bottom-8 lg:left-8 lg:right-16",
+ children: e.jsx("p", {
+ className:
+ "font-bricolage-grotesque font-medium text-[24px] leading-[32px] sm:font-normal sm:leading-[24px] sm:text-[24px] lg:text-[24px] lg:leading-[24px] xl:text-[32px] xl:leading-[32px] text-[#141414]",
+ children: s,
+ }),
+ }),
+ ],
+ });
+r.__docgenInfo = { description: "", methods: [], displayName: "NumberedCard" };
+export { r as N };
diff --git a/docs/assets/NumberedCard.stories-B2w08pIr.js b/docs/assets/NumberedCard.stories-B2w08pIr.js
index 76a84a8..61c17c8 100644
--- a/docs/assets/NumberedCard.stories-B2w08pIr.js
+++ b/docs/assets/NumberedCard.stories-B2w08pIr.js
@@ -1,11 +1,124 @@
-import{j as e}from"./jsx-runtime-C_nHp4yK.js";import{N as o}from"./NumberedCard-ClCynPua.js";import"./iframe-D_aMTKb2.js";import"./preload-helper-DIZFD4sK.js";import"./SectionNumber-Cptefv18.js";const m={title:"Components/NumberedCard",component:o,parameters:{layout:"centered",docs:{description:{component:"Individual numbered card component that displays a step in a process with a numbered icon and descriptive text. Supports responsive layouts across different breakpoints."}}},argTypes:{number:{control:{type:"number",min:1,max:9},description:"The number to display on the card"},text:{control:{type:"text"},description:"The descriptive text for this step"},iconShape:{control:{type:"select"},options:["blob","gear","star"],description:"The shape of the icon background (currently not used, uses PNG images)"},iconColor:{control:{type:"select"},options:["green","purple","orange","blue"],description:"The color theme for the icon (currently not used, uses PNG images)"}},tags:["autodocs"]},t={args:{number:1,text:"Document how your community makes decisions",iconShape:"blob",iconColor:"green"}},r={args:{number:1,text:"Example card text",iconShape:"blob",iconColor:"green"},render:s=>e.jsxs("div",{className:"space-y-4",children:[e.jsx(o,{...s,number:1,text:"First step in the process"}),e.jsx(o,{...s,number:2,text:"Second step with different content"}),e.jsx(o,{...s,number:3,text:"Third and final step of the workflow"})]}),parameters:{docs:{description:{story:"Shows all three numbered cards with different content to demonstrate the visual hierarchy."}}}},n={args:{number:1,text:"This is a much longer piece of text that demonstrates how the card handles content that spans multiple lines and requires more space to display properly",iconShape:"blob",iconColor:"green"},parameters:{docs:{description:{story:"Demonstrates how the card handles longer text content across different breakpoints."}}}};t.parameters={...t.parameters,docs:{...t.parameters?.docs,source:{originalSource:`{
+import { j as e } from "./jsx-runtime-C_nHp4yK.js";
+import { N as o } from "./NumberedCard-ClCynPua.js";
+import "./iframe-D_aMTKb2.js";
+import "./preload-helper-DIZFD4sK.js";
+import "./SectionNumber-Cptefv18.js";
+const m = {
+ title: "Components/NumberedCard",
+ component: o,
+ parameters: {
+ layout: "centered",
+ docs: {
+ description: {
+ component:
+ "Individual numbered card component that displays a step in a process with a numbered icon and descriptive text. Supports responsive layouts across different breakpoints.",
+ },
+ },
+ },
+ argTypes: {
+ number: {
+ control: { type: "number", min: 1, max: 9 },
+ description: "The number to display on the card",
+ },
+ text: {
+ control: { type: "text" },
+ description: "The descriptive text for this step",
+ },
+ iconShape: {
+ control: { type: "select" },
+ options: ["blob", "gear", "star"],
+ description:
+ "The shape of the icon background (currently not used, uses PNG images)",
+ },
+ iconColor: {
+ control: { type: "select" },
+ options: ["green", "purple", "orange", "blue"],
+ description:
+ "The color theme for the icon (currently not used, uses PNG images)",
+ },
+ },
+ tags: ["autodocs"],
+ },
+ t = {
+ args: {
+ number: 1,
+ text: "Document how your community makes decisions",
+ iconShape: "blob",
+ iconColor: "green",
+ },
+ },
+ r = {
+ args: {
+ number: 1,
+ text: "Example card text",
+ iconShape: "blob",
+ iconColor: "green",
+ },
+ render: (s) =>
+ e.jsxs("div", {
+ className: "space-y-4",
+ children: [
+ e.jsx(o, { ...s, number: 1, text: "First step in the process" }),
+ e.jsx(o, {
+ ...s,
+ number: 2,
+ text: "Second step with different content",
+ }),
+ e.jsx(o, {
+ ...s,
+ number: 3,
+ text: "Third and final step of the workflow",
+ }),
+ ],
+ }),
+ parameters: {
+ docs: {
+ description: {
+ story:
+ "Shows all three numbered cards with different content to demonstrate the visual hierarchy.",
+ },
+ },
+ },
+ },
+ n = {
+ args: {
+ number: 1,
+ text: "This is a much longer piece of text that demonstrates how the card handles content that spans multiple lines and requires more space to display properly",
+ iconShape: "blob",
+ iconColor: "green",
+ },
+ parameters: {
+ docs: {
+ description: {
+ story:
+ "Demonstrates how the card handles longer text content across different breakpoints.",
+ },
+ },
+ },
+ };
+t.parameters = {
+ ...t.parameters,
+ docs: {
+ ...t.parameters?.docs,
+ source: {
+ originalSource: `{
args: {
number: 1,
text: "Document how your community makes decisions",
iconShape: "blob",
iconColor: "green"
}
-}`,...t.parameters?.docs?.source}}};r.parameters={...r.parameters,docs:{...r.parameters?.docs,source:{originalSource:`{
+}`,
+ ...t.parameters?.docs?.source,
+ },
+ },
+};
+r.parameters = {
+ ...r.parameters,
+ docs: {
+ ...r.parameters?.docs,
+ source: {
+ originalSource: `{
args: {
number: 1,
text: "Example card text",
@@ -24,7 +137,17 @@ import{j as e}from"./jsx-runtime-C_nHp4yK.js";import{N as o}from"./NumberedCard-
}
}
}
-}`,...r.parameters?.docs?.source}}};n.parameters={...n.parameters,docs:{...n.parameters?.docs,source:{originalSource:`{
+}`,
+ ...r.parameters?.docs?.source,
+ },
+ },
+};
+n.parameters = {
+ ...n.parameters,
+ docs: {
+ ...n.parameters?.docs,
+ source: {
+ originalSource: `{
args: {
number: 1,
text: "This is a much longer piece of text that demonstrates how the card handles content that spans multiple lines and requires more space to display properly",
@@ -38,4 +161,16 @@ import{j as e}from"./jsx-runtime-C_nHp4yK.js";import{N as o}from"./NumberedCard-
}
}
}
-}`,...n.parameters?.docs?.source}}};const l=["Default","AllNumbers","LongText"];export{r as AllNumbers,t as Default,n as LongText,l as __namedExportsOrder,m as default};
+}`,
+ ...n.parameters?.docs?.source,
+ },
+ },
+};
+const l = ["Default", "AllNumbers", "LongText"];
+export {
+ r as AllNumbers,
+ t as Default,
+ n as LongText,
+ l as __namedExportsOrder,
+ m as default,
+};
diff --git a/docs/assets/NumberedCards.stories-RsE3R6pO.js b/docs/assets/NumberedCards.stories-RsE3R6pO.js
index 9b3ff9b..0eb1c04 100644
--- a/docs/assets/NumberedCards.stories-RsE3R6pO.js
+++ b/docs/assets/NumberedCards.stories-RsE3R6pO.js
@@ -1,4 +1,184 @@
-import{j as e}from"./jsx-runtime-C_nHp4yK.js";import{N as m}from"./NumberedCard-ClCynPua.js";import{S as u}from"./SectionHeader-CadpOP1T.js";import{B as c}from"./Button-Z4hbXct5.js";import"./iframe-D_aMTKb2.js";import"./preload-helper-DIZFD4sK.js";import"./SectionNumber-Cptefv18.js";const l=({title:r,subtitle:a,cards:i})=>{const p={"@context":"https://schema.org","@type":"HowTo",name:r,description:a,step:i.map((o,t)=>({"@type":"HowToStep",position:t+1,name:o.text,text:o.text}))};return e.jsxs(e.Fragment,{children:[e.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(p)}}),e.jsx("section",{className:"bg-transparent py-[var(--spacing-scale-032)] px-[var(--spacing-scale-020)] sm:py-[var(--spacing-scale-048)] sm:px-[var(--spacing-scale-032)] lg:py-[var(--spacing-scale-064)] lg:px-[var(--spacing-scale-064)] xl:py-[var(--spacing-scale-076)] xl:px-[var(--spacing-scale-064)]",children:e.jsx("div",{className:"max-w-[var(--spacing-measures-max-width-lg)] mx-auto",children:e.jsxs("div",{className:"grid grid-cols-1 gap-y-[var(--spacing-scale-032)] lg:gap-y-[var(--spacing-scale-056)]",children:[e.jsx("div",{children:e.jsx(u,{title:r,subtitle:a,titleLg:"How CommunityRule helps"})}),e.jsx("div",{className:"grid grid-cols-1 gap-y-[var(--spacing-scale-024)] lg:grid-cols-3 lg:gap-[var(--spacing-scale-024)]",children:i.map((o,t)=>e.jsx(m,{number:t+1,text:o.text,iconShape:o.iconShape,iconColor:o.iconColor},t))}),e.jsxs("div",{className:"text-center sm:text-left lg:text-center",children:[e.jsx("div",{className:"block lg:hidden",children:e.jsx(c,{variant:"default",size:"large",children:"Create CommunityRule"})}),e.jsx("div",{className:"hidden lg:block",children:e.jsx(c,{variant:"outlined",size:"large",children:"See how it works"})})]})]})})})]})};l.__docgenInfo={description:"",methods:[],displayName:"NumberedCards"};const C={title:"Components/NumberedCards",component:l,parameters:{layout:"fullscreen",docs:{description:{component:"A component system for visually communicating multi-step workflows, processes, or value propositions. The component's modular design with NumberedCard and SectionNumber sub-components makes it ideal for explaining any sequential process while maintaining brand consistency and accessibility standards across the design system."}}},argTypes:{title:{control:{type:"text"},description:"The main title for the section"},subtitle:{control:{type:"text"},description:"The subtitle text below the main title"},cards:{control:{type:"object"},description:"Array of card objects with text, iconShape, and iconColor properties"}},tags:["autodocs"]},n={args:{title:"How CommunityRule works",subtitle:"Here's a quick overview of the process, from start to finish.",cards:[{text:"Document how your community makes decisions",iconShape:"blob",iconColor:"green"},{text:"Build an operating manual for a successful community",iconShape:"gear",iconColor:"purple"},{text:"Get a link to your manual for your group to review and evolve",iconShape:"star",iconColor:"orange"}]}},s={args:{title:"Our Process",subtitle:"Follow these simple steps to get started with your project.",cards:[{text:"Define your project requirements and goals",iconShape:"blob",iconColor:"green"},{text:"Collaborate with our team to create the perfect solution",iconShape:"gear",iconColor:"purple"},{text:"Launch and iterate based on user feedback",iconShape:"star",iconColor:"orange"},{text:"Scale and optimize for continued success",iconShape:"blob",iconColor:"blue"}]},parameters:{docs:{description:{story:"Example with custom content and four cards to show flexibility."}}}};n.parameters={...n.parameters,docs:{...n.parameters?.docs,source:{originalSource:`{
+import { j as e } from "./jsx-runtime-C_nHp4yK.js";
+import { N as m } from "./NumberedCard-ClCynPua.js";
+import { S as u } from "./SectionHeader-CadpOP1T.js";
+import { B as c } from "./Button-Z4hbXct5.js";
+import "./iframe-D_aMTKb2.js";
+import "./preload-helper-DIZFD4sK.js";
+import "./SectionNumber-Cptefv18.js";
+const l = ({ title: r, subtitle: a, cards: i }) => {
+ const p = {
+ "@context": "https://schema.org",
+ "@type": "HowTo",
+ name: r,
+ description: a,
+ step: i.map((o, t) => ({
+ "@type": "HowToStep",
+ position: t + 1,
+ name: o.text,
+ text: o.text,
+ })),
+ };
+ return e.jsxs(e.Fragment, {
+ children: [
+ e.jsx("script", {
+ type: "application/ld+json",
+ dangerouslySetInnerHTML: { __html: JSON.stringify(p) },
+ }),
+ e.jsx("section", {
+ className:
+ "bg-transparent py-[var(--spacing-scale-032)] px-[var(--spacing-scale-020)] sm:py-[var(--spacing-scale-048)] sm:px-[var(--spacing-scale-032)] lg:py-[var(--spacing-scale-064)] lg:px-[var(--spacing-scale-064)] xl:py-[var(--spacing-scale-076)] xl:px-[var(--spacing-scale-064)]",
+ children: e.jsx("div", {
+ className: "max-w-[var(--spacing-measures-max-width-lg)] mx-auto",
+ children: e.jsxs("div", {
+ className:
+ "grid grid-cols-1 gap-y-[var(--spacing-scale-032)] lg:gap-y-[var(--spacing-scale-056)]",
+ children: [
+ e.jsx("div", {
+ children: e.jsx(u, {
+ title: r,
+ subtitle: a,
+ titleLg: "How CommunityRule helps",
+ }),
+ }),
+ e.jsx("div", {
+ className:
+ "grid grid-cols-1 gap-y-[var(--spacing-scale-024)] lg:grid-cols-3 lg:gap-[var(--spacing-scale-024)]",
+ children: i.map((o, t) =>
+ e.jsx(
+ m,
+ {
+ number: t + 1,
+ text: o.text,
+ iconShape: o.iconShape,
+ iconColor: o.iconColor,
+ },
+ t,
+ ),
+ ),
+ }),
+ e.jsxs("div", {
+ className: "text-center sm:text-left lg:text-center",
+ children: [
+ e.jsx("div", {
+ className: "block lg:hidden",
+ children: e.jsx(c, {
+ variant: "default",
+ size: "large",
+ children: "Create CommunityRule",
+ }),
+ }),
+ e.jsx("div", {
+ className: "hidden lg:block",
+ children: e.jsx(c, {
+ variant: "outlined",
+ size: "large",
+ children: "See how it works",
+ }),
+ }),
+ ],
+ }),
+ ],
+ }),
+ }),
+ }),
+ ],
+ });
+};
+l.__docgenInfo = { description: "", methods: [], displayName: "NumberedCards" };
+const C = {
+ title: "Components/NumberedCards",
+ component: l,
+ parameters: {
+ layout: "fullscreen",
+ docs: {
+ description: {
+ component:
+ "A component system for visually communicating multi-step workflows, processes, or value propositions. The component's modular design with NumberedCard and SectionNumber sub-components makes it ideal for explaining any sequential process while maintaining brand consistency and accessibility standards across the design system.",
+ },
+ },
+ },
+ argTypes: {
+ title: {
+ control: { type: "text" },
+ description: "The main title for the section",
+ },
+ subtitle: {
+ control: { type: "text" },
+ description: "The subtitle text below the main title",
+ },
+ cards: {
+ control: { type: "object" },
+ description:
+ "Array of card objects with text, iconShape, and iconColor properties",
+ },
+ },
+ tags: ["autodocs"],
+ },
+ n = {
+ args: {
+ title: "How CommunityRule works",
+ subtitle: "Here's a quick overview of the process, from start to finish.",
+ cards: [
+ {
+ text: "Document how your community makes decisions",
+ iconShape: "blob",
+ iconColor: "green",
+ },
+ {
+ text: "Build an operating manual for a successful community",
+ iconShape: "gear",
+ iconColor: "purple",
+ },
+ {
+ text: "Get a link to your manual for your group to review and evolve",
+ iconShape: "star",
+ iconColor: "orange",
+ },
+ ],
+ },
+ },
+ s = {
+ args: {
+ title: "Our Process",
+ subtitle: "Follow these simple steps to get started with your project.",
+ cards: [
+ {
+ text: "Define your project requirements and goals",
+ iconShape: "blob",
+ iconColor: "green",
+ },
+ {
+ text: "Collaborate with our team to create the perfect solution",
+ iconShape: "gear",
+ iconColor: "purple",
+ },
+ {
+ text: "Launch and iterate based on user feedback",
+ iconShape: "star",
+ iconColor: "orange",
+ },
+ {
+ text: "Scale and optimize for continued success",
+ iconShape: "blob",
+ iconColor: "blue",
+ },
+ ],
+ },
+ parameters: {
+ docs: {
+ description: {
+ story:
+ "Example with custom content and four cards to show flexibility.",
+ },
+ },
+ },
+ };
+n.parameters = {
+ ...n.parameters,
+ docs: {
+ ...n.parameters?.docs,
+ source: {
+ originalSource: `{
args: {
title: "How CommunityRule works",
subtitle: "Here's a quick overview of the process, from start to finish.",
@@ -16,7 +196,17 @@ import{j as e}from"./jsx-runtime-C_nHp4yK.js";import{N as m}from"./NumberedCard-
iconColor: "orange"
}]
}
-}`,...n.parameters?.docs?.source}}};s.parameters={...s.parameters,docs:{...s.parameters?.docs,source:{originalSource:`{
+}`,
+ ...n.parameters?.docs?.source,
+ },
+ },
+};
+s.parameters = {
+ ...s.parameters,
+ docs: {
+ ...s.parameters?.docs,
+ source: {
+ originalSource: `{
args: {
title: "Our Process",
subtitle: "Follow these simple steps to get started with your project.",
@@ -45,4 +235,15 @@ import{j as e}from"./jsx-runtime-C_nHp4yK.js";import{N as m}from"./NumberedCard-
}
}
}
-}`,...s.parameters?.docs?.source}}};const v=["Default","CustomContent"];export{s as CustomContent,n as Default,v as __namedExportsOrder,C as default};
+}`,
+ ...s.parameters?.docs?.source,
+ },
+ },
+};
+const v = ["Default", "CustomContent"];
+export {
+ s as CustomContent,
+ n as Default,
+ v as __namedExportsOrder,
+ C as default,
+};
diff --git a/docs/assets/SectionHeader-CadpOP1T.js b/docs/assets/SectionHeader-CadpOP1T.js
index ae39c6a..69b7bda 100644
--- a/docs/assets/SectionHeader-CadpOP1T.js
+++ b/docs/assets/SectionHeader-CadpOP1T.js
@@ -1 +1,31 @@
-import{j as e}from"./jsx-runtime-C_nHp4yK.js";const a=({title:l,subtitle:t,titleLg:x})=>e.jsxs("div",{className:"flex flex-col gap-1 w-full lg:flex-row lg:justify-between lg:items-start xl:gap-[var(--spacing-scale-024)]",children:[e.jsx("div",{className:"lg:w-[369px] lg:h-[120px] lg:flex lg:items-center xl:w-[452px] xl:h-[156px] xl:flex xl:items-center",children:e.jsxs("h2",{className:"font-bricolage-grotesque font-bold text-[28px] leading-[36px] sm:text-[32px] sm:leading-[40px] lg:text-[32px] lg:leading-[40px] lg:w-[369px] lg:pr-24 xl:text-[40px] xl:leading-[52px] xl:w-[452px] xl:pr-24 text-[var(--color-content-default-primary)]",children:[e.jsx("span",{className:"block lg:hidden",children:l}),e.jsx("span",{className:"hidden lg:block",children:x||l})]})}),e.jsx("div",{className:"lg:w-[928px] lg:h-[120px] lg:flex lg:items-center lg:justify-end xl:w-[763px] xl:h-[156px] xl:flex xl:items-center xl:justify-end",children:e.jsx("p",{className:"font-inter font-normal text-[18px] leading-[130%] sm:text-[18px] sm:leading-[32px] lg:text-[24px] lg:leading-[32px] xl:text-[32px] xl:leading-[40px] xl:text-right text-[#484848] sm:text-[var(--color-content-default-tertiary)] lg:text-[var(--color-content-default-tertiary)] xl:text-[var(--color-content-default-tertiary)] tracking-[0px]",children:t})})]});a.__docgenInfo={description:"",methods:[],displayName:"SectionHeader"};export{a as S};
+import { j as e } from "./jsx-runtime-C_nHp4yK.js";
+const a = ({ title: l, subtitle: t, titleLg: x }) =>
+ e.jsxs("div", {
+ className:
+ "flex flex-col gap-1 w-full lg:flex-row lg:justify-between lg:items-start xl:gap-[var(--spacing-scale-024)]",
+ children: [
+ e.jsx("div", {
+ className:
+ "lg:w-[369px] lg:h-[120px] lg:flex lg:items-center xl:w-[452px] xl:h-[156px] xl:flex xl:items-center",
+ children: e.jsxs("h2", {
+ className:
+ "font-bricolage-grotesque font-bold text-[28px] leading-[36px] sm:text-[32px] sm:leading-[40px] lg:text-[32px] lg:leading-[40px] lg:w-[369px] lg:pr-24 xl:text-[40px] xl:leading-[52px] xl:w-[452px] xl:pr-24 text-[var(--color-content-default-primary)]",
+ children: [
+ e.jsx("span", { className: "block lg:hidden", children: l }),
+ e.jsx("span", { className: "hidden lg:block", children: x || l }),
+ ],
+ }),
+ }),
+ e.jsx("div", {
+ className:
+ "lg:w-[928px] lg:h-[120px] lg:flex lg:items-center lg:justify-end xl:w-[763px] xl:h-[156px] xl:flex xl:items-center xl:justify-end",
+ children: e.jsx("p", {
+ className:
+ "font-inter font-normal text-[18px] leading-[130%] sm:text-[18px] sm:leading-[32px] lg:text-[24px] lg:leading-[32px] xl:text-[32px] xl:leading-[40px] xl:text-right text-[#484848] sm:text-[var(--color-content-default-tertiary)] lg:text-[var(--color-content-default-tertiary)] xl:text-[var(--color-content-default-tertiary)] tracking-[0px]",
+ children: t,
+ }),
+ }),
+ ],
+ });
+a.__docgenInfo = { description: "", methods: [], displayName: "SectionHeader" };
+export { a as S };
diff --git a/docs/assets/SectionHeader.stories-CxSQCoM-.js b/docs/assets/SectionHeader.stories-CxSQCoM-.js
index 90f2e3e..0632d59 100644
--- a/docs/assets/SectionHeader.stories-CxSQCoM-.js
+++ b/docs/assets/SectionHeader.stories-CxSQCoM-.js
@@ -1,10 +1,128 @@
-import{S as n}from"./SectionHeader-CadpOP1T.js";import"./jsx-runtime-C_nHp4yK.js";import"./iframe-D_aMTKb2.js";import"./preload-helper-DIZFD4sK.js";const p={title:"Components/SectionHeader",component:n,parameters:{layout:"centered",docs:{description:{component:"A section header component that displays a title and subtitle with responsive typography and layout. Supports different title text for large breakpoints and maintains consistent spacing across all screen sizes."}}},argTypes:{title:{control:{type:"text"},description:"The main title text (used for xsm and sm breakpoints)"},subtitle:{control:{type:"text"},description:"The subtitle text below the main title"},titleLg:{control:{type:"text"},description:"The title text for lg and xl breakpoints (optional, falls back to title)"}},tags:["autodocs"]},e={args:{title:"How CommunityRule works",subtitle:"Here's a quick overview of the process, from start to finish.",titleLg:"How CommunityRule helps"}},t={args:{title:"Our Mission",subtitle:"We're dedicated to helping communities thrive through better decision-making processes and transparent governance structures.",titleLg:"Building Better Communities"},parameters:{docs:{description:{story:"Example with custom content to show the flexibility of the component."}}}},s={args:{title:"Complex Process",subtitle:"This is a much longer subtitle that demonstrates how the component handles extended text content across different breakpoints and layout configurations.",titleLg:"Complex Process Simplified"},parameters:{docs:{description:{story:"Demonstrates how the component handles longer subtitle text across different breakpoints."}}}},o={args:{title:"Responsive Design",subtitle:"Test the responsive behavior by resizing your browser window or using the viewport controls in Storybook.",titleLg:"Responsive Design Test"},parameters:{docs:{description:{story:"Test the responsive behavior by resizing your browser window or using the viewport controls in Storybook."}}}},r={args:{title:"Simple Header",subtitle:"This example doesn't specify a titleLg prop, so it will use the same title text across all breakpoints."},parameters:{docs:{description:{story:"Shows the component without a titleLg prop, demonstrating the fallback behavior."}}}};e.parameters={...e.parameters,docs:{...e.parameters?.docs,source:{originalSource:`{
+import { S as n } from "./SectionHeader-CadpOP1T.js";
+import "./jsx-runtime-C_nHp4yK.js";
+import "./iframe-D_aMTKb2.js";
+import "./preload-helper-DIZFD4sK.js";
+const p = {
+ title: "Components/SectionHeader",
+ component: n,
+ parameters: {
+ layout: "centered",
+ docs: {
+ description: {
+ component:
+ "A section header component that displays a title and subtitle with responsive typography and layout. Supports different title text for large breakpoints and maintains consistent spacing across all screen sizes.",
+ },
+ },
+ },
+ argTypes: {
+ title: {
+ control: { type: "text" },
+ description: "The main title text (used for xsm and sm breakpoints)",
+ },
+ subtitle: {
+ control: { type: "text" },
+ description: "The subtitle text below the main title",
+ },
+ titleLg: {
+ control: { type: "text" },
+ description:
+ "The title text for lg and xl breakpoints (optional, falls back to title)",
+ },
+ },
+ tags: ["autodocs"],
+ },
+ e = {
+ args: {
+ title: "How CommunityRule works",
+ subtitle: "Here's a quick overview of the process, from start to finish.",
+ titleLg: "How CommunityRule helps",
+ },
+ },
+ t = {
+ args: {
+ title: "Our Mission",
+ subtitle:
+ "We're dedicated to helping communities thrive through better decision-making processes and transparent governance structures.",
+ titleLg: "Building Better Communities",
+ },
+ parameters: {
+ docs: {
+ description: {
+ story:
+ "Example with custom content to show the flexibility of the component.",
+ },
+ },
+ },
+ },
+ s = {
+ args: {
+ title: "Complex Process",
+ subtitle:
+ "This is a much longer subtitle that demonstrates how the component handles extended text content across different breakpoints and layout configurations.",
+ titleLg: "Complex Process Simplified",
+ },
+ parameters: {
+ docs: {
+ description: {
+ story:
+ "Demonstrates how the component handles longer subtitle text across different breakpoints.",
+ },
+ },
+ },
+ },
+ o = {
+ args: {
+ title: "Responsive Design",
+ subtitle:
+ "Test the responsive behavior by resizing your browser window or using the viewport controls in Storybook.",
+ titleLg: "Responsive Design Test",
+ },
+ parameters: {
+ docs: {
+ description: {
+ story:
+ "Test the responsive behavior by resizing your browser window or using the viewport controls in Storybook.",
+ },
+ },
+ },
+ },
+ r = {
+ args: {
+ title: "Simple Header",
+ subtitle:
+ "This example doesn't specify a titleLg prop, so it will use the same title text across all breakpoints.",
+ },
+ parameters: {
+ docs: {
+ description: {
+ story:
+ "Shows the component without a titleLg prop, demonstrating the fallback behavior.",
+ },
+ },
+ },
+ };
+e.parameters = {
+ ...e.parameters,
+ docs: {
+ ...e.parameters?.docs,
+ source: {
+ originalSource: `{
args: {
title: "How CommunityRule works",
subtitle: "Here's a quick overview of the process, from start to finish.",
titleLg: "How CommunityRule helps"
}
-}`,...e.parameters?.docs?.source}}};t.parameters={...t.parameters,docs:{...t.parameters?.docs,source:{originalSource:`{
+}`,
+ ...e.parameters?.docs?.source,
+ },
+ },
+};
+t.parameters = {
+ ...t.parameters,
+ docs: {
+ ...t.parameters?.docs,
+ source: {
+ originalSource: `{
args: {
title: "Our Mission",
subtitle: "We're dedicated to helping communities thrive through better decision-making processes and transparent governance structures.",
@@ -17,7 +135,17 @@ import{S as n}from"./SectionHeader-CadpOP1T.js";import"./jsx-runtime-C_nHp4yK.js
}
}
}
-}`,...t.parameters?.docs?.source}}};s.parameters={...s.parameters,docs:{...s.parameters?.docs,source:{originalSource:`{
+}`,
+ ...t.parameters?.docs?.source,
+ },
+ },
+};
+s.parameters = {
+ ...s.parameters,
+ docs: {
+ ...s.parameters?.docs,
+ source: {
+ originalSource: `{
args: {
title: "Complex Process",
subtitle: "This is a much longer subtitle that demonstrates how the component handles extended text content across different breakpoints and layout configurations.",
@@ -30,7 +158,17 @@ import{S as n}from"./SectionHeader-CadpOP1T.js";import"./jsx-runtime-C_nHp4yK.js
}
}
}
-}`,...s.parameters?.docs?.source}}};o.parameters={...o.parameters,docs:{...o.parameters?.docs,source:{originalSource:`{
+}`,
+ ...s.parameters?.docs?.source,
+ },
+ },
+};
+o.parameters = {
+ ...o.parameters,
+ docs: {
+ ...o.parameters?.docs,
+ source: {
+ originalSource: `{
args: {
title: "Responsive Design",
subtitle: "Test the responsive behavior by resizing your browser window or using the viewport controls in Storybook.",
@@ -43,7 +181,17 @@ import{S as n}from"./SectionHeader-CadpOP1T.js";import"./jsx-runtime-C_nHp4yK.js
}
}
}
-}`,...o.parameters?.docs?.source}}};r.parameters={...r.parameters,docs:{...r.parameters?.docs,source:{originalSource:`{
+}`,
+ ...o.parameters?.docs?.source,
+ },
+ },
+};
+r.parameters = {
+ ...r.parameters,
+ docs: {
+ ...r.parameters?.docs,
+ source: {
+ originalSource: `{
args: {
title: "Simple Header",
subtitle: "This example doesn't specify a titleLg prop, so it will use the same title text across all breakpoints."
@@ -55,4 +203,24 @@ import{S as n}from"./SectionHeader-CadpOP1T.js";import"./jsx-runtime-C_nHp4yK.js
}
}
}
-}`,...r.parameters?.docs?.source}}};const m=["Default","CustomContent","LongSubtitle","ResponsiveTest","WithoutTitleLg"];export{t as CustomContent,e as Default,s as LongSubtitle,o as ResponsiveTest,r as WithoutTitleLg,m as __namedExportsOrder,p as default};
+}`,
+ ...r.parameters?.docs?.source,
+ },
+ },
+};
+const m = [
+ "Default",
+ "CustomContent",
+ "LongSubtitle",
+ "ResponsiveTest",
+ "WithoutTitleLg",
+];
+export {
+ t as CustomContent,
+ e as Default,
+ s as LongSubtitle,
+ o as ResponsiveTest,
+ r as WithoutTitleLg,
+ m as __namedExportsOrder,
+ p as default,
+};
diff --git a/docs/assets/SectionNumber-Cptefv18.js b/docs/assets/SectionNumber-Cptefv18.js
index a2e886e..032c8ae 100644
--- a/docs/assets/SectionNumber-Cptefv18.js
+++ b/docs/assets/SectionNumber-Cptefv18.js
@@ -1 +1,36 @@
-import{j as e}from"./jsx-runtime-C_nHp4yK.js";const a=({number:t})=>{const s=r=>{switch(r){case 1:return"/assets/SectionNumber_1.png";case 2:return"/assets/SectionNumber_2.png";case 3:return"/assets/SectionNumber_3.png";default:return"/assets/SectionNumber_1.png"}};return e.jsxs("div",{className:"relative size-[40px] overflow-visible -rotate-[15deg]",children:[e.jsx("img",{src:s(t),alt:`Section ${t}`,className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 size-[47.37px] max-w-none"}),e.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:e.jsx("span",{className:"text-[var(--font-size-body-small)] font-[var(--font-weight-bold)] text-[var(--color-content-inverse-primary)]",children:t})})]})};a.__docgenInfo={description:"",methods:[],displayName:"SectionNumber"};export{a as S};
+import { j as e } from "./jsx-runtime-C_nHp4yK.js";
+const a = ({ number: t }) => {
+ const s = (r) => {
+ switch (r) {
+ case 1:
+ return "/assets/SectionNumber_1.png";
+ case 2:
+ return "/assets/SectionNumber_2.png";
+ case 3:
+ return "/assets/SectionNumber_3.png";
+ default:
+ return "/assets/SectionNumber_1.png";
+ }
+ };
+ return e.jsxs("div", {
+ className: "relative size-[40px] overflow-visible -rotate-[15deg]",
+ children: [
+ e.jsx("img", {
+ src: s(t),
+ alt: `Section ${t}`,
+ className:
+ "absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 size-[47.37px] max-w-none",
+ }),
+ e.jsx("div", {
+ className: "absolute inset-0 flex items-center justify-center",
+ children: e.jsx("span", {
+ className:
+ "text-[var(--font-size-body-small)] font-[var(--font-weight-bold)] text-[var(--color-content-inverse-primary)]",
+ children: t,
+ }),
+ }),
+ ],
+ });
+};
+a.__docgenInfo = { description: "", methods: [], displayName: "SectionNumber" };
+export { a as S };
diff --git a/docs/assets/SectionNumber.stories-CTZpqrxx.js b/docs/assets/SectionNumber.stories-CTZpqrxx.js
index b426de9..e1e6055 100644
--- a/docs/assets/SectionNumber.stories-CTZpqrxx.js
+++ b/docs/assets/SectionNumber.stories-CTZpqrxx.js
@@ -1,16 +1,119 @@
-import{j as e}from"./jsx-runtime-C_nHp4yK.js";import{S as r}from"./SectionNumber-Cptefv18.js";import"./iframe-D_aMTKb2.js";import"./preload-helper-DIZFD4sK.js";const u={title:"Components/SectionNumber",component:r,parameters:{layout:"centered",docs:{description:{component:"A numbered icon component that displays a number overlaid on a PNG background image. The component uses different PNG images for numbers 1, 2, and 3, with the image extending beyond the 40px container size."}}},argTypes:{number:{control:{type:"number",min:1,max:3},description:"The number to display (1, 2, or 3)"}},tags:["autodocs"]},n={args:{number:1}},s={args:{number:2}},o={args:{number:3}},a={render:()=>e.jsxs("div",{className:"flex space-x-4",children:[e.jsx(r,{number:1}),e.jsx(r,{number:2}),e.jsx(r,{number:3})]}),parameters:{docs:{description:{story:"Shows all three numbered icons side by side to demonstrate the different PNG backgrounds."}}}},t={render:()=>e.jsx("div",{className:"bg-gray-100 p-8 rounded-lg",children:e.jsxs("div",{className:"flex space-x-4",children:[e.jsx(r,{number:1}),e.jsx(r,{number:2}),e.jsx(r,{number:3})]})}),parameters:{docs:{description:{story:"Shows the numbered icons on a background to demonstrate how the PNG images extend beyond the container."}}}};n.parameters={...n.parameters,docs:{...n.parameters?.docs,source:{originalSource:`{
+import { j as e } from "./jsx-runtime-C_nHp4yK.js";
+import { S as r } from "./SectionNumber-Cptefv18.js";
+import "./iframe-D_aMTKb2.js";
+import "./preload-helper-DIZFD4sK.js";
+const u = {
+ title: "Components/SectionNumber",
+ component: r,
+ parameters: {
+ layout: "centered",
+ docs: {
+ description: {
+ component:
+ "A numbered icon component that displays a number overlaid on a PNG background image. The component uses different PNG images for numbers 1, 2, and 3, with the image extending beyond the 40px container size.",
+ },
+ },
+ },
+ argTypes: {
+ number: {
+ control: { type: "number", min: 1, max: 3 },
+ description: "The number to display (1, 2, or 3)",
+ },
+ },
+ tags: ["autodocs"],
+ },
+ n = { args: { number: 1 } },
+ s = { args: { number: 2 } },
+ o = { args: { number: 3 } },
+ a = {
+ render: () =>
+ e.jsxs("div", {
+ className: "flex space-x-4",
+ children: [
+ e.jsx(r, { number: 1 }),
+ e.jsx(r, { number: 2 }),
+ e.jsx(r, { number: 3 }),
+ ],
+ }),
+ parameters: {
+ docs: {
+ description: {
+ story:
+ "Shows all three numbered icons side by side to demonstrate the different PNG backgrounds.",
+ },
+ },
+ },
+ },
+ t = {
+ render: () =>
+ e.jsx("div", {
+ className: "bg-gray-100 p-8 rounded-lg",
+ children: e.jsxs("div", {
+ className: "flex space-x-4",
+ children: [
+ e.jsx(r, { number: 1 }),
+ e.jsx(r, { number: 2 }),
+ e.jsx(r, { number: 3 }),
+ ],
+ }),
+ }),
+ parameters: {
+ docs: {
+ description: {
+ story:
+ "Shows the numbered icons on a background to demonstrate how the PNG images extend beyond the container.",
+ },
+ },
+ },
+ };
+n.parameters = {
+ ...n.parameters,
+ docs: {
+ ...n.parameters?.docs,
+ source: {
+ originalSource: `{
args: {
number: 1
}
-}`,...n.parameters?.docs?.source}}};s.parameters={...s.parameters,docs:{...s.parameters?.docs,source:{originalSource:`{
+}`,
+ ...n.parameters?.docs?.source,
+ },
+ },
+};
+s.parameters = {
+ ...s.parameters,
+ docs: {
+ ...s.parameters?.docs,
+ source: {
+ originalSource: `{
args: {
number: 2
}
-}`,...s.parameters?.docs?.source}}};o.parameters={...o.parameters,docs:{...o.parameters?.docs,source:{originalSource:`{
+}`,
+ ...s.parameters?.docs?.source,
+ },
+ },
+};
+o.parameters = {
+ ...o.parameters,
+ docs: {
+ ...o.parameters?.docs,
+ source: {
+ originalSource: `{
args: {
number: 3
}
-}`,...o.parameters?.docs?.source}}};a.parameters={...a.parameters,docs:{...a.parameters?.docs,source:{originalSource:`{
+}`,
+ ...o.parameters?.docs?.source,
+ },
+ },
+};
+a.parameters = {
+ ...a.parameters,
+ docs: {
+ ...a.parameters?.docs,
+ source: {
+ originalSource: `{
render: () =>
@@ -23,7 +126,17 @@ import{j as e}from"./jsx-runtime-C_nHp4yK.js";import{S as r}from"./SectionNumber
}
}
}
-}`,...a.parameters?.docs?.source}}};t.parameters={...t.parameters,docs:{...t.parameters?.docs,source:{originalSource:`{
+}`,
+ ...a.parameters?.docs?.source,
+ },
+ },
+};
+t.parameters = {
+ ...t.parameters,
+ docs: {
+ ...t.parameters?.docs,
+ source: {
+ originalSource: `{
render: () =>
@@ -38,4 +151,24 @@ import{j as e}from"./jsx-runtime-C_nHp4yK.js";import{S as r}from"./SectionNumber
}
}
}
-}`,...t.parameters?.docs?.source}}};const b=["NumberOne","NumberTwo","NumberThree","AllNumbers","WithBackground"];export{a as AllNumbers,n as NumberOne,o as NumberThree,s as NumberTwo,t as WithBackground,b as __namedExportsOrder,u as default};
+}`,
+ ...t.parameters?.docs?.source,
+ },
+ },
+};
+const b = [
+ "NumberOne",
+ "NumberTwo",
+ "NumberThree",
+ "AllNumbers",
+ "WithBackground",
+];
+export {
+ a as AllNumbers,
+ n as NumberOne,
+ o as NumberThree,
+ s as NumberTwo,
+ t as WithBackground,
+ b as __namedExportsOrder,
+ u as default,
+};
diff --git a/docs/assets/axe-kJbNpjRz.js b/docs/assets/axe-kJbNpjRz.js
index 69aad15..dae0b3c 100644
--- a/docs/assets/axe-kJbNpjRz.js
+++ b/docs/assets/axe-kJbNpjRz.js
@@ -1,4 +1,6 @@
-import{g as MT}from"./iframe-D_aMTKb2.js";var mi={exports:{}};/*! axe v4.10.3
+import { g as MT } from "./iframe-D_aMTKb2.js";
+var mi = { exports: {} };
+/*! axe v4.10.3
* Copyright (c) 2015 - 2025 Deque Systems, Inc.
*
* Your use of this Source Code Form is subject to the terms of the Mozilla Public
@@ -8,23 +10,42436 @@ import{g as MT}from"./iframe-D_aMTKb2.js";var mi={exports:{}};/*! axe v4.10.3
* This entire copyright notice must appear in every copy of this file you
* distribute or in any file that contains substantial portions of this source
* code.
- */var IT=mi.exports,xp;function PT(){return xp||(xp=1,function(hi){(function Qu(E){var jt=E,L=E.document,x=x||{};x.version="4.10.3",O(hi)==="object"&&hi.exports&&typeof Qu.toString=="function"&&(x.source="("+Qu.toString()+')(typeof window === "object" ? window : this);',hi.exports=x),typeof E.getComputedStyle=="function"&&(E.axe=x);function Jr(C){this.name="SupportError",this.cause=C.cause,this.message="`".concat(C.cause,"` - feature unsupported in your environment."),C.ruleId&&(this.ruleId=C.ruleId,this.message+=" Skipping ".concat(this.ruleId," rule.")),this.stack=new Error().stack}Jr.prototype=Object.create(Error.prototype),Jr.prototype.constructor=Jr;var Ep=["node"],Ap=["relatedNodes"],Cp=["node"],Fp=["variant"],Tp=["matches"],Rp=["chromium"],Sp=["noImplicit"],kp=["noPresentational"],Op=["precision","format","inGamut"],Mp=["space"],Ip=["algorithm"],Pp=["method"],Np=["maxDeltaE","deltaEMethod","steps","maxSteps"],Lp=["node"],Bp=["environmentData"],qp=["environmentData"],jp=["environmentData"],zp=["environmentData"],Vp=["environmentData"];function Hp(C){return ns(C)||rs(C)||Va(C)||as()}function $p(C,k,j){return(k=os(k))in C?Object.defineProperty(C,k,{value:j,enumerable:!0,configurable:!0,writable:!0}):C[k]=j,C}function Up(C,k,j){if(gi())return Reflect.construct.apply(null,arguments);var J=[null];J.push.apply(J,k);var Te=new(C.bind.apply(C,J));return Te}function vi(C,k,j){return k=za(k),Gp(C,gi()?Reflect.construct(k,j||[],za(C).constructor):k.apply(C,j))}function Gp(C,k){if(k&&(O(k)=="object"||typeof k=="function"))return k;if(k!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Wp(C)}function Wp(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}function gi(){try{var C=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gi=function(){return!!C})()}function za(C){return za=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(k){return k.__proto__||Object.getPrototypeOf(k)},za(C)}function bi(C,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function");C.prototype=Object.create(k&&k.prototype,{constructor:{value:C,writable:!0,configurable:!0}}),Object.defineProperty(C,"prototype",{writable:!1}),k&&yi(C,k)}function yi(C,k){return yi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(j,J){return j.__proto__=J,j},yi(C,k)}function Xt(C,k,j){ts(C,k),k.set(C,j)}function es(C,k){ts(C,k),k.add(C)}function ts(C,k){if(k.has(C))throw new TypeError("Cannot initialize the same private elements twice on an object")}function wt(C,k){return C.get(Tr(C,k))}function at(C,k,j){return C.set(Tr(C,k),j),j}function Tr(C,k,j){if(typeof C=="function"?C===k:C.has(k))return arguments.length<3?k:j;throw new TypeError("Private element is not present on this object")}function qe(C,k){if(C==null)return{};var j,J,Te=Yp(C,k);if(Object.getOwnPropertySymbols){var Pe=Object.getOwnPropertySymbols(C);for(J=0;J
=C.length?{done:!0}:{done:!1,value:C[J++]}},e:function(tt){throw tt},f:Te}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
-In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Pe,Ke=!0,pt=!1;return{s:function(){j=j.call(C)},n:function(){var tt=j.next();return Ke=tt.done,tt},e:function(tt){pt=!0,Pe=tt},f:function(){try{Ke||j.return==null||j.return()}finally{if(pt)throw Pe}}}}function Va(C,k){if(C){if(typeof C=="string")return wi(C,k);var j={}.toString.call(C).slice(8,-1);return j==="Object"&&C.constructor&&(j=C.constructor.name),j==="Map"||j==="Set"?Array.from(C):j==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(j)?wi(C,k):void 0}}function wi(C,k){(k==null||k>C.length)&&(k=C.length);for(var j=0,J=Array(k);j0?1:-1}}),cm=y(function(e,t){t.exports=sm()()?Math.sign:lm()}),dm=y(function(e,t){var r=cm(),a=Math.abs,n=Math.floor;t.exports=function(i){return isNaN(i)?0:(i=Number(i),i===0||!isFinite(i)?i:r(i)*n(a(i)))}}),dr=y(function(e,t){var r=dm(),a=Math.max;t.exports=function(n){return a(0,r(n))}}),ls=y(function(e,t){var r=dr();t.exports=function(a,n,i){var o;return isNaN(a)?(o=n,o>=0?i&&o?o-1:o:1):a===!1?!1:r(a)}}),Zt=y(function(e,t){t.exports=function(r){if(typeof r!="function")throw new TypeError(r+" is not a function");return r}}),Rr=y(function(e,t){var r=cr();t.exports=function(a){if(!r(a))throw new TypeError("Cannot use null or undefined");return a}}),fm=y(function(e,t){var r=Zt(),a=Rr(),n=Function.prototype.bind,i=Function.prototype.call,o=Object.keys,u=Object.prototype.propertyIsEnumerable;t.exports=function(s,l){return function(c,d){var f,p=arguments[2],m=arguments[3];return c=Object(a(c)),r(d),f=o(c),m&&f.sort(typeof m=="function"?n.call(m,c):void 0),typeof s!="function"&&(s=f[s]),i.call(s,f,function(h,v){return u.call(c,h)?i.call(d,p,c[h],h,c,v):l})}}}),Ha=y(function(e,t){t.exports=fm()("forEach")}),fr=y(function(){}),pm=y(function(e,t){t.exports=function(){var r=Object.assign,a;return typeof r!="function"?!1:(a={foo:"raz"},r(a,{bar:"dwa"},{trzy:"trzy"}),a.foo+a.bar+a.trzy==="razdwatrzy")}}),mm=y(function(e,t){t.exports=function(){try{return Object.keys("primitive"),!0}catch{return!1}}}),hm=y(function(e,t){var r=cr(),a=Object.keys;t.exports=function(n){return a(r(n)?Object(n):n)}}),vm=y(function(e,t){t.exports=mm()()?Object.keys:hm()}),gm=y(function(e,t){var r=vm(),a=Rr(),n=Math.max;t.exports=function(i,o){var u,s,l=n(arguments.length,2),c;for(i=Object(a(i)),c=function(f){try{i[f]=o[f]}catch(p){u||(u=p)}},s=1;s-1}}),Cm=y(function(e,t){t.exports=Em()()?String.prototype.contains:Am()}),pr=y(function(e,t){var r=ps(),a=xm(),n=cs(),i=ss(),o=Cm(),u=t.exports=function(s,l){var c,d,f,p,m;return arguments.length<2||typeof s!="string"?(p=l,l=s,s=null):p=arguments[2],r(s)?(c=o.call(s,"c"),d=o.call(s,"e"),f=o.call(s,"w")):(c=f=!0,d=!1),m={value:l,configurable:c,enumerable:d,writable:f},p?n(i(p),m):m};u.gs=function(s,l,c){var d,f,p,m;return typeof s!="string"?(p=c,c=l,l=s,s=null):p=arguments[3],r(l)?a(l)?r(c)?a(c)||(p=c,c=void 0):c=void 0:(p=l,l=c=void 0):l=void 0,r(s)?(d=o.call(s,"c"),f=o.call(s,"e")):(d=!0,f=!1),m={get:l,set:c,configurable:d,enumerable:f},p?n(i(p),m):m}}),Fm=y(function(e,t){var r=pr(),a=Zt(),n=Function.prototype.apply,i=Function.prototype.call,o=Object.create,u=Object.defineProperty,s=Object.defineProperties,l=Object.prototype.hasOwnProperty,c={configurable:!0,enumerable:!1,writable:!0},d,f,p,m,h,v,g;d=function(D,w){var _;return a(w),l.call(this,"__ee__")?_=this.__ee__:(_=c.value=o(null),u(this,"__ee__",c),c.value=null),_[D]?O(_[D])==="object"?_[D].push(w):_[D]=[_[D],w]:_[D]=w,this},f=function(D,w){var _,F;return a(w),F=this,d.call(this,D,_=function(){p.call(F,D,_),n.call(w,this,arguments)}),_.__eeOnceListener__=w,this},p=function(D,w){var _,F,R,I;if(a(w),!l.call(this,"__ee__"))return this;if(_=this.__ee__,!_[D])return this;if(F=_[D],O(F)==="object")for(I=0;R=F[I];++I)(R===w||R.__eeOnceListener__===w)&&(F.length===2?_[D]=F[I?0:1]:F.splice(I,1));else(F===w||F.__eeOnceListener__===w)&&delete _[D];return this},m=function(D){var w,_,F,R,I;if(l.call(this,"__ee__")&&(R=this.__ee__[D],!!R))if(O(R)==="object"){for(_=arguments.length,I=new Array(_-1),w=1;w<_;++w)I[w-1]=arguments[w];for(R=R.slice(),w=0;F=R[w];++w)n.call(F,this,I)}else switch(arguments.length){case 1:i.call(R,this);break;case 2:i.call(R,this,arguments[1]);break;case 3:i.call(R,this,arguments[1],arguments[2]);break;default:for(_=arguments.length,I=new Array(_-1),w=1;w<_;++w)I[w-1]=arguments[w];n.call(R,this,I)}},h={on:d,once:f,off:p,emit:m},v={on:r(d),once:r(f),off:r(p),emit:r(m)},g=s({},v),t.exports=e=function(D){return D==null?o(g):s(Object(D),v)},e.methods=h}),Tm=y(function(e,t){t.exports=function(){var r=Array.from,a,n;return typeof r!="function"?!1:(a=["raz","dwa"],n=r(a),!!(n&&n!==a&&n[1]==="dwa"))}}),Rm=y(function(e,t){t.exports=function(){return(typeof globalThis>"u"?"undefined":O(globalThis))!=="object"||!globalThis?!1:globalThis.Array===Array}}),Sm=y(function(e,t){var r=function(){if((typeof self>"u"?"undefined":O(self))==="object"&&self)return self;if((typeof E>"u"?"undefined":O(E))==="object"&&E)return E;throw new Error("Unable to resolve global `this`")};t.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch{return r()}try{return __global__||r()}finally{delete Object.prototype.__global__}}()}),$a=y(function(e,t){t.exports=Rm()()?globalThis:Sm()}),km=y(function(e,t){var r=$a(),a={object:!0,symbol:!0};t.exports=function(){var n=r.Symbol,i;if(typeof n!="function")return!1;i=n("test symbol");try{String(i)}catch{return!1}return!(!a[O(n.iterator)]||!a[O(n.toPrimitive)]||!a[O(n.toStringTag)])}}),Om=y(function(e,t){t.exports=function(r){return r?O(r)==="symbol"?!0:!r.constructor||r.constructor.name!=="Symbol"?!1:r[r.constructor.toStringTag]==="Symbol":!1}}),ms=y(function(e,t){var r=Om();t.exports=function(a){if(!r(a))throw new TypeError(a+" is not a symbol");return a}}),Mm=y(function(e,t){var r=pr(),a=Object.create,n=Object.defineProperty,i=Object.prototype,o=a(null);t.exports=function(u){for(var s=0,l,c;o[u+(s||"")];)++s;return u+=s||"",o[u]=!0,l="@@"+u,n(i,l,r.gs(null,function(d){c||(c=!0,n(this,l,r(d)),c=!1)})),l}}),Im=y(function(e,t){var r=pr(),a=$a().Symbol;t.exports=function(n){return Object.defineProperties(n,{hasInstance:r("",a&&a.hasInstance||n("hasInstance")),isConcatSpreadable:r("",a&&a.isConcatSpreadable||n("isConcatSpreadable")),iterator:r("",a&&a.iterator||n("iterator")),match:r("",a&&a.match||n("match")),replace:r("",a&&a.replace||n("replace")),search:r("",a&&a.search||n("search")),species:r("",a&&a.species||n("species")),split:r("",a&&a.split||n("split")),toPrimitive:r("",a&&a.toPrimitive||n("toPrimitive")),toStringTag:r("",a&&a.toStringTag||n("toStringTag")),unscopables:r("",a&&a.unscopables||n("unscopables"))})}}),Pm=y(function(e,t){var r=pr(),a=ms(),n=Object.create(null);t.exports=function(i){return Object.defineProperties(i,{for:r(function(o){return n[o]?n[o]:n[o]=i(String(o))}),keyFor:r(function(o){var u;a(o);for(u in n)if(n[u]===o)return u})})}}),Nm=y(function(e,t){var r=pr(),a=ms(),n=$a().Symbol,i=Mm(),o=Im(),u=Pm(),s=Object.create,l=Object.defineProperties,c=Object.defineProperty,d,f,p;if(typeof n=="function")try{String(n()),p=!0}catch{}else n=null;f=function(h){if(this instanceof f)throw new TypeError("Symbol is not a constructor");return d(h)},t.exports=d=function m(h){var v;if(this instanceof m)throw new TypeError("Symbol is not a constructor");return p?n(h):(v=s(f.prototype),h=h===void 0?"":String(h),l(v,{__description__:r("",h),__name__:r("",i(h))}))},o(d),u(d),l(f.prototype,{constructor:r(d),toString:r("",function(){return this.__name__})}),l(d.prototype,{toString:r(function(){return"Symbol ("+a(this).__description__+")"}),valueOf:r(function(){return a(this)})}),c(d.prototype,d.toPrimitive,r("",function(){var m=a(this);return O(m)==="symbol"?m:m.toString()})),c(d.prototype,d.toStringTag,r("c","Symbol")),c(f.prototype,d.toStringTag,r("c",d.prototype[d.toStringTag])),c(f.prototype,d.toPrimitive,r("c",d.prototype[d.toPrimitive]))}),Lm=y(function(e,t){t.exports=km()()?$a().Symbol:Nm()}),Bm=y(function(e,t){var r=Object.prototype.toString,a=r.call(function(){return arguments}());t.exports=function(n){return r.call(n)===a}}),qm=y(function(e,t){var r=Object.prototype.toString,a=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);t.exports=function(n){return typeof n=="function"&&a(r.call(n))}}),jm=y(function(e,t){var r=Object.prototype.toString,a=r.call("");t.exports=function(n){return typeof n=="string"||n&&O(n)==="object"&&(n instanceof String||r.call(n)===a)||!1}}),zm=y(function(e,t){var r=Lm().iterator,a=Bm(),n=qm(),i=dr(),o=Zt(),u=Rr(),s=cr(),l=jm(),c=Array.isArray,d=Function.prototype.call,f={configurable:!0,enumerable:!0,writable:!0,value:null},p=Object.defineProperty;t.exports=function(m){var h=arguments[1],v=arguments[2],g,b,D,w,_,F,R,I,V,S;if(m=Object(u(m)),s(h)&&o(h),!this||this===Array||!n(this)){if(!h){if(a(m))return _=m.length,_!==1?Array.apply(null,m):(w=new Array(1),w[0]=m[0],w);if(c(m)){for(w=new Array(_=m.length),b=0;b<_;++b)w[b]=m[b];return w}}w=[]}else g=this;if(!c(m)){if((V=m[r])!==void 0){for(R=o(V).call(m),g&&(w=new g),I=R.next(),b=0;!I.done;)S=h?d.call(h,v,I.value,b):I.value,g?(f.value=S,p(w,b,f)):w[b]=S,I=R.next(),++b;_=b}else if(l(m)){for(_=m.length,g&&(w=new g),b=0,D=0;b<_;++b)S=m[b],b+1<_&&(F=S.charCodeAt(0),F>=55296&&F<=56319&&(S+=m[++b])),S=h?d.call(h,v,S,D):S,g?(f.value=S,p(w,D,f)):w[D]=S,++D;_=D}}if(_===void 0)for(_=i(m.length),g&&(w=new g(_)),b=0;b<_;++b)S=h?d.call(h,v,m[b],b):m[b],g?(f.value=S,p(w,b,f)):w[b]=S;return g&&(f.value=null,w.length=_),w}}),Di=y(function(e,t){t.exports=Tm()()?Array.from:zm()}),Vm=y(function(e,t){var r=Di(),a=Array.isArray;t.exports=function(n){return a(n)?n:r(n)}}),Hm=y(function(e,t){var r=Vm(),a=cr(),n=Zt(),i=Array.prototype.slice,o;o=function(s){return this.map(function(l,c){return l?l(s[c]):s[c]}).concat(i.call(s,this.length))},t.exports=function(u){return u=r(u),u.forEach(function(s){a(s)&&n(s)}),o.bind(u)}}),$m=y(function(e,t){var r=Zt();t.exports=function(a){var n;return typeof a=="function"?{set:a,get:a}:(n={get:r(a.get)},a.set!==void 0?(n.set=r(a.set),a.delete&&(n.delete=r(a.delete)),a.clear&&(n.clear=r(a.clear)),n):(n.set=n.get,n))}}),Um=y(function(e,t){var r=ym(),a=fs(),n=pr(),i=Fm().methods,o=Hm(),u=$m(),s=Function.prototype.apply,l=Function.prototype.call,c=Object.create,d=Object.defineProperties,f=i.on,p=i.emit;t.exports=function(m,h,v){var g=c(null),b,D,w,_,F,R,I,V,S,N,z,H,Q,ie,Y;return h!==!1?D=h:isNaN(m.length)?D=1:D=m.length,v.normalizer&&(N=u(v.normalizer),w=N.get,_=N.set,F=N.delete,R=N.clear),v.resolvers!=null&&(Y=o(v.resolvers)),w?ie=a(function(te){var B,Z,A=arguments;if(Y&&(A=Y(A)),B=w(A),B!==null&&hasOwnProperty.call(g,B))return z&&b.emit("get",B,A,this),g[B];if(A.length===1?Z=l.call(m,this,A[0]):Z=s.call(m,this,A),B===null){if(B=w(A),B!==null)throw r("Circular invocation","CIRCULAR_INVOCATION");B=_(A)}else if(hasOwnProperty.call(g,B))throw r("Circular invocation","CIRCULAR_INVOCATION");return g[B]=Z,H&&b.emit("set",B,null,Z),Z},D):h===0?ie=function(){var B;if(hasOwnProperty.call(g,"data"))return z&&b.emit("get","data",arguments,this),g.data;if(arguments.length?B=s.call(m,this,arguments):B=l.call(m,this),hasOwnProperty.call(g,"data"))throw r("Circular invocation","CIRCULAR_INVOCATION");return g.data=B,H&&b.emit("set","data",null,B),B}:ie=function(B){var Z,A=arguments,U;if(Y&&(A=Y(arguments)),U=String(A[0]),hasOwnProperty.call(g,U))return z&&b.emit("get",U,A,this),g[U];if(A.length===1?Z=l.call(m,this,A[0]):Z=s.call(m,this,A),hasOwnProperty.call(g,U))throw r("Circular invocation","CIRCULAR_INVOCATION");return g[U]=Z,H&&b.emit("set",U,null,Z),Z},b={original:m,memoized:ie,profileName:v.profileName,get:function(B){return Y&&(B=Y(B)),w?w(B):String(B[0])},has:function(B){return hasOwnProperty.call(g,B)},delete:function(B){var Z;hasOwnProperty.call(g,B)&&(F&&F(B),Z=g[B],delete g[B],Q&&b.emit("delete",B,Z))},clear:function(){var B=g;R&&R(),g=c(null),b.emit("clear",B)},on:function(B,Z){return B==="get"?z=!0:B==="set"?H=!0:B==="delete"&&(Q=!0),f.call(this,B,Z)},emit:p,updateEnv:function(){m=b.original}},w?I=a(function(te){var B,Z=arguments;Y&&(Z=Y(Z)),B=w(Z),B!==null&&b.delete(B)},D):h===0?I=function(){return b.delete("data")}:I=function(B){return Y&&(B=Y(arguments)[0]),b.delete(B)},V=a(function(){var te,B=arguments;return h===0?g.data:(Y&&(B=Y(B)),w?te=w(B):te=String(B[0]),g[te])}),S=a(function(){var te,B=arguments;return h===0?b.has("data"):(Y&&(B=Y(B)),w?te=w(B):te=String(B[0]),te===null?!1:b.has(te))}),d(ie,{__memoized__:n(!0),delete:n(I),clear:n(b.clear),_get:n(V),_has:n(S)}),b}}),Gm=y(function(e,t){var r=Zt(),a=Ha(),n=fr(),i=Um(),o=ls();t.exports=function u(s){var l,c,d;if(r(s),l=Object(arguments[1]),l.async&&l.promise)throw new Error("Options 'async' and 'promise' cannot be used together");return hasOwnProperty.call(s,"__memoized__")&&!l.force?s:(c=o(l.length,s.length,l.async&&n.async),d=i(s,c,l),a(n,function(f,p){l[p]&&f(l[p],d,l)}),u.__profiler__&&u.__profiler__(d),d.updateEnv(),d.memoized)}}),Wm=y(function(e,t){t.exports=function(r){var a,n,i=r.length;if(!i)return"";for(a=String(r[n=0]);--i;)a+=""+r[++n];return a}}),Ym=y(function(e,t){t.exports=function(r){return r?function(a){for(var n=String(a[0]),i=0,o=r;--o;)n+=""+a[++i];return n}:function(){return""}}}),Km=y(function(e,t){t.exports=function(){var r=Number.isNaN;return typeof r!="function"?!1:!r({})&&r(NaN)&&!r(34)}}),Xm=y(function(e,t){t.exports=function(r){return r!==r}}),Zm=y(function(e,t){t.exports=Km()()?Number.isNaN:Xm()}),_i=y(function(e,t){var r=Zm(),a=dr(),n=Rr(),i=Array.prototype.indexOf,o=Object.prototype.hasOwnProperty,u=Math.abs,s=Math.floor;t.exports=function(l){var c,d,f,p;if(!r(l))return i.apply(this,arguments);for(d=a(n(this).length),f=arguments[1],isNaN(f)?f=0:f>=0?f=s(f):f=a(this.length)-s(u(f)),c=f;c"u"?"undefined":O(process))==="object"&&process&&typeof process.nextTick=="function")return process.nextTick;if(typeof queueMicrotask=="function")return function(n){queueMicrotask(r(n))};if((typeof L>"u"?"undefined":O(L))==="object"&&L){if(typeof MutationObserver=="function")return a(MutationObserver);if(typeof WebKitMutationObserver=="function")return a(WebKitMutationObserver)}return typeof setImmediate=="function"?function(n){setImmediate(r(n))}:typeof setTimeout=="function"||(typeof setTimeout>"u"?"undefined":O(setTimeout))==="object"?function(n){setTimeout(r(n),0)}:null}()}),th=y(function(){var e=Di(),t=hs(),r=ds(),a=fs(),n=xi(),i=Array.prototype.slice,o=Function.prototype.apply,u=Object.create;fr().async=function(s,l){var c=u(null),d=u(null),f=l.memoized,p=l.original,m,h,v;l.memoized=a(function(g){var b=arguments,D=b[b.length-1];return typeof D=="function"&&(m=D,b=i.call(b,0,-1)),f.apply(h=this,v=b)},f);try{r(l.memoized,f)}catch{}l.on("get",function(g){var b,D,w;if(m){if(c[g]){typeof c[g]=="function"?c[g]=[c[g],m]:c[g].push(m),m=null;return}b=m,D=h,w=v,m=h=v=null,n(function(){var _;hasOwnProperty.call(d,g)?(_=d[g],l.emit("getasync",g,w,D),o.call(b,_.context,_.args)):(m=b,h=D,v=w,f.apply(D,w))})}}),l.original=function(){var g,b,D,w;return m?(g=e(arguments),b=function _(F){var R,I,V=_.id;if(V==null){n(o.bind(_,this,arguments));return}if(delete _.id,R=c[V],delete c[V],!!R)return I=e(arguments),l.has(V)&&(F?l.delete(V):(d[V]={context:this,args:I},l.emit("setasync",V,typeof R=="function"?1:R.length))),typeof R=="function"?w=o.call(R,this,I):R.forEach(function(S){w=o.call(S,this,I)},this),w},D=m,m=h=v=null,g.push(b),w=o.call(p,this,g),b.cb=D,m=b,w):o.call(p,this,arguments)},l.on("set",function(g){if(!m){l.delete(g);return}c[g]?typeof c[g]=="function"?c[g]=[c[g],m.cb]:c[g].push(m.cb):c[g]=m.cb,delete m.cb,m.id=g,m=null}),l.on("delete",function(g){var b;hasOwnProperty.call(c,g)||d[g]&&(b=d[g],delete d[g],l.emit("deleteasync",g,i.call(b.args,1)))}),l.on("clear",function(){var g=d;d=u(null),l.emit("clearasync",t(g,function(b){return i.call(b.args,1)}))})}}),rh=y(function(e,t){var r=Array.prototype.forEach,a=Object.create;t.exports=function(n){var i=a(null);return r.call(arguments,function(o){i[o]=!0}),i}}),vs=y(function(e,t){t.exports=function(r){return typeof r=="function"}}),ah=y(function(e,t){var r=vs();t.exports=function(a){try{return a&&r(a.toString)?a.toString():String(a)}catch{throw new TypeError("Passed argument cannot be stringifed")}}}),nh=y(function(e,t){var r=Rr(),a=ah();t.exports=function(n){return a(r(n))}}),ih=y(function(e,t){var r=vs();t.exports=function(a){try{return a&&r(a.toString)?a.toString():String(a)}catch{return""}}}),oh=y(function(e,t){var r=ih(),a=/[\n\r\u2028\u2029]/g;t.exports=function(n){var i=r(n);return i.length>100&&(i=i.slice(0,99)+"…"),i=i.replace(a,function(o){return JSON.stringify(o).slice(1,-1)}),i}}),gs=y(function(e,t){t.exports=r,t.exports.default=r;function r(a){return!!a&&(O(a)==="object"||typeof a=="function")&&typeof a.then=="function"}}),uh=y(function(){var e=hs(),t=rh(),r=nh(),a=oh(),n=gs(),i=xi(),o=Object.create,u=t("then","then:finally","done","done:finally");fr().promise=function(s,l){var c=o(null),d=o(null),f=o(null);if(s===!0)s=null;else if(s=r(s),!u[s])throw new TypeError("'"+a(s)+"' is not valid promise mode");l.on("set",function(p,m,h){var v=!1;if(!n(h)){d[p]=h,l.emit("setasync",p,1);return}c[p]=1,f[p]=h;var g=function(F){var R=c[p];if(v)throw new Error(`Memoizee error: Detected unordered then|done & finally resolution, which in turn makes proper detection of success/failure impossible (when in 'done:finally' mode)
-Consider to rely on 'then' or 'done' mode instead.`);R&&(delete c[p],d[p]=F,l.emit("setasync",p,R))},b=function(){v=!0,c[p]&&(delete c[p],delete f[p],l.delete(p))},D=s;if(D||(D="then"),D==="then"){var w=function(){i(b)};h=h.then(function(_){i(g.bind(this,_))},w),typeof h.finally=="function"&&h.finally(w)}else if(D==="done"){if(typeof h.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done' mode");h.done(g,b)}else if(D==="done:finally"){if(typeof h.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done:finally' mode");if(typeof h.finally!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'finally' in 'done:finally' mode");h.done(g),h.finally(b)}}),l.on("get",function(p,m,h){var v;if(c[p]){++c[p];return}v=f[p];var g=function(){l.emit("getasync",p,m,h)};n(v)?typeof v.done=="function"?v.done(g):v.then(function(){i(g)}):g()}),l.on("delete",function(p){if(delete f[p],c[p]){delete c[p];return}if(hasOwnProperty.call(d,p)){var m=d[p];delete d[p],l.emit("deleteasync",p,[m])}}),l.on("clear",function(){var p=d;d=o(null),c=o(null),f=o(null),l.emit("clearasync",e(p,function(m){return[m]}))})}}),sh=y(function(){var e=Zt(),t=Ha(),r=fr(),a=Function.prototype.apply;r.dispose=function(n,i,o){var u;if(e(n),o.async&&r.async||o.promise&&r.promise){i.on("deleteasync",u=function(l,c){a.call(n,null,c)}),i.on("clearasync",function(s){t(s,function(l,c){u(c,l)})});return}i.on("delete",u=function(l,c){n(c)}),i.on("clear",function(s){t(s,function(l,c){u(c,l)})})}}),lh=y(function(e,t){t.exports=2147483647}),ch=y(function(e,t){var r=dr(),a=lh();t.exports=function(n){if(n=r(n),n>a)throw new TypeError(n+" exceeds maximum possible timeout");return n}}),dh=y(function(){var e=Di(),t=Ha(),r=xi(),a=gs(),n=ch(),i=fr(),o=Function.prototype,u=Math.max,s=Math.min,l=Object.create;i.maxAge=function(c,d,f){var p,m,h,v;c=n(c),c&&(p=l(null),m=f.async&&i.async||f.promise&&i.promise?"async":"",d.on("set"+m,function(g){p[g]=setTimeout(function(){d.delete(g)},c),typeof p[g].unref=="function"&&p[g].unref(),v&&(v[g]&&v[g]!=="nextTick"&&clearTimeout(v[g]),v[g]=setTimeout(function(){delete v[g]},h),typeof v[g].unref=="function"&&v[g].unref())}),d.on("delete"+m,function(g){clearTimeout(p[g]),delete p[g],v&&(v[g]!=="nextTick"&&clearTimeout(v[g]),delete v[g])}),f.preFetch&&(f.preFetch===!0||isNaN(f.preFetch)?h=.333:h=u(s(Number(f.preFetch),1),0),h&&(v={},h=(1-h)*c,d.on("get"+m,function(g,b,D){v[g]||(v[g]="nextTick",r(function(){var w;v[g]==="nextTick"&&(delete v[g],d.delete(g),f.async&&(b=e(b),b.push(o)),w=d.memoized.apply(D,b),f.promise&&a(w)&&(typeof w.done=="function"?w.done(o,o):w.then(o,o)))}))}))),d.on("clear"+m,function(){t(p,function(g){clearTimeout(g)}),p={},v&&(t(v,function(g){g!=="nextTick"&&clearTimeout(g)}),v={})}))}}),fh=y(function(e,t){var r=dr(),a=Object.create,n=Object.prototype.hasOwnProperty;t.exports=function(i){var o=0,u=1,s=a(null),l=a(null),c=0,d;return i=r(i),{hit:function(p){var m=l[p],h=++c;if(s[h]=p,l[p]=h,!m)return++o,o<=i?void 0:(p=s[u],d(p),p);if(delete s[m],u===m)for(;!n.call(s,++u););},delete:d=function(p){var m=l[p];if(m&&(delete s[m],delete l[p],--o,u===m)){if(!o){c=0,u=1;return}for(;!n.call(s,++u););}},clear:function(){o=0,u=1,s=a(null),l=a(null),c=0}}}}),ph=y(function(){var e=dr(),t=fh(),r=fr();r.max=function(a,n,i){var o,u,s;a=e(a),a&&(u=t(a),o=i.async&&r.async||i.promise&&r.promise?"async":"",n.on("set"+o,s=function(c){c=u.hit(c),c!==void 0&&n.delete(c)}),n.on("get"+o,s),n.on("delete"+o,u.delete),n.on("clear"+o,u.clear))}}),mh=y(function(){var e=pr(),t=fr(),r=Object.create,a=Object.defineProperties;t.refCounter=function(n,i,o){var u,s;u=r(null),s=o.async&&t.async||o.promise&&t.promise?"async":"",i.on("set"+s,function(l,c){u[l]=c||1}),i.on("get"+s,function(l){++u[l]}),i.on("delete"+s,function(l){delete u[l]}),i.on("clear"+s,function(){u={}}),a(i.memoized,{deleteRef:e(function(){var l=i.get(arguments);return l===null||!u[l]?null:--u[l]?!1:(i.delete(l),!0)}),getRefCount:e(function(){var l=i.get(arguments);return l===null||!u[l]?0:u[l]})})}}),bs=y(function(e,t){var r=ss(),a=ls(),n=Gm();t.exports=function(i){var o=r(arguments[1]),u;return o.normalizer||(u=o.length=a(o.length,i.length,o.async),u!==0&&(o.primitive?u===!1?o.normalizer=Wm():u>1&&(o.normalizer=Ym()(u)):u===!1?o.normalizer=Jm()():u===1?o.normalizer=Qm()():o.normalizer=eh()(u))),o.async&&th(),o.promise&&uh(),o.dispose&&sh(),o.maxAge&&dh(),o.max&&ph(),o.refCounter&&mh(),n(i,o)}}),ys=y(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(o){return o>="a"&&o<="z"||o>="A"&&o<="Z"||o==="-"||o==="_"}e.isIdentStart=t;function r(o){return o>="a"&&o<="z"||o>="A"&&o<="Z"||o>="0"&&o<="9"||o==="-"||o==="_"}e.isIdent=r;function a(o){return o>="a"&&o<="f"||o>="A"&&o<="F"||o>="0"&&o<="9"}e.isHex=a;function n(o){for(var u=o.length,s="",l=0;l="A"&&c<="Z"||c>="a"&&c<="z"||l!==0&&c>="0"&&c<="9")s+=c;else{var d=c.charCodeAt(0);if((d&63488)===55296){var f=o.charCodeAt(l++);if((d&64512)!==55296||(f&64512)!==56320)throw Error("UCS-2(decode): illegal sequence");d=((d&1023)<<10)+(f&1023)+65536}s+="\\"+d.toString(16)+" "}l++}return s}e.escapeIdentifier=n;function i(o){for(var u=o.length,s="",l=0,c;l":!0,"?":!0,"@":!0,"[":!0,"\\":!0,"]":!0,"^":!0,"`":!0,"{":!0,"|":!0,"}":!0,"~":!0},e.strReplacementsRev={"\n":"\\n","\r":"\\r"," ":"\\t","\f":"\\f","\v":"\\v"},e.singleQuoteEscapeChars={n:`
-`,r:"\r",t:" ",f:"\f","\\":"\\","'":"'"},e.doubleQuotesEscapeChars={n:`
-`,r:"\r",t:" ",f:"\f","\\":"\\",'"':'"'}}),hh=y(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=ys();function r(a,n,i,o,u,s){var l=a.length,c="";function d(b,D){var w="";for(n++,c=a.charAt(n);n=l)throw Error("Expected symbol but end of file reached.");if(c=a.charAt(n),t.identSpecialChars[c])b+=c;else if(t.isHex(c)){var D=c;for(n++,c=a.charAt(n);t.isHex(c);)D+=c,n++,c=a.charAt(n);c===" "&&(n++,c=a.charAt(n)),b+=String.fromCharCode(parseInt(D,16));continue}else b+=c}else return b;n++,c=a.charAt(n)}return b}function p(){c=a.charAt(n);for(var b=!1;c===" "||c===" "||c===`
-`||c==="\r"||c==="\f";)b=!0,n++,c=a.charAt(n);return b}function m(){var b=h();if(n=l||c===","||c===")"));)if(u[c]){var _=c;if(n++,p(),D=g(),!D)throw Error('Rule expected after "'+_+'".');D.nestingOperator=_}else D=g(),D&&(D.nestingOperator=null);return b}function g(){for(var b=null;n=l)throw Error('Expected "=" but end of file reached.');if(c!=="=")throw Error('Expected "=" but "'+c+'" found.');D.operator=w+"=",n++,p();var _="";if(D.valueType="string",c==='"')_=d('"',t.doubleQuotesEscapeChars);else if(c==="'")_=d("'",t.singleQuoteEscapeChars);else if(s&&c==="$")n++,_=f(),D.valueType="substitute";else{for(;n=l)throw Error('Expected "]" but end of file reached.');if(c!=="]")throw Error('Expected "]" but "'+c+'" found.');n++,D.value=_}b=b||{},(b.attrs=b.attrs||[]).push(D)}else if(c===":"){n++;var F=f(),R={name:F};if(c==="("){n++;var I="";if(p(),i[F]==="selector")R.valueType="selector",I=h();else{if(R.valueType=i[F]||"string",c==='"')I=d('"',t.doubleQuotesEscapeChars);else if(c==="'")I=d("'",t.singleQuoteEscapeChars);else if(s&&c==="$")n++,I=f(),R.valueType="substitute";else{for(;n=l)throw Error('Expected ")" but end of file reached.');if(c!==")")throw Error('Expected ")" but "'+c+'" found.');n++,R.value=I}b=b||{},(b.pseudos=b.pseudos||[]).push(R)}else break;return b}return m()}e.parseCssSelector=r}),vh=y(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=ys();function r(a){var n="";switch(a.type){case"ruleSet":for(var i=a.rule,o=[];i;)i.nestingOperator&&o.push(i.nestingOperator),o.push(r(i)),i=i.rule;n=o.join(" ");break;case"selectors":n=a.selectors.map(r).join(", ");break;case"rule":a.tagName&&(a.tagName==="*"?n="*":n=t.escapeIdentifier(a.tagName)),a.id&&(n+="#"+t.escapeIdentifier(a.id)),a.classNames&&(n+=a.classNames.map(function(u){return"."+t.escapeIdentifier(u)}).join("")),a.attrs&&(n+=a.attrs.map(function(u){return"operator"in u?u.valueType==="substitute"?"["+t.escapeIdentifier(u.name)+u.operator+"$"+u.value+"]":"["+t.escapeIdentifier(u.name)+u.operator+t.escapeStr(u.value)+"]":"["+t.escapeIdentifier(u.name)+"]"}).join("")),a.pseudos&&(n+=a.pseudos.map(function(u){return u.valueType?u.valueType==="selector"?":"+t.escapeIdentifier(u.name)+"("+r(u.value)+")":u.valueType==="substitute"?":"+t.escapeIdentifier(u.name)+"($"+u.value+")":u.valueType==="numeric"?":"+t.escapeIdentifier(u.name)+"("+u.value+")":":"+t.escapeIdentifier(u.name)+"("+t.escapeIdentifier(u.value)+")":":"+t.escapeIdentifier(u.name)}).join(""));break;default:throw Error('Unknown entity type: "'+a.type+'".')}return n}e.renderEntity=r}),ws=y(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=hh(),r=vh(),a=function(){function n(){this.pseudos={},this.attrEqualityMods={},this.ruleNestingOperators={},this.substitutesEnabled=!1}return n.prototype.registerSelectorPseudos=function(){for(var i=[],o=0;o"u"&&typeof process<"u"&&{}.toString.call(process)==="[object process]",v=typeof Uint8ClampedArray<"u"&&typeof importScripts<"u"&&typeof MessageChannel<"u";function g(){return function(){return process.nextTick(R)}}function b(){return typeof u<"u"?function(){u(R)}:_()}function D(){var T=0,M=new m(R),q=L.createTextNode("");return M.observe(q,{characterData:!0}),function(){q.data=T=++T%2}}function w(){var T=new MessageChannel;return T.port1.onmessage=R,function(){return T.port2.postMessage(0)}}function _(){var T=setTimeout;return function(){return T(R,1)}}var F=new Array(1e3);function R(){for(var T=0;T>0},ToUint32:function(G){return G>>>0}}}(),a=Math.LN2,n=Math.abs,i=Math.floor,o=Math.log,u=Math.min,s=Math.pow,l=Math.round;function c(A,U,P){return AP?P:A}var d=Object.getOwnPropertyNames||function(A){if(A!==Object(A))throw new TypeError("Object.getOwnPropertyNames called on non-object");var U=[],P;for(P in A)r.HasOwnProperty(A,P)&&U.push(P);return U},f;Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{}),!0}catch{return!1}}()?f=Object.defineProperty:f=function(U,P,G){if(!U===Object(U))throw new TypeError("Object.defineProperty called on non-object");return r.HasProperty(G,"get")&&Object.prototype.__defineGetter__&&Object.prototype.__defineGetter__.call(U,P,G.get),r.HasProperty(G,"set")&&Object.prototype.__defineSetter__&&Object.prototype.__defineSetter__.call(U,P,G.set),r.HasProperty(G,"value")&&(U[P]=G.value),U};function p(A){if(d&&f){var U=d(A),P;for(P=0;Pt)throw new RangeError("Array too large for polyfill");function U(G){f(A,G,{get:function(){return A._getter(G)},set:function(W){A._setter(G,W)},enumerable:!0,configurable:!1})}var P;for(P=0;P>P}function v(A,U){var P=32-U;return A<>>P}function g(A){return[A&255]}function b(A){return h(A[0],8)}function D(A){return[A&255]}function w(A){return v(A[0],8)}function _(A){return A=l(Number(A)),[A<0?0:A>255?255:A&255]}function F(A){return[A>>8&255,A&255]}function R(A){return h(A[0]<<8|A[1],16)}function I(A){return[A>>8&255,A&255]}function V(A){return v(A[0]<<8|A[1],16)}function S(A){return[A>>24&255,A>>16&255,A>>8&255,A&255]}function N(A){return h(A[0]<<24|A[1]<<16|A[2]<<8|A[3],32)}function z(A){return[A>>24&255,A>>16&255,A>>8&255,A&255]}function H(A){return v(A[0]<<24|A[1]<<16|A[2]<<8|A[3],32)}function Q(A,U,P){var G=(1<.5||Ee%2?Ee+1:Ee}for(A!==A?(W=(1<=s(2,1-G)?(W=u(i(o(A)/a),1023),X=je(A/s(2,W)*s(2,P)),X/s(2,P)>=2&&(W=W+1,X=1),W>G?(W=(1<>1;return G.reverse(),pe=G.join(""),be=(1<0?xe*s(2,Me-be)*(1+je/s(2,P)):je!==0?xe*s(2,-(be-1))*(je/s(2,P)):xe<0?-0:0}function Y(A){return ie(A,11,52)}function te(A){return Q(A,11,52)}function B(A){return ie(A,8,23)}function Z(A){return Q(A,8,23)}(function(){function A(Be){if(Be=r.ToInt32(Be),Be<0)throw new RangeError("ArrayBuffer size is not a small enough positive integer");this.byteLength=Be,this._bytes=[],this._bytes.length=Be;var Ee;for(Ee=0;Eethis.buffer.byteLength)throw new RangeError("byteOffset out of range");if(this.byteOffset%this.BYTES_PER_ELEMENT)throw new RangeError("ArrayBuffer length minus the byteOffset is not a multiple of the element size.");if(arguments.length<3){if(this.byteLength=this.buffer.byteLength-this.byteOffset,this.byteLength%this.BYTES_PER_ELEMENT)throw new RangeError("length of buffer minus byteOffset not a multiple of the element size");this.length=this.byteLength/this.BYTES_PER_ELEMENT}else this.length=r.ToUint32(Qe),this.byteLength=this.length*this.BYTES_PER_ELEMENT;if(this.byteOffset+this.byteLength>this.buffer.byteLength)throw new RangeError("byteOffset and length reference an area beyond the end of the buffer")}else throw new TypeError("Unexpected argument type(s)");this.constructor=Ye,p(this),m(this)},Ye.prototype=new U,Ye.prototype.BYTES_PER_ELEMENT=Be,Ye.prototype._pack=Ee,Ye.prototype._unpack=Xr,Ye.BYTES_PER_ELEMENT=Be,Ye.prototype._getter=function(Ae){if(arguments.length<1)throw new SyntaxError("Not enough arguments");if(Ae=r.ToUint32(Ae),!(Ae>=this.length)){for(var ze=[],Ie=0,Qe=this.byteOffset+Ae*this.BYTES_PER_ELEMENT;Iethis.length)throw new RangeError("Offset plus length of array is out of range");if(q=this.byteOffset+et*this.BYTES_PER_ELEMENT,K=Ie.length*this.BYTES_PER_ELEMENT,Ie.buffer===this.buffer){for(oe=[],ye=0,T=Ie.byteOffset;yethis.length)throw new RangeError("Offset plus length of array is out of range");for(ye=0;yethis.buffer.byteLength)throw new RangeError("byteOffset out of range");if(arguments.length<3?this.byteLength=this.buffer.byteLength-this.byteOffset:this.byteLength=r.ToUint32(pe),this.byteOffset+this.byteLength>this.buffer.byteLength)throw new RangeError("byteOffset and length reference an area beyond the end of the buffer");p(this)}function G(W){return function(X,pe){if(X=r.ToUint32(X),X+W.BYTES_PER_ELEMENT>this.byteLength)throw new RangeError("Array index out of range");X+=this.byteOffset;var be=new e.Uint8Array(this.buffer,X,W.BYTES_PER_ELEMENT),xe=[],Me;for(Me=0;Methis.byteLength)throw new RangeError("Array index out of range");var xe=new W([pe]),Me=new e.Uint8Array(xe.buffer),je=[],Be,Ee;for(Be=0;Be0)throw new TypeError("WeakMap iterable is not supported")}n(o.prototype,"delete",function(c){if(u(this,"delete"),!i(c))return!1;var d=c[this._id];return d&&d[0]===c?(delete c[this._id],!0):!1}),n(o.prototype,"get",function(c){if(u(this,"get"),!!i(c)){var d=c[this._id];if(d&&d[0]===c)return d[1]}}),n(o.prototype,"has",function(c){if(u(this,"has"),!i(c))return!1;var d=c[this._id];return!!(d&&d[0]===c)}),n(o.prototype,"set",function(c,d){if(u(this,"set"),!i(c))throw new TypeError("Invalid value used as weak map key");var f=c[this._id];return f&&f[0]===c?(f[1]=d,this):(n(c,this._id,[c,d]),this)});function u(c,d){if(!i(c)||!r.call(c,"_id"))throw new TypeError(d+" method called on incompatible receiver "+O(c))}function s(c){return c+"_"+l()+"."+l()}function l(){return Math.random().toString().substring(2)}return n(o,"_polyfill",!0),o}();function i(o){return Object(o)===o}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof E<"u"?E:typeof jt<"u"?jt:e)}),St=y(function(e,t){var r=function(n){return n&&n.Math===Math&&n};t.exports=r((typeof globalThis>"u"?"undefined":O(globalThis))=="object"&&globalThis)||r((typeof E>"u"?"undefined":O(E))=="object"&&E)||r((typeof self>"u"?"undefined":O(self))=="object"&&self)||r((typeof jt>"u"?"undefined":O(jt))=="object"&&jt)||function(){return this}()||e||Function("return this")()}),_t=y(function(e,t){t.exports=function(r){try{return!!r()}catch{return!0}}}),Ua=y(function(e,t){var r=_t();t.exports=!r(function(){var a=(function(){}).bind();return typeof a!="function"||a.hasOwnProperty("prototype")})}),wh=y(function(e,t){var r=Ua(),a=Function.prototype,n=a.apply,i=a.call;t.exports=(typeof Reflect>"u"?"undefined":O(Reflect))=="object"&&Reflect.apply||(r?i.bind(n):function(){return i.apply(n,arguments)})}),mt=y(function(e,t){var r=Ua(),a=Function.prototype,n=a.call,i=r&&a.bind.bind(n,n);t.exports=r?i:function(o){return function(){return n.apply(o,arguments)}}}),Ei=y(function(e,t){var r=mt(),a=r({}.toString),n=r("".slice);t.exports=function(i){return n(a(i),8,-1)}}),Ds=y(function(e,t){var r=Ei(),a=mt();t.exports=function(n){if(r(n)==="Function")return a(n)}}),_s=y(function(e,t){var r=(typeof L>"u"?"undefined":O(L))=="object"&&L.all,a=typeof r>"u"&&r!==void 0;t.exports={all:r,IS_HTMLDDA:a}}),rt=y(function(e,t){var r=_s(),a=r.all;t.exports=r.IS_HTMLDDA?function(n){return typeof n=="function"||n===a}:function(n){return typeof n=="function"}}),Jt=y(function(e,t){var r=_t();t.exports=!r(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})}),mr=y(function(e,t){var r=Ua(),a=Function.prototype.call;t.exports=r?a.bind(a):function(){return a.apply(a,arguments)}}),xs=y(function(e){var t={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,a=r&&!t.call({1:2},1);e.f=a?function(i){var o=r(this,i);return!!o&&o.enumerable}:t}),Ga=y(function(e,t){t.exports=function(r,a){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:a}}}),Dh=y(function(e,t){var r=mt(),a=_t(),n=Ei(),i=Object,o=r("".split);t.exports=a(function(){return!i("z").propertyIsEnumerable(0)})?function(u){return n(u)==="String"?o(u,""):i(u)}:i}),Ai=y(function(e,t){t.exports=function(r){return r==null}}),Ci=y(function(e,t){var r=Ai(),a=TypeError;t.exports=function(n){if(r(n))throw new a("Can't call method on "+n);return n}}),ta=y(function(e,t){var r=Dh(),a=Ci();t.exports=function(n){return r(a(n))}}),Sr=y(function(e,t){var r=rt(),a=_s(),n=a.all;t.exports=a.IS_HTMLDDA?function(i){return O(i)=="object"?i!==null:r(i)||i===n}:function(i){return O(i)=="object"?i!==null:r(i)}}),ra=y(function(e,t){t.exports={}}),Fi=y(function(e,t){var r=ra(),a=St(),n=rt(),i=function(u){return n(u)?u:void 0};t.exports=function(o,u){return arguments.length<2?i(r[o])||i(a[o]):r[o]&&r[o][u]||a[o]&&a[o][u]}}),_h=y(function(e,t){var r=mt();t.exports=r({}.isPrototypeOf)}),xh=y(function(e,t){t.exports=typeof navigator<"u"&&String(navigator.userAgent)||""}),Eh=y(function(e,t){var r=St(),a=xh(),n=r.process,i=r.Deno,o=n&&n.versions||i&&i.version,u=o&&o.v8,s,l;u&&(s=u.split("."),l=s[0]>0&&s[0]<4?1:+(s[0]+s[1])),!l&&a&&(s=a.match(/Edge\/(\d+)/),(!s||s[1]>=74)&&(s=a.match(/Chrome\/(\d+)/),s&&(l=+s[1]))),t.exports=l}),Es=y(function(e,t){var r=Eh(),a=_t(),n=St(),i=n.String;t.exports=!!Object.getOwnPropertySymbols&&!a(function(){var o=Symbol("symbol detection");return!i(o)||!(Object(o)instanceof Symbol)||!Symbol.sham&&r&&r<41})}),As=y(function(e,t){var r=Es();t.exports=r&&!Symbol.sham&&O(Symbol.iterator)=="symbol"}),Cs=y(function(e,t){var r=Fi(),a=rt(),n=_h(),i=As(),o=Object;t.exports=i?function(u){return O(u)=="symbol"}:function(u){var s=r("Symbol");return a(s)&&n(s.prototype,o(u))}}),Fs=y(function(e,t){var r=String;t.exports=function(a){try{return r(a)}catch{return"Object"}}}),Wa=y(function(e,t){var r=rt(),a=Fs(),n=TypeError;t.exports=function(i){if(r(i))return i;throw new n(a(i)+" is not a function")}}),Ti=y(function(e,t){var r=Wa(),a=Ai();t.exports=function(n,i){var o=n[i];return a(o)?void 0:r(o)}}),Ah=y(function(e,t){var r=mr(),a=rt(),n=Sr(),i=TypeError;t.exports=function(o,u){var s,l;if(u==="string"&&a(s=o.toString)&&!n(l=r(s,o))||a(s=o.valueOf)&&!n(l=r(s,o))||u!=="string"&&a(s=o.toString)&&!n(l=r(s,o)))return l;throw new i("Can't convert object to primitive value")}}),Ri=y(function(e,t){t.exports=!0}),Ch=y(function(e,t){var r=St(),a=Object.defineProperty;t.exports=function(n,i){try{a(r,n,{value:i,configurable:!0,writable:!0})}catch{r[n]=i}return i}}),Si=y(function(e,t){var r=St(),a=Ch(),n="__core-js_shared__",i=r[n]||a(n,{});t.exports=i}),Ts=y(function(e,t){var r=Ri(),a=Si();(t.exports=function(n,i){return a[n]||(a[n]=i!==void 0?i:{})})("versions",[]).push({version:"3.33.0",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"})}),ki=y(function(e,t){var r=Ci(),a=Object;t.exports=function(n){return a(r(n))}}),zt=y(function(e,t){var r=mt(),a=ki(),n=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(o,u){return n(a(o),u)}}),Rs=y(function(e,t){var r=mt(),a=0,n=Math.random(),i=r(1 .toString);t.exports=function(o){return"Symbol("+(o===void 0?"":o)+")_"+i(++a+n,36)}}),Vt=y(function(e,t){var r=St(),a=Ts(),n=zt(),i=Rs(),o=Es(),u=As(),s=r.Symbol,l=a("wks"),c=u?s.for||s:s&&s.withoutSetter||i;t.exports=function(d){return n(l,d)||(l[d]=o&&n(s,d)?s[d]:c("Symbol."+d)),l[d]}}),Fh=y(function(e,t){var r=mr(),a=Sr(),n=Cs(),i=Ti(),o=Ah(),u=Vt(),s=TypeError,l=u("toPrimitive");t.exports=function(c,d){if(!a(c)||n(c))return c;var f=i(c,l),p;if(f){if(d===void 0&&(d="default"),p=r(f,c,d),!a(p)||n(p))return p;throw new s("Can't convert object to primitive value")}return d===void 0&&(d="number"),o(c,d)}}),Oi=y(function(e,t){var r=Fh(),a=Cs();t.exports=function(n){var i=r(n,"string");return a(i)?i:i+""}}),Ss=y(function(e,t){var r=St(),a=Sr(),n=r.document,i=a(n)&&a(n.createElement);t.exports=function(o){return i?n.createElement(o):{}}}),ks=y(function(e,t){var r=Jt(),a=_t(),n=Ss();t.exports=!r&&!a(function(){return Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a!==7})}),Th=y(function(e){var t=Jt(),r=mr(),a=xs(),n=Ga(),i=ta(),o=Oi(),u=zt(),s=ks(),l=Object.getOwnPropertyDescriptor;e.f=t?l:function(d,f){if(d=i(d),f=o(f),s)try{return l(d,f)}catch{}if(u(d,f))return n(!r(a.f,d,f),d[f])}}),Rh=y(function(e,t){var r=_t(),a=rt(),n=/#|\.prototype\./,i=function(d,f){var p=u[o(d)];return p===l?!0:p===s?!1:a(f)?r(f):!!f},o=i.normalize=function(c){return String(c).replace(n,".").toLowerCase()},u=i.data={},s=i.NATIVE="N",l=i.POLYFILL="P";t.exports=i}),Os=y(function(e,t){var r=Ds(),a=Wa(),n=Ua(),i=r(r.bind);t.exports=function(o,u){return a(o),u===void 0?o:n?i(o,u):function(){return o.apply(u,arguments)}}}),Ms=y(function(e,t){var r=Jt(),a=_t();t.exports=r&&a(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})}),hr=y(function(e,t){var r=Sr(),a=String,n=TypeError;t.exports=function(i){if(r(i))return i;throw new n(a(i)+" is not an object")}}),Ya=y(function(e){var t=Jt(),r=ks(),a=Ms(),n=hr(),i=Oi(),o=TypeError,u=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l="enumerable",c="configurable",d="writable";e.f=t?a?function(p,m,h){if(n(p),m=i(m),n(h),typeof p=="function"&&m==="prototype"&&"value"in h&&d in h&&!h[d]){var v=s(p,m);v&&v[d]&&(p[m]=h.value,h={configurable:c in h?h[c]:v[c],enumerable:l in h?h[l]:v[l],writable:!1})}return u(p,m,h)}:u:function(p,m,h){if(n(p),m=i(m),n(h),r)try{return u(p,m,h)}catch{}if("get"in h||"set"in h)throw new o("Accessors not supported");return"value"in h&&(p[m]=h.value),p}}),aa=y(function(e,t){var r=Jt(),a=Ya(),n=Ga();t.exports=r?function(i,o,u){return a.f(i,o,n(1,u))}:function(i,o,u){return i[o]=u,i}}),Ka=y(function(e,t){var r=St(),a=wh(),n=Ds(),i=rt(),o=Th().f,u=Rh(),s=ra(),l=Os(),c=aa(),d=zt(),f=function(m){var h=function(g,b,D){if(this instanceof h){switch(arguments.length){case 0:return new m;case 1:return new m(g);case 2:return new m(g,b)}return new m(g,b,D)}return a(m,this,arguments)};return h.prototype=m.prototype,h};t.exports=function(p,m){var h=p.target,v=p.global,g=p.stat,b=p.proto,D=v?r:g?r[h]:(r[h]||{}).prototype,w=v?s:s[h]||c(s,h,{})[h],_=w.prototype,F,R,I,V,S,N,z,H,Q;for(V in m)F=u(v?V:h+(g?".":"#")+V,p.forced),R=!F&&D&&d(D,V),N=w[V],R&&(p.dontCallGetSet?(Q=o(D,V),z=Q&&Q.value):z=D[V]),S=R&&z?z:m[V],!(R&&O(N)==O(S))&&(p.bind&&R?H=l(S,r):p.wrap&&R?H=f(S):b&&i(S)?H=n(S):H=S,(p.sham||S&&S.sham||N&&N.sham)&&c(H,"sham",!0),c(w,V,H),b&&(I=h+"Prototype",d(s,I)||c(s,I,{}),c(s[I],V,S),p.real&&_&&(F||!_[V])&&c(_,V,S)))}}),Sh=y(function(){var e=Ka(),t=zt();e({target:"Object",stat:!0},{hasOwn:t})}),kh=y(function(e,t){Sh();var r=ra();t.exports=r.Object.hasOwn}),Oh=y(function(e,t){var r=kh();t.exports=r}),Mh=y(function(e,t){var r=Oh();t.exports=r}),Mi=y(function(e,t){var r=Ts(),a=Rs(),n=r("keys");t.exports=function(i){return n[i]||(n[i]=a(i))}}),Ih=y(function(e,t){var r=_t();t.exports=!r(function(){function a(){}return a.prototype.constructor=null,Object.getPrototypeOf(new a)!==a.prototype})}),Ii=y(function(e,t){var r=zt(),a=rt(),n=ki(),i=Mi(),o=Ih(),u=i("IE_PROTO"),s=Object,l=s.prototype;t.exports=o?s.getPrototypeOf:function(c){var d=n(c);if(r(d,u))return d[u];var f=d.constructor;return a(f)&&d instanceof f?f.prototype:d instanceof s?l:null}}),Ph=y(function(e,t){var r=Math.ceil,a=Math.floor;t.exports=Math.trunc||function(i){var o=+i;return(o>0?a:r)(o)}}),Pi=y(function(e,t){var r=Ph();t.exports=function(a){var n=+a;return n!==n||n===0?0:r(n)}}),Nh=y(function(e,t){var r=Pi(),a=Math.max,n=Math.min;t.exports=function(i,o){var u=r(i);return u<0?a(u+o,0):n(u,o)}}),Lh=y(function(e,t){var r=Pi(),a=Math.min;t.exports=function(n){return n>0?a(r(n),9007199254740991):0}}),Is=y(function(e,t){var r=Lh();t.exports=function(a){return r(a.length)}}),Bh=y(function(e,t){var r=ta(),a=Nh(),n=Is(),i=function(u){return function(s,l,c){var d=r(s),f=n(d),p=a(c,f),m;if(u&&l!==l){for(;f>p;)if(m=d[p++],m!==m)return!0}else for(;f>p;p++)if((u||p in d)&&d[p]===l)return u||p||0;return!u&&-1}};t.exports={includes:i(!0),indexOf:i(!1)}}),Ni=y(function(e,t){t.exports={}}),qh=y(function(e,t){var r=mt(),a=zt(),n=ta(),i=Bh().indexOf,o=Ni(),u=r([].push);t.exports=function(s,l){var c=n(s),d=0,f=[],p;for(p in c)!a(o,p)&&a(c,p)&&u(f,p);for(;l.length>d;)a(c,p=l[d++])&&(~i(f,p)||u(f,p));return f}}),Ps=y(function(e,t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}),Ns=y(function(e,t){var r=qh(),a=Ps();t.exports=Object.keys||function(i){return r(i,a)}}),jh=y(function(e,t){var r=Jt(),a=_t(),n=mt(),i=Ii(),o=Ns(),u=ta(),s=xs().f,l=n(s),c=n([].push),d=r&&a(function(){var p=Object.create(null);return p[2]=2,!l(p,2)}),f=function(m){return function(h){for(var v=u(h),g=o(v),b=d&&i(v)===null,D=g.length,w=0,_=[],F;D>w;)F=g[w++],(!r||(b?F in v:l(v,F)))&&c(_,m?[F,v[F]]:v[F]);return _}};t.exports={entries:f(!0),values:f(!1)}}),zh=y(function(){var e=Ka(),t=jh().values;e({target:"Object",stat:!0},{values:function(a){return t(a)}})}),Vh=y(function(e,t){zh();var r=ra();t.exports=r.Object.values}),Hh=y(function(e,t){var r=Vh();t.exports=r}),$h=y(function(e,t){var r=Hh();t.exports=r}),Li=y(function(e,t){var r=Vt(),a=r("toStringTag"),n={};n[a]="z",t.exports=String(n)==="[object z]"}),Xa=y(function(e,t){var r=Li(),a=rt(),n=Ei(),i=Vt(),o=i("toStringTag"),u=Object,s=n(function(){return arguments}())==="Arguments",l=function(d,f){try{return d[f]}catch{}};t.exports=r?n:function(c){var d,f,p;return c===void 0?"Undefined":c===null?"Null":typeof(f=l(d=u(c),o))=="string"?f:s?n(d):(p=n(d))==="Object"&&a(d.callee)?"Arguments":p}}),Ls=y(function(e,t){var r=Xa(),a=String;t.exports=function(n){if(r(n)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return a(n)}}),Uh=y(function(e,t){var r=mt(),a=Pi(),n=Ls(),i=Ci(),o=r("".charAt),u=r("".charCodeAt),s=r("".slice),l=function(d){return function(f,p){var m=n(i(f)),h=a(p),v=m.length,g,b;return h<0||h>=v?d?"":void 0:(g=u(m,h),g<55296||g>56319||h+1===v||(b=u(m,h+1))<56320||b>57343?d?o(m,h):g:d?s(m,h,h+2):(g-55296<<10)+(b-56320)+65536)}};t.exports={codeAt:l(!1),charAt:l(!0)}}),Gh=y(function(e,t){var r=St(),a=rt(),n=r.WeakMap;t.exports=a(n)&&/native code/.test(String(n))}),Wh=y(function(e,t){var r=Gh(),a=St(),n=Sr(),i=aa(),o=zt(),u=Si(),s=Mi(),l=Ni(),c="Object already initialized",d=a.TypeError,f=a.WeakMap,p,m,h,v=function(_){return h(_)?m(_):p(_,{})},g=function(_){return function(F){var R;if(!n(F)||(R=m(F)).type!==_)throw new d("Incompatible receiver, "+_+" required");return R}};r||u.state?(b=u.state||(u.state=new f),b.get=b.get,b.has=b.has,b.set=b.set,p=function(_,F){if(b.has(_))throw new d(c);return F.facade=_,b.set(_,F),F},m=function(_){return b.get(_)||{}},h=function(_){return b.has(_)}):(D=s("state"),l[D]=!0,p=function(_,F){if(o(_,D))throw new d(c);return F.facade=_,i(_,D,F),F},m=function(_){return o(_,D)?_[D]:{}},h=function(_){return o(_,D)});var b,D;t.exports={set:p,get:m,has:h,enforce:v,getterFor:g}}),Yh=y(function(e,t){var r=Jt(),a=zt(),n=Function.prototype,i=r&&Object.getOwnPropertyDescriptor,o=a(n,"name"),u=o&&(function(){}).name==="something",s=o&&(!r||r&&i(n,"name").configurable);t.exports={EXISTS:o,PROPER:u,CONFIGURABLE:s}}),Kh=y(function(e){var t=Jt(),r=Ms(),a=Ya(),n=hr(),i=ta(),o=Ns();e.f=t&&!r?Object.defineProperties:function(s,l){n(s);for(var c=i(l),d=o(l),f=d.length,p=0,m;f>p;)a.f(s,m=d[p++],c[m]);return s}}),Xh=y(function(e,t){var r=Fi();t.exports=r("document","documentElement")}),Bs=y(function(e,t){var r=hr(),a=Kh(),n=Ps(),i=Ni(),o=Xh(),u=Ss(),s=Mi(),l=">",c="<",d="prototype",f="script",p=s("IE_PROTO"),m=function(){},h=function(_){return c+f+l+_+c+"/"+f+l},v=function(_){_.write(h("")),_.close();var F=_.parentWindow.Object;return _=null,F},g=function(){var _=u("iframe"),F="java"+f+":",R;return _.style.display="none",o.appendChild(_),_.src=String(F),R=_.contentWindow.document,R.open(),R.write(h("document.F=Object")),R.close(),R.F},b,D=function(){try{b=new ActiveXObject("htmlfile")}catch{}D=typeof L<"u"?L.domain&&b?v(b):g():v(b);for(var _=n.length;_--;)delete D[d][n[_]];return D()};i[p]=!0,t.exports=Object.create||function(_,F){var R;return _!==null?(m[d]=r(_),R=new m,m[d]=null,R[p]=_):R=D(),F===void 0?R:a.f(R,F)}}),qs=y(function(e,t){var r=aa();t.exports=function(a,n,i,o){return o&&o.enumerable?a[n]=i:r(a,n,i),a}}),js=y(function(e,t){var r=_t(),a=rt(),n=Sr(),i=Bs(),o=Ii(),u=qs(),s=Vt(),l=Ri(),c=s("iterator"),d=!1,f,p,m;[].keys&&(m=[].keys(),"next"in m?(p=o(o(m)),p!==Object.prototype&&(f=p)):d=!0);var h=!n(f)||r(function(){var v={};return f[c].call(v)!==v});h?f={}:l&&(f=i(f)),a(f[c])||u(f,c,function(){return this}),t.exports={IteratorPrototype:f,BUGGY_SAFARI_ITERATORS:d}}),Zh=y(function(e,t){var r=Li(),a=Xa();t.exports=r?{}.toString:function(){return"[object "+a(this)+"]"}}),zs=y(function(e,t){var r=Li(),a=Ya().f,n=aa(),i=zt(),o=Zh(),u=Vt(),s=u("toStringTag");t.exports=function(l,c,d,f){if(l){var p=d?l:l.prototype;i(p,s)||a(p,s,{configurable:!0,value:c}),f&&!r&&n(p,"toString",o)}}}),Za=y(function(e,t){t.exports={}}),Jh=y(function(e,t){var r=js().IteratorPrototype,a=Bs(),n=Ga(),i=zs(),o=Za(),u=function(){return this};t.exports=function(s,l,c,d){var f=l+" Iterator";return s.prototype=a(r,{next:n(+!d,c)}),i(s,f,!1,!0),o[f]=u,s}}),Qh=y(function(e,t){var r=mt(),a=Wa();t.exports=function(n,i,o){try{return r(a(Object.getOwnPropertyDescriptor(n,i)[o]))}catch{}}}),ev=y(function(e,t){var r=rt(),a=String,n=TypeError;t.exports=function(i){if(O(i)=="object"||r(i))return i;throw new n("Can't set "+a(i)+" as a prototype")}}),tv=y(function(e,t){var r=Qh(),a=hr(),n=ev();t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var i=!1,o={},u;try{u=r(Object.prototype,"__proto__","set"),u(o,[]),i=o instanceof Array}catch{}return function(l,c){return a(l),n(c),i?u(l,c):l.__proto__=c,l}}():void 0)}),rv=y(function(e,t){var r=Ka(),a=mr(),n=Ri(),i=Yh(),o=rt(),u=Jh(),s=Ii(),l=tv(),c=zs(),d=aa(),f=qs(),p=Vt(),m=Za(),h=js(),v=i.PROPER,g=i.CONFIGURABLE,b=h.IteratorPrototype,D=h.BUGGY_SAFARI_ITERATORS,w=p("iterator"),_="keys",F="values",R="entries",I=function(){return this};t.exports=function(V,S,N,z,H,Q,ie){u(N,S,z);var Y=function(pe){if(pe===H&&U)return U;if(!D&&pe&&pe in Z)return Z[pe];switch(pe){case _:return function(){return new N(this,pe)};case F:return function(){return new N(this,pe)};case R:return function(){return new N(this,pe)}}return function(){return new N(this)}},te=S+" Iterator",B=!1,Z=V.prototype,A=Z[w]||Z["@@iterator"]||H&&Z[H],U=!D&&A||Y(H),P=S==="Array"&&Z.entries||A,G,ae,W;if(P&&(G=s(P.call(new V)),G!==Object.prototype&&G.next&&(!n&&s(G)!==b&&(l?l(G,b):o(G[w])||f(G,w,I)),c(G,te,!0,!0),n&&(m[te]=I))),v&&H===F&&A&&A.name!==F&&(!n&&g?d(Z,"name",F):(B=!0,U=function(){return a(A,this)})),H)if(ae={values:Y(F),keys:Q?U:Y(_),entries:Y(R)},ie)for(W in ae)(D||B||!(W in Z))&&f(Z,W,ae[W]);else r({target:S,proto:!0,forced:D||B},ae);return(!n||ie)&&Z[w]!==U&&f(Z,w,U,{name:H}),m[S]=U,ae}}),av=y(function(e,t){t.exports=function(r,a){return{value:r,done:a}}}),nv=y(function(){var e=Uh().charAt,t=Ls(),r=Wh(),a=rv(),n=av(),i="String Iterator",o=r.set,u=r.getterFor(i);a(String,"String",function(s){o(this,{type:i,string:t(s),index:0})},function(){var l=u(this),c=l.string,d=l.index,f;return d>=c.length?n(void 0,!0):(f=e(c,d),l.index+=f.length,n(f,!1))})}),iv=y(function(e,t){var r=mr(),a=hr(),n=Ti();t.exports=function(i,o,u){var s,l;a(i);try{if(s=n(i,"return"),!s){if(o==="throw")throw u;return u}s=r(s,i)}catch(c){l=!0,s=c}if(o==="throw")throw u;if(l)throw s;return a(s),u}}),ov=y(function(e,t){var r=hr(),a=iv();t.exports=function(n,i,o,u){try{return u?i(r(o)[0],o[1]):i(o)}catch(s){a(n,"throw",s)}}}),uv=y(function(e,t){var r=Vt(),a=Za(),n=r("iterator"),i=Array.prototype;t.exports=function(o){return o!==void 0&&(a.Array===o||i[n]===o)}}),sv=y(function(e,t){var r=mt(),a=rt(),n=Si(),i=r(Function.toString);a(n.inspectSource)||(n.inspectSource=function(o){return i(o)}),t.exports=n.inspectSource}),lv=y(function(e,t){var r=mt(),a=_t(),n=rt(),i=Xa(),o=Fi(),u=sv(),s=function(){},l=[],c=o("Reflect","construct"),d=/^\s*(?:class|function)\b/,f=r(d.exec),p=!d.test(s),m=function(g){if(!n(g))return!1;try{return c(s,l,g),!0}catch{return!1}},h=function(g){if(!n(g))return!1;switch(i(g)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!f(d,u(g))}catch{return!0}};h.sham=!0,t.exports=!c||a(function(){var v;return m(m.call)||!m(Object)||!m(function(){v=!0})||v})?h:m}),cv=y(function(e,t){var r=Oi(),a=Ya(),n=Ga();t.exports=function(i,o,u){var s=r(o);s in i?a.f(i,s,n(0,u)):i[s]=u}}),Vs=y(function(e,t){var r=Xa(),a=Ti(),n=Ai(),i=Za(),o=Vt(),u=o("iterator");t.exports=function(s){if(!n(s))return a(s,u)||a(s,"@@iterator")||i[r(s)]}}),dv=y(function(e,t){var r=mr(),a=Wa(),n=hr(),i=Fs(),o=Vs(),u=TypeError;t.exports=function(s,l){var c=arguments.length<2?o(s):l;if(a(c))return n(r(c,s));throw new u(i(s)+" is not iterable")}}),fv=y(function(e,t){var r=Os(),a=mr(),n=ki(),i=ov(),o=uv(),u=lv(),s=Is(),l=cv(),c=dv(),d=Vs(),f=Array;t.exports=function(m){var h=n(m),v=u(this),g=arguments.length,b=g>1?arguments[1]:void 0,D=b!==void 0;D&&(b=r(b,g>2?arguments[2]:void 0));var w=d(h),_=0,F,R,I,V,S,N;if(w&&!(this===f&&o(w)))for(V=c(h,w),S=V.next,R=v?new this:[];!(I=a(S,V)).done;_++)N=D?i(V,b,[I.value,_],!0):I.value,l(R,_,N);else for(F=s(h),R=v?new this(F):f(F);F>_;_++)N=D?b(h[_],_):h[_],l(R,_,N);return R.length=_,R}}),pv=y(function(e,t){var r=Vt(),a=r("iterator"),n=!1;try{i=0,o={next:function(){return{done:!!i++}},return:function(){n=!0}},o[a]=function(){return this},Array.from(o,function(){throw 2})}catch{}var i,o;t.exports=function(u,s){try{if(!s&&!n)return!1}catch{return!1}var l=!1;try{var c={};c[a]=function(){return{next:function(){return{done:l=!0}}}},u(c)}catch{}return l}}),mv=y(function(){var e=Ka(),t=fv(),r=pv(),a=!r(function(n){Array.from(n)});e({target:"Array",stat:!0,forced:a},{from:t})}),hv=y(function(e,t){nv(),mv();var r=ra();t.exports=r.Array.from}),vv=y(function(e,t){var r=hv();t.exports=r}),Hs=y(function(e,t){var r=vv();t.exports=r}),$s=y(function(e,t){(function(){var r={name:"doT",version:"1.1.1",templateSettings:{evaluate:/\{\{([\s\S]+?(\}?)+)\}\}/g,interpolate:/\{\{=([\s\S]+?)\}\}/g,encode:/\{\{!([\s\S]+?)\}\}/g,use:/\{\{#([\s\S]+?)\}\}/g,useParams:/(^|[^\w$])def(?:\.|\[[\'\"])([\w$\.]+)(?:[\'\"]\])?\s*\:\s*([\w$\.]+|\"[^\"]+\"|\'[^\']+\'|\{[^\}]+\})/g,define:/\{\{##\s*([\w\.$]+)\s*(\:|=)([\s\S]+?)#\}\}/g,defineParams:/^\s*([\w$]+):([\s\S]+)/,conditional:/\{\{\?(\?)?\s*([\s\S]*?)\s*\}\}/g,iterate:/\{\{~\s*(?:\}\}|([\s\S]+?)\s*\:\s*([\w$]+)\s*(?:\:\s*([\w$]+))?\s*\}\})/g,varname:"it",strip:!0,append:!0,selfcontained:!1,doNotSkipEncoded:!1},template:void 0,compile:void 0,log:!0};(function(){if((typeof globalThis>"u"?"undefined":O(globalThis))!=="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{E.globalThis=function(){if(typeof self<"u")return self;if(typeof E<"u")return E;if(typeof jt<"u")return jt;if(typeof this<"u")return this;throw new Error("Unable to locate global `this`")}()}})(),r.encodeHTMLSource=function(u){var s={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},l=u?/[&<>"'\/]/g:/&(?!#?\w+;)|<|>|"|'|\//g;return function(c){return c?c.toString().replace(l,function(d){return s[d]||d}):""}},typeof t<"u"&&t.exports?t.exports=r:globalThis.doT=r;var a={append:{start:"'+(",end:")+'",startencode:"'+encodeHTML("},split:{start:"';out+=(",end:");out+='",startencode:"';out+=encodeHTML("}},n=/$^/;function i(u,s,l){return(typeof s=="string"?s:s.toString()).replace(u.define||n,function(c,d,f,p){return d.indexOf("def.")===0&&(d=d.substring(4)),d in l||(f===":"?(u.defineParams&&p.replace(u.defineParams,function(m,h,v){l[d]={arg:h,text:v}}),d in l||(l[d]=p)):new Function("def","def['"+d+"']="+p)(l)),""}).replace(u.use||n,function(c,d){u.useParams&&(d=d.replace(u.useParams,function(p,m,h,v){if(l[h]&&l[h].arg&&v){var g=(h+":"+v).replace(/'|\\/g,"_");return l.__exp=l.__exp||{},l.__exp[g]=l[h].text.replace(new RegExp("(^|[^\\w$])"+l[h].arg+"([^\\w$])","g"),"$1"+v+"$2"),m+"def.__exp['"+g+"']"}}));var f=new Function("def","return "+d)(l);return f&&i(u,f,l)})}function o(u){return u.replace(/\\('|\\)/g,"$1").replace(/[\r\t\n]/g," ")}r.template=function(u,s,l){s=s||r.templateSettings;var c=s.append?a.append:a.split,d,f=0,p,m=s.use||s.define?i(s,u,l||{}):u;m=("var out='"+(s.strip?m.replace(/(^|\r|\n)\t* +| +\t*(\r|\n|$)/g," ").replace(/\r|\n|\t|\/\*[\s\S]*?\*\//g,""):m).replace(/'|\\/g,"\\$&").replace(s.interpolate||n,function(h,v){return c.start+o(v)+c.end}).replace(s.encode||n,function(h,v){return d=!0,c.startencode+o(v)+c.end}).replace(s.conditional||n,function(h,v,g){return v?g?"';}else if("+o(g)+"){out+='":"';}else{out+='":g?"';if("+o(g)+"){out+='":"';}out+='"}).replace(s.iterate||n,function(h,v,g,b){return v?(f+=1,p=b||"i"+f,v=o(v),"';var arr"+f+"="+v+";if(arr"+f+"){var "+g+","+p+"=-1,l"+f+"=arr"+f+".length-1;while("+p+"",sameOrigin:""};gv.forEach(function(e){var t=e.name,r=e.value,a=e.priority,n=e.group;xt[t]=r,xt[t+"_PRIO"]=a,xt[t+"_GROUP"]=n,xt.results[a]=r,xt.resultGroups[a]=n,xt.resultGroupMap[r]=n}),Object.freeze(xt.results),Object.freeze(xt.resultGroups),Object.freeze(xt.resultGroupMap),Object.freeze(xt);var se=xt;function bv(){(typeof console>"u"?"undefined":O(console))==="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}var vr=bv,yv=/[\t\r\n\f]/g,wv=function(){function e(){Tt(this,e),this.parent=void 0}return Rt(e,[{key:"props",get:function(){throw new Error('VirtualNode class must have a "props" object consisting of "nodeType" and "nodeName" properties')}},{key:"attrNames",get:function(){throw new Error('VirtualNode class must have an "attrNames" property')}},{key:"attr",value:function(){throw new Error('VirtualNode class must have an "attr" function')}},{key:"hasAttr",value:function(){throw new Error('VirtualNode class must have a "hasAttr" function')}},{key:"hasClass",value:function(r){var a=this.attr("class");if(!a)return!1;var n=" "+r+" ";return(" "+a+" ").replace(yv," ").indexOf(n)>=0}}])}(),$e=wv,Bi={};Dt(Bi,{DqElement:function(){return Ht},aggregate:function(){return Ja},aggregateChecks:function(){return Ws},aggregateNodeResults:function(){return Ys},aggregateResult:function(){return Ks},areStylesSet:function(){return Fv},assert:function(){return me},checkHelper:function(){return $i},clone:function(){return $t},closest:function(){return ut},collectResultsFromFrames:function(){return Cl},contains:function(){return Ut},convertSelector:function(){return nn},cssParser:function(){return ol},deepMerge:function(){return no},escapeSelector:function(){return Oe},extendMetaData:function(){return io},filterHtmlAttrs:function(){return X1},finalizeRuleResult:function(){return na},findBy:function(){return fa},getAllChecks:function(){return cn},getAncestry:function(){return an},getBaseLang:function(){return Fr},getCheckMessage:function(){return Yw},getCheckOption:function(){return Xn},getEnvironmentData:function(){return ur},getFlattenedTree:function(){return hu},getFrameContexts:function(){return dD},getFriendlyUriEnd:function(){return Js},getNodeAttributes:function(){return en},getNodeFromTree:function(){return le},getPreloadConfig:function(){return G1},getRootNode:function(){return pa},getRule:function(){return S1},getScroll:function(){return Yt},getScrollState:function(){return mD},getSelector:function(){return Hi},getSelectorData:function(){return rn},getShadowSelector:function(){return ji},getStandards:function(){return hD},getStyleSheetFactory:function(){return M1},getXpath:function(){return nl},injectStyle:function(){return bD},isArrayLike:function(){return wu},isContextObject:function(){return Du},isContextProp:function(){return Jn},isContextSpec:function(){return I1},isHidden:function(){return yD},isHtmlElement:function(){return xu},isLabelledFramesSelector:function(){return _u},isLabelledShadowDomSelector:function(){return Qn},isNodeInContext:function(){return Eu},isShadowRoot:function(){return fn},isValidLang:function(){return ri},isXHTML:function(){return tn},matchAncestry:function(){return Au},matches:function(){return Gi},matchesExpression:function(){return Or},matchesSelector:function(){return kr},memoize:function(){return Fe},mergeResults:function(){return dn},nodeLookup:function(){return we},nodeSerializer:function(){return ht},nodeSorter:function(){return Cu},objectHasOwn:function(){return Nt},parseCrossOriginStylesheet:function(){return Tu},parseSameOriginStylesheet:function(){return L1},parseStylesheet:function(){return Fu},parseTabindex:function(){return Lt},performanceTimer:function(){return ve},pollyfillElementsFromPoint:function(){return B1},preload:function(){return $1},preloadCssom:function(){return j1},preloadMedia:function(){return H1},processMessage:function(){return yu},publishMetaData:function(){return ei},querySelectorAll:function(){return ft},querySelectorAllFilter:function(){return Bt},queue:function(){return kt},respondable:function(){return Et},ruleShouldRun:function(){return K1},select:function(){return Ru},sendCommandToFrame:function(){return _l},setScrollState:function(){return ZD},shadowSelect:function(){return JD},shadowSelectAll:function(){return Su},shouldPreload:function(){return U1},toArray:function(){return Zs},tokenList:function(){return Ze},uniqueArray:function(){return Ia},uuid:function(){return yg},validInputTypes:function(){return ti},validLangs:function(){return tf}});function Dv(e,t,r){t=t.slice(),r&&t.push(r);var a=t.map(function(n){return e.indexOf(n)}).sort();return e[a.pop()]}var Ja=Dv,_v=se.CANTTELL_PRIO,xv=se.FAIL_PRIO,Qa=[];Qa[se.PASS_PRIO]=!0,Qa[se.CANTTELL_PRIO]=null,Qa[se.FAIL_PRIO]=!1;var Us=["any","all","none"];function Gs(e,t){return Us.reduce(function(r,a){return r[a]=(e[a]||[]).map(function(n){return t(n,a)}),r},{})}function Ev(e){var t=Object.assign({},e);Gs(t,function(n,i){var o=typeof n.result>"u"?-1:Qa.indexOf(n.result);n.priority=o!==-1?o:se.CANTTELL_PRIO,i==="none"&&(n.priority===se.PASS_PRIO?n.priority=se.FAIL_PRIO:n.priority===se.FAIL_PRIO&&(n.priority=se.PASS_PRIO))});var r={all:t.all.reduce(function(n,i){return Math.max(n,i.priority)},0),none:t.none.reduce(function(n,i){return Math.max(n,i.priority)},0),any:t.any.reduce(function(n,i){return Math.min(n,i.priority)},4)%4};t.priority=Math.max(r.all,r.none,r.any);var a=[];return Us.forEach(function(n){t[n]=t[n].filter(function(i){return i.priority===t.priority&&i.priority===r[n]}),t[n].forEach(function(i){return a.push(i.impact)})}),[_v,xv].includes(t.priority)?t.impact=Ja(se.impact,a):t.impact=null,Gs(t,function(n){delete n.result,delete n.priority}),t.result=se.results[t.priority],delete t.priority,t}var Ws=Ev;function na(e){var t=x._audit.rules.find(function(r){var a=r.id;return a===e.id});return t&&t.impact&&e.nodes.forEach(function(r){["any","all","none"].forEach(function(a){(r[a]||[]).forEach(function(n){n.impact=t.impact})})}),Object.assign(e,Ys(e.nodes)),delete e.nodes,e}function Av(e){var t={};if(e=e.map(function(i){if(i.any&&i.all&&i.none)return Ws(i);if(Array.isArray(i.node))return na(i);throw new TypeError("Invalid Result type")}),e&&e.length){var r=e.map(function(i){return i.result});t.result=Ja(se.results,r,t.result)}else t.result="inapplicable";se.resultGroups.forEach(function(i){return t[i]=[]}),e.forEach(function(i){var o=se.resultGroupMap[i.result];t[o].push(i)});var a=se.FAIL_GROUP;if(t[a].length===0&&(a=se.CANTTELL_GROUP),t[a].length>0){var n=t[a].map(function(i){return i.impact});t.impact=Ja(se.impact,n)||null}else t.impact=null;return t}var Ys=Av;function qi(e,t,r){var a=Object.assign({},t);a.nodes=(a[r]||[]).concat(),se.resultGroups.forEach(function(n){delete a[n]}),e[r].push(a)}function Cv(e){var t={};return se.resultGroups.forEach(function(r){return t[r]=[]}),e.forEach(function(r){r.error?qi(t,r,se.CANTTELL_GROUP):r.result===se.NA?qi(t,r,se.NA_GROUP):se.resultGroups.forEach(function(a){Array.isArray(r[a])&&r[a].length>0&&qi(t,r,a)})}),t}var Ks=Cv;function Xs(e,t,r){var a=E.getComputedStyle(e,null);if(!a)return!1;for(var n=0;n=1&&n<=31||n==127||a==0&&n>=48&&n<=57||a==1&&n>=48&&n<=57&&o==45){i+="\\"+n.toString(16)+" ";continue}if(a==0&&r==1&&n==45){i+="\\"+t.charAt(a);continue}if(n>=128||n==45||n==95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){i+=t.charAt(a);continue}i+="\\"+t.charAt(a)}return i}var Oe=Sv;function kv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e.length!==0&&(e.match(/[0-9]/g)||"").length>=e.length/2}function ia(e,t){return[e.substring(0,t),e.substring(t)]}function oa(e){return e.replace(/\s+$/,"")}function Ov(e){var t=e,r="",a="",n="",i="",o="",u="";if(e.includes("#")){var s=ia(e,e.indexOf("#")),l=$(s,2);e=l[0],u=l[1]}if(e.includes("?")){var c=ia(e,e.indexOf("?")),d=$(c,2);e=d[0],o=d[1]}if(e.includes("://")){var f=e.split("://"),p=$(f,2);r=p[0],e=p[1];var m=ia(e,e.indexOf("/")),h=$(m,2);a=h[0],e=h[1]}else if(e.substr(0,2)==="//"){e=e.substr(2);var v=ia(e,e.indexOf("/")),g=$(v,2);a=g[0],e=g[1]}if(a.substr(0,4)==="www."&&(a=a.substr(4)),a&&a.includes(":")){var b=ia(a,a.indexOf(":")),D=$(b,2);a=D[0],n=D[1]}return i=e,{original:t,protocol:r,domain:a,port:n,path:i,query:o,hash:u}}function Mv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(e.length<=1||e.substr(0,5)==="data:"||e.substr(0,11)==="javascript:"||e.includes("?"))){var r=t.currentDomain,a=t.maxLength,n=a===void 0?25:a,i=Ov(e),o=i.path,u=i.domain,s=i.hash,l=o.substr(o.substr(0,o.length-2).lastIndexOf("/")+1);if(s)return l&&(l+s).length<=n?oa(l+s):l.length<2&&s.length>2&&s.length<=n?oa(s):void 0;if(u&&u.length1)&&(c!==-1||l.length>2)&&l.length<=n&&!l.match(/index(\.[a-zA-Z]{2-4})?/)&&!kv(l))return oa(l)}}var Js=Mv;function Iv(e){return e.attributes instanceof E.NamedNodeMap?e.attributes:e.cloneNode(!1).attributes}var en=Iv,Pv=function(){var e;function t(r){var a=["matches","matchesSelector","mozMatchesSelector","webkitMatchesSelector","msMatchesSelector"],n=a.length,i,o;for(i=0;i2&&arguments[2]!==void 0?arguments[2]:{};if(!t)return"";var a=t.getRootNode&&t.getRootNode()||L;if(a.nodeType!==11)return e(t,r,a);for(var n=[];a.nodeType===11;){if(!a.host)return"";n.unshift({elm:t,doc:a}),t=a.host,a=t.getRootNode()}return n.unshift({elm:t,doc:a}),n.map(function(i){return e(i.elm,r,i.doc)})}var qv=["class","style","id","selected","checked","disabled","tabindex","aria-checked","aria-selected","aria-invalid","aria-activedescendant","aria-busy","aria-disabled","aria-expanded","aria-grabbed","aria-pressed","aria-valuenow","xmlns"],jv=31,zv=/([\\"])/g,Vv=/(\r\n|\r|\n)/g;function zi(e){return e.replace(zv,"\\$1").replace(Vv,"\\a ")}function Qs(e,t){var r=t.name,a;if(r.indexOf("href")!==-1||r.indexOf("src")!==-1){var n=Js(e.getAttribute(r));n?a=Oe(t.name)+'$="'+zi(n)+'"':a=Oe(t.name)+'="'+zi(e.getAttribute(r))+'"'}else a=Oe(r)+'="'+zi(t.value)+'"';return a}function Vi(e,t){return e.count "+i:i=u,!o||o.length>se.selectorSimilarFilterLimit?o=Xv(r,i):o=o.filter(function(s){return kr(s,i)}),e=e.parentElement}while((o.length>1||n)&&e&&e.nodeType!==11);return o.length===1?i:i.indexOf(" > ")!==-1?":root"+i.substring(i.indexOf(" > ")):":root"}function Kv(e,t){return ji(Yv,e,t)}var Hi=Fe(Kv),Xv=Fe(function(e,t){return Array.from(e.querySelectorAll(t))});function rl(e){var t=e.nodeName.toLowerCase(),r=e.parentElement,a=e.parentNode,n="";if(t!=="head"&&t!=="body"&&a?.children.length>1){var i=Array.prototype.indexOf.call(a.children,e)+1;n=":nth-child(".concat(i,")")}return r?rl(r)+" > "+t+n:t+n}function an(e,t){return ji(rl,e,t)}function al(e,t){var r,a;if(!e)return[];if(!t&&e.nodeType===9)return t=[{str:"html"}],t;if(t=t||[],e.parentNode&&e.parentNode!==e&&(t=al(e.parentNode,t)),e.previousSibling){a=1,r=e.previousSibling;do r.nodeType===1&&r.nodeName===e.nodeName&&a++,r=r.previousSibling;while(r);a===1&&(a=null)}else if(e.nextSibling){r=e.nextSibling;do r.nodeType===1&&r.nodeName===e.nodeName?(a=1,r=null):(a=null,r=r.previousSibling);while(r)}if(e.nodeType===1){var n={};n.str=e.nodeName.toLowerCase();var i=e.getAttribute&&Oe(e.getAttribute("id"));i&&e.ownerDocument.querySelectorAll("#"+i).length===1&&(n.id=e.getAttribute("id")),a>1&&(n.count=a),t.push(n)}return t}function Zv(e){return e.reduce(function(t,r){return r.id?"/".concat(r.str,"[@id='").concat(r.id,"']"):t+"/".concat(r.str)+(r.count>0?"[".concat(r.count,"]"):"")},"")}function Jv(e){var t=al(e);return Zv(t)}var nl=Jv,ua={},Qv={set:function(t,r){eg(t),ua[t]=r},get:function(t,r){if(tg(r),t in ua)return ua[t];if(typeof r=="function"){var a=r();return me(a!==void 0,"Cache creator function should not return undefined"),this.set(t,a),ua[t]}},clear:function(){ua={}}};function eg(e){me(typeof e=="string","key must be a string, "+O(e)+" given"),me(e!=="","key must not be empty")}function tg(e){me(typeof e=="function"||typeof e>"u","creator must be a function or undefined, "+O(e)+" given")}var ue=Qv;function rg(e,t){var r=t||e;return ue.get("nodeMap")?ue.get("nodeMap").get(r):null}var le=rg,il="DqElm.RunOptions";function ag(e,t){if(t=t||300,e.length>t){var r=e.indexOf(">");e=e.substring(0,r+1)}return e}function ng(e){if(!(e!=null&&e.outerHTML))return"";var t=e.outerHTML;return!t&&typeof E.XMLSerializer=="function"&&(t=new E.XMLSerializer().serializeToString(e)),ag(t||"")}var gr=Fe(function(t,r,a){var n,i,o,u;if((n=r)!==null&&n!==void 0||(r=null),(i=a)!==null&&i!==void 0||(a={}),!r){var s;r=(s=ue.get(il))!==null&&s!==void 0?s:{}}if(this.spec=a,t instanceof $e?(this._virtualNode=t,this._element=t.actualNode):(this._element=t,this._virtualNode=le(t)),this.fromFrame=((o=this.spec.selector)===null||o===void 0?void 0:o.length)>1,this._includeElementInJson=r.elementRef,r.absolutePaths&&(this._options={toRoot:!0}),this.nodeIndexes=[],Array.isArray(this.spec.nodeIndexes)?this.nodeIndexes=this.spec.nodeIndexes:typeof((u=this._virtualNode)===null||u===void 0?void 0:u.nodeIndex)=="number"&&(this.nodeIndexes=[this._virtualNode.nodeIndex]),this.source=null,!x._audit.noHtml){var l;this.source=(l=this.spec.source)!==null&&l!==void 0?l:ng(this._element)}return this});gr.prototype={get selector(){return this.spec.selector||[Hi(this.element,this._options)]},get ancestry(){return this.spec.ancestry||[an(this.element)]},get xpath(){return this.spec.xpath||[nl(this.element)]},get element(){return this._element},toJSON:function(){var t={selector:this.selector,source:this.source,xpath:this.xpath,ancestry:this.ancestry,nodeIndexes:this.nodeIndexes,fromFrame:this.fromFrame};return this._includeElementInJson&&(t.element=this._element),t}},gr.fromFrame=function(t,r,a){var n=gr.mergeSpecs(t,a);return new gr(a.element,r,n)},gr.mergeSpecs=function(t,r){return de({},t,{selector:[].concat(ne(r.selector),ne(t.selector)),ancestry:[].concat(ne(r.ancestry),ne(t.ancestry)),xpath:[].concat(ne(r.xpath),ne(t.xpath)),nodeIndexes:[].concat(ne(r.nodeIndexes),ne(t.nodeIndexes)),fromFrame:!0})},gr.setRunOptions=function(t){var r=t.elementRef,a=t.absolutePaths;ue.set(il,{elementRef:r,absolutePaths:a})};var Ht=gr;function ig(e,t,r,a){return{isAsync:!1,async:function(){return this.isAsync=!0,function(i){i instanceof Error?a(i):(e.result=i,r(e))}},data:function(i){e.data=i},relatedNodes:function(i){E.Node&&(i instanceof E.Node||i instanceof $e?i=[i]:i=Zs(i),e.relatedNodes=[],i.forEach(function(o){if(o instanceof $e&&(o=o.actualNode),o instanceof E.Node){var u=new Ht(o);e.relatedNodes.push(u)}}))}}}var $i=ig;function $t(e){return Ui(e,new Map)}function Ui(e,t){var r,a;if(e===null||O(e)!=="object"||(r=E)!==null&&r!==void 0&&r.Node&&e instanceof E.Node||(a=E)!==null&&a!==void 0&&a.HTMLCollection&&e instanceof E.HTMLCollection||"nodeName"in e&&"nodeType"in e&&"ownerDocument"in e)return e;if(t.has(e))return t.get(e);if(Array.isArray(e)){var n=[];return t.set(e,n),e.forEach(function(u){n.push(Ui(u,t))}),n}var i={};t.set(e,i);for(var o in e)i[o]=Ui(e[o],t);return i}var og=ot(ws()),sa=new og.CssSelectorParser;sa.registerSelectorPseudos("not"),sa.registerSelectorPseudos("is"),sa.registerNestingOperators(">"),sa.registerAttrEqualityMods("^","$","*","~");var ol=sa;function Gi(e,t){var r=nn(t);return r.some(function(a){return Or(e,a)})}function ug(e,t){return e.props.nodeType===1&&(t.tag==="*"||e.props.nodeName===t.tag)}function sg(e,t){return!t.classes||t.classes.every(function(r){return e.hasClass(r.value)})}function lg(e,t){return!t.attributes||t.attributes.every(function(r){var a=e.attr(r.key);return a!==null&&r.test(a)})}function cg(e,t){return!t.id||e.props.id===t.id}function dg(e,t){return!!(!t.pseudos||t.pseudos.every(function(r){if(r.name==="not")return!r.expressions.some(function(a){return Or(e,a)});if(r.name==="is")return r.expressions.some(function(a){return Or(e,a)});throw new Error("the pseudo selector "+r.name+" has not yet been implemented")}))}function ul(e,t){return ug(e,t)&&sg(e,t)&&lg(e,t)&&cg(e,t)&&dg(e,t)}var la=function(){var e=/(?=[\-\[\]{}()*+?.\\\^$|,#\s])/g,t="\\";return function(r){return r.replace(e,t)}}(),Wi=/\\/g;function fg(e){if(e)return e.map(function(t){var r=t.name.replace(Wi,""),a=(t.value||"").replace(Wi,""),n,i;switch(t.operator){case"^=":i=new RegExp("^"+la(a));break;case"$=":i=new RegExp(la(a)+"$");break;case"~=":i=new RegExp("(^|\\s)"+la(a)+"(\\s|$)");break;case"|=":i=new RegExp("^"+la(a)+"(-|$)");break;case"=":n=function(u){return a===u};break;case"*=":n=function(u){return u&&u.includes(a)};break;case"!=":n=function(u){return a!==u};break;default:n=function(u){return u!==null}}return a===""&&/^[*$^]=$/.test(t.operator)&&(n=function(){return!1}),n||(n=function(u){return u&&i.test(u)}),{key:r,value:a,type:typeof t.value>"u"?"attrExist":"attrValue",test:n}})}function pg(e){if(e)return e.map(function(t){return t=t.replace(Wi,""),{value:t,regexp:new RegExp("(^|\\s)"+la(t)+"(\\s|$)")}})}function mg(e){if(e)return e.map(function(t){var r;return["is","not"].includes(t.name)&&(r=t.value,r=r.selectors?r.selectors:[r],r=sl(r)),{name:t.name,expressions:r,value:t.value}})}function sl(e){return e.map(function(t){for(var r=[],a=t.rule;a;)r.push({tag:a.tagName?a.tagName.toLowerCase():"*",combinator:a.nestingOperator?a.nestingOperator:" ",id:a.id,attributes:fg(a.attrs),classes:pg(a.classNames),pseudos:mg(a.pseudos)}),a=a.rule;return r})}function nn(e){var t=ol.parse(e);return t=t.selectors?t.selectors:[t],sl(t)}function ll(e,t,r,a){if(!e)return!1;for(var n=Array.isArray(t),i=n?t[r]:t,o=ul(e,i);!o&&a&&e.parent;)e=e.parent,o=ul(e,i);if(r>0){if([" ",">"].includes(i.combinator)===!1)throw new Error("axe.utils.matchesExpression does not support the combinator: "+i.combinator);o=o&&ll(e.parent,t,r-1,i.combinator===" ")}return o}function Or(e,t,r){return ll(e,t,t.length-1,r)}function hg(e,t){for(;e;){if(Gi(e,t))return e;if(typeof e.parent>"u")throw new TypeError("Cannot resolve parent for non-DOM nodes");e=e.parent}return null}var ut=hg;function on(){}function Yi(e){if(typeof e!="function")throw new TypeError("Queue methods require functions as arguments")}function vg(){var e=[],t=0,r=0,a=on,n=!1,i,o=function(p){i=p,setTimeout(function(){i!=null&&vr("Uncaught error (of queue)",i)},1)},u=o;function s(f){return function(p){e[f]=p,r-=1,!r&&a!==on&&(n=!0,a(e))}}function l(f){return a=on,u(f),e}function c(){for(var f=e.length;t>>((t&3)<<3)&255;return dl}}for(var fl=typeof E.Buffer=="function"?E.Buffer:Array,Xi=[],pl={},Pr=0;Pr<256;Pr++)Xi[Pr]=(Pr+256).toString(16).substr(1),pl[Xi[Pr]]=Pr;function gg(e,t,r){var a=t&&r||0,n=0;for(t=t||[],e.toLowerCase().replace(/[0-9a-f]{2}/g,function(i){n<16&&(t[a+n++]=pl[i])});n<16;)t[a+n++]=0;return t}function Zi(e,t){var r=t||0,a=Xi;return a[e[r++]]+a[e[r++]]+a[e[r++]]+a[e[r++]]+"-"+a[e[r++]]+a[e[r++]]+"-"+a[e[r++]]+a[e[r++]]+"-"+a[e[r++]]+a[e[r++]]+"-"+a[e[r++]]+a[e[r++]]+a[e[r++]]+a[e[r++]]+a[e[r++]]+a[e[r++]]}var Qt=Ir(),bg=[Qt[0]|1,Qt[1],Qt[2],Qt[3],Qt[4],Qt[5]],ml=(Qt[6]<<8|Qt[7])&16383,Ji=0,Qi=0;function hl(e,t,r){var a=t&&r||0,n=t||[];e=e||{};var i=e.clockseq!=null?e.clockseq:ml,o=e.msecs!=null?e.msecs:new Date().getTime(),u=e.nsecs!=null?e.nsecs:Qi+1,s=o-Ji+(u-Qi)/1e4;if(s<0&&e.clockseq==null&&(i=i+1&16383),(s<0||o>Ji)&&e.nsecs==null&&(u=0),u>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Ji=o,Qi=u,ml=i,o+=122192928e5;var l=((o&268435455)*1e4+u)%4294967296;n[a++]=l>>>24&255,n[a++]=l>>>16&255,n[a++]=l>>>8&255,n[a++]=l&255;var c=o/4294967296*1e4&268435455;n[a++]=c>>>8&255,n[a++]=c&255,n[a++]=c>>>24&15|16,n[a++]=c>>>16&255,n[a++]=i>>>8|128,n[a++]=i&255;for(var d=e.node||bg,f=0;f<6;f++)n[a+f]=d[f];return t||Zi(n)}function br(e,t,r){var a=t&&r||0;typeof e=="string"&&(t=e=="binary"?new fl(16):null,e=null),e=e||{};var n=e.random||(e.rng||Ir)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,t)for(var i=0;i<16;i++)t[a+i]=n[i];return t||Zi(n)}Mr=br,Mr.v1=hl,Mr.v4=br,Mr.parse=gg,Mr.unparse=Zi,Mr.BufferClass=fl,x._uuid=hl();var yg=br,wg=Object.freeze(["EvalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"]);function Dg(e){var t=e.topic,r=e.channelId,a=e.message,n=e.messageId,i=e.keepalive,o={channelId:r,topic:t,messageId:n,keepalive:!!i,source:vl()};return a instanceof Error?o.error={name:a.name,message:a.message,stack:a.stack}:o.payload=a,JSON.stringify(o)}function _g(e){var t;try{t=JSON.parse(e)}catch{return}if(xg(t)){var r=t,a=r.topic,n=r.channelId,i=r.messageId,o=r.keepalive,u=O(t.error)==="object"?Eg(t.error):t.payload;return{topic:a,message:u,messageId:i,channelId:n,keepalive:!!o}}}function xg(e){return e!==null&&O(e)==="object"&&typeof e.channelId=="string"&&e.source===vl()}function Eg(e){var t=e.message||"Unknown error occurred",r=wg.includes(e.name)?e.name:"Error",a=E[r]||Error;return e.stack&&(t+=`
-`+e.stack.replace(e.message,"")),new a(t)}function vl(){var e="axeAPI",t="";return typeof x<"u"&&x._audit&&x._audit.application&&(e=x._audit.application),typeof x<"u"&&(t=x.version),e+"."+t}function eo(e){bl(e),me(E.parent===e,"Source of the response must be the parent window.")}function gl(e){bl(e),me(e.parent===E,"Respondable target must be a frame in the current window")}function bl(e){me(E!==e,"Messages can not be sent to the same window.")}var un={};function Ag(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;me(!un[e],"A replyHandler already exists for this message channel."),un[e]={replyHandler:t,sendToParent:r}}function Cg(e){return un[e]}function Fg(e){delete un[e]}var sn=[];function to(){var e="".concat(br(),":").concat(br());return sn.includes(e)?to():(sn.push(e),e)}function Tg(e){return sn.includes(e)?!1:(sn.push(e),!0)}function ro(e,t,r,a){if(r?eo(e):gl(e),t.message instanceof Error&&!r)return x.log(t.message),!1;var n=Dg(de({messageId:to()},t)),i=x._audit.allowedOrigins;return!i||!i.length?!1:(typeof a=="function"&&Ag(t.channelId,a,r),i.forEach(function(o){try{e.postMessage(n,o)}catch(u){throw u instanceof e.DOMException?new Error('allowedOrigins value "'.concat(o,'" is not a valid origin')):u}}),!0)}function Rg(e,t,r){if(!e.parent!==E)return x.log(t);try{ro(e,{topic:null,channelId:r,message:t,messageId:to(),keepalive:!0},!0)}catch(a){return x.log(a)}}function yl(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return function(n,i,o){var u={channelId:t,message:n,keepalive:i};ro(e,u,r,o)}}function Sg(e){var t=x._audit.allowedOrigins;return t&&t.includes("*")||t.includes(e)}function kg(e,t){var r=e.origin,a=e.data,n=e.source;try{var i=_g(a)||{},o=i.channelId,u=i.message,s=i.messageId;if(!Sg(r)||!Tg(s))return;if(u instanceof Error&&n.parent!==E)return x.log(u),!1;try{if(i.topic){var l=yl(n,o);eo(n),t(i,l)}else Og(n,i)}catch(c){Rg(n,c,o)}}catch(c){return x.log(c),!1}}function Og(e,t){var r=t.channelId,a=t.message,n=t.keepalive,i=Cg(r)||{},o=i.replyHandler,u=i.sendToParent;if(o){u?eo(e):gl(e);var s=yl(e,r,u);!n&&r&&Fg(r);try{o(a,n,s)}catch(l){x.log(l),s(l,n)}}}var Mg={open:function(t){if(typeof E.addEventListener=="function"){var r=function(n){kg(n,t)};return E.addEventListener("message",r,!1),function(){E.removeEventListener("message",r,!1)}}},post:function(t,r,a){return typeof E.addEventListener!="function"?!1:ro(t,r,!1,a)}};function wl(e){e.updateMessenger(Mg)}var ln,Dl,ao={};function Et(e,t,r,a,n){var i={topic:t,message:r,channelId:"".concat(br(),":").concat(br()),keepalive:a};return Dl(e,i,n)}function Ig(e,t){var r=e.topic,a=e.message,n=e.keepalive,i=ao[r];if(i)try{i(a,n,t)}catch(o){x.log(o),t(o,n)}}Et.updateMessenger=function(t){var r=t.open,a=t.post;me(typeof r=="function","open callback must be a function"),me(typeof a=="function","post callback must be a function"),ln&&ln();var n=r(Ig);n?(me(typeof n=="function","open callback must return a cleanup function"),ln=n):ln=null,Dl=a},Et.subscribe=function(t,r){me(typeof r=="function","Subscriber callback must be a function"),me(!ao[t],"Topic ".concat(t," is already registered to.")),ao[t]=r},Et.isInFrame=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:E;return!!t.frameElement},wl(Et);function _l(e,t,r,a){var n,i,o=e.contentWindow,u=(n=(i=t.options)===null||i===void 0?void 0:i.pingWaitTime)!==null&&n!==void 0?n:500;if(!o){vr("Frame does not have a content window",e),r(null);return}if(u===0){xl(e,t,r,a);return}var s=setTimeout(function(){s=setTimeout(function(){t.debug?a(El("No response from frame",e)):r(null)},0)},u);Et(o,"axe.ping",null,void 0,function(){clearTimeout(s),xl(e,t,r,a)})}function xl(e,t,r,a){var n,i,o=(n=(i=t.options)===null||i===void 0?void 0:i.frameWaitTime)!==null&&n!==void 0?n:6e4,u=e.contentWindow,s=setTimeout(function(){a(El("Axe in frame timed out",e))},o);Et(u,"axe.start",t,void 0,function(l){clearTimeout(s),l instanceof Error?a(l):r(l)})}function El(e,t){var r;return x._tree&&(r=Hi(t)),new Error(e+": "+(r||t))}var ca=null,da={update:function(t){me(O(t)==="object","serializer must be an object"),ca=t},toSpec:function(t){return da.dqElmToSpec(new Ht(t))},dqElmToSpec:function(t,r){var a;return t instanceof Ht?(r&&(t=Pg(t,r)),typeof((a=ca)===null||a===void 0?void 0:a.toSpec)=="function"?ca.toSpec(t):t.toJSON()):t},mergeSpecs:function(t,r){var a;return typeof((a=ca)===null||a===void 0?void 0:a.mergeSpecs)=="function"?ca.mergeSpecs(t,r):Ht.mergeSpecs(t,r)},mapRawResults:function(t){return t.map(function(r){return de({},r,{nodes:da.mapRawNodeResults(r.nodes)})})},mapRawNodeResults:function(t){return t?.map(function(r){var a=r.node,n=qe(r,Ep);n.node=da.dqElmToSpec(a);for(var i=0,o=["any","all","none"];i0||i===0&&r.selector.length0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=Math.max(e?.length,t?.length),a=0;a(t.left|0)&&(e.top|0)<(t.bottom|0)&&(e.bottom|0)>(t.top|0)}var Rl=Fe(function(t){var r=[];if(!t)return r;var a=t.getComputedStylePropertyValue("overflow");return a==="hidden"&&r.push(t),r.concat(Rl(t.parent))}),ma=Rl,Xg=/rect\s*\(([0-9]+)px,?\s*([0-9]+)px,?\s*([0-9]+)px,?\s*([0-9]+)px\s*\)/,Zg=/(\w+)\((\d+)/;function Sl(e){return["style","script","noscript","template"].includes(e.props.nodeName)}function kl(e){return e.props.nodeName==="area"?!1:e.getComputedStylePropertyValue("display")==="none"}function Ol(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.isAncestor;return!r&&["hidden","collapse"].includes(e.getComputedStylePropertyValue("visibility"))}function Ml(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.isAncestor;return!!r&&e.getComputedStylePropertyValue("content-visibility")==="hidden"}function Il(e){return e.attr("aria-hidden")==="true"}function Pl(e){return e.getComputedStylePropertyValue("opacity")==="0"}function Nl(e){var t=Yt(e.actualNode),r=parseInt(e.getComputedStylePropertyValue("height")),a=parseInt(e.getComputedStylePropertyValue("width"));return!!t&&(r===0||a===0)}function Ll(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.isAncestor;if(r)return!1;var a=e.getComputedStylePropertyValue("position");if(a==="fixed")return!1;var n=ma(e);if(!n.length)return!1;var i=e.boundingClientRect;return n.some(function(o){if(a==="absolute"&&!Jg(e,o)&&o.getComputedStylePropertyValue("position")==="static")return!1;var u=o.boundingClientRect;return u.width<2||u.height<2?!0:!uo(i,u)})}function Bl(e){var t=e.getComputedStylePropertyValue("clip").match(Xg),r=e.getComputedStylePropertyValue("clip-path").match(Zg);if(t&&t.length===5){var a=e.getComputedStylePropertyValue("position");if(["fixed","absolute"].includes(a))return t[3]-t[1]<=0&&t[2]-t[4]<=0}if(r){var n=r[1],i=parseInt(r[2],10);switch(n){case"inset":return i>=50;case"circle":return i===0}}return!1}function so(e,t){var r=ut(e,"map");if(!r)return!0;var a=r.attr("name");if(!a)return!0;var n=pa(e.actualNode);if(!n||n.nodeType!==9)return!0;var i=ft(x._tree,'img[usemap="#'.concat(Oe(a),'"]'));return!i||!i.length?!0:i.some(function(o){return!t(o)})}function ql(e){var t;if(((t=e.parent)===null||t===void 0?void 0:t.props.nodeName)!=="details")return!1;if(e.props.nodeName==="summary"){var r=e.parent.children.find(function(a){return a.props.nodeName==="summary"});if(r===e)return!1}return!e.parent.hasAttr("open")}function Jg(e,t){for(var r=e.parent;r&&r!==t;){if(["relative","sticky"].includes(r.getComputedStylePropertyValue("position")))return!0;r=r.parent}return!1}var Qg=[kl,Ol,Ml,ql];function er(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.skipAncestors,a=t.isAncestor,n=a===void 0?!1:a;return e=we(e).vNode,r?jl(e,n):zl(e,n)}var jl=Fe(function(t,r){return Sl(t)?!0:t.actualNode?!!(Qg.some(function(a){return a(t,{isAncestor:r})})||!t.actualNode.isConnected):!1}),zl=Fe(function(t,r){return jl(t,r)?!0:t.parent?zl(t.parent,!0):!1});function Vl(e){if(e.assignedSlot)return Vl(e.assignedSlot);if(e.parentNode){var t=e.parentNode;if(t.nodeType===1)return t;if(t.host)return t.host}return null}var Ue=Vl;function eb(e){if(!e.nodeType&&e.document&&(e=e.document),e.nodeType===9){var t=e.documentElement,r=e.body;return{left:t&&t.scrollLeft||r&&r.scrollLeft||0,top:t&&t.scrollTop||r&&r.scrollTop||0}}return{left:e.scrollLeft,top:e.scrollTop}}var Hl=eb;function tb(e){var t=Hl(L),r=t.left,a=t.top,n=e.getBoundingClientRect();return{top:n.top+a,right:n.right+r,bottom:n.bottom+a,left:n.left+r,width:n.right-n.left,height:n.bottom-n.top}}var lo=tb;function rb(e){var t=e.document,r=t.documentElement;if(e.innerWidth)return{width:e.innerWidth,height:e.innerHeight};if(r)return{width:r.clientWidth,height:r.clientHeight};var a=t.body;return{width:a.clientWidth,height:a.clientHeight}}var pn=rb;function ab(e,t){for(e=Ue(e);e&&e.nodeName.toLowerCase()!=="html";){if(e.scrollTop&&(t+=e.scrollTop,t>=0))return!1;e=Ue(e)}return!0}function nb(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.isAncestor;if(r)return!1;var a=we(e),n=a.domNode;if(n){var i,o=L.documentElement,u=E.getComputedStyle(n),s=E.getComputedStyle(L.body||o).getPropertyValue("direction"),l=lo(n);if(l.bottom<0&&(ab(n,l.bottom)||u.position==="absolute"))return!0;if(l.left===0&&l.right===0)return!1;if(s==="ltr"){if(l.right<=0)return!0}else if(i=Math.max(o.scrollWidth,pn(E).width),l.left>=i)return!0;return!1}}var mn=nb,ib=[Pl,Nl,Ll,Bl,mn];function st(e){return e=we(e).vNode,co(e)}var co=Fe(function(t,r){return t.actualNode&&t.props.nodeName==="area"?!so(t,co):er(t,{skipAncestors:!0,isAncestor:r})||t.actualNode&&ib.some(function(a){return a(t,{isAncestor:r})})?!1:t.parent?co(t.parent,!0):!0});function hn(e,t){var r=Math.min(e.top,t.top),a=Math.max(e.right,t.right),n=Math.max(e.bottom,t.bottom),i=Math.min(e.left,t.left);return new E.DOMRect(i,r,a-i,n-r)}function vn(e,t){var r=e.x,a=e.y,n=t.top,i=t.right,o=t.bottom,u=t.left;return a>=n&&r<=i&&a<=o&&r>=u}var $l={};Dt($l,{getBoundingRect:function(){return hn},getIntersectionRect:function(){return gn},getOffset:function(){return Gl},getRectCenter:function(){return ha},hasVisualOverlap:function(){return fo},isPointInRect:function(){return vn},rectHasMinimumSize:function(){return Gt},rectsOverlap:function(){return uo},splitRects:function(){return po}});function gn(e,t){var r=Math.max(e.left,t.left),a=Math.min(e.right,t.right),n=Math.max(e.top,t.top),i=Math.min(e.bottom,t.bottom);return r>=a||n>=i?null:new E.DOMRect(r,n,a-r,i-n)}function ha(e){var t=e.left,r=e.top,a=e.width,n=e.height;return new E.DOMPoint(t+a/2,r+n/2)}var Ul=.05;function Gt(e,t){var r=t.width,a=t.height;return r+Ul>=e&&a+Ul>=e}function Gl(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:12,a=Dn(e),n=Dn(t);if(!a.length||!n.length)return null;var i=a.reduce(hn),o=ha(i),u=1/0,s=Ce(n),l;try{for(s.s();!(l=s.n()).done;){var c=l.value;if(vn(o,c))return 0;var d=ob(o,c),f=Wl(o,d);u=Math.min(u,f)}}catch(g){s.e(g)}finally{s.f()}var p=lc(t);if(Gt(r*2,p))return u;var m=n.reduce(hn),h=ha(m),v=Wl(o,h)-r;return Math.max(0,Math.min(u,v))}function ob(e,t){var r,a;return e.xt.right?r=t.right:r=e.x,e.yt.bottom?a=t.bottom:a=e.y,{x:r,y:a}}function Wl(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}function fo(e,t){var r=e.boundingClientRect,a=t.boundingClientRect;return r.left>=a.right||r.right<=a.left||r.top>=a.bottom||r.bottom<=a.top?!1:wo(e,t)>0}function po(e,t){var r=[e],a=Ce(t),n;try{var i=function(){var u=n.value;if(r=r.reduce(function(s,l){return s.concat(ub(l,u))},[]),r.length>4e3)throw new Error("splitRects: Too many rects")};for(a.s();!(n=a.n()).done;)i()}catch(o){a.e(o)}finally{a.f()}return r}function ub(e,t){var r=e.top,a=e.left,n=e.bottom,i=e.right,o=rt.top,u=at.left,s=[];if(bn(t.top,r,n)&&u&&s.push({top:r,left:a,bottom:t.top,right:i}),bn(t.right,a,i)&&o&&s.push({top:r,left:t.right,bottom:n,right:i}),bn(t.bottom,r,n)&&u&&s.push({top:t.bottom,right:i,bottom:n,left:a}),bn(t.left,a,i)&&o&&s.push({top:r,left:a,bottom:n,right:t.left}),s.length===0){if(lb(e,t))return[];s.push(e)}return s.map(sb)}var bn=function(t,r,a){return t>r&&t=t.top&&e.left>=t.left&&e.bottom<=t.bottom&&e.right<=t.right}var Yl=0,cb=.1,Kl=.2,Xl=.3,mo=0;function yr(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:L.body,t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(ue.get("gridCreated")&&!r)return se.gridSize;if(ue.set("gridCreated",!0),!r){var a,n=le(L.documentElement);if(n||(n=new fu(L.documentElement)),mo=0,n._stackingOrder=[Ql(Yl,mo++,null)],(a=t)!==null&&a!==void 0||(t=new ho),ec(t,n),Yt(n.actualNode)){var i=new ho(n);n._subGrid=i}}for(var o=L.createTreeWalker(e,E.NodeFilter.SHOW_ELEMENT,null,!1),u=r?o.nextNode():o.currentNode;u;){var s=le(u);s&&s.parent?r=s.parent:u.assignedSlot?r=le(u.assignedSlot):u.parentElement?r=le(u.parentElement):u.parentNode&&le(u.parentNode)&&(r=le(u.parentNode)),s||(s=new x.VirtualNode(u,r)),s._stackingOrder=db(s,r,mo++);var l=mb(s,r),c=l?l._subGrid:t;if(Yt(s.actualNode)){var d=new ho(s);s._subGrid=d}var f=s.boundingClientRect;f.width!==0&&f.height!==0&&st(u)&&ec(c,s),fn(u)&&yr(u.shadowRoot,c,s),u=o.nextNode()}return se.gridSize}function Zl(e,t){var r=e.getComputedStylePropertyValue("position"),a=e.getComputedStylePropertyValue("z-index");if(r==="fixed"||r==="sticky"||a!=="auto"&&r!=="static"||e.getComputedStylePropertyValue("opacity")!=="1")return!0;var n=e.getComputedStylePropertyValue("-webkit-transform")||e.getComputedStylePropertyValue("-ms-transform")||e.getComputedStylePropertyValue("transform")||"none";if(n!=="none")return!0;var i=e.getComputedStylePropertyValue("mix-blend-mode");if(i&&i!=="normal")return!0;var o=e.getComputedStylePropertyValue("filter");if(o&&o!=="none")return!0;var u=e.getComputedStylePropertyValue("perspective");if(u&&u!=="none")return!0;var s=e.getComputedStylePropertyValue("clip-path");if(s&&s!=="none")return!0;var l=e.getComputedStylePropertyValue("-webkit-mask")||e.getComputedStylePropertyValue("mask")||"none";if(l!=="none")return!0;var c=e.getComputedStylePropertyValue("-webkit-mask-image")||e.getComputedStylePropertyValue("mask-image")||"none";if(c!=="none")return!0;var d=e.getComputedStylePropertyValue("-webkit-mask-border")||e.getComputedStylePropertyValue("mask-border")||"none";if(d!=="none"||e.getComputedStylePropertyValue("isolation")==="isolate")return!0;var f=e.getComputedStylePropertyValue("will-change");if(f==="transform"||f==="opacity"||e.getComputedStylePropertyValue("-webkit-overflow-scrolling")==="touch")return!0;var p=e.getComputedStylePropertyValue("contain");return!!(["layout","paint","strict","content"].includes(p)||a!=="auto"&&Jl(t))}function Jl(e){if(!e)return!1;var t=e.getComputedStylePropertyValue("display");return["flex","inline-flex","grid","inline-grid"].includes(t)}function db(e,t,r){var a=t._stackingOrder.slice();if(Zl(e,t)){var n=a.findIndex(function(o){var u=o.stackLevel;return[Yl,Kl,Xl].includes(u)});n!==-1&&a.splice(n,a.length-n)}var i=fb(e,t);return i!==null&&a.push(Ql(i,r,e)),a}function Ql(e,t,r){return{stackLevel:e,treeOrder:t,vNode:r}}function fb(e,t){var r=pb(e,t);return["auto","0"].includes(r)?e.getComputedStylePropertyValue("position")!=="static"?Xl:e.getComputedStylePropertyValue("float")!=="none"?Kl:Zl(e,t)?cb:null:parseInt(r)}function pb(e,t){var r=e.getComputedStylePropertyValue("position");return r==="static"&&!Jl(t)?"auto":e.getComputedStylePropertyValue("z-index")}function mb(e,t){for(var r=null,a=[e];t;){if(Yt(t.actualNode)){r=t;break}if(t._scrollRegionParent){r=t._scrollRegionParent;break}a.push(t),t=le(t.actualNode.parentElement||t.actualNode.parentNode)}return a.forEach(function(n){return n._scrollRegionParent=r}),r}function ec(e,t){var r=ma(t);t.clientRects.forEach(function(a){var n,i=r.reduce(function(u,s){return u&&gn(u,s.boundingClientRect)},a);if(i){(n=t._grid)!==null&&n!==void 0||(t._grid=e);var o=e.getGridPositionOfRect(i);e.loopGridPosition(o,function(u){u.includes(t)||u.push(t)})}})}var ho=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;Tt(this,e),this.container=t,this.cells=[]}return Rt(e,[{key:"toGridIndex",value:function(r){return Math.floor(r/se.gridSize)}},{key:"getCellFromPoint",value:function(r){var a,n,i=r.x,o=r.y;me(this.boundaries,"Grid does not have cells added");var u=this.toGridIndex(o),s=this.toGridIndex(i);me(vn({y:u,x:s},this.boundaries),"Element midpoint exceeds the grid bounds");var l=(a=this.cells[u-this.cells._negativeIndex])!==null&&a!==void 0?a:[];return(n=l[s-l._negativeIndex])!==null&&n!==void 0?n:[]}},{key:"loopGridPosition",value:function(r,a){var n=r,i=n.left,o=n.right,u=n.top,s=n.bottom;this.boundaries&&(r=hn(this.boundaries,r)),this.boundaries=r,tc(this.cells,u,s,function(l,c){tc(l,i,o,function(d,f){a(d,{row:c,col:f})})})}},{key:"getGridPositionOfRect",value:function(r){var a=r.top,n=r.right,i=r.bottom,o=r.left,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return a=this.toGridIndex(a-u),n=this.toGridIndex(n+u-1),i=this.toGridIndex(i+u-1),o=this.toGridIndex(o-u),new E.DOMRect(o,a,n-o,i-a)}}])}();function tc(e,t,r,a){var n;if((n=e._negativeIndex)!==null&&n!==void 0||(e._negativeIndex=0),t1&&arguments[1]!==void 0?arguments[1]:0;if(yr(),!((t=e._grid)!==null&&t!==void 0&&(t=t.cells)!==null&&t!==void 0&&t.length))return[];var a=e.boundingClientRect,n=e._grid,i=vo(e),o=n.getGridPositionOfRect(a,r),u=[];return n.loopGridPosition(o,function(s){var l=Ce(s),c;try{for(l.s();!(c=l.n()).done;){var d=c.value;d&&d!==e&&!u.includes(d)&&i===vo(d)&&u.push(d)}}catch(f){l.e(f)}finally{l.f()}}),u}var vo=Fe(function(e){return e?e.getComputedStylePropertyValue("position")==="fixed"?!0:vo(e.parent):!1}),hb=Fe(function(){var t;if(!x._tree)return null;var r=Bt(x._tree[0],"dialog[open]",function(n){var i=n.boundingClientRect,o=L.elementsFromPoint(i.left+1,i.top+1);return o.includes(n.actualNode)&&st(n)});if(!r.length)return null;var a=r.find(function(n){var i=n.boundingClientRect,o=L.elementsFromPoint(i.left-10,i.top-10);return o.includes(n.actualNode)});return a||((t=r.find(function(n){var i,o=(i=vb(n))!==null&&i!==void 0?i:{},u=o.vNode,s=o.rect;if(!u)return!1;var l=L.elementsFromPoint(s.left+1,s.top+1);return!l.includes(u.actualNode)}))!==null&&t!==void 0?t:null)}),rc=hb;function vb(e){yr();var t=x._tree[0]._grid,r=new E.DOMRect(0,0,E.innerWidth,E.innerHeight);if(t)for(var a=0;a1&&arguments[1]!==void 0?arguments[1]:{},r=t.skipAncestors,a=t.isAncestor;return r?ac(e,a):nc(e,a)}var ac=Fe(function(t,r){if(t.hasAttr("inert"))return!0;if(!r&&t.actualNode){var a=rc();if(a&&!Ut(a,t))return!0}return!1}),nc=Fe(function(t,r){return ac(t,r)?!0:t.parent?nc(t.parent,!0):!1}),gb=["button","command","fieldset","keygen","optgroup","option","select","textarea","input"];function bb(e){return gb.includes(e)}function yb(e){var t=we(e),r=t.vNode;if(bb(r.props.nodeName)&&r.hasAttr("disabled")||wn(r))return!0;for(var a=r.parent,n=[],i=!1;a&&a.shadowId===r.shadowId&&!i&&(n.push(a),a.props.nodeName!=="legend");){if(a._inDisabledFieldset!==void 0){i=a._inDisabledFieldset;break}a.props.nodeName==="fieldset"&&a.hasAttr("disabled")&&(i=!0),a=a.parent}return n.forEach(function(o){return o._inDisabledFieldset=i}),i?!0:r.props.nodeName!=="area"&&r.actualNode?er(r):!1}var go=yb,wb=/^\/\#/,Db=/^#[!/]/;function bo(e){var t,r=e.getAttribute("href");if(!r||r==="#")return!1;if(wb.test(r))return!0;var a=e.hash,n=e.protocol,i=e.hostname,o=e.port,u=e.pathname;if(Db.test(a))return!1;if(r.charAt(0)==="#")return!0;if(typeof((t=E.location)===null||t===void 0?void 0:t.origin)!="string"||E.location.origin.indexOf("://")===-1)return null;var s=E.location.origin+E.location.pathname,l;return i?l="".concat(n,"//").concat(i).concat(o?":".concat(o):""):l=E.location.origin,u?l+=(u[0]!=="/"?"/":"")+u:l+=E.location.pathname,l===s}function _b(e,t){var r=e.getAttribute(t);if(!r||t==="href"&&!bo(e))return null;r.indexOf("#")!==-1&&(r=decodeURIComponent(r.substr(r.indexOf("#")+1)));var a=L.getElementById(r);return a||(a=L.getElementsByName(r),a.length?a[0]:null)}var yo=_b;function wo(e,t){yr();for(var r=Math.max(e._stackingOrder.length,t._stackingOrder.length),a=0;a"u")return-1;if(typeof e._stackingOrder[a]>"u"||t._stackingOrder[a].stackLevel>e._stackingOrder[a].stackLevel)return 1;if(t._stackingOrder[a].stackLevel2&&arguments[2]!==void 0?arguments[2]:!1,a=ha(t),n=e.getCellFromPoint(a)||[],i=Math.floor(a.x),o=Math.floor(a.y),u=n.filter(function(l){return l.clientRects.some(function(c){var d=c.left,f=c.top;return i=Math.floor(d)&&o=Math.floor(f)})}),s=e.container;return s&&(u=Do(s._grid,s.boundingClientRect,!0).concat(u)),r||(u=u.sort(wo).map(function(l){return l.actualNode}).concat(L.documentElement).filter(function(l,c,d){return d.indexOf(l)===c})),u}function xb(e){yr();var t=le(e),r=t._grid;return r?Do(r,t.boundingClientRect):[]}var uc=xb;function Eb(e){var t=ft(e,"*"),r=t.filter(function(a){var n=a.isFocusable,i=Lt(a.actualNode.getAttribute("tabindex"));return i!==null?n&&i>=0:n});return r}var sc=Eb;function Ab(e){var t=we(e),r=t.vNode;if(!r||go(r))return!1;switch(r.props.nodeName){case"a":case"area":if(r.hasAttr("href"))return!0;break;case"input":return r.props.type!=="hidden";case"textarea":case"select":case"summary":case"button":return!0;case"details":return!ft(r,"summary").length}return!1}var _o=Ab;function Ne(e){var t=we(e),r=t.vNode;if(r.props.nodeType!==1||go(r))return!1;if(_o(r))return!0;var a=Lt(r.attr("tabindex"));return a!==null}function vt(e){var t=we(e),r=t.vNode;if(r.props.nodeType!==1)return!1;var a=Lt(r.attr("tabindex"));return a<=-1?!1:Ne(r)}var Dn=Fe(Cb);function Cb(e){var t=e.boundingClientRect,r=yn(e).filter(function(n){return fo(e,n)&&n.getComputedStylePropertyValue("pointer-events")!=="none"&&!Fb(e,n)});if(!r.length)return[t];var a=r.map(function(n){var i=n.boundingClientRect;return i});return po(t,a)}function Fb(e,t){return Ut(e,t)&&!vt(t)}var lc=Fe(Tb);function Tb(e,t){var r=Dn(e);return Rb(r,t)}function Rb(e,t){return e.reduce(function(r,a){var n=Gt(t,r),i=Gt(t,a);if(n!==i)return n?r:a;var o=r.width*r.height,u=a.width*a.height;return o>u?r:a})}var va={};Dt(va,{accessibleText:function(){return wr},accessibleTextVirtual:function(){return Ge},autocomplete:function(){return Er},formControlValue:function(){return jc},formControlValueMethods:function(){return So},hasUnicode:function(){return Io},isHumanInterpretable:function(){return No},isIconLigature:function(){return Po},isValidAutocomplete:function(){return Wc},label:function(){return i0},labelText:function(){return ko},labelVirtual:function(){return Cn},nativeElementType:function(){return u0},nativeTextAlternative:function(){return Vc},nativeTextMethods:function(){return zc},removeUnicode:function(){return Da},sanitize:function(){return re},subtreeText:function(){return tr},titleText:function(){return xn},unsupported:function(){return Sc},visible:function(){return Yc},visibleTextNodes:function(){return s0},visibleVirtual:function(){return It}});function Sb(e,t){e=e.actualNode||e;try{var r=Xe(e),a=[],n=e.getAttribute(t);if(n){n=Ze(n);for(var i=0;i1&&arguments[1]!==void 0?arguments[1]:{},r=we(e),a=r.vNode;if(a?.props.nodeType!==1||a.props.nodeType!==1||t.inLabelledByContext||t.inControlContext||!a.attr("aria-labelledby"))return"";var n=Ot(a,"aria-labelledby").filter(function(i){return i});return n.reduce(function(i,o){var u=wr(o,de({inLabelledByContext:!0,startNode:t.startNode||a},t));return i?"".concat(i," ").concat(u):u},"")}var ga=Ob;function ba(e){var t=we(e),r=t.vNode;return r?.props.nodeType!==1?"":r.attr("aria-label")||""}var Mb={"aria-activedescendant":{type:"idref",allowEmpty:!0},"aria-atomic":{type:"boolean",global:!0},"aria-autocomplete":{type:"nmtoken",values:["inline","list","both","none"]},"aria-braillelabel":{type:"string",allowEmpty:!0,global:!0},"aria-brailleroledescription":{type:"string",allowEmpty:!0,global:!0},"aria-busy":{type:"boolean",global:!0},"aria-checked":{type:"nmtoken",values:["false","mixed","true","undefined"]},"aria-colcount":{type:"int",minValue:-1},"aria-colindex":{type:"int",minValue:1},"aria-colspan":{type:"int",minValue:1},"aria-controls":{type:"idrefs",allowEmpty:!0,global:!0},"aria-current":{type:"nmtoken",allowEmpty:!0,values:["page","step","location","date","time","true","false"],global:!0},"aria-describedby":{type:"idrefs",allowEmpty:!0,global:!0},"aria-description":{type:"string",allowEmpty:!0,global:!0},"aria-details":{type:"idref",allowEmpty:!0,global:!0},"aria-disabled":{type:"boolean",global:!0},"aria-dropeffect":{type:"nmtokens",values:["copy","execute","link","move","none","popup"],global:!0},"aria-errormessage":{type:"idref",allowEmpty:!0,global:!0},"aria-expanded":{type:"nmtoken",values:["true","false","undefined"]},"aria-flowto":{type:"idrefs",allowEmpty:!0,global:!0},"aria-grabbed":{type:"nmtoken",values:["true","false","undefined"],global:!0},"aria-haspopup":{type:"nmtoken",allowEmpty:!0,values:["true","false","menu","listbox","tree","grid","dialog"],global:!0},"aria-hidden":{type:"nmtoken",values:["true","false","undefined"],global:!0},"aria-invalid":{type:"nmtoken",values:["grammar","false","spelling","true"],global:!0},"aria-keyshortcuts":{type:"string",allowEmpty:!0,global:!0},"aria-label":{type:"string",allowEmpty:!0,global:!0},"aria-labelledby":{type:"idrefs",allowEmpty:!0,global:!0},"aria-level":{type:"int",minValue:1},"aria-live":{type:"nmtoken",values:["assertive","off","polite"],global:!0},"aria-modal":{type:"boolean"},"aria-multiline":{type:"boolean"},"aria-multiselectable":{type:"boolean"},"aria-orientation":{type:"nmtoken",values:["horizontal","undefined","vertical"]},"aria-owns":{type:"idrefs",allowEmpty:!0,global:!0},"aria-placeholder":{type:"string",allowEmpty:!0},"aria-posinset":{type:"int",minValue:1},"aria-pressed":{type:"nmtoken",values:["false","mixed","true","undefined"]},"aria-readonly":{type:"boolean"},"aria-relevant":{type:"nmtokens",values:["additions","all","removals","text"],global:!0},"aria-required":{type:"boolean"},"aria-roledescription":{type:"string",allowEmpty:!0,global:!0},"aria-rowcount":{type:"int",minValue:-1},"aria-rowindex":{type:"int",minValue:1},"aria-rowspan":{type:"int",minValue:0},"aria-selected":{type:"nmtoken",values:["false","true","undefined"]},"aria-setsize":{type:"int",minValue:-1},"aria-sort":{type:"nmtoken",values:["ascending","descending","none","other"]},"aria-valuemax":{type:"decimal"},"aria-valuemin":{type:"decimal"},"aria-valuenow":{type:"decimal"},"aria-valuetext":{type:"string",allowEmpty:!0}},cc=Mb,Ib={alert:{type:"structure",allowedAttrs:["aria-expanded"],superclassRole:["section"]},alertdialog:{type:"window",allowedAttrs:["aria-expanded","aria-modal"],superclassRole:["alert","dialog"],accessibleNameRequired:!0},application:{type:"landmark",allowedAttrs:["aria-activedescendant","aria-expanded"],superclassRole:["structure"],accessibleNameRequired:!0},article:{type:"structure",allowedAttrs:["aria-posinset","aria-setsize","aria-expanded"],superclassRole:["document"]},banner:{type:"landmark",allowedAttrs:["aria-expanded"],superclassRole:["landmark"]},blockquote:{type:"structure",superclassRole:["section"]},button:{type:"widget",allowedAttrs:["aria-expanded","aria-pressed"],superclassRole:["command"],accessibleNameRequired:!0,nameFromContent:!0,childrenPresentational:!0},caption:{type:"structure",requiredContext:["figure","table","grid","treegrid"],superclassRole:["section"],prohibitedAttrs:["aria-label","aria-labelledby"]},cell:{type:"structure",requiredContext:["row"],allowedAttrs:["aria-colindex","aria-colspan","aria-rowindex","aria-rowspan","aria-expanded"],superclassRole:["section"],nameFromContent:!0},checkbox:{type:"widget",requiredAttrs:["aria-checked"],allowedAttrs:["aria-readonly","aria-expanded","aria-required"],superclassRole:["input"],accessibleNameRequired:!0,nameFromContent:!0,childrenPresentational:!0},code:{type:"structure",superclassRole:["section"],prohibitedAttrs:["aria-label","aria-labelledby"]},columnheader:{type:"structure",requiredContext:["row"],allowedAttrs:["aria-sort","aria-colindex","aria-colspan","aria-expanded","aria-readonly","aria-required","aria-rowindex","aria-rowspan","aria-selected"],superclassRole:["cell","gridcell","sectionhead"],accessibleNameRequired:!1,nameFromContent:!0},combobox:{type:"widget",requiredAttrs:["aria-expanded","aria-controls"],allowedAttrs:["aria-owns","aria-autocomplete","aria-readonly","aria-required","aria-activedescendant","aria-orientation"],superclassRole:["select"],accessibleNameRequired:!0},command:{type:"abstract",superclassRole:["widget"]},complementary:{type:"landmark",allowedAttrs:["aria-expanded"],superclassRole:["landmark"]},composite:{type:"abstract",superclassRole:["widget"]},contentinfo:{type:"landmark",allowedAttrs:["aria-expanded"],superclassRole:["landmark"]},comment:{type:"structure",allowedAttrs:["aria-level","aria-posinset","aria-setsize"],superclassRole:["article"]},definition:{type:"structure",allowedAttrs:["aria-expanded"],superclassRole:["section"]},deletion:{type:"structure",superclassRole:["section"],prohibitedAttrs:["aria-label","aria-labelledby"]},dialog:{type:"window",allowedAttrs:["aria-expanded","aria-modal"],superclassRole:["window"],accessibleNameRequired:!0},directory:{type:"structure",deprecated:!0,allowedAttrs:["aria-expanded"],superclassRole:["list"],nameFromContent:!0},document:{type:"structure",allowedAttrs:["aria-expanded"],superclassRole:["structure"]},emphasis:{type:"structure",superclassRole:["section"],prohibitedAttrs:["aria-label","aria-labelledby"]},feed:{type:"structure",requiredOwned:["article"],allowedAttrs:["aria-expanded"],superclassRole:["list"]},figure:{type:"structure",allowedAttrs:["aria-expanded"],superclassRole:["section"],nameFromContent:!0},form:{type:"landmark",allowedAttrs:["aria-expanded"],superclassRole:["landmark"]},grid:{type:"composite",requiredOwned:["rowgroup","row"],allowedAttrs:["aria-level","aria-multiselectable","aria-readonly","aria-activedescendant","aria-colcount","aria-expanded","aria-rowcount"],superclassRole:["composite","table"],accessibleNameRequired:!1},gridcell:{type:"widget",requiredContext:["row"],allowedAttrs:["aria-readonly","aria-required","aria-selected","aria-colindex","aria-colspan","aria-expanded","aria-rowindex","aria-rowspan"],superclassRole:["cell","widget"],nameFromContent:!0},group:{type:"structure",allowedAttrs:["aria-activedescendant","aria-expanded"],superclassRole:["section"]},heading:{type:"structure",requiredAttrs:["aria-level"],allowedAttrs:["aria-expanded"],superclassRole:["sectionhead"],accessibleNameRequired:!1,nameFromContent:!0},img:{type:"structure",allowedAttrs:["aria-expanded"],superclassRole:["section"],accessibleNameRequired:!0,childrenPresentational:!0},input:{type:"abstract",superclassRole:["widget"]},insertion:{type:"structure",superclassRole:["section"],prohibitedAttrs:["aria-label","aria-labelledby"]},landmark:{type:"abstract",superclassRole:["section"]},link:{type:"widget",allowedAttrs:["aria-expanded"],superclassRole:["command"],accessibleNameRequired:!0,nameFromContent:!0},list:{type:"structure",requiredOwned:["listitem"],allowedAttrs:["aria-expanded"],superclassRole:["section"]},listbox:{type:"widget",requiredOwned:["group","option"],allowedAttrs:["aria-multiselectable","aria-readonly","aria-required","aria-activedescendant","aria-expanded","aria-orientation"],superclassRole:["select"],accessibleNameRequired:!0},listitem:{type:"structure",requiredContext:["list"],allowedAttrs:["aria-level","aria-posinset","aria-setsize","aria-expanded"],superclassRole:["section"],nameFromContent:!0},log:{type:"structure",allowedAttrs:["aria-expanded"],superclassRole:["section"]},main:{type:"landmark",allowedAttrs:["aria-expanded"],superclassRole:["landmark"]},marquee:{type:"structure",allowedAttrs:["aria-expanded"],superclassRole:["section"]},math:{type:"structure",allowedAttrs:["aria-expanded"],superclassRole:["section"],childrenPresentational:!0},menu:{type:"composite",requiredOwned:["group","menuitemradio","menuitem","menuitemcheckbox","menu","separator"],allowedAttrs:["aria-activedescendant","aria-expanded","aria-orientation"],superclassRole:["select"]},menubar:{type:"composite",requiredOwned:["group","menuitemradio","menuitem","menuitemcheckbox","menu","separator"],allowedAttrs:["aria-activedescendant","aria-expanded","aria-orientation"],superclassRole:["menu"]},menuitem:{type:"widget",requiredContext:["menu","menubar","group"],allowedAttrs:["aria-posinset","aria-setsize","aria-expanded"],superclassRole:["command"],accessibleNameRequired:!0,nameFromContent:!0},menuitemcheckbox:{type:"widget",requiredContext:["menu","menubar","group"],requiredAttrs:["aria-checked"],allowedAttrs:["aria-expanded","aria-posinset","aria-readonly","aria-setsize"],superclassRole:["checkbox","menuitem"],accessibleNameRequired:!0,nameFromContent:!0,childrenPresentational:!0},menuitemradio:{type:"widget",requiredContext:["menu","menubar","group"],requiredAttrs:["aria-checked"],allowedAttrs:["aria-expanded","aria-posinset","aria-readonly","aria-setsize"],superclassRole:["menuitemcheckbox","radio"],accessibleNameRequired:!0,nameFromContent:!0,childrenPresentational:!0},meter:{type:"structure",requiredAttrs:["aria-valuenow"],allowedAttrs:["aria-valuemax","aria-valuemin","aria-valuetext"],superclassRole:["range"],accessibleNameRequired:!0,childrenPresentational:!0},mark:{type:"structure",superclassRole:["section"],prohibitedAttrs:["aria-label","aria-labelledby"]},navigation:{type:"landmark",allowedAttrs:["aria-expanded"],superclassRole:["landmark"]},none:{type:"structure",superclassRole:["structure"],prohibitedAttrs:["aria-label","aria-labelledby"]},note:{type:"structure",allowedAttrs:["aria-expanded"],superclassRole:["section"]},option:{type:"widget",requiredContext:["group","listbox"],allowedAttrs:["aria-selected","aria-checked","aria-posinset","aria-setsize"],superclassRole:["input"],accessibleNameRequired:!0,nameFromContent:!0,childrenPresentational:!0},paragraph:{type:"structure",superclassRole:["section"],prohibitedAttrs:["aria-label","aria-labelledby"]},presentation:{type:"structure",superclassRole:["structure"],prohibitedAttrs:["aria-label","aria-labelledby"]},progressbar:{type:"widget",allowedAttrs:["aria-expanded","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],superclassRole:["range"],accessibleNameRequired:!0,childrenPresentational:!0},radio:{type:"widget",requiredAttrs:["aria-checked"],allowedAttrs:["aria-posinset","aria-setsize","aria-required"],superclassRole:["input"],accessibleNameRequired:!0,nameFromContent:!0,childrenPresentational:!0},radiogroup:{type:"composite",allowedAttrs:["aria-readonly","aria-required","aria-activedescendant","aria-expanded","aria-orientation"],superclassRole:["select"],accessibleNameRequired:!1},range:{type:"abstract",superclassRole:["widget"]},region:{type:"landmark",allowedAttrs:["aria-expanded"],superclassRole:["landmark"],accessibleNameRequired:!1},roletype:{type:"abstract",superclassRole:[]},row:{type:"structure",requiredContext:["grid","rowgroup","table","treegrid"],requiredOwned:["cell","columnheader","gridcell","rowheader"],allowedAttrs:["aria-colindex","aria-level","aria-rowindex","aria-selected","aria-activedescendant","aria-expanded","aria-posinset","aria-setsize"],superclassRole:["group","widget"],nameFromContent:!0},rowgroup:{type:"structure",requiredContext:["grid","table","treegrid"],requiredOwned:["row"],superclassRole:["structure"],nameFromContent:!0},rowheader:{type:"structure",requiredContext:["row"],allowedAttrs:["aria-sort","aria-colindex","aria-colspan","aria-expanded","aria-readonly","aria-required","aria-rowindex","aria-rowspan","aria-selected"],superclassRole:["cell","gridcell","sectionhead"],accessibleNameRequired:!1,nameFromContent:!0},scrollbar:{type:"widget",requiredAttrs:["aria-valuenow"],allowedAttrs:["aria-controls","aria-orientation","aria-valuemax","aria-valuemin","aria-valuetext"],superclassRole:["range"],childrenPresentational:!0},search:{type:"landmark",allowedAttrs:["aria-expanded"],superclassRole:["landmark"]},searchbox:{type:"widget",allowedAttrs:["aria-activedescendant","aria-autocomplete","aria-multiline","aria-placeholder","aria-readonly","aria-required"],superclassRole:["textbox"],accessibleNameRequired:!0},section:{type:"abstract",superclassRole:["structure"],nameFromContent:!0},sectionhead:{type:"abstract",superclassRole:["structure"],nameFromContent:!0},select:{type:"abstract",superclassRole:["composite","group"]},separator:{type:"structure",requiredAttrs:["aria-valuenow"],allowedAttrs:["aria-valuemax","aria-valuemin","aria-orientation","aria-valuetext"],superclassRole:["structure","widget"],childrenPresentational:!0},slider:{type:"widget",requiredAttrs:["aria-valuenow"],allowedAttrs:["aria-valuemax","aria-valuemin","aria-orientation","aria-readonly","aria-required","aria-valuetext"],superclassRole:["input","range"],accessibleNameRequired:!0,childrenPresentational:!0},spinbutton:{type:"widget",allowedAttrs:["aria-valuemax","aria-valuemin","aria-readonly","aria-required","aria-activedescendant","aria-valuetext","aria-valuenow"],superclassRole:["composite","input","range"],accessibleNameRequired:!0},status:{type:"structure",allowedAttrs:["aria-expanded"],superclassRole:["section"]},strong:{type:"structure",superclassRole:["section"],prohibitedAttrs:["aria-label","aria-labelledby"]},structure:{type:"abstract",superclassRole:["roletype"]},subscript:{type:"structure",superclassRole:["section"],prohibitedAttrs:["aria-label","aria-labelledby"]},superscript:{type:"structure",superclassRole:["section"],prohibitedAttrs:["aria-label","aria-labelledby"]},switch:{type:"widget",requiredAttrs:["aria-checked"],allowedAttrs:["aria-expanded","aria-readonly","aria-required"],superclassRole:["checkbox"],accessibleNameRequired:!0,nameFromContent:!0,childrenPresentational:!0},suggestion:{type:"structure",requiredOwned:["insertion","deletion"],superclassRole:["section"],prohibitedAttrs:["aria-label","aria-labelledby"]},tab:{type:"widget",requiredContext:["tablist"],allowedAttrs:["aria-posinset","aria-selected","aria-setsize","aria-expanded"],superclassRole:["sectionhead","widget"],nameFromContent:!0,childrenPresentational:!0},table:{type:"structure",requiredOwned:["rowgroup","row"],allowedAttrs:["aria-colcount","aria-rowcount","aria-expanded"],superclassRole:["section"],accessibleNameRequired:!1,nameFromContent:!0},tablist:{type:"composite",requiredOwned:["tab"],allowedAttrs:["aria-level","aria-multiselectable","aria-orientation","aria-activedescendant","aria-expanded"],superclassRole:["composite"]},tabpanel:{type:"structure",allowedAttrs:["aria-expanded"],superclassRole:["section"],accessibleNameRequired:!1},term:{type:"structure",allowedAttrs:["aria-expanded"],superclassRole:["section"],nameFromContent:!0},text:{type:"structure",superclassRole:["section"],nameFromContent:!0},textbox:{type:"widget",allowedAttrs:["aria-activedescendant","aria-autocomplete","aria-multiline","aria-placeholder","aria-readonly","aria-required"],superclassRole:["input"],accessibleNameRequired:!0},time:{type:"structure",superclassRole:["section"]},timer:{type:"structure",allowedAttrs:["aria-expanded"],superclassRole:["status"]},toolbar:{type:"structure",allowedAttrs:["aria-orientation","aria-activedescendant","aria-expanded"],superclassRole:["group"],accessibleNameRequired:!0},tooltip:{type:"structure",allowedAttrs:["aria-expanded"],superclassRole:["section"],nameFromContent:!0},tree:{type:"composite",requiredOwned:["group","treeitem"],allowedAttrs:["aria-multiselectable","aria-required","aria-activedescendant","aria-expanded","aria-orientation"],superclassRole:["select"],accessibleNameRequired:!1},treegrid:{type:"composite",requiredOwned:["rowgroup","row"],allowedAttrs:["aria-activedescendant","aria-colcount","aria-expanded","aria-level","aria-multiselectable","aria-orientation","aria-readonly","aria-required","aria-rowcount"],superclassRole:["grid","tree"],accessibleNameRequired:!1},treeitem:{type:"widget",requiredContext:["group","tree"],allowedAttrs:["aria-checked","aria-expanded","aria-level","aria-posinset","aria-selected","aria-setsize"],superclassRole:["listitem","option"],accessibleNameRequired:!0,nameFromContent:!0},widget:{type:"abstract",superclassRole:["roletype"]},window:{type:"abstract",superclassRole:["roletype"]}},dc=Ib,Pb={"doc-abstract":{type:"section",allowedAttrs:["aria-expanded"],superclassRole:["section"]},"doc-acknowledgments":{type:"landmark",allowedAttrs:["aria-expanded"],superclassRole:["landmark"]},"doc-afterword":{type:"landmark",allowedAttrs:["aria-expanded"],superclassRole:["landmark"]},"doc-appendix":{type:"landmark",allowedAttrs:["aria-expanded"],superclassRole:["landmark"]},"doc-backlink":{type:"link",allowedAttrs:["aria-expanded"],nameFromContent:!0,superclassRole:["link"]},"doc-biblioentry":{type:"listitem",allowedAttrs:["aria-expanded","aria-level","aria-posinset","aria-setsize"],superclassRole:["listitem"],deprecated:!0},"doc-bibliography":{type:"landmark",allowedAttrs:["aria-expanded"],superclassRole:["landmark"]},"doc-biblioref":{type:"link",allowedAttrs:["aria-expanded"],nameFromContent:!0,superclassRole:["link"]},"doc-chapter":{type:"landmark",allowedAttrs:["aria-expanded"],superclassRole:["landmark"]},"doc-colophon":{type:"section",allowedAttrs:["aria-expanded"],superclassRole:["section"]},"doc-conclusion":{type:"landmark",allowedAttrs:["aria-expanded"],superclassRole:["landmark"]},"doc-cover":{type:"img",allowedAttrs:["aria-expanded"],superclassRole:["img"]},"doc-credit":{type:"section",allowedAttrs:["aria-expanded"],superclassRole:["section"]},"doc-credits":{type:"landmark",allowedAttrs:["aria-expanded"],superclassRole:["landmark"]},"doc-dedication":{type:"section",allowedAttrs:["aria-expanded"],superclassRole:["section"]},"doc-endnote":{type:"listitem",allowedAttrs:["aria-expanded","aria-level","aria-posinset","aria-setsize"],superclassRole:["listitem"],deprecated:!0},"doc-endnotes":{type:"landmark",allowedAttrs:["aria-expanded"],superclassRole:["landmark"]},"doc-epigraph":{type:"section",allowedAttrs:["aria-expanded"],superclassRole:["section"]},"doc-epilogue":{type:"landmark",allowedAttrs:["aria-expanded"],superclassRole:["landmark"]},"doc-errata":{type:"landmark",allowedAttrs:["aria-expanded"],superclassRole:["landmark"]},"doc-example":{type:"section",allowedAttrs:["aria-expanded"],superclassRole:["section"]},"doc-footnote":{type:"section",allowedAttrs:["aria-expanded"],superclassRole:["section"]},"doc-foreword":{type:"landmark",allowedAttrs:["aria-expanded"],superclassRole:["landmark"]},"doc-glossary":{type:"landmark",allowedAttrs:["aria-expanded"],superclassRole:["landmark"]},"doc-glossref":{type:"link",allowedAttrs:["aria-expanded"],nameFromContent:!0,superclassRole:["link"]},"doc-index":{type:"navigation",allowedAttrs:["aria-expanded"],superclassRole:["navigation"]},"doc-introduction":{type:"landmark",allowedAttrs:["aria-expanded"],superclassRole:["landmark"]},"doc-noteref":{type:"link",allowedAttrs:["aria-expanded"],nameFromContent:!0,superclassRole:["link"]},"doc-notice":{type:"note",allowedAttrs:["aria-expanded"],superclassRole:["note"]},"doc-pagebreak":{type:"separator",allowedAttrs:["aria-expanded","aria-orientation"],superclassRole:["separator"],childrenPresentational:!0},"doc-pagelist":{type:"navigation",allowedAttrs:["aria-expanded"],superclassRole:["navigation"]},"doc-part":{type:"landmark",allowedAttrs:["aria-expanded"],superclassRole:["landmark"]},"doc-preface":{type:"landmark",allowedAttrs:["aria-expanded"],superclassRole:["landmark"]},"doc-prologue":{type:"landmark",allowedAttrs:["aria-expanded"],superclassRole:["landmark"]},"doc-pullquote":{type:"none",superclassRole:["none"]},"doc-qna":{type:"section",allowedAttrs:["aria-expanded"],superclassRole:["section"]},"doc-subtitle":{type:"sectionhead",allowedAttrs:["aria-expanded"],superclassRole:["sectionhead"]},"doc-tip":{type:"note",allowedAttrs:["aria-expanded"],superclassRole:["note"]},"doc-toc":{type:"navigation",allowedAttrs:["aria-expanded"],superclassRole:["navigation"]}},Nb=Pb,Lb={"graphics-document":{type:"structure",superclassRole:["document"],accessibleNameRequired:!0},"graphics-object":{type:"structure",superclassRole:["group"],nameFromContent:!0},"graphics-symbol":{type:"structure",superclassRole:["img"],accessibleNameRequired:!0,childrenPresentational:!0}},Bb=Lb,qb={a:{variant:{href:{matches:"[href]",contentTypes:["interactive","phrasing","flow"],allowedRoles:["button","checkbox","menuitem","menuitemcheckbox","menuitemradio","option","radio","switch","tab","treeitem","doc-backlink","doc-biblioref","doc-glossref","doc-noteref"],namingMethods:["subtreeText"]},default:{contentTypes:["phrasing","flow"],allowedRoles:!0}}},abbr:{contentTypes:["phrasing","flow"],allowedRoles:!0},address:{contentTypes:["flow"],allowedRoles:!0},area:{variant:{href:{matches:"[href]",allowedRoles:!1},default:{allowedRoles:["button","link"]}},contentTypes:["phrasing","flow"],namingMethods:["altText"]},article:{contentTypes:["sectioning","flow"],allowedRoles:["feed","presentation","none","document","application","main","region"],shadowRoot:!0},aside:{contentTypes:["sectioning","flow"],allowedRoles:["feed","note","presentation","none","region","search","doc-dedication","doc-example","doc-footnote","doc-glossary","doc-pullquote","doc-tip"]},audio:{variant:{controls:{matches:"[controls]",contentTypes:["interactive","embedded","phrasing","flow"]},default:{contentTypes:["embedded","phrasing","flow"]}},allowedRoles:["application"],chromiumRole:"Audio"},b:{contentTypes:["phrasing","flow"],allowedRoles:!0},base:{allowedRoles:!1,noAriaAttrs:!0},bdi:{contentTypes:["phrasing","flow"],allowedRoles:!0},bdo:{contentTypes:["phrasing","flow"],allowedRoles:!0},blockquote:{contentTypes:["flow"],allowedRoles:!0,shadowRoot:!0},body:{allowedRoles:!1,shadowRoot:!0},br:{contentTypes:["phrasing","flow"],allowedRoles:["presentation","none"],namingMethods:["titleText","singleSpace"]},button:{contentTypes:["interactive","phrasing","flow"],allowedRoles:["checkbox","combobox","gridcell","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","separator","slider","switch","tab","treeitem"],namingMethods:["subtreeText"]},canvas:{allowedRoles:!0,contentTypes:["embedded","phrasing","flow"],chromiumRole:"Canvas"},caption:{allowedRoles:!1},cite:{contentTypes:["phrasing","flow"],allowedRoles:!0},code:{contentTypes:["phrasing","flow"],allowedRoles:!0},col:{allowedRoles:!1,noAriaAttrs:!0},colgroup:{allowedRoles:!1,noAriaAttrs:!0},data:{contentTypes:["phrasing","flow"],allowedRoles:!0},datalist:{contentTypes:["phrasing","flow"],allowedRoles:!1,noAriaAttrs:!0,implicitAttrs:{"aria-multiselectable":"false"}},dd:{allowedRoles:!1},del:{contentTypes:["phrasing","flow"],allowedRoles:!0},dfn:{contentTypes:["phrasing","flow"],allowedRoles:!0},details:{contentTypes:["interactive","flow"],allowedRoles:!1},dialog:{contentTypes:["flow"],allowedRoles:["alertdialog"]},div:{contentTypes:["flow"],allowedRoles:!0,shadowRoot:!0},dl:{contentTypes:["flow"],allowedRoles:["group","list","presentation","none"],chromiumRole:"DescriptionList"},dt:{allowedRoles:["listitem"]},em:{contentTypes:["phrasing","flow"],allowedRoles:!0},embed:{contentTypes:["interactive","embedded","phrasing","flow"],allowedRoles:["application","document","img","presentation","none"],chromiumRole:"EmbeddedObject"},fieldset:{contentTypes:["flow"],allowedRoles:["none","presentation","radiogroup"],namingMethods:["fieldsetLegendText"]},figcaption:{allowedRoles:["group","none","presentation"]},figure:{contentTypes:["flow"],allowedRoles:!0,namingMethods:["figureText","titleText"]},footer:{contentTypes:["flow"],allowedRoles:["group","none","presentation","doc-footnote"],shadowRoot:!0},form:{contentTypes:["flow"],allowedRoles:["form","search","none","presentation"]},h1:{contentTypes:["heading","flow"],allowedRoles:["none","presentation","tab","doc-subtitle"],shadowRoot:!0,implicitAttrs:{"aria-level":"1"}},h2:{contentTypes:["heading","flow"],allowedRoles:["none","presentation","tab","doc-subtitle"],shadowRoot:!0,implicitAttrs:{"aria-level":"2"}},h3:{contentTypes:["heading","flow"],allowedRoles:["none","presentation","tab","doc-subtitle"],shadowRoot:!0,implicitAttrs:{"aria-level":"3"}},h4:{contentTypes:["heading","flow"],allowedRoles:["none","presentation","tab","doc-subtitle"],shadowRoot:!0,implicitAttrs:{"aria-level":"4"}},h5:{contentTypes:["heading","flow"],allowedRoles:["none","presentation","tab","doc-subtitle"],shadowRoot:!0,implicitAttrs:{"aria-level":"5"}},h6:{contentTypes:["heading","flow"],allowedRoles:["none","presentation","tab","doc-subtitle"],shadowRoot:!0,implicitAttrs:{"aria-level":"6"}},head:{allowedRoles:!1,noAriaAttrs:!0},header:{contentTypes:["flow"],allowedRoles:["group","none","presentation","doc-footnote"],shadowRoot:!0},hgroup:{contentTypes:["heading","flow"],allowedRoles:!0},hr:{contentTypes:["flow"],allowedRoles:["none","presentation","doc-pagebreak"],namingMethods:["titleText","singleSpace"]},html:{allowedRoles:!1,noAriaAttrs:!0},i:{contentTypes:["phrasing","flow"],allowedRoles:!0},iframe:{contentTypes:["interactive","embedded","phrasing","flow"],allowedRoles:["application","document","img","none","presentation"],chromiumRole:"Iframe"},img:{variant:{nonEmptyAlt:{matches:[{attributes:{alt:"/.+/"}},{hasAccessibleName:!0}],allowedRoles:["button","checkbox","link","math","menuitem","menuitemcheckbox","menuitemradio","meter","option","progressbar","radio","scrollbar","separator","slider","switch","tab","treeitem","doc-cover"]},usemap:{matches:"[usemap]",contentTypes:["interactive","embedded","flow"]},default:{allowedRoles:["presentation","none"],contentTypes:["embedded","flow"]}},namingMethods:["altText"]},input:{variant:{button:{matches:{properties:{type:"button"}},allowedRoles:["checkbox","combobox","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","switch","tab"]},buttonType:{matches:{properties:{type:["button","submit","reset"]}},namingMethods:["valueText","titleText","buttonDefaultText"]},checkboxPressed:{matches:{properties:{type:"checkbox"},attributes:{"aria-pressed":"/.*/"}},allowedRoles:["button","menuitemcheckbox","option","switch"],implicitAttrs:{"aria-checked":"false"}},checkbox:{matches:{properties:{type:"checkbox"},attributes:{"aria-pressed":null}},allowedRoles:["menuitemcheckbox","option","switch"],implicitAttrs:{"aria-checked":"false"}},noRoles:{matches:{properties:{type:["color","date","datetime-local","file","month","number","password","range","reset","submit","time","week"]}},allowedRoles:!1},hidden:{matches:{properties:{type:"hidden"}},contentTypes:["flow"],allowedRoles:!1,noAriaAttrs:!0},image:{matches:{properties:{type:"image"}},allowedRoles:["link","menuitem","menuitemcheckbox","menuitemradio","radio","switch"],namingMethods:["altText","valueText","labelText","titleText","buttonDefaultText"]},radio:{matches:{properties:{type:"radio"}},allowedRoles:["menuitemradio"],implicitAttrs:{"aria-checked":"false"}},textWithList:{matches:{properties:{type:"text"},attributes:{list:"/.*/"}},allowedRoles:!1},default:{contentTypes:["interactive","flow"],allowedRoles:["combobox","searchbox","spinbutton"],implicitAttrs:{"aria-valuenow":""},namingMethods:["labelText","placeholderText"]}}},ins:{contentTypes:["phrasing","flow"],allowedRoles:!0},kbd:{contentTypes:["phrasing","flow"],allowedRoles:!0},label:{contentTypes:["interactive","phrasing","flow"],allowedRoles:!1,chromiumRole:"Label"},legend:{allowedRoles:!1},li:{allowedRoles:["menuitem","menuitemcheckbox","menuitemradio","option","none","presentation","radio","separator","tab","treeitem","doc-biblioentry","doc-endnote"],implicitAttrs:{"aria-setsize":"1","aria-posinset":"1"}},link:{contentTypes:["phrasing","flow"],allowedRoles:!1,noAriaAttrs:!0},main:{contentTypes:["flow"],allowedRoles:!1,shadowRoot:!0},map:{contentTypes:["phrasing","flow"],allowedRoles:!1,noAriaAttrs:!0},math:{contentTypes:["embedded","phrasing","flow"],allowedRoles:!1},mark:{contentTypes:["phrasing","flow"],allowedRoles:!0},menu:{contentTypes:["flow"],allowedRoles:["directory","group","listbox","menu","menubar","none","presentation","radiogroup","tablist","toolbar","tree"]},meta:{variant:{itemprop:{matches:"[itemprop]",contentTypes:["phrasing","flow"]}},allowedRoles:!1,noAriaAttrs:!0},meter:{contentTypes:["phrasing","flow"],allowedRoles:!1,chromiumRole:"progressbar"},nav:{contentTypes:["sectioning","flow"],allowedRoles:["doc-index","doc-pagelist","doc-toc","menu","menubar","none","presentation","tablist"],shadowRoot:!0},noscript:{contentTypes:["phrasing","flow"],allowedRoles:!1,noAriaAttrs:!0},object:{variant:{usemap:{matches:"[usemap]",contentTypes:["interactive","embedded","phrasing","flow"]},default:{contentTypes:["embedded","phrasing","flow"]}},allowedRoles:["application","document","img"],chromiumRole:"PluginObject"},ol:{contentTypes:["flow"],allowedRoles:["directory","group","listbox","menu","menubar","none","presentation","radiogroup","tablist","toolbar","tree"]},optgroup:{allowedRoles:!1},option:{allowedRoles:!1,implicitAttrs:{"aria-selected":"false"}},output:{contentTypes:["phrasing","flow"],allowedRoles:!0,namingMethods:["subtreeText"]},p:{contentTypes:["flow"],allowedRoles:!0,shadowRoot:!0},param:{allowedRoles:!1,noAriaAttrs:!0},picture:{contentTypes:["phrasing","flow"],allowedRoles:!1,noAriaAttrs:!0},pre:{contentTypes:["flow"],allowedRoles:!0},progress:{contentTypes:["phrasing","flow"],allowedRoles:!1,implicitAttrs:{"aria-valuemax":"100","aria-valuemin":"0","aria-valuenow":"0"}},q:{contentTypes:["phrasing","flow"],allowedRoles:!0},rp:{allowedRoles:!0},rt:{allowedRoles:!0},ruby:{contentTypes:["phrasing","flow"],allowedRoles:!0},s:{contentTypes:["phrasing","flow"],allowedRoles:!0},samp:{contentTypes:["phrasing","flow"],allowedRoles:!0},script:{contentTypes:["phrasing","flow"],allowedRoles:!1,noAriaAttrs:!0},search:{contentTypes:["flow"],allowedRoles:["form","group","none","presentation","region","search"]},section:{contentTypes:["sectioning","flow"],allowedRoles:["alert","alertdialog","application","banner","complementary","contentinfo","dialog","document","feed","group","log","main","marquee","navigation","none","note","presentation","search","status","tabpanel","doc-abstract","doc-acknowledgments","doc-afterword","doc-appendix","doc-bibliography","doc-chapter","doc-colophon","doc-conclusion","doc-credit","doc-credits","doc-dedication","doc-endnotes","doc-epigraph","doc-epilogue","doc-errata","doc-example","doc-foreword","doc-glossary","doc-index","doc-introduction","doc-notice","doc-pagelist","doc-part","doc-preface","doc-prologue","doc-pullquote","doc-qna","doc-toc"],shadowRoot:!0},select:{variant:{combobox:{matches:{attributes:{multiple:null,size:[null,"1"]}},allowedRoles:["menu"]},default:{allowedRoles:!1}},contentTypes:["interactive","phrasing","flow"],implicitAttrs:{"aria-valuenow":""},namingMethods:["labelText"]},slot:{contentTypes:["phrasing","flow"],allowedRoles:!1,noAriaAttrs:!0},small:{contentTypes:["phrasing","flow"],allowedRoles:!0},source:{allowedRoles:!1,noAriaAttrs:!0},span:{contentTypes:["phrasing","flow"],allowedRoles:!0,shadowRoot:!0},strong:{contentTypes:["phrasing","flow"],allowedRoles:!0},style:{allowedRoles:!1,noAriaAttrs:!0},svg:{contentTypes:["embedded","phrasing","flow"],allowedRoles:!0,chromiumRole:"SVGRoot",namingMethods:["svgTitleText"]},sub:{contentTypes:["phrasing","flow"],allowedRoles:!0},summary:{allowedRoles:!1,namingMethods:["subtreeText"]},sup:{contentTypes:["phrasing","flow"],allowedRoles:!0},table:{contentTypes:["flow"],allowedRoles:!0,namingMethods:["tableCaptionText","tableSummaryText"]},tbody:{allowedRoles:!0},template:{contentTypes:["phrasing","flow"],allowedRoles:!1,noAriaAttrs:!0},textarea:{contentTypes:["interactive","phrasing","flow"],allowedRoles:!1,implicitAttrs:{"aria-valuenow":"","aria-multiline":"true"},namingMethods:["labelText","placeholderText"]},tfoot:{allowedRoles:!0},thead:{allowedRoles:!0},time:{contentTypes:["phrasing","flow"],allowedRoles:!0},title:{allowedRoles:!1,noAriaAttrs:!0},td:{allowedRoles:!0},th:{allowedRoles:!0},tr:{allowedRoles:!0},track:{allowedRoles:!1,noAriaAttrs:!0},u:{contentTypes:["phrasing","flow"],allowedRoles:!0},ul:{contentTypes:["flow"],allowedRoles:["directory","group","listbox","menu","menubar","none","presentation","radiogroup","tablist","toolbar","tree"]},var:{contentTypes:["phrasing","flow"],allowedRoles:!0},video:{variant:{controls:{matches:"[controls]",contentTypes:["interactive","embedded","phrasing","flow"]},default:{contentTypes:["embedded","phrasing","flow"]}},allowedRoles:["application"],chromiumRole:"video"},wbr:{contentTypes:["phrasing","flow"],allowedRoles:["presentation","none"]}},jb=qb,zb={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Vb=zb,fc={ariaAttrs:cc,ariaRoles:de({},dc,Nb,Bb),htmlElms:jb,cssColors:Vb},Br=de({},fc);function Hb(e){Object.keys(Br).forEach(function(t){e[t]&&(Br[t]=no(Br[t],e[t]))})}function $b(){Object.keys(Br).forEach(function(e){Br[e]=fc[e]})}var he=Br;function Ub(e){var t=he.ariaRoles[e];return t?!!t.unsupported:!1}var xo=Ub;function Gb(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.allowAbstract,a=t.flagUnsupported,n=a===void 0?!1:a,i=he.ariaRoles[e],o=xo(e);return!i||n&&o?!1:r?!0:i.type!=="abstract"}var qr=Gb;function Wb(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.fallback,a=t.abstracts,n=t.dpub;if(e=e instanceof $e?e:le(e),e.props.nodeType!==1)return null;var i=(e.attr("role")||"").trim().toLowerCase(),o=r?Ze(i):[i],u=o.find(function(s){return!n&&s.substr(0,4)==="doc-"?!1:qr(s,{allowAbstract:a})});return u||null}var De=Wb;function Yb(e){return Object.keys(he.htmlElms).filter(function(t){var r=he.htmlElms[t];return r.contentTypes?r.contentTypes.includes(e):r.variant&&r.variant.default&&r.variant.default.contentTypes?r.variant.default.contentTypes.includes(e):!1})}var Eo=Yb;function Kb(){return ue.get("globalAriaAttrs",function(){return Object.keys(he.ariaAttrs).filter(function(e){return he.ariaAttrs[e].global})})}var Dr=Kb;function Xb(e){for(var t=[],r=e.rows,a=0,n=r.length;a1&&arguments[1]!==void 0?arguments[1]:{},r=t.checkTitle,a=r===void 0?!1:r;return!!(re(ga(e))||re(ba(e))||a&&e?.props.nodeType===1&&re(e.attr("title")))}var ty={a:function(t){return t.hasAttr("href")?"link":null},area:function(t){return t.hasAttr("href")?"link":null},article:"article",aside:function(t){return ut(t.parent,pc())&&!Co(t,{checkTitle:!0})?null:"complementary"},body:"document",button:"button",datalist:"listbox",dd:"definition",dfn:"term",details:"group",dialog:"dialog",dt:"term",fieldset:"group",figure:"figure",footer:function(t){var r=ut(t,mc());return r?null:"contentinfo"},form:function(t){return Co(t)?"form":null},h1:"heading",h2:"heading",h3:"heading",h4:"heading",h5:"heading",h6:"heading",header:function(t){var r=ut(t,mc());return r?null:"banner"},hr:"separator",img:function(t){var r=t.hasAttr("alt")&&!t.attr("alt"),a=Dr().find(function(n){return t.hasAttr(n)});return r&&!a&&!Ne(t)?"presentation":"img"},input:function(t){var r;if(t.hasAttr("list")){var a=Ot(t.actualNode,"list").filter(function(n){return!!n})[0];r=a&&a.nodeName.toLowerCase()==="datalist"}switch(t.props.type){case"checkbox":return"checkbox";case"number":return"spinbutton";case"radio":return"radio";case"range":return"slider";case"search":return r?"combobox":"searchbox";case"button":case"image":case"reset":case"submit":return"button";case"text":case"tel":case"url":case"email":case"":return r?"combobox":"textbox";default:return"textbox"}},li:"listitem",main:"main",math:"math",menu:"list",meter:"meter",nav:"navigation",ol:"list",optgroup:"group",option:"option",output:"status",progress:"progressbar",search:"search",section:function(t){return Co(t)?"region":null},select:function(t){return t.hasAttr("multiple")||parseInt(t.attr("size"))>1?"listbox":"combobox"},summary:"button",table:"table",tbody:"rowgroup",td:function(t){var r=ut(t,"table"),a=De(r);return["grid","treegrid"].includes(a)?"gridcell":"cell"},textarea:"textbox",tfoot:"rowgroup",th:function(t){if(jr(t))return"columnheader";if(zr(t))return"rowheader"},thead:"rowgroup",tr:"row",ul:"list"},Fo=ty;function ry(e,t){var r=O(t);if(Array.isArray(t)&&typeof e<"u")return t.includes(e);if(r==="function")return!!t(e);if(e!=null){if(t instanceof RegExp)return t.test(e);if(/^\/.*\/$/.test(t)){var a=t.substring(1,t.length-1);return new RegExp(a).test(e)}}return t===e}var _r=ry;function ay(e,t){return _r(!!Ge(e),t)}var hc=ay;function ny(e,t){var r=O(t);if(r!=="object"||Array.isArray(t)||t instanceof RegExp)throw new Error("Expect matcher to be an object");return Object.keys(t).every(function(a){return _r(e(a),t[a])})}var To=ny;function iy(e,t){return e=we(e).vNode,To(function(r){return e.attr(r)},t)}var vc=iy;function gc(e,t){return!!t(e)}function oy(e,t){return _r(De(e),t)}var bc=oy;function uy(e,t){return _r(Mt(e),t)}var yc=uy;function sy(e,t){return e=we(e).vNode,_r(e.props.nodeName,t)}var wc=sy;function ly(e,t){return e=we(e).vNode,To(function(r){return e.props[r]},t)}var Dc=ly;function cy(e,t){return _r(ce(e),t)}var _c=cy,xc={hasAccessibleName:hc,attributes:vc,condition:gc,explicitRole:bc,implicitRole:yc,nodeName:wc,properties:Dc,semanticRole:_c};function Ec(e,t){return e=we(e).vNode,Array.isArray(t)?t.some(function(r){return Ec(e,r)}):typeof t=="string"?Gi(e,t):Object.keys(t).every(function(r){if(!xc[r])throw new Error('Unknown matcher type "'.concat(r,'"'));var a=xc[r],n=t[r];return a(e,n)})}var Ac=Ec;function dy(e,t){return Ac(e,t)}var lt=dy;lt.hasAccessibleName=hc,lt.attributes=vc,lt.condition=gc,lt.explicitRole=bc,lt.fromDefinition=Ac,lt.fromFunction=To,lt.fromPrimative=_r,lt.implicitRole=yc,lt.nodeName=wc,lt.properties=Dc,lt.semanticRole=_c;var ya=lt;function fy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.noMatchAccessibleName,a=r===void 0?!1:r,n=he.htmlElms[e.props.nodeName];if(!n)return{};if(!n.variant)return n;var i=n.variant,o=qe(n,Fp);for(var u in i)if(!(!i.hasOwnProperty(u)||u==="default")){for(var s=i[u],l=s.matches,c=qe(s,Tp),d=Array.isArray(l)?l:[l],f=0;f"u"&&(o[m]=i.default[m]);return o}var xr=fy;function py(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.chromium,a=e instanceof $e?e:le(e);if(e=a.actualNode,!a)throw new ReferenceError("Cannot get implicit role of a node outside the current scope.");var n=a.props.nodeName,i=Fo[n];if(!i&&r){var o=xr(a),u=o.chromiumRole;return u||null}return typeof i=="function"?i(a):i||null}var Mt=py,my={td:["tr"],th:["tr"],tr:["thead","tbody","tfoot","table"],thead:["table"],tbody:["table"],tfoot:["table"],li:["ol","ul"],dt:["dl","div"],dd:["dl","div"],div:["dl"]};function Cc(e,t){var r=my[e.props.nodeName];if(!r)return null;if(!e.parent){if(!e.actualNode)return null;throw new ReferenceError("Cannot determine role presentational inheritance of a required parent outside the current scope.")}if(!r.includes(e.parent.props.nodeName))return null;var a=De(e.parent,t);return["none","presentation"].includes(a)&&!Tc(e.parent)?a:a?null:Cc(e.parent,t)}function Fc(e,t){var r=t.chromium,a=qe(t,Rp),n=Mt(e,{chromium:r});if(!n)return null;var i=Cc(e,a);return i||n}function Tc(e){var t=Dr().some(function(r){return e.hasAttr(r)});return t||Ne(e)}function hy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.noImplicit,a=qe(t,Sp),n=we(e),i=n.vNode;if(i.props.nodeType!==1)return null;var o=De(i,a);return o?["presentation","none"].includes(o)&&Tc(i)?r?null:Fc(i,a):o:r?null:Fc(i,a)}function vy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.noPresentational,a=qe(t,kp),n=hy(e,a);return r&&["presentation","none"].includes(n)?null:n}var ce=vy,gy=["iframe"];function by(e){var t=we(e),r=t.vNode;return r.props.nodeType!==1||!e.hasAttr("title")||!lt(r,gy)&&["none","presentation"].includes(ce(r))?"":r.attr("title")}var xn=by;function yy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.strict;if(e=e instanceof $e?e:le(e),e.props.nodeType!==1)return!1;var a=ce(e),n=he.ariaRoles[a];return n&&n.nameFromContent?!0:r?!1:!n||["presentation","none"].includes(a)}var Rc=yy;function wy(e){var t=e.actualNode,r=e.children;if(!r)throw new Error("getOwnedVirtual requires a virtual node");if(e.hasAttr("aria-owns")){var a=Ot(t,"aria-owns").filter(function(n){return!!n}).map(function(n){return x.utils.getNodeFromTree(n)});return[].concat(ne(r),ne(a))}return ne(r)}var wa=wy,Sc={accessibleNameFromFieldValue:["progressbar"]};function Re(e){return e=we(e).vNode,Ro(e)}var Ro=Fe(function(t,r){return Il(t)||wn(t,{skipAncestors:!0,isAncestor:r})?!1:t.actualNode&&t.props.nodeName==="area"?!so(t,Ro):er(t,{skipAncestors:!0,isAncestor:r})?!1:t.parent?Ro(t.parent,!0):!0});function kc(e,t,r){var a=we(e),n=a.vNode,i=t?Re:st,o=!e.actualNode||e.actualNode&&i(e),u=n.children.map(function(s){var l=s.props,c=l.nodeType,d=l.nodeValue;if(c===3){if(d&&o)return d}else if(!r)return kc(s,t)}).join("");return re(u)}var It=kc,Dy=["button","checkbox","color","file","hidden","image","password","radio","reset","submit"];function _y(e){e=e instanceof $e?e:le(e);var t=e.props.nodeName;return t==="textarea"||t==="input"&&!Dy.includes((e.attr("type")||"").toLowerCase())}var Oc=_y;function xy(e){e=e instanceof $e?e:le(e);var t=e.props.nodeName;return t==="select"}var Mc=xy;function Ey(e){var t=De(e);return t==="textbox"}var Ic=Ey;function Ay(e){var t=De(e);return t==="listbox"}var Pc=Ay;function Cy(e){var t=De(e);return t==="combobox"}var Nc=Cy,Fy=["progressbar","scrollbar","slider","spinbutton"];function Ty(e){var t=De(e);return Fy.includes(t)}var Lc=Ty,Bc=["textbox","progressbar","scrollbar","slider","spinbutton","combobox","listbox"],So={nativeTextboxValue:Sy,nativeSelectValue:ky,ariaTextboxValue:Oy,ariaListboxValue:qc,ariaComboboxValue:My,ariaRangeValue:Iy};function Ry(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.actualNode,a=Sc.accessibleNameFromFieldValue||[],n=ce(e);if(t.startNode===e||!Bc.includes(n)||a.includes(n))return"";var i=Object.keys(So).map(function(u){return So[u]}),o=i.reduce(function(u,s){return u||s(e,t)},"");return t.debug&&vr(o||"{empty-value}",r,t),o}function Sy(e){var t=we(e),r=t.vNode;return Oc(r)&&r.props.value||""}function ky(e){var t=we(e),r=t.vNode;if(!Mc(r))return"";var a=ft(r,"option"),n=a.filter(function(i){return i.props.selected});return n.length||n.push(a[0]),n.map(function(i){return It(i)}).join(" ")||""}function Oy(e){var t=we(e),r=t.vNode,a=t.domNode;return Ic(r)?!a||a&&!er(a)?It(r,!0):a.textContent:""}function qc(e,t){var r=we(e),a=r.vNode;if(!Pc(a))return"";var n=wa(a).filter(function(i){return ce(i)==="option"&&i.attr("aria-selected")==="true"});return n.length===0?"":Ge(n[0],t)}function My(e,t){var r=we(e),a=r.vNode;if(!Nc(a))return"";var n=wa(a).filter(function(i){return ce(i)==="listbox"})[0];return n?qc(n,t):""}function Iy(e){var t=we(e),r=t.vNode;if(!Lc(r)||!r.hasAttr("aria-valuenow"))return"";var a=+r.attr("aria-valuenow");return isNaN(a)?"0":String(a)}var jc=Ry;function Py(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Ge.alreadyProcessed;t.startNode=t.startNode||e;var a=t,n=a.strict,i=a.inControlContext,o=a.inLabelledByContext,u=ce(e),s=xr(e,{noMatchAccessibleName:!0}),l=s.contentTypes;if(r(e,t)||e.props.nodeType!==1||l!=null&&l.includes("embedded")||Bc.includes(u)||!t.subtreeDescendant&&!t.inLabelledByContext&&!Rc(e,{strict:n}))return"";if(!n){var c=!i&&!o;t=de({subtreeDescendant:c},t)}return wa(e).reduce(function(d,f){return Ly(d,f,t)},"")}var Ny=Eo("phrasing").concat(["#text"]);function Ly(e,t,r){var a=t.props.nodeName,n=Ge(t,r);return n?(Ny.includes(a)||(n[0]!==" "&&(n+=" "),e&&e[e.length-1]!==" "&&(n=" "+n)),e+n):e}var tr=Py;function By(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Ge.alreadyProcessed;if(t.inControlContext||t.inLabelledByContext||r(e,t))return"";t.startNode||(t.startNode=e);var a=de({inControlContext:!0},t),n=qy(e),i=ut(e,"label"),o;return i?(o=[].concat(ne(n),[i.actualNode]),o.sort(Cu)):o=n,o.map(function(u){return wr(u,a)}).filter(function(u){return u!==""}).join(" ")}function qy(e){if(!e.attr("id"))return[];if(!e.actualNode)throw new TypeError("Cannot resolve explicit label reference for non-DOM nodes");return Tl({elm:"label",attr:"for",value:e.attr("id"),context:e.actualNode})}var ko=By,jy={submit:"Submit",image:"Submit",reset:"Reset",button:""},zy={valueText:function(t){return t.props.value||""},buttonDefaultText:function(t){return jy[t.props.type]||""},tableCaptionText:En.bind(null,"caption"),figureText:En.bind(null,"figcaption"),svgTitleText:En.bind(null,"title"),fieldsetLegendText:En.bind(null,"legend"),altText:Oo.bind(null,"alt"),tableSummaryText:Oo.bind(null,"summary"),titleText:xn,subtreeText:tr,labelText:ko,singleSpace:function(){return" "},placeholderText:Oo.bind(null,"placeholder")};function Oo(e,t){return t.attr(e)||""}function En(e,t,r){var a=t.actualNode;e=e.toLowerCase();var n=[e,a.nodeName.toLowerCase()].join(","),i=a.querySelector(n);return!i||i.nodeName.toLowerCase()!==e?"":wr(i,r)}var zc=zy;function Vc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.actualNode;if(e.props.nodeType!==1||["presentation","none"].includes(ce(e)))return"";var a=Vy(e),n=a.reduce(function(i,o){return i||o(e,t)},"");return t.debug&&x.log(n||"{empty-value}",r,t),n}function Vy(e){var t=xr(e,{noMatchAccessibleName:!0}),r=t.namingMethods||[];return r.map(function(a){return zc[a]})}function Hc(){return/[\u1D00-\u1D7F\u1D80-\u1DBF\u1DC0-\u1DFF\u20A0-\u20CF\u20D0-\u20FF\u2100-\u214F\u2150-\u218F\u2190-\u21FF\u2200-\u22FF\u2300-\u23FF\u2400-\u243F\u2440-\u245F\u2460-\u24FF\u2500-\u257F\u2580-\u259F\u25A0-\u25FF\u2600-\u26FF\u2700-\u27BF\uE000-\uF8FF]/g}function $c(){return/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&\xa3\xa2\xa5\xa7\u20ac()*+,\-.\/:;<=>?@\[\]^_`{|}~\xb1]/g}function Uc(){return/[\uDB80-\uDBBF][\uDC00-\uDFFF]/g}function Gc(){return/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC38]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/g}var Mo=function(){return/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g};function Hy(e,t){var r=t.emoji,a=t.nonBmp,n=t.punctuations,i=!1;return r&&(i||(i=Mo().test(e))),a&&(i||(i=Hc().test(e)||Uc().test(e)||Gc().test(e))),n&&(i||(i=$c().test(e))),i}var Io=Hy;function Po(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.15,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:3,a=e.actualNode.nodeValue.trim();if(!re(a)||Io(a,{emoji:!0,nonBmp:!0}))return!1;var n=ue.get("canvasContext",function(){return L.createElement("canvas").getContext("2d",{willReadFrequently:!0})}),i=n.canvas,o=ue.get("fonts",function(){return{}}),u=E.getComputedStyle(e.parent.actualNode),s=u.getPropertyValue("font-family");o[s]||(o[s]={occurrences:0,numLigatures:0});var l=o[s];if(l.occurrences>=r){if(l.numLigatures/l.occurrences===1)return!0;if(l.numLigatures===0)return!1}l.occurrences++;var c=30,d="".concat(c,"px ").concat(s);n.font=d;var f=a.charAt(0),p=n.measureText(f).width;if(p===0)return l.numLigatures++,!0;if(p<30){var m=30/p;p*=m,c*=m,d="".concat(c,"px ").concat(s)}i.width=p,i.height=c,n.font=d,n.textAlign="left",n.textBaseline="top",n.fillText(f,0,0);var h=new Uint32Array(n.getImageData(0,0,p,c).data.buffer);if(!h.some(function(F){return F}))return l.numLigatures++,!0;n.clearRect(0,0,p,c),n.fillText(a,0,0);var v=new Uint32Array(n.getImageData(0,0,p,c).data.buffer),g=h.reduce(function(F,R,I){return R===0&&v[I]===0||R!==0&&v[I]!==0?F:++F},0),b=a.split("").reduce(function(F,R){return F+n.measureText(R).width},0),D=n.measureText(a).width,w=g/h.length,_=1-D/b;return w>=t&&_>=t?(l.numLigatures++,!0):!1}function Ge(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t=Wy(e,t),Uy(e,t)||Gy(e,t))return"";var r=[ga,ba,Vc,jc,tr,$y,xn],a=r.reduce(function(n,i){return t.startNode===e&&(n=re(n)),n!==""?n:i(e,t)},"");return t.debug&&x.log(a||"{empty-value}",e.actualNode,t),a}function $y(e){return e.props.nodeType!==3?"":e.props.nodeValue}function Uy(e,t){return!e||e.props.nodeType!==1||t.includeHidden?!1:!Re(e)}function Gy(e,t){var r,a=t.ignoreIconLigature,n=t.pixelThreshold,i=(r=t.occurrenceThreshold)!==null&&r!==void 0?r:t.occuranceThreshold;return e.props.nodeType!==3||!a?!1:Po(e,n,i)}function Wy(e,t){return t.startNode||(t=de({startNode:e},t)),e.props.nodeType===1&&t.inLabelledByContext&&t.includeHidden===void 0&&(t=de({includeHidden:!Re(e)},t)),t}Ge.alreadyProcessed=function(t,r){return r.processed=r.processed||[],r.processed.includes(t)?!0:(r.processed.push(t),!1)};function Yy(e,t){var r=t.emoji,a=t.nonBmp,n=t.punctuations;return r&&(e=e.replace(Mo(),"")),a&&(e=e.replace(Hc(),"").replace(Uc(),"").replace(Gc(),"")),n&&(e=e.replace($c(),"")),e}var Da=Yy;function Ky(e){return Xy(e)||Zy(e)||Jy(e)||Qy(e)?0:1}function Xy(e){return re(e).length===0}function Zy(e){return e.length===1&&e.match(/\D/)}function Jy(e){var t=["aa","abc"];return t.includes(e.toLowerCase())}function Qy(e){var t=Da(e,{emoji:!0,nonBmp:!0,punctuations:!0});return!re(t)}var No=Ky,Er={stateTerms:["on","off"],standaloneTerms:["name","honorific-prefix","given-name","additional-name","family-name","honorific-suffix","nickname","username","new-password","current-password","organization-title","organization","street-address","address-line1","address-line2","address-line3","address-level4","address-level3","address-level2","address-level1","country","country-name","postal-code","cc-name","cc-given-name","cc-additional-name","cc-family-name","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc","cc-type","transaction-currency","transaction-amount","language","bday","bday-day","bday-month","bday-year","sex","url","photo","one-time-code"],qualifiers:["home","work","mobile","fax","pager"],qualifiedTerms:["tel","tel-country-code","tel-national","tel-area-code","tel-local","tel-local-prefix","tel-local-suffix","tel-extension","email","impp"],locations:["billing","shipping"]};function e0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.looseTyped,a=r===void 0?!1:r,n=t.stateTerms,i=n===void 0?[]:n,o=t.locations,u=o===void 0?[]:o,s=t.qualifiers,l=s===void 0?[]:s,c=t.standaloneTerms,d=c===void 0?[]:c,f=t.qualifiedTerms,p=f===void 0?[]:f,m=t.ignoredValues,h=m===void 0?[]:m;if(e=e.toLowerCase().trim(),i=i.concat(Er.stateTerms),i.includes(e)||e==="")return!0;l=l.concat(Er.qualifiers),u=u.concat(Er.locations),d=d.concat(Er.standaloneTerms),p=p.concat(Er.qualifiedTerms);var v=e.split(/\s+/g);if(v[v.length-1]==="webauthn"&&(v.pop(),v.length===0)||!a&&(v[0].length>8&&v[0].substr(0,8)==="section-"&&v.shift(),u.includes(v[0])&&v.shift(),l.includes(v[0])&&(v.shift(),d=[]),v.length!==1))return!1;var g=v[v.length-1];if(!h.includes(g))return d.includes(g)||p.includes(g)}var Wc=e0;function t0(e){var t,r;return e.attr("aria-labelledby")&&(t=Ot(e.actualNode,"aria-labelledby"),r=t.map(function(a){var n=le(a);return n?It(n):""}).join(" ").trim(),r)||(r=e.attr("aria-label"),r&&(r=re(r),r))?r:null}var An=t0;function r0(e,t,r){return e=le(e),It(e,t,r)}var Yc=r0;function a0(e){var t,r,a;if(r=An(e),r)return r;if(e.attr("id")){if(!e.actualNode)throw new TypeError("Cannot resolve explicit label reference for non-DOM nodes");var n=Oe(e.attr("id"));if(a=Xe(e.actualNode),t=a.querySelector('label[for="'+n+'"]'),r=t&&Yc(t,!0),r)return r}return t=ut(e,"label"),r=t&&It(t,!0),r||null}var Cn=a0;function n0(e){return e=le(e),Cn(e)}var i0=n0,o0=[{matches:[{nodeName:"textarea"},{nodeName:"input",properties:{type:["text","password","search","tel","email","url"]}}],namingMethods:"labelText"},{matches:{nodeName:"input",properties:{type:["button","submit","reset"]}},namingMethods:["valueText","titleText","buttonDefaultText"]},{matches:{nodeName:"input",properties:{type:"image"}},namingMethods:["altText","valueText","labelText","titleText","buttonDefaultText"]},{matches:"button",namingMethods:"subtreeText"},{matches:"fieldset",namingMethods:"fieldsetLegendText"},{matches:"OUTPUT",namingMethods:"subtreeText"},{matches:[{nodeName:"select"},{nodeName:"input",properties:{type:/^(?!text|password|search|tel|email|url|button|submit|reset)/}}],namingMethods:"labelText"},{matches:"summary",namingMethods:"subtreeText"},{matches:"figure",namingMethods:["figureText","titleText"]},{matches:"img",namingMethods:"altText"},{matches:"table",namingMethods:["tableCaptionText","tableSummaryText"]},{matches:["hr","br"],namingMethods:["titleText","singleSpace"]}],u0=o0;function Kc(e){var t=st(e),r=[];return e.children.forEach(function(a){a.actualNode.nodeType===3?t&&r.push(a):r=r.concat(Kc(a))}),r}var s0=Kc,l0=Fe(function(t){var r=le(t),a=r.boundingClientRect,n=[],i=ma(r);return t.childNodes.forEach(function(o){if(!(o.nodeType!==3||re(o.nodeValue)==="")){var u=c0(o);d0(u,a)||n.push.apply(n,ne(Xc(u,i)))}}),n.length?n:Xc([a],i)}),Lo=l0;function c0(e){var t=L.createRange();return t.selectNodeContents(e),Array.from(t.getClientRects())}function d0(e,t){return e.some(function(r){var a=ha(r);return!vn(a,t)})}function Xc(e,t){var r=[];return e.forEach(function(a){if(!(a.width<1||a.height<1)){var n=t.reduce(function(i,o){return i&&gn(i,o.boundingClientRect)},a);n&&r.push(n)}}),r}function f0(e){yr();var t=le(e),r=t._grid;if(!r)return[];var a=Lo(e);return a.map(function(n){return Do(r,n)})}var Bo=f0,p0=["checkbox","img","meter","progressbar","scrollbar","radio","slider","spinbutton","textbox"];function m0(e){var t=we(e),r=t.vNode,a=x.commons.aria.getExplicitRole(r);if(a)return p0.indexOf(a)!==-1;switch(r.props.nodeName){case"img":case"iframe":case"object":case"video":case"audio":case"canvas":case"svg":case"math":case"button":case"select":case"textarea":case"keygen":case"progress":case"meter":return!0;case"input":return r.props.type!=="hidden";default:return!1}}var qo=m0,h0=["head","title","template","script","style","iframe","object","video","audio","noscript"];function jo(e){return h0.includes(e.props.nodeName)?!1:e.children.some(function(t){var r=t.props;return r.nodeType===3&&r.nodeValue.trim()})}function Zc(e,t,r){return jo(e)||qo(e.actualNode)||!r&&!!An(e)||!t&&e.children.some(function(a){return a.actualNode.nodeType===1&&Zc(a)})}var _a=Zc;function v0(e,t,r){return e=le(e),_a(e,t,r)}var Fn=v0;function zo(e){return typeof e.children>"u"||jo(e)?!0:e.props.nodeType===1&&qo(e)?!!x.commons.text.accessibleTextVirtual(e):e.children.some(function(t){return!t.attr("lang")&&zo(t)&&!er(t)})}function g0(e){var t=Lt(e.getAttribute("tabindex"));return t>-1&&Ne(e)&&!_o(e)}var Jc=g0;function Qc(e,t){var r=we(e),a=r.vNode,n=r.domNode;return a?(a._isHiddenWithCSS===void 0&&(a._isHiddenWithCSS=ed(n,t)),a._isHiddenWithCSS):ed(n,t)}function ed(e,t){if(e.nodeType===9||(e.nodeType===11&&(e=e.host),["STYLE","SCRIPT"].includes(e.nodeName.toUpperCase())))return!1;var r=E.getComputedStyle(e,null);if(!r)throw new Error("Style does not exist for the given element.");var a=r.getPropertyValue("display");if(a==="none")return!0;var n=["hidden","collapse"],i=r.getPropertyValue("visibility");if(n.includes(i)&&!t||n.includes(i)&&t&&n.includes(t))return!0;var o=Ue(e);return o&&!n.includes(i)?Qc(o,i):!1}var b0=Qc;function y0(e){var t=e.doctype;return t===null?!1:t.name==="html"&&!t.publicId&&!t.systemId}var td=y0;function w0(e){var t;(e instanceof $e||(t=E)!==null&&t!==void 0&&t.Node&&e instanceof E.Node)&&(e=x.commons.aria.getRole(e));var r=he.ariaRoles[e];return r?.type||null}var At=w0;function rd(e,t){t(e.actualNode)!==!1&&e.children.forEach(function(r){return rd(r,t)})}var D0=["block","list-item","table","flex","grid","inline-block"];function ad(e){var t=E.getComputedStyle(e).getPropertyValue("display");return D0.includes(t)||t.substr(0,6)==="table-"}function _0(e){for(var t=Ue(e);t&&!ad(t);)t=Ue(t);return le(t)}function x0(e,t){if(ad(e))return!1;var r=_0(e),a="",n="",i=0;return rd(r,function(o){if(i===2)return!1;if(o.nodeType===3&&(a+=o.nodeValue),o.nodeType===1){var u=(o.nodeName||"").toUpperCase();if(o===e&&(i=1),["BR","HR"].includes(u))i===0?(a="",n=""):i=2;else{if(o.style.display==="none"||o.style.overflow==="hidden"||!["",null,"none"].includes(o.style.float)||!["",null,"relative"].includes(o.style.position))return!1;if(At(o)==="widget")return n+=o.textContent,!1}}}),a=re(a),t!=null&&t.noLengthCompare?a.length!==0:(n=re(n),a.length>n.length)}var Vo=x0;function E0(e){e=e||{};var t=e.modalPercent||.75;if(ue.get("isModalOpen"))return ue.get("isModalOpen");var r=Bt(x._tree[0],"dialog, [role=dialog], [aria-modal=true]",st);if(r.length)return ue.set("isModalOpen",!0),!0;for(var a=pn(E),n=a.width*t,i=a.height*t,o=(a.width-n)/2,u=(a.height-i)/2,s=[{x:o,y:u},{x:a.width-o,y:u},{x:a.width/2,y:a.height/2},{x:o,y:a.height-u},{x:a.width-o,y:a.height-u}],l=s.map(function(p){return Array.from(L.elementsFromPoint(p.x,p.y))}),c=function(){var m=l[f].find(function(h){var v=E.getComputedStyle(h);return parseInt(v.width,10)>=n&&parseInt(v.height,10)>=i&&v.getPropertyValue("pointer-events")!=="none"&&(v.position==="absolute"||v.position==="fixed")});if(m&&l.every(function(h){return h.includes(m)}))return ue.set("isModalOpen",!0),{v:!0}},d,f=0;f1&&arguments[1]!==void 0?arguments[1]:2,r=e.ownerDocument.createRange();r.setStart(e,0),r.setEnd(e,e.childNodes.length);var a=0,n=0,i=Ce(r.getClientRects()),o;try{for(i.s();!(o=i.n()).done;){var u=o.value;if(!(u.height<=t))if(a>u.top+t)a=Math.max(a,u.bottom);else if(n===0)a=u.bottom,n++;else return!0}}catch(s){i.e(s)}finally{i.f()}return!1}function A0(e){return e instanceof E.Node}var C0=A0,Ho="color.incompleteData",F0={set:function(t,r){if(typeof t!="string")throw new Error("Incomplete data: key must be a string");var a=ue.get(Ho,function(){return{}});return r&&(a[t]=r),a[t]},get:function(t){var r=ue.get(Ho);return r?.[t]},clear:function(){ue.set(Ho,{})}},We=F0;function T0(e,t){var r=["IMG","CANVAS","OBJECT","IFRAME","VIDEO","SVG"],a=e.nodeName.toUpperCase();if(r.includes(a))return We.set("bgColor","imgNode"),!0;t=t||E.getComputedStyle(e);var n=t.getPropertyValue("background-image"),i=n!=="none";if(i){var o=/gradient/.test(n);We.set("bgColor",o?"bgGradient":"bgImage")}return i}var Tn=T0,id={};Dt(id,{ArrayFrom:function(){return m1.default},Colorjs:function(){return _e},CssSelectorParser:function(){return I0.CssSelectorParser},doT:function(){return od.default},emojiRegexText:function(){return Mo},memoize:function(){return P0.default}});var R0=ot(gh()),S0=ot(bh());ot(yh());var k0=ot(Mh()),O0=ot($h()),M0=ot(Hs());"hasOwn"in Object||(Object.hasOwn=k0.default),"values"in Object||(Object.values=O0.default),"Promise"in E||R0.default.polyfill(),"Uint32Array"in E||(E.Uint32Array=S0.Uint32Array),E.Uint32Array&&("some"in E.Uint32Array.prototype||Object.defineProperty(E.Uint32Array.prototype,"some",{value:Array.prototype.some}),"reduce"in E.Uint32Array.prototype||Object.defineProperty(E.Uint32Array.prototype,"reduce",{value:Array.prototype.reduce})),typeof Object.assign!="function"&&function(){Object.assign=function(e){if(e==null)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),r=1;r>>0,n=arguments[1],i,o=0;o>>0,i,o=0;o=0?i=n:(i=a+n,i<0&&(i=0));for(var o;i>>0,n=arguments.length>=2?arguments[1]:void 0,i=0;ithis.length?!1:this.indexOf(e,t)!==-1}),Array.prototype.flat||Object.defineProperty(Array.prototype,"flat",{configurable:!0,value:function e(){var t=isNaN(arguments[0])?1:Number(arguments[0]);return t?Array.prototype.reduce.call(this,function(r,a){return Array.isArray(a)?r.push.apply(r,e.call(a,t-1)):r.push(a),r},[]):Array.prototype.slice.call(this)},writable:!0}),E.Node&&!("isConnected"in E.Node.prototype)&&Object.defineProperty(E.Node.prototype,"isConnected",{get:function(){return!this.ownerDocument||!(this.ownerDocument.compareDocumentPosition(this)&this.DOCUMENT_POSITION_DISCONNECTED)}});var I0=ot(ws()),od=ot($s()),P0=ot(bs());function Le(e,t){var r=e.length;Array.isArray(e[0])||(e=[e]),Array.isArray(t[0])||(t=t.map(function(o){return[o]}));var a=t[0].length,n=t[0].map(function(o,u){return t.map(function(s){return s[u]})}),i=e.map(function(o){return n.map(function(u){var s=0;if(!Array.isArray(o)){var l=Ce(u),c;try{for(l.s();!(c=l.n()).done;){var d=c.value;s+=o*d}}catch(p){l.e(p)}finally{l.f()}return s}for(var f=0;fr)return+e.toFixed(t-r);var a=Math.pow(10,r-t);return Math.round(e/a)*a}function ud(e){if(e){e=e.trim();var t=/^([a-z]+)\((.+?)\)$/i,r=/^-?[\d.]+$/,a=e.match(t);if(a){var n=[];return a[2].replace(/\/?\s*([-\w.]+(?:%|deg)?)/g,function(i,o){/%$/.test(o)?(o=new Number(o.slice(0,-1)/100),o.type=""):/deg$/.test(o)?(o=new Number(+o.slice(0,-3)),o.type="",o.unit="deg"):r.test(o)&&(o=new Number(o),o.type=""),i.startsWith("/")&&(o=o instanceof Number?o:new Number(o),o.alpha=!0),n.push(o)}),{name:a[1].toLowerCase(),rawName:a[1],rawArgs:a[2],args:n}}}}function sd(e){return e[e.length-1]}function Sn(e,t,r){return isNaN(e)?t:isNaN(t)?e:e+(t-e)*r}function ld(e,t,r){return(r-e)/(t-e)}function $o(e,t,r){return Sn(t[0],t[1],ld(e[0],e[1],r))}function cd(e){return e.map(function(t){return t.split("|").map(function(r){r=r.trim();var a=r.match(/^(<[a-z]+>)\[(-?[.\d]+),\s*(-?[.\d]+)\]?$/);if(a){var n=new String(a[1]);return n.range=[+a[2],+a[3]],n}return r})})}var N0=Object.freeze({__proto__:null,isString:Ea,type:rr,toPrecision:Rn,parseFunction:ud,last:sd,interpolate:Sn,interpolateInv:ld,mapRange:$o,parseCoordGrammar:cd,multiplyMatrices:Le}),L0=function(){function e(){Tt(this,e)}return Rt(e,[{key:"add",value:function(r,a,n){if(typeof arguments[0]!="string"){for(var r in arguments[0])this.add(r,arguments[0][r],arguments[1]);return}(Array.isArray(r)?r:[r]).forEach(function(i){this[i]=this[i]||[],a&&this[i][n?"unshift":"push"](a)},this)}},{key:"run",value:function(r,a){this[r]=this[r]||[],this[r].forEach(function(n){n.call(a&&a.context?a.context:a,a)})}}])}(),ar=new L0,Pt={gamut_mapping:"lch.c",precision:5,deltaE:"76"},Ct={D50:[.3457/.3585,1,(1-.3457-.3585)/.3585],D65:[.3127/.329,1,(1-.3127-.329)/.329]};function Uo(e){return Array.isArray(e)?e:Ct[e]}function kn(e,t,r){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(e=Uo(e),t=Uo(t),!e||!t)throw new TypeError("Missing white point to convert ".concat(e?"":"from").concat(!e&&!t?"/":"").concat(t?"":"to"));if(e===t)return r;var n={W1:e,W2:t,XYZ:r,options:a};if(ar.run("chromatic-adaptation-start",n),n.M||(n.W1===Ct.D65&&n.W2===Ct.D50?n.M=[[1.0479298208405488,.022946793341019088,-.05019222954313557],[.029627815688159344,.990434484573249,-.01707382502938514],[-.009243058152591178,.015055144896577895,.7518742899580008]]:n.W1===Ct.D50&&n.W2===Ct.D65&&(n.M=[[.9554734527042182,-.023098536874261423,.0632593086610217],[-.028369706963208136,1.0099954580058226,.021041398966943008],[.012314001688319899,-.020507696433477912,1.3303659366080753]])),ar.run("chromatic-adaptation-end",n),n.M)return Le(n.M,n.XYZ);throw new TypeError("Only Bradford CAT with white points D50 and D65 supported for now.")}var B0=75e-6,Ft=(C=new WeakSet,k=new WeakMap,function(){function e(t){var r,a,n,i,o,u,s;Tt(this,e),es(this,C),Xt(this,k,void 0),this.id=t.id,this.name=t.name,this.base=t.base?Ft.get(t.base):null,this.aliases=t.aliases,this.base&&(this.fromBase=t.fromBase,this.toBase=t.toBase);var l=(r=t.coords)!==null&&r!==void 0?r:this.base.coords;this.coords=l;var c=(a=(n=t.white)!==null&&n!==void 0?n:this.base.white)!==null&&a!==void 0?a:"D65";this.white=Uo(c),this.formats=(i=t.formats)!==null&&i!==void 0?i:{};for(var d in this.formats){var f=this.formats[d];f.type||(f.type="function"),f.name||(f.name=d)}t.cssId&&!((o=this.formats.functions)!==null&&o!==void 0&&o.color)?(this.formats.color={id:t.cssId},Object.defineProperty(this,"cssId",{value:t.cssId})):(u=this.formats)!==null&&u!==void 0&&u.color&&!((s=this.formats)!==null&&s!==void 0&&s.color.id)&&(this.formats.color.id=this.id),this.referred=t.referred,at(k,this,Tr(C,this,q0).call(this).reverse()),ar.run("colorspace-init-end",this)}return Rt(e,[{key:"inGamut",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=a.epsilon,i=n===void 0?B0:n;if(this.isPolar)return r=this.toBase(r),this.base.inGamut(r,{epsilon:i});var o=Object.values(this.coords);return r.every(function(u,s){var l=o[s];if(l.type!=="angle"&&l.range){if(Number.isNaN(u))return!0;var c=$(l.range,2),d=c[0],f=c[1];return(d===void 0||u>=d-i)&&(f===void 0||u<=f+i)}return!0})}},{key:"cssId",get:function(){var r;return((r=this.formats.functions)===null||r===void 0||(r=r.color)===null||r===void 0?void 0:r.id)||this.id}},{key:"isPolar",get:function(){for(var r in this.coords)if(this.coords[r].type==="angle")return!0;return!1}},{key:"getFormat",value:function(r){if(O(r)==="object")return r=Tr(C,this,dd).call(this,r),r;var a;return r==="default"?a=Object.values(this.formats)[0]:a=this.formats[r],a?(a=Tr(C,this,dd).call(this,a),a):null}},{key:"to",value:function(r,a){if(arguments.length===1){var n=[r.space,r.coords];r=n[0],a=n[1]}if(r=Ft.get(r),this===r)return a;a=a.map(function(f){return Number.isNaN(f)?0:f});for(var i=wt(k,this),o=wt(k,r),u,s,l=0;ls;c--)a=i[c].toBase(a);for(var d=s+1;d1?i-1:0),u=1;u=0){var c=Object.entries(i.coords)[o];if(c)return de({space:i,id:c[0],index:o},c[1])}i=Ft.get(i);var d=o.toLowerCase(),f=0;for(var p in i.coords){var m,h=i.coords[p];if(p.toLowerCase()===d||((m=h.name)===null||m===void 0?void 0:m.toLowerCase())===d)return de({space:i,id:p,index:f},h);f++}throw new TypeError('No "'.concat(o,'" coordinate found in ').concat(i.name,". Its coordinates are: ").concat(Object.keys(i.coords).join(", ")))}}])}());function dd(e){if(e.coords&&!e.coordGrammar){e.type||(e.type="function"),e.name||(e.name="color"),e.coordGrammar=cd(e.coords);var t=Object.entries(this.coords).map(function(r,a){var n=$(r,2);n[0];var i=n[1],o=e.coordGrammar[a][0],u=i.range||i.refRange,s=o.range,l="";return o==""?(s=[0,100],l="%"):o==""&&(l="deg"),{fromRange:u,toRange:s,suffix:l}});e.serializeCoords=function(r,a){return r.map(function(n,i){var o=t[i],u=o.fromRange,s=o.toRange,l=o.suffix;return u&&s&&(n=$o(u,s,n)),n=Rn(n,a),l&&(n+=l),n})}}return e}function q0(){for(var e=[this],t=this;t=t.base;)e.push(t);return e}var ee=Ft;us(ee,"registry",{}),us(ee,"DEFAULT_FORMAT",{type:"functions",name:"color"});var gt=new ee({id:"xyz-d65",name:"XYZ D65",coords:{x:{name:"X"},y:{name:"Y"},z:{name:"Z"}},white:"D65",formats:{color:{ids:["xyz-d65","xyz"]}},aliases:["xyz"]}),nt=function(e){function t(r){var a,n;if(Tt(this,t),r.coords||(r.coords={r:{range:[0,1],name:"Red"},g:{range:[0,1],name:"Green"},b:{range:[0,1],name:"Blue"}}),r.base||(r.base=gt),r.toXYZ_M&&r.fromXYZ_M){var i,o;(i=r.toBase)!==null&&i!==void 0||(r.toBase=function(u){var s=Le(r.toXYZ_M,u);return n.white!==n.base.white&&(s=kn(n.white,n.base.white,s)),s}),(o=r.fromBase)!==null&&o!==void 0||(r.fromBase=function(u){return u=kn(n.base.white,n.white,u),Le(r.fromXYZ_M,u)})}return(a=r.referred)!==null&&a!==void 0||(r.referred="display"),n=vi(this,t,[r])}return bi(t,e),Rt(t)}(ee);function fd(e){var t,r={str:(t=String(e))===null||t===void 0?void 0:t.trim()};if(ar.run("parse-start",r),r.color)return r.color;if(r.parsed=ud(r.str),r.parsed){var a=r.parsed.name;if(a==="color"){var n=r.parsed.args.shift(),i=r.parsed.rawArgs.indexOf("/")>0?r.parsed.args.pop():1,o=Ce(ee.all),u;try{var s=function(){var V=u.value,S=V.getFormat("color");if(S){var N;if(n===S.id||(N=S.ids)!==null&&N!==void 0&&N.includes(n)){var z=Object.keys(V.coords).length,H=Array(z).fill(0);return H.forEach(function(Q,ie){return H[ie]=r.parsed.args[ie]||0}),{v:{spaceId:V.id,coords:H,alpha:i}}}}},l;for(o.s();!(u=o.n()).done;)if(l=s(),l)return l.v}catch(I){o.e(I)}finally{o.f()}var c="";if(n in ee.registry){var d,f=(d=ee.registry[n].formats)===null||d===void 0||(d=d.functions)===null||d===void 0||(d=d.color)===null||d===void 0?void 0:d.id;f&&(c="Did you mean color(".concat(f,")?"))}throw new TypeError("Cannot parse color(".concat(n,"). ")+(c||"Missing a plugin?"))}else{var p=Ce(ee.all),m;try{var h=function(){var V=m.value,S=V.getFormat(a);if(S&&S.type==="function"){var N=1;(S.lastAlpha||sd(r.parsed.args).alpha)&&(N=r.parsed.args.pop());var z=r.parsed.args;return S.coordGrammar&&Object.entries(V.coords).forEach(function(H,Q){var ie,Y=$(H,2),te=Y[0],B=Y[1],Z=S.coordGrammar[Q],A=(ie=z[Q])===null||ie===void 0?void 0:ie.type;if(Z=Z.find(function(ae){return ae==A}),!Z){var U=B.name||te;throw new TypeError("".concat(A," not allowed for ").concat(U," in ").concat(a,"()"))}var P=Z.range;A===""&&(P||(P=[0,1]));var G=B.range||B.refRange;P&&G&&(z[Q]=$o(P,G,z[Q]))}),{v:{spaceId:V.id,coords:z,alpha:N}}}},v;for(p.s();!(m=p.n()).done;)if(v=h(),v)return v.v}catch(I){p.e(I)}finally{p.f()}}}else{var g=Ce(ee.all),b;try{for(g.s();!(b=g.n()).done;){var D=b.value;for(var w in D.formats){var _=D.formats[w];if(_.type==="custom"&&!(_.test&&!_.test(r.str))){var F=_.parse(r.str);if(F){var R;return(R=F.alpha)!==null&&R!==void 0||(F.alpha=1),F}}}}}catch(I){g.e(I)}finally{g.f()}}throw new TypeError("Could not parse ".concat(e," as a color. Missing a plugin?"))}function ge(e){if(!e)throw new TypeError("Empty color reference");Ea(e)&&(e=fd(e));var t=e.space||e.spaceId;return t instanceof ee||(e.space=ee.get(t)),e.alpha===void 0&&(e.alpha=1),e}function Aa(e,t){return t=ee.get(t),t.from(e)}function bt(e,t){var r=ee.resolveCoord(t,e.space),a=r.space,n=r.index,i=Aa(e,a);return i[n]}function pd(e,t,r){return t=ee.get(t),e.coords=t.to(e.space,r),e}function nr(e,t,r){if(e=ge(e),arguments.length===2&&rr(arguments[1])==="object"){var a=arguments[1];for(var n in a)nr(e,n,a[n])}else{typeof r=="function"&&(r=r(bt(e,t)));var i=ee.resolveCoord(t,e.space),o=i.space,u=i.index,s=Aa(e,o);s[u]=r,pd(e,o,s)}return e}var Go=new ee({id:"xyz-d50",name:"XYZ D50",white:"D50",base:gt,fromBase:function(t){return kn(gt.white,"D50",t)},toBase:function(t){return kn("D50",gt.white,t)},formats:{color:{}}}),j0=216/24389,md=24/116,On=24389/27,Wo=Ct.D50,ct=new ee({id:"lab",name:"Lab",coords:{l:{refRange:[0,100],name:"L"},a:{refRange:[-125,125]},b:{refRange:[-125,125]}},white:Wo,base:Go,fromBase:function(t){var r=t.map(function(n,i){return n/Wo[i]}),a=r.map(function(n){return n>j0?Math.cbrt(n):(On*n+16)/116});return[116*a[1]-16,500*(a[0]-a[1]),200*(a[1]-a[2])]},toBase:function(t){var r=[];r[1]=(t[0]+16)/116,r[0]=t[1]/500+r[1],r[2]=r[1]-t[2]/200;var a=[r[0]>md?Math.pow(r[0],3):(116*r[0]-16)/On,t[0]>8?Math.pow((t[0]+16)/116,3):t[0]/On,r[2]>md?Math.pow(r[2],3):(116*r[2]-16)/On];return a.map(function(n,i){return n*Wo[i]})},formats:{lab:{coords:[" | ","",""]}}});function Mn(e){return(e%360+360)%360}function z0(e,t){if(e==="raw")return t;var r=t.map(Mn),a=$(r,2),n=a[0],i=a[1],o=i-n;return e==="increasing"?o<0&&(i+=360):e==="decreasing"?o>0&&(n+=360):e==="longer"?-1800?i+=360:n+=360):e==="shorter"&&(o>180?n+=360:o<-180&&(i+=360)),[n,i]}var Ca=new ee({id:"lch",name:"LCH",coords:{l:{refRange:[0,100],name:"Lightness"},c:{refRange:[0,150],name:"Chroma"},h:{refRange:[0,360],type:"angle",name:"Hue"}},base:ct,fromBase:function(t){var r=$(t,3),a=r[0],n=r[1],i=r[2],o,u=.02;return Math.abs(n) | ",""," | "]}}}),hd=Math.pow(25,7),In=Math.PI,vd=180/In,Vr=In/180;function Yo(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=r.kL,n=a===void 0?1:a,i=r.kC,o=i===void 0?1:i,u=r.kH,s=u===void 0?1:u,l=ct.from(e),c=$(l,3),d=c[0],f=c[1],p=c[2],m=Ca.from(ct,[d,f,p])[1],h=ct.from(t),v=$(h,3),g=v[0],b=v[1],D=v[2],w=Ca.from(ct,[g,b,D])[1];m<0&&(m=0),w<0&&(w=0);var _=(m+w)/2,F=Math.pow(_,7),R=.5*(1-Math.sqrt(F/(F+hd))),I=(1+R)*f,V=(1+R)*b,S=Math.sqrt(Math.pow(I,2)+Math.pow(p,2)),N=Math.sqrt(Math.pow(V,2)+Math.pow(D,2)),z=I===0&&p===0?0:Math.atan2(p,I),H=V===0&&D===0?0:Math.atan2(D,V);z<0&&(z+=2*In),H<0&&(H+=2*In),z*=vd,H*=vd;var Q=g-d,ie=N-S,Y=H-z,te=z+H,B=Math.abs(Y),Z;S*N===0?Z=0:B<=180?Z=Y:Y>180?Z=Y-360:Y<-180?Z=Y+360:console.log("the unthinkable has happened");var A=2*Math.sqrt(N*S)*Math.sin(Z*Vr/2),U=(d+g)/2,P=(S+N)/2,G=Math.pow(P,7),ae;S*N===0?ae=te:B<=180?ae=te/2:te<360?ae=(te+360)/2:ae=(te-360)/2;var W=Math.pow(U-50,2),X=1+.015*W/Math.sqrt(20+W),pe=1+.045*P,be=1;be-=.17*Math.cos((ae-30)*Vr),be+=.24*Math.cos(2*ae*Vr),be+=.32*Math.cos((3*ae+6)*Vr),be-=.2*Math.cos((4*ae-63)*Vr);var xe=1+.015*P*be,Me=30*Math.exp(-1*Math.pow((ae-275)/25,2)),je=2*Math.sqrt(G/(G+hd)),Be=-1*Math.sin(2*Me*Vr)*je,Ee=Math.pow(Q/(n*X),2);return Ee+=Math.pow(ie/(o*pe),2),Ee+=Math.pow(A/(s*xe),2),Ee+=Be*(ie/(o*pe))*(A/(s*xe)),Math.sqrt(Ee)}var V0=75e-6;function Fa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.space,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=r.epsilon,n=a===void 0?V0:a;e=ge(e),t=ee.get(t);var i=e.coords;return t!==e.space&&(i=t.from(e)),t.inGamut(i,{epsilon:n})}function Ta(e){return{space:e.space,coords:e.coords.slice(),alpha:e.alpha}}function ir(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.method,a=r===void 0?Pt.gamut_mapping:r,n=t.space,i=n===void 0?e.space:n;if(Ea(arguments[1])&&(i=arguments[1]),i=ee.get(i),Fa(e,i,{epsilon:0}))return e;var o=yt(e,i);if(a!=="clip"&&!Fa(e,i)){var u=ir(Ta(o),{method:"clip",space:i});if(Yo(e,u)>2){for(var s=ee.resolveCoord(a),l=s.space,c=s.id,d=yt(o,l),f=s.range||s.refRange,p=f[0],m=.01,h=p,v=bt(d,c);v-h>m;){var g=Ta(d);g=ir(g,{space:i,method:"clip"});var b=Yo(d,g);b-22&&arguments[2]!==void 0?arguments[2]:{},a=r.inGamut;e=ge(e),t=ee.get(t);var n=t.from(e),i={space:t,coords:n,alpha:e.alpha};return a&&(i=ir(i)),i}yt.returns="color";function Pn(e){var t,r,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=a.precision,i=n===void 0?Pt.precision:n,o=a.format,u=o===void 0?"default":o,s=a.inGamut,l=s===void 0?!0:s,c=qe(a,Op),d;e=ge(e);var f=u;u=(t=(r=e.space.getFormat(u))!==null&&r!==void 0?r:e.space.getFormat("default"))!==null&&t!==void 0?t:ee.DEFAULT_FORMAT,l||(l=u.toGamut);var p=e.coords;if(p=p.map(function(w){return w||0}),l&&!Fa(e)&&(p=ir(Ta(e),l===!0?void 0:l).coords),u.type==="custom")if(c.precision=i,u.serialize)d=u.serialize(p,e.alpha,c);else throw new TypeError("format ".concat(f," can only be used to parse colors, not for serialization"));else{var m=u.name||"color";u.serializeCoords?p=u.serializeCoords(p,i):i!==null&&(p=p.map(function(w){return Rn(w,i)}));var h=ne(p);if(m==="color"){var v,g=u.id||((v=u.ids)===null||v===void 0?void 0:v[0])||e.space.id;h.unshift(g)}var b=e.alpha;i!==null&&(b=Rn(b,i));var D=e.alpha<1&&!u.noAlpha?"".concat(u.commas?",":" /"," ").concat(b):"";d="".concat(m,"(").concat(h.join(u.commas?", ":" ")).concat(D,")")}return d}var H0=[[.6369580483012914,.14461690358620832,.1688809751641721],[.2627002120112671,.6779980715188708,.05930171646986196],[0,.028072693049087428,1.060985057710791]],$0=[[1.716651187971268,-.355670783776392,-.25336628137366],[-.666684351832489,1.616481236634939,.0157685458139111],[.017639857445311,-.042770613257809,.942103121235474]],Nn=new nt({id:"rec2020-linear",name:"Linear REC.2020",white:"D65",toXYZ_M:H0,fromXYZ_M:$0,formats:{color:{}}}),Ln=1.09929682680944,gd=.018053968510807,bd=new nt({id:"rec2020",name:"REC.2020",base:Nn,toBase:function(t){return t.map(function(r){return r