diff --git a/package.json b/package.json index d57085e79343e..efbaec07b4229 100644 --- a/package.json +++ b/package.json @@ -108,7 +108,7 @@ "@typescript-eslint/eslint-plugin": "6.1.0", "@typescript-eslint/parser": "6.1.0", "@vercel/fetch": "6.1.1", - "@vercel/og": "0.5.9", + "@vercel/og": "0.5.12", "@zeit/next-typescript": "1.1.2-canary.0", "abort-controller": "3.0.0", "alex": "9.1.0", @@ -208,7 +208,7 @@ "request-promise-core": "1.1.2", "resolve-from": "5.0.0", "sass": "1.54.0", - "satori": "0.10.1", + "satori": "0.10.3", "scheduler-builtin": "npm:scheduler@0.24.0-canary-dd480ef92-20230822", "scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-dd480ef92-20230822", "seedrandom": "3.0.5", diff --git a/packages/next/src/compiled/@vercel/og/index.edge.js b/packages/next/src/compiled/@vercel/og/index.edge.js index 5187f88ab3375..a18585ac6ae99 100644 --- a/packages/next/src/compiled/@vercel/og/index.edge.js +++ b/packages/next/src/compiled/@vercel/og/index.edge.js @@ -11,13 +11,13 @@ var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; -var __copyProps = (to, from, except, desc) => { +var __copyProps = (to2, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + if (!__hasOwnProp.call(to2, key) && key !== except) + __defProp(to2, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } - return to; + return to2; }; var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod)); @@ -80,7 +80,7 @@ var require_tiny_inflate = __commonJS({ sum += 1 << bits2[i]; } } - function tinf_build_fixed_trees(lt, dt2) { + function tinf_build_fixed_trees(lt, dt) { var i; for (i = 0; i < 7; ++i) lt.table[i] = 0; @@ -96,10 +96,10 @@ var require_tiny_inflate = __commonJS({ for (i = 0; i < 112; ++i) lt.trans[24 + 144 + 8 + i] = 144 + i; for (i = 0; i < 5; ++i) - dt2.table[i] = 0; - dt2.table[5] = 32; + dt.table[i] = 0; + dt.table[5] = 32; for (i = 0; i < 32; ++i) - dt2.trans[i] = i; + dt.trans[i] = i; } var offs = new Uint16Array(16); function tinf_build_tree(t, lengths2, off, num) { @@ -157,7 +157,7 @@ var require_tiny_inflate = __commonJS({ d.bitcount -= len; return t.trans[sum + cur]; } - function tinf_decode_trees(d, lt, dt2) { + function tinf_decode_trees(d, lt, dt) { var hlit, hdist, hclen; var i, num, length; hlit = tinf_read_bits(d, 5, 257); @@ -195,9 +195,9 @@ var require_tiny_inflate = __commonJS({ } } tinf_build_tree(lt, lengths, 0, hlit); - tinf_build_tree(dt2, lengths, hlit, hdist); + tinf_build_tree(dt, lengths, hlit, hdist); } - function tinf_inflate_block_data(d, lt, dt2) { + function tinf_inflate_block_data(d, lt, dt) { while (1) { var sym = tinf_decode_symbol(d, lt); if (sym === 256) { @@ -210,7 +210,7 @@ var require_tiny_inflate = __commonJS({ var i; sym -= 257; length = tinf_read_bits(d, length_bits[sym], length_base[sym]); - dist = tinf_decode_symbol(d, dt2); + dist = tinf_decode_symbol(d, dt); offs2 = d.destLen - tinf_read_bits(d, dist_bits[dist], dist_base[dist]); for (i = offs2; i < offs2 + length; ++i) { d.dest[d.destLen++] = d.dest[i]; @@ -3472,8 +3472,8 @@ var $32627af916ac1b00$export$5bdb8ccbf5c57afc = [ ]; var $557adaaeb0c7885f$var$data = import_base64_js.default.toByteArray("AAgOAAAAAAAQ4QAAAQ0P8vDtnQuMXUUZx+eyu7d7797d9m5bHoWltKVUlsjLWE0VJNigQoMVqkStEoNQQUl5GIo1KKmogEgqkKbBRki72lYabZMGKoGAjQRtJJDaCCIRiiigREBQS3z+xzOTnZ3O+3HOhd5NfpkzZx7fN9988zivu2M9hGwB28F94DnwEngd/Asc1EtIs9c/bIPDwCxwLDgezHcodyo4w5C+CCwBS8FnwSXgCnA1uFbI93XwbXAbWAfWgx+CzWAb+An4KfgFeAzsYWWfYuFz4CXwGvgb+Dfo6yNkEEwGh4CZYB44FpwI3g1OY+kfBItZOo2fB84Hy8DF4HJwNbiWpV8PVoO1LH4n2NRXyN+KcAd4kNVP9XsY4aPgcfAbsBfs6SniL4K/sPjfEf6HlanXCRkCw2BGvUh/keWfXS/CY+pFXs7x9XHmM94LTmWIeU2cgbxnS/k/B3kf86jDhU8L9V2E40vAFWAlWFUfb++NOL4F3C7JX4/4GiE+hvgWsF0oS7mXldspnN+F493gyXrh9xTav0cg3EvzgVfBG6wsmVSEkxBOBgdPGpd7JI6PnqRvJ68/xlbHof53gPeA94OzwLngk+ACsAwsByvASrAK3MB0Ws3CtQjvBJvAVrADPMDSHkb4CNijaccTwvnf4fiPEs8Lxy+D18A/QU8/xjgYBjPAbDAKTgYLwOngTHAO+EQ/8wuEF4EvsPiVCFf2+9tsFStzA8LVHuXXBsi6QyqzUYiPMR/7Mc7dAx7oL8bzw/3u/Bw8Bp4Az4AXwCtgHzsmDXP5fiF9iiVvly5d0sHngar16NKlS5cuXbp06fLmYlqHXrcd3ph4P0THUY3iXh49novju4S0tzfs5d+JPKewfAsRntZb3K9ZhOMlrO6lCC8An28U9+OuovcPcPxlVu5rCL/VmHh/iHIrzn3fIPu7SN8Axmg+8AOwEWwCm7tp3bRuWjetm5Y8bSu4B9zbKO6ZVsnORrVU3f4uXTqZ2H3sLoyx3eDXjfDndE9qyj6L838CfwVvgFpzYnof4oNgOhgBc8Fos9DrZIQLmtXPP1MmF6wGj4H+KXoWguvADkXaPil+YpuQy8Am8Ey7ODdtmJDF4HowBp4De6HDTNjhfHAHeBr0DBBy0kDxfPbcgSIusgrcWhtnJ8vL+TPix7UIOQtcBq4C28Cr4KRBnANbwSuDE+s50JgyNNFuXbp06XIgsXjIvPafjvXozKY+fVFz/z0LT1uCtKVSWbrOLWPnztG8e0Xfy7ol8XtZJi7WtG+5od2UFXQ/A12vUeS7jp27yVKHjdsU9lXB869TyNvAzt0lpP2oWbwLdjiO78bx/Sz+EMJHwK9Y/LcIfw+eZ3F67/Hl5vh9xX80J+rwX8SvRDhpgL17iPAQMHNArfPrqHPewLheI+AERV6efwV418B4nOZ/H+IfYHV8GOF5LJ3eAz0fx8sM9S0fUNud39O9CulfGZhY5huI3wzWgNvBelbHZoTbNPVpfYjKQpkHwUNgl0LWblbnk0LbbDxr0OMFpL3iqWdu9nWYPlVAWkXY39LnGdCkDbeqv1YNbfcMQ3t9oe8lzm6NH9N1ZB6Ln4BwfkJZJk7RyFnYKt6b/JDQXx9p5X+eFdqOjzM9P9MB/lUlFzr20aXIdzlY4dmn9F3YqtvoO76/2hp/D/xA5Zue88nNyL8GbFbs075X0tyUig3Qd2MCnf//HjnzpbsR3g9+1kHzzVjdnE71/qVBX9rGPUh/ysNWe1neFzvIDi5zAufV1sT0N0poR22wkFUfTOPfA4N2mbZ5fSrqOHSw+IbkSBbOGSzSRgf91/GTUWYBOB2cIZQ/G8cfBZ8CFwrnL8XxF8FKcA24jqXdiPA7Qr61OF7H4mMItwzuv2/YLth1ISt3Hzu3k4W7EH5JqPdRHD/O4k+z8A8IX5Lq3y7Z4nXE9xn6kX6vQ4bKfy+ok+hH+xf3hq9dnTTHhjKd2GmDuWA242iHMq4cC7A8kJ7i8o1+skSa7Jieo38HCWnoNjKFhdSFBxzpZ7QE6lI8N4S14aASZcryaV/WWHw66f6NHuCoxuQxmvM56GX9QMd8Q4D65ywGP+ZzRJuM+zQvx/MOS2VFeqQ4IXnH26zM9Xe6/E6D+4foAzzuajPZp8Qyw5ayZVDWuH0z0BtYRkeIDqH9KO9VbH1btd/lhNqCzvl8zeLnG0S/hnU6baHfpiuO6yy0rd+DHURo/zYF5H26j03rQsip2ndzz82u1z9N4VjWKWeb68Tedpt95HRVXp7H1R6p+/Wt4FPy/PpWwscOLRJ+PVWF/+W0iVyGzs18TIvXkOJ1Wxm66vSXz+vylenrZcj1ub439W+K8RNCGTJi2p/TJ1K23VaXr35tRpnzmjxequgfcfyk6B/TGBVlyedsNgpdd/h+W1U3P99QyFPNo1X3TwpM/WLTIWYfoBqXrv6iskHZ/RFr79R6hIyHBrH3f1nrUVnjP8SnZZ+rYtzr9Exld5MNbPNErusAPg+77u/eDOPftU9yj39TH7rezxd1LvsZQJlzkWlOirG/79zjMj/mtHUKu7vKy+3/LnXr9okyKedjX5/0He9iP/j63LwOQdarEVlfy8OO/Lqw023j6xcqmwxLiOd6heM2i9cV9LJy8jMJ23yQ+rpbfu7EQ/pXE8KYvUSqvVnb4XzZa6LrHMXHR+zcLvqWbm/Bn0/HzIs6fWPHoat8XfnDKmZGxRxeMbn2UqZ5Q94nmcZRbqqUXbZ8+lcjE+cPX11t814orvvAXNcG8vqj2vvk1MGn3anlj0bIT72v47bvE+Lc98T9b6r7AKn6j+8Duf7D0nnZx/j7Zjn0j9nbpSTndaLr9WNLivP+iN23xF7L+fqv6ZouFyb78jxVXvv5jJ9YUs9/sddO8h7KNg5jrhfaJGztT6G7KF+1d6yCmD5Kdb2fan60rSc552fZr3zeQ9DpnPp+Si5cx5Ktv2QfSzF/mMbWdOm46rFI4XstnU9xeqX4NKb7TKEdcr6pZOK3ID1k/LvFHkVczEuZLEDr499YqvqBym1aEHWgcvoYOtv0M91qQl5TfpO/in6rWx8OVpT1Wedkv3f5xom3T/xeR/6Gx6V86PWAOB4bBpqWdN+yTcVxjIyGRz/FrDGu6w/3d7kPm8StX8RyPu+uuvpNju/vTLJV37GpvoM0oZPnW87VLnL/5pDno1NoW1R6yedU6TyUv3u19a3KFnIbTLYz+ZCLP4T0tU1uivFgso0pnsJ/UtXvarNY28Xq5cvkBDrQP/E5ZaiuQwwfmTlsOiQRU1fMuqrDd/3ISSuwjOwXOfTyGUMpZIXq4GpLn3pUcdfzch2x7XO1u2uZHOPb1G6b3Xg9PH1IIWeEpJlPQtqos2EKW8b0u8rnuP1UeVLoXJb9be0uG9nnbchjU+XTszT5VeNBThPHnc5OKj1U9aj0GTHIVaGy1YhEWT4ixns00DT+XEzWn/7VAsIc63Cov3OdyhwjrnaqQqZvWKXdypRdlq+k8msZ031U+Rm4fA+3TtyeR9hwfW9G9yxDN0fZMN33F+9TE6md4hwoxumfaUzI9fN3PFT3xVV2msrQ3UsnChm6Nulk8TndpS28D3zX9tTIPsF/z7Am5OkTjm1tI1JZW74+4VgsZ0N3L1yXV3WeP5uR7TGHHdvC3JQlxybfpd22tDlk/2eofRK8TzrN/qnar/K/OUTth6I/+jAnEptNbPvFHP2gs40N3+dfMWtwqvVct7/wfd8gtQ7imifial9ZJ9/3IHLYU6eDj3+4PhsNhX+vwvcWLnu6kGfEMe8DuciPfUfGZB8X/7HJy/Gefe5n+VRGFd/wyP2ta7/LO4yh/sbLV/k9lev6kfO9Dt/5U67b1/6u/epqB1U9Me23jfHY9sscAg4tkbLl+e4/U36rJ9ddxfd6sg5vq5ice42Wpk/pb9FOJ36/W9tpv4kbC79nUbZceX8Zu6/qJ+P3WvhvA8v3reh7Jbn2d6rrNC7XNZTLma4Ba0JI9efX2uLzF5scG/w9UNU1ZxW+ymUfzELeTllXlQ1rUuhzjS5fp9c964iFBOqeSz63bU065nZKdU+mDEz3qHIjjifquw0pnb/raRtvrnsYcb46ihT3taoYz6brdNW9l6rWRnE/navdPn1XlR1km7hcz1WlH/elKuSOSvLLuE8U6m8uzwRdfcGl73VyTHuyMvzJ1Sa2cWDTP/Z63Kc94n2B1PYr24dz1JlyHLlcP+S4B6vD1c9EW4q2LWstCvUjeVy63k/LMYdUNd5D1xQfvVTzX1VjkMsUv88N8VH5fReVn/Fjn++/h6X6Q8a6b1/q3g/i/ewi0/Scs8zxXeV6mWIOUPlPzBgdFerW+bZrm2P18dnjuK6HunEp+rHvPMXbr+sHVb/lnL+pTP57jPw9Cvk3PW178JD9qChfzuvTf7Htl38L1QUf/VKu9SFjwWbTWPvFEvu7Uq76y7+31g6QlYPc669pbsm9Xur2LWI9Pu8ypfDXqm3A2z8s1FWGn4ntL9NfQu2oSlftX9uetvTtv7J8Ql4zxfXGZ3zk8PeQ9w59x2uMfqI8/q5eKh/l9cb2rwsu9rSNl06ZP2Pmxtz+rNMx93yno0n2/82rVH7rQ+y9P15H6FyRun9ViH81ATmffI7nJ5r8uXXW6enbP6b/B8/l5OifVHYLnb9S39s2zcc+Ph+rh8+eQgVPS72elzGWY/tUtbbabBpDiI7yN1q6/4th2y+ErAc5+9BVvu/7KamJbWNZeuqI/R4tRf+YyD1HmOZM1bMV3/14Sn10c0Xu+Sj1nOXb5jL73ncdy02uvlXZNde65dOHYl7Vs4KYuS6FzWLn2zJlpZqPXPVPOa5yzKOyn1VhT9lmMfdbfH7D11Wf2PXN5h9y+dD287+qxgSnaYmnIrRtIb8pJe6/Uv9OVer6Whn0zfGO/BEloZI9ojmfAlUflClDd178bTmVHVTpZXOkAlk/lb42UujmI89HH5V+cl7XtowY6vTxLVWok6UrGzoGTHN+bB+6ri05687VNpvfuvRfaP2uMlNQth1D5JjGelm/8yn+9p3p/7qk9gnfeddXZmq/Sm333PJT659Kv1zjNbZ9uv2Oi//67CV8/N1nj1DmviyXDNVeJkaeaX8UsyesYg8cu2+NvdaPfb+lLDu5tvt/"); var $557adaaeb0c7885f$var$classTrie = new import_unicode_trie.default($557adaaeb0c7885f$var$data); -var $557adaaeb0c7885f$var$mapClass = function(c2) { - switch (c2) { +var $557adaaeb0c7885f$var$mapClass = function(c) { + switch (c) { case $1627905f8be2ef3f$export$d710c5f50fc7496a: return $1627905f8be2ef3f$export$1bb1140fe1358b00; case $1627905f8be2ef3f$export$da51c6332ad11d7b: @@ -3483,18 +3483,18 @@ var $557adaaeb0c7885f$var$mapClass = function(c2) { case $1627905f8be2ef3f$export$eb6c6d0b7c8826f2: return $1627905f8be2ef3f$export$fb4028874a74450; default: - return c2; + return c; } }; -var $557adaaeb0c7885f$var$mapFirst = function(c2) { - switch (c2) { +var $557adaaeb0c7885f$var$mapFirst = function(c) { + switch (c) { case $1627905f8be2ef3f$export$606cfc2a8896c91f: case $1627905f8be2ef3f$export$e51d3c675bb0140d: return $1627905f8be2ef3f$export$66498d28055820a9; case $1627905f8be2ef3f$export$c4c7eecbfed13dc9: return $1627905f8be2ef3f$export$9e5d732f3676a9ba; default: - return c2; + return c; } }; var $557adaaeb0c7885f$var$Break = class { @@ -3614,7 +3614,7 @@ var $557adaaeb0c7885f$var$LineBreaker = class { }; $557adaaeb0c7885f$exports = $557adaaeb0c7885f$var$LineBreaker; -// node_modules/.pnpm/satori@0.10.1/node_modules/satori/dist/index.wasm.js +// node_modules/.pnpm/satori@0.10.3/node_modules/satori/dist/index.wasm.js var import_css_to_react_native = __toESM(require_css_to_react_native(), 1); var import_css_background_parser = __toESM(require_css_background_parser(), 1); var import_css_box_shadow = __toESM(require_css_box_shadow(), 1); @@ -3705,8 +3705,8 @@ function parseAlpha(alpha) { return clamp(a, 0, 1); } function getHEX(hex) { - const [r, g2, b, a] = (0, import_hex_rgb.default)(hex, { format: "array" }); - return getRGB([null, ...[r, g2, b, a]]); + const [r, g, b, a] = (0, import_hex_rgb.default)(hex, { format: "array" }); + return getRGB([null, ...[r, g, b, a]]); } function getHSL([, h, s, l, a = 1]) { let hh = h; @@ -3723,10 +3723,10 @@ function getHSL([, h, s, l, a = 1]) { alpha: parseAlpha(a === null ? 1 : a) }; } -function getRGB([, r, g2, b, a = 1]) { +function getRGB([, r, g, b, a = 1]) { return { type: "rgb", - values: [r, g2, b].map(parseRGB), + values: [r, g, b].map(parseRGB), alpha: parseAlpha(a === null ? 1 : a) }; } @@ -3751,7 +3751,7 @@ var parseCSSColor = (str) => { }; var index_esm_default = parseCSSColor; -// node_modules/.pnpm/satori@0.10.1/node_modules/satori/dist/index.wasm.js +// node_modules/.pnpm/satori@0.10.3/node_modules/satori/dist/index.wasm.js var import_postcss_value_parser = __toESM(require_lib(), 1); var import_css_to_react_native2 = __toESM(require_css_to_react_native(), 1); var import_escape_html = __toESM(require_escape_html(), 1); @@ -3900,13 +3900,13 @@ var ec = [ "stream finishing", "invalid zip data" ]; -var err = function(ind, msg, nt2) { +var err = function(ind, msg, nt) { var e = new Error(msg || ec[ind]); e.code = ind; if (Error.captureStackTrace) { Error.captureStackTrace(e, err); } - if (!nt2) { + if (!nt) { throw e; } return e; @@ -3932,7 +3932,7 @@ var inflt = function(dat, buf, st) { buf = nbuf; } }; - var final = st.f || 0, pos = st.p || 0, bt = st.b || 0, lm = st.l, dm = st.d, lbt = st.m, dbt = st.n; + var final = st.f || 0, pos = st.p || 0, bt2 = st.b || 0, lm = st.l, dm = st.d, lbt = st.m, dbt = st.n; var tbts = sl2 * 8; do { if (!lm) { @@ -3948,10 +3948,10 @@ var inflt = function(dat, buf, st) { break; } if (noBuf) { - cbuf(bt + l); + cbuf(bt2 + l); } - buf.set(dat.subarray(s, t), bt); - st.b = bt += l, st.p = pos = t * 8, st.f = final; + buf.set(dat.subarray(s, t), bt2); + st.b = bt2 += l, st.p = pos = t * 8, st.f = final; continue; } else if (type == 1) { lm = flrm, dm = fdrm, lbt = 9, dbt = 5; @@ -3974,24 +3974,24 @@ var inflt = function(dat, buf, st) { if (s < 16) { ldt[i++] = s; } else { - var c2 = 0, n = 0; + var c = 0, n = 0; if (s == 16) { - n = 3 + bits(dat, pos, 3), pos += 2, c2 = ldt[i - 1]; + n = 3 + bits(dat, pos, 3), pos += 2, c = ldt[i - 1]; } else if (s == 17) { n = 3 + bits(dat, pos, 7), pos += 3; } else if (s == 18) { n = 11 + bits(dat, pos, 127), pos += 7; } while (n--) { - ldt[i++] = c2; + ldt[i++] = c; } } } - var lt = ldt.subarray(0, hLit), dt2 = ldt.subarray(hLit); + var lt = ldt.subarray(0, hLit), dt = ldt.subarray(hLit); lbt = max(lt); - dbt = max(dt2); + dbt = max(dt); lm = hMap(lt, lbt, 1); - dm = hMap(dt2, dbt, 1); + dm = hMap(dt, dbt, 1); } else { err(1); } @@ -4003,24 +4003,24 @@ var inflt = function(dat, buf, st) { } } if (noBuf) { - cbuf(bt + 131072); + cbuf(bt2 + 131072); } var lms = (1 << lbt) - 1, dms = (1 << dbt) - 1; var lpos = pos; for (; ; lpos = pos) { - var c2 = lm[bits16(dat, pos) & lms], sym = c2 >>> 4; - pos += c2 & 15; + var c = lm[bits16(dat, pos) & lms], sym = c >>> 4; + pos += c & 15; if (pos > tbts) { if (noSt) { err(0); } break; } - if (!c2) { + if (!c) { err(2); } if (sym < 256) { - buf[bt++] = sym; + buf[bt2++] = sym; } else if (sym == 256) { lpos = pos, lm = null; break; @@ -4036,10 +4036,10 @@ var inflt = function(dat, buf, st) { err(3); } pos += d & 15; - var dt2 = fd[dsym]; + var dt = fd[dsym]; if (dsym > 3) { var b = fdeb[dsym]; - dt2 += bits16(dat, pos) & (1 << b) - 1, pos += b; + dt += bits16(dat, pos) & (1 << b) - 1, pos += b; } if (pos > tbts) { if (noSt) { @@ -4048,24 +4048,24 @@ var inflt = function(dat, buf, st) { break; } if (noBuf) { - cbuf(bt + 131072); + cbuf(bt2 + 131072); } - var end = bt + add; - for (; bt < end; bt += 4) { - buf[bt] = buf[bt - dt2]; - buf[bt + 1] = buf[bt + 1 - dt2]; - buf[bt + 2] = buf[bt + 2 - dt2]; - buf[bt + 3] = buf[bt + 3 - dt2]; + var end = bt2 + add; + for (; bt2 < end; bt2 += 4) { + buf[bt2] = buf[bt2 - dt]; + buf[bt2 + 1] = buf[bt2 + 1 - dt]; + buf[bt2 + 2] = buf[bt2 + 2 - dt]; + buf[bt2 + 3] = buf[bt2 + 3 - dt]; } - bt = end; + bt2 = end; } } - st.l = lm, st.p = lpos, st.b = bt, st.f = final; + st.l = lm, st.p = lpos, st.b = bt2, st.f = final; if (lm) { final = 1, st.m = lbt, st.d = dm, st.n = dbt; } } while (!final); - return bt == buf.length ? buf : slc(buf, 0, bt); + return bt2 == buf.length ? buf : slc(buf, 0, bt2); }; var et = /* @__PURE__ */ new u8(0); function inflateSync(data, out) { @@ -5074,8 +5074,8 @@ var cffExpertEncoding = [ function DefaultEncoding(font) { this.font = font; } -DefaultEncoding.prototype.charToGlyphIndex = function(c2) { - var code = c2.codePointAt(0); +DefaultEncoding.prototype.charToGlyphIndex = function(c) { + var code = c.codePointAt(0); var glyphs = this.font.glyphs; if (glyphs) { for (var i = 0; i < glyphs.length; i += 1) { @@ -5092,8 +5092,8 @@ DefaultEncoding.prototype.charToGlyphIndex = function(c2) { function CmapEncoding(cmap2) { this.cmap = cmap2; } -CmapEncoding.prototype.charToGlyphIndex = function(c2) { - return this.cmap.glyphIndexMap[c2.codePointAt(0)] || 0; +CmapEncoding.prototype.charToGlyphIndex = function(c) { + return this.cmap.glyphIndexMap[c.codePointAt(0)] || 0; }; function CffEncoding(encoding, charset) { this.encoding = encoding; @@ -5109,10 +5109,10 @@ function addGlyphNamesAll(font) { var glyphIndexMap = font.tables.cmap.glyphIndexMap; var charCodes = Object.keys(glyphIndexMap); for (var i = 0; i < charCodes.length; i += 1) { - var c2 = charCodes[i]; - var glyphIndex = glyphIndexMap[c2]; + var c = charCodes[i]; + var glyphIndex = glyphIndexMap[c]; glyph = font.glyphs.get(glyphIndex); - glyph.addUnicode(parseInt(c2)); + glyph.addUnicode(parseInt(c)); } } function addGlyphNamesToUnicodeMap(font) { @@ -5120,14 +5120,14 @@ function addGlyphNamesToUnicodeMap(font) { var glyphIndexMap = font.tables.cmap.glyphIndexMap; var charCodes = Object.keys(glyphIndexMap); for (var i = 0; i < charCodes.length; i += 1) { - var c2 = charCodes[i]; - var glyphIndex = glyphIndexMap[c2]; + var c = charCodes[i]; + var glyphIndex = glyphIndexMap[c]; if (font._IndexToUnicodeMap[glyphIndex] === void 0) { font._IndexToUnicodeMap[glyphIndex] = { - unicodes: [parseInt(c2)] + unicodes: [parseInt(c)] }; } else { - font._IndexToUnicodeMap[glyphIndex].unicodes.push(parseInt(c2)); + font._IndexToUnicodeMap[glyphIndex].unicodes.push(parseInt(c)); } } } @@ -5246,9 +5246,9 @@ Glyph.prototype.getContours = function() { var contours = []; var currentContour = []; for (var i = 0; i < this.points.length; i += 1) { - var pt2 = this.points[i]; - currentContour.push(pt2); - if (pt2.lastPointOfContour) { + var pt = this.points[i]; + currentContour.push(pt); + if (pt.lastPointOfContour) { contours.push(currentContour); currentContour = []; } @@ -5629,8 +5629,8 @@ Position.prototype.getKerningValue = function(kerningLookups, leftIndex, rightIn switch (subtable.posFormat) { case 1: var pairSet = subtable.pairSets[covIndex]; - for (var k2 = 0; k2 < pairSet.length; k2++) { - var pair = pairSet[k2]; + for (var k = 0; k < pairSet.length; k++) { + var pair = pairSet[k]; if (pair.secondGlyph === rightIndex) { return pair.value1 && pair.value1.xAdvance || 0; } @@ -5772,8 +5772,8 @@ Substitution.prototype.getLigatures = function(feature, script, language) { for (var j = 0; j < glyphs.length; j++) { var startGlyph = glyphs[j]; var ligSet = ligatureSets[j]; - for (var k2 = 0; k2 < ligSet.length; k2++) { - var lig = ligSet[k2]; + for (var k = 0; k < ligSet.length; k++) { + var lig = ligSet[k]; ligatures.push({ sub: [startGlyph].concat(lig.components), by: lig.ligGlyph @@ -6549,12 +6549,12 @@ function parseGlyph(glyph, data, start) { function transformPoints(points, transform) { var newPoints = []; for (var i = 0; i < points.length; i += 1) { - var pt2 = points[i]; + var pt = points[i]; var newPt = { - x: transform.xScale * pt2.x + transform.scale01 * pt2.y + transform.dx, - y: transform.scale10 * pt2.x + transform.yScale * pt2.y + transform.dy, - onCurve: pt2.onCurve, - lastPointOfContour: pt2.lastPointOfContour + x: transform.xScale * pt.x + transform.scale01 * pt.y + transform.dx, + y: transform.scale10 * pt.x + transform.yScale * pt.y + transform.dy, + onCurve: pt.onCurve, + lastPointOfContour: pt.lastPointOfContour }; newPoints.push(newPt); } @@ -6564,9 +6564,9 @@ function getContours(points) { var contours = []; var currentContour = []; for (var i = 0; i < points.length; i += 1) { - var pt2 = points[i]; - currentContour.push(pt2); - if (pt2.lastPointOfContour) { + var pt = points[i]; + currentContour.push(pt); + if (pt.lastPointOfContour) { contours.push(currentContour); currentContour = []; } @@ -6747,7 +6747,7 @@ var xUnitVector = { var doa2; var dm1; var dm2; - var dt2; + var dt; if (!pv || pv === this) { do1 = p.xo - rp1.xo; do2 = p.xo - rp2.xo; @@ -6755,12 +6755,12 @@ var xUnitVector = { dm2 = rp2.x - rp2.xo; doa1 = Math.abs(do1); doa2 = Math.abs(do2); - dt2 = doa1 + doa2; - if (dt2 === 0) { + dt = doa1 + doa2; + if (dt === 0) { p.x = p.xo + (dm1 + dm2) / 2; return; } - p.x = p.xo + (dm1 * doa2 + dm2 * doa1) / dt2; + p.x = p.xo + (dm1 * doa2 + dm2 * doa1) / dt; return; } do1 = pv.distance(p, rp1, true, true); @@ -6769,12 +6769,12 @@ var xUnitVector = { dm2 = pv.distance(rp2, rp2, false, true); doa1 = Math.abs(do1); doa2 = Math.abs(do2); - dt2 = doa1 + doa2; - if (dt2 === 0) { + dt = doa1 + doa2; + if (dt === 0) { xUnitVector.setRelative(p, p, (dm1 + dm2) / 2, pv, true); return; } - xUnitVector.setRelative(p, p, (dm1 * doa2 + dm2 * doa1) / dt2, pv, true); + xUnitVector.setRelative(p, p, (dm1 * doa2 + dm2 * doa1) / dt, pv, true); }, normalSlope: Number.NEGATIVE_INFINITY, setRelative: function(p, rp, d, pv, org) { @@ -6813,7 +6813,7 @@ var yUnitVector = { var doa2; var dm1; var dm2; - var dt2; + var dt; if (!pv || pv === this) { do1 = p.yo - rp1.yo; do2 = p.yo - rp2.yo; @@ -6821,12 +6821,12 @@ var yUnitVector = { dm2 = rp2.y - rp2.yo; doa1 = Math.abs(do1); doa2 = Math.abs(do2); - dt2 = doa1 + doa2; - if (dt2 === 0) { + dt = doa1 + doa2; + if (dt === 0) { p.y = p.yo + (dm1 + dm2) / 2; return; } - p.y = p.yo + (dm1 * doa2 + dm2 * doa1) / dt2; + p.y = p.yo + (dm1 * doa2 + dm2 * doa1) / dt; return; } do1 = pv.distance(p, rp1, true, true); @@ -6835,12 +6835,12 @@ var yUnitVector = { dm2 = pv.distance(rp2, rp2, false, true); doa1 = Math.abs(do1); doa2 = Math.abs(do2); - dt2 = doa1 + doa2; - if (dt2 === 0) { + dt = doa1 + doa2; + if (dt === 0) { yUnitVector.setRelative(p, p, (dm1 + dm2) / 2, pv, true); return; } - yUnitVector.setRelative(p, p, (dm1 * doa2 + dm2 * doa1) / dt2, pv, true); + yUnitVector.setRelative(p, p, (dm1 * doa2 + dm2 * doa1) / dt, pv, true); }, normalSlope: 0, setRelative: function(p, rp, d, pv, org) { @@ -6885,19 +6885,19 @@ UnitVector.prototype.interpolate = function(p, rp1, rp2, pv) { var do2; var doa1; var doa2; - var dt2; + var dt; do1 = pv.distance(p, rp1, true, true); do2 = pv.distance(p, rp2, true, true); dm1 = pv.distance(rp1, rp1, false, true); dm2 = pv.distance(rp2, rp2, false, true); doa1 = Math.abs(do1); doa2 = Math.abs(do2); - dt2 = doa1 + doa2; - if (dt2 === 0) { + dt = doa1 + doa2; + if (dt === 0) { this.setRelative(p, p, (dm1 + dm2) / 2, pv, true); return; } - this.setRelative(p, p, (dm1 * doa2 + dm2 * doa1) / dt2, pv, true); + this.setRelative(p, p, (dm1 * doa2 + dm2 * doa1) / dt, pv, true); }; UnitVector.prototype.setRelative = function(p, rp, d, pv, org) { pv = pv || this; @@ -7010,8 +7010,8 @@ Hinting.prototype.exec = function(glyph, ppem) { if (oCvt) { var cvt = prepState.cvt = new Array(oCvt.length); var scale = ppem / font.unitsPerEm; - for (var c2 = 0; c2 < oCvt.length; c2++) { - cvt[c2] = oCvt[c2] * scale; + for (var c = 0; c < oCvt.length; c++) { + cvt[c] = oCvt[c] * scale; } } else { prepState.cvt = []; @@ -7064,20 +7064,20 @@ execGlyph = function(glyph, prepState) { gZone = []; contours = []; for (var i = 0; i < components.length; i++) { - var c2 = components[i]; - var cg = font.glyphs.get(c2.glyphIndex); + var c = components[i]; + var cg = font.glyphs.get(c.glyphIndex); state = new State("glyf", cg.instructions); if (exports.DEBUG) { console.log("---EXEC COMP " + i + "---"); state.step = -1; } execComponent(cg, state, xScale, yScale); - var dx = Math.round(c2.dx * xScale); - var dy = Math.round(c2.dy * yScale); + var dx = Math.round(c.dx * xScale); + var dy = Math.round(c.dy * yScale); var gz = state.gZone; var cc = state.contours; - for (var pi2 = 0; pi2 < gz.length; pi2++) { - var p = gz[pi2]; + for (var pi = 0; pi < gz.length; pi++) { + var p = gz[pi]; p.xTouched = p.yTouched = false; p.xo = p.x = p.x + dx; p.yo = p.y = p.y + dy; @@ -7305,16 +7305,16 @@ function ISECT(state) { var pa1i = stack.pop(); var pb0i = stack.pop(); var pb1i = stack.pop(); - var pi2 = stack.pop(); + var pi = stack.pop(); var z0 = state.z0; var z1 = state.z1; var pa0 = z0[pa0i]; var pa1 = z0[pa1i]; var pb0 = z1[pb0i]; var pb1 = z1[pb1i]; - var p = state.z2[pi2]; + var p = state.z2[pi]; if (exports.DEBUG) { - console.log("ISECT[], ", pa0i, pa1i, pb0i, pb1i, pi2); + console.log("ISECT[], ", pa0i, pa1i, pb0i, pb1i, pi); } var x1 = pa0.x; var y1 = pa0.y; @@ -7512,17 +7512,17 @@ function DEPTH(state) { function LOOPCALL(state) { var stack = state.stack; var fn = stack.pop(); - var c2 = stack.pop(); + var c = stack.pop(); if (exports.DEBUG) { - console.log(state.step, "LOOPCALL[]", fn, c2); + console.log(state.step, "LOOPCALL[]", fn, c); } var cip = state.ip; var cprog = state.prog; state.prog = state.funcs[fn]; - for (var i = 0; i < c2; i++) { + for (var i = 0; i < c; i++) { exec(state); if (exports.DEBUG) { - console.log(++state.step, i + 1 < c2 ? "next loopcall" : "done loopcall", i); + console.log(++state.step, i + 1 < c ? "next loopcall" : "done loopcall", i); } } state.ip = cip; @@ -7545,19 +7545,19 @@ function CALL(state) { } function CINDEX(state) { var stack = state.stack; - var k2 = stack.pop(); + var k = stack.pop(); if (exports.DEBUG) { - console.log(state.step, "CINDEX[]", k2); + console.log(state.step, "CINDEX[]", k); } - stack.push(stack[stack.length - k2]); + stack.push(stack[stack.length - k]); } function MINDEX(state) { var stack = state.stack; - var k2 = stack.pop(); + var k = stack.pop(); if (exports.DEBUG) { - console.log(state.step, "MINDEX[]", k2); + console.log(state.step, "MINDEX[]", k); } - stack.push(stack.splice(stack.length - k2, 1)[0]); + stack.push(stack.splice(stack.length - k, 1)[0]); } function FDEF(state) { if (state.env !== "fpgm") { @@ -7577,12 +7577,12 @@ function FDEF(state) { state.funcs[fn] = prog.slice(ipBegin + 1, ip); } function MDAP(round, state) { - var pi2 = state.stack.pop(); - var p = state.z0[pi2]; + var pi = state.stack.pop(); + var p = state.z0[pi]; var fv = state.fv; var pv = state.pv; if (exports.DEBUG) { - console.log(state.step, "MDAP[" + round + "]", pi2); + console.log(state.step, "MDAP[" + round + "]", pi); } var d = pv.distance(p, HPZero); if (round) { @@ -7590,7 +7590,7 @@ function MDAP(round, state) { } fv.setRelative(p, HPZero, d, pv); fv.touch(p); - state.rp0 = state.rp1 = pi2; + state.rp0 = state.rp1 = pi; } function IUP(v, state) { var z2 = state.z2; @@ -7626,13 +7626,13 @@ function SHP(a, state) { var loop = state.loop; var z2 = state.z2; while (loop--) { - var pi2 = stack.pop(); - var p = z2[pi2]; + var pi = stack.pop(); + var p = z2[pi]; var d = pv.distance(rp, rp, false, true); fv.setRelative(p, p, d, pv); fv.touch(p); if (exports.DEBUG) { - console.log(state.step, (state.loop > 1 ? "loop " + (state.loop - loop) + ": " : "") + "SHP[" + (a ? "rp1" : "rp2") + "]", pi2); + console.log(state.step, (state.loop > 1 ? "loop " + (state.loop - loop) + ": " : "") + "SHP[" + (a ? "rp1" : "rp2") + "]", pi); } } state.loop = 1; @@ -7693,10 +7693,10 @@ function SHPIX(state) { var d = stack.pop() / 64; var z2 = state.z2; while (loop--) { - var pi2 = stack.pop(); - var p = z2[pi2]; + var pi = stack.pop(); + var p = z2[pi]; if (exports.DEBUG) { - console.log(state.step, (state.loop > 1 ? "loop " + (state.loop - loop) + ": " : "") + "SHPIX[]", pi2, d); + console.log(state.step, (state.loop > 1 ? "loop " + (state.loop - loop) + ": " : "") + "SHPIX[]", pi, d); } fv.setRelative(p, p, d); fv.touch(p); @@ -7714,10 +7714,10 @@ function IP(state) { var pv = state.dpv; var z2 = state.z2; while (loop--) { - var pi2 = stack.pop(); - var p = z2[pi2]; + var pi = stack.pop(); + var p = z2[pi]; if (exports.DEBUG) { - console.log(state.step, (state.loop > 1 ? "loop " + (state.loop - loop) + ": " : "") + "IP[]", pi2, rp1i, "<->", rp2i); + console.log(state.step, (state.loop > 1 ? "loop " + (state.loop - loop) + ": " : "") + "IP[]", pi, rp1i, "<->", rp2i); } fv.interpolate(p, rp1, rp2, pv); fv.touch(p); @@ -7727,20 +7727,20 @@ function IP(state) { function MSIRP(a, state) { var stack = state.stack; var d = stack.pop() / 64; - var pi2 = stack.pop(); - var p = state.z1[pi2]; + var pi = stack.pop(); + var p = state.z1[pi]; var rp0 = state.z0[state.rp0]; var fv = state.fv; var pv = state.pv; fv.setRelative(p, rp0, d, pv); fv.touch(p); if (exports.DEBUG) { - console.log(state.step, "MSIRP[" + a + "]", d, pi2); + console.log(state.step, "MSIRP[" + a + "]", d, pi); } state.rp1 = state.rp0; - state.rp2 = pi2; + state.rp2 = pi; if (a) { - state.rp0 = pi2; + state.rp0 = pi; } } function ALIGNRP(state) { @@ -7752,10 +7752,10 @@ function ALIGNRP(state) { var pv = state.pv; var z1 = state.z1; while (loop--) { - var pi2 = stack.pop(); - var p = z1[pi2]; + var pi = stack.pop(); + var p = z1[pi]; if (exports.DEBUG) { - console.log(state.step, (state.loop > 1 ? "loop " + (state.loop - loop) + ": " : "") + "ALIGNRP[]", pi2); + console.log(state.step, (state.loop > 1 ? "loop " + (state.loop - loop) + ": " : "") + "ALIGNRP[]", pi); } fv.setRelative(p, rp0, 0, pv); fv.touch(p); @@ -7771,13 +7771,13 @@ function RTDG(state) { function MIAP(round, state) { var stack = state.stack; var n = stack.pop(); - var pi2 = stack.pop(); - var p = state.z0[pi2]; + var pi = stack.pop(); + var p = state.z0[pi]; var fv = state.fv; var pv = state.pv; var cv = state.cvt[n]; if (exports.DEBUG) { - console.log(state.step, "MIAP[" + round + "]", n, "(", cv, ")", pi2); + console.log(state.step, "MIAP[" + round + "]", n, "(", cv, ")", pi); } var d = pv.distance(p, HPZero); if (round) { @@ -7792,7 +7792,7 @@ function MIAP(round, state) { p.yo = p.y; } fv.touch(p); - state.rp0 = state.rp1 = pi2; + state.rp0 = state.rp1 = pi; } function NPUSHB(state) { var prog = state.prog; @@ -7866,10 +7866,10 @@ function RCVT(state) { } function GC(a, state) { var stack = state.stack; - var pi2 = stack.pop(); - var p = state.z2[pi2]; + var pi = stack.pop(); + var p = state.z2[pi]; if (exports.DEBUG) { - console.log(state.step, "GC[" + a + "]", pi2); + console.log(state.step, "GC[" + a + "]", pi); } stack.push(state.dpv.distance(p, HPZero, a, false) * 64); } @@ -8023,7 +8023,7 @@ function DELTAP123(b, state) { console.log(state.step, "DELTAP[" + b + "]", n, stack); } for (var i = 0; i < n; i++) { - var pi2 = stack.pop(); + var pi = stack.pop(); var arg = stack.pop(); var appem = base + ((arg & 240) >> 4); if (appem !== ppem) { @@ -8034,9 +8034,9 @@ function DELTAP123(b, state) { mag++; } if (exports.DEBUG) { - console.log(state.step, "DELTAPFIX", pi2, "by", mag * ds); + console.log(state.step, "DELTAPFIX", pi, "by", mag * ds); } - var p = z0[pi2]; + var p = z0[pi]; fv.setRelative(p, p, mag * ds, pv); } } @@ -8124,7 +8124,7 @@ function CEILING(state) { } stack.push(Math.ceil(n / 64) * 64); } -function ROUND(dt2, state) { +function ROUND(dt, state) { var stack = state.stack; var n = stack.pop(); if (exports.DEBUG) { @@ -8151,7 +8151,7 @@ function DELTAC123(b, state) { console.log(state.step, "DELTAC[" + b + "]", n, stack); } for (var i = 0; i < n; i++) { - var c2 = stack.pop(); + var c = stack.pop(); var arg = stack.pop(); var appem = base + ((arg & 240) >> 4); if (appem !== ppem) { @@ -8163,9 +8163,9 @@ function DELTAC123(b, state) { } var delta = mag * ds; if (exports.DEBUG) { - console.log(state.step, "DELTACFIX", c2, "by", delta); + console.log(state.step, "DELTACFIX", c, "by", delta); } - state.cvt[c2] += delta; + state.cvt[c] += delta; } } function SROUND(state) { @@ -8319,13 +8319,13 @@ function ROLL(state) { var stack = state.stack; var a = stack.pop(); var b = stack.pop(); - var c2 = stack.pop(); + var c = stack.pop(); if (exports.DEBUG) { console.log(state.step, "ROLL[]"); } stack.push(b); stack.push(a); - stack.push(c2); + stack.push(c); } function MAX(state) { var stack = state.stack; @@ -8396,13 +8396,13 @@ function PUSHW(n, state) { } state.ip = ip; } -function MDRP_MIRP(indirect, setRp0, keepD, ro, dt2, state) { +function MDRP_MIRP(indirect, setRp0, keepD, ro, dt, state) { var stack = state.stack; var cvte = indirect && stack.pop(); - var pi2 = stack.pop(); + var pi = stack.pop(); var rp0i = state.rp0; var rp = state.z0[rp0i]; - var p = state.z1[pi2]; + var p = state.z1[pi]; var md = state.minDis; var fv = state.fv; var pv = state.dpv; @@ -8428,12 +8428,12 @@ function MDRP_MIRP(indirect, setRp0, keepD, ro, dt2, state) { fv.setRelative(p, rp, sign * d, pv); fv.touch(p); if (exports.DEBUG) { - console.log(state.step, (indirect ? "MIRP[" : "MDRP[") + (setRp0 ? "M" : "m") + (keepD ? ">" : "_") + (ro ? "R" : "_") + (dt2 === 0 ? "Gr" : dt2 === 1 ? "Bl" : dt2 === 2 ? "Wh" : "") + "]", indirect ? cvte + "(" + state.cvt[cvte] + "," + cv + ")" : "", pi2, "(d =", od, "->", sign * d, ")"); + console.log(state.step, (indirect ? "MIRP[" : "MDRP[") + (setRp0 ? "M" : "m") + (keepD ? ">" : "_") + (ro ? "R" : "_") + (dt === 0 ? "Gr" : dt === 1 ? "Bl" : dt === 2 ? "Wh" : "") + "]", indirect ? cvte + "(" + state.cvt[cvte] + "," + cv + ")" : "", pi, "(d =", od, "->", sign * d, ")"); } state.rp1 = state.rp0; - state.rp2 = pi2; + state.rp2 = pi; if (setRp0) { - state.rp0 = pi2; + state.rp0 = pi; } } instructionTable = [ @@ -9032,8 +9032,8 @@ Tokenizer.prototype.tokenize = function(text) { this.dispatch("end", [this.tokens]); return this.tokens; }; -function isArabicChar(c2) { - return /[\u0600-\u065F\u066A-\u06D2\u06FA-\u06FF]/.test(c2); +function isArabicChar(c) { + return /[\u0600-\u065F\u066A-\u06D2\u06FA-\u06FF]/.test(c); } function isIsolatedArabicChar(char) { return /[\u0630\u0690\u0621\u0631\u0661\u0671\u0622\u0632\u0672\u0692\u06C2\u0623\u0673\u0693\u06C3\u0624\u0694\u06C4\u0625\u0675\u0695\u06C5\u06E5\u0676\u0696\u06C6\u0627\u0677\u0697\u06C7\u0648\u0688\u0698\u06C8\u0689\u0699\u06C9\u068A\u06CA\u066B\u068B\u06CB\u068C\u068D\u06CD\u06FD\u068E\u06EE\u06FE\u062F\u068F\u06CF\u06EF]/.test(char); @@ -9041,11 +9041,11 @@ function isIsolatedArabicChar(char) { function isTashkeelArabicChar(char) { return /[\u0600-\u0605\u060C-\u060E\u0610-\u061B\u061E\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED]/.test(char); } -function isLatinChar(c2) { - return /[A-z]/.test(c2); +function isLatinChar(c) { + return /[A-z]/.test(c); } -function isWhiteSpace(c2) { - return /\s/.test(c2); +function isWhiteSpace(c) { + return /\s/.test(c); } function FeatureQuery(font) { this.font = font; @@ -9440,8 +9440,8 @@ function arabicSentenceEndCheck(contextParams) { } if (nextIsWhitespace) { var arabicCharAhead = false; - arabicCharAhead = contextParams.lookahead.some(function(c2) { - return isArabicChar(c2) || isTashkeelArabicChar(c2); + arabicCharAhead = contextParams.lookahead.some(function(c) { + return isArabicChar(c) || isTashkeelArabicChar(c); }); if (!arabicCharAhead) { return true; @@ -9827,14 +9827,14 @@ function Font(options) { } }); } -Font.prototype.hasChar = function(c2) { - return this.encoding.charToGlyphIndex(c2) !== null; +Font.prototype.hasChar = function(c) { + return this.encoding.charToGlyphIndex(c) !== null; }; Font.prototype.charToGlyphIndex = function(s) { return this.encoding.charToGlyphIndex(s); }; -Font.prototype.charToGlyph = function(c2) { - var glyphIndex = this.charToGlyphIndex(c2); +Font.prototype.charToGlyph = function(c) { + var glyphIndex = this.charToGlyphIndex(c); var glyph = this.glyphs.get(glyphIndex); if (!glyph) { glyph = this.glyphs.get(0); @@ -9984,8 +9984,8 @@ function parseCmapTableFormat12(cmap2, p) { var startCharCode = p.parseULong(); var endCharCode = p.parseULong(); var startGlyphId = p.parseULong(); - for (var c2 = startCharCode; c2 <= endCharCode; c2 += 1) { - cmap2.glyphIndexMap[c2] = startGlyphId; + for (var c = startCharCode; c <= endCharCode; c += 1) { + cmap2.glyphIndexMap[c] = startGlyphId; startGlyphId++; } } @@ -10008,19 +10008,19 @@ function parseCmapTableFormat4(cmap2, p, data, start, offset) { var startCount = startCountParser.parseUShort(); var idDelta = idDeltaParser.parseShort(); var idRangeOffset = idRangeOffsetParser.parseUShort(); - for (var c2 = startCount; c2 <= endCount; c2 += 1) { + for (var c = startCount; c <= endCount; c += 1) { if (idRangeOffset !== 0) { glyphIndexOffset = idRangeOffsetParser.offset + idRangeOffsetParser.relativeOffset - 2; glyphIndexOffset += idRangeOffset; - glyphIndexOffset += (c2 - startCount) * 2; + glyphIndexOffset += (c - startCount) * 2; glyphIndex = parse.getUShort(data, glyphIndexOffset); if (glyphIndex !== 0) { glyphIndex = glyphIndex + idDelta & 65535; } } else { - glyphIndex = c2 + idDelta & 65535; + glyphIndex = c + idDelta & 65535; } - cmap2.glyphIndexMap[c2] = glyphIndex; + cmap2.glyphIndexMap[c] = glyphIndex; } } } @@ -11616,11 +11616,11 @@ decode.MACSTRING = function(dataView, offset, dataLength, encoding) { } var result = ""; for (var i = 0; i < dataLength; i++) { - var c2 = dataView.getUint8(offset + i); - if (c2 <= 127) { - result += String.fromCharCode(c2); + var c = dataView.getUint8(offset + i); + if (c <= 127) { + result += String.fromCharCode(c); } else { - result += table[c2 & 127]; + result += table[c & 127]; } } return result; @@ -11889,43 +11889,39 @@ var opentype = /* @__PURE__ */ Object.freeze({ }); var opentype_module_default = opentype; -// node_modules/.pnpm/satori@0.10.1/node_modules/satori/dist/index.wasm.js -var Tl = Object.create; -var Rr = Object.defineProperty; -var Al = Object.getOwnPropertyDescriptor; -var Ol = Object.getOwnPropertyNames; -var Pl = Object.getPrototypeOf; -var Il = Object.prototype.hasOwnProperty; -var Lr = (e, t) => () => (e && (t = e(e = 0)), t); -var P = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports); -var Fn = (e, t) => { +// node_modules/.pnpm/satori@0.10.3/node_modules/satori/dist/index.wasm.js +var _l = Object.create; +var Br = Object.defineProperty; +var Sl = Object.getOwnPropertyDescriptor; +var kl = Object.getOwnPropertyNames; +var Tl = Object.getPrototypeOf; +var Al = Object.prototype.hasOwnProperty; +var vn = (e, t) => () => (e && (t = e(e = 0)), t); +var T = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports); +var yn = (e, t) => { for (var n in t) - Rr(e, n, { get: t[n], enumerable: true }); + Br(e, n, { get: t[n], enumerable: true }); }; -var Yo = (e, t, n, r) => { +var Go = (e, t, n, r) => { if (t && typeof t == "object" || typeof t == "function") - for (let i of Ol(t)) - !Il.call(e, i) && i !== n && Rr(e, i, { get: () => t[i], enumerable: !(r = Al(t, i)) || r.enumerable }); + for (let i of kl(t)) + !Al.call(e, i) && i !== n && Br(e, i, { get: () => t[i], enumerable: !(r = Sl(t, i)) || r.enumerable }); return e; }; -var Bl = (e, t, n) => (n = e != null ? Tl(Pl(e)) : {}, Yo(t || !e || !e.__esModule ? Rr(n, "default", { value: e, enumerable: true }) : n, e)); -var Mr = (e) => Yo(Rr({}, "__esModule", { value: true }), e); -var c = Lr(() => { -}); -var Xo = {}; -Fn(Xo, { getYogaModule: () => Rl }); -async function Rl() { +var Ol = (e, t, n) => (n = e != null ? _l(Tl(e)) : {}, Go(t || !e || !e.__esModule ? Br(n, "default", { value: e, enumerable: true }) : n, e)); +var Ir = (e) => Go(Br({}, "__esModule", { value: true }), e); +var jo = {}; +yn(jo, { getYogaModule: () => Pl }); +async function Pl() { return {}; } -var Qo = Lr(() => { - c(); +var Ho = vn(() => { }); -var Kn = P((Qn) => { +var Xn = T((Yn) => { "use strict"; - c(); - Object.defineProperty(Qn, "__esModule", { value: true }); - Object.defineProperty(Qn, "default", { enumerable: true, get: () => Hf }); - function Hf(e) { + Object.defineProperty(Yn, "__esModule", { value: true }); + Object.defineProperty(Yn, "default", { enumerable: true, get: () => zf }); + function zf(e) { if (e = `${e}`, e === "0") return "0"; if (/^[+-]?(\d+|\d*\.\d+)(e[+-]?\d+)?(%|\w+)?$/.test(e)) @@ -11934,32 +11930,28 @@ var Kn = P((Qn) => { return `calc(${e} * -1)`; } }); -var Gu = P((Jn) => { +var Wu = T((Qn) => { "use strict"; - c(); - Object.defineProperty(Jn, "__esModule", { value: true }); - Object.defineProperty(Jn, "default", { enumerable: true, get: () => Vf }); - var Vf = ["preflight", "container", "accessibility", "pointerEvents", "visibility", "position", "inset", "isolation", "zIndex", "order", "gridColumn", "gridColumnStart", "gridColumnEnd", "gridRow", "gridRowStart", "gridRowEnd", "float", "clear", "margin", "boxSizing", "display", "aspectRatio", "height", "maxHeight", "minHeight", "width", "minWidth", "maxWidth", "flex", "flexShrink", "flexGrow", "flexBasis", "tableLayout", "borderCollapse", "borderSpacing", "transformOrigin", "translate", "rotate", "skew", "scale", "transform", "animation", "cursor", "touchAction", "userSelect", "resize", "scrollSnapType", "scrollSnapAlign", "scrollSnapStop", "scrollMargin", "scrollPadding", "listStylePosition", "listStyleType", "appearance", "columns", "breakBefore", "breakInside", "breakAfter", "gridAutoColumns", "gridAutoFlow", "gridAutoRows", "gridTemplateColumns", "gridTemplateRows", "flexDirection", "flexWrap", "placeContent", "placeItems", "alignContent", "alignItems", "justifyContent", "justifyItems", "gap", "space", "divideWidth", "divideStyle", "divideColor", "divideOpacity", "placeSelf", "alignSelf", "justifySelf", "overflow", "overscrollBehavior", "scrollBehavior", "textOverflow", "whitespace", "wordBreak", "borderRadius", "borderWidth", "borderStyle", "borderColor", "borderOpacity", "backgroundColor", "backgroundOpacity", "backgroundImage", "gradientColorStops", "boxDecorationBreak", "backgroundSize", "backgroundAttachment", "backgroundClip", "backgroundPosition", "backgroundRepeat", "backgroundOrigin", "fill", "stroke", "strokeWidth", "objectFit", "objectPosition", "padding", "textAlign", "textIndent", "verticalAlign", "fontFamily", "fontSize", "fontWeight", "textTransform", "fontStyle", "fontVariantNumeric", "lineHeight", "letterSpacing", "textColor", "textOpacity", "textDecoration", "textDecorationColor", "textDecorationStyle", "textDecorationThickness", "textUnderlineOffset", "fontSmoothing", "placeholderColor", "placeholderOpacity", "caretColor", "accentColor", "opacity", "backgroundBlendMode", "mixBlendMode", "boxShadow", "boxShadowColor", "outlineStyle", "outlineWidth", "outlineOffset", "outlineColor", "ringWidth", "ringColor", "ringOpacity", "ringOffsetWidth", "ringOffsetColor", "blur", "brightness", "contrast", "dropShadow", "grayscale", "hueRotate", "invert", "saturate", "sepia", "filter", "backdropBlur", "backdropBrightness", "backdropContrast", "backdropGrayscale", "backdropHueRotate", "backdropInvert", "backdropOpacity", "backdropSaturate", "backdropSepia", "backdropFilter", "transitionProperty", "transitionDelay", "transitionDuration", "transitionTimingFunction", "willChange", "content"]; + Object.defineProperty(Qn, "__esModule", { value: true }); + Object.defineProperty(Qn, "default", { enumerable: true, get: () => Gf }); + var Gf = ["preflight", "container", "accessibility", "pointerEvents", "visibility", "position", "inset", "isolation", "zIndex", "order", "gridColumn", "gridColumnStart", "gridColumnEnd", "gridRow", "gridRowStart", "gridRowEnd", "float", "clear", "margin", "boxSizing", "display", "aspectRatio", "height", "maxHeight", "minHeight", "width", "minWidth", "maxWidth", "flex", "flexShrink", "flexGrow", "flexBasis", "tableLayout", "borderCollapse", "borderSpacing", "transformOrigin", "translate", "rotate", "skew", "scale", "transform", "animation", "cursor", "touchAction", "userSelect", "resize", "scrollSnapType", "scrollSnapAlign", "scrollSnapStop", "scrollMargin", "scrollPadding", "listStylePosition", "listStyleType", "appearance", "columns", "breakBefore", "breakInside", "breakAfter", "gridAutoColumns", "gridAutoFlow", "gridAutoRows", "gridTemplateColumns", "gridTemplateRows", "flexDirection", "flexWrap", "placeContent", "placeItems", "alignContent", "alignItems", "justifyContent", "justifyItems", "gap", "space", "divideWidth", "divideStyle", "divideColor", "divideOpacity", "placeSelf", "alignSelf", "justifySelf", "overflow", "overscrollBehavior", "scrollBehavior", "textOverflow", "whitespace", "wordBreak", "borderRadius", "borderWidth", "borderStyle", "borderColor", "borderOpacity", "backgroundColor", "backgroundOpacity", "backgroundImage", "gradientColorStops", "boxDecorationBreak", "backgroundSize", "backgroundAttachment", "backgroundClip", "backgroundPosition", "backgroundRepeat", "backgroundOrigin", "fill", "stroke", "strokeWidth", "objectFit", "objectPosition", "padding", "textAlign", "textIndent", "verticalAlign", "fontFamily", "fontSize", "fontWeight", "textTransform", "fontStyle", "fontVariantNumeric", "lineHeight", "letterSpacing", "textColor", "textOpacity", "textDecoration", "textDecorationColor", "textDecorationStyle", "textDecorationThickness", "textUnderlineOffset", "fontSmoothing", "placeholderColor", "placeholderOpacity", "caretColor", "accentColor", "opacity", "backgroundBlendMode", "mixBlendMode", "boxShadow", "boxShadowColor", "outlineStyle", "outlineWidth", "outlineOffset", "outlineColor", "ringWidth", "ringColor", "ringOpacity", "ringOffsetWidth", "ringOffsetColor", "blur", "brightness", "contrast", "dropShadow", "grayscale", "hueRotate", "invert", "saturate", "sepia", "filter", "backdropBlur", "backdropBrightness", "backdropContrast", "backdropGrayscale", "backdropHueRotate", "backdropInvert", "backdropOpacity", "backdropSaturate", "backdropSepia", "backdropFilter", "transitionProperty", "transitionDelay", "transitionDuration", "transitionTimingFunction", "willChange", "content"]; }); -var ju = P((Zn) => { +var qu = T((Kn) => { "use strict"; - c(); - Object.defineProperty(Zn, "__esModule", { value: true }); - Object.defineProperty(Zn, "default", { enumerable: true, get: () => Yf }); - function Yf(e, t) { + Object.defineProperty(Kn, "__esModule", { value: true }); + Object.defineProperty(Kn, "default", { enumerable: true, get: () => jf }); + function jf(e, t) { return e === void 0 ? t : Array.isArray(e) ? e : [...new Set(t.filter((r) => e !== false && e[r] !== false).concat(Object.keys(e).filter((r) => e[r] !== false)))]; } }); -var ei = P((tb, Hu) => { - c(); - Hu.exports = { content: [], presets: [], darkMode: "media", theme: { screens: { sm: "640px", md: "768px", lg: "1024px", xl: "1280px", "2xl": "1536px" }, colors: ({ colors: e }) => ({ inherit: e.inherit, current: e.current, transparent: e.transparent, black: e.black, white: e.white, slate: e.slate, gray: e.gray, zinc: e.zinc, neutral: e.neutral, stone: e.stone, red: e.red, orange: e.orange, amber: e.amber, yellow: e.yellow, lime: e.lime, green: e.green, emerald: e.emerald, teal: e.teal, cyan: e.cyan, sky: e.sky, blue: e.blue, indigo: e.indigo, violet: e.violet, purple: e.purple, fuchsia: e.fuchsia, pink: e.pink, rose: e.rose }), columns: { auto: "auto", 1: "1", 2: "2", 3: "3", 4: "4", 5: "5", 6: "6", 7: "7", 8: "8", 9: "9", 10: "10", 11: "11", 12: "12", "3xs": "16rem", "2xs": "18rem", xs: "20rem", sm: "24rem", md: "28rem", lg: "32rem", xl: "36rem", "2xl": "42rem", "3xl": "48rem", "4xl": "56rem", "5xl": "64rem", "6xl": "72rem", "7xl": "80rem" }, spacing: { px: "1px", 0: "0px", 0.5: "0.125rem", 1: "0.25rem", 1.5: "0.375rem", 2: "0.5rem", 2.5: "0.625rem", 3: "0.75rem", 3.5: "0.875rem", 4: "1rem", 5: "1.25rem", 6: "1.5rem", 7: "1.75rem", 8: "2rem", 9: "2.25rem", 10: "2.5rem", 11: "2.75rem", 12: "3rem", 14: "3.5rem", 16: "4rem", 20: "5rem", 24: "6rem", 28: "7rem", 32: "8rem", 36: "9rem", 40: "10rem", 44: "11rem", 48: "12rem", 52: "13rem", 56: "14rem", 60: "15rem", 64: "16rem", 72: "18rem", 80: "20rem", 96: "24rem" }, animation: { none: "none", spin: "spin 1s linear infinite", ping: "ping 1s cubic-bezier(0, 0, 0.2, 1) infinite", pulse: "pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite", bounce: "bounce 1s infinite" }, aspectRatio: { auto: "auto", square: "1 / 1", video: "16 / 9" }, backdropBlur: ({ theme: e }) => e("blur"), backdropBrightness: ({ theme: e }) => e("brightness"), backdropContrast: ({ theme: e }) => e("contrast"), backdropGrayscale: ({ theme: e }) => e("grayscale"), backdropHueRotate: ({ theme: e }) => e("hueRotate"), backdropInvert: ({ theme: e }) => e("invert"), backdropOpacity: ({ theme: e }) => e("opacity"), backdropSaturate: ({ theme: e }) => e("saturate"), backdropSepia: ({ theme: e }) => e("sepia"), backgroundColor: ({ theme: e }) => e("colors"), backgroundImage: { none: "none", "gradient-to-t": "linear-gradient(to top, var(--tw-gradient-stops))", "gradient-to-tr": "linear-gradient(to top right, var(--tw-gradient-stops))", "gradient-to-r": "linear-gradient(to right, var(--tw-gradient-stops))", "gradient-to-br": "linear-gradient(to bottom right, var(--tw-gradient-stops))", "gradient-to-b": "linear-gradient(to bottom, var(--tw-gradient-stops))", "gradient-to-bl": "linear-gradient(to bottom left, var(--tw-gradient-stops))", "gradient-to-l": "linear-gradient(to left, var(--tw-gradient-stops))", "gradient-to-tl": "linear-gradient(to top left, var(--tw-gradient-stops))" }, backgroundOpacity: ({ theme: e }) => e("opacity"), backgroundPosition: { bottom: "bottom", center: "center", left: "left", "left-bottom": "left bottom", "left-top": "left top", right: "right", "right-bottom": "right bottom", "right-top": "right top", top: "top" }, backgroundSize: { auto: "auto", cover: "cover", contain: "contain" }, blur: { 0: "0", none: "0", sm: "4px", DEFAULT: "8px", md: "12px", lg: "16px", xl: "24px", "2xl": "40px", "3xl": "64px" }, brightness: { 0: "0", 50: ".5", 75: ".75", 90: ".9", 95: ".95", 100: "1", 105: "1.05", 110: "1.1", 125: "1.25", 150: "1.5", 200: "2" }, borderColor: ({ theme: e }) => ({ ...e("colors"), DEFAULT: e("colors.gray.200", "currentColor") }), borderOpacity: ({ theme: e }) => e("opacity"), borderRadius: { none: "0px", sm: "0.125rem", DEFAULT: "0.25rem", md: "0.375rem", lg: "0.5rem", xl: "0.75rem", "2xl": "1rem", "3xl": "1.5rem", full: "9999px" }, borderSpacing: ({ theme: e }) => ({ ...e("spacing") }), borderWidth: { DEFAULT: "1px", 0: "0px", 2: "2px", 4: "4px", 8: "8px" }, boxShadow: { sm: "0 1px 2px 0 rgb(0 0 0 / 0.05)", DEFAULT: "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)", md: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)", lg: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)", xl: "0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)", "2xl": "0 25px 50px -12px rgb(0 0 0 / 0.25)", inner: "inset 0 2px 4px 0 rgb(0 0 0 / 0.05)", none: "none" }, boxShadowColor: ({ theme: e }) => e("colors"), caretColor: ({ theme: e }) => e("colors"), accentColor: ({ theme: e }) => ({ ...e("colors"), auto: "auto" }), contrast: { 0: "0", 50: ".5", 75: ".75", 100: "1", 125: "1.25", 150: "1.5", 200: "2" }, container: {}, content: { none: "none" }, cursor: { auto: "auto", default: "default", pointer: "pointer", wait: "wait", text: "text", move: "move", help: "help", "not-allowed": "not-allowed", none: "none", "context-menu": "context-menu", progress: "progress", cell: "cell", crosshair: "crosshair", "vertical-text": "vertical-text", alias: "alias", copy: "copy", "no-drop": "no-drop", grab: "grab", grabbing: "grabbing", "all-scroll": "all-scroll", "col-resize": "col-resize", "row-resize": "row-resize", "n-resize": "n-resize", "e-resize": "e-resize", "s-resize": "s-resize", "w-resize": "w-resize", "ne-resize": "ne-resize", "nw-resize": "nw-resize", "se-resize": "se-resize", "sw-resize": "sw-resize", "ew-resize": "ew-resize", "ns-resize": "ns-resize", "nesw-resize": "nesw-resize", "nwse-resize": "nwse-resize", "zoom-in": "zoom-in", "zoom-out": "zoom-out" }, divideColor: ({ theme: e }) => e("borderColor"), divideOpacity: ({ theme: e }) => e("borderOpacity"), divideWidth: ({ theme: e }) => e("borderWidth"), dropShadow: { sm: "0 1px 1px rgb(0 0 0 / 0.05)", DEFAULT: ["0 1px 2px rgb(0 0 0 / 0.1)", "0 1px 1px rgb(0 0 0 / 0.06)"], md: ["0 4px 3px rgb(0 0 0 / 0.07)", "0 2px 2px rgb(0 0 0 / 0.06)"], lg: ["0 10px 8px rgb(0 0 0 / 0.04)", "0 4px 3px rgb(0 0 0 / 0.1)"], xl: ["0 20px 13px rgb(0 0 0 / 0.03)", "0 8px 5px rgb(0 0 0 / 0.08)"], "2xl": "0 25px 25px rgb(0 0 0 / 0.15)", none: "0 0 #0000" }, fill: ({ theme: e }) => e("colors"), grayscale: { 0: "0", DEFAULT: "100%" }, hueRotate: { 0: "0deg", 15: "15deg", 30: "30deg", 60: "60deg", 90: "90deg", 180: "180deg" }, invert: { 0: "0", DEFAULT: "100%" }, flex: { 1: "1 1 0%", auto: "1 1 auto", initial: "0 1 auto", none: "none" }, flexBasis: ({ theme: e }) => ({ auto: "auto", ...e("spacing"), "1/2": "50%", "1/3": "33.333333%", "2/3": "66.666667%", "1/4": "25%", "2/4": "50%", "3/4": "75%", "1/5": "20%", "2/5": "40%", "3/5": "60%", "4/5": "80%", "1/6": "16.666667%", "2/6": "33.333333%", "3/6": "50%", "4/6": "66.666667%", "5/6": "83.333333%", "1/12": "8.333333%", "2/12": "16.666667%", "3/12": "25%", "4/12": "33.333333%", "5/12": "41.666667%", "6/12": "50%", "7/12": "58.333333%", "8/12": "66.666667%", "9/12": "75%", "10/12": "83.333333%", "11/12": "91.666667%", full: "100%" }), flexGrow: { 0: "0", DEFAULT: "1" }, flexShrink: { 0: "0", DEFAULT: "1" }, fontFamily: { sans: ["ui-sans-serif", "system-ui", "-apple-system", "BlinkMacSystemFont", '"Segoe UI"', "Roboto", '"Helvetica Neue"', "Arial", '"Noto Sans"', "sans-serif", '"Apple Color Emoji"', '"Segoe UI Emoji"', '"Segoe UI Symbol"', '"Noto Color Emoji"'], serif: ["ui-serif", "Georgia", "Cambria", '"Times New Roman"', "Times", "serif"], mono: ["ui-monospace", "SFMono-Regular", "Menlo", "Monaco", "Consolas", '"Liberation Mono"', '"Courier New"', "monospace"] }, fontSize: { xs: ["0.75rem", { lineHeight: "1rem" }], sm: ["0.875rem", { lineHeight: "1.25rem" }], base: ["1rem", { lineHeight: "1.5rem" }], lg: ["1.125rem", { lineHeight: "1.75rem" }], xl: ["1.25rem", { lineHeight: "1.75rem" }], "2xl": ["1.5rem", { lineHeight: "2rem" }], "3xl": ["1.875rem", { lineHeight: "2.25rem" }], "4xl": ["2.25rem", { lineHeight: "2.5rem" }], "5xl": ["3rem", { lineHeight: "1" }], "6xl": ["3.75rem", { lineHeight: "1" }], "7xl": ["4.5rem", { lineHeight: "1" }], "8xl": ["6rem", { lineHeight: "1" }], "9xl": ["8rem", { lineHeight: "1" }] }, fontWeight: { thin: "100", extralight: "200", light: "300", normal: "400", medium: "500", semibold: "600", bold: "700", extrabold: "800", black: "900" }, gap: ({ theme: e }) => e("spacing"), gradientColorStops: ({ theme: e }) => e("colors"), gridAutoColumns: { auto: "auto", min: "min-content", max: "max-content", fr: "minmax(0, 1fr)" }, gridAutoRows: { auto: "auto", min: "min-content", max: "max-content", fr: "minmax(0, 1fr)" }, gridColumn: { auto: "auto", "span-1": "span 1 / span 1", "span-2": "span 2 / span 2", "span-3": "span 3 / span 3", "span-4": "span 4 / span 4", "span-5": "span 5 / span 5", "span-6": "span 6 / span 6", "span-7": "span 7 / span 7", "span-8": "span 8 / span 8", "span-9": "span 9 / span 9", "span-10": "span 10 / span 10", "span-11": "span 11 / span 11", "span-12": "span 12 / span 12", "span-full": "1 / -1" }, gridColumnEnd: { auto: "auto", 1: "1", 2: "2", 3: "3", 4: "4", 5: "5", 6: "6", 7: "7", 8: "8", 9: "9", 10: "10", 11: "11", 12: "12", 13: "13" }, gridColumnStart: { auto: "auto", 1: "1", 2: "2", 3: "3", 4: "4", 5: "5", 6: "6", 7: "7", 8: "8", 9: "9", 10: "10", 11: "11", 12: "12", 13: "13" }, gridRow: { auto: "auto", "span-1": "span 1 / span 1", "span-2": "span 2 / span 2", "span-3": "span 3 / span 3", "span-4": "span 4 / span 4", "span-5": "span 5 / span 5", "span-6": "span 6 / span 6", "span-full": "1 / -1" }, gridRowStart: { auto: "auto", 1: "1", 2: "2", 3: "3", 4: "4", 5: "5", 6: "6", 7: "7" }, gridRowEnd: { auto: "auto", 1: "1", 2: "2", 3: "3", 4: "4", 5: "5", 6: "6", 7: "7" }, gridTemplateColumns: { none: "none", 1: "repeat(1, minmax(0, 1fr))", 2: "repeat(2, minmax(0, 1fr))", 3: "repeat(3, minmax(0, 1fr))", 4: "repeat(4, minmax(0, 1fr))", 5: "repeat(5, minmax(0, 1fr))", 6: "repeat(6, minmax(0, 1fr))", 7: "repeat(7, minmax(0, 1fr))", 8: "repeat(8, minmax(0, 1fr))", 9: "repeat(9, minmax(0, 1fr))", 10: "repeat(10, minmax(0, 1fr))", 11: "repeat(11, minmax(0, 1fr))", 12: "repeat(12, minmax(0, 1fr))" }, gridTemplateRows: { none: "none", 1: "repeat(1, minmax(0, 1fr))", 2: "repeat(2, minmax(0, 1fr))", 3: "repeat(3, minmax(0, 1fr))", 4: "repeat(4, minmax(0, 1fr))", 5: "repeat(5, minmax(0, 1fr))", 6: "repeat(6, minmax(0, 1fr))" }, height: ({ theme: e }) => ({ auto: "auto", ...e("spacing"), "1/2": "50%", "1/3": "33.333333%", "2/3": "66.666667%", "1/4": "25%", "2/4": "50%", "3/4": "75%", "1/5": "20%", "2/5": "40%", "3/5": "60%", "4/5": "80%", "1/6": "16.666667%", "2/6": "33.333333%", "3/6": "50%", "4/6": "66.666667%", "5/6": "83.333333%", full: "100%", screen: "100vh", min: "min-content", max: "max-content", fit: "fit-content" }), inset: ({ theme: e }) => ({ auto: "auto", ...e("spacing"), "1/2": "50%", "1/3": "33.333333%", "2/3": "66.666667%", "1/4": "25%", "2/4": "50%", "3/4": "75%", full: "100%" }), keyframes: { spin: { to: { transform: "rotate(360deg)" } }, ping: { "75%, 100%": { transform: "scale(2)", opacity: "0" } }, pulse: { "50%": { opacity: ".5" } }, bounce: { "0%, 100%": { transform: "translateY(-25%)", animationTimingFunction: "cubic-bezier(0.8,0,1,1)" }, "50%": { transform: "none", animationTimingFunction: "cubic-bezier(0,0,0.2,1)" } } }, letterSpacing: { tighter: "-0.05em", tight: "-0.025em", normal: "0em", wide: "0.025em", wider: "0.05em", widest: "0.1em" }, lineHeight: { none: "1", tight: "1.25", snug: "1.375", normal: "1.5", relaxed: "1.625", loose: "2", 3: ".75rem", 4: "1rem", 5: "1.25rem", 6: "1.5rem", 7: "1.75rem", 8: "2rem", 9: "2.25rem", 10: "2.5rem" }, listStyleType: { none: "none", disc: "disc", decimal: "decimal" }, margin: ({ theme: e }) => ({ auto: "auto", ...e("spacing") }), maxHeight: ({ theme: e }) => ({ ...e("spacing"), full: "100%", screen: "100vh", min: "min-content", max: "max-content", fit: "fit-content" }), maxWidth: ({ theme: e, breakpoints: t }) => ({ none: "none", 0: "0rem", xs: "20rem", sm: "24rem", md: "28rem", lg: "32rem", xl: "36rem", "2xl": "42rem", "3xl": "48rem", "4xl": "56rem", "5xl": "64rem", "6xl": "72rem", "7xl": "80rem", full: "100%", min: "min-content", max: "max-content", fit: "fit-content", prose: "65ch", ...t(e("screens")) }), minHeight: { 0: "0px", full: "100%", screen: "100vh", min: "min-content", max: "max-content", fit: "fit-content" }, minWidth: { 0: "0px", full: "100%", min: "min-content", max: "max-content", fit: "fit-content" }, objectPosition: { bottom: "bottom", center: "center", left: "left", "left-bottom": "left bottom", "left-top": "left top", right: "right", "right-bottom": "right bottom", "right-top": "right top", top: "top" }, opacity: { 0: "0", 5: "0.05", 10: "0.1", 20: "0.2", 25: "0.25", 30: "0.3", 40: "0.4", 50: "0.5", 60: "0.6", 70: "0.7", 75: "0.75", 80: "0.8", 90: "0.9", 95: "0.95", 100: "1" }, order: { first: "-9999", last: "9999", none: "0", 1: "1", 2: "2", 3: "3", 4: "4", 5: "5", 6: "6", 7: "7", 8: "8", 9: "9", 10: "10", 11: "11", 12: "12" }, padding: ({ theme: e }) => e("spacing"), placeholderColor: ({ theme: e }) => e("colors"), placeholderOpacity: ({ theme: e }) => e("opacity"), outlineColor: ({ theme: e }) => e("colors"), outlineOffset: { 0: "0px", 1: "1px", 2: "2px", 4: "4px", 8: "8px" }, outlineWidth: { 0: "0px", 1: "1px", 2: "2px", 4: "4px", 8: "8px" }, ringColor: ({ theme: e }) => ({ DEFAULT: e("colors.blue.500", "#3b82f6"), ...e("colors") }), ringOffsetColor: ({ theme: e }) => e("colors"), ringOffsetWidth: { 0: "0px", 1: "1px", 2: "2px", 4: "4px", 8: "8px" }, ringOpacity: ({ theme: e }) => ({ DEFAULT: "0.5", ...e("opacity") }), ringWidth: { DEFAULT: "3px", 0: "0px", 1: "1px", 2: "2px", 4: "4px", 8: "8px" }, rotate: { 0: "0deg", 1: "1deg", 2: "2deg", 3: "3deg", 6: "6deg", 12: "12deg", 45: "45deg", 90: "90deg", 180: "180deg" }, saturate: { 0: "0", 50: ".5", 100: "1", 150: "1.5", 200: "2" }, scale: { 0: "0", 50: ".5", 75: ".75", 90: ".9", 95: ".95", 100: "1", 105: "1.05", 110: "1.1", 125: "1.25", 150: "1.5" }, scrollMargin: ({ theme: e }) => ({ ...e("spacing") }), scrollPadding: ({ theme: e }) => e("spacing"), sepia: { 0: "0", DEFAULT: "100%" }, skew: { 0: "0deg", 1: "1deg", 2: "2deg", 3: "3deg", 6: "6deg", 12: "12deg" }, space: ({ theme: e }) => ({ ...e("spacing") }), stroke: ({ theme: e }) => e("colors"), strokeWidth: { 0: "0", 1: "1", 2: "2" }, textColor: ({ theme: e }) => e("colors"), textDecorationColor: ({ theme: e }) => e("colors"), textDecorationThickness: { auto: "auto", "from-font": "from-font", 0: "0px", 1: "1px", 2: "2px", 4: "4px", 8: "8px" }, textUnderlineOffset: { auto: "auto", 0: "0px", 1: "1px", 2: "2px", 4: "4px", 8: "8px" }, textIndent: ({ theme: e }) => ({ ...e("spacing") }), textOpacity: ({ theme: e }) => e("opacity"), transformOrigin: { center: "center", top: "top", "top-right": "top right", right: "right", "bottom-right": "bottom right", bottom: "bottom", "bottom-left": "bottom left", left: "left", "top-left": "top left" }, transitionDelay: { 75: "75ms", 100: "100ms", 150: "150ms", 200: "200ms", 300: "300ms", 500: "500ms", 700: "700ms", 1e3: "1000ms" }, transitionDuration: { DEFAULT: "150ms", 75: "75ms", 100: "100ms", 150: "150ms", 200: "200ms", 300: "300ms", 500: "500ms", 700: "700ms", 1e3: "1000ms" }, transitionProperty: { none: "none", all: "all", DEFAULT: "color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter", colors: "color, background-color, border-color, text-decoration-color, fill, stroke", opacity: "opacity", shadow: "box-shadow", transform: "transform" }, transitionTimingFunction: { DEFAULT: "cubic-bezier(0.4, 0, 0.2, 1)", linear: "linear", in: "cubic-bezier(0.4, 0, 1, 1)", out: "cubic-bezier(0, 0, 0.2, 1)", "in-out": "cubic-bezier(0.4, 0, 0.2, 1)" }, translate: ({ theme: e }) => ({ ...e("spacing"), "1/2": "50%", "1/3": "33.333333%", "2/3": "66.666667%", "1/4": "25%", "2/4": "50%", "3/4": "75%", full: "100%" }), width: ({ theme: e }) => ({ auto: "auto", ...e("spacing"), "1/2": "50%", "1/3": "33.333333%", "2/3": "66.666667%", "1/4": "25%", "2/4": "50%", "3/4": "75%", "1/5": "20%", "2/5": "40%", "3/5": "60%", "4/5": "80%", "1/6": "16.666667%", "2/6": "33.333333%", "3/6": "50%", "4/6": "66.666667%", "5/6": "83.333333%", "1/12": "8.333333%", "2/12": "16.666667%", "3/12": "25%", "4/12": "33.333333%", "5/12": "41.666667%", "6/12": "50%", "7/12": "58.333333%", "8/12": "66.666667%", "9/12": "75%", "10/12": "83.333333%", "11/12": "91.666667%", full: "100%", screen: "100vw", min: "min-content", max: "max-content", fit: "fit-content" }), willChange: { auto: "auto", scroll: "scroll-position", contents: "contents", transform: "transform" }, zIndex: { auto: "auto", 0: "0", 10: "10", 20: "20", 30: "30", 40: "40", 50: "50" } }, variantOrder: ["first", "last", "odd", "even", "visited", "checked", "empty", "read-only", "group-hover", "group-focus", "focus-within", "hover", "focus", "focus-visible", "active", "disabled"], plugins: [] }; +var Jn = T((Kg, Uu) => { + Uu.exports = { content: [], presets: [], darkMode: "media", theme: { screens: { sm: "640px", md: "768px", lg: "1024px", xl: "1280px", "2xl": "1536px" }, colors: ({ colors: e }) => ({ inherit: e.inherit, current: e.current, transparent: e.transparent, black: e.black, white: e.white, slate: e.slate, gray: e.gray, zinc: e.zinc, neutral: e.neutral, stone: e.stone, red: e.red, orange: e.orange, amber: e.amber, yellow: e.yellow, lime: e.lime, green: e.green, emerald: e.emerald, teal: e.teal, cyan: e.cyan, sky: e.sky, blue: e.blue, indigo: e.indigo, violet: e.violet, purple: e.purple, fuchsia: e.fuchsia, pink: e.pink, rose: e.rose }), columns: { auto: "auto", 1: "1", 2: "2", 3: "3", 4: "4", 5: "5", 6: "6", 7: "7", 8: "8", 9: "9", 10: "10", 11: "11", 12: "12", "3xs": "16rem", "2xs": "18rem", xs: "20rem", sm: "24rem", md: "28rem", lg: "32rem", xl: "36rem", "2xl": "42rem", "3xl": "48rem", "4xl": "56rem", "5xl": "64rem", "6xl": "72rem", "7xl": "80rem" }, spacing: { px: "1px", 0: "0px", 0.5: "0.125rem", 1: "0.25rem", 1.5: "0.375rem", 2: "0.5rem", 2.5: "0.625rem", 3: "0.75rem", 3.5: "0.875rem", 4: "1rem", 5: "1.25rem", 6: "1.5rem", 7: "1.75rem", 8: "2rem", 9: "2.25rem", 10: "2.5rem", 11: "2.75rem", 12: "3rem", 14: "3.5rem", 16: "4rem", 20: "5rem", 24: "6rem", 28: "7rem", 32: "8rem", 36: "9rem", 40: "10rem", 44: "11rem", 48: "12rem", 52: "13rem", 56: "14rem", 60: "15rem", 64: "16rem", 72: "18rem", 80: "20rem", 96: "24rem" }, animation: { none: "none", spin: "spin 1s linear infinite", ping: "ping 1s cubic-bezier(0, 0, 0.2, 1) infinite", pulse: "pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite", bounce: "bounce 1s infinite" }, aspectRatio: { auto: "auto", square: "1 / 1", video: "16 / 9" }, backdropBlur: ({ theme: e }) => e("blur"), backdropBrightness: ({ theme: e }) => e("brightness"), backdropContrast: ({ theme: e }) => e("contrast"), backdropGrayscale: ({ theme: e }) => e("grayscale"), backdropHueRotate: ({ theme: e }) => e("hueRotate"), backdropInvert: ({ theme: e }) => e("invert"), backdropOpacity: ({ theme: e }) => e("opacity"), backdropSaturate: ({ theme: e }) => e("saturate"), backdropSepia: ({ theme: e }) => e("sepia"), backgroundColor: ({ theme: e }) => e("colors"), backgroundImage: { none: "none", "gradient-to-t": "linear-gradient(to top, var(--tw-gradient-stops))", "gradient-to-tr": "linear-gradient(to top right, var(--tw-gradient-stops))", "gradient-to-r": "linear-gradient(to right, var(--tw-gradient-stops))", "gradient-to-br": "linear-gradient(to bottom right, var(--tw-gradient-stops))", "gradient-to-b": "linear-gradient(to bottom, var(--tw-gradient-stops))", "gradient-to-bl": "linear-gradient(to bottom left, var(--tw-gradient-stops))", "gradient-to-l": "linear-gradient(to left, var(--tw-gradient-stops))", "gradient-to-tl": "linear-gradient(to top left, var(--tw-gradient-stops))" }, backgroundOpacity: ({ theme: e }) => e("opacity"), backgroundPosition: { bottom: "bottom", center: "center", left: "left", "left-bottom": "left bottom", "left-top": "left top", right: "right", "right-bottom": "right bottom", "right-top": "right top", top: "top" }, backgroundSize: { auto: "auto", cover: "cover", contain: "contain" }, blur: { 0: "0", none: "0", sm: "4px", DEFAULT: "8px", md: "12px", lg: "16px", xl: "24px", "2xl": "40px", "3xl": "64px" }, brightness: { 0: "0", 50: ".5", 75: ".75", 90: ".9", 95: ".95", 100: "1", 105: "1.05", 110: "1.1", 125: "1.25", 150: "1.5", 200: "2" }, borderColor: ({ theme: e }) => ({ ...e("colors"), DEFAULT: e("colors.gray.200", "currentColor") }), borderOpacity: ({ theme: e }) => e("opacity"), borderRadius: { none: "0px", sm: "0.125rem", DEFAULT: "0.25rem", md: "0.375rem", lg: "0.5rem", xl: "0.75rem", "2xl": "1rem", "3xl": "1.5rem", full: "9999px" }, borderSpacing: ({ theme: e }) => ({ ...e("spacing") }), borderWidth: { DEFAULT: "1px", 0: "0px", 2: "2px", 4: "4px", 8: "8px" }, boxShadow: { sm: "0 1px 2px 0 rgb(0 0 0 / 0.05)", DEFAULT: "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)", md: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)", lg: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)", xl: "0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)", "2xl": "0 25px 50px -12px rgb(0 0 0 / 0.25)", inner: "inset 0 2px 4px 0 rgb(0 0 0 / 0.05)", none: "none" }, boxShadowColor: ({ theme: e }) => e("colors"), caretColor: ({ theme: e }) => e("colors"), accentColor: ({ theme: e }) => ({ ...e("colors"), auto: "auto" }), contrast: { 0: "0", 50: ".5", 75: ".75", 100: "1", 125: "1.25", 150: "1.5", 200: "2" }, container: {}, content: { none: "none" }, cursor: { auto: "auto", default: "default", pointer: "pointer", wait: "wait", text: "text", move: "move", help: "help", "not-allowed": "not-allowed", none: "none", "context-menu": "context-menu", progress: "progress", cell: "cell", crosshair: "crosshair", "vertical-text": "vertical-text", alias: "alias", copy: "copy", "no-drop": "no-drop", grab: "grab", grabbing: "grabbing", "all-scroll": "all-scroll", "col-resize": "col-resize", "row-resize": "row-resize", "n-resize": "n-resize", "e-resize": "e-resize", "s-resize": "s-resize", "w-resize": "w-resize", "ne-resize": "ne-resize", "nw-resize": "nw-resize", "se-resize": "se-resize", "sw-resize": "sw-resize", "ew-resize": "ew-resize", "ns-resize": "ns-resize", "nesw-resize": "nesw-resize", "nwse-resize": "nwse-resize", "zoom-in": "zoom-in", "zoom-out": "zoom-out" }, divideColor: ({ theme: e }) => e("borderColor"), divideOpacity: ({ theme: e }) => e("borderOpacity"), divideWidth: ({ theme: e }) => e("borderWidth"), dropShadow: { sm: "0 1px 1px rgb(0 0 0 / 0.05)", DEFAULT: ["0 1px 2px rgb(0 0 0 / 0.1)", "0 1px 1px rgb(0 0 0 / 0.06)"], md: ["0 4px 3px rgb(0 0 0 / 0.07)", "0 2px 2px rgb(0 0 0 / 0.06)"], lg: ["0 10px 8px rgb(0 0 0 / 0.04)", "0 4px 3px rgb(0 0 0 / 0.1)"], xl: ["0 20px 13px rgb(0 0 0 / 0.03)", "0 8px 5px rgb(0 0 0 / 0.08)"], "2xl": "0 25px 25px rgb(0 0 0 / 0.15)", none: "0 0 #0000" }, fill: ({ theme: e }) => e("colors"), grayscale: { 0: "0", DEFAULT: "100%" }, hueRotate: { 0: "0deg", 15: "15deg", 30: "30deg", 60: "60deg", 90: "90deg", 180: "180deg" }, invert: { 0: "0", DEFAULT: "100%" }, flex: { 1: "1 1 0%", auto: "1 1 auto", initial: "0 1 auto", none: "none" }, flexBasis: ({ theme: e }) => ({ auto: "auto", ...e("spacing"), "1/2": "50%", "1/3": "33.333333%", "2/3": "66.666667%", "1/4": "25%", "2/4": "50%", "3/4": "75%", "1/5": "20%", "2/5": "40%", "3/5": "60%", "4/5": "80%", "1/6": "16.666667%", "2/6": "33.333333%", "3/6": "50%", "4/6": "66.666667%", "5/6": "83.333333%", "1/12": "8.333333%", "2/12": "16.666667%", "3/12": "25%", "4/12": "33.333333%", "5/12": "41.666667%", "6/12": "50%", "7/12": "58.333333%", "8/12": "66.666667%", "9/12": "75%", "10/12": "83.333333%", "11/12": "91.666667%", full: "100%" }), flexGrow: { 0: "0", DEFAULT: "1" }, flexShrink: { 0: "0", DEFAULT: "1" }, fontFamily: { sans: ["ui-sans-serif", "system-ui", "-apple-system", "BlinkMacSystemFont", '"Segoe UI"', "Roboto", '"Helvetica Neue"', "Arial", '"Noto Sans"', "sans-serif", '"Apple Color Emoji"', '"Segoe UI Emoji"', '"Segoe UI Symbol"', '"Noto Color Emoji"'], serif: ["ui-serif", "Georgia", "Cambria", '"Times New Roman"', "Times", "serif"], mono: ["ui-monospace", "SFMono-Regular", "Menlo", "Monaco", "Consolas", '"Liberation Mono"', '"Courier New"', "monospace"] }, fontSize: { xs: ["0.75rem", { lineHeight: "1rem" }], sm: ["0.875rem", { lineHeight: "1.25rem" }], base: ["1rem", { lineHeight: "1.5rem" }], lg: ["1.125rem", { lineHeight: "1.75rem" }], xl: ["1.25rem", { lineHeight: "1.75rem" }], "2xl": ["1.5rem", { lineHeight: "2rem" }], "3xl": ["1.875rem", { lineHeight: "2.25rem" }], "4xl": ["2.25rem", { lineHeight: "2.5rem" }], "5xl": ["3rem", { lineHeight: "1" }], "6xl": ["3.75rem", { lineHeight: "1" }], "7xl": ["4.5rem", { lineHeight: "1" }], "8xl": ["6rem", { lineHeight: "1" }], "9xl": ["8rem", { lineHeight: "1" }] }, fontWeight: { thin: "100", extralight: "200", light: "300", normal: "400", medium: "500", semibold: "600", bold: "700", extrabold: "800", black: "900" }, gap: ({ theme: e }) => e("spacing"), gradientColorStops: ({ theme: e }) => e("colors"), gridAutoColumns: { auto: "auto", min: "min-content", max: "max-content", fr: "minmax(0, 1fr)" }, gridAutoRows: { auto: "auto", min: "min-content", max: "max-content", fr: "minmax(0, 1fr)" }, gridColumn: { auto: "auto", "span-1": "span 1 / span 1", "span-2": "span 2 / span 2", "span-3": "span 3 / span 3", "span-4": "span 4 / span 4", "span-5": "span 5 / span 5", "span-6": "span 6 / span 6", "span-7": "span 7 / span 7", "span-8": "span 8 / span 8", "span-9": "span 9 / span 9", "span-10": "span 10 / span 10", "span-11": "span 11 / span 11", "span-12": "span 12 / span 12", "span-full": "1 / -1" }, gridColumnEnd: { auto: "auto", 1: "1", 2: "2", 3: "3", 4: "4", 5: "5", 6: "6", 7: "7", 8: "8", 9: "9", 10: "10", 11: "11", 12: "12", 13: "13" }, gridColumnStart: { auto: "auto", 1: "1", 2: "2", 3: "3", 4: "4", 5: "5", 6: "6", 7: "7", 8: "8", 9: "9", 10: "10", 11: "11", 12: "12", 13: "13" }, gridRow: { auto: "auto", "span-1": "span 1 / span 1", "span-2": "span 2 / span 2", "span-3": "span 3 / span 3", "span-4": "span 4 / span 4", "span-5": "span 5 / span 5", "span-6": "span 6 / span 6", "span-full": "1 / -1" }, gridRowStart: { auto: "auto", 1: "1", 2: "2", 3: "3", 4: "4", 5: "5", 6: "6", 7: "7" }, gridRowEnd: { auto: "auto", 1: "1", 2: "2", 3: "3", 4: "4", 5: "5", 6: "6", 7: "7" }, gridTemplateColumns: { none: "none", 1: "repeat(1, minmax(0, 1fr))", 2: "repeat(2, minmax(0, 1fr))", 3: "repeat(3, minmax(0, 1fr))", 4: "repeat(4, minmax(0, 1fr))", 5: "repeat(5, minmax(0, 1fr))", 6: "repeat(6, minmax(0, 1fr))", 7: "repeat(7, minmax(0, 1fr))", 8: "repeat(8, minmax(0, 1fr))", 9: "repeat(9, minmax(0, 1fr))", 10: "repeat(10, minmax(0, 1fr))", 11: "repeat(11, minmax(0, 1fr))", 12: "repeat(12, minmax(0, 1fr))" }, gridTemplateRows: { none: "none", 1: "repeat(1, minmax(0, 1fr))", 2: "repeat(2, minmax(0, 1fr))", 3: "repeat(3, minmax(0, 1fr))", 4: "repeat(4, minmax(0, 1fr))", 5: "repeat(5, minmax(0, 1fr))", 6: "repeat(6, minmax(0, 1fr))" }, height: ({ theme: e }) => ({ auto: "auto", ...e("spacing"), "1/2": "50%", "1/3": "33.333333%", "2/3": "66.666667%", "1/4": "25%", "2/4": "50%", "3/4": "75%", "1/5": "20%", "2/5": "40%", "3/5": "60%", "4/5": "80%", "1/6": "16.666667%", "2/6": "33.333333%", "3/6": "50%", "4/6": "66.666667%", "5/6": "83.333333%", full: "100%", screen: "100vh", min: "min-content", max: "max-content", fit: "fit-content" }), inset: ({ theme: e }) => ({ auto: "auto", ...e("spacing"), "1/2": "50%", "1/3": "33.333333%", "2/3": "66.666667%", "1/4": "25%", "2/4": "50%", "3/4": "75%", full: "100%" }), keyframes: { spin: { to: { transform: "rotate(360deg)" } }, ping: { "75%, 100%": { transform: "scale(2)", opacity: "0" } }, pulse: { "50%": { opacity: ".5" } }, bounce: { "0%, 100%": { transform: "translateY(-25%)", animationTimingFunction: "cubic-bezier(0.8,0,1,1)" }, "50%": { transform: "none", animationTimingFunction: "cubic-bezier(0,0,0.2,1)" } } }, letterSpacing: { tighter: "-0.05em", tight: "-0.025em", normal: "0em", wide: "0.025em", wider: "0.05em", widest: "0.1em" }, lineHeight: { none: "1", tight: "1.25", snug: "1.375", normal: "1.5", relaxed: "1.625", loose: "2", 3: ".75rem", 4: "1rem", 5: "1.25rem", 6: "1.5rem", 7: "1.75rem", 8: "2rem", 9: "2.25rem", 10: "2.5rem" }, listStyleType: { none: "none", disc: "disc", decimal: "decimal" }, margin: ({ theme: e }) => ({ auto: "auto", ...e("spacing") }), maxHeight: ({ theme: e }) => ({ ...e("spacing"), full: "100%", screen: "100vh", min: "min-content", max: "max-content", fit: "fit-content" }), maxWidth: ({ theme: e, breakpoints: t }) => ({ none: "none", 0: "0rem", xs: "20rem", sm: "24rem", md: "28rem", lg: "32rem", xl: "36rem", "2xl": "42rem", "3xl": "48rem", "4xl": "56rem", "5xl": "64rem", "6xl": "72rem", "7xl": "80rem", full: "100%", min: "min-content", max: "max-content", fit: "fit-content", prose: "65ch", ...t(e("screens")) }), minHeight: { 0: "0px", full: "100%", screen: "100vh", min: "min-content", max: "max-content", fit: "fit-content" }, minWidth: { 0: "0px", full: "100%", min: "min-content", max: "max-content", fit: "fit-content" }, objectPosition: { bottom: "bottom", center: "center", left: "left", "left-bottom": "left bottom", "left-top": "left top", right: "right", "right-bottom": "right bottom", "right-top": "right top", top: "top" }, opacity: { 0: "0", 5: "0.05", 10: "0.1", 20: "0.2", 25: "0.25", 30: "0.3", 40: "0.4", 50: "0.5", 60: "0.6", 70: "0.7", 75: "0.75", 80: "0.8", 90: "0.9", 95: "0.95", 100: "1" }, order: { first: "-9999", last: "9999", none: "0", 1: "1", 2: "2", 3: "3", 4: "4", 5: "5", 6: "6", 7: "7", 8: "8", 9: "9", 10: "10", 11: "11", 12: "12" }, padding: ({ theme: e }) => e("spacing"), placeholderColor: ({ theme: e }) => e("colors"), placeholderOpacity: ({ theme: e }) => e("opacity"), outlineColor: ({ theme: e }) => e("colors"), outlineOffset: { 0: "0px", 1: "1px", 2: "2px", 4: "4px", 8: "8px" }, outlineWidth: { 0: "0px", 1: "1px", 2: "2px", 4: "4px", 8: "8px" }, ringColor: ({ theme: e }) => ({ DEFAULT: e("colors.blue.500", "#3b82f6"), ...e("colors") }), ringOffsetColor: ({ theme: e }) => e("colors"), ringOffsetWidth: { 0: "0px", 1: "1px", 2: "2px", 4: "4px", 8: "8px" }, ringOpacity: ({ theme: e }) => ({ DEFAULT: "0.5", ...e("opacity") }), ringWidth: { DEFAULT: "3px", 0: "0px", 1: "1px", 2: "2px", 4: "4px", 8: "8px" }, rotate: { 0: "0deg", 1: "1deg", 2: "2deg", 3: "3deg", 6: "6deg", 12: "12deg", 45: "45deg", 90: "90deg", 180: "180deg" }, saturate: { 0: "0", 50: ".5", 100: "1", 150: "1.5", 200: "2" }, scale: { 0: "0", 50: ".5", 75: ".75", 90: ".9", 95: ".95", 100: "1", 105: "1.05", 110: "1.1", 125: "1.25", 150: "1.5" }, scrollMargin: ({ theme: e }) => ({ ...e("spacing") }), scrollPadding: ({ theme: e }) => e("spacing"), sepia: { 0: "0", DEFAULT: "100%" }, skew: { 0: "0deg", 1: "1deg", 2: "2deg", 3: "3deg", 6: "6deg", 12: "12deg" }, space: ({ theme: e }) => ({ ...e("spacing") }), stroke: ({ theme: e }) => e("colors"), strokeWidth: { 0: "0", 1: "1", 2: "2" }, textColor: ({ theme: e }) => e("colors"), textDecorationColor: ({ theme: e }) => e("colors"), textDecorationThickness: { auto: "auto", "from-font": "from-font", 0: "0px", 1: "1px", 2: "2px", 4: "4px", 8: "8px" }, textUnderlineOffset: { auto: "auto", 0: "0px", 1: "1px", 2: "2px", 4: "4px", 8: "8px" }, textIndent: ({ theme: e }) => ({ ...e("spacing") }), textOpacity: ({ theme: e }) => e("opacity"), transformOrigin: { center: "center", top: "top", "top-right": "top right", right: "right", "bottom-right": "bottom right", bottom: "bottom", "bottom-left": "bottom left", left: "left", "top-left": "top left" }, transitionDelay: { 75: "75ms", 100: "100ms", 150: "150ms", 200: "200ms", 300: "300ms", 500: "500ms", 700: "700ms", 1e3: "1000ms" }, transitionDuration: { DEFAULT: "150ms", 75: "75ms", 100: "100ms", 150: "150ms", 200: "200ms", 300: "300ms", 500: "500ms", 700: "700ms", 1e3: "1000ms" }, transitionProperty: { none: "none", all: "all", DEFAULT: "color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter", colors: "color, background-color, border-color, text-decoration-color, fill, stroke", opacity: "opacity", shadow: "box-shadow", transform: "transform" }, transitionTimingFunction: { DEFAULT: "cubic-bezier(0.4, 0, 0.2, 1)", linear: "linear", in: "cubic-bezier(0.4, 0, 1, 1)", out: "cubic-bezier(0, 0, 0.2, 1)", "in-out": "cubic-bezier(0.4, 0, 0.2, 1)" }, translate: ({ theme: e }) => ({ ...e("spacing"), "1/2": "50%", "1/3": "33.333333%", "2/3": "66.666667%", "1/4": "25%", "2/4": "50%", "3/4": "75%", full: "100%" }), width: ({ theme: e }) => ({ auto: "auto", ...e("spacing"), "1/2": "50%", "1/3": "33.333333%", "2/3": "66.666667%", "1/4": "25%", "2/4": "50%", "3/4": "75%", "1/5": "20%", "2/5": "40%", "3/5": "60%", "4/5": "80%", "1/6": "16.666667%", "2/6": "33.333333%", "3/6": "50%", "4/6": "66.666667%", "5/6": "83.333333%", "1/12": "8.333333%", "2/12": "16.666667%", "3/12": "25%", "4/12": "33.333333%", "5/12": "41.666667%", "6/12": "50%", "7/12": "58.333333%", "8/12": "66.666667%", "9/12": "75%", "10/12": "83.333333%", "11/12": "91.666667%", full: "100%", screen: "100vw", min: "min-content", max: "max-content", fit: "fit-content" }), willChange: { auto: "auto", scroll: "scroll-position", contents: "contents", transform: "transform" }, zIndex: { auto: "auto", 0: "0", 10: "10", 20: "20", 30: "30", 40: "40", 50: "50" } }, variantOrder: ["first", "last", "odd", "even", "visited", "checked", "empty", "read-only", "group-hover", "group-focus", "focus-within", "hover", "focus", "focus-visible", "active", "disabled"], plugins: [] }; }); -var Jr = {}; -Fn(Jr, { default: () => Xf }); -var Xf; -var Zr = Lr(() => { - c(); - Xf = { info(e, t) { +var Xr = {}; +yn(Xr, { default: () => Hf }); +var Hf; +var Qr = vn(() => { + Hf = { info(e, t) { console.info(...Array.isArray(e) ? [e] : [t, e]); }, warn(e, t) { console.warn(...Array.isArray(e) ? [e] : [t, e]); @@ -11967,36 +11959,34 @@ var Zr = Lr(() => { console.error(...Array.isArray(e) ? [e] : [t, e]); } }; }); -var Vu = P((ti) => { +var zu = T((Zn) => { "use strict"; - c(); - Object.defineProperty(ti, "__esModule", { value: true }); - Object.defineProperty(ti, "default", { enumerable: true, get: () => Jf }); - var Qf = Kf((Zr(), Mr(Jr))); - function Kf(e) { + Object.defineProperty(Zn, "__esModule", { value: true }); + Object.defineProperty(Zn, "default", { enumerable: true, get: () => Xf }); + var Vf = Yf((Qr(), Ir(Xr))); + function Yf(e) { return e && e.__esModule ? e : { default: e }; } - function Vt({ version: e, from: t, to: n }) { - Qf.default.warn(`${t}-color-renamed`, [`As of Tailwind CSS ${e}, \`${t}\` has been renamed to \`${n}\`.`, "Update your configuration file to silence this warning."]); + function Ht({ version: e, from: t, to: n }) { + Vf.default.warn(`${t}-color-renamed`, [`As of Tailwind CSS ${e}, \`${t}\` has been renamed to \`${n}\`.`, "Update your configuration file to silence this warning."]); } - var Jf = { inherit: "inherit", current: "currentColor", transparent: "transparent", black: "#000", white: "#fff", slate: { 50: "#f8fafc", 100: "#f1f5f9", 200: "#e2e8f0", 300: "#cbd5e1", 400: "#94a3b8", 500: "#64748b", 600: "#475569", 700: "#334155", 800: "#1e293b", 900: "#0f172a" }, gray: { 50: "#f9fafb", 100: "#f3f4f6", 200: "#e5e7eb", 300: "#d1d5db", 400: "#9ca3af", 500: "#6b7280", 600: "#4b5563", 700: "#374151", 800: "#1f2937", 900: "#111827" }, zinc: { 50: "#fafafa", 100: "#f4f4f5", 200: "#e4e4e7", 300: "#d4d4d8", 400: "#a1a1aa", 500: "#71717a", 600: "#52525b", 700: "#3f3f46", 800: "#27272a", 900: "#18181b" }, neutral: { 50: "#fafafa", 100: "#f5f5f5", 200: "#e5e5e5", 300: "#d4d4d4", 400: "#a3a3a3", 500: "#737373", 600: "#525252", 700: "#404040", 800: "#262626", 900: "#171717" }, stone: { 50: "#fafaf9", 100: "#f5f5f4", 200: "#e7e5e4", 300: "#d6d3d1", 400: "#a8a29e", 500: "#78716c", 600: "#57534e", 700: "#44403c", 800: "#292524", 900: "#1c1917" }, red: { 50: "#fef2f2", 100: "#fee2e2", 200: "#fecaca", 300: "#fca5a5", 400: "#f87171", 500: "#ef4444", 600: "#dc2626", 700: "#b91c1c", 800: "#991b1b", 900: "#7f1d1d" }, orange: { 50: "#fff7ed", 100: "#ffedd5", 200: "#fed7aa", 300: "#fdba74", 400: "#fb923c", 500: "#f97316", 600: "#ea580c", 700: "#c2410c", 800: "#9a3412", 900: "#7c2d12" }, amber: { 50: "#fffbeb", 100: "#fef3c7", 200: "#fde68a", 300: "#fcd34d", 400: "#fbbf24", 500: "#f59e0b", 600: "#d97706", 700: "#b45309", 800: "#92400e", 900: "#78350f" }, yellow: { 50: "#fefce8", 100: "#fef9c3", 200: "#fef08a", 300: "#fde047", 400: "#facc15", 500: "#eab308", 600: "#ca8a04", 700: "#a16207", 800: "#854d0e", 900: "#713f12" }, lime: { 50: "#f7fee7", 100: "#ecfccb", 200: "#d9f99d", 300: "#bef264", 400: "#a3e635", 500: "#84cc16", 600: "#65a30d", 700: "#4d7c0f", 800: "#3f6212", 900: "#365314" }, green: { 50: "#f0fdf4", 100: "#dcfce7", 200: "#bbf7d0", 300: "#86efac", 400: "#4ade80", 500: "#22c55e", 600: "#16a34a", 700: "#15803d", 800: "#166534", 900: "#14532d" }, emerald: { 50: "#ecfdf5", 100: "#d1fae5", 200: "#a7f3d0", 300: "#6ee7b7", 400: "#34d399", 500: "#10b981", 600: "#059669", 700: "#047857", 800: "#065f46", 900: "#064e3b" }, teal: { 50: "#f0fdfa", 100: "#ccfbf1", 200: "#99f6e4", 300: "#5eead4", 400: "#2dd4bf", 500: "#14b8a6", 600: "#0d9488", 700: "#0f766e", 800: "#115e59", 900: "#134e4a" }, cyan: { 50: "#ecfeff", 100: "#cffafe", 200: "#a5f3fc", 300: "#67e8f9", 400: "#22d3ee", 500: "#06b6d4", 600: "#0891b2", 700: "#0e7490", 800: "#155e75", 900: "#164e63" }, sky: { 50: "#f0f9ff", 100: "#e0f2fe", 200: "#bae6fd", 300: "#7dd3fc", 400: "#38bdf8", 500: "#0ea5e9", 600: "#0284c7", 700: "#0369a1", 800: "#075985", 900: "#0c4a6e" }, blue: { 50: "#eff6ff", 100: "#dbeafe", 200: "#bfdbfe", 300: "#93c5fd", 400: "#60a5fa", 500: "#3b82f6", 600: "#2563eb", 700: "#1d4ed8", 800: "#1e40af", 900: "#1e3a8a" }, indigo: { 50: "#eef2ff", 100: "#e0e7ff", 200: "#c7d2fe", 300: "#a5b4fc", 400: "#818cf8", 500: "#6366f1", 600: "#4f46e5", 700: "#4338ca", 800: "#3730a3", 900: "#312e81" }, violet: { 50: "#f5f3ff", 100: "#ede9fe", 200: "#ddd6fe", 300: "#c4b5fd", 400: "#a78bfa", 500: "#8b5cf6", 600: "#7c3aed", 700: "#6d28d9", 800: "#5b21b6", 900: "#4c1d95" }, purple: { 50: "#faf5ff", 100: "#f3e8ff", 200: "#e9d5ff", 300: "#d8b4fe", 400: "#c084fc", 500: "#a855f7", 600: "#9333ea", 700: "#7e22ce", 800: "#6b21a8", 900: "#581c87" }, fuchsia: { 50: "#fdf4ff", 100: "#fae8ff", 200: "#f5d0fe", 300: "#f0abfc", 400: "#e879f9", 500: "#d946ef", 600: "#c026d3", 700: "#a21caf", 800: "#86198f", 900: "#701a75" }, pink: { 50: "#fdf2f8", 100: "#fce7f3", 200: "#fbcfe8", 300: "#f9a8d4", 400: "#f472b6", 500: "#ec4899", 600: "#db2777", 700: "#be185d", 800: "#9d174d", 900: "#831843" }, rose: { 50: "#fff1f2", 100: "#ffe4e6", 200: "#fecdd3", 300: "#fda4af", 400: "#fb7185", 500: "#f43f5e", 600: "#e11d48", 700: "#be123c", 800: "#9f1239", 900: "#881337" }, get lightBlue() { - return Vt({ version: "v2.2", from: "lightBlue", to: "sky" }), this.sky; + var Xf = { inherit: "inherit", current: "currentColor", transparent: "transparent", black: "#000", white: "#fff", slate: { 50: "#f8fafc", 100: "#f1f5f9", 200: "#e2e8f0", 300: "#cbd5e1", 400: "#94a3b8", 500: "#64748b", 600: "#475569", 700: "#334155", 800: "#1e293b", 900: "#0f172a" }, gray: { 50: "#f9fafb", 100: "#f3f4f6", 200: "#e5e7eb", 300: "#d1d5db", 400: "#9ca3af", 500: "#6b7280", 600: "#4b5563", 700: "#374151", 800: "#1f2937", 900: "#111827" }, zinc: { 50: "#fafafa", 100: "#f4f4f5", 200: "#e4e4e7", 300: "#d4d4d8", 400: "#a1a1aa", 500: "#71717a", 600: "#52525b", 700: "#3f3f46", 800: "#27272a", 900: "#18181b" }, neutral: { 50: "#fafafa", 100: "#f5f5f5", 200: "#e5e5e5", 300: "#d4d4d4", 400: "#a3a3a3", 500: "#737373", 600: "#525252", 700: "#404040", 800: "#262626", 900: "#171717" }, stone: { 50: "#fafaf9", 100: "#f5f5f4", 200: "#e7e5e4", 300: "#d6d3d1", 400: "#a8a29e", 500: "#78716c", 600: "#57534e", 700: "#44403c", 800: "#292524", 900: "#1c1917" }, red: { 50: "#fef2f2", 100: "#fee2e2", 200: "#fecaca", 300: "#fca5a5", 400: "#f87171", 500: "#ef4444", 600: "#dc2626", 700: "#b91c1c", 800: "#991b1b", 900: "#7f1d1d" }, orange: { 50: "#fff7ed", 100: "#ffedd5", 200: "#fed7aa", 300: "#fdba74", 400: "#fb923c", 500: "#f97316", 600: "#ea580c", 700: "#c2410c", 800: "#9a3412", 900: "#7c2d12" }, amber: { 50: "#fffbeb", 100: "#fef3c7", 200: "#fde68a", 300: "#fcd34d", 400: "#fbbf24", 500: "#f59e0b", 600: "#d97706", 700: "#b45309", 800: "#92400e", 900: "#78350f" }, yellow: { 50: "#fefce8", 100: "#fef9c3", 200: "#fef08a", 300: "#fde047", 400: "#facc15", 500: "#eab308", 600: "#ca8a04", 700: "#a16207", 800: "#854d0e", 900: "#713f12" }, lime: { 50: "#f7fee7", 100: "#ecfccb", 200: "#d9f99d", 300: "#bef264", 400: "#a3e635", 500: "#84cc16", 600: "#65a30d", 700: "#4d7c0f", 800: "#3f6212", 900: "#365314" }, green: { 50: "#f0fdf4", 100: "#dcfce7", 200: "#bbf7d0", 300: "#86efac", 400: "#4ade80", 500: "#22c55e", 600: "#16a34a", 700: "#15803d", 800: "#166534", 900: "#14532d" }, emerald: { 50: "#ecfdf5", 100: "#d1fae5", 200: "#a7f3d0", 300: "#6ee7b7", 400: "#34d399", 500: "#10b981", 600: "#059669", 700: "#047857", 800: "#065f46", 900: "#064e3b" }, teal: { 50: "#f0fdfa", 100: "#ccfbf1", 200: "#99f6e4", 300: "#5eead4", 400: "#2dd4bf", 500: "#14b8a6", 600: "#0d9488", 700: "#0f766e", 800: "#115e59", 900: "#134e4a" }, cyan: { 50: "#ecfeff", 100: "#cffafe", 200: "#a5f3fc", 300: "#67e8f9", 400: "#22d3ee", 500: "#06b6d4", 600: "#0891b2", 700: "#0e7490", 800: "#155e75", 900: "#164e63" }, sky: { 50: "#f0f9ff", 100: "#e0f2fe", 200: "#bae6fd", 300: "#7dd3fc", 400: "#38bdf8", 500: "#0ea5e9", 600: "#0284c7", 700: "#0369a1", 800: "#075985", 900: "#0c4a6e" }, blue: { 50: "#eff6ff", 100: "#dbeafe", 200: "#bfdbfe", 300: "#93c5fd", 400: "#60a5fa", 500: "#3b82f6", 600: "#2563eb", 700: "#1d4ed8", 800: "#1e40af", 900: "#1e3a8a" }, indigo: { 50: "#eef2ff", 100: "#e0e7ff", 200: "#c7d2fe", 300: "#a5b4fc", 400: "#818cf8", 500: "#6366f1", 600: "#4f46e5", 700: "#4338ca", 800: "#3730a3", 900: "#312e81" }, violet: { 50: "#f5f3ff", 100: "#ede9fe", 200: "#ddd6fe", 300: "#c4b5fd", 400: "#a78bfa", 500: "#8b5cf6", 600: "#7c3aed", 700: "#6d28d9", 800: "#5b21b6", 900: "#4c1d95" }, purple: { 50: "#faf5ff", 100: "#f3e8ff", 200: "#e9d5ff", 300: "#d8b4fe", 400: "#c084fc", 500: "#a855f7", 600: "#9333ea", 700: "#7e22ce", 800: "#6b21a8", 900: "#581c87" }, fuchsia: { 50: "#fdf4ff", 100: "#fae8ff", 200: "#f5d0fe", 300: "#f0abfc", 400: "#e879f9", 500: "#d946ef", 600: "#c026d3", 700: "#a21caf", 800: "#86198f", 900: "#701a75" }, pink: { 50: "#fdf2f8", 100: "#fce7f3", 200: "#fbcfe8", 300: "#f9a8d4", 400: "#f472b6", 500: "#ec4899", 600: "#db2777", 700: "#be185d", 800: "#9d174d", 900: "#831843" }, rose: { 50: "#fff1f2", 100: "#ffe4e6", 200: "#fecdd3", 300: "#fda4af", 400: "#fb7185", 500: "#f43f5e", 600: "#e11d48", 700: "#be123c", 800: "#9f1239", 900: "#881337" }, get lightBlue() { + return Ht({ version: "v2.2", from: "lightBlue", to: "sky" }), this.sky; }, get warmGray() { - return Vt({ version: "v3.0", from: "warmGray", to: "stone" }), this.stone; + return Ht({ version: "v3.0", from: "warmGray", to: "stone" }), this.stone; }, get trueGray() { - return Vt({ version: "v3.0", from: "trueGray", to: "neutral" }), this.neutral; + return Ht({ version: "v3.0", from: "trueGray", to: "neutral" }), this.neutral; }, get coolGray() { - return Vt({ version: "v3.0", from: "coolGray", to: "gray" }), this.gray; + return Ht({ version: "v3.0", from: "coolGray", to: "gray" }), this.gray; }, get blueGray() { - return Vt({ version: "v3.0", from: "blueGray", to: "slate" }), this.slate; + return Ht({ version: "v3.0", from: "blueGray", to: "slate" }), this.slate; } }; }); -var Yu = P((ri) => { +var Gu = T((ei) => { "use strict"; - c(); - Object.defineProperty(ri, "__esModule", { value: true }); - Object.defineProperty(ri, "defaults", { enumerable: true, get: () => Zf }); - function Zf(e, ...t) { + Object.defineProperty(ei, "__esModule", { value: true }); + Object.defineProperty(ei, "defaults", { enumerable: true, get: () => Qf }); + function Qf(e, ...t) { for (let i of t) { for (let o in i) { var n; @@ -12010,12 +12000,11 @@ var Yu = P((ri) => { return e; } }); -var Xu = P((ni) => { +var ju = T((ti) => { "use strict"; - c(); - Object.defineProperty(ni, "__esModule", { value: true }); - Object.defineProperty(ni, "toPath", { enumerable: true, get: () => ec2 }); - function ec2(e) { + Object.defineProperty(ti, "__esModule", { value: true }); + Object.defineProperty(ti, "toPath", { enumerable: true, get: () => Kf }); + function Kf(e) { if (Array.isArray(e)) return e; let t = e.split("[").length - 1, n = e.split("]").length - 1; @@ -12024,26 +12013,25 @@ var Xu = P((ni) => { return e.split(/\.(?![^\[]*\])|[\[\]]/g).filter(Boolean); } }); -var Ku = P((ii) => { +var Vu = T((ri) => { "use strict"; - c(); - Object.defineProperty(ii, "__esModule", { value: true }); - Object.defineProperty(ii, "normalizeConfig", { enumerable: true, get: () => rc }); - var Yt = tc((Zr(), Mr(Jr))); - function Qu(e) { + Object.defineProperty(ri, "__esModule", { value: true }); + Object.defineProperty(ri, "normalizeConfig", { enumerable: true, get: () => Zf }); + var Vt = Jf((Qr(), Ir(Xr))); + function Hu(e) { if (typeof WeakMap != "function") return null; var t = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap(); - return (Qu = function(r) { + return (Hu = function(r) { return r ? n : t; })(e); } - function tc(e, t) { + function Jf(e, t) { if (!t && e && e.__esModule) return e; if (e === null || typeof e != "object" && typeof e != "function") return { default: e }; - var n = Qu(t); + var n = Hu(t); if (n && n.has(e)) return n.get(e); var r = {}, i = Object.defineProperty && Object.getOwnPropertyDescriptor; @@ -12054,17 +12042,17 @@ var Ku = P((ii) => { } return r.default = e, n && n.set(e, r), r; } - function rc(e) { + function Zf(e) { if ((() => { if (e.purge || !e.content || !Array.isArray(e.content) && !(typeof e.content == "object" && e.content !== null)) return false; if (Array.isArray(e.content)) - return e.content.every((r) => typeof r == "string" ? true : !(typeof (r == null ? void 0 : r.raw) != "string" || (r == null ? void 0 : r.extension) && typeof (r == null ? void 0 : r.extension) != "string")); + return e.content.every((r) => typeof r == "string" ? true : !(typeof (r == null ? void 0 : r.raw) != "string" || r != null && r.extension && typeof (r == null ? void 0 : r.extension) != "string")); if (typeof e.content == "object" && e.content !== null) { if (Object.keys(e.content).some((r) => !["files", "extract", "transform"].includes(r))) return false; if (Array.isArray(e.content.files)) { - if (!e.content.files.every((r) => typeof r == "string" ? true : !(typeof (r == null ? void 0 : r.raw) != "string" || (r == null ? void 0 : r.extension) && typeof (r == null ? void 0 : r.extension) != "string"))) + if (!e.content.files.every((r) => typeof r == "string" ? true : !(typeof (r == null ? void 0 : r.raw) != "string" || r != null && r.extension && typeof (r == null ? void 0 : r.extension) != "string"))) return false; if (typeof e.content.extract == "object") { for (let r of Object.values(e.content.extract)) @@ -12082,12 +12070,12 @@ var Ku = P((ii) => { return true; } return false; - })() || Yt.default.warn("purge-deprecation", ["The `purge`/`content` options have changed in Tailwind CSS v3.0.", "Update your configuration file to eliminate this warning.", "https://tailwindcss.com/docs/upgrade-guide#configure-content-sources"]), e.safelist = (() => { + })() || Vt.default.warn("purge-deprecation", ["The `purge`/`content` options have changed in Tailwind CSS v3.0.", "Update your configuration file to eliminate this warning.", "https://tailwindcss.com/docs/upgrade-guide#configure-content-sources"]), e.safelist = (() => { var r; let { content: i, purge: o, safelist: u } = e; return Array.isArray(u) ? u : Array.isArray(i == null ? void 0 : i.safelist) ? i.safelist : Array.isArray(o == null ? void 0 : o.safelist) ? o.safelist : Array.isArray(o == null || (r = o.options) === null || r === void 0 ? void 0 : r.safelist) ? o.options.safelist : []; })(), typeof e.prefix == "function") - Yt.default.warn("prefix-function", ["As of Tailwind CSS v3.0, `prefix` cannot be a function.", "Update `prefix` in your configuration to be a string to eliminate this warning.", "https://tailwindcss.com/docs/upgrade-guide#prefix-cannot-be-a-function"]), e.prefix = ""; + Vt.default.warn("prefix-function", ["As of Tailwind CSS v3.0, `prefix` cannot be a function.", "Update `prefix` in your configuration to be a string to eliminate this warning.", "https://tailwindcss.com/docs/upgrade-guide#prefix-cannot-be-a-function"]), e.prefix = ""; else { var n; e.prefix = (n = e.prefix) !== null && n !== void 0 ? n : ""; @@ -12097,8 +12085,8 @@ var Ku = P((ii) => { return Array.isArray(i) ? i : Array.isArray(i == null ? void 0 : i.content) ? i.content : Array.isArray(r) ? r : Array.isArray(r == null ? void 0 : r.content) ? r.content : Array.isArray(r == null ? void 0 : r.files) ? r.files : []; })(), extract: (() => { let r = (() => { - var u, s, a, l, f, d, h, m, p, D; - return !((u = e.purge) === null || u === void 0) && u.extract ? e.purge.extract : !((s = e.content) === null || s === void 0) && s.extract ? e.content.extract : !((a = e.purge) === null || a === void 0 || (l = a.extract) === null || l === void 0) && l.DEFAULT ? e.purge.extract.DEFAULT : !((f = e.content) === null || f === void 0 || (d = f.extract) === null || d === void 0) && d.DEFAULT ? e.content.extract.DEFAULT : !((h = e.purge) === null || h === void 0 || (m = h.options) === null || m === void 0) && m.extractors ? e.purge.options.extractors : !((p = e.content) === null || p === void 0 || (D = p.options) === null || D === void 0) && D.extractors ? e.content.options.extractors : {}; + var u, s, a, l, f, c, p, h, d, m; + return !((u = e.purge) === null || u === void 0) && u.extract ? e.purge.extract : !((s = e.content) === null || s === void 0) && s.extract ? e.content.extract : !((a = e.purge) === null || a === void 0 || (l = a.extract) === null || l === void 0) && l.DEFAULT ? e.purge.extract.DEFAULT : !((f = e.content) === null || f === void 0 || (c = f.extract) === null || c === void 0) && c.DEFAULT ? e.content.extract.DEFAULT : !((p = e.purge) === null || p === void 0 || (h = p.options) === null || h === void 0) && h.extractors ? e.purge.options.extractors : !((d = e.content) === null || d === void 0 || (m = d.options) === null || m === void 0) && m.extractors ? e.content.options.extractors : {}; })(), i = {}, o = (() => { var u, s, a, l; if (!((u = e.purge) === null || u === void 0 || (s = u.options) === null || s === void 0) && s.defaultExtractor) @@ -12124,39 +12112,36 @@ var Ku = P((ii) => { })() }; for (let r of e.content.files) if (typeof r == "string" && /{([^,]*?)}/g.test(r)) { - Yt.default.warn("invalid-glob-braces", [`The glob pattern ${(0, Yt.dim)(r)} in your Tailwind CSS configuration is invalid.`, `Update it to ${(0, Yt.dim)(r.replace(/{([^,]*?)}/g, "$1"))} to silence this warning.`]); + Vt.default.warn("invalid-glob-braces", [`The glob pattern ${(0, Vt.dim)(r)} in your Tailwind CSS configuration is invalid.`, `Update it to ${(0, Vt.dim)(r.replace(/{([^,]*?)}/g, "$1"))} to silence this warning.`]); break; } return e; } }); -var Ju = P((oi) => { +var Yu = T((ni) => { "use strict"; - c(); - Object.defineProperty(oi, "__esModule", { value: true }); - Object.defineProperty(oi, "default", { enumerable: true, get: () => nc }); - function nc(e) { + Object.defineProperty(ni, "__esModule", { value: true }); + Object.defineProperty(ni, "default", { enumerable: true, get: () => ec2 }); + function ec2(e) { if (Object.prototype.toString.call(e) !== "[object Object]") return false; let t = Object.getPrototypeOf(e); return t === null || t === Object.prototype; } }); -var Zu = P((si) => { +var Xu = T((oi) => { "use strict"; - c(); - Object.defineProperty(si, "__esModule", { value: true }); - Object.defineProperty(si, "cloneDeep", { enumerable: true, get: () => ui }); - function ui(e) { - return Array.isArray(e) ? e.map((t) => ui(t)) : typeof e == "object" && e !== null ? Object.fromEntries(Object.entries(e).map(([t, n]) => [t, ui(n)])) : e; + Object.defineProperty(oi, "__esModule", { value: true }); + Object.defineProperty(oi, "cloneDeep", { enumerable: true, get: () => ii }); + function ii(e) { + return Array.isArray(e) ? e.map((t) => ii(t)) : typeof e == "object" && e !== null ? Object.fromEntries(Object.entries(e).map(([t, n]) => [t, ii(n)])) : e; } }); -var ai = P((en, es) => { +var ui = T((Kr, Qu) => { "use strict"; - c(); - en.__esModule = true; - en.default = uc; - function ic(e) { + Kr.__esModule = true; + Kr.default = nc; + function tc(e) { for (var t = e.toLowerCase(), n = "", r = false, i = 0; i < 6 && t[i] !== void 0; i++) { var o = t.charCodeAt(i), u = o >= 97 && o <= 102 || o >= 48 && o <= 57; if (r = o === 32, !u) @@ -12168,14 +12153,14 @@ var ai = P((en, es) => { return a || s === 0 || s > 1114111 ? ["\uFFFD", n.length + (r ? 1 : 0)] : [String.fromCodePoint(s), n.length + (r ? 1 : 0)]; } } - var oc = /\\/; - function uc(e) { - var t = oc.test(e); + var rc = /\\/; + function nc(e) { + var t = rc.test(e); if (!t) return e; for (var n = "", r = 0; r < e.length; r++) { if (e[r] === "\\") { - var i = ic(e.slice(r + 1, r + 7)); + var i = tc(e.slice(r + 1, r + 7)); if (i !== void 0) { n += i[0], r += i[1]; continue; @@ -12191,14 +12176,13 @@ var ai = P((en, es) => { } return n; } - es.exports = en.default; + Qu.exports = Kr.default; }); -var rs = P((tn, ts) => { +var Ju = T((Jr, Ku) => { "use strict"; - c(); - tn.__esModule = true; - tn.default = sc; - function sc(e) { + Jr.__esModule = true; + Jr.default = ic; + function ic(e) { for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r]; for (; n.length > 0; ) { @@ -12209,14 +12193,13 @@ var rs = P((tn, ts) => { } return e; } - ts.exports = tn.default; + Ku.exports = Jr.default; }); -var is = P((rn, ns) => { +var es = T((Zr, Zu) => { "use strict"; - c(); - rn.__esModule = true; - rn.default = ac; - function ac(e) { + Zr.__esModule = true; + Zr.default = oc; + function oc(e) { for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r]; for (; n.length > 0; ) { @@ -12224,14 +12207,13 @@ var is = P((rn, ns) => { e[i] || (e[i] = {}), e = e[i]; } } - ns.exports = rn.default; + Zu.exports = Zr.default; }); -var us = P((nn, os) => { +var rs = T((en, ts) => { "use strict"; - c(); - nn.__esModule = true; - nn.default = lc; - function lc(e) { + en.__esModule = true; + en.default = uc; + function uc(e) { for (var t = "", n = e.indexOf("/*"), r = 0; n >= 0; ) { t = t + e.slice(r, n); var i = e.indexOf("*/", n + 2); @@ -12241,53 +12223,51 @@ var us = P((nn, os) => { } return t = t + e.slice(r), t; } - os.exports = nn.default; + ts.exports = en.default; }); -var Xt = P((We) => { +var Yt = T((Le) => { "use strict"; - c(); - We.__esModule = true; - We.stripComments = We.ensureObject = We.getProp = We.unesc = void 0; - var fc = on(ai()); - We.unesc = fc.default; - var cc = on(rs()); - We.getProp = cc.default; - var dc = on(is()); - We.ensureObject = dc.default; - var pc = on(us()); - We.stripComments = pc.default; - function on(e) { + Le.__esModule = true; + Le.stripComments = Le.ensureObject = Le.getProp = Le.unesc = void 0; + var sc = tn(ui()); + Le.unesc = sc.default; + var ac = tn(Ju()); + Le.getProp = ac.default; + var lc = tn(es()); + Le.ensureObject = lc.default; + var fc = tn(rs()); + Le.stripComments = fc.default; + function tn(e) { return e && e.__esModule ? e : { default: e }; } }); -var je = P((Qt, ls) => { +var Ue = T((Xt, os) => { "use strict"; - c(); - Qt.__esModule = true; - Qt.default = void 0; - var ss = Xt(); - function as(e, t) { + Xt.__esModule = true; + Xt.default = void 0; + var ns = Yt(); + function is(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; r.enumerable = r.enumerable || false, r.configurable = true, "value" in r && (r.writable = true), Object.defineProperty(e, r.key, r); } } - function hc(e, t, n) { - return t && as(e.prototype, t), n && as(e, n), e; + function cc(e, t, n) { + return t && is(e.prototype, t), n && is(e, n), e; } - var mc = function e(t, n) { + var dc = function e(t, n) { if (typeof t != "object" || t === null) return t; var r = new t.constructor(); for (var i in t) - if (!!t.hasOwnProperty(i)) { + if (t.hasOwnProperty(i)) { var o = t[i], u = typeof o; i === "parent" && u === "object" ? n && (r[i] = n) : o instanceof Array ? r[i] = o.map(function(s) { return e(s, r); }) : r[i] = e(o, r); } return r; - }, Dc = function() { + }, pc = function() { function e(n) { n === void 0 && (n = {}), Object.assign(this, n), this.spaces = this.spaces || {}, this.spaces.before = this.spaces.before || "", this.spaces.after = this.spaces.after || ""; } @@ -12307,7 +12287,7 @@ var je = P((Qt, ls) => { return this.parent.at(this.parent.index(this) - 1); }, t.clone = function(r) { r === void 0 && (r = {}); - var i = mc(this); + var i = dc(this); for (var o in r) i[o] = r[o]; return i; @@ -12328,71 +12308,69 @@ var je = P((Qt, ls) => { return String(this.stringifyProperty("value")); }, t.toString = function() { return [this.rawSpaceBefore, this.valueToString(), this.rawSpaceAfter].join(""); - }, hc(e, [{ key: "rawSpaceBefore", get: function() { + }, cc(e, [{ key: "rawSpaceBefore", get: function() { var r = this.raws && this.raws.spaces && this.raws.spaces.before; return r === void 0 && (r = this.spaces && this.spaces.before), r || ""; }, set: function(r) { - (0, ss.ensureObject)(this, "raws", "spaces"), this.raws.spaces.before = r; + (0, ns.ensureObject)(this, "raws", "spaces"), this.raws.spaces.before = r; } }, { key: "rawSpaceAfter", get: function() { var r = this.raws && this.raws.spaces && this.raws.spaces.after; return r === void 0 && (r = this.spaces.after), r || ""; }, set: function(r) { - (0, ss.ensureObject)(this, "raws", "spaces"), this.raws.spaces.after = r; + (0, ns.ensureObject)(this, "raws", "spaces"), this.raws.spaces.after = r; } }]), e; }(); - Qt.default = Dc; - ls.exports = Qt.default; + Xt.default = pc; + os.exports = Xt.default; }); -var ge = P((ee) => { +var pe = T((K) => { "use strict"; - c(); - ee.__esModule = true; - ee.UNIVERSAL = ee.ATTRIBUTE = ee.CLASS = ee.COMBINATOR = ee.COMMENT = ee.ID = ee.NESTING = ee.PSEUDO = ee.ROOT = ee.SELECTOR = ee.STRING = ee.TAG = void 0; - var gc = "tag"; - ee.TAG = gc; - var bc = "string"; - ee.STRING = bc; - var vc = "selector"; - ee.SELECTOR = vc; - var yc = "root"; - ee.ROOT = yc; - var xc = "pseudo"; - ee.PSEUDO = xc; - var Fc = "nesting"; - ee.NESTING = Fc; - var wc = "id"; - ee.ID = wc; - var Ec = "comment"; - ee.COMMENT = Ec; - var Cc = "combinator"; - ee.COMBINATOR = Cc; - var _c = "class"; - ee.CLASS = _c; - var Sc = "attribute"; - ee.ATTRIBUTE = Sc; - var kc = "universal"; - ee.UNIVERSAL = kc; + K.__esModule = true; + K.UNIVERSAL = K.ATTRIBUTE = K.CLASS = K.COMBINATOR = K.COMMENT = K.ID = K.NESTING = K.PSEUDO = K.ROOT = K.SELECTOR = K.STRING = K.TAG = void 0; + var hc = "tag"; + K.TAG = hc; + var mc = "string"; + K.STRING = mc; + var Dc = "selector"; + K.SELECTOR = Dc; + var gc = "root"; + K.ROOT = gc; + var bc = "pseudo"; + K.PSEUDO = bc; + var vc = "nesting"; + K.NESTING = vc; + var yc = "id"; + K.ID = yc; + var xc = "comment"; + K.COMMENT = xc; + var Fc = "combinator"; + K.COMBINATOR = Fc; + var wc = "class"; + K.CLASS = wc; + var Ec = "attribute"; + K.ATTRIBUTE = Ec; + var Cc = "universal"; + K.UNIVERSAL = Cc; }); -var un = P((Kt, ps) => { +var rn = T((Qt, ls) => { "use strict"; - c(); - Kt.__esModule = true; - Kt.default = void 0; - var Tc = Oc(je()), He = Ac(ge()); - function ds() { + Qt.__esModule = true; + Qt.default = void 0; + var _c = kc(Ue()), ze = Sc(pe()); + function as() { if (typeof WeakMap != "function") return null; var e = /* @__PURE__ */ new WeakMap(); - return ds = function() { + return as = function() { return e; }, e; } - function Ac(e) { + function Sc(e) { if (e && e.__esModule) return e; if (e === null || typeof e != "object" && typeof e != "function") return { default: e }; - var t = ds(); + var t = as(); if (t && t.has(e)) return t.get(e); var n = {}, r = Object.defineProperty && Object.getOwnPropertyDescriptor; @@ -12403,13 +12381,13 @@ var un = P((Kt, ps) => { } return n.default = e, t && t.set(e, n), n; } - function Oc(e) { + function kc(e) { return e && e.__esModule ? e : { default: e }; } - function Pc(e, t) { + function Tc(e, t) { var n; if (typeof Symbol > "u" || e[Symbol.iterator] == null) { - if (Array.isArray(e) || (n = Ic(e)) || t && e && typeof e.length == "number") { + if (Array.isArray(e) || (n = Ac(e)) || t && e && typeof e.length == "number") { n && (e = n); var r = 0; return function() { @@ -12421,42 +12399,42 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } return n = e[Symbol.iterator](), n.next.bind(n); } - function Ic(e, t) { - if (!!e) { + function Ac(e, t) { + if (e) { if (typeof e == "string") - return fs(e, t); + return us(e, t); var n = Object.prototype.toString.call(e).slice(8, -1); if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) - return fs(e, t); + return us(e, t); } } - function fs(e, t) { + function us(e, t) { (t == null || t > e.length) && (t = e.length); for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]; return r; } - function cs(e, t) { + function ss(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; r.enumerable = r.enumerable || false, r.configurable = true, "value" in r && (r.writable = true), Object.defineProperty(e, r.key, r); } } - function Bc(e, t, n) { - return t && cs(e.prototype, t), n && cs(e, n), e; + function Oc(e, t, n) { + return t && ss(e.prototype, t), n && ss(e, n), e; } - function Rc(e, t) { - e.prototype = Object.create(t.prototype), e.prototype.constructor = e, li(e, t); + function Pc(e, t) { + e.prototype = Object.create(t.prototype), e.prototype.constructor = e, si(e, t); } - function li(e, t) { - return li = Object.setPrototypeOf || function(r, i) { + function si(e, t) { + return si = Object.setPrototypeOf || function(r, i) { return r.__proto__ = i, r; - }, li(e, t); + }, si(e, t); } - var Lc = function(e) { - Rc(t, e); + var Bc = function(e) { + Pc(t, e); function t(r) { var i; return i = e.call(this, r) || this, i.nodes || (i.nodes = []), i; @@ -12477,7 +12455,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho o = this.indexes[u], o >= i && (this.indexes[u] = o - 1); return this; }, n.removeAll = function() { - for (var i = Pc(this.nodes), o; !(o = i()).done; ) { + for (var i = Tc(this.nodes), o; !(o = i()).done; ) { var u = o.value; u.parent = void 0; } @@ -12533,55 +12511,55 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, n.walkAttributes = function(i) { var o = this; return this.walk(function(u) { - if (u.type === He.ATTRIBUTE) + if (u.type === ze.ATTRIBUTE) return i.call(o, u); }); }, n.walkClasses = function(i) { var o = this; return this.walk(function(u) { - if (u.type === He.CLASS) + if (u.type === ze.CLASS) return i.call(o, u); }); }, n.walkCombinators = function(i) { var o = this; return this.walk(function(u) { - if (u.type === He.COMBINATOR) + if (u.type === ze.COMBINATOR) return i.call(o, u); }); }, n.walkComments = function(i) { var o = this; return this.walk(function(u) { - if (u.type === He.COMMENT) + if (u.type === ze.COMMENT) return i.call(o, u); }); }, n.walkIds = function(i) { var o = this; return this.walk(function(u) { - if (u.type === He.ID) + if (u.type === ze.ID) return i.call(o, u); }); }, n.walkNesting = function(i) { var o = this; return this.walk(function(u) { - if (u.type === He.NESTING) + if (u.type === ze.NESTING) return i.call(o, u); }); }, n.walkPseudos = function(i) { var o = this; return this.walk(function(u) { - if (u.type === He.PSEUDO) + if (u.type === ze.PSEUDO) return i.call(o, u); }); }, n.walkTags = function(i) { var o = this; return this.walk(function(u) { - if (u.type === He.TAG) + if (u.type === ze.TAG) return i.call(o, u); }); }, n.walkUniversals = function(i) { var o = this; return this.walk(function(u) { - if (u.type === He.UNIVERSAL) + if (u.type === ze.UNIVERSAL) return i.call(o, u); }); }, n.split = function(i) { @@ -12604,48 +12582,47 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return this.nodes.sort(i); }, n.toString = function() { return this.map(String).join(""); - }, Bc(t, [{ key: "first", get: function() { + }, Oc(t, [{ key: "first", get: function() { return this.at(0); } }, { key: "last", get: function() { return this.at(this.length - 1); } }, { key: "length", get: function() { return this.nodes.length; } }]), t; - }(Tc.default); - Kt.default = Lc; - ps.exports = Kt.default; + }(_c.default); + Qt.default = Bc; + ls.exports = Qt.default; }); -var ci = P((Jt, ms) => { +var li = T((Kt, cs) => { "use strict"; - c(); - Jt.__esModule = true; - Jt.default = void 0; - var Mc = $c(un()), Nc = ge(); - function $c(e) { + Kt.__esModule = true; + Kt.default = void 0; + var Ic = Lc(rn()), Rc = pe(); + function Lc(e) { return e && e.__esModule ? e : { default: e }; } - function hs(e, t) { + function fs(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; r.enumerable = r.enumerable || false, r.configurable = true, "value" in r && (r.writable = true), Object.defineProperty(e, r.key, r); } } - function Wc(e, t, n) { - return t && hs(e.prototype, t), n && hs(e, n), e; + function Mc(e, t, n) { + return t && fs(e.prototype, t), n && fs(e, n), e; } - function qc(e, t) { - e.prototype = Object.create(t.prototype), e.prototype.constructor = e, fi(e, t); + function Nc(e, t) { + e.prototype = Object.create(t.prototype), e.prototype.constructor = e, ai(e, t); } - function fi(e, t) { - return fi = Object.setPrototypeOf || function(r, i) { + function ai(e, t) { + return ai = Object.setPrototypeOf || function(r, i) { return r.__proto__ = i, r; - }, fi(e, t); + }, ai(e, t); } - var Uc = function(e) { - qc(t, e); + var $c = function(e) { + Nc(t, e); function t(r) { var i; - return i = e.call(this, r) || this, i.type = Nc.ROOT, i; + return i = e.call(this, r) || this, i.type = Rc.ROOT, i; } var n = t.prototype; return n.toString = function() { @@ -12655,208 +12632,202 @@ var ci = P((Jt, ms) => { return this.trailingComma ? i + "," : i; }, n.error = function(i, o) { return this._error ? this._error(i, o) : new Error(i); - }, Wc(t, [{ key: "errorGenerator", set: function(i) { + }, Mc(t, [{ key: "errorGenerator", set: function(i) { this._error = i; } }]), t; - }(Mc.default); - Jt.default = Uc; - ms.exports = Jt.default; + }(Ic.default); + Kt.default = $c; + cs.exports = Kt.default; }); -var pi = P((Zt, Ds) => { +var ci = T((Jt, ds) => { "use strict"; - c(); - Zt.__esModule = true; - Zt.default = void 0; - var zc = jc(un()), Gc = ge(); - function jc(e) { + Jt.__esModule = true; + Jt.default = void 0; + var Wc = Uc(rn()), qc = pe(); + function Uc(e) { return e && e.__esModule ? e : { default: e }; } - function Hc(e, t) { - e.prototype = Object.create(t.prototype), e.prototype.constructor = e, di(e, t); + function zc(e, t) { + e.prototype = Object.create(t.prototype), e.prototype.constructor = e, fi(e, t); } - function di(e, t) { - return di = Object.setPrototypeOf || function(r, i) { + function fi(e, t) { + return fi = Object.setPrototypeOf || function(r, i) { return r.__proto__ = i, r; - }, di(e, t); + }, fi(e, t); } - var Vc = function(e) { - Hc(t, e); + var Gc = function(e) { + zc(t, e); function t(n) { var r; - return r = e.call(this, n) || this, r.type = Gc.SELECTOR, r; + return r = e.call(this, n) || this, r.type = qc.SELECTOR, r; } return t; - }(zc.default); - Zt.default = Vc; - Ds.exports = Zt.default; + }(Wc.default); + Jt.default = Gc; + ds.exports = Jt.default; }); -var sn = P((fb, gs) => { +var nn = T((ub, ps) => { "use strict"; - c(); - var Yc = {}, Xc = Yc.hasOwnProperty, Qc = function(t, n) { + var jc = {}, Hc = jc.hasOwnProperty, Vc = function(t, n) { if (!t) return n; var r = {}; for (var i in n) - r[i] = Xc.call(t, i) ? t[i] : n[i]; + r[i] = Hc.call(t, i) ? t[i] : n[i]; return r; - }, Kc = /[ -,\.\/:-@\[-\^`\{-~]/, Jc = /[ -,\.\/:-@\[\]\^`\{-~]/, Zc = /(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g, hi = function e(t, n) { - n = Qc(n, e.options), n.quotes != "single" && n.quotes != "double" && (n.quotes = "single"); + }, Yc = /[ -,\.\/:-@\[-\^`\{-~]/, Xc = /[ -,\.\/:-@\[\]\^`\{-~]/, Qc = /(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g, di = function e(t, n) { + n = Vc(n, e.options), n.quotes != "single" && n.quotes != "double" && (n.quotes = "single"); for (var r = n.quotes == "double" ? '"' : "'", i = n.isIdentifier, o = t.charAt(0), u = "", s = 0, a = t.length; s < a; ) { - var l = t.charAt(s++), f = l.charCodeAt(), d = void 0; + var l = t.charAt(s++), f = l.charCodeAt(), c = void 0; if (f < 32 || f > 126) { if (f >= 55296 && f <= 56319 && s < a) { - var h = t.charCodeAt(s++); - (h & 64512) == 56320 ? f = ((f & 1023) << 10) + (h & 1023) + 65536 : s--; + var p = t.charCodeAt(s++); + (p & 64512) == 56320 ? f = ((f & 1023) << 10) + (p & 1023) + 65536 : s--; } - d = "\\" + f.toString(16).toUpperCase() + " "; + c = "\\" + f.toString(16).toUpperCase() + " "; } else - n.escapeEverything ? Kc.test(l) ? d = "\\" + l : d = "\\" + f.toString(16).toUpperCase() + " " : /[\t\n\f\r\x0B]/.test(l) ? d = "\\" + f.toString(16).toUpperCase() + " " : l == "\\" || !i && (l == '"' && r == l || l == "'" && r == l) || i && Jc.test(l) ? d = "\\" + l : d = l; - u += d; + n.escapeEverything ? Yc.test(l) ? c = "\\" + l : c = "\\" + f.toString(16).toUpperCase() + " " : /[\t\n\f\r\x0B]/.test(l) ? c = "\\" + f.toString(16).toUpperCase() + " " : l == "\\" || !i && (l == '"' && r == l || l == "'" && r == l) || i && Xc.test(l) ? c = "\\" + l : c = l; + u += c; } - return i && (/^-[-\d]/.test(u) ? u = "\\-" + u.slice(1) : /\d/.test(o) && (u = "\\3" + o + " " + u.slice(1))), u = u.replace(Zc, function(m, p, D) { - return p && p.length % 2 ? m : (p || "") + D; + return i && (/^-[-\d]/.test(u) ? u = "\\-" + u.slice(1) : /\d/.test(o) && (u = "\\3" + o + " " + u.slice(1))), u = u.replace(Qc, function(h, d, m) { + return d && d.length % 2 ? h : (d || "") + m; }), !i && n.wrap ? r + u + r : u; }; - hi.options = { escapeEverything: false, isIdentifier: false, quotes: "single", wrap: false }; - hi.version = "3.0.0"; - gs.exports = hi; + di.options = { escapeEverything: false, isIdentifier: false, quotes: "single", wrap: false }; + di.version = "3.0.0"; + ps.exports = di; }); -var Di = P((er, ys) => { +var hi = T((Zt, Ds) => { "use strict"; - c(); - er.__esModule = true; - er.default = void 0; - var ed = vs(sn()), td2 = Xt(), rd = vs(je()), nd = ge(); - function vs(e) { + Zt.__esModule = true; + Zt.default = void 0; + var Kc = ms(nn()), Jc = Yt(), Zc = ms(Ue()), ed = pe(); + function ms(e) { return e && e.__esModule ? e : { default: e }; } - function bs(e, t) { + function hs(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; r.enumerable = r.enumerable || false, r.configurable = true, "value" in r && (r.writable = true), Object.defineProperty(e, r.key, r); } } - function id(e, t, n) { - return t && bs(e.prototype, t), n && bs(e, n), e; + function td2(e, t, n) { + return t && hs(e.prototype, t), n && hs(e, n), e; } - function od(e, t) { - e.prototype = Object.create(t.prototype), e.prototype.constructor = e, mi(e, t); + function rd(e, t) { + e.prototype = Object.create(t.prototype), e.prototype.constructor = e, pi(e, t); } - function mi(e, t) { - return mi = Object.setPrototypeOf || function(r, i) { + function pi(e, t) { + return pi = Object.setPrototypeOf || function(r, i) { return r.__proto__ = i, r; - }, mi(e, t); + }, pi(e, t); } - var ud = function(e) { - od(t, e); + var nd = function(e) { + rd(t, e); function t(r) { var i; - return i = e.call(this, r) || this, i.type = nd.CLASS, i._constructed = true, i; + return i = e.call(this, r) || this, i.type = ed.CLASS, i._constructed = true, i; } var n = t.prototype; return n.valueToString = function() { return "." + e.prototype.valueToString.call(this); - }, id(t, [{ key: "value", get: function() { + }, td2(t, [{ key: "value", get: function() { return this._value; }, set: function(i) { if (this._constructed) { - var o = (0, ed.default)(i, { isIdentifier: true }); - o !== i ? ((0, td2.ensureObject)(this, "raws"), this.raws.value = o) : this.raws && delete this.raws.value; + var o = (0, Kc.default)(i, { isIdentifier: true }); + o !== i ? ((0, Jc.ensureObject)(this, "raws"), this.raws.value = o) : this.raws && delete this.raws.value; } this._value = i; } }]), t; - }(rd.default); - er.default = ud; - ys.exports = er.default; + }(Zc.default); + Zt.default = nd; + Ds.exports = Zt.default; }); -var bi = P((tr, xs) => { +var Di = T((er, gs) => { "use strict"; - c(); - tr.__esModule = true; - tr.default = void 0; - var sd = ld(je()), ad = ge(); - function ld(e) { + er.__esModule = true; + er.default = void 0; + var id = ud(Ue()), od = pe(); + function ud(e) { return e && e.__esModule ? e : { default: e }; } - function fd2(e, t) { - e.prototype = Object.create(t.prototype), e.prototype.constructor = e, gi(e, t); + function sd(e, t) { + e.prototype = Object.create(t.prototype), e.prototype.constructor = e, mi(e, t); } - function gi(e, t) { - return gi = Object.setPrototypeOf || function(r, i) { + function mi(e, t) { + return mi = Object.setPrototypeOf || function(r, i) { return r.__proto__ = i, r; - }, gi(e, t); + }, mi(e, t); } - var cd = function(e) { - fd2(t, e); + var ad = function(e) { + sd(t, e); function t(n) { var r; - return r = e.call(this, n) || this, r.type = ad.COMMENT, r; + return r = e.call(this, n) || this, r.type = od.COMMENT, r; } return t; - }(sd.default); - tr.default = cd; - xs.exports = tr.default; + }(id.default); + er.default = ad; + gs.exports = er.default; }); -var yi = P((rr, Fs) => { +var bi = T((tr, bs) => { "use strict"; - c(); - rr.__esModule = true; - rr.default = void 0; - var dd = hd(je()), pd = ge(); - function hd(e) { + tr.__esModule = true; + tr.default = void 0; + var ld = cd(Ue()), fd2 = pe(); + function cd(e) { return e && e.__esModule ? e : { default: e }; } - function md(e, t) { - e.prototype = Object.create(t.prototype), e.prototype.constructor = e, vi(e, t); + function dd(e, t) { + e.prototype = Object.create(t.prototype), e.prototype.constructor = e, gi(e, t); } - function vi(e, t) { - return vi = Object.setPrototypeOf || function(r, i) { + function gi(e, t) { + return gi = Object.setPrototypeOf || function(r, i) { return r.__proto__ = i, r; - }, vi(e, t); + }, gi(e, t); } - var Dd = function(e) { - md(t, e); + var pd = function(e) { + dd(t, e); function t(r) { var i; - return i = e.call(this, r) || this, i.type = pd.ID, i; + return i = e.call(this, r) || this, i.type = fd2.ID, i; } var n = t.prototype; return n.valueToString = function() { return "#" + e.prototype.valueToString.call(this); }, t; - }(dd.default); - rr.default = Dd; - Fs.exports = rr.default; + }(ld.default); + tr.default = pd; + bs.exports = tr.default; }); -var an = P((nr, Cs) => { +var on = T((rr, xs) => { "use strict"; - c(); - nr.__esModule = true; - nr.default = void 0; - var gd = Es(sn()), bd = Xt(), vd = Es(je()); - function Es(e) { + rr.__esModule = true; + rr.default = void 0; + var hd = ys(nn()), md = Yt(), Dd = ys(Ue()); + function ys(e) { return e && e.__esModule ? e : { default: e }; } - function ws(e, t) { + function vs(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; r.enumerable = r.enumerable || false, r.configurable = true, "value" in r && (r.writable = true), Object.defineProperty(e, r.key, r); } } - function yd(e, t, n) { - return t && ws(e.prototype, t), n && ws(e, n), e; + function gd(e, t, n) { + return t && vs(e.prototype, t), n && vs(e, n), e; } - function xd(e, t) { - e.prototype = Object.create(t.prototype), e.prototype.constructor = e, xi(e, t); + function bd(e, t) { + e.prototype = Object.create(t.prototype), e.prototype.constructor = e, vi(e, t); } - function xi(e, t) { - return xi = Object.setPrototypeOf || function(r, i) { + function vi(e, t) { + return vi = Object.setPrototypeOf || function(r, i) { return r.__proto__ = i, r; - }, xi(e, t); + }, vi(e, t); } - var Fd = function(e) { - xd(t, e); + var vd = function(e) { + bd(t, e); function t() { return e.apply(this, arguments) || this; } @@ -12865,15 +12836,15 @@ var an = P((nr, Cs) => { return this.namespace ? this.namespaceString + "|" + i : i; }, n.valueToString = function() { return this.qualifiedName(e.prototype.valueToString.call(this)); - }, yd(t, [{ key: "namespace", get: function() { + }, gd(t, [{ key: "namespace", get: function() { return this._namespace; }, set: function(i) { if (i === true || i === "*" || i === "&") { this._namespace = i, this.raws && delete this.raws.namespace; return; } - var o = (0, gd.default)(i, { isIdentifier: true }); - this._namespace = i, o !== i ? ((0, bd.ensureObject)(this, "raws"), this.raws.namespace = o) : this.raws && delete this.raws.namespace; + var o = (0, hd.default)(i, { isIdentifier: true }); + this._namespace = i, o !== i ? ((0, md.ensureObject)(this, "raws"), this.raws.namespace = o) : this.raws && delete this.raws.namespace; } }, { key: "ns", get: function() { return this._namespace; }, set: function(i) { @@ -12885,20 +12856,46 @@ var an = P((nr, Cs) => { } else return ""; } }]), t; - }(vd.default); - nr.default = Fd; - Cs.exports = nr.default; + }(Dd.default); + rr.default = vd; + xs.exports = rr.default; +}); +var xi = T((nr, Fs) => { + "use strict"; + nr.__esModule = true; + nr.default = void 0; + var yd = Fd(on()), xd = pe(); + function Fd(e) { + return e && e.__esModule ? e : { default: e }; + } + function wd(e, t) { + e.prototype = Object.create(t.prototype), e.prototype.constructor = e, yi(e, t); + } + function yi(e, t) { + return yi = Object.setPrototypeOf || function(r, i) { + return r.__proto__ = i, r; + }, yi(e, t); + } + var Ed = function(e) { + wd(t, e); + function t(n) { + var r; + return r = e.call(this, n) || this, r.type = xd.TAG, r; + } + return t; + }(yd.default); + nr.default = Ed; + Fs.exports = nr.default; }); -var wi = P((ir, _s) => { +var wi = T((ir, ws) => { "use strict"; - c(); ir.__esModule = true; ir.default = void 0; - var wd = Cd(an()), Ed = ge(); - function Cd(e) { + var Cd = Sd(Ue()), _d = pe(); + function Sd(e) { return e && e.__esModule ? e : { default: e }; } - function _d(e, t) { + function kd(e, t) { e.prototype = Object.create(t.prototype), e.prototype.constructor = e, Fi(e, t); } function Fi(e, t) { @@ -12906,27 +12903,26 @@ var wi = P((ir, _s) => { return r.__proto__ = i, r; }, Fi(e, t); } - var Sd = function(e) { - _d(t, e); + var Td = function(e) { + kd(t, e); function t(n) { var r; - return r = e.call(this, n) || this, r.type = Ed.TAG, r; + return r = e.call(this, n) || this, r.type = _d.STRING, r; } return t; - }(wd.default); - ir.default = Sd; - _s.exports = ir.default; + }(Cd.default); + ir.default = Td; + ws.exports = ir.default; }); -var Ci = P((or, Ss) => { +var Ci = T((or, Es) => { "use strict"; - c(); or.__esModule = true; or.default = void 0; - var kd = Ad(je()), Td = ge(); - function Ad(e) { + var Ad = Pd(rn()), Od = pe(); + function Pd(e) { return e && e.__esModule ? e : { default: e }; } - function Od(e, t) { + function Bd(e, t) { e.prototype = Object.create(t.prototype), e.prototype.constructor = e, Ei(e, t); } function Ei(e, t) { @@ -12934,113 +12930,83 @@ var Ci = P((or, Ss) => { return r.__proto__ = i, r; }, Ei(e, t); } - var Pd = function(e) { - Od(t, e); - function t(n) { - var r; - return r = e.call(this, n) || this, r.type = Td.STRING, r; - } - return t; - }(kd.default); - or.default = Pd; - Ss.exports = or.default; -}); -var Si = P((ur, ks) => { - "use strict"; - c(); - ur.__esModule = true; - ur.default = void 0; - var Id = Rd(un()), Bd = ge(); - function Rd(e) { - return e && e.__esModule ? e : { default: e }; - } - function Ld(e, t) { - e.prototype = Object.create(t.prototype), e.prototype.constructor = e, _i(e, t); - } - function _i(e, t) { - return _i = Object.setPrototypeOf || function(r, i) { - return r.__proto__ = i, r; - }, _i(e, t); - } - var Md = function(e) { - Ld(t, e); + var Id = function(e) { + Bd(t, e); function t(r) { var i; - return i = e.call(this, r) || this, i.type = Bd.PSEUDO, i; + return i = e.call(this, r) || this, i.type = Od.PSEUDO, i; } var n = t.prototype; return n.toString = function() { var i = this.length ? "(" + this.map(String).join(",") + ")" : ""; return [this.rawSpaceBefore, this.stringifyProperty("value"), i, this.rawSpaceAfter].join(""); }, t; - }(Id.default); - ur.default = Md; - ks.exports = ur.default; + }(Ad.default); + or.default = Id; + Es.exports = or.default; }); -var As = P((cb, Ts) => { - c(); - Ts.exports = function(t, n) { +var _s = T((sb, Cs) => { + Cs.exports = function(t, n) { return function(...r) { return console.warn(n), t(...r); }; }; }); -var Ii = P((lr) => { +var Oi = T((ar) => { "use strict"; - c(); - lr.__esModule = true; - lr.unescapeValue = Pi; - lr.default = void 0; - var sr = Oi(sn()), Nd = Oi(ai()), $d = Oi(an()), Wd = ge(), ki; - function Oi(e) { + ar.__esModule = true; + ar.unescapeValue = Ai; + ar.default = void 0; + var ur = Ti(nn()), Rd = Ti(ui()), Ld = Ti(on()), Md = pe(), _i; + function Ti(e) { return e && e.__esModule ? e : { default: e }; } - function Os(e, t) { + function Ss(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; r.enumerable = r.enumerable || false, r.configurable = true, "value" in r && (r.writable = true), Object.defineProperty(e, r.key, r); } } - function qd(e, t, n) { - return t && Os(e.prototype, t), n && Os(e, n), e; + function Nd(e, t, n) { + return t && Ss(e.prototype, t), n && Ss(e, n), e; } - function Ud(e, t) { - e.prototype = Object.create(t.prototype), e.prototype.constructor = e, Ai(e, t); + function $d(e, t) { + e.prototype = Object.create(t.prototype), e.prototype.constructor = e, ki(e, t); } - function Ai(e, t) { - return Ai = Object.setPrototypeOf || function(r, i) { + function ki(e, t) { + return ki = Object.setPrototypeOf || function(r, i) { return r.__proto__ = i, r; - }, Ai(e, t); + }, ki(e, t); } - var ar = As(), zd = /^('|")([^]*)\1$/, Gd = ar(function() { - }, "Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."), jd = ar(function() { - }, "Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."), Hd = ar(function() { + var sr = _s(), Wd = /^('|")([^]*)\1$/, qd = sr(function() { + }, "Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."), Ud = sr(function() { + }, "Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."), zd = sr(function() { }, "Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now."); - function Pi(e) { - var t = false, n = null, r = e, i = r.match(zd); - return i && (n = i[1], r = i[2]), r = (0, Nd.default)(r), r !== e && (t = true), { deprecatedUsage: t, unescaped: r, quoteMark: n }; + function Ai(e) { + var t = false, n = null, r = e, i = r.match(Wd); + return i && (n = i[1], r = i[2]), r = (0, Rd.default)(r), r !== e && (t = true), { deprecatedUsage: t, unescaped: r, quoteMark: n }; } - function Vd(e) { + function Gd(e) { if (e.quoteMark !== void 0 || e.value === void 0) return e; - Hd(); - var t = Pi(e.value), n = t.quoteMark, r = t.unescaped; + zd(); + var t = Ai(e.value), n = t.quoteMark, r = t.unescaped; return e.raws || (e.raws = {}), e.raws.value === void 0 && (e.raws.value = e.value), e.value = r, e.quoteMark = n, e; } - var ln = function(e) { - Ud(t, e); + var un = function(e) { + $d(t, e); function t(r) { var i; - return r === void 0 && (r = {}), i = e.call(this, Vd(r)) || this, i.type = Wd.ATTRIBUTE, i.raws = i.raws || {}, Object.defineProperty(i.raws, "unquoted", { get: ar(function() { + return r === void 0 && (r = {}), i = e.call(this, Gd(r)) || this, i.type = Md.ATTRIBUTE, i.raws = i.raws || {}, Object.defineProperty(i.raws, "unquoted", { get: sr(function() { return i.value; - }, "attr.raws.unquoted is deprecated. Call attr.value instead."), set: ar(function() { + }, "attr.raws.unquoted is deprecated. Call attr.value instead."), set: sr(function() { return i.value; }, "Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.") }), i._constructed = true, i; } var n = t.prototype; return n.getQuotedValue = function(i) { i === void 0 && (i = {}); - var o = this._determineQuoteMark(i), u = Ti[o], s = (0, sr.default)(this._value, u); + var o = this._determineQuoteMark(i), u = Si[o], s = (0, ur.default)(this._value, u); return s; }, n._determineQuoteMark = function(i) { return i.smart ? this.smartQuoteMark(i) : this.preferredQuoteMark(i); @@ -13049,13 +13015,13 @@ var Ii = P((lr) => { }, n.smartQuoteMark = function(i) { var o = this.value, u = o.replace(/[^']/g, "").length, s = o.replace(/[^"]/g, "").length; if (u + s === 0) { - var a = (0, sr.default)(o, { isIdentifier: true }); + var a = (0, ur.default)(o, { isIdentifier: true }); if (a === o) return t.NO_QUOTE; var l = this.preferredQuoteMark(i); if (l === t.NO_QUOTE) { - var f = this.quoteMark || i.quoteMark || t.DOUBLE_QUOTE, d = Ti[f], h = (0, sr.default)(o, d); - if (h.length < a.length) + var f = this.quoteMark || i.quoteMark || t.DOUBLE_QUOTE, c = Si[f], p = (0, ur.default)(o, c); + if (p.length < a.length) return f; } return l; @@ -13065,18 +13031,18 @@ var Ii = P((lr) => { var o = i.preferCurrentQuoteMark ? this.quoteMark : i.quoteMark; return o === void 0 && (o = i.preferCurrentQuoteMark ? i.quoteMark : this.quoteMark), o === void 0 && (o = t.DOUBLE_QUOTE), o; }, n._syncRawValue = function() { - var i = (0, sr.default)(this._value, Ti[this.quoteMark]); + var i = (0, ur.default)(this._value, Si[this.quoteMark]); i === this._value ? this.raws && delete this.raws.value : this.raws.value = i; }, n._handleEscapes = function(i, o) { if (this._constructed) { - var u = (0, sr.default)(o, { isIdentifier: true }); + var u = (0, ur.default)(o, { isIdentifier: true }); u !== o ? this.raws[i] = u : delete this.raws[i]; } }, n._spacesFor = function(i) { var o = { before: "", after: "" }, u = this.spaces[i] || {}, s = this.raws.spaces && this.raws.spaces[i] || {}; return Object.assign(o, u, s); }, n._stringFor = function(i, o, u) { - o === void 0 && (o = i), u === void 0 && (u = Ps); + o === void 0 && (o = i), u === void 0 && (u = ks); var s = this._spacesFor(o); return u(this.stringifyProperty(i), s); }, n.offsetOf = function(i) { @@ -13098,18 +13064,18 @@ var Ii = P((lr) => { if (i === "value") return f ? o : -1; o += f.length, o += l.after.length; - var d = this._spacesFor("insensitive"); - return o += d.before.length, i === "insensitive" && this.insensitive ? o : -1; + var c = this._spacesFor("insensitive"); + return o += c.before.length, i === "insensitive" && this.insensitive ? o : -1; }, n.toString = function() { var i = this, o = [this.rawSpaceBefore, "["]; return o.push(this._stringFor("qualifiedAttribute", "attribute")), this.operator && (this.value || this.value === "") && (o.push(this._stringFor("operator")), o.push(this._stringFor("value")), o.push(this._stringFor("insensitiveFlag", "insensitive", function(u, s) { - return u.length > 0 && !i.quoted && s.before.length === 0 && !(i.spaces.value && i.spaces.value.after) && (s.before = " "), Ps(u, s); + return u.length > 0 && !i.quoted && s.before.length === 0 && !(i.spaces.value && i.spaces.value.after) && (s.before = " "), ks(u, s); }))), o.push("]"), o.push(this.rawSpaceAfter), o.join(""); - }, qd(t, [{ key: "quoted", get: function() { + }, Nd(t, [{ key: "quoted", get: function() { var i = this.quoteMark; return i === "'" || i === '"'; }, set: function(i) { - jd(); + Ud(); } }, { key: "quoteMark", get: function() { return this._quoteMark; }, set: function(i) { @@ -13126,8 +13092,8 @@ var Ii = P((lr) => { return this._value; }, set: function(i) { if (this._constructed) { - var o = Pi(i), u = o.deprecatedUsage, s = o.unescaped, a = o.quoteMark; - if (u && Gd(), s === this._value && a === this._quoteMark) + var o = Ai(i), u = o.deprecatedUsage, s = o.unescaped, a = o.quoteMark; + if (u && qd(), s === this._value && a === this._quoteMark) return; this._value = s, this._quoteMark = a, this._syncRawValue(); } else @@ -13137,201 +13103,195 @@ var Ii = P((lr) => { }, set: function(i) { this._handleEscapes("attribute", i), this._attribute = i; } }]), t; - }($d.default); - lr.default = ln; - ln.NO_QUOTE = null; - ln.SINGLE_QUOTE = "'"; - ln.DOUBLE_QUOTE = '"'; - var Ti = (ki = { "'": { quotes: "single", wrap: true }, '"': { quotes: "double", wrap: true } }, ki[null] = { isIdentifier: true }, ki); - function Ps(e, t) { + }(Ld.default); + ar.default = un; + un.NO_QUOTE = null; + un.SINGLE_QUOTE = "'"; + un.DOUBLE_QUOTE = '"'; + var Si = (_i = { "'": { quotes: "single", wrap: true }, '"': { quotes: "double", wrap: true } }, _i[null] = { isIdentifier: true }, _i); + function ks(e, t) { return "" + t.before + e + t.after; } }); -var Ri = P((fr, Is) => { +var Bi = T((lr, Ts) => { "use strict"; - c(); - fr.__esModule = true; - fr.default = void 0; - var Yd = Qd(an()), Xd = ge(); - function Qd(e) { + lr.__esModule = true; + lr.default = void 0; + var jd = Vd(on()), Hd = pe(); + function Vd(e) { return e && e.__esModule ? e : { default: e }; } - function Kd(e, t) { - e.prototype = Object.create(t.prototype), e.prototype.constructor = e, Bi(e, t); + function Yd(e, t) { + e.prototype = Object.create(t.prototype), e.prototype.constructor = e, Pi(e, t); } - function Bi(e, t) { - return Bi = Object.setPrototypeOf || function(r, i) { + function Pi(e, t) { + return Pi = Object.setPrototypeOf || function(r, i) { return r.__proto__ = i, r; - }, Bi(e, t); + }, Pi(e, t); } - var Jd = function(e) { - Kd(t, e); + var Xd = function(e) { + Yd(t, e); function t(n) { var r; - return r = e.call(this, n) || this, r.type = Xd.UNIVERSAL, r.value = "*", r; + return r = e.call(this, n) || this, r.type = Hd.UNIVERSAL, r.value = "*", r; } return t; - }(Yd.default); - fr.default = Jd; - Is.exports = fr.default; + }(jd.default); + lr.default = Xd; + Ts.exports = lr.default; }); -var Mi = P((cr, Bs) => { +var Ri = T((fr, As) => { "use strict"; - c(); - cr.__esModule = true; - cr.default = void 0; - var Zd = tp(je()), ep = ge(); - function tp(e) { + fr.__esModule = true; + fr.default = void 0; + var Qd = Jd(Ue()), Kd = pe(); + function Jd(e) { return e && e.__esModule ? e : { default: e }; } - function rp(e, t) { - e.prototype = Object.create(t.prototype), e.prototype.constructor = e, Li(e, t); + function Zd(e, t) { + e.prototype = Object.create(t.prototype), e.prototype.constructor = e, Ii(e, t); } - function Li(e, t) { - return Li = Object.setPrototypeOf || function(r, i) { + function Ii(e, t) { + return Ii = Object.setPrototypeOf || function(r, i) { return r.__proto__ = i, r; - }, Li(e, t); + }, Ii(e, t); } - var np = function(e) { - rp(t, e); + var ep = function(e) { + Zd(t, e); function t(n) { var r; - return r = e.call(this, n) || this, r.type = ep.COMBINATOR, r; + return r = e.call(this, n) || this, r.type = Kd.COMBINATOR, r; } return t; - }(Zd.default); - cr.default = np; - Bs.exports = cr.default; + }(Qd.default); + fr.default = ep; + As.exports = fr.default; }); -var $i = P((dr, Rs) => { +var Mi = T((cr, Os) => { "use strict"; - c(); - dr.__esModule = true; - dr.default = void 0; - var ip = up(je()), op = ge(); - function up(e) { + cr.__esModule = true; + cr.default = void 0; + var tp = np(Ue()), rp = pe(); + function np(e) { return e && e.__esModule ? e : { default: e }; } - function sp(e, t) { - e.prototype = Object.create(t.prototype), e.prototype.constructor = e, Ni(e, t); + function ip(e, t) { + e.prototype = Object.create(t.prototype), e.prototype.constructor = e, Li(e, t); } - function Ni(e, t) { - return Ni = Object.setPrototypeOf || function(r, i) { + function Li(e, t) { + return Li = Object.setPrototypeOf || function(r, i) { return r.__proto__ = i, r; - }, Ni(e, t); + }, Li(e, t); } - var ap = function(e) { - sp(t, e); + var op = function(e) { + ip(t, e); function t(n) { var r; - return r = e.call(this, n) || this, r.type = op.NESTING, r.value = "&", r; + return r = e.call(this, n) || this, r.type = rp.NESTING, r.value = "&", r; } return t; - }(ip.default); - dr.default = ap; - Rs.exports = dr.default; + }(tp.default); + cr.default = op; + Os.exports = cr.default; }); -var Ms = P((fn, Ls) => { +var Bs = T((sn, Ps) => { "use strict"; - c(); - fn.__esModule = true; - fn.default = lp; - function lp(e) { + sn.__esModule = true; + sn.default = up; + function up(e) { return e.sort(function(t, n) { return t - n; }); } - Ls.exports = fn.default; + Ps.exports = sn.default; }); -var Wi = P((A) => { +var Ni = T((S) => { "use strict"; - c(); - A.__esModule = true; - A.combinator = A.word = A.comment = A.str = A.tab = A.newline = A.feed = A.cr = A.backslash = A.bang = A.slash = A.doubleQuote = A.singleQuote = A.space = A.greaterThan = A.pipe = A.equals = A.plus = A.caret = A.tilde = A.dollar = A.closeSquare = A.openSquare = A.closeParenthesis = A.openParenthesis = A.semicolon = A.colon = A.comma = A.at = A.asterisk = A.ampersand = void 0; - var fp = 38; - A.ampersand = fp; - var cp = 42; - A.asterisk = cp; - var dp = 64; - A.at = dp; - var pp = 44; - A.comma = pp; - var hp = 58; - A.colon = hp; - var mp = 59; - A.semicolon = mp; - var Dp = 40; - A.openParenthesis = Dp; - var gp = 41; - A.closeParenthesis = gp; - var bp = 91; - A.openSquare = bp; - var vp = 93; - A.closeSquare = vp; - var yp = 36; - A.dollar = yp; - var xp = 126; - A.tilde = xp; - var Fp = 94; - A.caret = Fp; - var wp = 43; - A.plus = wp; - var Ep = 61; - A.equals = Ep; - var Cp = 124; - A.pipe = Cp; - var _p = 62; - A.greaterThan = _p; - var Sp = 32; - A.space = Sp; - var Ns = 39; - A.singleQuote = Ns; - var kp = 34; - A.doubleQuote = kp; - var Tp = 47; - A.slash = Tp; - var Ap = 33; - A.bang = Ap; - var Op = 92; - A.backslash = Op; - var Pp = 13; - A.cr = Pp; - var Ip = 12; - A.feed = Ip; - var Bp = 10; - A.newline = Bp; - var Rp = 9; - A.tab = Rp; - var Lp = Ns; - A.str = Lp; - var Mp = -1; - A.comment = Mp; - var Np = -2; - A.word = Np; - var $p = -3; - A.combinator = $p; + S.__esModule = true; + S.combinator = S.word = S.comment = S.str = S.tab = S.newline = S.feed = S.cr = S.backslash = S.bang = S.slash = S.doubleQuote = S.singleQuote = S.space = S.greaterThan = S.pipe = S.equals = S.plus = S.caret = S.tilde = S.dollar = S.closeSquare = S.openSquare = S.closeParenthesis = S.openParenthesis = S.semicolon = S.colon = S.comma = S.at = S.asterisk = S.ampersand = void 0; + var sp = 38; + S.ampersand = sp; + var ap = 42; + S.asterisk = ap; + var lp = 64; + S.at = lp; + var fp = 44; + S.comma = fp; + var cp = 58; + S.colon = cp; + var dp = 59; + S.semicolon = dp; + var pp = 40; + S.openParenthesis = pp; + var hp = 41; + S.closeParenthesis = hp; + var mp = 91; + S.openSquare = mp; + var Dp = 93; + S.closeSquare = Dp; + var gp = 36; + S.dollar = gp; + var bp = 126; + S.tilde = bp; + var vp = 94; + S.caret = vp; + var yp = 43; + S.plus = yp; + var xp = 61; + S.equals = xp; + var Fp = 124; + S.pipe = Fp; + var wp = 62; + S.greaterThan = wp; + var Ep = 32; + S.space = Ep; + var Is = 39; + S.singleQuote = Is; + var Cp = 34; + S.doubleQuote = Cp; + var _p = 47; + S.slash = _p; + var Sp = 33; + S.bang = Sp; + var kp = 92; + S.backslash = kp; + var Tp = 13; + S.cr = Tp; + var Ap = 12; + S.feed = Ap; + var Op = 10; + S.newline = Op; + var Pp = 9; + S.tab = Pp; + var Bp = Is; + S.str = Bp; + var Ip = -1; + S.comment = Ip; + var Rp = -2; + S.word = Rp; + var Lp = -3; + S.combinator = Lp; }); -var qs = P((pr) => { +var Ms = T((dr) => { "use strict"; - c(); - pr.__esModule = true; - pr.default = Hp; - pr.FIELDS = void 0; - var S = Wp(Wi()), wt, Z; - function Ws() { + dr.__esModule = true; + dr.default = zp; + dr.FIELDS = void 0; + var E = Mp(Ni()), xt, Q; + function Ls() { if (typeof WeakMap != "function") return null; var e = /* @__PURE__ */ new WeakMap(); - return Ws = function() { + return Ls = function() { return e; }, e; } - function Wp(e) { + function Mp(e) { if (e && e.__esModule) return e; if (e === null || typeof e != "object" && typeof e != "function") return { default: e }; - var t = Ws(); + var t = Ls(); if (t && t.has(e)) return t.get(e); var n = {}, r = Object.defineProperty && Object.getOwnPropertyDescriptor; @@ -13342,119 +13302,118 @@ var qs = P((pr) => { } return n.default = e, t && t.set(e, n), n; } - var qp = (wt = {}, wt[S.tab] = true, wt[S.newline] = true, wt[S.cr] = true, wt[S.feed] = true, wt), Up = (Z = {}, Z[S.space] = true, Z[S.tab] = true, Z[S.newline] = true, Z[S.cr] = true, Z[S.feed] = true, Z[S.ampersand] = true, Z[S.asterisk] = true, Z[S.bang] = true, Z[S.comma] = true, Z[S.colon] = true, Z[S.semicolon] = true, Z[S.openParenthesis] = true, Z[S.closeParenthesis] = true, Z[S.openSquare] = true, Z[S.closeSquare] = true, Z[S.singleQuote] = true, Z[S.doubleQuote] = true, Z[S.plus] = true, Z[S.pipe] = true, Z[S.tilde] = true, Z[S.greaterThan] = true, Z[S.equals] = true, Z[S.dollar] = true, Z[S.caret] = true, Z[S.slash] = true, Z), qi = {}, $s = "0123456789abcdefABCDEF"; - for (cn = 0; cn < $s.length; cn++) - qi[$s.charCodeAt(cn)] = true; - var cn; - function zp(e, t) { + var Np = (xt = {}, xt[E.tab] = true, xt[E.newline] = true, xt[E.cr] = true, xt[E.feed] = true, xt), $p = (Q = {}, Q[E.space] = true, Q[E.tab] = true, Q[E.newline] = true, Q[E.cr] = true, Q[E.feed] = true, Q[E.ampersand] = true, Q[E.asterisk] = true, Q[E.bang] = true, Q[E.comma] = true, Q[E.colon] = true, Q[E.semicolon] = true, Q[E.openParenthesis] = true, Q[E.closeParenthesis] = true, Q[E.openSquare] = true, Q[E.closeSquare] = true, Q[E.singleQuote] = true, Q[E.doubleQuote] = true, Q[E.plus] = true, Q[E.pipe] = true, Q[E.tilde] = true, Q[E.greaterThan] = true, Q[E.equals] = true, Q[E.dollar] = true, Q[E.caret] = true, Q[E.slash] = true, Q), $i = {}, Rs = "0123456789abcdefABCDEF"; + for (an = 0; an < Rs.length; an++) + $i[Rs.charCodeAt(an)] = true; + var an; + function Wp(e, t) { var n = t, r; do { - if (r = e.charCodeAt(n), Up[r]) + if (r = e.charCodeAt(n), $p[r]) return n - 1; - r === S.backslash ? n = Gp(e, n) + 1 : n++; + r === E.backslash ? n = qp(e, n) + 1 : n++; } while (n < e.length); return n - 1; } - function Gp(e, t) { + function qp(e, t) { var n = t, r = e.charCodeAt(n + 1); - if (!qp[r]) - if (qi[r]) { + if (!Np[r]) + if ($i[r]) { var i = 0; do n++, i++, r = e.charCodeAt(n + 1); - while (qi[r] && i < 6); - i < 6 && r === S.space && n++; + while ($i[r] && i < 6); + i < 6 && r === E.space && n++; } else n++; return n; } - var jp = { TYPE: 0, START_LINE: 1, START_COL: 2, END_LINE: 3, END_COL: 4, START_POS: 5, END_POS: 6 }; - pr.FIELDS = jp; - function Hp(e) { - var t = [], n = e.css.valueOf(), r = n, i = r.length, o = -1, u = 1, s = 0, a = 0, l, f, d, h, m, p, D, F, b, v, E, C, w; - function O(R, L) { + var Up = { TYPE: 0, START_LINE: 1, START_COL: 2, END_LINE: 3, END_COL: 4, START_POS: 5, END_POS: 6 }; + dr.FIELDS = Up; + function zp(e) { + var t = [], n = e.css.valueOf(), r = n, i = r.length, o = -1, u = 1, s = 0, a = 0, l, f, c, p, h, d, m, v, g, b, x, F, y; + function k(P, B) { if (e.safe) - n += L, b = n.length - 1; + n += B, g = n.length - 1; else - throw e.error("Unclosed " + R, u, s - o, s); + throw e.error("Unclosed " + P, u, s - o, s); } for (; s < i; ) { - switch (l = n.charCodeAt(s), l === S.newline && (o = s, u += 1), l) { - case S.space: - case S.tab: - case S.newline: - case S.cr: - case S.feed: - b = s; + switch (l = n.charCodeAt(s), l === E.newline && (o = s, u += 1), l) { + case E.space: + case E.tab: + case E.newline: + case E.cr: + case E.feed: + g = s; do - b += 1, l = n.charCodeAt(b), l === S.newline && (o = b, u += 1); - while (l === S.space || l === S.newline || l === S.tab || l === S.cr || l === S.feed); - w = S.space, h = u, d = b - o - 1, a = b; + g += 1, l = n.charCodeAt(g), l === E.newline && (o = g, u += 1); + while (l === E.space || l === E.newline || l === E.tab || l === E.cr || l === E.feed); + y = E.space, p = u, c = g - o - 1, a = g; break; - case S.plus: - case S.greaterThan: - case S.tilde: - case S.pipe: - b = s; + case E.plus: + case E.greaterThan: + case E.tilde: + case E.pipe: + g = s; do - b += 1, l = n.charCodeAt(b); - while (l === S.plus || l === S.greaterThan || l === S.tilde || l === S.pipe); - w = S.combinator, h = u, d = s - o, a = b; + g += 1, l = n.charCodeAt(g); + while (l === E.plus || l === E.greaterThan || l === E.tilde || l === E.pipe); + y = E.combinator, p = u, c = s - o, a = g; break; - case S.asterisk: - case S.ampersand: - case S.bang: - case S.comma: - case S.equals: - case S.dollar: - case S.caret: - case S.openSquare: - case S.closeSquare: - case S.colon: - case S.semicolon: - case S.openParenthesis: - case S.closeParenthesis: - b = s, w = l, h = u, d = s - o, a = b + 1; + case E.asterisk: + case E.ampersand: + case E.bang: + case E.comma: + case E.equals: + case E.dollar: + case E.caret: + case E.openSquare: + case E.closeSquare: + case E.colon: + case E.semicolon: + case E.openParenthesis: + case E.closeParenthesis: + g = s, y = l, p = u, c = s - o, a = g + 1; break; - case S.singleQuote: - case S.doubleQuote: - C = l === S.singleQuote ? "'" : '"', b = s; + case E.singleQuote: + case E.doubleQuote: + F = l === E.singleQuote ? "'" : '"', g = s; do - for (m = false, b = n.indexOf(C, b + 1), b === -1 && O("quote", C), p = b; n.charCodeAt(p - 1) === S.backslash; ) - p -= 1, m = !m; - while (m); - w = S.str, h = u, d = s - o, a = b + 1; + for (h = false, g = n.indexOf(F, g + 1), g === -1 && k("quote", F), d = g; n.charCodeAt(d - 1) === E.backslash; ) + d -= 1, h = !h; + while (h); + y = E.str, p = u, c = s - o, a = g + 1; break; default: - l === S.slash && n.charCodeAt(s + 1) === S.asterisk ? (b = n.indexOf("*/", s + 2) + 1, b === 0 && O("comment", "*/"), f = n.slice(s, b + 1), F = f.split(` -`), D = F.length - 1, D > 0 ? (v = u + D, E = b - F[D].length) : (v = u, E = o), w = S.comment, u = v, h = v, d = b - E) : l === S.slash ? (b = s, w = l, h = u, d = s - o, a = b + 1) : (b = zp(n, s), w = S.word, h = u, d = b - o), a = b + 1; + l === E.slash && n.charCodeAt(s + 1) === E.asterisk ? (g = n.indexOf("*/", s + 2) + 1, g === 0 && k("comment", "*/"), f = n.slice(s, g + 1), v = f.split(` +`), m = v.length - 1, m > 0 ? (b = u + m, x = g - v[m].length) : (b = u, x = o), y = E.comment, u = b, p = b, c = g - x) : l === E.slash ? (g = s, y = l, p = u, c = s - o, a = g + 1) : (g = Wp(n, s), y = E.word, p = u, c = g - o), a = g + 1; break; } - t.push([w, u, s - o, h, d, s, a]), E && (o = E, E = null), s = a; + t.push([y, u, s - o, p, c, s, a]), x && (o = x, x = null), s = a; } return t; } }); -var Xs = P((hr, Ys) => { +var js = T((pr, Gs) => { "use strict"; - c(); - hr.__esModule = true; - hr.default = void 0; - var Vp = Te(ci()), Ui = Te(pi()), Yp = Te(Di()), Us = Te(bi()), Xp = Te(yi()), Qp = Te(wi()), zi = Te(Ci()), Kp = Te(Si()), zs = dn(Ii()), Jp = Te(Ri()), Gi = Te(Mi()), Zp = Te($i()), e0 = Te(Ms()), _ = dn(qs()), T = dn(Wi()), t0 = dn(ge()), ie = Xt(), at, ji; - function Vs() { + pr.__esModule = true; + pr.default = void 0; + var Gp = _e(li()), Wi = _e(ci()), jp = _e(hi()), Ns = _e(Di()), Hp = _e(bi()), Vp = _e(xi()), qi = _e(wi()), Yp = _e(Ci()), $s = ln(Oi()), Xp = _e(Bi()), Ui = _e(Ri()), Qp = _e(Mi()), Kp = _e(Bs()), w = ln(Ms()), _ = ln(Ni()), Jp = ln(pe()), te = Yt(), ut, zi; + function zs() { if (typeof WeakMap != "function") return null; var e = /* @__PURE__ */ new WeakMap(); - return Vs = function() { + return zs = function() { return e; }, e; } - function dn(e) { + function ln(e) { if (e && e.__esModule) return e; if (e === null || typeof e != "object" && typeof e != "function") return { default: e }; - var t = Vs(); + var t = zs(); if (t && t.has(e)) return t.get(e); var n = {}, r = Object.defineProperty && Object.getOwnPropertyDescriptor; @@ -13465,57 +13424,57 @@ var Xs = P((hr, Ys) => { } return n.default = e, t && t.set(e, n), n; } - function Te(e) { + function _e(e) { return e && e.__esModule ? e : { default: e }; } - function Gs(e, t) { + function Ws(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; r.enumerable = r.enumerable || false, r.configurable = true, "value" in r && (r.writable = true), Object.defineProperty(e, r.key, r); } } - function r0(e, t, n) { - return t && Gs(e.prototype, t), n && Gs(e, n), e; + function Zp(e, t, n) { + return t && Ws(e.prototype, t), n && Ws(e, n), e; } - var Yi = (at = {}, at[T.space] = true, at[T.cr] = true, at[T.feed] = true, at[T.newline] = true, at[T.tab] = true, at), n0 = Object.assign({}, Yi, (ji = {}, ji[T.comment] = true, ji)); - function js(e) { - return { line: e[_.FIELDS.START_LINE], column: e[_.FIELDS.START_COL] }; + var Hi = (ut = {}, ut[_.space] = true, ut[_.cr] = true, ut[_.feed] = true, ut[_.newline] = true, ut[_.tab] = true, ut), e0 = Object.assign({}, Hi, (zi = {}, zi[_.comment] = true, zi)); + function qs(e) { + return { line: e[w.FIELDS.START_LINE], column: e[w.FIELDS.START_COL] }; } - function Hs(e) { - return { line: e[_.FIELDS.END_LINE], column: e[_.FIELDS.END_COL] }; + function Us(e) { + return { line: e[w.FIELDS.END_LINE], column: e[w.FIELDS.END_COL] }; } - function lt(e, t, n, r) { + function st(e, t, n, r) { return { start: { line: e, column: t }, end: { line: n, column: r } }; } - function Et(e) { - return lt(e[_.FIELDS.START_LINE], e[_.FIELDS.START_COL], e[_.FIELDS.END_LINE], e[_.FIELDS.END_COL]); + function Ft(e) { + return st(e[w.FIELDS.START_LINE], e[w.FIELDS.START_COL], e[w.FIELDS.END_LINE], e[w.FIELDS.END_COL]); } - function Hi(e, t) { - if (!!e) - return lt(e[_.FIELDS.START_LINE], e[_.FIELDS.START_COL], t[_.FIELDS.END_LINE], t[_.FIELDS.END_COL]); + function Gi(e, t) { + if (e) + return st(e[w.FIELDS.START_LINE], e[w.FIELDS.START_COL], t[w.FIELDS.END_LINE], t[w.FIELDS.END_COL]); } - function Ct(e, t) { + function wt(e, t) { var n = e[t]; if (typeof n == "string") - return n.indexOf("\\") !== -1 && ((0, ie.ensureObject)(e, "raws"), e[t] = (0, ie.unesc)(n), e.raws[t] === void 0 && (e.raws[t] = n)), e; + return n.indexOf("\\") !== -1 && ((0, te.ensureObject)(e, "raws"), e[t] = (0, te.unesc)(n), e.raws[t] === void 0 && (e.raws[t] = n)), e; } - function Vi(e, t) { + function ji(e, t) { for (var n = -1, r = []; (n = e.indexOf(t, n + 1)) !== -1; ) r.push(n); return r; } - function i0() { + function t0() { var e = Array.prototype.concat.apply([], arguments); return e.filter(function(t, n) { return n === e.indexOf(t); }); } - var o0 = function() { + var r0 = function() { function e(n, r) { - r === void 0 && (r = {}), this.rule = n, this.options = Object.assign({ lossy: false, safe: false }, r), this.position = 0, this.css = typeof this.rule == "string" ? this.rule : this.rule.selector, this.tokens = (0, _.default)({ css: this.css, error: this._errorGenerator(), safe: this.options.safe }); - var i = Hi(this.tokens[0], this.tokens[this.tokens.length - 1]); - this.root = new Vp.default({ source: i }), this.root.errorGenerator = this._errorGenerator(); - var o = new Ui.default({ source: { start: { line: 1, column: 1 } } }); + r === void 0 && (r = {}), this.rule = n, this.options = Object.assign({ lossy: false, safe: false }, r), this.position = 0, this.css = typeof this.rule == "string" ? this.rule : this.rule.selector, this.tokens = (0, w.default)({ css: this.css, error: this._errorGenerator(), safe: this.options.safe }); + var i = Gi(this.tokens[0], this.tokens[this.tokens.length - 1]); + this.root = new Gp.default({ source: i }), this.root.errorGenerator = this._errorGenerator(); + var o = new Wi.default({ source: { start: { line: 1, column: 1 } } }); this.root.append(o), this.current = o, this.loop(); } var t = e.prototype; @@ -13526,110 +13485,110 @@ var Xs = P((hr, Ys) => { }; }, t.attribute = function() { var r = [], i = this.currToken; - for (this.position++; this.position < this.tokens.length && this.currToken[_.FIELDS.TYPE] !== T.closeSquare; ) + for (this.position++; this.position < this.tokens.length && this.currToken[w.FIELDS.TYPE] !== _.closeSquare; ) r.push(this.currToken), this.position++; - if (this.currToken[_.FIELDS.TYPE] !== T.closeSquare) - return this.expected("closing square bracket", this.currToken[_.FIELDS.START_POS]); - var o = r.length, u = { source: lt(i[1], i[2], this.currToken[3], this.currToken[4]), sourceIndex: i[_.FIELDS.START_POS] }; - if (o === 1 && !~[T.word].indexOf(r[0][_.FIELDS.TYPE])) - return this.expected("attribute", r[0][_.FIELDS.START_POS]); - for (var s = 0, a = "", l = "", f = null, d = false; s < o; ) { - var h = r[s], m = this.content(h), p = r[s + 1]; - switch (h[_.FIELDS.TYPE]) { - case T.space: - if (d = true, this.options.lossy) + if (this.currToken[w.FIELDS.TYPE] !== _.closeSquare) + return this.expected("closing square bracket", this.currToken[w.FIELDS.START_POS]); + var o = r.length, u = { source: st(i[1], i[2], this.currToken[3], this.currToken[4]), sourceIndex: i[w.FIELDS.START_POS] }; + if (o === 1 && !~[_.word].indexOf(r[0][w.FIELDS.TYPE])) + return this.expected("attribute", r[0][w.FIELDS.START_POS]); + for (var s = 0, a = "", l = "", f = null, c = false; s < o; ) { + var p = r[s], h = this.content(p), d = r[s + 1]; + switch (p[w.FIELDS.TYPE]) { + case _.space: + if (c = true, this.options.lossy) break; if (f) { - (0, ie.ensureObject)(u, "spaces", f); - var D = u.spaces[f].after || ""; - u.spaces[f].after = D + m; - var F = (0, ie.getProp)(u, "raws", "spaces", f, "after") || null; - F && (u.raws.spaces[f].after = F + m); + (0, te.ensureObject)(u, "spaces", f); + var m = u.spaces[f].after || ""; + u.spaces[f].after = m + h; + var v = (0, te.getProp)(u, "raws", "spaces", f, "after") || null; + v && (u.raws.spaces[f].after = v + h); } else - a = a + m, l = l + m; + a = a + h, l = l + h; break; - case T.asterisk: - if (p[_.FIELDS.TYPE] === T.equals) - u.operator = m, f = "operator"; - else if ((!u.namespace || f === "namespace" && !d) && p) { - a && ((0, ie.ensureObject)(u, "spaces", "attribute"), u.spaces.attribute.before = a, a = ""), l && ((0, ie.ensureObject)(u, "raws", "spaces", "attribute"), u.raws.spaces.attribute.before = a, l = ""), u.namespace = (u.namespace || "") + m; - var b = (0, ie.getProp)(u, "raws", "namespace") || null; - b && (u.raws.namespace += m), f = "namespace"; + case _.asterisk: + if (d[w.FIELDS.TYPE] === _.equals) + u.operator = h, f = "operator"; + else if ((!u.namespace || f === "namespace" && !c) && d) { + a && ((0, te.ensureObject)(u, "spaces", "attribute"), u.spaces.attribute.before = a, a = ""), l && ((0, te.ensureObject)(u, "raws", "spaces", "attribute"), u.raws.spaces.attribute.before = a, l = ""), u.namespace = (u.namespace || "") + h; + var g = (0, te.getProp)(u, "raws", "namespace") || null; + g && (u.raws.namespace += h), f = "namespace"; } - d = false; + c = false; break; - case T.dollar: + case _.dollar: if (f === "value") { - var v = (0, ie.getProp)(u, "raws", "value"); - u.value += "$", v && (u.raws.value = v + "$"); + var b = (0, te.getProp)(u, "raws", "value"); + u.value += "$", b && (u.raws.value = b + "$"); break; } - case T.caret: - p[_.FIELDS.TYPE] === T.equals && (u.operator = m, f = "operator"), d = false; + case _.caret: + d[w.FIELDS.TYPE] === _.equals && (u.operator = h, f = "operator"), c = false; break; - case T.combinator: - if (m === "~" && p[_.FIELDS.TYPE] === T.equals && (u.operator = m, f = "operator"), m !== "|") { - d = false; + case _.combinator: + if (h === "~" && d[w.FIELDS.TYPE] === _.equals && (u.operator = h, f = "operator"), h !== "|") { + c = false; break; } - p[_.FIELDS.TYPE] === T.equals ? (u.operator = m, f = "operator") : !u.namespace && !u.attribute && (u.namespace = true), d = false; + d[w.FIELDS.TYPE] === _.equals ? (u.operator = h, f = "operator") : !u.namespace && !u.attribute && (u.namespace = true), c = false; break; - case T.word: - if (p && this.content(p) === "|" && r[s + 2] && r[s + 2][_.FIELDS.TYPE] !== T.equals && !u.operator && !u.namespace) - u.namespace = m, f = "namespace"; - else if (!u.attribute || f === "attribute" && !d) { - a && ((0, ie.ensureObject)(u, "spaces", "attribute"), u.spaces.attribute.before = a, a = ""), l && ((0, ie.ensureObject)(u, "raws", "spaces", "attribute"), u.raws.spaces.attribute.before = l, l = ""), u.attribute = (u.attribute || "") + m; - var E = (0, ie.getProp)(u, "raws", "attribute") || null; - E && (u.raws.attribute += m), f = "attribute"; - } else if (!u.value && u.value !== "" || f === "value" && !d) { - var C = (0, ie.unesc)(m), w = (0, ie.getProp)(u, "raws", "value") || "", O = u.value || ""; - u.value = O + C, u.quoteMark = null, (C !== m || w) && ((0, ie.ensureObject)(u, "raws"), u.raws.value = (w || O) + m), f = "value"; + case _.word: + if (d && this.content(d) === "|" && r[s + 2] && r[s + 2][w.FIELDS.TYPE] !== _.equals && !u.operator && !u.namespace) + u.namespace = h, f = "namespace"; + else if (!u.attribute || f === "attribute" && !c) { + a && ((0, te.ensureObject)(u, "spaces", "attribute"), u.spaces.attribute.before = a, a = ""), l && ((0, te.ensureObject)(u, "raws", "spaces", "attribute"), u.raws.spaces.attribute.before = l, l = ""), u.attribute = (u.attribute || "") + h; + var x = (0, te.getProp)(u, "raws", "attribute") || null; + x && (u.raws.attribute += h), f = "attribute"; + } else if (!u.value && u.value !== "" || f === "value" && !c) { + var F = (0, te.unesc)(h), y = (0, te.getProp)(u, "raws", "value") || "", k = u.value || ""; + u.value = k + F, u.quoteMark = null, (F !== h || y) && ((0, te.ensureObject)(u, "raws"), u.raws.value = (y || k) + h), f = "value"; } else { - var R = m === "i" || m === "I"; - (u.value || u.value === "") && (u.quoteMark || d) ? (u.insensitive = R, (!R || m === "I") && ((0, ie.ensureObject)(u, "raws"), u.raws.insensitiveFlag = m), f = "insensitive", a && ((0, ie.ensureObject)(u, "spaces", "insensitive"), u.spaces.insensitive.before = a, a = ""), l && ((0, ie.ensureObject)(u, "raws", "spaces", "insensitive"), u.raws.spaces.insensitive.before = l, l = "")) : (u.value || u.value === "") && (f = "value", u.value += m, u.raws.value && (u.raws.value += m)); + var P = h === "i" || h === "I"; + (u.value || u.value === "") && (u.quoteMark || c) ? (u.insensitive = P, (!P || h === "I") && ((0, te.ensureObject)(u, "raws"), u.raws.insensitiveFlag = h), f = "insensitive", a && ((0, te.ensureObject)(u, "spaces", "insensitive"), u.spaces.insensitive.before = a, a = ""), l && ((0, te.ensureObject)(u, "raws", "spaces", "insensitive"), u.raws.spaces.insensitive.before = l, l = "")) : (u.value || u.value === "") && (f = "value", u.value += h, u.raws.value && (u.raws.value += h)); } - d = false; + c = false; break; - case T.str: + case _.str: if (!u.attribute || !u.operator) - return this.error("Expected an attribute followed by an operator preceding the string.", { index: h[_.FIELDS.START_POS] }); - var L = (0, zs.unescapeValue)(m), Y = L.unescaped, se = L.quoteMark; - u.value = Y, u.quoteMark = se, f = "value", (0, ie.ensureObject)(u, "raws"), u.raws.value = m, d = false; + return this.error("Expected an attribute followed by an operator preceding the string.", { index: p[w.FIELDS.START_POS] }); + var B = (0, $s.unescapeValue)(h), H = B.unescaped, oe = B.quoteMark; + u.value = H, u.quoteMark = oe, f = "value", (0, te.ensureObject)(u, "raws"), u.raws.value = h, c = false; break; - case T.equals: + case _.equals: if (!u.attribute) - return this.expected("attribute", h[_.FIELDS.START_POS], m); + return this.expected("attribute", p[w.FIELDS.START_POS], h); if (u.value) - return this.error('Unexpected "=" found; an operator was already defined.', { index: h[_.FIELDS.START_POS] }); - u.operator = u.operator ? u.operator + m : m, f = "operator", d = false; + return this.error('Unexpected "=" found; an operator was already defined.', { index: p[w.FIELDS.START_POS] }); + u.operator = u.operator ? u.operator + h : h, f = "operator", c = false; break; - case T.comment: + case _.comment: if (f) - if (d || p && p[_.FIELDS.TYPE] === T.space || f === "insensitive") { - var ae = (0, ie.getProp)(u, "spaces", f, "after") || "", le = (0, ie.getProp)(u, "raws", "spaces", f, "after") || ae; - (0, ie.ensureObject)(u, "raws", "spaces", f), u.raws.spaces[f].after = le + m; + if (c || d && d[w.FIELDS.TYPE] === _.space || f === "insensitive") { + var ue = (0, te.getProp)(u, "spaces", f, "after") || "", se = (0, te.getProp)(u, "raws", "spaces", f, "after") || ue; + (0, te.ensureObject)(u, "raws", "spaces", f), u.raws.spaces[f].after = se + h; } else { - var q = u[f] || "", $ = (0, ie.getProp)(u, "raws", f) || q; - (0, ie.ensureObject)(u, "raws"), u.raws[f] = $ + m; + var $ = u[f] || "", L = (0, te.getProp)(u, "raws", f) || $; + (0, te.ensureObject)(u, "raws"), u.raws[f] = L + h; } else - l = l + m; + l = l + h; break; default: - return this.error('Unexpected "' + m + '" found.', { index: h[_.FIELDS.START_POS] }); + return this.error('Unexpected "' + h + '" found.', { index: p[w.FIELDS.START_POS] }); } s++; } - Ct(u, "attribute"), Ct(u, "namespace"), this.newNode(new zs.default(u)), this.position++; + wt(u, "attribute"), wt(u, "namespace"), this.newNode(new $s.default(u)), this.position++; }, t.parseWhitespaceEquivalentTokens = function(r) { r < 0 && (r = this.tokens.length); var i = this.position, o = [], u = "", s = void 0; do - if (Yi[this.currToken[_.FIELDS.TYPE]]) + if (Hi[this.currToken[w.FIELDS.TYPE]]) this.options.lossy || (u += this.content()); - else if (this.currToken[_.FIELDS.TYPE] === T.comment) { + else if (this.currToken[w.FIELDS.TYPE] === _.comment) { var a = {}; - u && (a.before = u, u = ""), s = new Us.default({ value: this.content(), source: Et(this.currToken), sourceIndex: this.currToken[_.FIELDS.START_POS], spaces: a }), o.push(s); + u && (a.before = u, u = ""), s = new Ns.default({ value: this.content(), source: Ft(this.currToken), sourceIndex: this.currToken[w.FIELDS.START_POS], spaces: a }), o.push(s); } while (++this.position < r); if (u) { @@ -13637,7 +13596,7 @@ var Xs = P((hr, Ys) => { s.spaces.after = u; else if (!this.options.lossy) { var l = this.tokens[i], f = this.tokens[this.position - 1]; - o.push(new zi.default({ value: "", source: lt(l[_.FIELDS.START_LINE], l[_.FIELDS.START_COL], f[_.FIELDS.END_LINE], f[_.FIELDS.END_COL]), sourceIndex: l[_.FIELDS.START_POS], spaces: { before: u, after: "" } })); + o.push(new qi.default({ value: "", source: st(l[w.FIELDS.START_LINE], l[w.FIELDS.START_COL], f[w.FIELDS.END_LINE], f[w.FIELDS.END_COL]), sourceIndex: l[w.FIELDS.START_POS], spaces: { before: u, after: "" } })); } } return o; @@ -13646,18 +13605,18 @@ var Xs = P((hr, Ys) => { i === void 0 && (i = false); var u = "", s = ""; r.forEach(function(l) { - var f = o.lossySpace(l.spaces.before, i), d = o.lossySpace(l.rawSpaceBefore, i); - u += f + o.lossySpace(l.spaces.after, i && f.length === 0), s += f + l.value + o.lossySpace(l.rawSpaceAfter, i && d.length === 0); + var f = o.lossySpace(l.spaces.before, i), c = o.lossySpace(l.rawSpaceBefore, i); + u += f + o.lossySpace(l.spaces.after, i && f.length === 0), s += f + l.value + o.lossySpace(l.rawSpaceAfter, i && c.length === 0); }), s === u && (s = void 0); var a = { space: u, rawSpace: s }; return a; }, t.isNamedCombinator = function(r) { - return r === void 0 && (r = this.position), this.tokens[r + 0] && this.tokens[r + 0][_.FIELDS.TYPE] === T.slash && this.tokens[r + 1] && this.tokens[r + 1][_.FIELDS.TYPE] === T.word && this.tokens[r + 2] && this.tokens[r + 2][_.FIELDS.TYPE] === T.slash; + return r === void 0 && (r = this.position), this.tokens[r + 0] && this.tokens[r + 0][w.FIELDS.TYPE] === _.slash && this.tokens[r + 1] && this.tokens[r + 1][w.FIELDS.TYPE] === _.word && this.tokens[r + 2] && this.tokens[r + 2][w.FIELDS.TYPE] === _.slash; }, t.namedCombinator = function() { if (this.isNamedCombinator()) { - var r = this.content(this.tokens[this.position + 1]), i = (0, ie.unesc)(r).toLowerCase(), o = {}; + var r = this.content(this.tokens[this.position + 1]), i = (0, te.unesc)(r).toLowerCase(), o = {}; i !== r && (o.value = "/" + r + "/"); - var u = new Gi.default({ value: "/" + i + "/", source: lt(this.currToken[_.FIELDS.START_LINE], this.currToken[_.FIELDS.START_COL], this.tokens[this.position + 2][_.FIELDS.END_LINE], this.tokens[this.position + 2][_.FIELDS.END_COL]), sourceIndex: this.currToken[_.FIELDS.START_POS], raws: o }); + var u = new Ui.default({ value: "/" + i + "/", source: st(this.currToken[w.FIELDS.START_LINE], this.currToken[w.FIELDS.START_COL], this.tokens[this.position + 2][w.FIELDS.END_LINE], this.tokens[this.position + 2][w.FIELDS.END_COL]), sourceIndex: this.currToken[w.FIELDS.START_POS], raws: o }); return this.position = this.position + 3, u; } else this.unexpected(); @@ -13666,7 +13625,7 @@ var Xs = P((hr, Ys) => { if (this.content() === "|") return this.namespace(); var i = this.locateNextMeaningfulToken(this.position); - if (i < 0 || this.tokens[i][_.FIELDS.TYPE] === T.comma) { + if (i < 0 || this.tokens[i][w.FIELDS.TYPE] === _.comma) { var o = this.parseWhitespaceEquivalentTokens(i); if (o.length > 0) { var u = this.current.last; @@ -13674,53 +13633,53 @@ var Xs = P((hr, Ys) => { var s = this.convertWhitespaceNodesToSpace(o), a = s.space, l = s.rawSpace; l !== void 0 && (u.rawSpaceAfter += l), u.spaces.after += a; } else - o.forEach(function(w) { - return r.newNode(w); + o.forEach(function(y) { + return r.newNode(y); }); } return; } - var f = this.currToken, d = void 0; - i > this.position && (d = this.parseWhitespaceEquivalentTokens(i)); - var h; - if (this.isNamedCombinator() ? h = this.namedCombinator() : this.currToken[_.FIELDS.TYPE] === T.combinator ? (h = new Gi.default({ value: this.content(), source: Et(this.currToken), sourceIndex: this.currToken[_.FIELDS.START_POS] }), this.position++) : Yi[this.currToken[_.FIELDS.TYPE]] || d || this.unexpected(), h) { - if (d) { - var m = this.convertWhitespaceNodesToSpace(d), p = m.space, D = m.rawSpace; - h.spaces.before = p, h.rawSpaceBefore = D; + var f = this.currToken, c = void 0; + i > this.position && (c = this.parseWhitespaceEquivalentTokens(i)); + var p; + if (this.isNamedCombinator() ? p = this.namedCombinator() : this.currToken[w.FIELDS.TYPE] === _.combinator ? (p = new Ui.default({ value: this.content(), source: Ft(this.currToken), sourceIndex: this.currToken[w.FIELDS.START_POS] }), this.position++) : Hi[this.currToken[w.FIELDS.TYPE]] || c || this.unexpected(), p) { + if (c) { + var h = this.convertWhitespaceNodesToSpace(c), d = h.space, m = h.rawSpace; + p.spaces.before = d, p.rawSpaceBefore = m; } } else { - var F = this.convertWhitespaceNodesToSpace(d, true), b = F.space, v = F.rawSpace; - v || (v = b); - var E = {}, C = { spaces: {} }; - b.endsWith(" ") && v.endsWith(" ") ? (E.before = b.slice(0, b.length - 1), C.spaces.before = v.slice(0, v.length - 1)) : b.startsWith(" ") && v.startsWith(" ") ? (E.after = b.slice(1), C.spaces.after = v.slice(1)) : C.value = v, h = new Gi.default({ value: " ", source: Hi(f, this.tokens[this.position - 1]), sourceIndex: f[_.FIELDS.START_POS], spaces: E, raws: C }); + var v = this.convertWhitespaceNodesToSpace(c, true), g = v.space, b = v.rawSpace; + b || (b = g); + var x = {}, F = { spaces: {} }; + g.endsWith(" ") && b.endsWith(" ") ? (x.before = g.slice(0, g.length - 1), F.spaces.before = b.slice(0, b.length - 1)) : g.startsWith(" ") && b.startsWith(" ") ? (x.after = g.slice(1), F.spaces.after = b.slice(1)) : F.value = b, p = new Ui.default({ value: " ", source: Gi(f, this.tokens[this.position - 1]), sourceIndex: f[w.FIELDS.START_POS], spaces: x, raws: F }); } - return this.currToken && this.currToken[_.FIELDS.TYPE] === T.space && (h.spaces.after = this.optionalSpace(this.content()), this.position++), this.newNode(h); + return this.currToken && this.currToken[w.FIELDS.TYPE] === _.space && (p.spaces.after = this.optionalSpace(this.content()), this.position++), this.newNode(p); }, t.comma = function() { if (this.position === this.tokens.length - 1) { this.root.trailingComma = true, this.position++; return; } this.current._inferEndPosition(); - var r = new Ui.default({ source: { start: js(this.tokens[this.position + 1]) } }); + var r = new Wi.default({ source: { start: qs(this.tokens[this.position + 1]) } }); this.current.parent.append(r), this.current = r, this.position++; }, t.comment = function() { var r = this.currToken; - this.newNode(new Us.default({ value: this.content(), source: Et(r), sourceIndex: r[_.FIELDS.START_POS] })), this.position++; + this.newNode(new Ns.default({ value: this.content(), source: Ft(r), sourceIndex: r[w.FIELDS.START_POS] })), this.position++; }, t.error = function(r, i) { throw this.root.error(r, i); }, t.missingBackslash = function() { - return this.error("Expected a backslash preceding the semicolon.", { index: this.currToken[_.FIELDS.START_POS] }); + return this.error("Expected a backslash preceding the semicolon.", { index: this.currToken[w.FIELDS.START_POS] }); }, t.missingParenthesis = function() { - return this.expected("opening parenthesis", this.currToken[_.FIELDS.START_POS]); + return this.expected("opening parenthesis", this.currToken[w.FIELDS.START_POS]); }, t.missingSquareBracket = function() { - return this.expected("opening square bracket", this.currToken[_.FIELDS.START_POS]); + return this.expected("opening square bracket", this.currToken[w.FIELDS.START_POS]); }, t.unexpected = function() { - return this.error("Unexpected '" + this.content() + "'. Escaping special characters with \\ may help.", this.currToken[_.FIELDS.START_POS]); + return this.error("Unexpected '" + this.content() + "'. Escaping special characters with \\ may help.", this.currToken[w.FIELDS.START_POS]); }, t.namespace = function() { var r = this.prevToken && this.content(this.prevToken) || true; - if (this.nextToken[_.FIELDS.TYPE] === T.word) + if (this.nextToken[w.FIELDS.TYPE] === _.word) return this.position++, this.word(r); - if (this.nextToken[_.FIELDS.TYPE] === T.asterisk) + if (this.nextToken[w.FIELDS.TYPE] === _.asterisk) return this.position++, this.universal(r); }, t.nesting = function() { if (this.nextToken) { @@ -13731,82 +13690,82 @@ var Xs = P((hr, Ys) => { } } var i = this.currToken; - this.newNode(new Zp.default({ value: this.content(), source: Et(i), sourceIndex: i[_.FIELDS.START_POS] })), this.position++; + this.newNode(new Qp.default({ value: this.content(), source: Ft(i), sourceIndex: i[w.FIELDS.START_POS] })), this.position++; }, t.parentheses = function() { var r = this.current.last, i = 1; - if (this.position++, r && r.type === t0.PSEUDO) { - var o = new Ui.default({ source: { start: js(this.tokens[this.position - 1]) } }), u = this.current; + if (this.position++, r && r.type === Jp.PSEUDO) { + var o = new Wi.default({ source: { start: qs(this.tokens[this.position - 1]) } }), u = this.current; for (r.append(o), this.current = o; this.position < this.tokens.length && i; ) - this.currToken[_.FIELDS.TYPE] === T.openParenthesis && i++, this.currToken[_.FIELDS.TYPE] === T.closeParenthesis && i--, i ? this.parse() : (this.current.source.end = Hs(this.currToken), this.current.parent.source.end = Hs(this.currToken), this.position++); + this.currToken[w.FIELDS.TYPE] === _.openParenthesis && i++, this.currToken[w.FIELDS.TYPE] === _.closeParenthesis && i--, i ? this.parse() : (this.current.source.end = Us(this.currToken), this.current.parent.source.end = Us(this.currToken), this.position++); this.current = u; } else { for (var s = this.currToken, a = "(", l; this.position < this.tokens.length && i; ) - this.currToken[_.FIELDS.TYPE] === T.openParenthesis && i++, this.currToken[_.FIELDS.TYPE] === T.closeParenthesis && i--, l = this.currToken, a += this.parseParenthesisToken(this.currToken), this.position++; - r ? r.appendToPropertyAndEscape("value", a, a) : this.newNode(new zi.default({ value: a, source: lt(s[_.FIELDS.START_LINE], s[_.FIELDS.START_COL], l[_.FIELDS.END_LINE], l[_.FIELDS.END_COL]), sourceIndex: s[_.FIELDS.START_POS] })); + this.currToken[w.FIELDS.TYPE] === _.openParenthesis && i++, this.currToken[w.FIELDS.TYPE] === _.closeParenthesis && i--, l = this.currToken, a += this.parseParenthesisToken(this.currToken), this.position++; + r ? r.appendToPropertyAndEscape("value", a, a) : this.newNode(new qi.default({ value: a, source: st(s[w.FIELDS.START_LINE], s[w.FIELDS.START_COL], l[w.FIELDS.END_LINE], l[w.FIELDS.END_COL]), sourceIndex: s[w.FIELDS.START_POS] })); } if (i) - return this.expected("closing parenthesis", this.currToken[_.FIELDS.START_POS]); + return this.expected("closing parenthesis", this.currToken[w.FIELDS.START_POS]); }, t.pseudo = function() { - for (var r = this, i = "", o = this.currToken; this.currToken && this.currToken[_.FIELDS.TYPE] === T.colon; ) + for (var r = this, i = "", o = this.currToken; this.currToken && this.currToken[w.FIELDS.TYPE] === _.colon; ) i += this.content(), this.position++; if (!this.currToken) return this.expected(["pseudo-class", "pseudo-element"], this.position - 1); - if (this.currToken[_.FIELDS.TYPE] === T.word) + if (this.currToken[w.FIELDS.TYPE] === _.word) this.splitWord(false, function(u, s) { - i += u, r.newNode(new Kp.default({ value: i, source: Hi(o, r.currToken), sourceIndex: o[_.FIELDS.START_POS] })), s > 1 && r.nextToken && r.nextToken[_.FIELDS.TYPE] === T.openParenthesis && r.error("Misplaced parenthesis.", { index: r.nextToken[_.FIELDS.START_POS] }); + i += u, r.newNode(new Yp.default({ value: i, source: Gi(o, r.currToken), sourceIndex: o[w.FIELDS.START_POS] })), s > 1 && r.nextToken && r.nextToken[w.FIELDS.TYPE] === _.openParenthesis && r.error("Misplaced parenthesis.", { index: r.nextToken[w.FIELDS.START_POS] }); }); else - return this.expected(["pseudo-class", "pseudo-element"], this.currToken[_.FIELDS.START_POS]); + return this.expected(["pseudo-class", "pseudo-element"], this.currToken[w.FIELDS.START_POS]); }, t.space = function() { var r = this.content(); - this.position === 0 || this.prevToken[_.FIELDS.TYPE] === T.comma || this.prevToken[_.FIELDS.TYPE] === T.openParenthesis || this.current.nodes.every(function(i) { + this.position === 0 || this.prevToken[w.FIELDS.TYPE] === _.comma || this.prevToken[w.FIELDS.TYPE] === _.openParenthesis || this.current.nodes.every(function(i) { return i.type === "comment"; - }) ? (this.spaces = this.optionalSpace(r), this.position++) : this.position === this.tokens.length - 1 || this.nextToken[_.FIELDS.TYPE] === T.comma || this.nextToken[_.FIELDS.TYPE] === T.closeParenthesis ? (this.current.last.spaces.after = this.optionalSpace(r), this.position++) : this.combinator(); + }) ? (this.spaces = this.optionalSpace(r), this.position++) : this.position === this.tokens.length - 1 || this.nextToken[w.FIELDS.TYPE] === _.comma || this.nextToken[w.FIELDS.TYPE] === _.closeParenthesis ? (this.current.last.spaces.after = this.optionalSpace(r), this.position++) : this.combinator(); }, t.string = function() { var r = this.currToken; - this.newNode(new zi.default({ value: this.content(), source: Et(r), sourceIndex: r[_.FIELDS.START_POS] })), this.position++; + this.newNode(new qi.default({ value: this.content(), source: Ft(r), sourceIndex: r[w.FIELDS.START_POS] })), this.position++; }, t.universal = function(r) { var i = this.nextToken; if (i && this.content(i) === "|") return this.position++, this.namespace(); var o = this.currToken; - this.newNode(new Jp.default({ value: this.content(), source: Et(o), sourceIndex: o[_.FIELDS.START_POS] }), r), this.position++; + this.newNode(new Xp.default({ value: this.content(), source: Ft(o), sourceIndex: o[w.FIELDS.START_POS] }), r), this.position++; }, t.splitWord = function(r, i) { - for (var o = this, u = this.nextToken, s = this.content(); u && ~[T.dollar, T.caret, T.equals, T.word].indexOf(u[_.FIELDS.TYPE]); ) { + for (var o = this, u = this.nextToken, s = this.content(); u && ~[_.dollar, _.caret, _.equals, _.word].indexOf(u[w.FIELDS.TYPE]); ) { this.position++; var a = this.content(); if (s += a, a.lastIndexOf("\\") === a.length - 1) { var l = this.nextToken; - l && l[_.FIELDS.TYPE] === T.space && (s += this.requiredSpace(this.content(l)), this.position++); + l && l[w.FIELDS.TYPE] === _.space && (s += this.requiredSpace(this.content(l)), this.position++); } u = this.nextToken; } - var f = Vi(s, ".").filter(function(p) { - var D = s[p - 1] === "\\", F = /^\d+\.\d+%$/.test(s); - return !D && !F; - }), d = Vi(s, "#").filter(function(p) { - return s[p - 1] !== "\\"; - }), h = Vi(s, "#{"); - h.length && (d = d.filter(function(p) { - return !~h.indexOf(p); + var f = ji(s, ".").filter(function(d) { + var m = s[d - 1] === "\\", v = /^\d+\.\d+%$/.test(s); + return !m && !v; + }), c = ji(s, "#").filter(function(d) { + return s[d - 1] !== "\\"; + }), p = ji(s, "#{"); + p.length && (c = c.filter(function(d) { + return !~p.indexOf(d); })); - var m = (0, e0.default)(i0([0].concat(f, d))); - m.forEach(function(p, D) { - var F = m[D + 1] || s.length, b = s.slice(p, F); - if (D === 0 && i) - return i.call(o, b, m.length); - var v, E = o.currToken, C = E[_.FIELDS.START_POS] + m[D], w = lt(E[1], E[2] + p, E[3], E[2] + (F - 1)); - if (~f.indexOf(p)) { - var O = { value: b.slice(1), source: w, sourceIndex: C }; - v = new Yp.default(Ct(O, "value")); - } else if (~d.indexOf(p)) { - var R = { value: b.slice(1), source: w, sourceIndex: C }; - v = new Xp.default(Ct(R, "value")); + var h = (0, Kp.default)(t0([0].concat(f, c))); + h.forEach(function(d, m) { + var v = h[m + 1] || s.length, g = s.slice(d, v); + if (m === 0 && i) + return i.call(o, g, h.length); + var b, x = o.currToken, F = x[w.FIELDS.START_POS] + h[m], y = st(x[1], x[2] + d, x[3], x[2] + (v - 1)); + if (~f.indexOf(d)) { + var k = { value: g.slice(1), source: y, sourceIndex: F }; + b = new jp.default(wt(k, "value")); + } else if (~c.indexOf(d)) { + var P = { value: g.slice(1), source: y, sourceIndex: F }; + b = new Hp.default(wt(P, "value")); } else { - var L = { value: b, source: w, sourceIndex: C }; - Ct(L, "value"), v = new Qp.default(L); + var B = { value: g, source: y, sourceIndex: F }; + wt(B, "value"), b = new Vp.default(B); } - o.newNode(v, r), r = null; + o.newNode(b, r), r = null; }), this.position++; }, t.word = function(r) { var i = this.nextToken; @@ -13816,50 +13775,50 @@ var Xs = P((hr, Ys) => { this.parse(true); return this.current._inferEndPosition(), this.root; }, t.parse = function(r) { - switch (this.currToken[_.FIELDS.TYPE]) { - case T.space: + switch (this.currToken[w.FIELDS.TYPE]) { + case _.space: this.space(); break; - case T.comment: + case _.comment: this.comment(); break; - case T.openParenthesis: + case _.openParenthesis: this.parentheses(); break; - case T.closeParenthesis: + case _.closeParenthesis: r && this.missingParenthesis(); break; - case T.openSquare: + case _.openSquare: this.attribute(); break; - case T.dollar: - case T.caret: - case T.equals: - case T.word: + case _.dollar: + case _.caret: + case _.equals: + case _.word: this.word(); break; - case T.colon: + case _.colon: this.pseudo(); break; - case T.comma: + case _.comma: this.comma(); break; - case T.asterisk: + case _.asterisk: this.universal(); break; - case T.ampersand: + case _.ampersand: this.nesting(); break; - case T.slash: - case T.combinator: + case _.slash: + case _.combinator: this.combinator(); break; - case T.str: + case _.str: this.string(); break; - case T.closeSquare: + case _.closeSquare: this.missingSquareBracket(); - case T.semicolon: + case _.semicolon: this.missingBackslash(); default: this.unexpected(); @@ -13879,21 +13838,21 @@ var Xs = P((hr, Ys) => { return this.options.lossy ? i ? " " : "" : r; }, t.parseParenthesisToken = function(r) { var i = this.content(r); - return r[_.FIELDS.TYPE] === T.space ? this.requiredSpace(i) : i; + return r[w.FIELDS.TYPE] === _.space ? this.requiredSpace(i) : i; }, t.newNode = function(r, i) { - return i && (/^ +$/.test(i) && (this.options.lossy || (this.spaces = (this.spaces || "") + i), i = true), r.namespace = i, Ct(r, "namespace")), this.spaces && (r.spaces.before = this.spaces, this.spaces = ""), this.current.append(r); + return i && (/^ +$/.test(i) && (this.options.lossy || (this.spaces = (this.spaces || "") + i), i = true), r.namespace = i, wt(r, "namespace")), this.spaces && (r.spaces.before = this.spaces, this.spaces = ""), this.current.append(r); }, t.content = function(r) { - return r === void 0 && (r = this.currToken), this.css.slice(r[_.FIELDS.START_POS], r[_.FIELDS.END_POS]); + return r === void 0 && (r = this.currToken), this.css.slice(r[w.FIELDS.START_POS], r[w.FIELDS.END_POS]); }, t.locateNextMeaningfulToken = function(r) { r === void 0 && (r = this.position + 1); for (var i = r; i < this.tokens.length; ) - if (n0[this.tokens[i][_.FIELDS.TYPE]]) { + if (e0[this.tokens[i][w.FIELDS.TYPE]]) { i++; continue; } else return i; return -1; - }, r0(e, [{ key: "currToken", get: function() { + }, Zp(e, [{ key: "currToken", get: function() { return this.tokens[this.position]; } }, { key: "nextToken", get: function() { return this.tokens[this.position + 1]; @@ -13901,19 +13860,18 @@ var Xs = P((hr, Ys) => { return this.tokens[this.position - 1]; } }]), e; }(); - hr.default = o0; - Ys.exports = hr.default; + pr.default = r0; + Gs.exports = pr.default; }); -var Ks = P((mr, Qs) => { +var Vs = T((hr, Hs) => { "use strict"; - c(); - mr.__esModule = true; - mr.default = void 0; - var u0 = s0(Xs()); - function s0(e) { + hr.__esModule = true; + hr.default = void 0; + var n0 = i0(js()); + function i0(e) { return e && e.__esModule ? e : { default: e }; } - var a0 = function() { + var o0 = function() { function e(n, r) { this.func = n || function() { }, this.funcRes = null, this.options = r; @@ -13929,7 +13887,7 @@ var Ks = P((mr, Qs) => { return i.lossless === false; }, t._root = function(r, i) { i === void 0 && (i = {}); - var o = new u0.default(r, this._parseOptions(i)); + var o = new n0.default(r, this._parseOptions(i)); return o.root; }, t._parseOptions = function(r) { return { lossy: this._isLossy(r) }; @@ -13975,158 +13933,154 @@ var Ks = P((mr, Qs) => { return o.string || o.root.toString(); }, e; }(); - mr.default = a0; - Qs.exports = mr.default; + hr.default = o0; + Hs.exports = hr.default; }); -var Js = P((te) => { +var Ys = T((J) => { "use strict"; - c(); - te.__esModule = true; - te.universal = te.tag = te.string = te.selector = te.root = te.pseudo = te.nesting = te.id = te.comment = te.combinator = te.className = te.attribute = void 0; - var l0 = Ae(Ii()), f0 = Ae(Di()), c0 = Ae(Mi()), d0 = Ae(bi()), p0 = Ae(yi()), h0 = Ae($i()), m0 = Ae(Si()), D0 = Ae(ci()), g0 = Ae(pi()), b0 = Ae(Ci()), v0 = Ae(wi()), y0 = Ae(Ri()); - function Ae(e) { + J.__esModule = true; + J.universal = J.tag = J.string = J.selector = J.root = J.pseudo = J.nesting = J.id = J.comment = J.combinator = J.className = J.attribute = void 0; + var u0 = Se(Oi()), s0 = Se(hi()), a0 = Se(Ri()), l0 = Se(Di()), f0 = Se(bi()), c0 = Se(Mi()), d0 = Se(Ci()), p0 = Se(li()), h0 = Se(ci()), m0 = Se(wi()), D0 = Se(xi()), g0 = Se(Bi()); + function Se(e) { return e && e.__esModule ? e : { default: e }; } + var b0 = function(t) { + return new u0.default(t); + }; + J.attribute = b0; + var v0 = function(t) { + return new s0.default(t); + }; + J.className = v0; + var y0 = function(t) { + return new a0.default(t); + }; + J.combinator = y0; var x0 = function(t) { return new l0.default(t); }; - te.attribute = x0; + J.comment = x0; var F0 = function(t) { return new f0.default(t); }; - te.className = F0; + J.id = F0; var w0 = function(t) { return new c0.default(t); }; - te.combinator = w0; + J.nesting = w0; var E0 = function(t) { return new d0.default(t); }; - te.comment = E0; + J.pseudo = E0; var C0 = function(t) { return new p0.default(t); }; - te.id = C0; + J.root = C0; var _0 = function(t) { return new h0.default(t); }; - te.nesting = _0; + J.selector = _0; var S0 = function(t) { return new m0.default(t); }; - te.pseudo = S0; + J.string = S0; var k0 = function(t) { return new D0.default(t); }; - te.root = k0; + J.tag = k0; var T0 = function(t) { return new g0.default(t); }; - te.selector = T0; - var A0 = function(t) { - return new b0.default(t); - }; - te.string = A0; - var O0 = function(t) { - return new v0.default(t); - }; - te.tag = O0; - var P0 = function(t) { - return new y0.default(t); - }; - te.universal = P0; + J.universal = T0; }); -var ra = P((j) => { +var Js = T((z) => { "use strict"; - c(); - j.__esModule = true; - j.isNode = Xi; - j.isPseudoElement = ta; - j.isPseudoClass = z0; - j.isContainer = G0; - j.isNamespace = j0; - j.isUniversal = j.isTag = j.isString = j.isSelector = j.isRoot = j.isPseudo = j.isNesting = j.isIdentifier = j.isComment = j.isCombinator = j.isClassName = j.isAttribute = void 0; - var oe = ge(), we, I0 = (we = {}, we[oe.ATTRIBUTE] = true, we[oe.CLASS] = true, we[oe.COMBINATOR] = true, we[oe.COMMENT] = true, we[oe.ID] = true, we[oe.NESTING] = true, we[oe.PSEUDO] = true, we[oe.ROOT] = true, we[oe.SELECTOR] = true, we[oe.STRING] = true, we[oe.TAG] = true, we[oe.UNIVERSAL] = true, we); - function Xi(e) { - return typeof e == "object" && I0[e.type]; - } - function Oe(e, t) { - return Xi(t) && t.type === e; - } - var Zs = Oe.bind(null, oe.ATTRIBUTE); - j.isAttribute = Zs; - var B0 = Oe.bind(null, oe.CLASS); - j.isClassName = B0; - var R0 = Oe.bind(null, oe.COMBINATOR); - j.isCombinator = R0; - var L0 = Oe.bind(null, oe.COMMENT); - j.isComment = L0; - var M0 = Oe.bind(null, oe.ID); - j.isIdentifier = M0; - var N0 = Oe.bind(null, oe.NESTING); - j.isNesting = N0; - var Qi = Oe.bind(null, oe.PSEUDO); - j.isPseudo = Qi; - var $0 = Oe.bind(null, oe.ROOT); - j.isRoot = $0; - var W0 = Oe.bind(null, oe.SELECTOR); - j.isSelector = W0; - var q0 = Oe.bind(null, oe.STRING); - j.isString = q0; - var ea = Oe.bind(null, oe.TAG); - j.isTag = ea; - var U0 = Oe.bind(null, oe.UNIVERSAL); - j.isUniversal = U0; - function ta(e) { - return Qi(e) && e.value && (e.value.startsWith("::") || e.value.toLowerCase() === ":before" || e.value.toLowerCase() === ":after" || e.value.toLowerCase() === ":first-letter" || e.value.toLowerCase() === ":first-line"); - } - function z0(e) { - return Qi(e) && !ta(e); - } - function G0(e) { - return !!(Xi(e) && e.walk); - } - function j0(e) { - return Zs(e) || ea(e); + z.__esModule = true; + z.isNode = Vi; + z.isPseudoElement = Ks; + z.isPseudoClass = W0; + z.isContainer = q0; + z.isNamespace = U0; + z.isUniversal = z.isTag = z.isString = z.isSelector = z.isRoot = z.isPseudo = z.isNesting = z.isIdentifier = z.isComment = z.isCombinator = z.isClassName = z.isAttribute = void 0; + var re = pe(), ye, A0 = (ye = {}, ye[re.ATTRIBUTE] = true, ye[re.CLASS] = true, ye[re.COMBINATOR] = true, ye[re.COMMENT] = true, ye[re.ID] = true, ye[re.NESTING] = true, ye[re.PSEUDO] = true, ye[re.ROOT] = true, ye[re.SELECTOR] = true, ye[re.STRING] = true, ye[re.TAG] = true, ye[re.UNIVERSAL] = true, ye); + function Vi(e) { + return typeof e == "object" && A0[e.type]; + } + function ke(e, t) { + return Vi(t) && t.type === e; + } + var Xs = ke.bind(null, re.ATTRIBUTE); + z.isAttribute = Xs; + var O0 = ke.bind(null, re.CLASS); + z.isClassName = O0; + var P0 = ke.bind(null, re.COMBINATOR); + z.isCombinator = P0; + var B0 = ke.bind(null, re.COMMENT); + z.isComment = B0; + var I0 = ke.bind(null, re.ID); + z.isIdentifier = I0; + var R0 = ke.bind(null, re.NESTING); + z.isNesting = R0; + var Yi = ke.bind(null, re.PSEUDO); + z.isPseudo = Yi; + var L0 = ke.bind(null, re.ROOT); + z.isRoot = L0; + var M0 = ke.bind(null, re.SELECTOR); + z.isSelector = M0; + var N0 = ke.bind(null, re.STRING); + z.isString = N0; + var Qs = ke.bind(null, re.TAG); + z.isTag = Qs; + var $0 = ke.bind(null, re.UNIVERSAL); + z.isUniversal = $0; + function Ks(e) { + return Yi(e) && e.value && (e.value.startsWith("::") || e.value.toLowerCase() === ":before" || e.value.toLowerCase() === ":after" || e.value.toLowerCase() === ":first-letter" || e.value.toLowerCase() === ":first-line"); + } + function W0(e) { + return Yi(e) && !Ks(e); + } + function q0(e) { + return !!(Vi(e) && e.walk); + } + function U0(e) { + return Xs(e) || Qs(e); } }); -var na = P((Me) => { +var Zs = T((Pe) => { "use strict"; - c(); - Me.__esModule = true; - var Ki = ge(); - Object.keys(Ki).forEach(function(e) { - e === "default" || e === "__esModule" || e in Me && Me[e] === Ki[e] || (Me[e] = Ki[e]); + Pe.__esModule = true; + var Xi = pe(); + Object.keys(Xi).forEach(function(e) { + e === "default" || e === "__esModule" || e in Pe && Pe[e] === Xi[e] || (Pe[e] = Xi[e]); }); - var Ji = Js(); - Object.keys(Ji).forEach(function(e) { - e === "default" || e === "__esModule" || e in Me && Me[e] === Ji[e] || (Me[e] = Ji[e]); + var Qi = Ys(); + Object.keys(Qi).forEach(function(e) { + e === "default" || e === "__esModule" || e in Pe && Pe[e] === Qi[e] || (Pe[e] = Qi[e]); }); - var Zi = ra(); - Object.keys(Zi).forEach(function(e) { - e === "default" || e === "__esModule" || e in Me && Me[e] === Zi[e] || (Me[e] = Zi[e]); + var Ki = Js(); + Object.keys(Ki).forEach(function(e) { + e === "default" || e === "__esModule" || e in Pe && Pe[e] === Ki[e] || (Pe[e] = Ki[e]); }); }); -var ua = P((Dr, oa) => { +var ra = T((mr, ta) => { "use strict"; - c(); - Dr.__esModule = true; - Dr.default = void 0; - var H0 = X0(Ks()), V0 = Y0(na()); - function ia() { + mr.__esModule = true; + mr.default = void 0; + var z0 = H0(Vs()), G0 = j0(Zs()); + function ea() { if (typeof WeakMap != "function") return null; var e = /* @__PURE__ */ new WeakMap(); - return ia = function() { + return ea = function() { return e; }, e; } - function Y0(e) { + function j0(e) { if (e && e.__esModule) return e; if (e === null || typeof e != "object" && typeof e != "function") return { default: e }; - var t = ia(); + var t = ea(); if (t && t.has(e)) return t.get(e); var n = {}, r = Object.defineProperty && Object.getOwnPropertyDescriptor; @@ -14137,148 +14091,142 @@ var ua = P((Dr, oa) => { } return n.default = e, t && t.set(e, n), n; } - function X0(e) { + function H0(e) { return e && e.__esModule ? e : { default: e }; } - var eo = function(t) { - return new H0.default(t); + var Ji = function(t) { + return new z0.default(t); }; - Object.assign(eo, V0); - delete eo.__esModule; - var Q0 = eo; - Dr.default = Q0; - oa.exports = Dr.default; + Object.assign(Ji, G0); + delete Ji.__esModule; + var V0 = Ji; + mr.default = V0; + ta.exports = mr.default; }); -var sa = P((to) => { +var na = T((Zi) => { "use strict"; - c(); - Object.defineProperty(to, "__esModule", { value: true }); - Object.defineProperty(to, "default", { enumerable: true, get: () => K0 }); - function K0(e) { + Object.defineProperty(Zi, "__esModule", { value: true }); + Object.defineProperty(Zi, "default", { enumerable: true, get: () => Y0 }); + function Y0(e) { return e.replace(/\\,/g, "\\2c "); } }); -var la = P((vb, aa) => { +var oa = T((mb, ia) => { "use strict"; - c(); - aa.exports = { 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] }; + ia.exports = { 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] }; }); -var no = P((ro) => { +var to = T((eo) => { "use strict"; - c(); - Object.defineProperty(ro, "__esModule", { value: true }); - function J0(e, t) { + Object.defineProperty(eo, "__esModule", { value: true }); + function X0(e, t) { for (var n in t) Object.defineProperty(e, n, { enumerable: true, get: t[n] }); } - J0(ro, { parseColor: () => ih, formatColor: () => oh }); - var fa = Z0(la()); - function Z0(e) { + X0(eo, { parseColor: () => th, formatColor: () => rh }); + var ua = Q0(oa()); + function Q0(e) { return e && e.__esModule ? e : { default: e }; } - var eh = /^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i, th = /^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i, et2 = /(?:\d+|\d*\.\d+)%?/, pn = /(?:\s*,\s*|\s+)/, ca = /\s*[,/]\s*/, tt = /var\(--(?:[^ )]*?)\)/, rh = new RegExp(`^(rgb)a?\\(\\s*(${et2.source}|${tt.source})(?:${pn.source}(${et2.source}|${tt.source}))?(?:${pn.source}(${et2.source}|${tt.source}))?(?:${ca.source}(${et2.source}|${tt.source}))?\\s*\\)$`), nh = new RegExp(`^(hsl)a?\\(\\s*((?:${et2.source})(?:deg|rad|grad|turn)?|${tt.source})(?:${pn.source}(${et2.source}|${tt.source}))?(?:${pn.source}(${et2.source}|${tt.source}))?(?:${ca.source}(${et2.source}|${tt.source}))?\\s*\\)$`); - function ih(e, { loose: t = false } = {}) { + var K0 = /^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i, J0 = /^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i, Ke = /(?:\d+|\d*\.\d+)%?/, fn = /(?:\s*,\s*|\s+)/, sa = /\s*[,/]\s*/, Je = /var\(--(?:[^ )]*?)\)/, Z0 = new RegExp(`^(rgb)a?\\(\\s*(${Ke.source}|${Je.source})(?:${fn.source}(${Ke.source}|${Je.source}))?(?:${fn.source}(${Ke.source}|${Je.source}))?(?:${sa.source}(${Ke.source}|${Je.source}))?\\s*\\)$`), eh = new RegExp(`^(hsl)a?\\(\\s*((?:${Ke.source})(?:deg|rad|grad|turn)?|${Je.source})(?:${fn.source}(${Ke.source}|${Je.source}))?(?:${fn.source}(${Ke.source}|${Je.source}))?(?:${sa.source}(${Ke.source}|${Je.source}))?\\s*\\)$`); + function th(e, { loose: t = false } = {}) { var n, r; if (typeof e != "string") return null; if (e = e.trim(), e === "transparent") return { mode: "rgb", color: ["0", "0", "0"], alpha: "0" }; - if (e in fa.default) - return { mode: "rgb", color: fa.default[e].map((a) => a.toString()) }; - let i = e.replace(th, (a, l, f, d, h) => ["#", l, l, f, f, d, d, h ? h + h : ""].join("")).match(eh); + if (e in ua.default) + return { mode: "rgb", color: ua.default[e].map((a) => a.toString()) }; + let i = e.replace(J0, (a, l, f, c, p) => ["#", l, l, f, f, c, c, p ? p + p : ""].join("")).match(K0); if (i !== null) return { mode: "rgb", color: [parseInt(i[1], 16), parseInt(i[2], 16), parseInt(i[3], 16)].map((a) => a.toString()), alpha: i[4] ? (parseInt(i[4], 16) / 255).toString() : void 0 }; var o; - let u = (o = e.match(rh)) !== null && o !== void 0 ? o : e.match(nh); + let u = (o = e.match(Z0)) !== null && o !== void 0 ? o : e.match(eh); if (u === null) return null; let s = [u[2], u[3], u[4]].filter(Boolean).map((a) => a.toString()); return !t && s.length !== 3 || s.length < 3 && !s.some((a) => /^var\(.*?\)$/.test(a)) ? null : { mode: u[1], color: s, alpha: (n = u[5]) === null || n === void 0 || (r = n.toString) === null || r === void 0 ? void 0 : r.call(n) }; } - function oh({ mode: e, color: t, alpha: n }) { + function rh({ mode: e, color: t, alpha: n }) { let r = n !== void 0; return `${e}(${t.join(" ")}${r ? ` / ${n}` : ""})`; } }); -var oo = P((io) => { +var no = T((ro) => { "use strict"; - c(); - Object.defineProperty(io, "__esModule", { value: true }); - function uh(e, t) { + Object.defineProperty(ro, "__esModule", { value: true }); + function nh(e, t) { for (var n in t) Object.defineProperty(e, n, { enumerable: true, get: t[n] }); } - uh(io, { withAlphaValue: () => sh, default: () => ah }); - var hn = no(); - function sh(e, t, n) { + nh(ro, { withAlphaValue: () => ih, default: () => oh }); + var cn = to(); + function ih(e, t, n) { if (typeof e == "function") return e({ opacityValue: t }); - let r = (0, hn.parseColor)(e, { loose: true }); - return r === null ? n : (0, hn.formatColor)({ ...r, alpha: t }); + let r = (0, cn.parseColor)(e, { loose: true }); + return r === null ? n : (0, cn.formatColor)({ ...r, alpha: t }); } - function ah({ color: e, property: t, variable: n }) { + function oh({ color: e, property: t, variable: n }) { let r = [].concat(t); if (typeof e == "function") return { [n]: "1", ...Object.fromEntries(r.map((o) => [o, e({ opacityVariable: n, opacityValue: `var(${n})` })])) }; - let i = (0, hn.parseColor)(e); - return i === null ? Object.fromEntries(r.map((o) => [o, e])) : i.alpha !== void 0 ? Object.fromEntries(r.map((o) => [o, e])) : { [n]: "1", ...Object.fromEntries(r.map((o) => [o, (0, hn.formatColor)({ ...i, alpha: `var(${n})` })])) }; + let i = (0, cn.parseColor)(e); + return i === null ? Object.fromEntries(r.map((o) => [o, e])) : i.alpha !== void 0 ? Object.fromEntries(r.map((o) => [o, e])) : { [n]: "1", ...Object.fromEntries(r.map((o) => [o, (0, cn.formatColor)({ ...i, alpha: `var(${n})` })])) }; } }); -var Da = P((uo) => { +var da = T((io) => { "use strict"; - c(); - Object.defineProperty(uo, "__esModule", { value: true }); - function lh(e, t) { + Object.defineProperty(io, "__esModule", { value: true }); + function uh(e, t) { for (var n in t) Object.defineProperty(e, n, { enumerable: true, get: t[n] }); } - lh(uo, { pattern: () => ch, withoutCapturing: () => pa, any: () => ha, optional: () => dh, zeroOrMore: () => ph, nestedBrackets: () => ma, escape: () => ft }); - var da = /[\\^$.*+?()[\]{}|]/g, fh = RegExp(da.source); - function gr(e) { + uh(io, { pattern: () => ah, withoutCapturing: () => la, any: () => fa, optional: () => lh, zeroOrMore: () => fh, nestedBrackets: () => ca, escape: () => at }); + var aa = /[\\^$.*+?()[\]{}|]/g, sh = RegExp(aa.source); + function Dr(e) { return e = Array.isArray(e) ? e : [e], e = e.map((t) => t instanceof RegExp ? t.source : t), e.join(""); } - function ch(e) { - return new RegExp(gr(e), "g"); + function ah(e) { + return new RegExp(Dr(e), "g"); } - function pa(e) { - return new RegExp(`(?:${gr(e)})`, "g"); + function la(e) { + return new RegExp(`(?:${Dr(e)})`, "g"); } - function ha(e) { - return `(?:${e.map(gr).join("|")})`; + function fa(e) { + return `(?:${e.map(Dr).join("|")})`; } - function dh(e) { - return `(?:${gr(e)})?`; + function lh(e) { + return `(?:${Dr(e)})?`; } - function ph(e) { - return `(?:${gr(e)})*`; + function fh(e) { + return `(?:${Dr(e)})*`; } - function ma(e, t, n = 1) { - return pa([ft(e), /[^\s]*/, n === 1 ? `[^${ft(e)}${ft(t)}s]*` : ha([`[^${ft(e)}${ft(t)}s]*`, ma(e, t, n - 1)]), /[^\s]*/, ft(t)]); + function ca(e, t, n = 1) { + return la([at(e), /[^\s]*/, n === 1 ? `[^${at(e)}${at(t)}s]*` : fa([`[^${at(e)}${at(t)}s]*`, ca(e, t, n - 1)]), /[^\s]*/, at(t)]); } - function ft(e) { - return e && fh.test(e) ? e.replace(da, "\\$&") : e || ""; + function at(e) { + return e && sh.test(e) ? e.replace(aa, "\\$&") : e || ""; } }); -var ba = P((so) => { +var ha = T((oo) => { "use strict"; - c(); - Object.defineProperty(so, "__esModule", { value: true }); - Object.defineProperty(so, "splitAtTopLevelOnly", { enumerable: true, get: () => Dh }); - var hh = mh(Da()); - function ga(e) { + Object.defineProperty(oo, "__esModule", { value: true }); + Object.defineProperty(oo, "splitAtTopLevelOnly", { enumerable: true, get: () => ph }); + var ch = dh(da()); + function pa(e) { if (typeof WeakMap != "function") return null; var t = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap(); - return (ga = function(r) { + return (pa = function(r) { return r ? n : t; })(e); } - function mh(e, t) { + function dh(e, t) { if (!t && e && e.__esModule) return e; if (e === null || typeof e != "object" && typeof e != "function") return { default: e }; - var n = ga(t); + var n = pa(t); if (n && n.has(e)) return n.get(e); var r = {}, i = Object.defineProperty && Object.getOwnPropertyDescriptor; @@ -14289,302 +14237,297 @@ var ba = P((so) => { } return r.default = e, n && n.set(e, r), r; } - function* Dh(e, t) { - let n = new RegExp(`[(){}\\[\\]${hh.escape(t)}]`, "g"), r = 0, i = 0, o = false, u = 0, s = 0, a = t.length; + function* ph(e, t) { + let n = new RegExp(`[(){}\\[\\]${ch.escape(t)}]`, "g"), r = 0, i = 0, o = false, u = 0, s = 0, a = t.length; for (let l of e.matchAll(n)) { - let f = l[0] === t[u], d = u === a - 1, h = f && d; - l[0] === "(" && r++, l[0] === ")" && r--, l[0] === "[" && r++, l[0] === "]" && r--, l[0] === "{" && r++, l[0] === "}" && r--, f && r === 0 && (s === 0 && (s = l.index), u++), h && r === 0 && (o = true, yield e.substring(i, s), i = s + a), u === a && (u = 0, s = 0); + let f = l[0] === t[u], c = u === a - 1, p = f && c; + l[0] === "(" && r++, l[0] === ")" && r--, l[0] === "[" && r++, l[0] === "]" && r--, l[0] === "{" && r++, l[0] === "}" && r--, f && r === 0 && (s === 0 && (s = l.index), u++), p && r === 0 && (o = true, yield e.substring(i, s), i = s + a), u === a && (u = 0, s = 0); } o ? yield e.substring(i) : yield e; } }); -var ya = P((ao) => { +var Da = T((uo) => { "use strict"; - c(); - Object.defineProperty(ao, "__esModule", { value: true }); - function gh(e, t) { + Object.defineProperty(uo, "__esModule", { value: true }); + function hh(e, t) { for (var n in t) Object.defineProperty(e, n, { enumerable: true, get: t[n] }); } - gh(ao, { parseBoxShadowValue: () => xh, formatBoxShadowValue: () => Fh }); - var bh = ba(), vh = /* @__PURE__ */ new Set(["inset", "inherit", "initial", "revert", "unset"]), yh = /\ +(?![^(]*\))/g, va = /^-?(\d+|\.\d+)(.*?)$/g; - function xh(e) { - return Array.from((0, bh.splitAtTopLevelOnly)(e, ",")).map((n) => { - let r = n.trim(), i = { raw: r }, o = r.split(yh), u = /* @__PURE__ */ new Set(); + hh(uo, { parseBoxShadowValue: () => bh, formatBoxShadowValue: () => vh }); + var mh = ha(), Dh = /* @__PURE__ */ new Set(["inset", "inherit", "initial", "revert", "unset"]), gh = /\ +(?![^(]*\))/g, ma = /^-?(\d+|\.\d+)(.*?)$/g; + function bh(e) { + return Array.from((0, mh.splitAtTopLevelOnly)(e, ",")).map((n) => { + let r = n.trim(), i = { raw: r }, o = r.split(gh), u = /* @__PURE__ */ new Set(); for (let s of o) - va.lastIndex = 0, !u.has("KEYWORD") && vh.has(s) ? (i.keyword = s, u.add("KEYWORD")) : va.test(s) ? u.has("X") ? u.has("Y") ? u.has("BLUR") ? u.has("SPREAD") || (i.spread = s, u.add("SPREAD")) : (i.blur = s, u.add("BLUR")) : (i.y = s, u.add("Y")) : (i.x = s, u.add("X")) : i.color ? (i.unknown || (i.unknown = []), i.unknown.push(s)) : i.color = s; + ma.lastIndex = 0, !u.has("KEYWORD") && Dh.has(s) ? (i.keyword = s, u.add("KEYWORD")) : ma.test(s) ? u.has("X") ? u.has("Y") ? u.has("BLUR") ? u.has("SPREAD") || (i.spread = s, u.add("SPREAD")) : (i.blur = s, u.add("BLUR")) : (i.y = s, u.add("Y")) : (i.x = s, u.add("X")) : i.color ? (i.unknown || (i.unknown = []), i.unknown.push(s)) : i.color = s; return i.valid = i.x !== void 0 && i.y !== void 0, i; }); } - function Fh(e) { + function vh(e) { return e.map((t) => t.valid ? [t.keyword, t.x, t.y, t.blur, t.spread, t.color].filter(Boolean).join(" ") : t.raw).join(", "); } }); -var Sa = P((fo) => { +var wa = T((ao) => { "use strict"; - c(); - Object.defineProperty(fo, "__esModule", { value: true }); - function wh(e, t) { + Object.defineProperty(ao, "__esModule", { value: true }); + function yh(e, t) { for (var n in t) Object.defineProperty(e, n, { enumerable: true, get: t[n] }); } - wh(fo, { normalize: () => rt, url: () => wa, number: () => _h, percentage: () => Ea, length: () => Ca, lineWidth: () => Th, shadow: () => Ah, color: () => Oh, image: () => Ph, gradient: () => _a2, position: () => Rh, familyName: () => Lh, genericName: () => Nh, absoluteSize: () => Wh, relativeSize: () => Uh }); - var Eh = no(), Ch = ya(), lo = ["min", "max", "clamp", "calc"], Fa = /,(?![^(]*\))/g, mn = /_(?![^(]*\))/g; - function rt(e, t = true) { - return e.includes("url(") ? e.split(/(url\(.*?\))/g).filter(Boolean).map((n) => /^url\(.*?\)$/.test(n) ? n : rt(n, false)).join("") : (e = e.replace(/([^\\])_+/g, (n, r) => r + " ".repeat(n.length - 1)).replace(/^_/g, " ").replace(/\\_/g, "_"), t && (e = e.trim()), e = e.replace(/(calc|min|max|clamp)\(.+\)/g, (n) => n.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g, "$1 $2 ")), e); + yh(ao, { normalize: () => Ze, url: () => va, number: () => wh, percentage: () => ya, length: () => xa, lineWidth: () => _h, shadow: () => Sh, color: () => kh, image: () => Th, gradient: () => Fa, position: () => Ph, familyName: () => Bh, genericName: () => Rh, absoluteSize: () => Mh, relativeSize: () => $h }); + var xh = to(), Fh = Da(), so = ["min", "max", "clamp", "calc"], ba = /,(?![^(]*\))/g, dn = /_(?![^(]*\))/g; + function Ze(e, t = true) { + return e.includes("url(") ? e.split(/(url\(.*?\))/g).filter(Boolean).map((n) => /^url\(.*?\)$/.test(n) ? n : Ze(n, false)).join("") : (e = e.replace(/([^\\])_+/g, (n, r) => r + " ".repeat(n.length - 1)).replace(/^_/g, " ").replace(/\\_/g, "_"), t && (e = e.trim()), e = e.replace(/(calc|min|max|clamp)\(.+\)/g, (n) => n.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g, "$1 $2 ")), e); } - function wa(e) { + function va(e) { return e.startsWith("url("); } - function _h(e) { - return !isNaN(Number(e)) || lo.some((t) => new RegExp(`^${t}\\(.+?`).test(e)); + function wh(e) { + return !isNaN(Number(e)) || so.some((t) => new RegExp(`^${t}\\(.+?`).test(e)); } - function Ea(e) { - return e.split(mn).every((t) => /%$/g.test(t) || lo.some((n) => new RegExp(`^${n}\\(.+?%`).test(t))); + function ya(e) { + return e.split(dn).every((t) => /%$/g.test(t) || so.some((n) => new RegExp(`^${n}\\(.+?%`).test(t))); } - var Sh = ["cm", "mm", "Q", "in", "pc", "pt", "px", "em", "ex", "ch", "rem", "lh", "vw", "vh", "vmin", "vmax"], xa = `(?:${Sh.join("|")})`; - function Ca(e) { - return e.split(mn).every((t) => t === "0" || new RegExp(`${xa}$`).test(t) || lo.some((n) => new RegExp(`^${n}\\(.+?${xa}`).test(t))); + var Eh = ["cm", "mm", "Q", "in", "pc", "pt", "px", "em", "ex", "ch", "rem", "lh", "vw", "vh", "vmin", "vmax"], ga = `(?:${Eh.join("|")})`; + function xa(e) { + return e.split(dn).every((t) => t === "0" || new RegExp(`${ga}$`).test(t) || so.some((n) => new RegExp(`^${n}\\(.+?${ga}`).test(t))); } - var kh = /* @__PURE__ */ new Set(["thin", "medium", "thick"]); - function Th(e) { - return kh.has(e); + var Ch = /* @__PURE__ */ new Set(["thin", "medium", "thick"]); + function _h(e) { + return Ch.has(e); } - function Ah(e) { - let t = (0, Ch.parseBoxShadowValue)(rt(e)); + function Sh(e) { + let t = (0, Fh.parseBoxShadowValue)(Ze(e)); for (let n of t) if (!n.valid) return false; return true; } - function Oh(e) { + function kh(e) { let t = 0; - return e.split(mn).every((r) => (r = rt(r), r.startsWith("var(") ? true : (0, Eh.parseColor)(r, { loose: true }) !== null ? (t++, true) : false)) ? t > 0 : false; + return e.split(dn).every((r) => (r = Ze(r), r.startsWith("var(") ? true : (0, xh.parseColor)(r, { loose: true }) !== null ? (t++, true) : false)) ? t > 0 : false; } - function Ph(e) { + function Th(e) { let t = 0; - return e.split(Fa).every((r) => (r = rt(r), r.startsWith("var(") ? true : wa(r) || _a2(r) || ["element(", "image(", "cross-fade(", "image-set("].some((i) => r.startsWith(i)) ? (t++, true) : false)) ? t > 0 : false; + return e.split(ba).every((r) => (r = Ze(r), r.startsWith("var(") ? true : va(r) || Fa(r) || ["element(", "image(", "cross-fade(", "image-set("].some((i) => r.startsWith(i)) ? (t++, true) : false)) ? t > 0 : false; } - var Ih = /* @__PURE__ */ new Set(["linear-gradient", "radial-gradient", "repeating-linear-gradient", "repeating-radial-gradient", "conic-gradient"]); - function _a2(e) { - e = rt(e); - for (let t of Ih) + var Ah = /* @__PURE__ */ new Set(["linear-gradient", "radial-gradient", "repeating-linear-gradient", "repeating-radial-gradient", "conic-gradient"]); + function Fa(e) { + e = Ze(e); + for (let t of Ah) if (e.startsWith(`${t}(`)) return true; return false; } - var Bh = /* @__PURE__ */ new Set(["center", "top", "right", "bottom", "left"]); - function Rh(e) { + var Oh = /* @__PURE__ */ new Set(["center", "top", "right", "bottom", "left"]); + function Ph(e) { let t = 0; - return e.split(mn).every((r) => (r = rt(r), r.startsWith("var(") ? true : Bh.has(r) || Ca(r) || Ea(r) ? (t++, true) : false)) ? t > 0 : false; + return e.split(dn).every((r) => (r = Ze(r), r.startsWith("var(") ? true : Oh.has(r) || xa(r) || ya(r) ? (t++, true) : false)) ? t > 0 : false; } - function Lh(e) { + function Bh(e) { let t = 0; - return e.split(Fa).every((r) => (r = rt(r), r.startsWith("var(") ? true : r.includes(" ") && !/(['"])([^"']+)\1/g.test(r) || /^\d/g.test(r) ? false : (t++, true))) ? t > 0 : false; + return e.split(ba).every((r) => (r = Ze(r), r.startsWith("var(") ? true : r.includes(" ") && !/(['"])([^"']+)\1/g.test(r) || /^\d/g.test(r) ? false : (t++, true))) ? t > 0 : false; } - var Mh = /* @__PURE__ */ new Set(["serif", "sans-serif", "monospace", "cursive", "fantasy", "system-ui", "ui-serif", "ui-sans-serif", "ui-monospace", "ui-rounded", "math", "emoji", "fangsong"]); - function Nh(e) { - return Mh.has(e); + var Ih = /* @__PURE__ */ new Set(["serif", "sans-serif", "monospace", "cursive", "fantasy", "system-ui", "ui-serif", "ui-sans-serif", "ui-monospace", "ui-rounded", "math", "emoji", "fangsong"]); + function Rh(e) { + return Ih.has(e); } - var $h = /* @__PURE__ */ new Set(["xx-small", "x-small", "small", "medium", "large", "x-large", "x-large", "xxx-large"]); - function Wh(e) { - return $h.has(e); + var Lh = /* @__PURE__ */ new Set(["xx-small", "x-small", "small", "medium", "large", "x-large", "x-large", "xxx-large"]); + function Mh(e) { + return Lh.has(e); } - var qh = /* @__PURE__ */ new Set(["larger", "smaller"]); - function Uh(e) { - return qh.has(e); + var Nh = /* @__PURE__ */ new Set(["larger", "smaller"]); + function $h(e) { + return Nh.has(e); } }); -var Ra = P((ho) => { +var Oa = T((co) => { "use strict"; - c(); - Object.defineProperty(ho, "__esModule", { value: true }); - function zh(e, t) { + Object.defineProperty(co, "__esModule", { value: true }); + function Wh(e, t) { for (var n in t) Object.defineProperty(e, n, { enumerable: true, get: t[n] }); } - zh(ho, { updateAllClasses: () => Hh, asValue: () => vr, parseColorFormat: () => co, asColor: () => Pa, asLookupValue: () => Ia, coerceValue: () => Qh }); - var Gh = po(ua()), jh = po(sa()), ka = oo(), Ee = Sa(), Ta = po(Kn()); - function po(e) { + Wh(co, { updateAllClasses: () => zh, asValue: () => br, parseColorFormat: () => lo, asColor: () => ka, asLookupValue: () => Ta, coerceValue: () => Vh }); + var qh = fo(ra()), Uh = fo(na()), Ea = no(), xe = wa(), Ca = fo(Xn()); + function fo(e) { return e && e.__esModule ? e : { default: e }; } - function Hh(e, t) { - return (0, Gh.default)((i) => { + function zh(e, t) { + return (0, qh.default)((i) => { i.walkClasses((o) => { let u = t(o.value); - o.value = u, o.raws && o.raws.value && (o.raws.value = (0, jh.default)(o.raws.value)); + o.value = u, o.raws && o.raws.value && (o.raws.value = (0, Uh.default)(o.raws.value)); }); }).processSync(e); } - function Oa(e, t) { - if (!br(e)) + function Sa(e, t) { + if (!gr(e)) return; let n = e.slice(1, -1); - if (!!t(n)) - return (0, Ee.normalize)(n); + if (t(n)) + return (0, xe.normalize)(n); } - function Vh(e, t = {}, n) { + function Gh(e, t = {}, n) { let r = t[e]; if (r !== void 0) - return (0, Ta.default)(r); - if (br(e)) { - let i = Oa(e, n); - return i === void 0 ? void 0 : (0, Ta.default)(i); + return (0, Ca.default)(r); + if (gr(e)) { + let i = Sa(e, n); + return i === void 0 ? void 0 : (0, Ca.default)(i); } } - function vr(e, t = {}, { validate: n = () => true } = {}) { + function br(e, t = {}, { validate: n = () => true } = {}) { var r; let i = (r = t.values) === null || r === void 0 ? void 0 : r[e]; - return i !== void 0 ? i : t.supportsNegativeValues && e.startsWith("-") ? Vh(e.slice(1), t.values, n) : Oa(e, n); + return i !== void 0 ? i : t.supportsNegativeValues && e.startsWith("-") ? Gh(e.slice(1), t.values, n) : Sa(e, n); } - function br(e) { + function gr(e) { return e.startsWith("[") && e.endsWith("]"); } - function Yh(e) { + function jh(e) { let t = e.lastIndexOf("/"); return t === -1 || t === e.length - 1 ? [e] : [e.slice(0, t), e.slice(t + 1)]; } - function co(e) { + function lo(e) { if (typeof e == "string" && e.includes("")) { let t = e; return ({ opacityValue: n = 1 }) => t.replace("", n); } return e; } - function Pa(e, t = {}, { tailwindConfig: n = {} } = {}) { + function ka(e, t = {}, { tailwindConfig: n = {} } = {}) { var r; if (((r = t.values) === null || r === void 0 ? void 0 : r[e]) !== void 0) { var i; - return co((i = t.values) === null || i === void 0 ? void 0 : i[e]); + return lo((i = t.values) === null || i === void 0 ? void 0 : i[e]); } - let [o, u] = Yh(e); + let [o, u] = jh(e); if (u !== void 0) { var s, a, l, f; - let d = (f = (s = t.values) === null || s === void 0 ? void 0 : s[o]) !== null && f !== void 0 ? f : br(o) ? o.slice(1, -1) : void 0; - return d === void 0 ? void 0 : (d = co(d), br(u) ? (0, ka.withAlphaValue)(d, u.slice(1, -1)) : ((a = n.theme) === null || a === void 0 || (l = a.opacity) === null || l === void 0 ? void 0 : l[u]) === void 0 ? void 0 : (0, ka.withAlphaValue)(d, n.theme.opacity[u])); + let c = (f = (s = t.values) === null || s === void 0 ? void 0 : s[o]) !== null && f !== void 0 ? f : gr(o) ? o.slice(1, -1) : void 0; + return c === void 0 ? void 0 : (c = lo(c), gr(u) ? (0, Ea.withAlphaValue)(c, u.slice(1, -1)) : ((a = n.theme) === null || a === void 0 || (l = a.opacity) === null || l === void 0 ? void 0 : l[u]) === void 0 ? void 0 : (0, Ea.withAlphaValue)(c, n.theme.opacity[u])); } - return vr(e, t, { validate: Ee.color }); + return br(e, t, { validate: xe.color }); } - function Ia(e, t = {}) { + function Ta(e, t = {}) { var n; return (n = t.values) === null || n === void 0 ? void 0 : n[e]; } - function Pe(e) { - return (t, n) => vr(t, n, { validate: e }); + function Te(e) { + return (t, n) => br(t, n, { validate: e }); } - var Ba = { any: vr, color: Pa, url: Pe(Ee.url), image: Pe(Ee.image), length: Pe(Ee.length), percentage: Pe(Ee.percentage), position: Pe(Ee.position), lookup: Ia, "generic-name": Pe(Ee.genericName), "family-name": Pe(Ee.familyName), number: Pe(Ee.number), "line-width": Pe(Ee.lineWidth), "absolute-size": Pe(Ee.absoluteSize), "relative-size": Pe(Ee.relativeSize), shadow: Pe(Ee.shadow) }, Aa = Object.keys(Ba); - function Xh(e, t) { + var Aa = { any: br, color: ka, url: Te(xe.url), image: Te(xe.image), length: Te(xe.length), percentage: Te(xe.percentage), position: Te(xe.position), lookup: Ta, "generic-name": Te(xe.genericName), "family-name": Te(xe.familyName), number: Te(xe.number), "line-width": Te(xe.lineWidth), "absolute-size": Te(xe.absoluteSize), "relative-size": Te(xe.relativeSize), shadow: Te(xe.shadow) }, _a2 = Object.keys(Aa); + function Hh(e, t) { let n = e.indexOf(t); return n === -1 ? [void 0, e] : [e.slice(0, n), e.slice(n + 1)]; } - function Qh(e, t, n, r) { - if (br(t)) { - let i = t.slice(1, -1), [o, u] = Xh(i, ":"); + function Vh(e, t, n, r) { + if (gr(t)) { + let i = t.slice(1, -1), [o, u] = Hh(i, ":"); if (!/^[\w-_]+$/g.test(o)) u = i; - else if (o !== void 0 && !Aa.includes(o)) + else if (o !== void 0 && !_a2.includes(o)) return []; - if (u.length > 0 && Aa.includes(o)) - return [vr(`[${u}]`, n), o]; + if (u.length > 0 && _a2.includes(o)) + return [br(`[${u}]`, n), o]; } for (let i of [].concat(e)) { - let o = Ba[i](t, n, { tailwindConfig: r }); + let o = Aa[i](t, n, { tailwindConfig: r }); if (o !== void 0) return [o, i]; } return []; } }); -var La = P((mo) => { +var Pa = T((po) => { "use strict"; - c(); - Object.defineProperty(mo, "__esModule", { value: true }); - Object.defineProperty(mo, "default", { enumerable: true, get: () => Kh }); - function Kh(e) { + Object.defineProperty(po, "__esModule", { value: true }); + Object.defineProperty(po, "default", { enumerable: true, get: () => Yh }); + function Yh(e) { return typeof e == "function" ? e({}) : e; } }); -var qa = P((go) => { +var Ma = T((mo) => { "use strict"; - c(); - Object.defineProperty(go, "__esModule", { value: true }); - Object.defineProperty(go, "default", { enumerable: true, get: () => gm }); - var Jh = ct(Kn()), Zh = ct(Gu()), em = ct(ju()), tm = ct(ei()), rm = ct(Vu()), $a = Yu(), Ma = Xu(), nm = Ku(), im = ct(Ju()), om = Zu(), um = Ra(), sm = oo(), am = ct(La()); - function ct(e) { + Object.defineProperty(mo, "__esModule", { value: true }); + Object.defineProperty(mo, "default", { enumerable: true, get: () => hm }); + var Xh = lt(Xn()), Qh = lt(Wu()), Kh = lt(qu()), Jh = lt(Jn()), Zh = lt(zu()), Ra = Gu(), Ba = ju(), em = Vu(), tm = lt(Yu()), rm = Xu(), nm = Oa(), im = no(), om = lt(Pa()); + function lt(e) { return e && e.__esModule ? e : { default: e }; } - function _t(e) { + function Et(e) { return typeof e == "function"; } - function yr(e) { + function vr(e) { return typeof e == "object" && e !== null; } - function xr(e, ...t) { + function yr(e, ...t) { let n = t.pop(); for (let r of t) for (let i in r) { let o = n(e[i], r[i]); - o === void 0 ? yr(e[i]) && yr(r[i]) ? e[i] = xr(e[i], r[i], n) : e[i] = r[i] : e[i] = o; + o === void 0 ? vr(e[i]) && vr(r[i]) ? e[i] = yr(e[i], r[i], n) : e[i] = r[i] : e[i] = o; } return e; } - var Do = { colors: rm.default, negative(e) { + var ho = { colors: Zh.default, negative(e) { return Object.keys(e).filter((t) => e[t] !== "0").reduce((t, n) => { - let r = (0, Jh.default)(e[n]); + let r = (0, Xh.default)(e[n]); return r !== void 0 && (t[`-${n}`] = r), t; }, {}); }, breakpoints(e) { return Object.keys(e).filter((t) => typeof e[t] == "string").reduce((t, n) => ({ ...t, [`screen-${n}`]: e[n] }), {}); } }; - function lm(e, ...t) { - return _t(e) ? e(...t) : e; + function um(e, ...t) { + return Et(e) ? e(...t) : e; } - function fm(e) { - return e.reduce((t, { extend: n }) => xr(t, n, (r, i) => r === void 0 ? [i] : Array.isArray(r) ? [i, ...r] : [i, r]), {}); + function sm(e) { + return e.reduce((t, { extend: n }) => yr(t, n, (r, i) => r === void 0 ? [i] : Array.isArray(r) ? [i, ...r] : [i, r]), {}); } - function cm(e) { - return { ...e.reduce((t, n) => (0, $a.defaults)(t, n), {}), extend: fm(e) }; + function am(e) { + return { ...e.reduce((t, n) => (0, Ra.defaults)(t, n), {}), extend: sm(e) }; } - function Na(e, t) { - if (Array.isArray(e) && yr(e[0])) + function Ia(e, t) { + if (Array.isArray(e) && vr(e[0])) return e.concat(t); - if (Array.isArray(t) && yr(t[0]) && yr(e)) + if (Array.isArray(t) && vr(t[0]) && vr(e)) return [e, ...t]; if (Array.isArray(t)) return t; } - function dm({ extend: e, ...t }) { - return xr(t, e, (n, r) => !_t(n) && !r.some(_t) ? xr({}, n, ...r, Na) : (i, o) => xr({}, ...[n, ...r].map((u) => lm(u, i, o)), Na)); + function lm({ extend: e, ...t }) { + return yr(t, e, (n, r) => !Et(n) && !r.some(Et) ? yr({}, n, ...r, Ia) : (i, o) => yr({}, ...[n, ...r].map((u) => um(u, i, o)), Ia)); } - function* pm(e) { - let t = (0, Ma.toPath)(e); + function* fm(e) { + let t = (0, Ba.toPath)(e); if (t.length === 0 || (yield t, Array.isArray(e))) return; let n = /^(.*?)\s*\/\s*([^/]+)$/, r = e.match(n); if (r !== null) { - let [, i, o] = r, u = (0, Ma.toPath)(i); + let [, i, o] = r, u = (0, Ba.toPath)(i); u.alpha = o, yield u; } } - function hm(e) { + function cm(e) { let t = (n, r) => { - for (let i of pm(n)) { + for (let i of fm(n)) { let o = 0, u = e; for (; u != null && o < i.length; ) - u = u[i[o++]], u = _t(u) && (i.alpha === void 0 || o <= i.length - 1) ? u(t, Do) : u; + u = u[i[o++]], u = Et(u) && (i.alpha === void 0 || o <= i.length - 1) ? u(t, ho) : u; if (u !== void 0) { if (i.alpha !== void 0) { - let s = (0, um.parseColorFormat)(u); - return (0, sm.withAlphaValue)(s, i.alpha, (0, am.default)(s)); + let s = (0, nm.parseColorFormat)(u); + return (0, im.withAlphaValue)(s, i.alpha, (0, om.default)(s)); } - return (0, im.default)(u) ? (0, om.cloneDeep)(u) : u; + return (0, tm.default)(u) ? (0, rm.cloneDeep)(u) : u; } } return r; }; - return Object.assign(t, { theme: t, ...Do }), Object.keys(e).reduce((n, r) => (n[r] = _t(e[r]) ? e[r](t, Do) : e[r], n), {}); + return Object.assign(t, { theme: t, ...ho }), Object.keys(e).reduce((n, r) => (n[r] = Et(e[r]) ? e[r](t, ho) : e[r], n), {}); } - function Wa(e) { + function La(e) { let t = []; return e.forEach((n) => { t = [...t, n]; @@ -14593,199 +14536,188 @@ var qa = P((go) => { i.length !== 0 && i.forEach((o) => { o.__isOptionsFunction && (o = o()); var u; - t = [...t, ...Wa([(u = o == null ? void 0 : o.config) !== null && u !== void 0 ? u : {}])]; + t = [...t, ...La([(u = o == null ? void 0 : o.config) !== null && u !== void 0 ? u : {}])]; }); }), t; } - function mm(e) { - return [...e].reduceRight((n, r) => _t(r) ? r({ corePlugins: n }) : (0, em.default)(r, n), Zh.default); + function dm(e) { + return [...e].reduceRight((n, r) => Et(r) ? r({ corePlugins: n }) : (0, Kh.default)(r, n), Qh.default); } - function Dm(e) { + function pm(e) { return [...e].reduceRight((n, r) => [...n, ...r], []); } - function gm(e) { - let t = [...Wa(e), { prefix: "", important: false, separator: ":", variantOrder: tm.default.variantOrder }]; + function hm(e) { + let t = [...La(e), { prefix: "", important: false, separator: ":", variantOrder: Jh.default.variantOrder }]; var n, r; - return (0, nm.normalizeConfig)((0, $a.defaults)({ theme: hm(dm(cm(t.map((i) => (n = i == null ? void 0 : i.theme) !== null && n !== void 0 ? n : {})))), corePlugins: mm(t.map((i) => i.corePlugins)), plugins: Dm(e.map((i) => (r = i == null ? void 0 : i.plugins) !== null && r !== void 0 ? r : [])) }, ...t)); + return (0, em.normalizeConfig)((0, Ra.defaults)({ theme: cm(lm(am(t.map((i) => (n = i == null ? void 0 : i.theme) !== null && n !== void 0 ? n : {})))), corePlugins: dm(t.map((i) => i.corePlugins)), plugins: pm(e.map((i) => (r = i == null ? void 0 : i.plugins) !== null && r !== void 0 ? r : [])) }, ...t)); } }); -var Ua = {}; -Fn(Ua, { default: () => bm }); -var bm; -var za = Lr(() => { - c(); - bm = { yellow: (e) => e }; +var Na = {}; +yn(Na, { default: () => mm }); +var mm; +var $a = vn(() => { + mm = { yellow: (e) => e }; }); -var Va = P((bo) => { +var za = T((Do) => { "use strict"; - c(); - Object.defineProperty(bo, "__esModule", { value: true }); - function vm(e, t) { + Object.defineProperty(Do, "__esModule", { value: true }); + function Dm(e, t) { for (var n in t) Object.defineProperty(e, n, { enumerable: true, get: t[n] }); } - vm(bo, { flagEnabled: () => Fm, issueFlagNotices: () => wm, default: () => Em }); - var ym = Ha((za(), Mr(Ua))), xm = Ha((Zr(), Mr(Jr))); - function Ha(e) { + Dm(Do, { flagEnabled: () => vm, issueFlagNotices: () => ym, default: () => xm }); + var gm = Ua(($a(), Ir(Na))), bm = Ua((Qr(), Ir(Xr))); + function Ua(e) { return e && e.__esModule ? e : { default: e }; } - var Ga = { optimizeUniversalDefaults: false }, Fr = { future: ["hoverOnlyWhenSupported", "respectDefaultRingColorOpacity"], experimental: ["optimizeUniversalDefaults", "matchVariant"] }; - function Fm(e, t) { - if (Fr.future.includes(t)) { + var Wa = { optimizeUniversalDefaults: false }, xr = { future: ["hoverOnlyWhenSupported", "respectDefaultRingColorOpacity"], experimental: ["optimizeUniversalDefaults", "matchVariant"] }; + function vm(e, t) { + if (xr.future.includes(t)) { var n, r, i; - return e.future === "all" || ((i = (r = e == null || (n = e.future) === null || n === void 0 ? void 0 : n[t]) !== null && r !== void 0 ? r : Ga[t]) !== null && i !== void 0 ? i : false); + return e.future === "all" || ((i = (r = e == null || (n = e.future) === null || n === void 0 ? void 0 : n[t]) !== null && r !== void 0 ? r : Wa[t]) !== null && i !== void 0 ? i : false); } - if (Fr.experimental.includes(t)) { + if (xr.experimental.includes(t)) { var o, u, s; - return e.experimental === "all" || ((s = (u = e == null || (o = e.experimental) === null || o === void 0 ? void 0 : o[t]) !== null && u !== void 0 ? u : Ga[t]) !== null && s !== void 0 ? s : false); + return e.experimental === "all" || ((s = (u = e == null || (o = e.experimental) === null || o === void 0 ? void 0 : o[t]) !== null && u !== void 0 ? u : Wa[t]) !== null && s !== void 0 ? s : false); } return false; } - function ja(e) { + function qa(e) { if (e.experimental === "all") - return Fr.experimental; + return xr.experimental; var t; - return Object.keys((t = e == null ? void 0 : e.experimental) !== null && t !== void 0 ? t : {}).filter((n) => Fr.experimental.includes(n) && e.experimental[n]); + return Object.keys((t = e == null ? void 0 : e.experimental) !== null && t !== void 0 ? t : {}).filter((n) => xr.experimental.includes(n) && e.experimental[n]); } - function wm(e) { - if (process.env.JEST_WORKER_ID === void 0 && ja(e).length > 0) { - let t = ja(e).map((n) => ym.default.yellow(n)).join(", "); - xm.default.warn("experimental-flags-enabled", [`You have enabled experimental features: ${t}`, "Experimental features in Tailwind CSS are not covered by semver, may introduce breaking changes, and can change at any time."]); + function ym(e) { + if (process.env.JEST_WORKER_ID === void 0 && qa(e).length > 0) { + let t = qa(e).map((n) => gm.default.yellow(n)).join(", "); + bm.default.warn("experimental-flags-enabled", [`You have enabled experimental features: ${t}`, "Experimental features in Tailwind CSS are not covered by semver, may introduce breaking changes, and can change at any time."]); } } - var Em = Fr; + var xm = xr; }); -var Xa = P((vo) => { +var ja = T((go) => { "use strict"; - c(); - Object.defineProperty(vo, "__esModule", { value: true }); - Object.defineProperty(vo, "default", { enumerable: true, get: () => Ya }); - var Cm = Sm(ei()), _m = Va(); - function Sm(e) { + Object.defineProperty(go, "__esModule", { value: true }); + Object.defineProperty(go, "default", { enumerable: true, get: () => Ga }); + var Fm = Em(Jn()), wm = za(); + function Em(e) { return e && e.__esModule ? e : { default: e }; } - function Ya(e) { + function Ga(e) { var t; - let n = ((t = e == null ? void 0 : e.presets) !== null && t !== void 0 ? t : [Cm.default]).slice().reverse().flatMap((o) => Ya(typeof o == "function" ? o() : o)), r = { respectDefaultRingColorOpacity: { theme: { ringColor: { DEFAULT: "#3b82f67f" } } } }, i = Object.keys(r).filter((o) => (0, _m.flagEnabled)(e, o)).map((o) => r[o]); + let n = ((t = e == null ? void 0 : e.presets) !== null && t !== void 0 ? t : [Fm.default]).slice().reverse().flatMap((o) => Ga(typeof o == "function" ? o() : o)), r = { respectDefaultRingColorOpacity: { theme: { ringColor: { DEFAULT: "#3b82f67f" } } } }, i = Object.keys(r).filter((o) => (0, wm.flagEnabled)(e, o)).map((o) => r[o]); return [e, ...i, ...n]; } }); -var Ka = P((yo) => { +var Va = T((bo) => { "use strict"; - c(); - Object.defineProperty(yo, "__esModule", { value: true }); - Object.defineProperty(yo, "default", { enumerable: true, get: () => Am }); - var km = Qa(qa()), Tm = Qa(Xa()); - function Qa(e) { + Object.defineProperty(bo, "__esModule", { value: true }); + Object.defineProperty(bo, "default", { enumerable: true, get: () => Sm }); + var Cm = Ha(Ma()), _m = Ha(ja()); + function Ha(e) { return e && e.__esModule ? e : { default: e }; } - function Am(...e) { - let [, ...t] = (0, Tm.default)(e[0]); - return (0, km.default)([...e, ...t]); + function Sm(...e) { + let [, ...t] = (0, _m.default)(e[0]); + return (0, Cm.default)([...e, ...t]); } }); -var Za = P((Pb, Ja) => { - c(); - var xo = Ka(); - Ja.exports = (xo.__esModule ? xo : { default: xo }).default; +var Xa = T((kb, Ya) => { + var vo = Va(); + Ya.exports = (vo.__esModule ? vo : { default: vo }).default; }); -c(); -c(); -c(); -var vt; -function Ll(e) { - vt = e; -} -var It = null; -async function Ge() { - return vt || (It ? (await It, vt) : (It = Promise.resolve().then(() => (Qo(), Xo)).then((e) => e.getYogaModule()).then((e) => vt = e), await It, It = null, vt)); -} -c(); -c(); -c(); +var gt; +function Bl(e) { + gt = e; +} +var Pt = null; +async function qe() { + return gt || (Pt ? (await Pt, gt) : (Pt = Promise.resolve().then(() => (Ho(), jo)).then((e) => e.getYogaModule()).then((e) => gt = e), await Pt, Pt = null, gt)); +} var Bt = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports); -var Ml = Bt((e, t) => { +var Il = Bt((e, t) => { t.exports = ["em", "ex", "ch", "rem", "vh", "vw", "vmin", "vmax", "px", "mm", "cm", "in", "pt", "pc", "mozmm"]; }); -var Nl = Bt((e, t) => { +var Rl = Bt((e, t) => { t.exports = ["deg", "grad", "rad", "turn"]; }); -var $l = Bt((e, t) => { +var Ll = Bt((e, t) => { t.exports = ["dpi", "dpcm", "dppx"]; }); -var Wl = Bt((e, t) => { +var Ml = Bt((e, t) => { t.exports = ["Hz", "kHz"]; }); -var ql = Bt((e, t) => { +var Nl = Bt((e, t) => { t.exports = ["s", "ms"]; }); -var Ul = Ml(); -var Ko = Nl(); -var Jo = $l(); -var Zo = Wl(); -var eu = ql(); -function En(e) { +var $l = Il(); +var Vo = Rl(); +var Yo = Ll(); +var Xo = Ml(); +var Qo = Nl(); +function Fn(e) { if (/\.\D?$/.test(e)) throw new Error("The dot should be followed by a number"); if (/^[+-]{2}/.test(e)) throw new Error("Only one leading +/- is allowed"); - if (zl(e) > 1) + if (Wl(e) > 1) throw new Error("Only one dot is allowed"); if (/%$/.test(e)) { - this.type = "percentage", this.value = wn(e), this.unit = "%"; + this.type = "percentage", this.value = xn(e), this.unit = "%"; return; } - var t = jl(e); + var t = Ul(e); if (!t) { - this.type = "number", this.value = wn(e); + this.type = "number", this.value = xn(e); return; } - this.type = Vl(t), this.value = wn(e.substr(0, e.length - t.length)), this.unit = t; + this.type = Gl(t), this.value = xn(e.substr(0, e.length - t.length)), this.unit = t; } -En.prototype.valueOf = function() { +Fn.prototype.valueOf = function() { return this.value; }; -En.prototype.toString = function() { +Fn.prototype.toString = function() { return this.value + (this.unit || ""); }; -function Ke(e) { - return new En(e); +function Ye(e) { + return new Fn(e); } -function zl(e) { +function Wl(e) { var t = e.match(/\./g); return t ? t.length : 0; } -function wn(e) { +function xn(e) { var t = parseFloat(e); if (isNaN(t)) throw new Error("Invalid number: " + e); return t; } -var Gl = [].concat(Ko, Zo, Ul, Jo, eu); -function jl(e) { +var ql = [].concat(Vo, Xo, $l, Yo, Qo); +function Ul(e) { var t = e.match(/\D+$/), n = t && t[0]; - if (n && Gl.indexOf(n) === -1) + if (n && ql.indexOf(n) === -1) throw new Error("Invalid unit: " + n); return n; } -var Hl = Object.assign(Nr(Ko, "angle"), Nr(Zo, "frequency"), Nr(Jo, "resolution"), Nr(eu, "time")); -function Nr(e, t) { +var zl = Object.assign(Rr(Vo, "angle"), Rr(Xo, "frequency"), Rr(Yo, "resolution"), Rr(Qo, "time")); +function Rr(e, t) { return Object.fromEntries(e.map((n) => [n, t])); } -function Vl(e) { - return Hl[e] || "length"; +function Gl(e) { + return zl[e] || "length"; } -function yt(e) { +function bt(e) { let t = typeof e; return !(t === "number" || t === "bigint" || t === "string" || t === "boolean"); } -function tu(e) { +function Ko(e) { return /^class\s/.test(e.toString()); } -function ru(e) { +function Jo(e) { return "dangerouslySetInnerHTML" in e; } -function nu(e) { +function Zo(e) { let t = typeof e > "u" ? [] : [].concat(e).flat(1 / 0), n = []; for (let r = 0; r < t.length; r++) { let i = t[r]; @@ -14793,7 +14725,7 @@ function nu(e) { } return n; } -function G(e, t, n, r, i = false) { +function U(e, t, n, r, i = false) { if (typeof e == "number") return e; try { @@ -14801,7 +14733,7 @@ function G(e, t, n, r, i = false) { return; if (e === String(+e)) return +e; - let o = new Ke(e); + let o = new Ye(e); if (o.type === "length") switch (o.unit) { case "em": @@ -14829,10 +14761,10 @@ function G(e, t, n, r, i = false) { } catch { } } -function Rt(e, t) { +function It(e, t) { return [e[0] * t[0] + e[2] * t[1], e[1] * t[0] + e[3] * t[1], e[0] * t[2] + e[2] * t[3], e[1] * t[2] + e[3] * t[3], e[0] * t[4] + e[2] * t[5] + e[4], e[1] * t[4] + e[3] * t[5] + e[5]]; } -function Fe(e, t, n, r) { +function ve(e, t, n, r) { let i = t[e]; if (typeof i > "u") { if (r && typeof e < "u") @@ -14841,19 +14773,19 @@ function Fe(e, t, n, r) { } return i; } -var Cn; -var _n; -var iu = [32, 160, 4961, 65792, 65793, 4153, 4241, 10].map((e) => String.fromCodePoint(e)); -function Se(e, t, n) { - if (!Cn || !_n) { +var wn; +var En; +var eu = [32, 160, 4961, 65792, 65793, 4153, 4241, 10].map((e) => String.fromCodePoint(e)); +function we(e, t, n) { + if (!wn || !En) { if (!(typeof Intl < "u" && "Segmenter" in Intl)) throw new Error("Intl.Segmenter does not exist, please use import a polyfill."); - Cn = new Intl.Segmenter(n, { granularity: "word" }), _n = new Intl.Segmenter(n, { granularity: "grapheme" }); + wn = new Intl.Segmenter(n, { granularity: "word" }), En = new Intl.Segmenter(n, { granularity: "grapheme" }); } if (t === "grapheme") - return [..._n.segment(e)].map((r) => r.segment); + return [...En.segment(e)].map((r) => r.segment); { - let r = [...Cn.segment(e)].map((u) => u.segment), i = [], o = 0; + let r = [...wn.segment(e)].map((u) => u.segment), i = [], o = 0; for (; o < r.length; ) { let u = r[o]; if (u == "\xA0") { @@ -14865,13 +14797,13 @@ function Se(e, t, n) { return i; } } -function k(e, t, n) { +function C(e, t, n) { let r = ""; for (let [i, o] of Object.entries(t)) typeof o < "u" && (r += ` ${i}="${o}"`); return n ? `<${e}${r}>${n}` : `<${e}${r}/>`; } -function ou(e = 20) { +function tu(e = 20) { let t = /* @__PURE__ */ new Map(); function n(o, u) { if (t.size >= e) { @@ -14891,26 +14823,26 @@ function ou(e = 20) { } return { set: n, get: r, clear: i }; } -function xt(e) { +function vt(e) { return e ? e.split(/[, ]/).filter(Boolean).map(Number) : null; } -function Xl(e) { +function Hl(e) { return Object.prototype.toString.call(e); } -function $r(e) { +function Lr(e) { return typeof e == "string"; } -function uu(e) { +function ru(e) { return typeof e == "number"; } -function su(e) { - return Xl(e) === "[object Undefined]"; +function nu(e) { + return Hl(e) === "[object Undefined]"; } -function au(e, t) { +function iu(e, t) { if (t === "break-all") - return { words: Se(e, "grapheme"), requiredBreaks: [] }; + return { words: we(e, "grapheme"), requiredBreaks: [] }; if (t === "keep-all") - return { words: Se(e, "word"), requiredBreaks: [] }; + return { words: we(e, "word"), requiredBreaks: [] }; let n = new $557adaaeb0c7885f$exports(e), r = 0, i = n.nextBreak(), o = [], u = [false]; for (; i; ) { let s = e.slice(r, i.position); @@ -14918,17 +14850,15 @@ function au(e, t) { } return { words: o, requiredBreaks: u }; } -var lu = (e) => e.replaceAll(/([A-Z])/g, (t, n) => `-${n.toLowerCase()}`); -c(); -c(); -var Ql = "image/avif"; -var Kl = "image/webp"; -var Wr = "image/apng"; -var qr = "image/png"; -var Ur = "image/jpeg"; -var zr = "image/gif"; -var kn = "image/svg+xml"; -function du(e) { +var ou = (e) => e.replaceAll(/([A-Z])/g, (t, n) => `-${n.toLowerCase()}`); +var Vl = "image/avif"; +var Yl = "image/webp"; +var Mr = "image/apng"; +var Nr = "image/png"; +var $r = "image/jpeg"; +var Wr = "image/gif"; +var _n = "image/svg+xml"; +function au(e) { let t = new DataView(e), n = 4, r = t.byteLength; for (; n < r; ) { let i = t.getUint16(n, false); @@ -14941,59 +14871,59 @@ function du(e) { } throw new TypeError("Invalid JPEG"); } -function pu(e) { +function lu(e) { let t = new Uint8Array(e.slice(6, 10)); return [t[0] | t[1] << 8, t[2] | t[3] << 8]; } -function hu(e) { +function fu(e) { let t = new DataView(e); return [t.getUint16(18, false), t.getUint16(22, false)]; } -var $e = ou(100); -var Sn = /* @__PURE__ */ new Map(); -var Jl = [qr, Wr, Ur, zr, kn]; -function Zl(e) { +var Re = tu(100); +var Cn = /* @__PURE__ */ new Map(); +var Xl = [Nr, Mr, $r, Wr, _n]; +function Ql(e) { let t = "", n = new Uint8Array(e); for (let r = 0; r < n.byteLength; r++) t += String.fromCharCode(n[r]); return btoa(t); } -function ef(e) { +function Kl(e) { let t = atob(e), n = t.length, r = new Uint8Array(n); for (let i = 0; i < n; i++) r[i] = t.charCodeAt(i); return r.buffer; } -function fu(e, t) { - let n = t.match(/]*>/)[0], r = n.match(/viewBox=['"](.+)['"]/), i = r ? xt(r[1]) : null, o = n.match(/width=['"](\d*\.\d+|\d+)['"]/), u = n.match(/height=['"](\d*\.\d+|\d+)['"]/); +function uu(e, t) { + let n = t.match(/]*>/)[0], r = n.match(/viewBox=['"](.+)['"]/), i = r ? vt(r[1]) : null, o = n.match(/width=['"](\d*\.\d+|\d+)['"]/), u = n.match(/height=['"](\d*\.\d+|\d+)['"]/); if (!i && (!o || !u)) throw new Error(`Failed to parse SVG from ${e}: missing "viewBox"`); let s = i ? [i[2], i[3]] : [+o[1], +u[1]], a = s[0] / s[1]; return o && u ? [+o[1], +u[1]] : o ? [+o[1], +o[1] / a] : u ? [+u[1] * a, +u[1]] : [s[0], s[1]]; } -function cu(e) { - let t, n = tf(new Uint8Array(e)); +function su(e) { + let t, n = Jl(new Uint8Array(e)); switch (n) { - case qr: - case Wr: - t = hu(e); + case Nr: + case Mr: + t = fu(e); break; - case zr: - t = pu(e); + case Wr: + t = lu(e); break; - case Ur: - t = du(e); + case $r: + t = au(e); break; } - if (!Jl.includes(n)) + if (!Xl.includes(n)) throw new Error(`Unsupported image type: ${n || "unknown"}`); - return [`data:${n};base64,${Zl(e)}`, t]; + return [`data:${n};base64,${Ql(e)}`, t]; } -async function Ft(e) { +async function yt(e) { if (!e) throw new Error("Image source is not provided."); if (typeof e == "object") { - let [i, o] = cu(e); + let [i, o] = su(e); return [i, ...o]; } if ((e.startsWith('"') && e.endsWith('"') || e.startsWith("'") && e.endsWith("'")) && (e = e.slice(1, -1)), typeof window > "u" && !e.startsWith("http") && !e.startsWith("data:")) @@ -15001,37 +14931,37 @@ async function Ft(e) { if (e.startsWith("data:")) { let i; try { - i = /data:(?[a-z/+]+)(;(?base64|utf8))?,(?.*)/g.exec(e).groups; + i = /data:(?[a-z/+]+)(;(charset=)?(?.*))?,(?.*)/g.exec(e).groups; } catch { return console.warn("Image data URI resolved without size:" + e), [e]; } let { imageType: o, encodingType: u, dataString: s } = i; - if (o === kn) { - let a = u === "base64" ? atob(s) : decodeURIComponent(s.replace(/ /g, "%20")), l = u === "base64" ? e : `data:image/svg+xml;base64,${btoa(a)}`, f = fu(e, a); - return $e.set(e, [l, ...f]), [l, ...f]; + if (o === _n) { + let a = u === "base64" ? atob(s) : decodeURIComponent(s.replace(/ /g, "%20")), l = u === "base64" ? e : `data:image/svg+xml;base64,${btoa(a)}`, f = uu(e, a); + return Re.set(e, [l, ...f]), [l, ...f]; } else if (u === "base64") { - let a, l = ef(s); + let a, l = Kl(s); switch (o) { - case qr: - case Wr: - a = hu(l); + case Nr: + case Mr: + a = fu(l); break; - case zr: - a = pu(l); + case Wr: + a = lu(l); break; - case Ur: - a = du(l); + case $r: + a = au(l); break; } - return $e.set(e, [e, ...a]), [e, ...a]; + return Re.set(e, [e, ...a]), [e, ...a]; } else - return console.warn("Image data URI resolved without size:" + e), $e.set(e, [e]), [e]; + return console.warn("Image data URI resolved without size:" + e), Re.set(e, [e]), [e]; } if (!globalThis.fetch) throw new Error("`fetch` is required to be polyfilled to load images."); - if (Sn.has(e)) - return Sn.get(e); - let t = $e.get(e); + if (Cn.has(e)) + return Cn.get(e); + let t = Re.get(e); if (t) return t; let n = e, r = fetch(n).then((i) => { @@ -15040,20 +14970,20 @@ async function Ft(e) { }).then((i) => { if (typeof i == "string") try { - let s = `data:image/svg+xml;base64,${btoa(i)}`, a = fu(n, i); + let s = `data:image/svg+xml;base64,${btoa(i)}`, a = uu(n, i); return [s, ...a]; } catch (s) { throw new Error(`Failed to parse SVG image: ${s.message}`); } - let [o, u] = cu(i); + let [o, u] = su(i); return [o, ...u]; - }).then((i) => ($e.set(n, i), i)).catch((i) => (console.error(`Can't load image ${n}: ` + i.message), $e.set(n, []), [])); - return Sn.set(n, r), r; + }).then((i) => (Re.set(n, i), i)).catch((i) => (console.error(`Can't load image ${n}: ` + i.message), Re.set(n, []), [])); + return Cn.set(n, r), r; } -function tf(e) { - return [255, 216, 255].every((t, n) => e[n] === t) ? Ur : [137, 80, 78, 71, 13, 10, 26, 10].every((t, n) => e[n] === t) ? rf(e) ? Wr : qr : [71, 73, 70, 56].every((t, n) => e[n] === t) ? zr : [82, 73, 70, 70, 0, 0, 0, 0, 87, 69, 66, 80].every((t, n) => !t || e[n] === t) ? Kl : [60, 63, 120, 109, 108].every((t, n) => e[n] === t) ? kn : [0, 0, 0, 0, 102, 116, 121, 112, 97, 118, 105, 102].every((t, n) => !t || e[n] === t) ? Ql : null; +function Jl(e) { + return [255, 216, 255].every((t, n) => e[n] === t) ? $r : [137, 80, 78, 71, 13, 10, 26, 10].every((t, n) => e[n] === t) ? Zl(e) ? Mr : Nr : [71, 73, 70, 56].every((t, n) => e[n] === t) ? Wr : [82, 73, 70, 70, 0, 0, 0, 0, 87, 69, 66, 80].every((t, n) => !t || e[n] === t) ? Yl : [60, 63, 120, 109, 108].every((t, n) => e[n] === t) ? _n : [0, 0, 0, 0, 102, 116, 121, 112, 97, 118, 105, 102].every((t, n) => !t || e[n] === t) ? Vl : null; } -function rf(e) { +function Zl(e) { let t = new DataView(e.buffer), n, r, i = 8, o = false; for (; !o && n !== "IEND" && i < e.length; ) { r = t.getUint32(i); @@ -15062,24 +14992,24 @@ function rf(e) { } return o; } -var Tn = { accentHeight: "accent-height", alignmentBaseline: "alignment-baseline", arabicForm: "arabic-form", baselineShift: "baseline-shift", capHeight: "cap-height", clipPath: "clip-path", clipRule: "clip-rule", colorInterpolation: "color-interpolation", colorInterpolationFilters: "color-interpolation-filters", colorProfile: "color-profile", colorRendering: "color-rendering", dominantBaseline: "dominant-baseline", enableBackground: "enable-background", fillOpacity: "fill-opacity", fillRule: "fill-rule", floodColor: "flood-color", floodOpacity: "flood-opacity", fontFamily: "font-family", fontSize: "font-size", fontSizeAdjust: "font-size-adjust", fontStretch: "font-stretch", fontStyle: "font-style", fontVariant: "font-variant", fontWeight: "font-weight", glyphName: "glyph-name", glyphOrientationHorizontal: "glyph-orientation-horizontal", glyphOrientationVertical: "glyph-orientation-vertical", horizAdvX: "horiz-adv-x", horizOriginX: "horiz-origin-x", href: "href", imageRendering: "image-rendering", letterSpacing: "letter-spacing", lightingColor: "lighting-color", markerEnd: "marker-end", markerMid: "marker-mid", markerStart: "marker-start", overlinePosition: "overline-position", overlineThickness: "overline-thickness", paintOrder: "paint-order", panose1: "panose-1", pointerEvents: "pointer-events", renderingIntent: "rendering-intent", shapeRendering: "shape-rendering", stopColor: "stop-color", stopOpacity: "stop-opacity", strikethroughPosition: "strikethrough-position", strikethroughThickness: "strikethrough-thickness", strokeDasharray: "stroke-dasharray", strokeDashoffset: "stroke-dashoffset", strokeLinecap: "stroke-linecap", strokeLinejoin: "stroke-linejoin", strokeMiterlimit: "stroke-miterlimit", strokeOpacity: "stroke-opacity", strokeWidth: "stroke-width", textAnchor: "text-anchor", textDecoration: "text-decoration", textRendering: "text-rendering", underlinePosition: "underline-position", underlineThickness: "underline-thickness", unicodeBidi: "unicode-bidi", unicodeRange: "unicode-range", unitsPerEm: "units-per-em", vAlphabetic: "v-alphabetic", vHanging: "v-hanging", vIdeographic: "v-ideographic", vMathematical: "v-mathematical", vectorEffect: "vector-effect", vertAdvY: "vert-adv-y", vertOriginX: "vert-origin-x", vertOriginY: "vert-origin-y", wordSpacing: "word-spacing", writingMode: "writing-mode", xHeight: "x-height", xlinkActuate: "xlink:actuate", xlinkArcrole: "xlink:arcrole", xlinkHref: "xlink:href", xlinkRole: "xlink:role", xlinkShow: "xlink:show", xlinkTitle: "xlink:title", xlinkType: "xlink:type", xmlBase: "xml:base", xmlLang: "xml:lang", xmlSpace: "xml:space", xmlnsXlink: "xmlns:xlink" }; -var nf = /[\r\n%#()<>?[\\\]^`{|}"']/g; -function An(e, t) { +var Sn = { accentHeight: "accent-height", alignmentBaseline: "alignment-baseline", arabicForm: "arabic-form", baselineShift: "baseline-shift", capHeight: "cap-height", clipPath: "clip-path", clipRule: "clip-rule", colorInterpolation: "color-interpolation", colorInterpolationFilters: "color-interpolation-filters", colorProfile: "color-profile", colorRendering: "color-rendering", dominantBaseline: "dominant-baseline", enableBackground: "enable-background", fillOpacity: "fill-opacity", fillRule: "fill-rule", floodColor: "flood-color", floodOpacity: "flood-opacity", fontFamily: "font-family", fontSize: "font-size", fontSizeAdjust: "font-size-adjust", fontStretch: "font-stretch", fontStyle: "font-style", fontVariant: "font-variant", fontWeight: "font-weight", glyphName: "glyph-name", glyphOrientationHorizontal: "glyph-orientation-horizontal", glyphOrientationVertical: "glyph-orientation-vertical", horizAdvX: "horiz-adv-x", horizOriginX: "horiz-origin-x", href: "href", imageRendering: "image-rendering", letterSpacing: "letter-spacing", lightingColor: "lighting-color", markerEnd: "marker-end", markerMid: "marker-mid", markerStart: "marker-start", overlinePosition: "overline-position", overlineThickness: "overline-thickness", paintOrder: "paint-order", panose1: "panose-1", pointerEvents: "pointer-events", renderingIntent: "rendering-intent", shapeRendering: "shape-rendering", stopColor: "stop-color", stopOpacity: "stop-opacity", strikethroughPosition: "strikethrough-position", strikethroughThickness: "strikethrough-thickness", strokeDasharray: "stroke-dasharray", strokeDashoffset: "stroke-dashoffset", strokeLinecap: "stroke-linecap", strokeLinejoin: "stroke-linejoin", strokeMiterlimit: "stroke-miterlimit", strokeOpacity: "stroke-opacity", strokeWidth: "stroke-width", textAnchor: "text-anchor", textDecoration: "text-decoration", textRendering: "text-rendering", underlinePosition: "underline-position", underlineThickness: "underline-thickness", unicodeBidi: "unicode-bidi", unicodeRange: "unicode-range", unitsPerEm: "units-per-em", vAlphabetic: "v-alphabetic", vHanging: "v-hanging", vIdeographic: "v-ideographic", vMathematical: "v-mathematical", vectorEffect: "vector-effect", vertAdvY: "vert-adv-y", vertOriginX: "vert-origin-x", vertOriginY: "vert-origin-y", wordSpacing: "word-spacing", writingMode: "writing-mode", xHeight: "x-height", xlinkActuate: "xlink:actuate", xlinkArcrole: "xlink:arcrole", xlinkHref: "xlink:href", xlinkRole: "xlink:role", xlinkShow: "xlink:show", xlinkTitle: "xlink:title", xlinkType: "xlink:type", xmlBase: "xml:base", xmlLang: "xml:lang", xmlSpace: "xml:space", xmlnsXlink: "xmlns:xlink" }; +var ef = /[\r\n%#()<>?[\\\]^`{|}"']/g; +function kn(e, t) { if (!e) return ""; if (Array.isArray(e)) - return e.map((l) => An(l, t)).join(""); + return e.map((l) => kn(l, t)).join(""); if (typeof e != "object") return String(e); let n = e.type; if (n === "text") throw new Error(" nodes are not currently supported, please convert them to "); - let { children: r, style: i, ...o } = e.props || {}, u = (i == null ? void 0 : i.color) || t, s = `${Object.entries(o).map(([l, f]) => (typeof f == "string" && f.toLowerCase() === "currentcolor" && (f = u), l === "href" && n === "image" ? ` ${Tn[l] || l}="${$e.get(f)[0]}"` : ` ${Tn[l] || l}="${f}"`)).join("")}`, a = i ? ` style="${Object.entries(i).map(([l, f]) => `${lu(l)}:${f}`).join(";")}"` : ""; - return `<${n}${s}${a}>${An(r, u)}`; + let { children: r, style: i, ...o } = e.props || {}, u = (i == null ? void 0 : i.color) || t, s = `${Object.entries(o).map(([l, f]) => (typeof f == "string" && f.toLowerCase() === "currentcolor" && (f = u), l === "href" && n === "image" ? ` ${Sn[l] || l}="${Re.get(f)[0]}"` : ` ${Sn[l] || l}="${f}"`)).join("")}`, a = i ? ` style="${Object.entries(i).map(([l, f]) => `${ou(l)}:${f}`).join(";")}"` : ""; + return `<${n}${s}${a}>${kn(r, u)}`; } -async function mu(e) { +async function cu(e) { let t = /* @__PURE__ */ new Set(), n = (r) => { - if (!!r && !!yt(r)) { + if (r && bt(r)) { if (Array.isArray(r)) { r.forEach((i) => n(i)); return; @@ -15088,31 +15018,26 @@ async function mu(e) { Array.isArray(r.props.children) ? r.props.children.map((i) => n(i)) : n(r.props.children); } }; - return n(e), Promise.all(Array.from(t).map((r) => Ft(r))); + return n(e), Promise.all(Array.from(t).map((r) => yt(r))); } -async function Du(e, t) { +async function du(e, t) { let { viewBox: n, viewbox: r, width: i, height: o, className: u, style: s, children: a, ...l } = e.props || {}; n || (n = r), l.xmlns = "http://www.w3.org/2000/svg"; - let f = (s == null ? void 0 : s.color) || t, d = xt(n), h = d ? d[3] / d[2] : null; - return i = i || h && o ? o / h : null, o = o || h && i ? i * h : null, l.width = i, l.height = o, n && (l.viewBox = n), `data:image/svg+xml;utf8,${` (typeof p == "string" && p.toLowerCase() === "currentcolor" && (p = f), ` ${Tn[m] || m}="${p}"`)).join("")}>${An(a, f)}`.replace(nf, encodeURIComponent)}`; -} -c(); -c(); -var ke = "flex"; -var gu = { p: { display: ke, marginTop: "1em", marginBottom: "1em" }, div: { display: ke }, blockquote: { display: ke, marginTop: "1em", marginBottom: "1em", marginLeft: 40, marginRight: 40 }, center: { display: ke, textAlign: "center" }, hr: { display: ke, marginTop: "0.5em", marginBottom: "0.5em", marginLeft: "auto", marginRight: "auto", borderWidth: 1, borderStyle: "solid" }, h1: { display: ke, fontSize: "2em", marginTop: "0.67em", marginBottom: "0.67em", marginLeft: 0, marginRight: 0, fontWeight: "bold" }, h2: { display: ke, fontSize: "1.5em", marginTop: "0.83em", marginBottom: "0.83em", marginLeft: 0, marginRight: 0, fontWeight: "bold" }, h3: { display: ke, fontSize: "1.17em", marginTop: "1em", marginBottom: "1em", marginLeft: 0, marginRight: 0, fontWeight: "bold" }, h4: { display: ke, marginTop: "1.33em", marginBottom: "1.33em", marginLeft: 0, marginRight: 0, fontWeight: "bold" }, h5: { display: ke, fontSize: "0.83em", marginTop: "1.67em", marginBottom: "1.67em", marginLeft: 0, marginRight: 0, fontWeight: "bold" }, h6: { display: ke, fontSize: "0.67em", marginTop: "2.33em", marginBottom: "2.33em", marginLeft: 0, marginRight: 0, fontWeight: "bold" }, u: { textDecoration: "underline" }, strong: { fontWeight: "bold" }, b: { fontWeight: "bold" }, i: { fontStyle: "italic" }, em: { fontStyle: "italic" }, code: { fontFamily: "monospace" }, kbd: { fontFamily: "monospace" }, pre: { display: ke, fontFamily: "monospace", whiteSpace: "pre", marginTop: "1em", marginBottom: "1em" }, mark: { backgroundColor: "yellow", color: "black" }, big: { fontSize: "larger" }, small: { fontSize: "smaller" }, s: { textDecoration: "line-through" } }; -c(); -var of = /* @__PURE__ */ new Set(["color", "font", "fontFamily", "fontSize", "fontStyle", "fontWeight", "letterSpacing", "lineHeight", "textAlign", "textTransform", "textShadowOffset", "textShadowColor", "textShadowRadius", "textDecorationLine", "textDecorationStyle", "textDecorationColor", "whiteSpace", "transform", "wordBreak", "tabSize", "opacity", "filter", "_viewportWidth", "_viewportHeight", "_inheritedClipPathId", "_inheritedMaskId", "_inheritedBackgroundClipTextPath"]); -function On(e) { + let f = (s == null ? void 0 : s.color) || t, c = vt(n), p = c ? c[3] / c[2] : null; + return i = i || p && o ? o / p : null, o = o || p && i ? i * p : null, l.width = i, l.height = o, n && (l.viewBox = n), `data:image/svg+xml;utf8,${` (typeof d == "string" && d.toLowerCase() === "currentcolor" && (d = f), ` ${Sn[h] || h}="${d}"`)).join("")}>${kn(a, f)}`.replace(ef, encodeURIComponent)}`; +} +var Ce = "flex"; +var pu = { p: { display: Ce, marginTop: "1em", marginBottom: "1em" }, div: { display: Ce }, blockquote: { display: Ce, marginTop: "1em", marginBottom: "1em", marginLeft: 40, marginRight: 40 }, center: { display: Ce, textAlign: "center" }, hr: { display: Ce, marginTop: "0.5em", marginBottom: "0.5em", marginLeft: "auto", marginRight: "auto", borderWidth: 1, borderStyle: "solid" }, h1: { display: Ce, fontSize: "2em", marginTop: "0.67em", marginBottom: "0.67em", marginLeft: 0, marginRight: 0, fontWeight: "bold" }, h2: { display: Ce, fontSize: "1.5em", marginTop: "0.83em", marginBottom: "0.83em", marginLeft: 0, marginRight: 0, fontWeight: "bold" }, h3: { display: Ce, fontSize: "1.17em", marginTop: "1em", marginBottom: "1em", marginLeft: 0, marginRight: 0, fontWeight: "bold" }, h4: { display: Ce, marginTop: "1.33em", marginBottom: "1.33em", marginLeft: 0, marginRight: 0, fontWeight: "bold" }, h5: { display: Ce, fontSize: "0.83em", marginTop: "1.67em", marginBottom: "1.67em", marginLeft: 0, marginRight: 0, fontWeight: "bold" }, h6: { display: Ce, fontSize: "0.67em", marginTop: "2.33em", marginBottom: "2.33em", marginLeft: 0, marginRight: 0, fontWeight: "bold" }, u: { textDecoration: "underline" }, strong: { fontWeight: "bold" }, b: { fontWeight: "bold" }, i: { fontStyle: "italic" }, em: { fontStyle: "italic" }, code: { fontFamily: "monospace" }, kbd: { fontFamily: "monospace" }, pre: { display: Ce, fontFamily: "monospace", whiteSpace: "pre", marginTop: "1em", marginBottom: "1em" }, mark: { backgroundColor: "yellow", color: "black" }, big: { fontSize: "larger" }, small: { fontSize: "smaller" }, s: { textDecoration: "line-through" } }; +var tf = /* @__PURE__ */ new Set(["color", "font", "fontFamily", "fontSize", "fontStyle", "fontWeight", "letterSpacing", "lineHeight", "textAlign", "textTransform", "textShadowOffset", "textShadowColor", "textShadowRadius", "textDecorationLine", "textDecorationStyle", "textDecorationColor", "whiteSpace", "transform", "wordBreak", "tabSize", "opacity", "filter", "_viewportWidth", "_viewportHeight", "_inheritedClipPathId", "_inheritedMaskId", "_inheritedBackgroundClipTextPath"]); +function Tn(e) { let t = {}; for (let n in e) - of.has(n) && (t[n] = e[n]); + tf.has(n) && (t[n] = e[n]); return t; } -c(); -c(); -function sf(e, t) { +function nf(e, t) { try { - let n = new Ke(e); + let n = new Ye(e); switch (n.unit) { case "px": return { absolute: n.value }; @@ -15129,7 +15054,7 @@ function sf(e, t) { return {}; } } -function Pn(e, t, n) { +function An(e, t, n) { switch (e) { case "top": return { yRelative: 0 }; @@ -15142,12 +15067,12 @@ function Pn(e, t, n) { case "center": return {}; default: { - let r = sf(e, t); + let r = nf(e, t); return r.absolute ? { [n ? "xAbsolute" : "yAbsolute"]: r.absolute } : r.relative ? { [n ? "xRelative" : "yRelative"]: r.relative } : {}; } } } -function In(e, t) { +function On(e, t) { if (typeof e == "number") return { xAbsolute: e }; let n; @@ -15156,29 +15081,33 @@ function In(e, t) { } catch { return {}; } - return n.length === 1 ? Pn(n[0], t, true) : n.length === 2 ? ((n[0] === "top" || n[0] === "bottom" || n[1] === "left" || n[1] === "right") && n.reverse(), { ...Pn(n[0], t, true), ...Pn(n[1], t, false) }) : {}; + return n.length === 1 ? An(n[0], t, true) : n.length === 2 ? ((n[0] === "top" || n[0] === "bottom" || n[1] === "left" || n[1] === "right") && n.reverse(), { ...An(n[0], t, true), ...An(n[1], t, false) }) : {}; } -c(); -function Lt(e, t) { +function Rt(e, t) { let n = (0, import_css_to_react_native2.getPropertyName)(`mask-${t}`); return e[n] || e[`WebkitM${n.substring(1)}`]; } -var lf = /(?<=\))(?:\s*,\s*)/; -function bu(e) { - let t = e.maskImage || e.WebkitMaskImage, n = { position: Lt(e, "position") || "0% 0%", size: Lt(e, "size") || "100% 100%", repeat: Lt(e, "repeat") || "repeat", origin: Lt(e, "origin") || "border-box", clip: Lt(e, "origin") || "border-box" }; - return t.split(lf).reverse().map((r) => r.trim()).filter((r) => r && r !== "none").map((r) => ({ image: r, ...n })); +function uf(e) { + let t = [], n = 0, r = 0; + for (let i = 0; i < e.length; i++) + e[i] === "(" ? r++ : e[i] === ")" && r--, r === 0 && e[i] === "," && (t.push(e.slice(n, i).trim()), n = i + 1); + return t.push(e.slice(n).trim()), t; +} +function hu(e) { + let t = e.maskImage || e.WebkitMaskImage, n = { position: Rt(e, "position") || "0% 0%", size: Rt(e, "size") || "100% 100%", repeat: Rt(e, "repeat") || "repeat", origin: Rt(e, "origin") || "border-box", clip: Rt(e, "origin") || "border-box" }; + return uf(t).filter((i) => i && i !== "none").reverse().map((i) => ({ image: i, ...n })); } -var hf = /* @__PURE__ */ new Set(["flex", "flexGrow", "flexShrink", "flexBasis", "fontWeight", "lineHeight", "opacity", "scale", "scaleX", "scaleY"]); -var mf = /* @__PURE__ */ new Set(["lineHeight"]); -function Df(e, t, n, r) { +var cf = /* @__PURE__ */ new Set(["flex", "flexGrow", "flexShrink", "flexBasis", "fontWeight", "lineHeight", "opacity", "scale", "scaleX", "scaleY"]); +var df = /* @__PURE__ */ new Set(["lineHeight"]); +function pf(e, t, n, r) { return e === "textDecoration" && !n.includes(t.textDecorationColor) && (t.textDecorationColor = r), t; } -function Mt(e, t) { - return typeof t == "number" ? hf.has(e) ? mf.has(e) ? t : String(t) : t + "px" : t; +function Lt(e, t) { + return typeof t == "number" ? cf.has(e) ? df.has(e) ? t : String(t) : t + "px" : t; } -function gf(e, t, n) { +function hf(e, t, n) { if (e === "lineHeight") - return { lineHeight: Mt(e, t) }; + return { lineHeight: Lt(e, t) }; if (e === "fontFamily") return { fontFamily: t.split(",").map((r) => r.trim().replace(/(^['"])|(['"]$)/g, "").toLocaleLowerCase()) }; if (e === "borderRadius") { @@ -15186,13 +15115,13 @@ function gf(e, t, n) { return; let [r, i] = t.split("/"), o = (0, import_css_to_react_native.getStylesForProperty)(e, r, true), u = (0, import_css_to_react_native.getStylesForProperty)(e, i, true); for (let s in o) - u[s] = Mt(e, o[s]) + " " + Mt(e, u[s]); + u[s] = Lt(e, o[s]) + " " + Lt(e, u[s]); return u; } if (/^border(Top|Right|Bottom|Left)?$/.test(e)) { let r = (0, import_css_to_react_native.getStylesForProperty)("border", t, true); r.borderWidth === 1 && !String(t).includes("1px") && (r.borderWidth = 3), r.borderColor === "black" && !String(t).includes("black") && (r.borderColor = n); - let i = { Width: Mt(e + "Width", r.borderWidth), Style: Fe(r.borderStyle, { solid: "solid", dashed: "dashed" }, "solid", e + "Style"), Color: r.borderColor }, o = {}; + let i = { Width: Lt(e + "Width", r.borderWidth), Style: ve(r.borderStyle, { solid: "solid", dashed: "dashed" }, "solid", e + "Style"), Color: r.borderColor }, o = {}; for (let u of e === "border" ? ["Top", "Right", "Bottom", "Left"] : [e.slice(6)]) for (let s in i) o["border" + u + s] = i[s]; @@ -15218,7 +15147,7 @@ function gf(e, t, n) { if (e === "background") return t = t.toString().trim(), /^(linear-gradient|radial-gradient|url)\(/.test(t) ? (0, import_css_to_react_native.getStylesForProperty)("backgroundImage", t, true) : (0, import_css_to_react_native.getStylesForProperty)("background", t, true); if (e === "textShadow" && (t = t.toString().trim(), t.includes(","))) { - let r = bf(t), i = {}; + let r = mf(t), i = {}; for (let o of r) { let u = (0, import_css_to_react_native.getStylesForProperty)("textShadow", o, true); for (let s in u) @@ -15227,7 +15156,7 @@ function gf(e, t, n) { return i; } } -function bf(e) { +function mf(e) { let t = [], n = false, r = 0, i = e.length; for (let o = 0; o < i; ++o) { let u = e[o]; @@ -15235,24 +15164,24 @@ function bf(e) { } return t.push(e.substring(r, i)), t.map((o) => o.trim()); } -function vu(e) { +function mu(e) { return e === "transform" ? " Only absolute lengths such as `10px` are supported." : ""; } -var yu = /rgb\((\d+)\s+(\d+)\s+(\d+)\s*\/\s*([\.\d]+)\)/; -function Fu(e) { - if (typeof e == "string" && yu.test(e.trim())) - return e.trim().replace(yu, (t, n, r, i, o) => `rgba(${n}, ${r}, ${i}, ${o})`); +var Du = /rgb\((\d+)\s+(\d+)\s+(\d+)\s*\/\s*([\.\d]+)\)/; +function bu(e) { + if (typeof e == "string" && Du.test(e.trim())) + return e.trim().replace(Du, (t, n, r, i, o) => `rgba(${n}, ${r}, ${i}, ${o})`); if (typeof e == "object" && e !== null) { for (let t in e) - e[t] = Fu(e[t]); + e[t] = bu(e[t]); return e; } return e; } -function Gr(e, t) { +function qr(e, t) { let n = {}; if (e) { - let i = yf(e.color, t.color); + let i = gf(e.color, t.color); n.color = i; for (let o in e) { if (o.startsWith("_")) { @@ -15261,14 +15190,14 @@ function Gr(e, t) { } if (o === "color") continue; - let u = (0, import_css_to_react_native.getPropertyName)(o), s = Ff(e[o], i); + let u = (0, import_css_to_react_native.getPropertyName)(o), s = vf(e[o], i); try { - let a = gf(u, s, i) || Df(u, (0, import_css_to_react_native.getStylesForProperty)(u, Mt(u, s), true), s, i); + let a = hf(u, s, i) || pf(u, (0, import_css_to_react_native.getStylesForProperty)(u, Lt(u, s), true), s, i); Object.assign(n, a); } catch (a) { throw new Error(a.message + (a.message.includes(s) ? ` - ` + vu(u) : ` - in CSS rule \`${u}: ${s}\`.${vu(u)}`)); + ` + mu(u) : ` + in CSS rule \`${u}: ${s}\`.${mu(u)}`)); } } } @@ -15277,40 +15206,40 @@ function Gr(e, t) { n.backgroundImage = i; } if (n.maskImage || n.WebkitMaskImage) { - let i = bu(n); + let i = hu(n); n.maskImage = i; } - let r = vf(n.fontSize, t.fontSize); - typeof n.fontSize < "u" && (n.fontSize = r), n.transformOrigin && (n.transformOrigin = In(n.transformOrigin, r)); + let r = Df(n.fontSize, t.fontSize); + typeof n.fontSize < "u" && (n.fontSize = r), n.transformOrigin && (n.transformOrigin = On(n.transformOrigin, r)); for (let i in n) { let o = n[i]; if (i === "lineHeight") - typeof o == "string" && (o = n[i] = G(o, r, r, t, true) / r); + typeof o == "string" && (o = n[i] = U(o, r, r, t, true) / r); else { if (typeof o == "string") { - let u = G(o, r, r, t); + let u = U(o, r, r, t); typeof u < "u" && (n[i] = u), o = n[i]; } if (typeof o == "string" || typeof o == "object") { - let u = Fu(o); + let u = bu(o); u && (n[i] = u), o = n[i]; } } if (i === "opacity" && (o = n[i] = o * t.opacity), i === "transform") { let u = o; for (let s of u) { - let a = Object.keys(s)[0], l = s[a], f = typeof l == "string" ? G(l, r, r, t) ?? l : l; + let a = Object.keys(s)[0], l = s[a], f = typeof l == "string" ? U(l, r, r, t) ?? l : l; s[a] = f; } } } return n; } -function vf(e, t) { +function Df(e, t) { if (typeof e == "number") return e; try { - let n = new Ke(e); + let n = new Ye(e); switch (n.unit) { case "em": return n.value * t; @@ -15321,46 +15250,43 @@ function vf(e, t) { return t; } } -function xu(e) { +function gu(e) { if (e.startsWith("hsl")) { let t = index_esm_default(e), [n, r, i] = t.values; return `hsl(${[n, `${r}%`, `${i}%`].concat(t.alpha === 1 ? [] : [t.alpha]).join(",")})`; } return e; } -function yf(e, t) { - return e && e.toLowerCase() !== "currentcolor" ? xu(e) : xu(t); +function gf(e, t) { + return e && e.toLowerCase() !== "currentcolor" ? gu(e) : gu(t); } -function xf(e, t) { +function bf(e, t) { return e.replace(/currentcolor/gi, t); } -function Ff(e, t) { - return $r(e) && (e = xf(e, t)), e; +function vf(e, t) { + return Lr(e) && (e = bf(e, t)), e; } -async function Bn(e, t, n, r, i) { - let o = await Ge(), u = { ...n, ...Gr(gu[t], n), ...Gr(r, n) }; +async function Pn(e, t, n, r, i) { + let o = await qe(), u = { ...n, ...qr(pu[t], n), ...qr(r, n) }; if (t === "img") { - let [s, a, l] = await Ft(i.src); + let [s, a, l] = await yt(i.src); if (a === void 0 && l === void 0) { if (i.width === void 0 || i.height === void 0) throw new Error("Image size cannot be determined. Please provide the width and height of the image."); a = parseInt(i.width), l = parseInt(i.height); } - let f = l / a, d = (u.borderLeftWidth || 0) + (u.borderRightWidth || 0) + (u.paddingLeft || 0) + (u.paddingRight || 0), h = (u.borderTopWidth || 0) + (u.borderBottomWidth || 0) + (u.paddingTop || 0) + (u.paddingBottom || 0), m = u.width || i.width, p = u.height || i.height, D = typeof m == "number" && typeof p == "number"; - D && (m -= d, p -= h), m === void 0 && p === void 0 ? (m = "100%", e.setAspectRatio(1 / f)) : m === void 0 ? typeof p == "number" ? m = p / f : e.setAspectRatio(1 / f) : p === void 0 && (typeof m == "number" ? p = m * f : e.setAspectRatio(1 / f)), u.width = D ? m + d : m, u.height = D ? p + h : p, u.__src = s; + let f = l / a, c = (u.borderLeftWidth || 0) + (u.borderRightWidth || 0) + (u.paddingLeft || 0) + (u.paddingRight || 0), p = (u.borderTopWidth || 0) + (u.borderBottomWidth || 0) + (u.paddingTop || 0) + (u.paddingBottom || 0), h = u.width || i.width, d = u.height || i.height, m = typeof h == "number" && typeof d == "number"; + m && (h -= c, d -= p), h === void 0 && d === void 0 ? (h = "100%", e.setAspectRatio(1 / f)) : h === void 0 ? typeof d == "number" ? h = d / f : e.setAspectRatio(1 / f) : d === void 0 && (typeof h == "number" ? d = h * f : e.setAspectRatio(1 / f)), u.width = m ? h + c : h, u.height = m ? d + p : d, u.__src = s; } if (t === "svg") { - let s = i.viewBox || i.viewbox, a = xt(s), l = a ? a[3] / a[2] : null, { width: f, height: d } = i; - typeof f > "u" && d ? l == null ? f = 0 : typeof d == "string" && d.endsWith("%") ? f = parseInt(d) / l + "%" : (d = G(d, n.fontSize, 1, n), f = d / l) : typeof d > "u" && f ? l == null ? f = 0 : typeof f == "string" && f.endsWith("%") ? d = parseInt(f) * l + "%" : (f = G(f, n.fontSize, 1, n), d = f * l) : (typeof f < "u" && (f = G(f, n.fontSize, 1, n) || f), typeof d < "u" && (d = G(d, n.fontSize, 1, n) || d), f || (f = a == null ? void 0 : a[2]), d || (d = a == null ? void 0 : a[3])), !u.width && f && (u.width = f), !u.height && d && (u.height = d); + let s = i.viewBox || i.viewbox, a = vt(s), l = a ? a[3] / a[2] : null, { width: f, height: c } = i; + typeof f > "u" && c ? l == null ? f = 0 : typeof c == "string" && c.endsWith("%") ? f = parseInt(c) / l + "%" : (c = U(c, n.fontSize, 1, n), f = c / l) : typeof c > "u" && f ? l == null ? f = 0 : typeof f == "string" && f.endsWith("%") ? c = parseInt(f) * l + "%" : (f = U(f, n.fontSize, 1, n), c = f * l) : (typeof f < "u" && (f = U(f, n.fontSize, 1, n) || f), typeof c < "u" && (c = U(c, n.fontSize, 1, n) || c), f || (f = a == null ? void 0 : a[2]), c || (c = a == null ? void 0 : a[3])), !u.width && f && (u.width = f), !u.height && c && (u.height = c); } - return e.setDisplay(Fe(u.display, { flex: o.DISPLAY_FLEX, block: o.DISPLAY_FLEX, none: o.DISPLAY_NONE, "-webkit-box": o.DISPLAY_FLEX }, o.DISPLAY_FLEX, "display")), e.setAlignContent(Fe(u.alignContent, { stretch: o.ALIGN_STRETCH, center: o.ALIGN_CENTER, "flex-start": o.ALIGN_FLEX_START, "flex-end": o.ALIGN_FLEX_END, "space-between": o.ALIGN_SPACE_BETWEEN, "space-around": o.ALIGN_SPACE_AROUND, baseline: o.ALIGN_BASELINE, normal: o.ALIGN_AUTO }, o.ALIGN_AUTO, "alignContent")), e.setAlignItems(Fe(u.alignItems, { stretch: o.ALIGN_STRETCH, center: o.ALIGN_CENTER, "flex-start": o.ALIGN_FLEX_START, "flex-end": o.ALIGN_FLEX_END, baseline: o.ALIGN_BASELINE, normal: o.ALIGN_AUTO }, o.ALIGN_STRETCH, "alignItems")), e.setAlignSelf(Fe(u.alignSelf, { stretch: o.ALIGN_STRETCH, center: o.ALIGN_CENTER, "flex-start": o.ALIGN_FLEX_START, "flex-end": o.ALIGN_FLEX_END, baseline: o.ALIGN_BASELINE, normal: o.ALIGN_AUTO }, o.ALIGN_AUTO, "alignSelf")), e.setJustifyContent(Fe(u.justifyContent, { center: o.JUSTIFY_CENTER, "flex-start": o.JUSTIFY_FLEX_START, "flex-end": o.JUSTIFY_FLEX_END, "space-between": o.JUSTIFY_SPACE_BETWEEN, "space-around": o.JUSTIFY_SPACE_AROUND }, o.JUSTIFY_FLEX_START, "justifyContent")), e.setFlexDirection(Fe(u.flexDirection, { row: o.FLEX_DIRECTION_ROW, column: o.FLEX_DIRECTION_COLUMN, "row-reverse": o.FLEX_DIRECTION_ROW_REVERSE, "column-reverse": o.FLEX_DIRECTION_COLUMN_REVERSE }, o.FLEX_DIRECTION_ROW, "flexDirection")), e.setFlexWrap(Fe(u.flexWrap, { wrap: o.WRAP_WRAP, nowrap: o.WRAP_NO_WRAP, "wrap-reverse": o.WRAP_WRAP_REVERSE }, o.WRAP_NO_WRAP, "flexWrap")), typeof u.gap < "u" && e.setGap(o.GUTTER_ALL, u.gap), typeof u.rowGap < "u" && e.setGap(o.GUTTER_ROW, u.rowGap), typeof u.columnGap < "u" && e.setGap(o.GUTTER_COLUMN, u.columnGap), typeof u.flexBasis < "u" && e.setFlexBasis(u.flexBasis), e.setFlexGrow(typeof u.flexGrow > "u" ? 0 : u.flexGrow), e.setFlexShrink(typeof u.flexShrink > "u" ? 0 : u.flexShrink), typeof u.maxHeight < "u" && e.setMaxHeight(u.maxHeight), typeof u.maxWidth < "u" && e.setMaxWidth(u.maxWidth), typeof u.minHeight < "u" && e.setMinHeight(u.minHeight), typeof u.minWidth < "u" && e.setMinWidth(u.minWidth), e.setOverflow(Fe(u.overflow, { visible: o.OVERFLOW_VISIBLE, hidden: o.OVERFLOW_HIDDEN }, o.OVERFLOW_VISIBLE, "overflow")), e.setMargin(o.EDGE_TOP, u.marginTop || 0), e.setMargin(o.EDGE_BOTTOM, u.marginBottom || 0), e.setMargin(o.EDGE_LEFT, u.marginLeft || 0), e.setMargin(o.EDGE_RIGHT, u.marginRight || 0), e.setBorder(o.EDGE_TOP, u.borderTopWidth || 0), e.setBorder(o.EDGE_BOTTOM, u.borderBottomWidth || 0), e.setBorder(o.EDGE_LEFT, u.borderLeftWidth || 0), e.setBorder(o.EDGE_RIGHT, u.borderRightWidth || 0), e.setPadding(o.EDGE_TOP, u.paddingTop || 0), e.setPadding(o.EDGE_BOTTOM, u.paddingBottom || 0), e.setPadding(o.EDGE_LEFT, u.paddingLeft || 0), e.setPadding(o.EDGE_RIGHT, u.paddingRight || 0), e.setPositionType(Fe(u.position, { absolute: o.POSITION_TYPE_ABSOLUTE, relative: o.POSITION_TYPE_RELATIVE }, o.POSITION_TYPE_RELATIVE, "position")), typeof u.top < "u" && e.setPosition(o.EDGE_TOP, u.top), typeof u.bottom < "u" && e.setPosition(o.EDGE_BOTTOM, u.bottom), typeof u.left < "u" && e.setPosition(o.EDGE_LEFT, u.left), typeof u.right < "u" && e.setPosition(o.EDGE_RIGHT, u.right), typeof u.height < "u" ? e.setHeight(u.height) : e.setHeightAuto(), typeof u.width < "u" ? e.setWidth(u.width) : e.setWidthAuto(), [u, On(u)]; + return e.setDisplay(ve(u.display, { flex: o.DISPLAY_FLEX, block: o.DISPLAY_FLEX, none: o.DISPLAY_NONE, "-webkit-box": o.DISPLAY_FLEX }, o.DISPLAY_FLEX, "display")), e.setAlignContent(ve(u.alignContent, { stretch: o.ALIGN_STRETCH, center: o.ALIGN_CENTER, "flex-start": o.ALIGN_FLEX_START, "flex-end": o.ALIGN_FLEX_END, "space-between": o.ALIGN_SPACE_BETWEEN, "space-around": o.ALIGN_SPACE_AROUND, baseline: o.ALIGN_BASELINE, normal: o.ALIGN_AUTO }, o.ALIGN_AUTO, "alignContent")), e.setAlignItems(ve(u.alignItems, { stretch: o.ALIGN_STRETCH, center: o.ALIGN_CENTER, "flex-start": o.ALIGN_FLEX_START, "flex-end": o.ALIGN_FLEX_END, baseline: o.ALIGN_BASELINE, normal: o.ALIGN_AUTO }, o.ALIGN_STRETCH, "alignItems")), e.setAlignSelf(ve(u.alignSelf, { stretch: o.ALIGN_STRETCH, center: o.ALIGN_CENTER, "flex-start": o.ALIGN_FLEX_START, "flex-end": o.ALIGN_FLEX_END, baseline: o.ALIGN_BASELINE, normal: o.ALIGN_AUTO }, o.ALIGN_AUTO, "alignSelf")), e.setJustifyContent(ve(u.justifyContent, { center: o.JUSTIFY_CENTER, "flex-start": o.JUSTIFY_FLEX_START, "flex-end": o.JUSTIFY_FLEX_END, "space-between": o.JUSTIFY_SPACE_BETWEEN, "space-around": o.JUSTIFY_SPACE_AROUND }, o.JUSTIFY_FLEX_START, "justifyContent")), e.setFlexDirection(ve(u.flexDirection, { row: o.FLEX_DIRECTION_ROW, column: o.FLEX_DIRECTION_COLUMN, "row-reverse": o.FLEX_DIRECTION_ROW_REVERSE, "column-reverse": o.FLEX_DIRECTION_COLUMN_REVERSE }, o.FLEX_DIRECTION_ROW, "flexDirection")), e.setFlexWrap(ve(u.flexWrap, { wrap: o.WRAP_WRAP, nowrap: o.WRAP_NO_WRAP, "wrap-reverse": o.WRAP_WRAP_REVERSE }, o.WRAP_NO_WRAP, "flexWrap")), typeof u.gap < "u" && e.setGap(o.GUTTER_ALL, u.gap), typeof u.rowGap < "u" && e.setGap(o.GUTTER_ROW, u.rowGap), typeof u.columnGap < "u" && e.setGap(o.GUTTER_COLUMN, u.columnGap), typeof u.flexBasis < "u" && e.setFlexBasis(u.flexBasis), e.setFlexGrow(typeof u.flexGrow > "u" ? 0 : u.flexGrow), e.setFlexShrink(typeof u.flexShrink > "u" ? 0 : u.flexShrink), typeof u.maxHeight < "u" && e.setMaxHeight(u.maxHeight), typeof u.maxWidth < "u" && e.setMaxWidth(u.maxWidth), typeof u.minHeight < "u" && e.setMinHeight(u.minHeight), typeof u.minWidth < "u" && e.setMinWidth(u.minWidth), e.setOverflow(ve(u.overflow, { visible: o.OVERFLOW_VISIBLE, hidden: o.OVERFLOW_HIDDEN }, o.OVERFLOW_VISIBLE, "overflow")), e.setMargin(o.EDGE_TOP, u.marginTop || 0), e.setMargin(o.EDGE_BOTTOM, u.marginBottom || 0), e.setMargin(o.EDGE_LEFT, u.marginLeft || 0), e.setMargin(o.EDGE_RIGHT, u.marginRight || 0), e.setBorder(o.EDGE_TOP, u.borderTopWidth || 0), e.setBorder(o.EDGE_BOTTOM, u.borderBottomWidth || 0), e.setBorder(o.EDGE_LEFT, u.borderLeftWidth || 0), e.setBorder(o.EDGE_RIGHT, u.borderRightWidth || 0), e.setPadding(o.EDGE_TOP, u.paddingTop || 0), e.setPadding(o.EDGE_BOTTOM, u.paddingBottom || 0), e.setPadding(o.EDGE_LEFT, u.paddingLeft || 0), e.setPadding(o.EDGE_RIGHT, u.paddingRight || 0), e.setPositionType(ve(u.position, { absolute: o.POSITION_TYPE_ABSOLUTE, relative: o.POSITION_TYPE_RELATIVE }, o.POSITION_TYPE_RELATIVE, "position")), typeof u.top < "u" && e.setPosition(o.EDGE_TOP, u.top), typeof u.bottom < "u" && e.setPosition(o.EDGE_BOTTOM, u.bottom), typeof u.left < "u" && e.setPosition(o.EDGE_LEFT, u.left), typeof u.right < "u" && e.setPosition(o.EDGE_RIGHT, u.right), typeof u.height < "u" ? e.setHeight(u.height) : e.setHeightAuto(), typeof u.width < "u" ? e.setWidth(u.width) : e.setWidthAuto(), [u, Tn(u)]; } -c(); -c(); -c(); -var wu = [1, 0, 0, 1, 0, 0]; -function wf(e, t, n) { - let r = [...wu]; +var vu = [1, 0, 0, 1, 0, 0]; +function yf(e, t, n) { + let r = [...vu]; for (let i of e) { let o = Object.keys(i)[0], u = i[o]; if (typeof u == "string") @@ -15370,7 +15296,7 @@ function wf(e, t, n) { u = parseFloat(u) / 100 * n, i[o] = u; else throw new Error(`Invalid transform: "${o}: ${u}".`); - let s = u, a = [...wu]; + let s = u, a = [...vu]; switch (o) { case "translateX": a[4] = s; @@ -15388,8 +15314,8 @@ function wf(e, t, n) { a[3] = s; break; case "rotate": { - let l = s * Math.PI / 180, f = Math.cos(l), d = Math.sin(l); - a[0] = f, a[1] = d, a[2] = -d, a[3] = f; + let l = s * Math.PI / 180, f = Math.cos(l), c = Math.sin(l); + a[0] = f, a[1] = c, a[2] = -c, a[3] = f; break; } case "skewX": @@ -15399,275 +15325,274 @@ function wf(e, t, n) { a[1] = Math.tan(s * Math.PI / 180); break; } - r = Rt(a, r); + r = It(a, r); } e.splice(0, e.length), e.push(...r), e.__resolved = true; } -function Nt({ left: e, top: t, width: n, height: r }, i, o, u) { +function Mt({ left: e, top: t, width: n, height: r }, i, o, u) { let s; - i.__resolved || wf(i, n, r); + i.__resolved || yf(i, n, r); let a = i; if (o) s = a; else { - let l = (u == null ? void 0 : u.xAbsolute) ?? ((u == null ? void 0 : u.xRelative) ?? 50) * n / 100, f = (u == null ? void 0 : u.yAbsolute) ?? ((u == null ? void 0 : u.yRelative) ?? 50) * r / 100, d = e + l, h = t + f; - s = Rt([1, 0, 0, 1, d, h], Rt(a, [1, 0, 0, 1, -d, -h])), a.__parent && (s = Rt(a.__parent, s)), a.splice(0, 6, ...s); + let l = (u == null ? void 0 : u.xAbsolute) ?? ((u == null ? void 0 : u.xRelative) ?? 50) * n / 100, f = (u == null ? void 0 : u.yAbsolute) ?? ((u == null ? void 0 : u.yRelative) ?? 50) * r / 100, c = e + l, p = t + f; + s = It([1, 0, 0, 1, c, p], It(a, [1, 0, 0, 1, -c, -p])), a.__parent && (s = It(a.__parent, s)), a.splice(0, 6, ...s); } return `matrix(${s.map((l) => l.toFixed(2)).join(",")})`; } -function Cu({ left: e, top: t, width: n, height: r, isInheritingTransform: i }, o) { +function xu({ left: e, top: t, width: n, height: r, isInheritingTransform: i }, o) { let u = "", s = 1; - return o.transform && (u = Nt({ left: e, top: t, width: n, height: r }, o.transform, i, o.transformOrigin)), o.opacity !== void 0 && (s = +o.opacity), { matrix: u, opacity: s }; + return o.transform && (u = Mt({ left: e, top: t, width: n, height: r }, o.transform, i, o.transformOrigin)), o.opacity !== void 0 && (s = +o.opacity), { matrix: u, opacity: s }; } -function Rn({ id: e, content: t, filter: n, left: r, top: i, width: o, height: u, matrix: s, opacity: a, image: l, clipPathId: f, debug: d, shape: h, decorationShape: m }, p) { - let D = ""; - if (d && (D = k("rect", { x: r, y: i - u, width: o, height: u, fill: "transparent", stroke: "#575eff", "stroke-width": 1, transform: s || void 0, "clip-path": f ? `url(#${f})` : void 0 })), l) { - let b = { href: l, x: r, y: i, width: o, height: u, transform: s || void 0, "clip-path": f ? `url(#${f})` : void 0, style: p.filter ? `filter:${p.filter}` : void 0 }; - return [(n ? `${n}` : "") + k("image", { ...b, opacity: a !== 1 ? a : void 0 }) + (m || "") + (n ? "" : "") + D, ""]; +function Bn({ id: e, content: t, filter: n, left: r, top: i, width: o, height: u, matrix: s, opacity: a, image: l, clipPathId: f, debug: c, shape: p, decorationShape: h }, d) { + let m = ""; + if (c && (m = C("rect", { x: r, y: i - u, width: o, height: u, fill: "transparent", stroke: "#575eff", "stroke-width": 1, transform: s || void 0, "clip-path": f ? `url(#${f})` : void 0 })), l) { + let g = { href: l, x: r, y: i, width: o, height: u, transform: s || void 0, "clip-path": f ? `url(#${f})` : void 0, style: d.filter ? `filter:${d.filter}` : void 0 }; + return [(n ? `${n}` : "") + C("image", { ...g, opacity: a !== 1 ? a : void 0 }) + (h || "") + (n ? "" : "") + m, ""]; } - let F = { x: r, y: i, width: o, height: u, "font-weight": p.fontWeight, "font-style": p.fontStyle, "font-size": p.fontSize, "font-family": p.fontFamily, "letter-spacing": p.letterSpacing || void 0, transform: s || void 0, "clip-path": f ? `url(#${f})` : void 0, style: p.filter ? `filter:${p.filter}` : void 0 }; - return [(n ? `${n}` : "") + k("text", { ...F, fill: p.color, opacity: a !== 1 ? a : void 0 }, (0, import_escape_html.default)(t)) + (m || "") + (n ? "" : "") + D, h ? k("text", F, (0, import_escape_html.default)(t)) : ""]; + let v = { x: r, y: i, width: o, height: u, "font-weight": d.fontWeight, "font-style": d.fontStyle, "font-size": d.fontSize, "font-family": d.fontFamily, "letter-spacing": d.letterSpacing || void 0, transform: s || void 0, "clip-path": f ? `url(#${f})` : void 0, style: d.filter ? `filter:${d.filter}` : void 0 }; + return [(n ? `${n}` : "") + C("text", { ...v, fill: d.color, opacity: a !== 1 ? a : void 0 }, (0, import_escape_html.default)(t)) + (h || "") + (n ? "" : "") + m, p ? C("text", v, (0, import_escape_html.default)(t)) : ""]; } -c(); -function Ef(e, t, n) { +function xf(e, t, n) { return e.replace(/([MA])([0-9.-]+),([0-9.-]+)/g, function(r, i, o, u) { return i + (parseFloat(o) + t) + "," + (parseFloat(u) + n); }); } -var jr = 1.1; -function _u({ id: e, width: t, height: n }, r) { +var Ur = 1.1; +function Fu({ id: e, width: t, height: n }, r) { if (!r.shadowColor || !r.shadowOffset || typeof r.shadowRadius > "u") return ""; let i = r.shadowColor.length, o = "", u = "", s = 0, a = t, l = 0, f = n; - for (let d = 0; d < i; d++) { - let h = r.shadowRadius[d] * r.shadowRadius[d] / 4; - s = Math.min(r.shadowOffset[d].width - h, s), a = Math.max(r.shadowOffset[d].width + h + t, a), l = Math.min(r.shadowOffset[d].height - h, l), f = Math.max(r.shadowOffset[d].height + h + n, f), o += k("feDropShadow", { dx: r.shadowOffset[d].width, dy: r.shadowOffset[d].height, stdDeviation: r.shadowRadius[d] / 2, "flood-color": r.shadowColor[d], "flood-opacity": 1, ...i > 1 ? { in: "SourceGraphic", result: `satori_s-${e}-result-${d}` } : {} }), i > 1 && (u = k("feMergeNode", { in: `satori_s-${e}-result-${d}` }) + u); + for (let c = 0; c < i; c++) { + let p = r.shadowRadius[c] * r.shadowRadius[c] / 4; + s = Math.min(r.shadowOffset[c].width - p, s), a = Math.max(r.shadowOffset[c].width + p + t, a), l = Math.min(r.shadowOffset[c].height - p, l), f = Math.max(r.shadowOffset[c].height + p + n, f), o += C("feDropShadow", { dx: r.shadowOffset[c].width, dy: r.shadowOffset[c].height, stdDeviation: r.shadowRadius[c] / 2, "flood-color": r.shadowColor[c], "flood-opacity": 1, ...i > 1 ? { in: "SourceGraphic", result: `satori_s-${e}-result-${c}` } : {} }), i > 1 && (u = C("feMergeNode", { in: `satori_s-${e}-result-${c}` }) + u); } - return k("filter", { id: `satori_s-${e}`, x: (s / t * 100 * jr).toFixed(2) + "%", y: (l / n * 100 * jr).toFixed(2) + "%", width: ((a - s) / t * 100 * jr).toFixed(2) + "%", height: ((f - l) / n * 100 * jr).toFixed(2) + "%" }, o + (u ? k("feMerge", {}, u) : "")); + return C("filter", { id: `satori_s-${e}`, x: (s / t * 100 * Ur).toFixed(2) + "%", y: (l / n * 100 * Ur).toFixed(2) + "%", width: ((a - s) / t * 100 * Ur).toFixed(2) + "%", height: ((f - l) / n * 100 * Ur).toFixed(2) + "%" }, o + (u ? C("feMerge", {}, u) : "")); } -function Su({ width: e, height: t, shape: n, opacity: r, id: i }, o) { +function wu({ width: e, height: t, shape: n, opacity: r, id: i }, o) { if (!o.boxShadow) return null; let u = "", s = ""; for (let a = o.boxShadow.length - 1; a >= 0; a--) { let l = "", f = o.boxShadow[a]; f.spreadRadius && f.inset && (f.spreadRadius = -f.spreadRadius); - let d = f.blurRadius * f.blurRadius / 4 + (f.spreadRadius || 0), h = Math.min(-d - (f.inset ? f.offsetX : 0), 0), m = Math.max(d + e - (f.inset ? f.offsetX : 0), e), p = Math.min(-d - (f.inset ? f.offsetY : 0), 0), D = Math.max(d + t - (f.inset ? f.offsetY : 0), t), F = `satori_s-${i}-${a}`, b = `satori_ms-${i}-${a}`, v = f.spreadRadius ? n.replace('stroke-width="0"', `stroke-width="${f.spreadRadius * 2}"`) : n; - l += k("mask", { id: b, maskUnits: "userSpaceOnUse" }, k("rect", { x: 0, y: 0, width: o._viewportWidth || "100%", height: o._viewportHeight || "100%", fill: f.inset ? "#000" : "#fff" }) + v.replace('fill="#fff"', f.inset ? 'fill="#fff"' : 'fill="#000"').replace('stroke="#fff"', "")); - let E = v.replace(/d="([^"]+)"/, (C, w) => 'd="' + Ef(w, f.offsetX, f.offsetY) + '"').replace(/x="([^"]+)"/, (C, w) => 'x="' + (parseFloat(w) + f.offsetX) + '"').replace(/y="([^"]+)"/, (C, w) => 'y="' + (parseFloat(w) + f.offsetY) + '"'); - f.spreadRadius && f.spreadRadius < 0 && (l += k("mask", { id: b + "-neg", maskUnits: "userSpaceOnUse" }, E.replace('stroke="#fff"', 'stroke="#000"').replace(/stroke-width="[^"]+"/, `stroke-width="${-f.spreadRadius * 2}"`))), f.spreadRadius && f.spreadRadius < 0 && (E = k("g", { mask: `url(#${b}-neg)` }, E)), l += k("defs", {}, k("filter", { id: F, x: `${h / e * 100}%`, y: `${p / t * 100}%`, width: `${(m - h) / e * 100}%`, height: `${(D - p) / t * 100}%` }, k("feGaussianBlur", { stdDeviation: f.blurRadius / 2, result: "b" }) + k("feFlood", { "flood-color": f.color, in: "SourceGraphic", result: "f" }) + k("feComposite", { in: "f", in2: "b", operator: f.inset ? "out" : "in" }))) + k("g", { mask: `url(#${b})`, filter: `url(#${F})`, opacity: r }, E), f.inset ? s += l : u += l; + let c = f.blurRadius * f.blurRadius / 4 + (f.spreadRadius || 0), p = Math.min(-c - (f.inset ? f.offsetX : 0), 0), h = Math.max(c + e - (f.inset ? f.offsetX : 0), e), d = Math.min(-c - (f.inset ? f.offsetY : 0), 0), m = Math.max(c + t - (f.inset ? f.offsetY : 0), t), v = `satori_s-${i}-${a}`, g = `satori_ms-${i}-${a}`, b = f.spreadRadius ? n.replace('stroke-width="0"', `stroke-width="${f.spreadRadius * 2}"`) : n; + l += C("mask", { id: g, maskUnits: "userSpaceOnUse" }, C("rect", { x: 0, y: 0, width: o._viewportWidth || "100%", height: o._viewportHeight || "100%", fill: f.inset ? "#000" : "#fff" }) + b.replace('fill="#fff"', f.inset ? 'fill="#fff"' : 'fill="#000"').replace('stroke="#fff"', "")); + let x = b.replace(/d="([^"]+)"/, (F, y) => 'd="' + xf(y, f.offsetX, f.offsetY) + '"').replace(/x="([^"]+)"/, (F, y) => 'x="' + (parseFloat(y) + f.offsetX) + '"').replace(/y="([^"]+)"/, (F, y) => 'y="' + (parseFloat(y) + f.offsetY) + '"'); + f.spreadRadius && f.spreadRadius < 0 && (l += C("mask", { id: g + "-neg", maskUnits: "userSpaceOnUse" }, x.replace('stroke="#fff"', 'stroke="#000"').replace(/stroke-width="[^"]+"/, `stroke-width="${-f.spreadRadius * 2}"`))), f.spreadRadius && f.spreadRadius < 0 && (x = C("g", { mask: `url(#${g}-neg)` }, x)), l += C("defs", {}, C("filter", { id: v, x: `${p / e * 100}%`, y: `${d / t * 100}%`, width: `${(h - p) / e * 100}%`, height: `${(m - d) / t * 100}%` }, C("feGaussianBlur", { stdDeviation: f.blurRadius / 2, result: "b" }) + C("feFlood", { "flood-color": f.color, in: "SourceGraphic", result: "f" }) + C("feComposite", { in: "f", in2: "b", operator: f.inset ? "out" : "in" }))) + C("g", { mask: `url(#${g})`, filter: `url(#${v})`, opacity: r }, x), f.inset ? s += l : u += l; } return [u, s]; } -c(); -function Ln({ width: e, left: t, top: n, ascender: r, clipPathId: i }, o) { +function In({ width: e, left: t, top: n, ascender: r, clipPathId: i }, o) { let { textDecorationColor: u, textDecorationStyle: s, textDecorationLine: a, fontSize: l } = o; if (!a || a === "none") return ""; - let f = Math.max(1, l * 0.1), d = a === "line-through" ? n + r * 0.5 : a === "underline" ? n + r * 1.1 : n, h = s === "dashed" ? `${f * 1.2} ${f * 2}` : s === "dotted" ? `0 ${f * 2}` : void 0; - return k("line", { x1: t, y1: d, x2: t + e, y2: d, stroke: u, "stroke-width": f, "stroke-dasharray": h, "stroke-linecap": s === "dotted" ? "round" : "square", "clip-path": i ? `url(#${i})` : void 0 }); + let f = Math.max(1, l * 0.1), c = a === "line-through" ? n + r * 0.5 : a === "underline" ? n + r * 1.1 : n, p = s === "dashed" ? `${f * 1.2} ${f * 2}` : s === "dotted" ? `0 ${f * 2}` : void 0; + return C("line", { x1: t, y1: c, x2: t + e, y2: c, stroke: u, "stroke-width": f, "stroke-dasharray": p, "stroke-linecap": s === "dotted" ? "round" : "square", "clip-path": i ? `url(#${i})` : void 0 }); } -c(); -function Mn(e) { +function Rn(e) { return e = e.replace("U+", "0x"), String.fromCodePoint(Number(e)); } -var $t = Mn("U+0020"); -var Nn = Mn("U+0009"); -var Wt = Mn("U+2026"); -var Cf = /* @__PURE__ */ new Set([Nn]); -function _f(e) { - return Cf.has(e); -} -async function* $n(e, t) { - let n = await Ge(), { parentStyle: r, inheritedStyle: i, parent: o, font: u, id: s, isInheritingTransform: a, debug: l, embedFont: f, graphemeImages: d, locale: h, canLoadAdditionalAssets: m } = t, { textAlign: p, whiteSpace: D, wordBreak: F, lineHeight: b, textTransform: v, textWrap: E, fontSize: C, filter: w, tabSize: O = 8, _inheritedBackgroundClipTextPath: R } = r; - e = Sf(e, v, h); - let { content: L, shouldCollapseTabsAndSpaces: Y, allowSoftWrap: se } = Af(e, D), { words: ae, requiredBreaks: le, allowBreakWord: q } = Tf(L, F), [$, J] = kf(r, se), he = Of(n, p); - o.insertChild(he, o.getChildCount()), su(r.flexShrink) && o.setFlexShrink(1); - let X = u.getEngine(C, b, r, h), re = m ? Se(L, "grapheme").filter((M) => !_f(M) && !X.has(M)) : []; - yield re.map((M) => ({ word: M, locale: h })), re.length && (X = u.getEngine(C, b, r, h)); - function ce(M) { - return !!(d && d[M]); - } - let be = Pf(X, r); - function I(M) { - let U = 0; - for (let V of M) - ce(V) ? U += C : U += be(V); - return U; - } - function B(M) { - return I(Se(M, "grapheme")); - } - let W = $r(O) ? G(O, C, 1, r) : be($t) * O, N = (M, U) => { - if (M.length === 0) - return { originWidth: 0, endingSpacesWidth: 0, text: M }; - let { index: V, tabCount: z } = If(M), ue = 0, Q = ""; - if (z > 0) { - Q = M.slice(0, V); - let me = M.slice(V + z), ne = B(Q), De = ne + U; - ue = (W === 0 ? ne : (Math.floor(De / W) + z) * W) + B(me); +var Nt = Rn("U+0020"); +var Ln = Rn("U+0009"); +var $t = Rn("U+2026"); +var Ff = /* @__PURE__ */ new Set([Ln]); +function wf(e) { + return Ff.has(e); +} +async function* Mn(e, t) { + let n = await qe(), { parentStyle: r, inheritedStyle: i, parent: o, font: u, id: s, isInheritingTransform: a, debug: l, embedFont: f, graphemeImages: c, locale: p, canLoadAdditionalAssets: h } = t, { textAlign: d, whiteSpace: m, wordBreak: v, lineHeight: g, textTransform: b, textWrap: x, fontSize: F, filter: y, tabSize: k = 8, _inheritedBackgroundClipTextPath: P } = r; + e = Ef(e, b, p); + let { content: B, shouldCollapseTabsAndSpaces: H, allowSoftWrap: oe } = Sf(e, m), { words: ue, requiredBreaks: se, allowBreakWord: $ } = _f(B, v), [L, X] = Cf(r, oe), ce = kf(n, d); + o.insertChild(ce, o.getChildCount()), nu(r.flexShrink) && o.setFlexShrink(1); + let V = u.getEngine(F, g, r, p), Z = h ? we(B, "grapheme").filter((I) => !wf(I) && !V.has(I)) : []; + yield Z.map((I) => ({ word: I, locale: p })), Z.length && (V = u.getEngine(F, g, r, p)); + function le(I) { + return !!(c && c[I]); + } + let he = Tf(V, r); + function A(I) { + let W = 0; + for (let j of I) + le(j) ? W += F : W += he(j); + return W; + } + function O(I) { + return A(we(I, "grapheme")); + } + let M = Lr(k) ? U(k, F, 1, r) : he(Nt) * k, R = (I, W) => { + if (I.length === 0) + return { originWidth: 0, endingSpacesWidth: 0, text: I }; + let { index: j, tabCount: q } = Af(I), ne = 0, Y = ""; + if (q > 0) { + Y = I.slice(0, j); + let de = I.slice(j + q), ee = O(Y), Ie = ee + W; + ne = (M === 0 ? ee : (Math.floor(Ie / M) + q) * M) + O(de); } else - ue = B(M); - let ve = M.trimEnd() === M ? ue : B(M.trimEnd()); - return { originWidth: ue, endingSpacesWidth: ue - ve, text: M }; - }, fe = [], xe = [], Ne = [], ht = [], Tt = []; - function vn(M) { - let U = 0, V = 0, z = -1, ue = 0, Q = 0, ve = 0, me = 0; - fe = [], Ne = [0], ht = [], Tt = []; - let ne = 0; - for (; ne < ae.length && U < $; ) { - let De = ae[ne], K = le[ne], _e = 0, Ir = 0, { originWidth: it, endingSpacesWidth: Pt, text: ot } = N(De, Q); - De = ot, _e = it, Ir = Pt, K && ve === 0 && (ve = X.height(De)); - let de = ",.!?:-@)>]}%#".indexOf(De[0]) < 0, ye = !Q, ut = ne && de && Q + _e > M + Ir && se; - if (q && _e > M && (!Q || ut || K)) { - let Be = Se(De, "grapheme"); - ae.splice(ne, 1, ...Be), Q > 0 && (fe.push(Q), xe.push(me), U++, ue += ve, Q = 0, ve = 0, me = 0, Ne.push(1), z = -1); + ne = O(I); + let me = I.trimEnd() === I ? ne : O(I.trimEnd()); + return { originWidth: ne, endingSpacesWidth: ne - me, text: I }; + }, ae = [], be = [], Be = [], dt = [], St = []; + function Dn(I) { + let W = 0, j = 0, q = -1, ne = 0, Y = 0, me = 0, de = 0; + ae = [], Be = [0], dt = [], St = []; + let ee = 0, Ie = 0; + for (; ee < ue.length && W < L; ) { + let N = ue[ee], tt = se[ee], Ee = 0, { originWidth: rt, endingSpacesWidth: At, text: nt } = R(N, Y); + N = nt, Ee = rt; + let ie = At; + tt && me === 0 && (me = V.height(N)); + let De = ",.!?:-@)>]}%#".indexOf(N[0]) < 0, Ve = !Y, Pr = ee && De && Y + Ee > I + ie && oe; + if ($ && Ee > I && (!Y || Pr || tt)) { + let ge = we(N, "grapheme"); + ue.splice(ee, 1, ...ge), Y > 0 && (ae.push(Y - Ie), be.push(de), W++, ne += me, Y = 0, me = 0, de = 0, Be.push(1), q = -1), Ie = ie; continue; } - if (K || ut) - Y && De === " " && (_e = 0), fe.push(Q), xe.push(me), U++, ue += ve, Q = _e, ve = _e ? X.height(De) : 0, me = _e ? X.baseline(De) : 0, Ne.push(1), z = -1, K || (V = Math.max(V, M)); + if (tt || Pr) + H && N === " " && (Ee = 0), ae.push(Y - Ie), be.push(de), W++, ne += me, Y = Ee, me = Ee ? V.height(N) : 0, de = Ee ? V.baseline(N) : 0, Be.push(1), q = -1, tt || (j = Math.max(j, I)); else { - Q += _e; - let Be = X.height(De); - Be > ve && (ve = Be, me = X.baseline(De)), ye && Ne[Ne.length - 1]++; + Y += Ee; + let ge = V.height(N); + ge > me && (me = ge, de = V.baseline(N)), Ve && Be[Be.length - 1]++; } - ye && z++, V = Math.max(V, Q); - let Br = Q - _e; - if (_e === 0) - Tt.push({ y: ue, x: Br, width: 0, line: U, lineIndex: z, isImage: false }); + Ve && q++, j = Math.max(j, Y); + let it = Y - Ee; + if (Ee === 0) + St.push({ y: ne, x: it, width: 0, line: W, lineIndex: q, isImage: false }); else { - let Be = Se(De, "word"); - for (let Re = 0; Re < Be.length; Re++) { - let Le = Be[Re], Qe = 0, st = false; - ce(Le) ? (Qe = C, st = true) : Qe = be(Le), ht.push(Le), Tt.push({ y: ue, x: Br, width: Qe, line: U, lineIndex: z, isImage: st }), Br += Qe; + let ge = we(N, "word"); + for (let Oe = 0; Oe < ge.length; Oe++) { + let ot = ge[Oe], We = 0, Ot = false; + le(ot) ? (We = F, Ot = true) : We = he(ot), dt.push(ot), St.push({ y: ne, x: it, width: We, line: W, lineIndex: q, isImage: Ot }), it += We; } } - ne++; - } - return Q && (U < $ && (ue += ve), U++, fe.push(Q), xe.push(me)), { width: V, height: ue }; - } - let kr = { width: 0, height: 0 }; - he.setMeasureFunc((M) => { - let { width: U, height: V } = vn(M); - if (E === "balance") { - let z = U / 2, ue = U, Q = U; - for (; z + 1 < ue; ) { - Q = (z + ue) / 2; - let { height: ve } = vn(Q); - ve > V ? z = Q : ue = Q; + ee++, Ie = ie; + } + return Y && (W < L && (ne += me), W++, ae.push(Y), be.push(de)), { width: j, height: ne }; + } + let Sr = { width: 0, height: 0 }; + ce.setMeasureFunc((I) => { + let { width: W, height: j } = Dn(I); + if (x === "balance") { + let q = W / 2, ne = W, Y = W; + for (; q + 1 < ne; ) { + Y = (q + ne) / 2; + let { height: me } = Dn(Y); + me > j ? q = Y : ne = Y; } - return vn(ue), kr = { width: ue, height: V }, { width: ue, height: V }; + return Dn(ne), Sr = { width: ne, height: j }, { width: ne, height: j }; } - return kr = { width: U, height: V }, { width: U, height: V }; + return Sr = { width: W, height: j }, { width: W, height: j }; }); - let [_l, Sl] = yield, yn = "", Tr = "", Ye = i._inheritedClipPathId, $o = i._inheritedMaskId, { left: Wo, top: qo, width: xn, height: kl } = he.getComputedLayout(), Ar = o.getComputedWidth() - o.getComputedPadding(n.EDGE_LEFT) - o.getComputedPadding(n.EDGE_RIGHT) - o.getComputedBorder(n.EDGE_LEFT) - o.getComputedBorder(n.EDGE_RIGHT), mt = _l + Wo, Dt = Sl + qo, { matrix: ze, opacity: Or } = Cu({ left: Wo, top: qo, width: xn, height: kl, isInheritingTransform: a }, r), gt = ""; + let [Fl, wl] = yield, gn = "", kr = "", je = i._inheritedClipPathId, Mo = i._inheritedMaskId, { left: No, top: $o, width: bn, height: El } = ce.getComputedLayout(), Tr = o.getComputedWidth() - o.getComputedPadding(n.EDGE_LEFT) - o.getComputedPadding(n.EDGE_RIGHT) - o.getComputedBorder(n.EDGE_LEFT) - o.getComputedBorder(n.EDGE_RIGHT), pt = Fl + No, ht = wl + $o, { matrix: $e, opacity: Ar } = xu({ left: No, top: $o, width: bn, height: El, isInheritingTransform: a }, r), mt = ""; if (r.textShadowOffset) { - let { textShadowColor: M, textShadowOffset: U, textShadowRadius: V } = r; - Array.isArray(r.textShadowOffset) || (M = [M], U = [U], V = [V]), gt = _u({ width: kr.width, height: kr.height, id: s }, { shadowColor: M, shadowOffset: U, shadowRadius: V }), gt = k("defs", {}, gt); + let { textShadowColor: I, textShadowOffset: W, textShadowRadius: j } = r; + Array.isArray(r.textShadowOffset) || (I = [I], W = [W], j = [j]), mt = Fu({ width: Sr.width, height: Sr.height, id: s }, { shadowColor: I, shadowOffset: W, shadowRadius: j }), mt = C("defs", {}, mt); } - let At = "", Pr = "", Uo = "", Ot = -1, bt = {}, Xe = null, zo = 0; - for (let M = 0; M < ht.length; M++) { - let U = Tt[M], V = Tt[M + 1]; - if (!U) + let kt = "", Or = "", Wo = "", Tt = -1, Dt = {}, He = null, qo = 0; + for (let I = 0; I < dt.length; I++) { + let W = St[I], j = St[I + 1]; + if (!W) continue; - let z = ht[M], ue = null, Q = false, ve = d ? d[z] : null, me = U.y, ne = U.x, De = U.width, K = U.line; - if (K === Ot) + let q = dt[I], ne = null, Y = false, me = c ? c[q] : null, de = W.y, ee = W.x, Ie = W.width, N = W.line; + if (N === Tt) continue; - let _e = false; - if (fe.length > 1) { - let de = xn - fe[K]; - if (p === "right" || p === "end") - ne += de; - else if (p === "center") - ne += de / 2; - else if (p === "justify" && K < fe.length - 1) { - let ye = Ne[K]; - ne += (ye > 1 ? de / (ye - 1) : 0) * U.lineIndex, _e = true; + let tt = false; + if (ae.length > 1) { + let ie = bn - ae[N]; + if (d === "right" || d === "end") + ee += ie; + else if (d === "center") + ee += ie / 2; + else if (d === "justify" && N < ae.length - 1) { + let De = Be[N], Ve = De > 1 ? ie / (De - 1) : 0; + ee += Ve * W.lineIndex, tt = true; } } - if (bt[K] || (bt[K] = [ne, _e ? xn : fe[K]]), $ !== 1 / 0) { - let Be = function(Re, Le) { - let Qe = Se(Le, "grapheme", h), st = "", jo = 0; - for (let Ho of Qe) { - let Vo = Re + I([st + Ho]); - if (st && Vo + ye > Ar) + if (Dt[N] || (Dt[N] = [ee, tt ? bn : ae[N]]), L !== 1 / 0) { + let it = function(ge, Oe) { + let ot = we(Oe, "grapheme", p), We = "", Ot = 0; + for (let Uo of ot) { + let zo = ge + A([We + Uo]); + if (We && zo + De > Tr) break; - st += Ho, jo = Vo; + We += Uo, Ot = zo; } - return { subset: st, resolvedWidth: jo }; - }, de = J, ye = be(J); - ye > Ar && (de = Wt, ye = be(de)); - let ut = be($t), Go = K < fe.length - 1; - if (K + 1 === $ && (Go || fe[K] > Ar)) { - if (ne + De + ye + ut > Ar) { - let { subset: Re, resolvedWidth: Le } = Be(ne, z); - z = Re + de, Ot = K, bt[K][1] = Le, Q = true; - } else if (V && V.line !== K) - if (p === "center") { - let { subset: Re, resolvedWidth: Le } = Be(ne, z); - z = Re + de, Ot = K, bt[K][1] = Le, Q = true; + return { subset: We, resolvedWidth: Ot }; + }, ie = X, De = he(X); + De > Tr && (ie = $t, De = he(ie)); + let Ve = he(Nt), Pr = N < ae.length - 1; + if (N + 1 === L && (Pr || ae[N] > Tr)) { + if (ee + Ie + De + Ve > Tr) { + let { subset: ge, resolvedWidth: Oe } = it(ee, q); + q = ge + ie, Tt = N, Dt[N][1] = Oe, Y = true; + } else if (j && j.line !== N) + if (d === "center") { + let { subset: ge, resolvedWidth: Oe } = it(ee, q); + q = ge + ie, Tt = N, Dt[N][1] = Oe, Y = true; } else { - let Re = ht[M + 1], { subset: Le, resolvedWidth: Qe } = Be(De + ne, Re); - z = z + Le + de, Ot = K, bt[K][1] = Qe, Q = true; + let ge = dt[I + 1], { subset: Oe, resolvedWidth: ot } = it(Ie + ee, ge); + q = q + Oe + ie, Tt = N, Dt[N][1] = ot, Y = true; } } } - let Ir = xe[K], it = X.baseline(z), Pt = X.height(z), ot = Ir - it; - if (ve) - me += 0; + let Ee = be[N], rt = V.baseline(q), At = V.height(q), nt = Ee - rt; + if (me) + de += 0; else if (f) { - if (!z.includes(Nn) && !iu.includes(z) && ht[M + 1] && V && !V.isImage && me === V.y && !Q) { - Xe === null && (zo = ne), Xe = Xe === null ? z : Xe + z; + if (!q.includes(Ln) && !eu.includes(q) && dt[I + 1] && j && !j.isImage && de === j.y && !Y) { + He === null && (qo = ee), He = He === null ? q : He + q; continue; } - let de = Xe === null ? z : Xe + z, ye = Xe === null ? ne : zo, ut = U.width + ne - ye; - ue = X.getSVG(de.replace(/(\t)+/g, ""), { ...r, left: mt + ye, top: Dt + me + it + ot, letterSpacing: r.letterSpacing }), Xe = null, l && (Uo += k("rect", { x: mt + ye, y: Dt + me + ot, width: ut, height: Pt, fill: "transparent", stroke: "#575eff", "stroke-width": 1, transform: ze || void 0, "clip-path": Ye ? `url(#${Ye})` : void 0 }) + k("line", { x1: mt + ne, x2: mt + ne + U.width, y1: Dt + me + ot + it, y2: Dt + me + ot + it, stroke: "#14c000", "stroke-width": 1, transform: ze || void 0, "clip-path": Ye ? `url(#${Ye})` : void 0 })); + let ie = He === null ? q : He + q, De = He === null ? ee : qo, Ve = W.width + ee - De; + ne = V.getSVG(ie.replace(/(\t)+/g, ""), { ...r, left: pt + De, top: ht + de + rt + nt, letterSpacing: r.letterSpacing }), He = null, l && (Wo += C("rect", { x: pt + De, y: ht + de + nt, width: Ve, height: At, fill: "transparent", stroke: "#575eff", "stroke-width": 1, transform: $e || void 0, "clip-path": je ? `url(#${je})` : void 0 }) + C("line", { x1: pt + ee, x2: pt + ee + W.width, y1: ht + de + nt + rt, y2: ht + de + nt + rt, stroke: "#14c000", "stroke-width": 1, transform: $e || void 0, "clip-path": je ? `url(#${je})` : void 0 })); } else - me += it + ot; - if (r.textDecorationLine && (K !== (V == null ? void 0 : V.line) || Ot === K)) { - let de = bt[K]; - de && !de[2] && (At += Ln({ left: mt + de[0], top: Dt + Pt * +K, width: de[1], ascender: X.baseline(z), clipPathId: Ye }, r), de[2] = 1); + de += rt + nt; + if (r.textDecorationLine && (N !== (j == null ? void 0 : j.line) || Tt === N)) { + let ie = Dt[N]; + ie && !ie[2] && (kt += In({ left: pt + ie[0], top: ht + At * +N, width: ie[1], ascender: V.baseline(q), clipPathId: je }, r), ie[2] = 1); } - if (ue !== null) - Pr += ue + " "; + if (ne !== null) + Or += ne + " "; else { - let [de, ye] = Rn({ content: z, filter: gt, id: s, left: mt + ne, top: Dt + me, width: De, height: Pt, matrix: ze, opacity: Or, image: ve, clipPathId: Ye, debug: l, shape: !!R, decorationShape: At }, r); - yn += de, Tr += ye, At = ""; + let [ie, De] = Bn({ content: q, filter: mt, id: s, left: pt + ee, top: ht + de, width: Ie, height: At, matrix: $e, opacity: Ar, image: me, clipPathId: je, debug: l, shape: !!P, decorationShape: kt }, r); + gn += ie, kr += De, kt = ""; } - if (Q) + if (Y) break; } - if (Pr) { - let M = r.color !== "transparent" && Or !== 0 ? k("path", { fill: r.color, d: Pr, transform: ze || void 0, opacity: Or !== 1 ? Or : void 0, "clip-path": Ye ? `url(#${Ye})` : void 0, mask: $o ? `url(#${$o})` : void 0, style: w ? `filter:${w}` : void 0 }) : ""; - R && (Tr = k("path", { d: Pr, transform: ze || void 0 })), yn += (gt ? gt + k("g", { filter: `url(#satori_s-${s})` }, M + At) : M + At) + Uo; + if (Or) { + let I = r.color !== "transparent" && Ar !== 0 ? C("path", { fill: r.color, d: Or, transform: $e || void 0, opacity: Ar !== 1 ? Ar : void 0, "clip-path": je ? `url(#${je})` : void 0, mask: Mo ? `url(#${Mo})` : void 0, style: y ? `filter:${y}` : void 0 }) : ""; + P && (kr = C("path", { d: Or, transform: $e || void 0 })), gn += (mt ? mt + C("g", { filter: `url(#satori_s-${s})` }, I + kt) : I + kt) + Wo; } - return Tr && (r._inheritedBackgroundClipTextPath.value += Tr), yn; + return kr && (r._inheritedBackgroundClipTextPath.value += kr), gn; } -function Sf(e, t, n) { - return t === "uppercase" ? e = e.toLocaleUpperCase(n) : t === "lowercase" ? e = e.toLocaleLowerCase(n) : t === "capitalize" && (e = Se(e, "word", n).map((r) => Se(r, "grapheme", n).map((i, o) => o === 0 ? i.toLocaleUpperCase(n) : i).join("")).join("")), e; +function Ef(e, t, n) { + return t === "uppercase" ? e = e.toLocaleUpperCase(n) : t === "lowercase" ? e = e.toLocaleLowerCase(n) : t === "capitalize" && (e = we(e, "word", n).map((r) => we(r, "grapheme", n).map((i, o) => o === 0 ? i.toLocaleUpperCase(n) : i).join("")).join("")), e; } -function kf(e, t) { +function Cf(e, t) { let { textOverflow: n, lineClamp: r, WebkitLineClamp: i, WebkitBoxOrient: o, overflow: u, display: s } = e; if (s === "block" && r) { - let [a, l = Wt] = Bf(r); + let [a, l = $t] = Of(r); if (a) return [a, l]; } - return n === "ellipsis" && s === "-webkit-box" && o === "vertical" && uu(i) && i > 0 ? [i, Wt] : n === "ellipsis" && u === "hidden" && !t ? [1, Wt] : [1 / 0]; + return n === "ellipsis" && s === "-webkit-box" && o === "vertical" && ru(i) && i > 0 ? [i, $t] : n === "ellipsis" && u === "hidden" && !t ? [1, $t] : [1 / 0]; } -function Tf(e, t) { - let n = ["break-all", "break-word"].includes(t), { words: r, requiredBreaks: i } = au(e, t); +function _f(e, t) { + let n = ["break-all", "break-word"].includes(t), { words: r, requiredBreaks: i } = iu(e, t); return { words: r, requiredBreaks: i, allowBreakWord: n }; } -function Af(e, t) { +function Sf(e, t) { let n = ["pre", "pre-wrap", "pre-line"].includes(t), r = ["normal", "nowrap", "pre-line"].includes(t), i = !["pre", "nowrap"].includes(t); - return n || (e = e.replace(/\n/g, $t)), r && (e = e.replace(/([ ]|\t)+/g, $t).trim()), { content: e, shouldCollapseTabsAndSpaces: r, allowSoftWrap: i }; + return n || (e = e.replace(/\n/g, Nt)), r && (e = e.replace(/([ ]|\t)+/g, Nt).trim()), { content: e, shouldCollapseTabsAndSpaces: r, allowSoftWrap: i }; } -function Of(e, t) { +function kf(e, t) { let n = e.Node.create(); - return n.setAlignItems(e.ALIGN_BASELINE), n.setJustifyContent(Fe(t, { left: e.JUSTIFY_FLEX_START, right: e.JUSTIFY_FLEX_END, center: e.JUSTIFY_CENTER, justify: e.JUSTIFY_SPACE_BETWEEN, start: e.JUSTIFY_FLEX_START, end: e.JUSTIFY_FLEX_END }, e.JUSTIFY_FLEX_START, "textAlign")), n; + return n.setAlignItems(e.ALIGN_BASELINE), n.setJustifyContent(ve(t, { left: e.JUSTIFY_FLEX_START, right: e.JUSTIFY_FLEX_END, center: e.JUSTIFY_CENTER, justify: e.JUSTIFY_SPACE_BETWEEN, start: e.JUSTIFY_FLEX_START, end: e.JUSTIFY_FLEX_END }, e.JUSTIFY_FLEX_START, "textAlign")), n; } -function Pf(e, t) { +function Tf(e, t) { let n = /* @__PURE__ */ new Map(); return function(i) { if (n.has(i)) @@ -15676,11 +15601,11 @@ function Pf(e, t) { return n.set(i, o), o; }; } -function If(e) { +function Af(e) { let t = /(\t)+/.exec(e); return t ? { index: t.index, tabCount: t[0].length } : { index: null, tabCount: 0 }; } -function Bf(e) { +function Of(e) { if (typeof e == "number") return [e]; let t = /^(\d+)\s*"(.*)"$/, n = /^(\d+)\s*'(.*)'$/, r = t.exec(e), i = n.exec(e); @@ -15693,185 +15618,182 @@ function Bf(e) { } return []; } -c(); -c(); -c(); -var Wn = Wn || {}; -var ku = { type: "directional", value: "bottom" }; -Wn.parse = function() { +var Nn = Nn || {}; +var Eu = { type: "directional", value: "bottom" }; +Nn.parse = function() { var e = { linearGradient: /^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i, repeatingLinearGradient: /^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i, radialGradient: /^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i, repeatingRadialGradient: /^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i, sideOrCorner: /^to (left (top|bottom)|right (top|bottom)|top (left|right)|bottom (left|right)|left|right|top|bottom)/i, extentKeywords: /^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/, positionKeywords: /^(left|center|right|top|bottom)/i, pixelValue: /^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/, percentageValue: /^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/, emLikeValue: /^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))(r?em|vw|vh)/, angleValue: /^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/, zeroValue: /[0]/, startCall: /^\(/, endCall: /^\)/, comma: /^,/, hexColor: /^\#([0-9a-fA-F]+)/, literalColor: /^([a-zA-Z]+)/, rgbColor: /^rgb/i, rgbaColor: /^rgba/i, number: /^(([0-9]*\.[0-9]+)|([0-9]+\.?))/ }, t = ""; - function n(I) { - var B = new Error(t + ": " + I); - throw B.source = t, B; + function n(A) { + var O = new Error(t + ": " + A); + throw O.source = t, O; } function r() { - var I = i(); - return t.length > 0 && n("Invalid input not EOF"), I; + var A = i(); + return t.length > 0 && n("Invalid input not EOF"), A; } function i() { - return O(o); + return k(o); } function o() { - return s("linear-gradient", e.linearGradient, l, ku) || s("repeating-linear-gradient", e.repeatingLinearGradient, l, ku) || s("radial-gradient", e.radialGradient, m) || s("repeating-radial-gradient", e.repeatingRadialGradient, m); + return s("linear-gradient", e.linearGradient, l, Eu) || s("repeating-linear-gradient", e.repeatingLinearGradient, l, Eu) || s("radial-gradient", e.radialGradient, h) || s("repeating-radial-gradient", e.repeatingRadialGradient, h); } - function u(I = {}) { - var W, N, fe, xe; - let B = { ...I }; - return Object.assign(B, { style: (B.style || []).length > 0 ? B.style : [{ type: "extent-keyword", value: "farthest-corner" }], at: { type: "position", value: { x: { type: "position-keyword", value: "center", ...((N = (W = B.at) == null ? void 0 : W.value) == null ? void 0 : N.x) || {} }, y: { type: "position-keyword", value: "center", ...((xe = (fe = B.at) == null ? void 0 : fe.value) == null ? void 0 : xe.y) || {} } } } }), I.value || Object.assign(B, { type: "shape", value: B.style.some((Ne) => ["%", "extent-keyword"].includes(Ne.type)) ? "ellipse" : "circle" }), B; + function u(A = {}) { + var M, R, ae, be; + let O = { ...A }; + return Object.assign(O, { style: (O.style || []).length > 0 ? O.style : [{ type: "extent-keyword", value: "farthest-corner" }], at: { type: "position", value: { x: { type: "position-keyword", value: "center", ...((R = (M = O.at) == null ? void 0 : M.value) == null ? void 0 : R.x) || {} }, y: { type: "position-keyword", value: "center", ...((be = (ae = O.at) == null ? void 0 : ae.value) == null ? void 0 : be.y) || {} } } } }), A.value || Object.assign(O, { type: "shape", value: O.style.some((Be) => ["%", "extent-keyword"].includes(Be.type)) ? "ellipse" : "circle" }), O; } - function s(I, B, W, N) { - return a(B, function(fe) { - var xe = W(); - return xe ? ce(e.comma) || n("Missing comma before color stops") : xe = N, { type: I, orientation: I.endsWith("radial-gradient") ? (xe == null ? void 0 : xe.map((Ne) => u(Ne))) ?? [u()] : xe, colorStops: O(R) }; + function s(A, O, M, R) { + return a(O, function(ae) { + var be = M(); + return be ? le(e.comma) || n("Missing comma before color stops") : be = R, { type: A, orientation: A.endsWith("radial-gradient") ? (be == null ? void 0 : be.map((Be) => u(Be))) ?? [u()] : be, colorStops: k(P) }; }); } - function a(I, B) { - var W = ce(I); - if (W) { - ce(e.startCall) || n("Missing ("); - var N = B(W); - return ce(e.endCall) || n("Missing )"), N; + function a(A, O) { + var M = le(A); + if (M) { + le(e.startCall) || n("Missing ("); + var R = O(M); + return le(e.endCall) || n("Missing )"), R; } } function l() { - return f() || d() || h(); + return f() || c() || p(); } function f() { - return re("directional", e.sideOrCorner, 1); + return Z("directional", e.sideOrCorner, 1); } - function d() { - return re("angular", e.angleValue, 1); + function c() { + return Z("angular", e.angleValue, 1); + } + function p() { + return Z("directional", e.zeroValue, 0); } function h() { - return re("directional", e.zeroValue, 0); + var A, O = d(), M; + return O && (A = [], A.push(O), M = t, le(e.comma) && (O = d(), O ? A.push(O) : t = M)), A; } - function m() { - var I, B = p(), W; - return B && (I = [], I.push(B), W = t, ce(e.comma) && (B = p(), B ? I.push(B) : t = W)), I; + function d() { + let A = m(), O = x(); + if (!(!A && !O)) + return { ...A, at: O }; } - function p() { - let I = D(), B = E(); - if (!(!I && !B)) - return { ...I, at: B }; + function m() { + let A = v() || g(), O = b() || ce() || L(), M = Z("%", e.percentageValue, 1); + if (A) + return { ...A, style: [O, M].filter((R) => R) }; + if (O) + return { style: [O, M].filter((R) => R), ...v() || g() }; } - function D() { - let I = F() || b(), B = v() || he() || $(), W = re("%", e.percentageValue, 1); - if (I) - return { ...I, style: [B, W].filter((N) => N) }; - if (B) - return { style: [B, W].filter((N) => N), ...F() || b() }; + function v() { + return Z("shape", /^(circle)/i, 0); } - function F() { - return re("shape", /^(circle)/i, 0); + function g() { + return Z("shape", /^(ellipse)/i, 0); } function b() { - return re("shape", /^(ellipse)/i, 0); + return Z("extent-keyword", e.extentKeywords, 1); } - function v() { - return re("extent-keyword", e.extentKeywords, 1); - } - function E() { - if (re("position", /^at/, 0)) { - var I = C(); - return I || n("Missing positioning value"), I; + function x() { + if (Z("position", /^at/, 0)) { + var A = F(); + return A || n("Missing positioning value"), A; } } - function C() { - var I = w(); - if (I.x || I.y) - return { type: "position", value: I }; + function F() { + var A = y(); + if (A.x || A.y) + return { type: "position", value: A }; } - function w() { - return { x: $(), y: $() }; + function y() { + return { x: L(), y: L() }; } - function O(I) { - var B = I(), W = []; - if (B) - for (W.push(B); ce(e.comma); ) - B = I(), B ? W.push(B) : n("One extra comma"); - return W; + function k(A) { + var O = A(), M = []; + if (O) + for (M.push(O); le(e.comma); ) + O = A(), O ? M.push(O) : n("One extra comma"); + return M; } - function R() { - var I = L(); - return I || n("Expected color definition"), I.length = $(), I; + function P() { + var A = B(); + return A || n("Expected color definition"), A.length = L(), A; } - function L() { - return se() || le() || ae() || Y(); + function B() { + return oe() || se() || ue() || H(); } - function Y() { - return re("literal", e.literalColor, 0); + function H() { + return Z("literal", e.literalColor, 0); } - function se() { - return re("hex", e.hexColor, 1); + function oe() { + return Z("hex", e.hexColor, 1); } - function ae() { + function ue() { return a(e.rgbColor, function() { - return { type: "rgb", value: O(q) }; + return { type: "rgb", value: k($) }; }); } - function le() { + function se() { return a(e.rgbaColor, function() { - return { type: "rgba", value: O(q) }; + return { type: "rgba", value: k($) }; }); } - function q() { - return ce(e.number)[1]; - } function $() { - return re("%", e.percentageValue, 1) || J() || he(); + return le(e.number)[1]; + } + function L() { + return Z("%", e.percentageValue, 1) || X() || ce(); } - function J() { - return re("position-keyword", e.positionKeywords, 1); + function X() { + return Z("position-keyword", e.positionKeywords, 1); } - function he() { - return re("px", e.pixelValue, 1) || X(e.emLikeValue, 1); + function ce() { + return Z("px", e.pixelValue, 1) || V(e.emLikeValue, 1); } - function X(I, B) { - var W = ce(I); - if (W) - return { type: W[5], value: W[B] }; + function V(A, O) { + var M = le(A); + if (M) + return { type: M[5], value: M[O] }; } - function re(I, B, W) { - var N = ce(B); - if (N) - return { type: I, value: N[W] }; + function Z(A, O, M) { + var R = le(O); + if (R) + return { type: A, value: R[M] }; } - function ce(I) { - var B, W; - return W = /^[\n\r\t\s]+/.exec(t), W && be(W[0].length), B = I.exec(t), B && be(B[0].length), B; + function le(A) { + var O, M; + return M = /^[\n\r\t\s]+/.exec(t), M && he(M[0].length), O = A.exec(t), O && he(O[0].length), O; } - function be(I) { - t = t.substr(I); + function he(A) { + t = t.substr(A); } - return function(I) { - return t = I.toString(), r(); + return function(A) { + return t = A.toString(), r(); }; }(); -var qn = Wn; -function Lf(e) { +var $n = Nn; +function Bf(e) { return e.type === "literal" ? e.value : e.type === "hex" ? `#${e.value}` : e.type === "rgb" ? `rgb(${e.value.join(",")})` : e.type === "rgba" ? `rgba(${e.value.join(",")})` : "transparent"; } -function Mf(e) { +function If(e) { let t = 0, n = 0, r = 0, i = 0; return e.includes("top") ? n = 1 : e.includes("bottom") && (i = 1), e.includes("left") ? t = 1 : e.includes("right") && (r = 1), !t && !r && !n && !i && (n = 1), [t, n, r, i]; } -function Nf(e, t) { +function Rf(e, t) { return typeof e == "string" && e.endsWith("%") ? t * parseFloat(e) / 100 : +e; } -function Un(e, { x: t, y: n, defaultX: r, defaultY: i }) { +function Wn(e, { x: t, y: n, defaultX: r, defaultY: i }) { return (e ? e.split(" ").map((o) => { try { - let u = new Ke(o); + let u = new Ye(o); return u.type === "length" || u.type === "number" ? u.value : u.value + u.unit; } catch { return null; } - }).filter((o) => o !== null) : [r, i]).map((o, u) => Nf(o, [t, n][u])); + }).filter((o) => o !== null) : [r, i]).map((o, u) => Rf(o, [t, n][u])); } -function Tu(e, t, n) { +function Cu(e, t, n) { let r = []; for (let s of t) { - let a = Lf(s); + let a = Bf(s); if (!r.length && (r.push({ offset: 0, color: a }), typeof s.length > "u" || s.length.value === "0")) continue; let l = typeof s.length > "u" ? void 0 : s.length.type === "%" ? s.length.value / 100 : s.length.value / e; @@ -15893,66 +15815,66 @@ function Tu(e, t, n) { return a.alpha === 0 ? { ...s, color: "rgba(0, 0, 0, 1)" } : { ...s, color: `rgba(255, 255, 255, ${a.alpha})` }; }) : r; } -async function qt({ id: e, width: t, height: n, left: r, top: i }, { image: o, size: u, position: s, repeat: a }, l, f) { +async function Wt({ id: e, width: t, height: n, left: r, top: i }, { image: o, size: u, position: s, repeat: a }, l, f) { a = a || "repeat", f = f || "background"; - let d = a === "repeat-x" || a === "repeat", h = a === "repeat-y" || a === "repeat", m = Un(u, { x: t, y: n, defaultX: t, defaultY: n }), p = Un(s, { x: t, y: n, defaultX: 0, defaultY: 0 }); + let c = a === "repeat-x" || a === "repeat", p = a === "repeat-y" || a === "repeat", h = Wn(u, { x: t, y: n, defaultX: t, defaultY: n }), d = Wn(s, { x: t, y: n, defaultX: 0, defaultY: 0 }); if (o.startsWith("linear-gradient(")) { - let D = qn.parse(o)[0], [F, b] = m, v, E, C, w, O; - if (D.orientation.type === "directional") - [v, E, C, w] = Mf(D.orientation.value), O = Math.sqrt(Math.pow((C - v) * F, 2) + Math.pow((w - E) * b, 2)); - else if (D.orientation.type === "angular") { - let q = function($) { - if ($ = ($ % (Math.PI * 2) + Math.PI * 2) % (Math.PI * 2), Math.abs($ - Math.PI / 2) < 1e-6) { - v = 0, E = 0, C = 1, w = 0, O = F; + let m = $n.parse(o)[0], [v, g] = h, b, x, F, y, k; + if (m.orientation.type === "directional") + [b, x, F, y] = If(m.orientation.value), k = Math.sqrt(Math.pow((F - b) * v, 2) + Math.pow((y - x) * g, 2)); + else if (m.orientation.type === "angular") { + let $ = function(L) { + if (L = (L % (Math.PI * 2) + Math.PI * 2) % (Math.PI * 2), Math.abs(L - Math.PI / 2) < 1e-6) { + b = 0, x = 0, F = 1, y = 0, k = v; return; - } else if (Math.abs($) < 1e-6) { - v = 0, E = 1, C = 0, w = 0, O = b; + } else if (Math.abs(L) < 1e-6) { + b = 0, x = 1, F = 0, y = 0, k = g; return; } - if ($ >= Math.PI / 2 && $ < Math.PI) { - q(Math.PI - $), E = 1 - E, w = 1 - w; + if (L >= Math.PI / 2 && L < Math.PI) { + $(Math.PI - L), x = 1 - x, y = 1 - y; return; - } else if ($ >= Math.PI) { - q($ - Math.PI); - let W = v; - v = C, C = W, W = E, E = w, w = W; + } else if (L >= Math.PI) { + $(L - Math.PI); + let M = b; + b = F, F = M, M = x, x = y, y = M; return; } - let J = Math.tan($), he = J * le, X = Math.atan(he), re = Math.sqrt(2) * Math.cos(Math.PI / 4 - X); - v = 0, E = 1, C = Math.sin(X) * re, w = 1 - Math.cos(X) * re; - let ce = 1, be = 1 / J, I = Math.abs((ce * le + be) / Math.sqrt(ce * ce + be * be) / Math.sqrt(le * le + 1)); - O = Math.sqrt(F * F + b * b) * I; - }, le = F / b; - q(+D.orientation.value / 180 * Math.PI); + let X = Math.tan(L), ce = X * se, V = Math.atan(ce), Z = Math.sqrt(2) * Math.cos(Math.PI / 4 - V); + b = 0, x = 1, F = Math.sin(V) * Z, y = 1 - Math.cos(V) * Z; + let le = 1, he = 1 / X, A = Math.abs((le * se + he) / Math.sqrt(le * le + he * he) / Math.sqrt(se * se + 1)); + k = Math.sqrt(v * v + g * g) * A; + }, se = v / g; + $(+m.orientation.value / 180 * Math.PI); } - let R = Tu(O, D.colorStops, f), L = `satori_bi${e}`, Y = `satori_pattern_${e}`, se = k("pattern", { id: Y, x: p[0] / t, y: p[1] / n, width: d ? F / t : "1", height: h ? b / n : "1", patternUnits: "objectBoundingBox" }, k("linearGradient", { id: L, x1: v, y1: E, x2: C, y2: w }, R.map((ae) => k("stop", { offset: ae.offset * 100 + "%", "stop-color": ae.color })).join("")) + k("rect", { x: 0, y: 0, width: F, height: b, fill: `url(#${L})` })); - return [Y, se]; + let P = Cu(k, m.colorStops, f), B = `satori_bi${e}`, H = `satori_pattern_${e}`, oe = C("pattern", { id: H, x: d[0] / t, y: d[1] / n, width: c ? v / t : "1", height: p ? g / n : "1", patternUnits: "objectBoundingBox" }, C("linearGradient", { id: B, x1: b, y1: x, x2: F, y2: y }, P.map((ue) => C("stop", { offset: ue.offset * 100 + "%", "stop-color": ue.color })).join("")) + C("rect", { x: 0, y: 0, width: v, height: g, fill: `url(#${B})` })); + return [H, oe]; } if (o.startsWith("radial-gradient(")) { - let D = qn.parse(o)[0], F = D.orientation[0], [b, v] = m, E = "circle", C = b / 2, w = v / 2; - if (F.type === "shape") { - if (E = F.value, F.at) - if (F.at.type === "position") { - let q = $f(F.at.value.x, F.at.value.y, b, v, l.fontSize, l); - C = q.x, w = q.y; + let m = $n.parse(o)[0], v = m.orientation[0], [g, b] = h, x = "circle", F = g / 2, y = b / 2; + if (v.type === "shape") { + if (x = v.value, v.at) + if (v.at.type === "position") { + let $ = Lf(v.at.value.x, v.at.value.y, g, b, l.fontSize, l); + F = $.x, y = $.y; } else - throw new Error("orientation.at.type not implemented: " + F.at.type); + throw new Error("orientation.at.type not implemented: " + v.at.type); } else - throw new Error("orientation.type not implemented: " + F.type); - let O = Tu(t, D.colorStops, f), R = `satori_radial_${e}`, L = `satori_pattern_${e}`, Y = `satori_mask_${e}`, se = Wf(E, F.style, l.fontSize, { x: C, y: w }, [b, v], l), ae = k("pattern", { id: L, x: p[0] / t, y: p[1] / n, width: d ? b / t : "1", height: h ? v / n : "1", patternUnits: "objectBoundingBox" }, k("radialGradient", { id: R }, O.map((q) => k("stop", { offset: q.offset, "stop-color": q.color })).join("")) + k("mask", { id: Y }, k("rect", { x: 0, y: 0, width: b, height: v, fill: "#fff" })) + k("rect", { x: 0, y: 0, width: b, height: v, fill: O.at(-1).color }) + k(E, { cx: C, cy: w, width: b, height: v, ...se, fill: `url(#${R})`, mask: `url(#${Y})` })); - return [L, ae]; + throw new Error("orientation.type not implemented: " + v.type); + let k = Cu(t, m.colorStops, f), P = `satori_radial_${e}`, B = `satori_pattern_${e}`, H = `satori_mask_${e}`, oe = Mf(x, v.style, l.fontSize, { x: F, y }, [g, b], l), ue = C("pattern", { id: B, x: d[0] / t, y: d[1] / n, width: c ? g / t : "1", height: p ? b / n : "1", patternUnits: "objectBoundingBox" }, C("radialGradient", { id: P }, k.map(($) => C("stop", { offset: $.offset, "stop-color": $.color })).join("")) + C("mask", { id: H }, C("rect", { x: 0, y: 0, width: g, height: b, fill: "#fff" })) + C("rect", { x: 0, y: 0, width: g, height: b, fill: k.at(-1).color }) + C(x, { cx: F, cy: y, width: g, height: b, ...oe, fill: `url(#${P})`, mask: `url(#${H})` })); + return [B, ue]; } if (o.startsWith("url(")) { - let D = Un(u, { x: t, y: n, defaultX: 0, defaultY: 0 }), [F, b, v] = await Ft(o.slice(4, -1)), E = f === "mask" ? b || D[0] : D[0] || b, C = f === "mask" ? v || D[1] : D[1] || v; - return [`satori_bi${e}`, k("pattern", { id: `satori_bi${e}`, patternContentUnits: "userSpaceOnUse", patternUnits: "userSpaceOnUse", x: p[0] + r, y: p[1] + i, width: d ? E : "100%", height: h ? C : "100%" }, k("image", { x: 0, y: 0, width: E, height: C, preserveAspectRatio: "none", href: F }))]; + let m = Wn(u, { x: t, y: n, defaultX: 0, defaultY: 0 }), [v, g, b] = await yt(o.slice(4, -1)), x = f === "mask" ? g || m[0] : m[0] || g, F = f === "mask" ? b || m[1] : m[1] || b; + return [`satori_bi${e}`, C("pattern", { id: `satori_bi${e}`, patternContentUnits: "userSpaceOnUse", patternUnits: "userSpaceOnUse", x: d[0] + r, y: d[1] + i, width: c ? x : "100%", height: p ? F : "100%" }, C("image", { x: 0, y: 0, width: x, height: F, preserveAspectRatio: "none", href: v }))]; } throw new Error(`Invalid background image: "${o}"`); } -function $f(e, t, n, r, i, o) { +function Lf(e, t, n, r, i, o) { let u = { x: n / 2, y: r / 2 }; - return e.type === "position-keyword" ? Object.assign(u, Au(e.value, n, r, "x")) : u.x = G(`${e.value}${e.type}`, i, n, o, true), t.type === "position-keyword" ? Object.assign(u, Au(t.value, n, r, "y")) : u.y = G(`${t.value}${t.type}`, i, r, o, true), u; + return e.type === "position-keyword" ? Object.assign(u, _u(e.value, n, r, "x")) : u.x = U(`${e.value}${e.type}`, i, n, o, true), t.type === "position-keyword" ? Object.assign(u, _u(t.value, n, r, "y")) : u.y = U(`${t.value}${t.type}`, i, r, o, true), u; } -function Au(e, t, n, r) { +function _u(e, t, n, r) { switch (e) { case "center": return { [r]: r === "x" ? t / 2 : n / 2 }; @@ -15966,19 +15888,19 @@ function Au(e, t, n, r) { return { y: n }; } } -function Wf(e, t, n, r, i, o) { - let [u, s] = i, { x: a, y: l } = r, f = {}, d = 0, h = 0; - if (!t.some((p) => p.type === "extent-keyword")) { - if (t.some((p) => p.value.startsWith("-"))) +function Mf(e, t, n, r, i, o) { + let [u, s] = i, { x: a, y: l } = r, f = {}, c = 0, p = 0; + if (!t.some((d) => d.type === "extent-keyword")) { + if (t.some((d) => d.value.startsWith("-"))) throw new Error("disallow setting negative values to the size of the shape. Check https://w3c.github.io/csswg-drafts/css-images/#valdef-rg-size-length-0"); - return e === "circle" ? { r: G(`${t[0].value}${t[0].type}`, n, u, o, true) } : { rx: G(`${t[0].value}${t[0].type}`, n, u, o, true), ry: G(`${t[1].value}${t[1].type}`, n, s, o, true) }; + return e === "circle" ? { r: U(`${t[0].value}${t[0].type}`, n, u, o, true) } : { rx: U(`${t[0].value}${t[0].type}`, n, u, o, true), ry: U(`${t[1].value}${t[1].type}`, n, s, o, true) }; } switch (t[0].value) { case "farthest-corner": - d = Math.max(Math.abs(u - a), Math.abs(a)), h = Math.max(Math.abs(s - l), Math.abs(l)); + c = Math.max(Math.abs(u - a), Math.abs(a)), p = Math.max(Math.abs(s - l), Math.abs(l)); break; case "closest-corner": - d = Math.min(Math.abs(u - a), Math.abs(a)), h = Math.min(Math.abs(s - l), Math.abs(l)); + c = Math.min(Math.abs(u - a), Math.abs(a)), p = Math.min(Math.abs(s - l), Math.abs(l)); break; case "farthest-side": return e === "circle" ? f.r = Math.max(Math.abs(u - a), Math.abs(a), Math.abs(s - l), Math.abs(l)) : (f.rx = Math.max(Math.abs(u - a), Math.abs(a)), f.ry = Math.max(Math.abs(s - l), Math.abs(l))), f; @@ -15986,247 +15908,234 @@ function Wf(e, t, n, r, i, o) { return e === "circle" ? f.r = Math.min(Math.abs(u - a), Math.abs(a), Math.abs(s - l), Math.abs(l)) : (f.rx = Math.min(Math.abs(u - a), Math.abs(a)), f.ry = Math.min(Math.abs(s - l), Math.abs(l))), f; } if (e === "circle") - f.r = Math.sqrt(d * d + h * h); + f.r = Math.sqrt(c * c + p * p); else { - let p = h !== 0 ? d / h : 1; - d === 0 ? (f.rx = 0, f.ry = 0) : (f.ry = Math.sqrt(d * d + h * h * p * p) / p, f.rx = f.ry * p); + let d = p !== 0 ? c / p : 1; + c === 0 ? (f.rx = 0, f.ry = 0) : (f.ry = Math.sqrt(c * c + p * p * d * d) / d, f.rx = f.ry * d); } return f; } -c(); -function qf([e, t]) { +function Nf([e, t]) { return Math.round(e * 1e3) === 0 && Math.round(t * 1e3) === 0 ? 0 : Math.round(e * t / Math.sqrt(e * e + t * t) * 1e3) / 1e3; } -function Hr(e, t, n) { +function zr(e, t, n) { return n < e + t && (n / 2 < e && n / 2 < t ? e = t = n / 2 : n / 2 < e ? e = n - t : n / 2 < t && (t = n - e)), [e, t]; } -function Vr(e) { +function Gr(e) { e[0] = e[1] = Math.min(e[0], e[1]); } -function Yr(e, t, n, r, i) { +function jr(e, t, n, r, i) { if (typeof e == "string") { let o = e.split(" ").map((s) => s.trim()), u = !o[1] && !o[0].endsWith("%"); - return o[1] = o[1] || o[0], [u, [Math.min(G(o[0], r, t, i, true), t), Math.min(G(o[1], r, n, i, true), n)]]; + return o[1] = o[1] || o[0], [u, [Math.min(U(o[0], r, t, i, true), t), Math.min(U(o[1], r, n, i, true), n)]]; } return typeof e == "number" ? [true, [Math.min(e, t), Math.min(e, n)]] : [true, void 0]; } -var Xr = (e) => e && e[0] !== 0 && e[1] !== 0; -function Ze({ left: e, top: t, width: n, height: r }, i, o) { - let { borderTopLeftRadius: u, borderTopRightRadius: s, borderBottomLeftRadius: a, borderBottomRightRadius: l, fontSize: f } = i, d, h, m, p; - if ([d, u] = Yr(u, n, r, f, i), [h, s] = Yr(s, n, r, f, i), [m, a] = Yr(a, n, r, f, i), [p, l] = Yr(l, n, r, f, i), !o && !Xr(u) && !Xr(s) && !Xr(a) && !Xr(l)) +var Hr = (e) => e && e[0] !== 0 && e[1] !== 0; +function Qe({ left: e, top: t, width: n, height: r }, i, o) { + let { borderTopLeftRadius: u, borderTopRightRadius: s, borderBottomLeftRadius: a, borderBottomRightRadius: l, fontSize: f } = i, c, p, h, d; + if ([c, u] = jr(u, n, r, f, i), [p, s] = jr(s, n, r, f, i), [h, a] = jr(a, n, r, f, i), [d, l] = jr(l, n, r, f, i), !o && !Hr(u) && !Hr(s) && !Hr(a) && !Hr(l)) return ""; - u || (u = [0, 0]), s || (s = [0, 0]), a || (a = [0, 0]), l || (l = [0, 0]), [u[0], s[0]] = Hr(u[0], s[0], n), [a[0], l[0]] = Hr(a[0], l[0], n), [u[1], a[1]] = Hr(u[1], a[1], r), [s[1], l[1]] = Hr(s[1], l[1], r), d && Vr(u), h && Vr(s), m && Vr(a), p && Vr(l); - let D = []; - D[0] = [s, s], D[1] = [l, [-l[0], l[1]]], D[2] = [a, [-a[0], -a[1]]], D[3] = [u, [u[0], -u[1]]]; - let F = `h${n - u[0] - s[0]} a${D[0][0]} 0 0 1 ${D[0][1]}`, b = `v${r - s[1] - l[1]} a${D[1][0]} 0 0 1 ${D[1][1]}`, v = `h${l[0] + a[0] - n} a${D[2][0]} 0 0 1 ${D[2][1]}`, E = `v${a[1] + u[1] - r} a${D[3][0]} 0 0 1 ${D[3][1]}`; + u || (u = [0, 0]), s || (s = [0, 0]), a || (a = [0, 0]), l || (l = [0, 0]), [u[0], s[0]] = zr(u[0], s[0], n), [a[0], l[0]] = zr(a[0], l[0], n), [u[1], a[1]] = zr(u[1], a[1], r), [s[1], l[1]] = zr(s[1], l[1], r), c && Gr(u), p && Gr(s), h && Gr(a), d && Gr(l); + let m = []; + m[0] = [s, s], m[1] = [l, [-l[0], l[1]]], m[2] = [a, [-a[0], -a[1]]], m[3] = [u, [u[0], -u[1]]]; + let v = `h${n - u[0] - s[0]} a${m[0][0]} 0 0 1 ${m[0][1]}`, g = `v${r - s[1] - l[1]} a${m[1][0]} 0 0 1 ${m[1][1]}`, b = `h${l[0] + a[0] - n} a${m[2][0]} 0 0 1 ${m[2][1]}`, x = `v${a[1] + u[1] - r} a${m[3][0]} 0 0 1 ${m[3][1]}`; if (o) { - let w = function(le) { - let q = qf([u, s, l, a][le]); - return le === 0 ? [[e + u[0] - q, t + u[1] - q], [e + u[0], t]] : le === 1 ? [[e + n - s[0] + q, t + s[1] - q], [e + n, t + s[1]]] : le === 2 ? [[e + n - l[0] + q, t + r - l[1] + q], [e + n - l[0], t + r]] : [[e + a[0] - q, t + r - a[1] + q], [e, t + r - a[1]]]; - }, C = o.indexOf(false); + let y = function(se) { + let $ = Nf([u, s, l, a][se]); + return se === 0 ? [[e + u[0] - $, t + u[1] - $], [e + u[0], t]] : se === 1 ? [[e + n - s[0] + $, t + s[1] - $], [e + n, t + s[1]]] : se === 2 ? [[e + n - l[0] + $, t + r - l[1] + $], [e + n - l[0], t + r]] : [[e + a[0] - $, t + r - a[1] + $], [e, t + r - a[1]]]; + }, F = o.indexOf(false); if (!o.includes(true)) throw new Error("Invalid `partialSides`."); - if (C === -1) - C = 0; + if (F === -1) + F = 0; else - for (; !o[C]; ) - C = (C + 1) % 4; - let O = "", R = w(C), L = `M${R[0]} A${D[(C + 3) % 4][0]} 0 0 1 ${R[1]}`, Y = 0; - for (; Y < 4 && o[(C + Y) % 4]; Y++) - O += L + " ", L = [F, b, v, E][(C + Y) % 4]; - let se = (C + Y) % 4; - O += L.split(" ")[0]; - let ae = w(se); - return O += ` A${D[(se + 3) % 4][0]} 0 0 1 ${ae[0]}`, O; - } - return `M${e + u[0]},${t} ${F} ${b} ${v} ${E}`; -} -c(); -c(); -c(); -function Ou(e, t, n) { + for (; !o[F]; ) + F = (F + 1) % 4; + let k = "", P = y(F), B = `M${P[0]} A${m[(F + 3) % 4][0]} 0 0 1 ${P[1]}`, H = 0; + for (; H < 4 && o[(F + H) % 4]; H++) + k += B + " ", B = [v, g, b, x][(F + H) % 4]; + let oe = (F + H) % 4; + k += B.split(" ")[0]; + let ue = y(oe); + return k += ` A${m[(oe + 3) % 4][0]} 0 0 1 ${ue[0]}`, k; + } + return `M${e + u[0]},${t} ${v} ${g} ${b} ${x}`; +} +function Su(e, t, n) { return n[e + "Width"] === n[t + "Width"] && n[e + "Style"] === n[t + "Style"] && n[e + "Color"] === n[t + "Color"]; } -function Pu({ id: e, currentClipPathId: t, borderPath: n, borderType: r, left: i, top: o, width: u, height: s }, a) { +function ku({ id: e, currentClipPathId: t, borderPath: n, borderType: r, left: i, top: o, width: u, height: s }, a) { if (!(a.borderTopWidth || a.borderRightWidth || a.borderBottomWidth || a.borderLeftWidth)) return null; let f = `satori_bc-${e}`; - return [k("clipPath", { id: f, "clip-path": t ? `url(#${t})` : void 0 }, k(r, { x: i, y: o, width: u, height: s, d: n || void 0 })), f]; + return [C("clipPath", { id: f, "clip-path": t ? `url(#${t})` : void 0 }, C(r, { x: i, y: o, width: u, height: s, d: n || void 0 })), f]; } -function Ut({ left: e, top: t, width: n, height: r, props: i, asContentMask: o, maskBorderOnly: u }, s) { +function qt({ left: e, top: t, width: n, height: r, props: i, asContentMask: o, maskBorderOnly: u }, s) { let a = ["borderTop", "borderRight", "borderBottom", "borderLeft"]; - if (!o && !a.some((m) => s[m + "Width"])) + if (!o && !a.some((h) => s[h + "Width"])) return ""; let l = "", f = 0; - for (; f > 0 && Ou(a[f], a[(f + 3) % 4], s); ) + for (; f > 0 && Su(a[f], a[(f + 3) % 4], s); ) f = (f + 3) % 4; - let d = [false, false, false, false], h = []; - for (let m = 0; m < 4; m++) { - let p = (f + m) % 4, D = (f + m + 1) % 4, F = a[p], b = a[D]; - if (d[p] = true, h = [s[F + "Width"], s[F + "Style"], s[F + "Color"], F], !Ou(F, b, s)) { - let v = (h[0] || 0) + (o && !u && s[F.replace("border", "padding")] || 0); - v && (l += k("path", { width: n, height: r, ...i, fill: "none", stroke: o ? "#000" : h[2], "stroke-width": v * 2, "stroke-dasharray": !o && h[1] === "dashed" ? v * 2 + " " + v : void 0, d: Ze({ left: e, top: t, width: n, height: r }, s, d) })), d = [false, false, false, false]; + let c = [false, false, false, false], p = []; + for (let h = 0; h < 4; h++) { + let d = (f + h) % 4, m = (f + h + 1) % 4, v = a[d], g = a[m]; + if (c[d] = true, p = [s[v + "Width"], s[v + "Style"], s[v + "Color"], v], !Su(v, g, s)) { + let b = (p[0] || 0) + (o && !u && s[v.replace("border", "padding")] || 0); + b && (l += C("path", { width: n, height: r, ...i, fill: "none", stroke: o ? "#000" : p[2], "stroke-width": b * 2, "stroke-dasharray": !o && p[1] === "dashed" ? b * 2 + " " + b : void 0, d: Qe({ left: e, top: t, width: n, height: r }, s, c) })), c = [false, false, false, false]; } } - if (d.some(Boolean)) { - let m = (h[0] || 0) + (o && !u && s[h[3].replace("border", "padding")] || 0); - m && (l += k("path", { width: n, height: r, ...i, fill: "none", stroke: o ? "#000" : h[2], "stroke-width": m * 2, "stroke-dasharray": !o && h[1] === "dashed" ? m * 2 + " " + m : void 0, d: Ze({ left: e, top: t, width: n, height: r }, s, d) })); + if (c.some(Boolean)) { + let h = (p[0] || 0) + (o && !u && s[p[3].replace("border", "padding")] || 0); + h && (l += C("path", { width: n, height: r, ...i, fill: "none", stroke: o ? "#000" : p[2], "stroke-width": h * 2, "stroke-dasharray": !o && p[1] === "dashed" ? h * 2 + " " + h : void 0, d: Qe({ left: e, top: t, width: n, height: r }, s, c) })); } return l; } -function zn({ id: e, left: t, top: n, width: r, height: i, matrix: o, borderOnly: u }, s) { - let a = (s.borderLeftWidth || 0) + (u ? 0 : s.paddingLeft || 0), l = (s.borderTopWidth || 0) + (u ? 0 : s.paddingTop || 0), f = (s.borderRightWidth || 0) + (u ? 0 : s.paddingRight || 0), d = (s.borderBottomWidth || 0) + (u ? 0 : s.paddingBottom || 0), h = { x: t + a, y: n + l, width: r - a - f, height: i - l - d }; - return k("mask", { id: e }, k("rect", { ...h, fill: "#fff", mask: s._inheritedMaskId ? `url(#${s._inheritedMaskId})` : void 0 }) + Ut({ left: t, top: n, width: r, height: i, props: { transform: o || void 0 }, asContentMask: true, maskBorderOnly: u }, s)); +function qn({ id: e, left: t, top: n, width: r, height: i, matrix: o, borderOnly: u }, s) { + let a = (s.borderLeftWidth || 0) + (u ? 0 : s.paddingLeft || 0), l = (s.borderTopWidth || 0) + (u ? 0 : s.paddingTop || 0), f = (s.borderRightWidth || 0) + (u ? 0 : s.paddingRight || 0), c = (s.borderBottomWidth || 0) + (u ? 0 : s.paddingBottom || 0), p = { x: t + a, y: n + l, width: r - a - f, height: i - l - c }; + return C("mask", { id: e }, C("rect", { ...p, fill: "#fff", mask: s._inheritedMaskId ? `url(#${s._inheritedMaskId})` : void 0 }) + qt({ left: t, top: n, width: r, height: i, props: { transform: o || void 0 }, asContentMask: true, maskBorderOnly: u }, s)); } -c(); -c(); -var zt = { circle: /circle\((.+)\)/, ellipse: /ellipse\((.+)\)/, path: /path\((.+)\)/, polygon: /polygon\((.+)\)/, inset: /inset\((.+)\)/ }; -function Lu({ width: e, height: t }, n, r) { +var Ut = { circle: /circle\((.+)\)/, ellipse: /ellipse\((.+)\)/, path: /path\((.+)\)/, polygon: /polygon\((.+)\)/, inset: /inset\((.+)\)/ }; +function Pu({ width: e, height: t }, n, r) { function i(l) { - let f = l.match(zt.circle); + let f = l.match(Ut.circle); if (!f) return null; - let [, d] = f, [h, m = ""] = d.split("at").map((F) => F.trim()), { x: p, y: D } = Ru(m, e, t); - return { type: "circle", r: G(h, r.fontSize, Math.sqrt(Math.pow(e, 2) + Math.pow(t, 2)) / Math.sqrt(2), r, true), cx: G(p, r.fontSize, e, r, true), cy: G(D, r.fontSize, t, r, true) }; + let [, c] = f, [p, h = ""] = c.split("at").map((v) => v.trim()), { x: d, y: m } = Ou(h, e, t); + return { type: "circle", r: U(p, r.fontSize, Math.sqrt(Math.pow(e, 2) + Math.pow(t, 2)) / Math.sqrt(2), r, true), cx: U(d, r.fontSize, e, r, true), cy: U(m, r.fontSize, t, r, true) }; } function o(l) { - let f = l.match(zt.ellipse); + let f = l.match(Ut.ellipse); if (!f) return null; - let [, d] = f, [h, m = ""] = d.split("at").map((v) => v.trim()), [p, D] = h.split(" "), { x: F, y: b } = Ru(m, e, t); - return { type: "ellipse", rx: G(p || "50%", r.fontSize, e, r, true), ry: G(D || "50%", r.fontSize, t, r, true), cx: G(F, r.fontSize, e, r, true), cy: G(b, r.fontSize, t, r, true) }; + let [, c] = f, [p, h = ""] = c.split("at").map((b) => b.trim()), [d, m] = p.split(" "), { x: v, y: g } = Ou(h, e, t); + return { type: "ellipse", rx: U(d || "50%", r.fontSize, e, r, true), ry: U(m || "50%", r.fontSize, t, r, true), cx: U(v, r.fontSize, e, r, true), cy: U(g, r.fontSize, t, r, true) }; } function u(l) { - let f = l.match(zt.path); + let f = l.match(Ut.path); if (!f) return null; - let [d, h] = Bu(f[1]); - return { type: "path", d: h, "fill-rule": d }; + let [c, p] = Au(f[1]); + return { type: "path", d: p, "fill-rule": c }; } function s(l) { - let f = l.match(zt.polygon); + let f = l.match(Ut.polygon); if (!f) return null; - let [d, h] = Bu(f[1]); - return { type: "polygon", "fill-rule": d, points: h.split(",").map((m) => m.split(" ").map((p, D) => G(p, r.fontSize, D === 0 ? e : t, r, true)).join(" ")).join(",") }; + let [c, p] = Au(f[1]); + return { type: "polygon", "fill-rule": c, points: p.split(",").map((h) => h.split(" ").map((d, m) => U(d, r.fontSize, m === 0 ? e : t, r, true)).join(" ")).join(",") }; } function a(l) { - let f = l.match(zt.inset); + let f = l.match(Ut.inset); if (!f) return null; - let [d, h] = (f[1].includes("round") ? f[1] : `${f[1].trim()} round 0`).split("round"), m = (0, import_css_to_react_native3.getStylesForProperty)("borderRadius", h, true), p = Object.values(m).map((C) => String(C)).map((C, w) => G(C, r.fontSize, w === 0 || w === 2 ? t : e, r, true) || 0), D = Object.values((0, import_css_to_react_native3.getStylesForProperty)("margin", d, true)).map((C) => String(C)).map((C, w) => G(C, r.fontSize, w === 0 || w === 2 ? t : e, r, true) || 0), F = D[3], b = D[0], v = e - (D[1] + D[3]), E = t - (D[0] + D[2]); - if (p.some((C) => C > 0)) { - let C = Ze({ left: F, top: b, width: v, height: E }, { ...n, ...m }); - return { type: "path", d: C }; - } - return { type: "rect", x: F, y: b, width: v, height: E }; + let [c, p] = (f[1].includes("round") ? f[1] : `${f[1].trim()} round 0`).split("round"), h = (0, import_css_to_react_native3.getStylesForProperty)("borderRadius", p, true), d = Object.values(h).map((F) => String(F)).map((F, y) => U(F, r.fontSize, y === 0 || y === 2 ? t : e, r, true) || 0), m = Object.values((0, import_css_to_react_native3.getStylesForProperty)("margin", c, true)).map((F) => String(F)).map((F, y) => U(F, r.fontSize, y === 0 || y === 2 ? t : e, r, true) || 0), v = m[3], g = m[0], b = e - (m[1] + m[3]), x = t - (m[0] + m[2]); + return d.some((F) => F > 0) ? { type: "path", d: Qe({ left: v, top: g, width: b, height: x }, { ...n, ...h }) } : { type: "rect", x: v, y: g, width: b, height: x }; } return { parseCircle: i, parseEllipse: o, parsePath: u, parsePolygon: s, parseInset: a }; } -function Bu(e) { +function Au(e) { let [, t = "nonzero", n] = e.replace(/('|")/g, "").match(/^(nonzero|evenodd)?,?(.+)/) || []; return [t, n]; } -function Ru(e, t, n) { +function Ou(e, t, n) { let r = e.split(" "), i = { x: r[0] || "50%", y: r[1] || "50%" }; return r.forEach((o) => { o === "top" ? i.y = 0 : o === "bottom" ? i.y = n : o === "left" ? i.x = 0 : o === "right" ? i.x = t : o === "center" && (i.x = t / 2, i.y = n / 2); }), i; } -function Qr(e) { +function Vr(e) { return `satori_cp-${e}`; } -function Mu(e) { - return `url(#${Qr(e)})`; +function Bu(e) { + return `url(#${Vr(e)})`; } -function Nu(e, t, n) { +function Iu(e, t, n) { if (t.clipPath === "none") return ""; - let r = Lu(e, t, n), i = t.clipPath, o = { type: "" }; + let r = Pu(e, t, n), i = t.clipPath, o = { type: "" }; for (let u of Object.keys(r)) if (o = r[u](i), o) break; if (o) { let { type: u, ...s } = o; - return k("clipPath", { id: Qr(e.id), "clip-path": e.currentClipPath, transform: `translate(${e.left}, ${e.top})` }, k(u, s)); + return C("clipPath", { id: Vr(e.id), "clip-path": e.currentClipPath, transform: `translate(${e.left}, ${e.top})` }, C(u, s)); } return ""; } -function Gn({ left: e, top: t, width: n, height: r, path: i, matrix: o, id: u, currentClipPath: s, src: a }, l, f) { - let d = "", h = l.clipPath && l.clipPath !== "none" ? Nu({ left: e, top: t, width: n, height: r, path: i, id: u, matrix: o, currentClipPath: s, src: a }, l, f) : ""; +function Un({ left: e, top: t, width: n, height: r, path: i, matrix: o, id: u, currentClipPath: s, src: a }, l, f) { + let c = "", p = l.clipPath && l.clipPath !== "none" ? Iu({ left: e, top: t, width: n, height: r, path: i, id: u, matrix: o, currentClipPath: s, src: a }, l, f) : ""; if (l.overflow !== "hidden" && !a) - d = ""; + c = ""; else { - let p = h ? `satori_ocp-${u}` : Qr(u); - d = k("clipPath", { id: p, "clip-path": s }, k(i ? "path" : "rect", { x: e, y: t, width: n, height: r, d: i || void 0 })); + let d = p ? `satori_ocp-${u}` : Vr(u); + c = C("clipPath", { id: d, "clip-path": s }, C(i ? "path" : "rect", { x: e, y: t, width: n, height: r, d: i || void 0 })); } - let m = zn({ id: `satori_om-${u}`, left: e, top: t, width: n, height: r, matrix: o, borderOnly: !a }, l); - return h + d + m; + let h = qn({ id: `satori_om-${u}`, left: e, top: t, width: n, height: r, matrix: o, borderOnly: !a }, l); + return p + c + h; } -c(); -var Uf = (e) => `satori_mi-${e}`; -async function jn(e, t, n) { +var $f = (e) => `satori_mi-${e}`; +async function zn(e, t, n) { if (!t.maskImage) return ["", ""]; let { left: r, top: i, width: o, height: u, id: s } = e, a = t.maskImage, l = a.length; if (!l) return ["", ""]; - let f = Uf(s), d = ""; - for (let h = 0; h < l; h++) { - let m = a[h], [p, D] = await qt({ id: `${f}-${h}`, left: r, top: i, width: o, height: u }, m, n, "mask"); - d += D + k("rect", { x: 0, y: 0, width: o, height: u, fill: `url(#${p})` }); + let f = $f(s), c = ""; + for (let p = 0; p < l; p++) { + let h = a[p], [d, m] = await Wt({ id: `${f}-${p}`, left: r, top: i, width: o, height: u }, h, n, "mask"); + c += m + C("rect", { x: 0, y: 0, width: o, height: u, fill: `url(#${d})` }); } - return d = k("mask", { id: f }, d), [f, d]; + return c = C("mask", { id: f }, c), [f, c]; } -async function Gt({ id: e, left: t, top: n, width: r, height: i, isInheritingTransform: o, src: u, debug: s }, a, l) { +async function zt({ id: e, left: t, top: n, width: r, height: i, isInheritingTransform: o, src: u, debug: s }, a, l) { if (a.display === "none") return ""; - let f = !!u, d = "rect", h = "", m = "", p = [], D = 1, F = ""; - a.backgroundColor && p.push(a.backgroundColor), a.opacity !== void 0 && (D = +a.opacity), a.transform && (h = Nt({ left: t, top: n, width: r, height: i }, a.transform, o, a.transformOrigin)); - let b = ""; + let f = !!u, c = "rect", p = "", h = "", d = [], m = 1, v = ""; + a.backgroundColor && d.push(a.backgroundColor), a.opacity !== void 0 && (m = +a.opacity), a.transform && (p = Mt({ left: t, top: n, width: r, height: i }, a.transform, o, a.transformOrigin)); + let g = ""; if (a.backgroundImage) { - let $ = []; - for (let J = 0; J < a.backgroundImage.length; J++) { - let he = a.backgroundImage[J], X = await qt({ id: e + "_" + J, width: r, height: i, left: t, top: n }, he, l); - X && $.unshift(X); - } - for (let J of $) - p.push(`url(#${J[0]})`), m += J[1], J[2] && (b += J[2]); - } - let [v, E] = await jn({ id: e, left: t, top: n, width: r, height: i }, a, l); - m += E; - let C = v ? `url(#${v})` : a._inheritedMaskId ? `url(#${a._inheritedMaskId})` : void 0, w = Ze({ left: t, top: n, width: r, height: i }, a); - w && (d = "path"); - let O = a._inheritedClipPathId; - s && (F = k("rect", { x: t, y: n, width: r, height: i, fill: "transparent", stroke: "#ff5757", "stroke-width": 1, transform: h || void 0, "clip-path": O ? `url(#${O})` : void 0 })); - let { backgroundClip: R, filter: L } = a, Y = R === "text" ? `url(#satori_bct-${e})` : O ? `url(#${O})` : a.clipPath ? Mu(e) : void 0, se = Gn({ left: t, top: n, width: r, height: i, path: w, id: e, matrix: h, currentClipPath: Y, src: u }, a, l), ae = p.map(($) => k(d, { x: t, y: n, width: r, height: i, fill: $, d: w || void 0, transform: h || void 0, "clip-path": Y, style: L ? `filter:${L}` : void 0, mask: C })).join(""), le = Pu({ id: e, left: t, top: n, width: r, height: i, currentClipPathId: O, borderPath: w, borderType: d }, a); + let L = []; + for (let X = 0; X < a.backgroundImage.length; X++) { + let ce = a.backgroundImage[X], V = await Wt({ id: e + "_" + X, width: r, height: i, left: t, top: n }, ce, l); + V && L.unshift(V); + } + for (let X of L) + d.push(`url(#${X[0]})`), h += X[1], X[2] && (g += X[2]); + } + let [b, x] = await zn({ id: e, left: t, top: n, width: r, height: i }, a, l); + h += x; + let F = b ? `url(#${b})` : a._inheritedMaskId ? `url(#${a._inheritedMaskId})` : void 0, y = Qe({ left: t, top: n, width: r, height: i }, a); + y && (c = "path"); + let k = a._inheritedClipPathId; + s && (v = C("rect", { x: t, y: n, width: r, height: i, fill: "transparent", stroke: "#ff5757", "stroke-width": 1, transform: p || void 0, "clip-path": k ? `url(#${k})` : void 0 })); + let { backgroundClip: P, filter: B } = a, H = P === "text" ? `url(#satori_bct-${e})` : k ? `url(#${k})` : a.clipPath ? Bu(e) : void 0, oe = Un({ left: t, top: n, width: r, height: i, path: y, id: e, matrix: p, currentClipPath: H, src: u }, a, l), ue = d.map((L) => C(c, { x: t, y: n, width: r, height: i, fill: L, d: y || void 0, transform: p || void 0, "clip-path": H, style: B ? `filter:${B}` : void 0, mask: F })).join(""), se = ku({ id: e, left: t, top: n, width: r, height: i, currentClipPathId: k, borderPath: y, borderType: c }, a); if (f) { - let $ = (a.borderLeftWidth || 0) + (a.paddingLeft || 0), J = (a.borderTopWidth || 0) + (a.paddingTop || 0), he = (a.borderRightWidth || 0) + (a.paddingRight || 0), X = (a.borderBottomWidth || 0) + (a.paddingBottom || 0), re = a.objectFit === "contain" ? "xMidYMid" : a.objectFit === "cover" ? "xMidYMid slice" : "none"; - ae += k("image", { x: t + $, y: n + J, width: r - $ - he, height: i - J - X, href: u, preserveAspectRatio: re, transform: h || void 0, style: L ? `filter:${L}` : void 0, "clip-path": `url(#satori_cp-${e})`, mask: v ? `url(#${v})` : `url(#satori_om-${e})` }); - } - if (le) { - m += le[0]; - let $ = le[1]; - ae += Ut({ left: t, top: n, width: r, height: i, props: { transform: h || void 0, "clip-path": `url(#${$})` } }, a); - } - let q = Su({ width: r, height: i, id: e, opacity: D, shape: k(d, { x: t, y: n, width: r, height: i, fill: "#fff", stroke: "#fff", "stroke-width": 0, d: w || void 0, transform: h || void 0, "clip-path": Y, mask: C }) }, a); - return (m ? k("defs", {}, m) : "") + (q ? q[0] : "") + se + (D !== 1 ? `` : "") + (b || ae) + (D !== 1 ? "" : "") + (q ? q[1] : "") + F; -} -c(); -c(); -var $u = () => /[#*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\u26D3\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](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\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]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\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])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\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-\uDDF5\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]|\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(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\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-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\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-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\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-\uDDB3\uDDBC\uDDBD])|\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-\uDDB3\uDDBC\uDDBD]|\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-\uDDB3\uDDBC\uDDBD]|\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-\uDDB3\uDDBC\uDDBD]|\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-\uDDB3\uDDBC\uDDBD]|\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-\uDDB3\uDDBC\uDDBD]|\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-\uDDB3\uDDBC\uDDBD])|\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-\uDDB3\uDDBC\uDDBD]|\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-\uDDB3\uDDBC\uDDBD]|\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-\uDDB3\uDDBC\uDDBD]|\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-\uDDB3\uDDBC\uDDBD]|\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-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\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-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\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-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\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-\uDDB3\uDDBC\uDDBD]|\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-\uDDB3\uDDBC\uDDBD]|\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-\uDDB3\uDDBC\uDDBD]|\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-\uDDB3\uDDBC\uDDBD]|\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-\uDDB3\uDDBC\uDDBD]|\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; -var zf = new RegExp($u(), ""); -var Hn = { emoji: zf, symbol: /\p{Symbol}/u, math: /\p{Math}/u }; -var Vn = { "ja-JP": /\p{scx=Hira}|\p{scx=Kana}|\p{scx=Han}|[\u3000]|[\uFF00-\uFFEF]/u, "ko-KR": /\p{scx=Hangul}/u, "zh-CN": /\p{scx=Han}/u, "zh-TW": /\p{scx=Han}/u, "zh-HK": /\p{scx=Han}/u, "th-TH": /\p{scx=Thai}/u, "bn-IN": /\p{scx=Bengali}/u, "ar-AR": /\p{scx=Arabic}/u, "ta-IN": /\p{scx=Tamil}/u, "ml-IN": /\p{scx=Malayalam}/u, "he-IL": /\p{scx=Hebrew}/u, "te-IN": /\p{scx=Telugu}/u, devanagari: /\p{scx=Devanagari}/u, kannada: /\p{scx=Kannada}/u }; -var Kr = Object.keys({ ...Vn, ...Hn }); -function Wu(e) { - return Kr.includes(e); -} -function qu(e, t) { - for (let r of Object.keys(Hn)) - if (Hn[r].test(e)) + let L = (a.borderLeftWidth || 0) + (a.paddingLeft || 0), X = (a.borderTopWidth || 0) + (a.paddingTop || 0), ce = (a.borderRightWidth || 0) + (a.paddingRight || 0), V = (a.borderBottomWidth || 0) + (a.paddingBottom || 0), Z = a.objectFit === "contain" ? "xMidYMid" : a.objectFit === "cover" ? "xMidYMid slice" : "none"; + ue += C("image", { x: t + L, y: n + X, width: r - L - ce, height: i - X - V, href: u, preserveAspectRatio: Z, transform: p || void 0, style: B ? `filter:${B}` : void 0, "clip-path": `url(#satori_cp-${e})`, mask: b ? `url(#${b})` : `url(#satori_om-${e})` }); + } + if (se) { + h += se[0]; + let L = se[1]; + ue += qt({ left: t, top: n, width: r, height: i, props: { transform: p || void 0, "clip-path": `url(#${L})` } }, a); + } + let $ = wu({ width: r, height: i, id: e, opacity: m, shape: C(c, { x: t, y: n, width: r, height: i, fill: "#fff", stroke: "#fff", "stroke-width": 0, d: y || void 0, transform: p || void 0, "clip-path": H, mask: F }) }, a); + return (h ? C("defs", {}, h) : "") + ($ ? $[0] : "") + oe + (m !== 1 ? `` : "") + (g || ue) + (m !== 1 ? "" : "") + ($ ? $[1] : "") + v; +} +var Ru = () => /[#*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\u26D3\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](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\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]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\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])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\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-\uDDF5\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]|\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(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\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-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\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-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\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-\uDDB3\uDDBC\uDDBD])|\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-\uDDB3\uDDBC\uDDBD]|\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-\uDDB3\uDDBC\uDDBD]|\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-\uDDB3\uDDBC\uDDBD]|\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-\uDDB3\uDDBC\uDDBD]|\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-\uDDB3\uDDBC\uDDBD]|\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-\uDDB3\uDDBC\uDDBD])|\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-\uDDB3\uDDBC\uDDBD]|\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-\uDDB3\uDDBC\uDDBD]|\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-\uDDB3\uDDBC\uDDBD]|\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-\uDDB3\uDDBC\uDDBD]|\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-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\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-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\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-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\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-\uDDB3\uDDBC\uDDBD]|\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-\uDDB3\uDDBC\uDDBD]|\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-\uDDB3\uDDBC\uDDBD]|\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-\uDDB3\uDDBC\uDDBD]|\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-\uDDB3\uDDBC\uDDBD]|\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; +var Wf = new RegExp(Ru(), ""); +var Gn = { emoji: Wf, symbol: /\p{Symbol}/u, math: /\p{Math}/u }; +var jn = { "ja-JP": /\p{scx=Hira}|\p{scx=Kana}|\p{scx=Han}|[\u3000]|[\uFF00-\uFFEF]/u, "ko-KR": /\p{scx=Hangul}/u, "zh-CN": /\p{scx=Han}/u, "zh-TW": /\p{scx=Han}/u, "zh-HK": /\p{scx=Han}/u, "th-TH": /\p{scx=Thai}/u, "bn-IN": /\p{scx=Bengali}/u, "ar-AR": /\p{scx=Arabic}/u, "ta-IN": /\p{scx=Tamil}/u, "ml-IN": /\p{scx=Malayalam}/u, "he-IL": /\p{scx=Hebrew}/u, "te-IN": /\p{scx=Telugu}/u, devanagari: /\p{scx=Devanagari}/u, kannada: /\p{scx=Kannada}/u }; +var Yr = Object.keys({ ...jn, ...Gn }); +function Lu(e) { + return Yr.includes(e); +} +function Mu(e, t) { + for (let r of Object.keys(Gn)) + if (Gn[r].test(e)) return [r]; - let n = Object.keys(Vn).filter((r) => Vn[r].test(e)); + let n = Object.keys(jn).filter((r) => jn[r].test(e)); if (n.length === 0) return ["unknown"]; if (t) { @@ -16235,73 +16144,72 @@ function qu(e, t) { } return n; } -function Uu(e) { +function Nu(e) { if (e) - return Kr.find((t) => t.toLowerCase().startsWith(e.toLowerCase())); + return Yr.find((t) => t.toLowerCase().startsWith(e.toLowerCase())); } -async function* jt(e, t) { - var W; - let n = await Ge(), { id: r, inheritedStyle: i, parent: o, font: u, debug: s, locale: a, embedFont: l = true, graphemeImages: f, canLoadAdditionalAssets: d, getTwStyles: h } = t; +async function* Gt(e, t) { + var M; + let n = await qe(), { id: r, inheritedStyle: i, parent: o, font: u, debug: s, locale: a, embedFont: l = true, graphemeImages: f, canLoadAdditionalAssets: c, getTwStyles: p } = t; if (e === null || typeof e > "u") return yield, yield, ""; - if (!yt(e) || typeof e.type == "function") { - let N; - if (!yt(e)) - N = $n(String(e), t), yield (await N.next()).value; + if (!bt(e) || typeof e.type == "function") { + let R; + if (!bt(e)) + R = Mn(String(e), t), yield (await R.next()).value; else { - if (tu(e.type)) + if (Ko(e.type)) throw new Error("Class component is not supported."); - N = jt(e.type(e.props), t), yield (await N.next()).value; + R = Gt(e.type(e.props), t), yield (await R.next()).value; } - await N.next(); - let fe = yield; - return (await N.next(fe)).value; + await R.next(); + let ae = yield; + return (await R.next(ae)).value; } - let { type: m, props: p } = e; - if (p && ru(p)) + let { type: h, props: d } = e; + if (d && Jo(d)) throw new Error("dangerouslySetInnerHTML property is not supported. See documentation for more information https://github.com/vercel/satori#jsx."); - let { style: D, children: F, tw: b, lang: v = a } = p || {}, E = Uu(v); - if (b) { - let N = h(b, D); - D = Object.assign(N, D); - } - let C = n.Node.create(); - o.insertChild(C, o.getChildCount()); - let [w, O] = await Bn(C, m, i, D, p), R = w.transform === i.transform; - if (R || (w.transform.__parent = i.transform), (w.overflow === "hidden" || w.clipPath && w.clipPath !== "none") && (O._inheritedClipPathId = `satori_cp-${r}`, O._inheritedMaskId = `satori_om-${r}`), w.maskImage && (O._inheritedMaskId = `satori_mi-${r}`), w.backgroundClip === "text") { - let N = { value: "" }; - O._inheritedBackgroundClipTextPath = N, w._inheritedBackgroundClipTextPath = N; - } - let L = nu(F), Y = [], se = 0, ae = []; - for (let N of L) { - let fe = jt(N, { id: r + "-" + se++, parentStyle: w, inheritedStyle: O, isInheritingTransform: true, parent: C, font: u, embedFont: l, debug: s, graphemeImages: f, canLoadAdditionalAssets: d, locale: E, getTwStyles: h, onNodeDetected: t.onNodeDetected }); - d ? ae.push(...(await fe.next()).value || []) : await fe.next(), Y.push(fe); - } - yield ae; - for (let N of Y) - await N.next(); - let [le, q] = yield, { left: $, top: J, width: he, height: X } = C.getComputedLayout(); - $ += le, J += q; - let re = "", ce = "", be = "", { children: I, ...B } = p; - if ((W = t.onNodeDetected) == null || W.call(t, { left: $, top: J, width: he, height: X, type: m, props: B, key: e.key, textContent: yt(I) ? void 0 : I }), m === "img") { - let N = w.__src; - ce = await Gt({ id: r, left: $, top: J, width: he, height: X, src: N, isInheritingTransform: R, debug: s }, w, O); - } else if (m === "svg") { - let N = w.color, fe = await Du(e, N); - ce = await Gt({ id: r, left: $, top: J, width: he, height: X, src: fe, isInheritingTransform: R, debug: s }, w, O); + let { style: m, children: v, tw: g, lang: b = a } = d || {}, x = Nu(b); + if (g) { + let R = p(g, m); + m = Object.assign(R, m); + } + let F = n.Node.create(); + o.insertChild(F, o.getChildCount()); + let [y, k] = await Pn(F, h, i, m, d), P = y.transform === i.transform; + if (P || (y.transform.__parent = i.transform), (y.overflow === "hidden" || y.clipPath && y.clipPath !== "none") && (k._inheritedClipPathId = `satori_cp-${r}`, k._inheritedMaskId = `satori_om-${r}`), y.maskImage && (k._inheritedMaskId = `satori_mi-${r}`), y.backgroundClip === "text") { + let R = { value: "" }; + k._inheritedBackgroundClipTextPath = R, y._inheritedBackgroundClipTextPath = R; + } + let B = Zo(v), H = [], oe = 0, ue = []; + for (let R of B) { + let ae = Gt(R, { id: r + "-" + oe++, parentStyle: y, inheritedStyle: k, isInheritingTransform: true, parent: F, font: u, embedFont: l, debug: s, graphemeImages: f, canLoadAdditionalAssets: c, locale: x, getTwStyles: p, onNodeDetected: t.onNodeDetected }); + c ? ue.push(...(await ae.next()).value || []) : await ae.next(), H.push(ae); + } + yield ue; + for (let R of H) + await R.next(); + let [se, $] = yield, { left: L, top: X, width: ce, height: V } = F.getComputedLayout(); + L += se, X += $; + let Z = "", le = "", he = "", { children: A, ...O } = d; + if ((M = t.onNodeDetected) == null || M.call(t, { left: L, top: X, width: ce, height: V, type: h, props: O, key: e.key, textContent: bt(A) ? void 0 : A }), h === "img") { + let R = y.__src; + le = await zt({ id: r, left: L, top: X, width: ce, height: V, src: R, isInheritingTransform: P, debug: s }, y, k); + } else if (h === "svg") { + let R = y.color, ae = await du(e, R); + le = await zt({ id: r, left: L, top: X, width: ce, height: V, src: ae, isInheritingTransform: P, debug: s }, y, k); } else { - let N = D == null ? void 0 : D.display; - if (m === "div" && F && typeof F != "string" && N !== "flex" && N !== "none") + let R = m == null ? void 0 : m.display; + if (h === "div" && v && typeof v != "string" && R !== "flex" && R !== "none") throw new Error('Expected
to have explicit "display: flex" or "display: none" if it has more than one child node.'); - ce = await Gt({ id: r, left: $, top: J, width: he, height: X, isInheritingTransform: R, debug: s }, w, O); + le = await zt({ id: r, left: L, top: X, width: ce, height: V, isInheritingTransform: P, debug: s }, y, k); } - for (let N of Y) - re += (await N.next([$, J])).value; - return w._inheritedBackgroundClipTextPath && (be += k("clipPath", { id: `satori_bct-${r}`, "clip-path": w._inheritedClipPathId ? `url(#${w._inheritedClipPathId})` : void 0 }, w._inheritedBackgroundClipTextPath.value)), be + ce + re; + for (let R of H) + Z += (await R.next([L, X])).value; + return y._inheritedBackgroundClipTextPath && (he += C("clipPath", { id: `satori_bct-${r}`, "clip-path": y._inheritedClipPathId ? `url(#${y._inheritedClipPathId})` : void 0 }, y._inheritedBackgroundClipTextPath.value)), he + le + Z; } -c(); -var zu = "unknown"; -function Gf(e, t, [n, r], [i, o]) { +var $u = "unknown"; +function qf(e, t, [n, r], [i, o]) { if (n !== i) return n ? !i || n === e ? -1 : i === e ? 1 : e === 400 && n === 500 || e === 500 && n === 400 ? -1 : e === 400 && i === 500 || e === 500 && i === 400 ? 1 : e < 400 ? n < e && i < e ? i - n : n < e ? -1 : i < e ? 1 : n - i : e < n && e < i ? n - i : e < n ? -1 : e < i ? 1 : i - n : 1; if (r !== o) { @@ -16312,9 +16220,10 @@ function Gf(e, t, [n, r], [i, o]) { } return -1; } -var Ht = class { +var jt = class { + defaultFont; + fonts = /* @__PURE__ */ new Map(); constructor(t) { - this.fonts = /* @__PURE__ */ new Map(); this.addFonts(t); } get({ name: t, weight: n, style: r }) { @@ -16324,19 +16233,19 @@ var Ht = class { let i = [...this.fonts.get(t)], o = i[0]; for (let u = 1; u < i.length; u++) { let [, s, a] = o, [, l, f] = i[u]; - Gf(n, r, [s, a], [l, f]) > 0 && (o = i[u]); + qf(n, r, [s, a], [l, f]) > 0 && (o = i[u]); } return o[0]; } addFonts(t) { for (let n of t) { let { name: r, data: i, lang: o } = n; - if (o && !Wu(o)) - throw new Error(`Invalid value for props \`lang\`: "${o}". The value must be one of the following: ${Kr.join(", ")}.`); - let u = o ?? zu, s = opentype_module_default.parse("buffer" in i ? i.buffer.slice(i.byteOffset, i.byteOffset + i.byteLength) : i, { lowMemory: true }), a = s.charToGlyphIndex; + if (o && !Lu(o)) + throw new Error(`Invalid value for props \`lang\`: "${o}". The value must be one of the following: ${Yr.join(", ")}.`); + let u = o ?? $u, s = opentype_module_default.parse("buffer" in i ? i.buffer.slice(i.byteOffset, i.byteOffset + i.byteLength) : i, { lowMemory: true }), a = s.charToGlyphIndex; s.charToGlyphIndex = (f) => { - let d = a.call(s, f); - return d === 0 && s._trackBrokenChars && s._trackBrokenChars.push(f), d; + let c = a.call(s, f); + return c === 0 && s._trackBrokenChars && s._trackBrokenChars.push(f), c; }, this.defaultFont || (this.defaultFont = s); let l = `${r.toLowerCase()}_${u}`; this.fonts.has(l) || this.fonts.set(l, []), this.fonts.get(l).push([s, n.weight, n.style]); @@ -16345,54 +16254,54 @@ var Ht = class { getEngine(t = 16, n = 1.2, { fontFamily: r = "sans-serif", fontWeight: i = 400, fontStyle: o = "normal" }, u) { if (!this.fonts.size) throw new Error("No fonts are loaded. At least one font is required to calculate the layout."); - r = (Array.isArray(r) ? r : [r]).map((v) => v.toLowerCase()); + r = (Array.isArray(r) ? r : [r]).map((b) => b.toLowerCase()); let s = []; - r.forEach((v) => { - let E = this.get({ name: v, weight: i, style: o }); - if (E) { - s.push(E); + r.forEach((b) => { + let x = this.get({ name: b, weight: i, style: o }); + if (x) { + s.push(x); return; } - let C = this.get({ name: v + "_unknown", weight: i, style: o }); - if (C) { - s.push(C); + let F = this.get({ name: b + "_unknown", weight: i, style: o }); + if (F) { + s.push(F); return; } }); - let a = Array.from(this.fonts.keys()), l = [], f = [], d = []; - for (let v of a) - if (!r.includes(v)) + let a = Array.from(this.fonts.keys()), l = [], f = [], c = []; + for (let b of a) + if (!r.includes(b)) if (u) { - let E = jf(v); - E ? E === u ? l.push(this.get({ name: v, weight: i, style: o })) : f.push(this.get({ name: v, weight: i, style: o })) : d.push(this.get({ name: v, weight: i, style: o })); + let x = Uf(b); + x ? x === u ? l.push(this.get({ name: b, weight: i, style: o })) : f.push(this.get({ name: b, weight: i, style: o })) : c.push(this.get({ name: b, weight: i, style: o })); } else - d.push(this.get({ name: v, weight: i, style: o })); - let h = /* @__PURE__ */ new Map(), m = (v, E = true) => { - let C = [...s, ...d, ...l, ...E ? f : []]; - if (typeof v > "u") - return E ? C[C.length - 1] : void 0; - let w = v.charCodeAt(0); - if (h.has(w)) - return h.get(w); - let O = C.find((R, L) => !!R.charToGlyphIndex(v) || E && L === C.length - 1); - return O && h.set(w, O), O; - }, p = (v, E = false) => { - var w, O; - return ((E ? (O = (w = v.tables) == null ? void 0 : w.os2) == null ? void 0 : O.sTypoAscender : 0) || v.ascender) / v.unitsPerEm * t; - }, D = (v, E = false) => { - var w, O; - return ((E ? (O = (w = v.tables) == null ? void 0 : w.os2) == null ? void 0 : O.sTypoDescender : 0) || v.descender) / v.unitsPerEm * t; - }, F = (v) => m(v, false), b = { has: (v) => { - if (v === ` + c.push(this.get({ name: b, weight: i, style: o })); + let p = /* @__PURE__ */ new Map(), h = (b, x = true) => { + let F = [...s, ...c, ...l, ...x ? f : []]; + if (typeof b > "u") + return x ? F[F.length - 1] : void 0; + let y = b.charCodeAt(0); + if (p.has(y)) + return p.get(y); + let k = F.find((P, B) => !!P.charToGlyphIndex(b) || x && B === F.length - 1); + return k && p.set(y, k), k; + }, d = (b, x = false) => { + var y, k; + return ((x ? (k = (y = b.tables) == null ? void 0 : y.os2) == null ? void 0 : k.sTypoAscender : 0) || b.ascender) / b.unitsPerEm * t; + }, m = (b, x = false) => { + var y, k; + return ((x ? (k = (y = b.tables) == null ? void 0 : y.os2) == null ? void 0 : k.sTypoDescender : 0) || b.descender) / b.unitsPerEm * t; + }, v = (b) => h(b, false), g = { has: (b) => { + if (b === ` `) return true; - let E = F(v); - return E ? (E._trackBrokenChars = [], E.stringToGlyphs(v), E._trackBrokenChars.length ? (E._trackBrokenChars = void 0, false) : true) : false; - }, baseline: (v, E = typeof v > "u" ? s[0] : m(v)) => { - let C = p(E, true), w = D(E, true), O = b.height(v, E), { yMax: R, yMin: L } = E.tables.head, Y = C - w, se = (R / (R - L) - 1) * Y; - return O * ((1.2 / n + 1) / 2) + se; - }, height: (v, E = typeof v > "u" ? s[0] : m(v)) => (p(E) - D(E)) * (n / 1.2), measure: (v, E) => this.measure(m, v, E), getSVG: (v, E) => this.getSVG(m, v, E) }; - return b; + let x = v(b); + return x ? (x._trackBrokenChars = [], x.stringToGlyphs(b), x._trackBrokenChars.length ? (x._trackBrokenChars = void 0, false) : true) : false; + }, baseline: (b, x = typeof b > "u" ? s[0] : h(b)) => { + let F = d(x, true), y = m(x, true), k = g.height(b, x), { yMax: P, yMin: B } = x.tables.head, H = F - y, oe = (P / (P - B) - 1) * H; + return k * ((1.2 / n + 1) / 2) + oe; + }, height: (b, x = typeof b > "u" ? s[0] : h(b)) => (d(x) - m(x)) * (n / 1.2), measure: (b, x) => this.measure(h, b, x), getSVG: (b, x) => this.getSVG(h, b, x) }; + return g; } patchFontFallbackResolver(t, n) { let r = []; @@ -16404,15 +16313,15 @@ var Ht = class { if (s[a].unicode === void 0) { let l = r.shift(), f = n(l); if (f !== t) { - let d = f.charToGlyph(l), h = t.unitsPerEm / f.unitsPerEm, m = new opentype_module_default.Path(); - m.unitsPerEm = t.unitsPerEm, m.commands = d.path.commands.map((D) => { - let F = { ...D }; - for (let b in F) - typeof F[b] == "number" && (F[b] *= h); - return F; + let c = f.charToGlyph(l), p = t.unitsPerEm / f.unitsPerEm, h = new opentype_module_default.Path(); + h.unitsPerEm = t.unitsPerEm, h.commands = c.path.commands.map((m) => { + let v = { ...m }; + for (let g in v) + typeof v[g] == "number" && (v[g] *= p); + return v; }); - let p = new opentype_module_default.Glyph({ ...d, advanceWidth: d.advanceWidth * h, xMin: d.xMin * h, xMax: d.xMax * h, yMin: d.yMin * h, yMax: d.yMax * h, path: m }); - s[a] = p; + let d = new opentype_module_default.Glyph({ ...c, advanceWidth: c.advanceWidth * p, xMin: c.xMin * p, xMax: c.xMax * p, yMin: c.yMin * p, yMax: c.yMax * p, path: h }); + s[a] = d; } } return s; @@ -16437,51 +16346,44 @@ var Ht = class { } } }; -function jf(e) { +function Uf(e) { let t = e.split("_"), n = t[t.length - 1]; - return n === zu ? void 0 : n; -} -c(); -function Xn({ width: e, height: t, content: n }) { - return k("svg", { width: e, height: t, viewBox: `0 0 ${e} ${t}`, xmlns: "http://www.w3.org/2000/svg" }, n); -} -c(); -c(); -var Fl = Bl(Za()); -c(); -c(); -c(); -c(); -var Om = ["ios", "android", "windows", "macos", "web"]; -function tl(e) { - return Om.includes(e); -} -var Pm = ["portrait", "landscape"]; -function rl(e) { - return Pm.includes(e); -} -var el; + return n === $u ? void 0 : n; +} +function Vn({ width: e, height: t, content: n }) { + return C("svg", { width: e, height: t, viewBox: `0 0 ${e} ${t}`, xmlns: "http://www.w3.org/2000/svg" }, n); +} +var bl = Ol(Xa()); +var km = ["ios", "android", "windows", "macos", "web"]; +function Ka(e) { + return km.includes(e); +} +var Tm = ["portrait", "landscape"]; +function Ja(e) { + return Tm.includes(e); +} +var Qa; (function(e) { e.fontSize = "fontSize", e.lineHeight = "lineHeight"; -})(el || (el = {})); -var H; +})(Qa || (Qa = {})); +var G; (function(e) { e.rem = "rem", e.em = "em", e.px = "px", e.percent = "%", e.vw = "vw", e.vh = "vh", e.none = ""; -})(H || (H = {})); -function Fo(e) { +})(G || (G = {})); +function yo(e) { return typeof e == "string"; } -function wo(e) { +function xo(e) { return typeof e == "object"; } -var Eo; -function g(e) { +var Fo; +function D(e) { return { kind: "complete", style: e }; } -function pe(e, t = {}) { +function fe(e, t = {}) { let { fractions: n } = t; if (n && e.includes("/")) { - let [o = "", u = ""] = e.split("/", 2), s = pe(o), a = pe(u); + let [o = "", u = ""] = e.split("/", 2), s = fe(o), a = fe(u); return !s || !a ? null : [s[0] / a[0], a[1]]; } let r = parseFloat(e); @@ -16489,120 +16391,120 @@ function pe(e, t = {}) { return null; let i = e.match(/(([a-z]{2,}|%))$/); if (!i) - return [r, H.none]; + return [r, G.none]; switch (i == null ? void 0 : i[1]) { case "rem": - return [r, H.rem]; + return [r, G.rem]; case "px": - return [r, H.px]; + return [r, G.px]; case "em": - return [r, H.em]; + return [r, G.em]; case "%": - return [r, H.percent]; + return [r, G.percent]; case "vw": - return [r, H.vw]; + return [r, G.vw]; case "vh": - return [r, H.vh]; + return [r, G.vh]; default: return null; } } -function Ve(e, t, n = {}) { - let r = qe(t, n); - return r === null ? null : g({ [e]: r }); +function Ge(e, t, n = {}) { + let r = Me(t, n); + return r === null ? null : D({ [e]: r }); } -function Dn(e, t, n) { - let r = qe(t); +function pn(e, t, n) { + let r = Me(t); return r !== null && (n[e] = r), n; } -function il(e, t) { - let n = qe(t); +function el(e, t) { + let n = Me(t); return n === null ? null : { [e]: n }; } -function qe(e, t = {}) { +function Me(e, t = {}) { if (e === void 0) return null; - let n = pe(String(e), t); - return n ? nt(...n, t) : null; + let n = fe(String(e), t); + return n ? et2(...n, t) : null; } -function nt(e, t, n = {}) { +function et2(e, t, n = {}) { let { isNegative: r, device: i } = n; switch (t) { - case H.rem: + case G.rem: return e * 16 * (r ? -1 : 1); - case H.px: + case G.px: return e * (r ? -1 : 1); - case H.percent: + case G.percent: return `${r ? "-" : ""}${e}%`; - case H.none: + case G.none: return e * (r ? -1 : 1); - case H.vw: - return i != null && i.windowDimensions ? i.windowDimensions.width * (e / 100) : (Ce("`vw` CSS unit requires configuration with `useDeviceContext()`"), null); - case H.vh: - return i != null && i.windowDimensions ? i.windowDimensions.height * (e / 100) : (Ce("`vh` CSS unit requires configuration with `useDeviceContext()`"), null); + case G.vw: + return i != null && i.windowDimensions ? i.windowDimensions.width * (e / 100) : (Fe("`vw` CSS unit requires configuration with `useDeviceContext()`"), null); + case G.vh: + return i != null && i.windowDimensions ? i.windowDimensions.height * (e / 100) : (Fe("`vh` CSS unit requires configuration with `useDeviceContext()`"), null); default: return null; } } -function Co(e) { - let t = pe(e); +function wo(e) { + let t = fe(e); if (!t) return null; let [n, r] = t; switch (r) { - case H.rem: + case G.rem: return n * 16; - case H.px: + case G.px: return n; default: return null; } } -var Im = { t: "Top", tr: "TopRight", tl: "TopLeft", b: "Bottom", br: "BottomRight", bl: "BottomLeft", l: "Left", r: "Right", x: "Horizontal", y: "Vertical" }; -function _o(e) { - return Im[e ?? ""] || "All"; +var Am = { t: "Top", tr: "TopRight", tl: "TopLeft", b: "Bottom", br: "BottomRight", bl: "BottomLeft", l: "Left", r: "Right", x: "Horizontal", y: "Vertical" }; +function Eo(e) { + return Am[e ?? ""] || "All"; } -function So(e) { +function Co(e) { let t = "All"; - return [e.replace(/^-(t|b|r|l|tr|tl|br|bl)(-|$)/, (r, i) => (t = _o(i), "")), t]; + return [e.replace(/^-(t|b|r|l|tr|tl|br|bl)(-|$)/, (r, i) => (t = Eo(i), "")), t]; } -function dt(e, t = {}) { +function ft(e, t = {}) { if (e.includes("/")) { - let n = nl(e, { ...t, fractions: true }); + let n = Za(e, { ...t, fractions: true }); if (n) return n; } - return e[0] === "[" && (e = e.slice(1, -1)), nl(e, t); + return e[0] === "[" && (e = e.slice(1, -1)), Za(e, t); } -function Ie(e, t, n = {}) { - let r = dt(t, n); - return r === null ? null : g({ [e]: r }); +function Ae(e, t, n = {}) { + let r = ft(t, n); + return r === null ? null : D({ [e]: r }); } -function nl(e, t = {}) { +function Za(e, t = {}) { if (e === "px") return 1; - let n = pe(e, t); + let n = fe(e, t); if (!n) return null; let [r, i] = n; - return t.fractions && (i = H.percent, r *= 100), i === H.none && (r = r / 4, i = H.rem), nt(r, i, t); + return t.fractions && (i = G.percent, r *= 100), i === G.none && (r = r / 4, i = G.rem), et2(r, i, t); } -function Bm(...e) { +function Om(...e) { console.warn(...e); } -function Rm(...e) { +function Pm(...e) { } -var Ce = typeof process > "u" || ((Eo = process == null ? void 0 : process.env) === null || Eo === void 0 ? void 0 : Eo.JEST_WORKER_ID) === void 0 ? Bm : Rm; -var Lm = [["aspect-square", g({ aspectRatio: 1 })], ["aspect-video", g({ aspectRatio: 16 / 9 })], ["items-center", g({ alignItems: "center" })], ["items-start", g({ alignItems: "flex-start" })], ["items-end", g({ alignItems: "flex-end" })], ["items-baseline", g({ alignItems: "baseline" })], ["items-stretch", g({ alignItems: "stretch" })], ["justify-start", g({ justifyContent: "flex-start" })], ["justify-end", g({ justifyContent: "flex-end" })], ["justify-center", g({ justifyContent: "center" })], ["justify-between", g({ justifyContent: "space-between" })], ["justify-around", g({ justifyContent: "space-around" })], ["justify-evenly", g({ justifyContent: "space-evenly" })], ["content-start", g({ alignContent: "flex-start" })], ["content-end", g({ alignContent: "flex-end" })], ["content-between", g({ alignContent: "space-between" })], ["content-around", g({ alignContent: "space-around" })], ["content-stretch", g({ alignContent: "stretch" })], ["content-center", g({ alignContent: "center" })], ["self-auto", g({ alignSelf: "auto" })], ["self-start", g({ alignSelf: "flex-start" })], ["self-end", g({ alignSelf: "flex-end" })], ["self-center", g({ alignSelf: "center" })], ["self-stretch", g({ alignSelf: "stretch" })], ["self-baseline", g({ alignSelf: "baseline" })], ["direction-inherit", g({ direction: "inherit" })], ["direction-ltr", g({ direction: "ltr" })], ["direction-rtl", g({ direction: "rtl" })], ["hidden", g({ display: "none" })], ["flex", g({ display: "flex" })], ["flex-row", g({ flexDirection: "row" })], ["flex-row-reverse", g({ flexDirection: "row-reverse" })], ["flex-col", g({ flexDirection: "column" })], ["flex-col-reverse", g({ flexDirection: "column-reverse" })], ["flex-wrap", g({ flexWrap: "wrap" })], ["flex-wrap-reverse", g({ flexWrap: "wrap-reverse" })], ["flex-nowrap", g({ flexWrap: "nowrap" })], ["flex-auto", g({ flexGrow: 1, flexShrink: 1, flexBasis: "auto" })], ["flex-initial", g({ flexGrow: 0, flexShrink: 1, flexBasis: "auto" })], ["flex-none", g({ flexGrow: 0, flexShrink: 0, flexBasis: "auto" })], ["overflow-hidden", g({ overflow: "hidden" })], ["overflow-visible", g({ overflow: "visible" })], ["overflow-scroll", g({ overflow: "scroll" })], ["absolute", g({ position: "absolute" })], ["relative", g({ position: "relative" })], ["italic", g({ fontStyle: "italic" })], ["not-italic", g({ fontStyle: "normal" })], ["oldstyle-nums", wr("oldstyle-nums")], ["small-caps", wr("small-caps")], ["lining-nums", wr("lining-nums")], ["tabular-nums", wr("tabular-nums")], ["proportional-nums", wr("proportional-nums")], ["font-thin", g({ fontWeight: "100" })], ["font-100", g({ fontWeight: "100" })], ["font-extralight", g({ fontWeight: "200" })], ["font-200", g({ fontWeight: "200" })], ["font-light", g({ fontWeight: "300" })], ["font-300", g({ fontWeight: "300" })], ["font-normal", g({ fontWeight: "normal" })], ["font-400", g({ fontWeight: "400" })], ["font-medium", g({ fontWeight: "500" })], ["font-500", g({ fontWeight: "500" })], ["font-semibold", g({ fontWeight: "600" })], ["font-600", g({ fontWeight: "600" })], ["font-bold", g({ fontWeight: "bold" })], ["font-700", g({ fontWeight: "700" })], ["font-extrabold", g({ fontWeight: "800" })], ["font-800", g({ fontWeight: "800" })], ["font-black", g({ fontWeight: "900" })], ["font-900", g({ fontWeight: "900" })], ["include-font-padding", g({ includeFontPadding: true })], ["remove-font-padding", g({ includeFontPadding: false })], ["max-w-none", g({ maxWidth: "99999%" })], ["text-left", g({ textAlign: "left" })], ["text-center", g({ textAlign: "center" })], ["text-right", g({ textAlign: "right" })], ["text-justify", g({ textAlign: "justify" })], ["text-auto", g({ textAlign: "auto" })], ["underline", g({ textDecorationLine: "underline" })], ["line-through", g({ textDecorationLine: "line-through" })], ["no-underline", g({ textDecorationLine: "none" })], ["uppercase", g({ textTransform: "uppercase" })], ["lowercase", g({ textTransform: "lowercase" })], ["capitalize", g({ textTransform: "capitalize" })], ["normal-case", g({ textTransform: "none" })], ["w-auto", g({ width: "auto" })], ["h-auto", g({ height: "auto" })], ["shadow-sm", g({ shadowOffset: { width: 1, height: 1 }, shadowColor: "#000", shadowRadius: 1, shadowOpacity: 0.025, elevation: 1 })], ["shadow", g({ shadowOffset: { width: 1, height: 1 }, shadowColor: "#000", shadowRadius: 1, shadowOpacity: 0.075, elevation: 2 })], ["shadow-md", g({ shadowOffset: { width: 1, height: 1 }, shadowColor: "#000", shadowRadius: 3, shadowOpacity: 0.125, elevation: 3 })], ["shadow-lg", g({ shadowOffset: { width: 1, height: 1 }, shadowColor: "#000", shadowOpacity: 0.15, shadowRadius: 8, elevation: 8 })], ["shadow-xl", g({ shadowOffset: { width: 1, height: 1 }, shadowColor: "#000", shadowOpacity: 0.19, shadowRadius: 20, elevation: 12 })], ["shadow-2xl", g({ shadowOffset: { width: 1, height: 1 }, shadowColor: "#000", shadowOpacity: 0.25, shadowRadius: 30, elevation: 16 })], ["shadow-none", g({ shadowOffset: { width: 0, height: 0 }, shadowColor: "#000", shadowRadius: 0, shadowOpacity: 0, elevation: 0 })]]; -var ko = Lm; -function wr(e) { +var Fe = typeof process > "u" || ((Fo = process == null ? void 0 : process.env) === null || Fo === void 0 ? void 0 : Fo.JEST_WORKER_ID) === void 0 ? Om : Pm; +var Bm = [["aspect-square", D({ aspectRatio: 1 })], ["aspect-video", D({ aspectRatio: 16 / 9 })], ["items-center", D({ alignItems: "center" })], ["items-start", D({ alignItems: "flex-start" })], ["items-end", D({ alignItems: "flex-end" })], ["items-baseline", D({ alignItems: "baseline" })], ["items-stretch", D({ alignItems: "stretch" })], ["justify-start", D({ justifyContent: "flex-start" })], ["justify-end", D({ justifyContent: "flex-end" })], ["justify-center", D({ justifyContent: "center" })], ["justify-between", D({ justifyContent: "space-between" })], ["justify-around", D({ justifyContent: "space-around" })], ["justify-evenly", D({ justifyContent: "space-evenly" })], ["content-start", D({ alignContent: "flex-start" })], ["content-end", D({ alignContent: "flex-end" })], ["content-between", D({ alignContent: "space-between" })], ["content-around", D({ alignContent: "space-around" })], ["content-stretch", D({ alignContent: "stretch" })], ["content-center", D({ alignContent: "center" })], ["self-auto", D({ alignSelf: "auto" })], ["self-start", D({ alignSelf: "flex-start" })], ["self-end", D({ alignSelf: "flex-end" })], ["self-center", D({ alignSelf: "center" })], ["self-stretch", D({ alignSelf: "stretch" })], ["self-baseline", D({ alignSelf: "baseline" })], ["direction-inherit", D({ direction: "inherit" })], ["direction-ltr", D({ direction: "ltr" })], ["direction-rtl", D({ direction: "rtl" })], ["hidden", D({ display: "none" })], ["flex", D({ display: "flex" })], ["flex-row", D({ flexDirection: "row" })], ["flex-row-reverse", D({ flexDirection: "row-reverse" })], ["flex-col", D({ flexDirection: "column" })], ["flex-col-reverse", D({ flexDirection: "column-reverse" })], ["flex-wrap", D({ flexWrap: "wrap" })], ["flex-wrap-reverse", D({ flexWrap: "wrap-reverse" })], ["flex-nowrap", D({ flexWrap: "nowrap" })], ["flex-auto", D({ flexGrow: 1, flexShrink: 1, flexBasis: "auto" })], ["flex-initial", D({ flexGrow: 0, flexShrink: 1, flexBasis: "auto" })], ["flex-none", D({ flexGrow: 0, flexShrink: 0, flexBasis: "auto" })], ["overflow-hidden", D({ overflow: "hidden" })], ["overflow-visible", D({ overflow: "visible" })], ["overflow-scroll", D({ overflow: "scroll" })], ["absolute", D({ position: "absolute" })], ["relative", D({ position: "relative" })], ["italic", D({ fontStyle: "italic" })], ["not-italic", D({ fontStyle: "normal" })], ["oldstyle-nums", Fr("oldstyle-nums")], ["small-caps", Fr("small-caps")], ["lining-nums", Fr("lining-nums")], ["tabular-nums", Fr("tabular-nums")], ["proportional-nums", Fr("proportional-nums")], ["font-thin", D({ fontWeight: "100" })], ["font-100", D({ fontWeight: "100" })], ["font-extralight", D({ fontWeight: "200" })], ["font-200", D({ fontWeight: "200" })], ["font-light", D({ fontWeight: "300" })], ["font-300", D({ fontWeight: "300" })], ["font-normal", D({ fontWeight: "normal" })], ["font-400", D({ fontWeight: "400" })], ["font-medium", D({ fontWeight: "500" })], ["font-500", D({ fontWeight: "500" })], ["font-semibold", D({ fontWeight: "600" })], ["font-600", D({ fontWeight: "600" })], ["font-bold", D({ fontWeight: "bold" })], ["font-700", D({ fontWeight: "700" })], ["font-extrabold", D({ fontWeight: "800" })], ["font-800", D({ fontWeight: "800" })], ["font-black", D({ fontWeight: "900" })], ["font-900", D({ fontWeight: "900" })], ["include-font-padding", D({ includeFontPadding: true })], ["remove-font-padding", D({ includeFontPadding: false })], ["max-w-none", D({ maxWidth: "99999%" })], ["text-left", D({ textAlign: "left" })], ["text-center", D({ textAlign: "center" })], ["text-right", D({ textAlign: "right" })], ["text-justify", D({ textAlign: "justify" })], ["text-auto", D({ textAlign: "auto" })], ["underline", D({ textDecorationLine: "underline" })], ["line-through", D({ textDecorationLine: "line-through" })], ["no-underline", D({ textDecorationLine: "none" })], ["uppercase", D({ textTransform: "uppercase" })], ["lowercase", D({ textTransform: "lowercase" })], ["capitalize", D({ textTransform: "capitalize" })], ["normal-case", D({ textTransform: "none" })], ["w-auto", D({ width: "auto" })], ["h-auto", D({ height: "auto" })], ["shadow-sm", D({ shadowOffset: { width: 1, height: 1 }, shadowColor: "#000", shadowRadius: 1, shadowOpacity: 0.025, elevation: 1 })], ["shadow", D({ shadowOffset: { width: 1, height: 1 }, shadowColor: "#000", shadowRadius: 1, shadowOpacity: 0.075, elevation: 2 })], ["shadow-md", D({ shadowOffset: { width: 1, height: 1 }, shadowColor: "#000", shadowRadius: 3, shadowOpacity: 0.125, elevation: 3 })], ["shadow-lg", D({ shadowOffset: { width: 1, height: 1 }, shadowColor: "#000", shadowOpacity: 0.15, shadowRadius: 8, elevation: 8 })], ["shadow-xl", D({ shadowOffset: { width: 1, height: 1 }, shadowColor: "#000", shadowOpacity: 0.19, shadowRadius: 20, elevation: 12 })], ["shadow-2xl", D({ shadowOffset: { width: 1, height: 1 }, shadowColor: "#000", shadowOpacity: 0.25, shadowRadius: 30, elevation: 16 })], ["shadow-none", D({ shadowOffset: { width: 0, height: 0 }, shadowColor: "#000", shadowRadius: 0, shadowOpacity: 0, elevation: 0 })]]; +var _o = Bm; +function Fr(e) { return { kind: "dependent", complete(t) { (!t.fontVariant || !Array.isArray(t.fontVariant)) && (t.fontVariant = []), t.fontVariant.push(e); } }; } -var Er = class { +var wr = class { constructor(t) { - this.ir = new Map(ko), this.styles = /* @__PURE__ */ new Map(), this.prefixes = /* @__PURE__ */ new Map(), this.ir = new Map([...ko, ...t ?? []]); + this.ir = new Map(_o), this.styles = /* @__PURE__ */ new Map(), this.prefixes = /* @__PURE__ */ new Map(), this.ir = new Map([..._o, ...t ?? []]); } getStyle(t) { return this.styles.get(t); @@ -16623,47 +16525,43 @@ var Er = class { this.prefixes.set(t, n); } }; -c(); -c(); -function To(e, t, n = {}) { +function So(e, t, n = {}) { let r = t == null ? void 0 : t[e]; if (!r) - return Ie("fontSize", e, n); + return Ae("fontSize", e, n); if (typeof r == "string") - return Ve("fontSize", r); - let i = {}, [o, u] = r, s = il("fontSize", o); + return Ge("fontSize", r); + let i = {}, [o, u] = r, s = el("fontSize", o); if (s && (i = s), typeof u == "string") - return g(Dn("lineHeight", ol(u, i), i)); + return D(pn("lineHeight", tl(u, i), i)); let { lineHeight: a, letterSpacing: l } = u; - return a && Dn("lineHeight", ol(a, i), i), l && Dn("letterSpacing", l, i), g(i); + return a && pn("lineHeight", tl(a, i), i), l && pn("letterSpacing", l, i), D(i); } -function ol(e, t) { - let n = pe(e); +function tl(e, t) { + let n = fe(e); if (n) { let [r, i] = n; - if ((i === H.none || i === H.em) && typeof t.fontSize == "number") + if ((i === G.none || i === G.em) && typeof t.fontSize == "number") return t.fontSize * r; } return e; } -c(); -function Ao(e, t) { +function ko(e, t) { var n; - let r = (n = t == null ? void 0 : t[e]) !== null && n !== void 0 ? n : e.startsWith("[") ? e.slice(1, -1) : e, i = pe(r); + let r = (n = t == null ? void 0 : t[e]) !== null && n !== void 0 ? n : e.startsWith("[") ? e.slice(1, -1) : e, i = fe(r); if (!i) return null; let [o, u] = i; - if (u === H.none) + if (u === G.none) return { kind: "dependent", complete(a) { if (typeof a.fontSize != "number") return "relative line-height utilities require that font-size be set"; a.lineHeight = a.fontSize * o; } }; - let s = nt(o, u); - return s !== null ? g({ lineHeight: s }) : null; + let s = et2(o, u); + return s !== null ? D({ lineHeight: s }) : null; } -c(); -function Oo(e, t, n, r, i) { +function To(e, t, n, r, i) { let o = ""; if (r[0] === "[") o = r.slice(1, -1); @@ -16672,23 +16570,23 @@ function Oo(e, t, n, r, i) { if (l) o = l; else { - let f = dt(r); - return f && typeof f == "number" ? ul(f, H.px, t, e) : null; + let f = ft(r); + return f && typeof f == "number" ? rl(f, G.px, t, e) : null; } } if (o === "auto") - return sl(t, e, "auto"); - let u = pe(o); + return nl(t, e, "auto"); + let u = fe(o); if (!u) return null; let [s, a] = u; - return n && (s = -s), ul(s, a, t, e); + return n && (s = -s), rl(s, a, t, e); } -function ul(e, t, n, r) { - let i = nt(e, t); - return i === null ? null : sl(n, r, i); +function rl(e, t, n, r) { + let i = et2(e, t); + return i === null ? null : nl(n, r, i); } -function sl(e, t, n) { +function nl(e, t, n) { switch (e) { case "All": return { kind: "complete", style: { [`${t}Top`]: n, [`${t}Right`]: n, [`${t}Bottom`]: n, [`${t}Left`]: n } }; @@ -16705,15 +16603,14 @@ function sl(e, t, n) { return null; } } -c(); -function Po(e) { +function Ao(e) { if (!e) return {}; let t = Object.entries(e).reduce((i, [o, u]) => { - let s = [0, 1 / 0, 0], a = typeof u == "string" ? { min: u } : u, l = a.min ? Co(a.min) : 0; - l === null ? Ce(`invalid screen config value: ${o}->min: ${a.min}`) : s[0] = l; - let f = a.max ? Co(a.max) : 1 / 0; - return f === null ? Ce(`invalid screen config value: ${o}->max: ${a.max}`) : s[1] = f, i[o] = s, i; + let s = [0, 1 / 0, 0], a = typeof u == "string" ? { min: u } : u, l = a.min ? wo(a.min) : 0; + l === null ? Fe(`invalid screen config value: ${o}->min: ${a.min}`) : s[0] = l; + let f = a.max ? wo(a.max) : 1 / 0; + return f === null ? Fe(`invalid screen config value: ${o}->max: ${a.max}`) : s[1] = f, i[o] = s, i; }, {}), n = Object.values(t); n.sort((i, o) => { let [u, s] = i, [a, l] = o; @@ -16722,85 +16619,82 @@ function Po(e) { let r = 0; return n.forEach((i) => i[2] = r++), t; } -c(); -function Io(e, t) { +function Oo(e, t) { let n = t == null ? void 0 : t[e]; if (!n) return null; if (typeof n == "string") - return g({ fontFamily: n }); + return D({ fontFamily: n }); let r = n[0]; - return r ? g({ fontFamily: r }) : null; + return r ? D({ fontFamily: r }) : null; } -c(); -function pt(e, t, n) { +function ct(e, t, n) { if (!n) return null; let r; t.includes("/") && ([t = "", r] = t.split("/", 2)); let i = ""; - if (t.startsWith("[#") || t.startsWith("[rgb") ? i = t.slice(1, -1) : i = fl2(t, n), !i) + if (t.startsWith("[#") || t.startsWith("[rgb") ? i = t.slice(1, -1) : i = ul(t, n), !i) return null; if (r) { let o = Number(r); if (!Number.isNaN(o)) - return i = al(i, o / 100), g({ [gn[e].color]: i }); + return i = il(i, o / 100), D({ [hn[e].color]: i }); } return { kind: "dependent", complete(o) { - let u = gn[e].opacity, s = o[u]; - typeof s == "number" && (i = al(i, s)), o[gn[e].color] = i; + let u = hn[e].opacity, s = o[u]; + typeof s == "number" && (i = il(i, s)), o[hn[e].color] = i; } }; } -function Cr(e, t) { +function Er(e, t) { let n = parseInt(t, 10); if (Number.isNaN(n)) return null; - let r = n / 100, i = { [gn[e].opacity]: r }; - return { kind: "complete", style: i }; + let r = n / 100; + return { kind: "complete", style: { [hn[e].opacity]: r } }; } -function al(e, t) { - return e.startsWith("#") ? e = Mm(e) : e.startsWith("rgb(") && (e = e.replace(/^rgb\(/, "rgba(").replace(/\)$/, ", 1)")), e.replace(/, ?\d*\.?(\d+)\)$/, `, ${t})`); +function il(e, t) { + return e.startsWith("#") ? e = Im(e) : e.startsWith("rgb(") && (e = e.replace(/^rgb\(/, "rgba(").replace(/\)$/, ", 1)")), e.replace(/, ?\d*\.?(\d+)\)$/, `, ${t})`); } -function ll(e) { +function ol(e) { for (let t in e) t.startsWith("__opacity_") && delete e[t]; } -var gn = { bg: { opacity: "__opacity_bg", color: "backgroundColor" }, text: { opacity: "__opacity_text", color: "color" }, border: { opacity: "__opacity_border", color: "borderColor" }, borderTop: { opacity: "__opacity_border", color: "borderTopColor" }, borderBottom: { opacity: "__opacity_border", color: "borderBottomColor" }, borderLeft: { opacity: "__opacity_border", color: "borderLeftColor" }, borderRight: { opacity: "__opacity_border", color: "borderRightColor" }, shadow: { opacity: "__opacity_shadow", color: "shadowColor" }, tint: { opacity: "__opacity_tint", color: "tintColor" } }; -function Mm(e) { +var hn = { bg: { opacity: "__opacity_bg", color: "backgroundColor" }, text: { opacity: "__opacity_text", color: "color" }, border: { opacity: "__opacity_border", color: "borderColor" }, borderTop: { opacity: "__opacity_border", color: "borderTopColor" }, borderBottom: { opacity: "__opacity_border", color: "borderBottomColor" }, borderLeft: { opacity: "__opacity_border", color: "borderLeftColor" }, borderRight: { opacity: "__opacity_border", color: "borderRightColor" }, shadow: { opacity: "__opacity_shadow", color: "shadowColor" }, tint: { opacity: "__opacity_tint", color: "tintColor" } }; +function Im(e) { let t = e; - e = e.replace(Nm, (u, s, a, l) => s + s + a + a + l + l); - let n = $m.exec(e); + e = e.replace(Rm, (u, s, a, l) => s + s + a + a + l + l); + let n = Lm.exec(e); if (!n) - return Ce(`invalid config hex color value: ${t}`), "rgba(0, 0, 0, 1)"; + return Fe(`invalid config hex color value: ${t}`), "rgba(0, 0, 0, 1)"; let r = parseInt(n[1], 16), i = parseInt(n[2], 16), o = parseInt(n[3], 16); return `rgba(${r}, ${i}, ${o}, 1)`; } -function fl2(e, t) { +function ul(e, t) { let n = t[e]; - if (Fo(n)) + if (yo(n)) return n; - if (wo(n) && Fo(n.DEFAULT)) + if (xo(n) && yo(n.DEFAULT)) return n.DEFAULT; let [r = "", ...i] = e.split("-"); for (; r !== e; ) { let o = t[r]; - if (wo(o)) - return fl2(i.join("-"), o); + if (xo(o)) + return ul(i.join("-"), o); if (i.length === 0) return ""; r = `${r}-${i.shift()}`; } return ""; } -var Nm = /^#?([a-f\d])([a-f\d])([a-f\d])$/i; -var $m = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i; -c(); -function dl(e, t) { - let [n, r] = So(e); +var Rm = /^#?([a-f\d])([a-f\d])([a-f\d])$/i; +var Lm = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i; +function al(e, t) { + let [n, r] = Co(e); if (n.match(/^(-?(\d)+)?$/)) - return Wm(n, r, t == null ? void 0 : t.borderWidth); + return Mm(n, r, t == null ? void 0 : t.borderWidth); if (n = n.replace(/^-/, ""), ["dashed", "solid", "dotted"].includes(n)) - return g({ borderStyle: n }); + return D({ borderStyle: n }); let o = "border"; switch (r) { case "Bottom": @@ -16816,15 +16710,15 @@ function dl(e, t) { o = "borderRight"; break; } - let u = pt(o, n, t == null ? void 0 : t.borderColor); + let u = ct(o, n, t == null ? void 0 : t.borderColor); if (u) return u; let s = `border${r === "All" ? "" : r}Width`; n = n.replace(/^-/, ""); - let a = n.slice(1, -1), l = Ie(s, a); + let a = n.slice(1, -1), l = Ae(s, a); return typeof (l == null ? void 0 : l.style[s]) != "number" ? null : l; } -function Wm(e, t, n) { +function Mm(e, t, n) { if (!n) return null; e = e.replace(/^-/, ""); @@ -16832,20 +16726,20 @@ function Wm(e, t, n) { if (i === void 0) return null; let o = `border${t === "All" ? "" : t}Width`; - return Ve(o, i); + return Ge(o, i); } -function pl(e, t) { +function ll(e, t) { if (!t) return null; - let [n, r] = So(e); + let [n, r] = Co(e); n = n.replace(/^-/, ""), n === "" && (n = "DEFAULT"); let i = `border${r === "All" ? "" : r}Radius`, o = t[n]; if (o) - return cl(Ve(i, o)); - let u = Ie(i, n); - return typeof (u == null ? void 0 : u.style[i]) != "number" ? null : cl(u); + return sl(Ge(i, o)); + let u = Ae(i, n); + return typeof (u == null ? void 0 : u.style[i]) != "number" ? null : sl(u); } -function cl(e) { +function sl(e) { if ((e == null ? void 0 : e.kind) !== "complete") return e; let t = e.style.borderTopRadius; @@ -16857,84 +16751,80 @@ function cl(e) { let i = e.style.borderRightRadius; return i !== void 0 && (e.style.borderBottomRightRadius = i, e.style.borderTopRightRadius = i, delete e.style.borderRightRadius), e; } -c(); -function St(e, t, n, r) { +function Ct(e, t, n, r) { let i = null; e === "inset" && (t = t.replace(/^(x|y)-/, (s, a) => (i = a === "x" ? "x" : "y", ""))); let o = r == null ? void 0 : r[t]; if (o) { - let s = qe(o, { isNegative: n }); + let s = Me(o, { isNegative: n }); if (s !== null) - return hl(e, i, s); + return fl2(e, i, s); } - let u = dt(t, { isNegative: n }); - return u !== null ? hl(e, i, u) : null; + let u = ft(t, { isNegative: n }); + return u !== null ? fl2(e, i, u) : null; } -function hl(e, t, n) { +function fl2(e, t, n) { if (e !== "inset") - return g({ [e]: n }); + return D({ [e]: n }); switch (t) { case null: - return g({ top: n, left: n, right: n, bottom: n }); + return D({ top: n, left: n, right: n, bottom: n }); case "y": - return g({ top: n, bottom: n }); + return D({ top: n, bottom: n }); case "x": - return g({ left: n, right: n }); + return D({ left: n, right: n }); } } -c(); -function _r(e, t, n) { +function Cr(e, t, n) { var r; t = t.replace(/^-/, ""); let i = t === "" ? "DEFAULT" : t, o = Number((r = n == null ? void 0 : n[i]) !== null && r !== void 0 ? r : t); - return Number.isNaN(o) ? null : g({ [`flex${e}`]: o }); + return Number.isNaN(o) ? null : D({ [`flex${e}`]: o }); } -function ml(e, t) { +function cl(e, t) { var n, r; if (e = (t == null ? void 0 : t[e]) || e, ["min-content", "revert", "unset"].includes(e)) return null; if (e.match(/^\d+(\.\d+)?$/)) - return g({ flexGrow: Number(e), flexBasis: "0%" }); + return D({ flexGrow: Number(e), flexBasis: "0%" }); let i = e.match(/^(\d+)\s+(\d+)$/); if (i) - return g({ flexGrow: Number(i[1]), flexShrink: Number(i[2]) }); + return D({ flexGrow: Number(i[1]), flexShrink: Number(i[2]) }); if (i = e.match(/^(\d+)\s+([^ ]+)$/), i) { - let o = qe((n = i[2]) !== null && n !== void 0 ? n : ""); - return o ? g({ flexGrow: Number(i[1]), flexBasis: o }) : null; + let o = Me((n = i[2]) !== null && n !== void 0 ? n : ""); + return o ? D({ flexGrow: Number(i[1]), flexBasis: o }) : null; } if (i = e.match(/^(\d+)\s+(\d+)\s+(.+)$/), i) { - let o = qe((r = i[3]) !== null && r !== void 0 ? r : ""); - return o ? g({ flexGrow: Number(i[1]), flexShrink: Number(i[2]), flexBasis: o }) : null; + let o = Me((r = i[3]) !== null && r !== void 0 ? r : ""); + return o ? D({ flexGrow: Number(i[1]), flexShrink: Number(i[2]), flexBasis: o }) : null; } return null; } -c(); -function Bo(e, t, n = {}, r) { +function Po(e, t, n = {}, r) { let i = r == null ? void 0 : r[t]; - return i !== void 0 ? Ve(e, i, n) : Ie(e, t, n); + return i !== void 0 ? Ge(e, i, n) : Ae(e, t, n); } -function Sr(e, t, n = {}, r) { - let i = qe(r == null ? void 0 : r[t], n); - return i ? g({ [e]: i }) : (t === "screen" && (t = e.includes("Width") ? "100vw" : "100vh"), Ie(e, t, n)); +function _r(e, t, n = {}, r) { + let i = Me(r == null ? void 0 : r[t], n); + return i ? D({ [e]: i }) : (t === "screen" && (t = e.includes("Width") ? "100vw" : "100vh"), Ae(e, t, n)); } -c(); -function Dl(e, t, n) { +function dl(e, t, n) { let r = n == null ? void 0 : n[e]; if (r) { - let i = pe(r, { isNegative: t }); + let i = fe(r, { isNegative: t }); if (!i) return null; let [o, u] = i; - if (u === H.em) - return qm(o); - if (u === H.percent) - return Ce("percentage-based letter-spacing configuration currently unsupported, switch to `em`s, or open an issue if you'd like to see support added."), null; - let s = nt(o, u, { isNegative: t }); - return s !== null ? g({ letterSpacing: s }) : null; + if (u === G.em) + return Nm(o); + if (u === G.percent) + return Fe("percentage-based letter-spacing configuration currently unsupported, switch to `em`s, or open an issue if you'd like to see support added."), null; + let s = et2(o, u, { isNegative: t }); + return s !== null ? D({ letterSpacing: s }) : null; } - return Ie("letterSpacing", e, { isNegative: t }); + return Ae("letterSpacing", e, { isNegative: t }); } -function qm(e) { +function Nm(e) { return { kind: "dependent", complete(t) { let n = t.fontSize; if (typeof n != "number" || Number.isNaN(n)) @@ -16942,53 +16832,51 @@ function qm(e) { t.letterSpacing = Math.round((e * n + Number.EPSILON) * 100) / 100; } }; } -c(); -function gl(e, t) { +function pl(e, t) { let n = t == null ? void 0 : t[e]; if (n) { - let i = pe(String(n)); + let i = fe(String(n)); if (i) - return g({ opacity: i[0] }); + return D({ opacity: i[0] }); } - let r = pe(e); - return r ? g({ opacity: r[0] / 100 }) : null; + let r = fe(e); + return r ? D({ opacity: r[0] / 100 }) : null; } -c(); -function bl(e) { +function hl(e) { let t = parseInt(e, 10); return Number.isNaN(t) ? null : { kind: "complete", style: { shadowOpacity: t / 100 } }; } -function vl(e) { +function ml(e) { if (e.includes("/")) { - let [n = "", r = ""] = e.split("/", 2), i = Ro(n), o = Ro(r); + let [n = "", r = ""] = e.split("/", 2), i = Bo(n), o = Bo(r); return i === null || o === null ? null : { kind: "complete", style: { shadowOffset: { width: i, height: o } } }; } - let t = Ro(e); + let t = Bo(e); return t === null ? null : { kind: "complete", style: { shadowOffset: { width: t, height: t } } }; } -function Ro(e) { - let t = dt(e); +function Bo(e) { + let t = ft(e); return typeof t == "number" ? t : null; } -var kt = class { +var _t = class { constructor(t, n = {}, r, i, o) { - var u, s, a, l, f, d; + var u, s, a, l, f, c; this.config = n, this.cache = r, this.position = 0, this.isNull = false, this.isNegative = false, this.context = {}, this.context.device = i; - let h = t.trim().split(":"), m = []; - h.length === 1 ? this.string = t : (this.string = (u = h.pop()) !== null && u !== void 0 ? u : "", m = h), this.char = this.string[0]; - let p = Po((s = this.config.theme) === null || s === void 0 ? void 0 : s.screens); - for (let D of m) - if (p[D]) { - let F = (a = p[D]) === null || a === void 0 ? void 0 : a[2]; - F !== void 0 && (this.order = ((l = this.order) !== null && l !== void 0 ? l : 0) + F); - let b = (f = i.windowDimensions) === null || f === void 0 ? void 0 : f.width; - if (b) { - let [v, E] = (d = p[D]) !== null && d !== void 0 ? d : [0, 0]; - (b <= v || b > E) && (this.isNull = true); + let p = t.trim().split(":"), h = []; + p.length === 1 ? this.string = t : (this.string = (u = p.pop()) !== null && u !== void 0 ? u : "", h = p), this.char = this.string[0]; + let d = Ao((s = this.config.theme) === null || s === void 0 ? void 0 : s.screens); + for (let m of h) + if (d[m]) { + let v = (a = d[m]) === null || a === void 0 ? void 0 : a[2]; + v !== void 0 && (this.order = ((l = this.order) !== null && l !== void 0 ? l : 0) + v); + let g = (f = i.windowDimensions) === null || f === void 0 ? void 0 : f.width; + if (g) { + let [b, x] = (c = d[m]) !== null && c !== void 0 ? c : [0, 0]; + (g <= b || g > x) && (this.isNull = true); } else this.isNull = true; } else - tl(D) ? this.isNull = D !== o : rl(D) ? i.windowDimensions ? (i.windowDimensions.width > i.windowDimensions.height ? "landscape" : "portrait") !== D ? this.isNull = true : this.incrementOrder() : this.isNull = true : D === "retina" ? i.pixelDensity === 2 ? this.incrementOrder() : this.isNull = true : D === "dark" ? i.colorScheme !== "dark" ? this.isNull = true : this.incrementOrder() : this.handlePossibleArbitraryBreakpointPrefix(D) || (this.isNull = true); + Ka(m) ? this.isNull = m !== o : Ja(m) ? i.windowDimensions ? (i.windowDimensions.width > i.windowDimensions.height ? "landscape" : "portrait") !== m ? this.isNull = true : this.incrementOrder() : this.isNull = true : m === "retina" ? i.pixelDensity === 2 ? this.incrementOrder() : this.isNull = true : m === "dark" ? i.colorScheme !== "dark" ? this.isNull = true : this.incrementOrder() : this.handlePossibleArbitraryBreakpointPrefix(m) || (this.isNull = true); } parse() { if (this.isNull) @@ -17010,27 +16898,27 @@ var kt = class { if (a) { let l = this.char === "m" ? "margin" : "padding"; this.advance(((n = (t = a[0]) === null || t === void 0 ? void 0 : t.length) !== null && n !== void 0 ? n : 0) + 1); - let f = _o(a[1]), d = Oo(l, f, this.isNegative, this.rest, (r = this.config.theme) === null || r === void 0 ? void 0 : r[l]); - if (d) - return d; + let f = Eo(a[1]), c = To(l, f, this.isNegative, this.rest, (r = this.config.theme) === null || r === void 0 ? void 0 : r[l]); + if (c) + return c; } } } - if (this.consumePeeked("h-") && (s = Bo("height", this.rest, this.context, u == null ? void 0 : u.height), s) || this.consumePeeked("w-") && (s = Bo("width", this.rest, this.context, u == null ? void 0 : u.width), s) || this.consumePeeked("min-w-") && (s = Sr("minWidth", this.rest, this.context, u == null ? void 0 : u.minWidth), s) || this.consumePeeked("min-h-") && (s = Sr("minHeight", this.rest, this.context, u == null ? void 0 : u.minHeight), s) || this.consumePeeked("max-w-") && (s = Sr("maxWidth", this.rest, this.context, u == null ? void 0 : u.maxWidth), s) || this.consumePeeked("max-h-") && (s = Sr("maxHeight", this.rest, this.context, u == null ? void 0 : u.maxHeight), s) || this.consumePeeked("leading-") && (s = Ao(this.rest, u == null ? void 0 : u.lineHeight), s) || this.consumePeeked("text-") && (s = To(this.rest, u == null ? void 0 : u.fontSize, this.context), s || (s = pt("text", this.rest, u == null ? void 0 : u.textColor), s) || this.consumePeeked("opacity-") && (s = Cr("text", this.rest), s)) || this.consumePeeked("font-") && (s = Io(this.rest, u == null ? void 0 : u.fontFamily), s) || this.consumePeeked("aspect-") && (this.consumePeeked("ratio-") && Ce("`aspect-ratio-{ratio}` is deprecated, use `aspect-{ratio}` instead"), s = Ve("aspectRatio", this.rest, { fractions: true }), s) || this.consumePeeked("tint-") && (s = pt("tint", this.rest, u == null ? void 0 : u.colors), s) || this.consumePeeked("bg-") && (s = pt("bg", this.rest, u == null ? void 0 : u.backgroundColor), s || this.consumePeeked("opacity-") && (s = Cr("bg", this.rest), s)) || this.consumePeeked("border") && (s = dl(this.rest, u), s || this.consumePeeked("-opacity-") && (s = Cr("border", this.rest), s)) || this.consumePeeked("rounded") && (s = pl(this.rest, u == null ? void 0 : u.borderRadius), s) || this.consumePeeked("bottom-") && (s = St("bottom", this.rest, this.isNegative, u == null ? void 0 : u.inset), s) || this.consumePeeked("top-") && (s = St("top", this.rest, this.isNegative, u == null ? void 0 : u.inset), s) || this.consumePeeked("left-") && (s = St("left", this.rest, this.isNegative, u == null ? void 0 : u.inset), s) || this.consumePeeked("right-") && (s = St("right", this.rest, this.isNegative, u == null ? void 0 : u.inset), s) || this.consumePeeked("inset-") && (s = St("inset", this.rest, this.isNegative, u == null ? void 0 : u.inset), s) || this.consumePeeked("flex-") && (this.consumePeeked("grow") ? s = _r("Grow", this.rest, u == null ? void 0 : u.flexGrow) : this.consumePeeked("shrink") ? s = _r("Shrink", this.rest, u == null ? void 0 : u.flexShrink) : s = ml(this.rest, u == null ? void 0 : u.flex), s) || this.consumePeeked("grow") && (s = _r("Grow", this.rest, u == null ? void 0 : u.flexGrow), s) || this.consumePeeked("shrink") && (s = _r("Shrink", this.rest, u == null ? void 0 : u.flexShrink), s) || this.consumePeeked("shadow-color-opacity-") && (s = Cr("shadow", this.rest), s) || this.consumePeeked("shadow-opacity-") && (s = bl(this.rest), s) || this.consumePeeked("shadow-offset-") && (s = vl(this.rest), s) || this.consumePeeked("shadow-radius-") && (s = Ie("shadowRadius", this.rest), s) || this.consumePeeked("shadow-") && (s = pt("shadow", this.rest, u == null ? void 0 : u.colors), s)) + if (this.consumePeeked("h-") && (s = Po("height", this.rest, this.context, u == null ? void 0 : u.height), s) || this.consumePeeked("w-") && (s = Po("width", this.rest, this.context, u == null ? void 0 : u.width), s) || this.consumePeeked("min-w-") && (s = _r("minWidth", this.rest, this.context, u == null ? void 0 : u.minWidth), s) || this.consumePeeked("min-h-") && (s = _r("minHeight", this.rest, this.context, u == null ? void 0 : u.minHeight), s) || this.consumePeeked("max-w-") && (s = _r("maxWidth", this.rest, this.context, u == null ? void 0 : u.maxWidth), s) || this.consumePeeked("max-h-") && (s = _r("maxHeight", this.rest, this.context, u == null ? void 0 : u.maxHeight), s) || this.consumePeeked("leading-") && (s = ko(this.rest, u == null ? void 0 : u.lineHeight), s) || this.consumePeeked("text-") && (s = So(this.rest, u == null ? void 0 : u.fontSize, this.context), s || (s = ct("text", this.rest, u == null ? void 0 : u.textColor), s) || this.consumePeeked("opacity-") && (s = Er("text", this.rest), s)) || this.consumePeeked("font-") && (s = Oo(this.rest, u == null ? void 0 : u.fontFamily), s) || this.consumePeeked("aspect-") && (this.consumePeeked("ratio-") && Fe("`aspect-ratio-{ratio}` is deprecated, use `aspect-{ratio}` instead"), s = Ge("aspectRatio", this.rest, { fractions: true }), s) || this.consumePeeked("tint-") && (s = ct("tint", this.rest, u == null ? void 0 : u.colors), s) || this.consumePeeked("bg-") && (s = ct("bg", this.rest, u == null ? void 0 : u.backgroundColor), s || this.consumePeeked("opacity-") && (s = Er("bg", this.rest), s)) || this.consumePeeked("border") && (s = al(this.rest, u), s || this.consumePeeked("-opacity-") && (s = Er("border", this.rest), s)) || this.consumePeeked("rounded") && (s = ll(this.rest, u == null ? void 0 : u.borderRadius), s) || this.consumePeeked("bottom-") && (s = Ct("bottom", this.rest, this.isNegative, u == null ? void 0 : u.inset), s) || this.consumePeeked("top-") && (s = Ct("top", this.rest, this.isNegative, u == null ? void 0 : u.inset), s) || this.consumePeeked("left-") && (s = Ct("left", this.rest, this.isNegative, u == null ? void 0 : u.inset), s) || this.consumePeeked("right-") && (s = Ct("right", this.rest, this.isNegative, u == null ? void 0 : u.inset), s) || this.consumePeeked("inset-") && (s = Ct("inset", this.rest, this.isNegative, u == null ? void 0 : u.inset), s) || this.consumePeeked("flex-") && (this.consumePeeked("grow") ? s = Cr("Grow", this.rest, u == null ? void 0 : u.flexGrow) : this.consumePeeked("shrink") ? s = Cr("Shrink", this.rest, u == null ? void 0 : u.flexShrink) : s = cl(this.rest, u == null ? void 0 : u.flex), s) || this.consumePeeked("grow") && (s = Cr("Grow", this.rest, u == null ? void 0 : u.flexGrow), s) || this.consumePeeked("shrink") && (s = Cr("Shrink", this.rest, u == null ? void 0 : u.flexShrink), s) || this.consumePeeked("shadow-color-opacity-") && (s = Er("shadow", this.rest), s) || this.consumePeeked("shadow-opacity-") && (s = hl(this.rest), s) || this.consumePeeked("shadow-offset-") && (s = ml(this.rest), s) || this.consumePeeked("shadow-radius-") && (s = Ae("shadowRadius", this.rest), s) || this.consumePeeked("shadow-") && (s = ct("shadow", this.rest, u == null ? void 0 : u.colors), s)) return s; if (this.consumePeeked("elevation-")) { let a = parseInt(this.rest, 10); if (!Number.isNaN(a)) - return g({ elevation: a }); + return D({ elevation: a }); } - if (this.consumePeeked("opacity-") && (s = gl(this.rest, u == null ? void 0 : u.opacity), s) || this.consumePeeked("tracking-") && (s = Dl(this.rest, this.isNegative, u == null ? void 0 : u.letterSpacing), s)) + if (this.consumePeeked("opacity-") && (s = pl(this.rest, u == null ? void 0 : u.opacity), s) || this.consumePeeked("tracking-") && (s = dl(this.rest, this.isNegative, u == null ? void 0 : u.letterSpacing), s)) return s; if (this.consumePeeked("z-")) { let a = Number((o = (i = u == null ? void 0 : u.zIndex) === null || i === void 0 ? void 0 : i[this.rest]) !== null && o !== void 0 ? o : this.rest); if (!Number.isNaN(a)) - return g({ zIndex: a }); + return D({ zIndex: a }); } - return Ce(`\`${this.rest}\` unknown or invalid utility`), null; + return Fe(`\`${this.rest}\` unknown or invalid utility`), null; } handlePossibleArbitraryBreakpointPrefix(t) { var n; @@ -17041,11 +16929,11 @@ var kt = class { return false; if (!(!((n = this.context.device) === null || n === void 0) && n.windowDimensions)) return this.isNull = true, true; - let i = this.context.device.windowDimensions, [, o = "", u = "", s = ""] = r, a = u === "w" ? i.width : i.height, l = pe(s, this.context); + let i = this.context.device.windowDimensions, [, o = "", u = "", s = ""] = r, a = u === "w" ? i.width : i.height, l = fe(s, this.context); if (l === null) return this.isNull = true, true; - let [f, d] = l; - return d !== "px" && (this.isNull = true), (o === "min" ? a >= f : a <= f) ? this.incrementOrder() : this.isNull = true, true; + let [f, c] = l; + return c !== "px" && (this.isNull = true), (o === "min" ? a >= f : a <= f) ? this.incrementOrder() : this.isNull = true, true; } advance(t = 1) { this.position += t, this.char = this.string[this.position]; @@ -17067,180 +16955,178 @@ var kt = class { this.order = ((t = this.order) !== null && t !== void 0 ? t : 0) + 1; } }; -c(); -function yl(e) { +function Dl(e) { let t = [], n = null; return e.forEach((r) => { if (typeof r == "string") - t = [...t, ...Lo(r)]; + t = [...t, ...Io(r)]; else if (Array.isArray(r)) - t = [...t, ...r.flatMap(Lo)]; + t = [...t, ...r.flatMap(Io)]; else if (typeof r == "object" && r !== null) for (let [i, o] of Object.entries(r)) - typeof o == "boolean" ? t = [...t, ...o ? Lo(i) : []] : n ? n[i] = o : n = { [i]: o }; - }), [t.filter(Boolean).filter(Um), n]; + typeof o == "boolean" ? t = [...t, ...o ? Io(i) : []] : n ? n[i] = o : n = { [i]: o }; + }), [t.filter(Boolean).filter($m), n]; } -function Lo(e) { +function Io(e) { return e.trim().split(/\s+/); } -function Um(e, t, n) { +function $m(e, t, n) { return n.indexOf(e) === t; } -c(); -function xl(e) { +function gl(e) { var t; - return (t = e == null ? void 0 : e.reduce((n, r) => ({ ...n, ...zm(r.handler) }), {})) !== null && t !== void 0 ? t : {}; + return (t = e == null ? void 0 : e.reduce((n, r) => ({ ...n, ...Wm(r.handler) }), {})) !== null && t !== void 0 ? t : {}; } -function zm(e) { +function Wm(e) { let t = {}; return e({ addUtilities: (n) => { t = n; - }, ...Gm }), t; + }, ...qm }), t; } -function Ue(e) { +function Ne(e) { throw new Error(`tailwindcss plugin function argument object prop "${e}" not implemented`); } -var Gm = { addComponents: Ue, addBase: Ue, addVariant: Ue, e: Ue, prefix: Ue, theme: Ue, variants: Ue, config: Ue, corePlugins: Ue, matchUtilities: Ue, postcss: null }; -function wl(e, t) { - let n = (0, Fl.default)(jm(e)), r = {}, i = xl(n.plugins), o = {}, u = Object.entries(i).map(([p, D]) => typeof D == "string" ? (o[p] = D, [p, { kind: "null" }]) : [p, g(D)]).filter(([, p]) => p.kind !== "null"); +var qm = { addComponents: Ne, addBase: Ne, addVariant: Ne, e: Ne, prefix: Ne, theme: Ne, variants: Ne, config: Ne, corePlugins: Ne, matchUtilities: Ne, postcss: null }; +function vl(e, t) { + let n = (0, bl.default)(Um(e)), r = {}, i = gl(n.plugins), o = {}, u = Object.entries(i).map(([d, m]) => typeof m == "string" ? (o[d] = m, [d, { kind: "null" }]) : [d, D(m)]).filter(([, d]) => d.kind !== "null"); function s() { return [r.windowDimensions ? `w${r.windowDimensions.width}` : false, r.windowDimensions ? `h${r.windowDimensions.height}` : false, r.fontScale ? `fs${r.fontScale}` : false, r.colorScheme === "dark" ? "dark" : false, r.pixelDensity === 2 ? "retina" : false].filter(Boolean).join("--") || "default"; } let a = s(), l = {}; function f() { - let p = l[a]; - if (p) - return p; - let D = new Er(u); - return l[a] = D, D; - } - function d(...p) { - let D = f(), F = {}, b = [], v = [], [E, C] = yl(p), w = E.join(" "), O = D.getStyle(w); - if (O) - return { ...O, ...C || {} }; - for (let R of E) { - let L = D.getIr(R); - if (!L && R in o) { - let se = d(o[R]); - D.setIr(R, g(se)), F = { ...F, ...se }; + let d = l[a]; + if (d) + return d; + let m = new wr(u); + return l[a] = m, m; + } + function c(...d) { + let m = f(), v = {}, g = [], b = [], [x, F] = Dl(d), y = x.join(" "), k = m.getStyle(y); + if (k) + return { ...k, ...F || {} }; + for (let P of x) { + let B = m.getIr(P); + if (!B && P in o) { + let oe = c(o[P]); + m.setIr(P, D(oe)), v = { ...v, ...oe }; continue; } - switch (L = new kt(R, n, D, r, t).parse(), L.kind) { + switch (B = new _t(P, n, m, r, t).parse(), B.kind) { case "complete": - F = { ...F, ...L.style }, D.setIr(R, L); + v = { ...v, ...B.style }, m.setIr(P, B); break; case "dependent": - b.push(L); + g.push(B); break; case "ordered": - v.push(L); + b.push(B); break; case "null": - D.setIr(R, L); + m.setIr(P, B); break; } } - if (v.length > 0) { - v.sort((R, L) => R.order - L.order); - for (let R of v) - switch (R.styleIr.kind) { + if (b.length > 0) { + b.sort((P, B) => P.order - B.order); + for (let P of b) + switch (P.styleIr.kind) { case "complete": - F = { ...F, ...R.styleIr.style }; + v = { ...v, ...P.styleIr.style }; break; case "dependent": - b.push(R.styleIr); + g.push(P.styleIr); break; } } - if (b.length > 0) { - for (let R of b) { - let L = R.complete(F); - L && Ce(L); + if (g.length > 0) { + for (let P of g) { + let B = P.complete(v); + B && Fe(B); } - ll(F); + ol(v); } - return w !== "" && D.setStyle(w, F), C && (F = { ...F, ...C }), F; + return y !== "" && m.setStyle(y, v), F && (v = { ...v, ...F }), v; } - function h(p) { - let D = d(p.split(/\s+/g).map((F) => F.replace(/^(bg|text|border)-/, "")).map((F) => `bg-${F}`).join(" ")); - return typeof D.backgroundColor == "string" ? D.backgroundColor : void 0; + function p(d) { + let m = c(d.split(/\s+/g).map((v) => v.replace(/^(bg|text|border)-/, "")).map((v) => `bg-${v}`).join(" ")); + return typeof m.backgroundColor == "string" ? m.backgroundColor : void 0; } - let m = (p, ...D) => { - let F = ""; - return p.forEach((b, v) => { - var E; - F += b + ((E = D[v]) !== null && E !== void 0 ? E : ""); - }), d(F); + let h = (d, ...m) => { + let v = ""; + return d.forEach((g, b) => { + var x; + v += g + ((x = m[b]) !== null && x !== void 0 ? x : ""); + }), c(v); }; - return m.style = d, m.color = h, m.prefixMatch = (...p) => { - let D = p.sort().join(":"), F = f(), b = F.getPrefixMatch(D); - if (b !== void 0) - return b; - let C = new kt(`${D}:flex`, n, F, r, t).parse().kind !== "null"; - return F.setPrefixMatch(D, C), C; - }, m.setWindowDimensions = (p) => { - r.windowDimensions = p, a = s(); - }, m.setFontScale = (p) => { - r.fontScale = p, a = s(); - }, m.setPixelDensity = (p) => { - r.pixelDensity = p, a = s(); - }, m.setColorScheme = (p) => { - r.colorScheme = p, a = s(); - }, m; -} -function jm(e) { + return h.style = c, h.color = p, h.prefixMatch = (...d) => { + let m = d.sort().join(":"), v = f(), g = v.getPrefixMatch(m); + if (g !== void 0) + return g; + let F = new _t(`${m}:flex`, n, v, r, t).parse().kind !== "null"; + return v.setPrefixMatch(m, F), F; + }, h.setWindowDimensions = (d) => { + r.windowDimensions = d, a = s(); + }, h.setFontScale = (d) => { + r.fontScale = d, a = s(); + }, h.setPixelDensity = (d) => { + r.pixelDensity = d, a = s(); + }, h.setColorScheme = (d) => { + r.colorScheme = d, a = s(); + }, h; +} +function Um(e) { return { ...e, content: ["_no_warnings_please"] }; } -var Vm = { handler: ({ addUtilities: e }) => { +var Gm = { handler: ({ addUtilities: e }) => { e({ "shadow-sm": { boxShadow: "0 1px 2px 0 rgb(0 0 0 / 0.05)" }, shadow: { boxShadow: "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)" }, "shadow-md": { boxShadow: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)" }, "shadow-lg": { boxShadow: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)" }, "shadow-xl": { boxShadow: "0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)" }, "shadow-2xl": { boxShadow: "0 25px 50px -12px rgb(0 0 0 / 0.25)" }, "shadow-inner": { boxShadow: "inset 0 2px 4px 0 rgb(0 0 0 / 0.05)" }, "shadow-none": { boxShadow: "0 0 #0000" } }); } }; -function Ym(e) { - return wl({ ...e, plugins: [...(e == null ? void 0 : e.plugins) ?? [], Vm] }, "web"); +function jm(e) { + return vl({ ...e, plugins: [...(e == null ? void 0 : e.plugins) ?? [], Gm] }, "web"); } -var bn; -function Mo({ width: e, height: t, config: n }) { - return bn || (bn = Ym(n)), bn.setWindowDimensions({ width: +e, height: +t }), bn; +var mn; +function Ro({ width: e, height: t, config: n }) { + return mn || (mn = jm(n)), mn.setWindowDimensions({ width: +e, height: +t }), mn; } -var No = /* @__PURE__ */ new WeakMap(); -async function Cl(e, t) { - let n = await Ge(); +var Lo = /* @__PURE__ */ new WeakMap(); +async function xl(e, t) { + let n = await qe(); if (!n || !n.Node) throw new Error("Satori is not initialized: expect `yoga` to be loaded, got " + n); t.fonts = t.fonts || []; let r; - No.has(t.fonts) ? r = No.get(t.fonts) : No.set(t.fonts, r = new Ht(t.fonts)); + Lo.has(t.fonts) ? r = Lo.get(t.fonts) : Lo.set(t.fonts, r = new jt(t.fonts)); let i = "width" in t ? t.width : void 0, o = "height" in t ? t.height : void 0, u = n.Node.create(); i && u.setWidth(i), o && u.setHeight(o), u.setFlexDirection(n.FLEX_DIRECTION_ROW), u.setFlexWrap(n.WRAP_WRAP), u.setAlignContent(n.ALIGN_AUTO), u.setAlignItems(n.ALIGN_FLEX_START), u.setJustifyContent(n.JUSTIFY_FLEX_START), u.setOverflow(n.OVERFLOW_HIDDEN); let s = { ...t.graphemeImages }, a = /* @__PURE__ */ new Set(); - $e.clear(), await mu(e); - let l = jt(e, { id: "id", parentStyle: {}, inheritedStyle: { fontSize: 16, fontWeight: "normal", fontFamily: "serif", fontStyle: "normal", lineHeight: 1.2, color: "black", opacity: 1, whiteSpace: "normal", _viewportWidth: i, _viewportHeight: o }, parent: u, font: r, embedFont: t.embedFont, debug: t.debug, graphemeImages: s, canLoadAdditionalAssets: !!t.loadAdditionalAsset, onNodeDetected: t.onNodeDetected, getTwStyles: (p, D) => { - let b = { ...Mo({ width: i, height: o, config: t.tailwindConfig })([p]) }; - return typeof b.lineHeight == "number" && (b.lineHeight = b.lineHeight / (+b.fontSize || D.fontSize || 16)), b.shadowColor && b.boxShadow && (b.boxShadow = b.boxShadow.replace(/rgba?\([^)]+\)/, b.shadowColor)), b; + Re.clear(), await cu(e); + let l = Gt(e, { id: "id", parentStyle: {}, inheritedStyle: { fontSize: 16, fontWeight: "normal", fontFamily: "serif", fontStyle: "normal", lineHeight: 1.2, color: "black", opacity: 1, whiteSpace: "normal", _viewportWidth: i, _viewportHeight: o }, parent: u, font: r, embedFont: t.embedFont, debug: t.debug, graphemeImages: s, canLoadAdditionalAssets: !!t.loadAdditionalAsset, onNodeDetected: t.onNodeDetected, getTwStyles: (d, m) => { + let g = { ...Ro({ width: i, height: o, config: t.tailwindConfig })([d]) }; + return typeof g.lineHeight == "number" && (g.lineHeight = g.lineHeight / (+g.fontSize || m.fontSize || 16)), g.shadowColor && g.boxShadow && (g.boxShadow = g.boxShadow.replace(/rgba?\([^)]+\)/, g.shadowColor)), g; } }), f = (await l.next()).value; if (t.loadAdditionalAsset && f.length) { - let p = Xm(f), D = [], F = {}; - await Promise.all(Object.entries(p).flatMap(([b, v]) => v.map((E) => { - let C = `${b}_${E}`; - return a.has(C) ? null : (a.add(C), t.loadAdditionalAsset(b, E).then((w) => { - typeof w == "string" ? F[E] = w : w && (Array.isArray(w) ? D.push(...w) : D.push(w)); + let d = Hm(f), m = [], v = {}; + await Promise.all(Object.entries(d).flatMap(([g, b]) => b.map((x) => { + let F = `${g}_${x}`; + return a.has(F) ? null : (a.add(F), t.loadAdditionalAsset(g, x).then((y) => { + typeof y == "string" ? v[x] = y : y && (Array.isArray(y) ? m.push(...y) : m.push(y)); })); - }))), r.addFonts(D), Object.assign(s, F); + }))), r.addFonts(m), Object.assign(s, v); } await l.next(), u.calculateLayout(i, o, n.DIRECTION_LTR); - let d = (await l.next([0, 0])).value, h = u.getComputedWidth(), m = u.getComputedHeight(); - return u.freeRecursive(), Xn({ width: h, height: m, content: d }); + let c = (await l.next([0, 0])).value, p = u.getComputedWidth(), h = u.getComputedHeight(); + return u.freeRecursive(), Vn({ width: p, height: h, content: c }); } -function Xm(e) { +function Hm(e) { let t = {}, n = {}; for (let { word: r, locale: i } of e) { - let o = qu(r, i).join("|"); + let o = Mu(r, i).join("|"); n[o] = n[o] || "", n[o] += r; } return Object.keys(n).forEach((r) => { - t[r] = t[r] || [], r === "emoji" ? t[r].push(...El(Se(n[r], "grapheme"))) : (t[r][0] = t[r][0] || "", t[r][0] += El(Se(n[r], "grapheme", r === "unknown" ? void 0 : r)).join("")); + t[r] = t[r] || [], r === "emoji" ? t[r].push(...yl(we(n[r], "grapheme"))) : (t[r][0] = t[r][0] || "", t[r][0] += yl(we(n[r], "grapheme", r === "unknown" ? void 0 : r)).join("")); }), t; } -function El(e) { +function yl(e) { return Array.from(new Set(e)); } @@ -17314,15 +17200,15 @@ var WRAP_NO_WRAP = YGEnums.WRAP_NO_WRAP = 0; var WRAP_WRAP = YGEnums.WRAP_WRAP = 1; var WRAP_WRAP_REVERSE = YGEnums.WRAP_WRAP_REVERSE = 2; var wrapAsm = (E) => { - function _(E2, _2, T2) { + function _(E2, _2, T3) { let N2 = E2[_2]; E2[_2] = function(...E3) { - return T2.call(this, N2, ...E3); + return T3.call(this, N2, ...E3); }; } - for (let T2 of ["setPosition", "setMargin", "setFlexBasis", "setWidth", "setHeight", "setMinWidth", "setMinHeight", "setMaxWidth", "setMaxHeight", "setPadding"]) { - let N2 = { [YGEnums.UNIT_POINT]: E.Node.prototype[T2], [YGEnums.UNIT_PERCENT]: E.Node.prototype[`${T2}Percent`], [YGEnums.UNIT_AUTO]: E.Node.prototype[`${T2}Auto`] }; - _(E.Node.prototype, T2, function(E2, ..._2) { + for (let T3 of ["setPosition", "setMargin", "setFlexBasis", "setWidth", "setHeight", "setMinWidth", "setMinHeight", "setMaxWidth", "setMaxHeight", "setPadding"]) { + let N2 = { [YGEnums.UNIT_POINT]: E.Node.prototype[T3], [YGEnums.UNIT_PERCENT]: E.Node.prototype[`${T3}Percent`], [YGEnums.UNIT_AUTO]: E.Node.prototype[`${T3}Auto`] }; + _(E.Node.prototype, T3, function(E2, ..._2) { let I, L; let O = _2.pop(); if (O === "auto") @@ -17330,35 +17216,35 @@ var wrapAsm = (E) => { else if (typeof O == "object") I = O.unit, L = O.valueOf(); else if (I = typeof O == "string" && O.endsWith("%") ? YGEnums.UNIT_PERCENT : YGEnums.UNIT_POINT, L = parseFloat(O), !Number.isNaN(O) && Number.isNaN(L)) - throw Error(`Invalid value ${O} for ${T2}`); + throw Error(`Invalid value ${O} for ${T3}`); if (!N2[I]) - throw Error(`Failed to execute "${T2}": Unsupported unit '${O}'`); + throw Error(`Failed to execute "${T3}": Unsupported unit '${O}'`); return L !== void 0 ? N2[I].call(this, ..._2, L) : N2[I].call(this, ..._2); }); } - function T(_2) { + function T2(_2) { return E.MeasureCallback.implement({ measure: (...E2) => { - let { width: T2, height: N2 } = _2(...E2); - return { width: T2 ?? NaN, height: N2 ?? NaN }; + let { width: T3, height: N2 } = _2(...E2); + return { width: T3 ?? NaN, height: N2 ?? NaN }; } }); } function N(_2) { return E.DirtiedCallback.implement({ dirtied: _2 }); } return _(E.Node.prototype, "setMeasureFunc", function(E2, _2) { - return _2 ? E2.call(this, T(_2)) : this.unsetMeasureFunc(); + return _2 ? E2.call(this, T2(_2)) : this.unsetMeasureFunc(); }), _(E.Node.prototype, "setDirtiedFunc", function(E2, _2) { E2.call(this, N(_2)); }), _(E.Config.prototype, "free", function() { E.Config.destroy(this); - }), _(E.Node, "create", (_2, T2) => T2 ? E.Node.createWithConfig(T2) : E.Node.createDefault()), _(E.Node.prototype, "free", function() { + }), _(E.Node, "create", (_2, T3) => T3 ? E.Node.createWithConfig(T3) : E.Node.createDefault()), _(E.Node.prototype, "free", function() { E.Node.destroy(this); }), _(E.Node.prototype, "freeRecursive", function() { for (let E2 = 0, _2 = this.getChildCount(); E2 < _2; ++E2) this.getChild(0).freeRecursive(); this.free(); - }), _(E.Node.prototype, "calculateLayout", function(E2, _2 = NaN, T2 = NaN, N2 = YGEnums.DIRECTION_LTR) { - return E2.call(this, _2, T2, N2); + }), _(E.Node.prototype, "calculateLayout", function(E2, _2 = NaN, T3 = NaN, N2 = YGEnums.DIRECTION_LTR) { + return E2.call(this, _2, T3, N2); }), { Config: E.Config, Node: E.Node, ...YGEnums }; }; @@ -17367,13 +17253,13 @@ var yoga = (() => { var n = typeof document != "undefined" && document.currentScript ? document.currentScript.src : void 0; return function(t = {}) { u || (u = t !== void 0 ? t : {}), u.ready = new Promise(function(n2, t2) { - c2 = n2, f = t2; + c = n2, f = t2; }); var r, e, a = Object.assign({}, u), i = ""; typeof document != "undefined" && document.currentScript && (i = document.currentScript.src), n && (i = n), i = i.indexOf("blob:") !== 0 ? i.substr(0, i.replace(/[?#].*/, "").lastIndexOf("/") + 1) : ""; var o = console.log.bind(console), s = console.warn.bind(console); Object.assign(u, a), a = null, typeof WebAssembly != "object" && w("no native wasm support detected"); - var u, c2, f, l, h = false; + var u, c, f, l, h = false; function p(n2, t2, r2) { r2 = t2 + r2; for (var e2 = ""; !(t2 >= r2); ) { @@ -17395,9 +17281,9 @@ var yoga = (() => { } function v() { var n2 = l.buffer; - u.HEAP8 = d = new Int8Array(n2), u.HEAP16 = m = new Int16Array(n2), u.HEAP32 = g2 = new Int32Array(n2), u.HEAPU8 = y = new Uint8Array(n2), u.HEAPU16 = E = new Uint16Array(n2), u.HEAPU32 = _ = new Uint32Array(n2), u.HEAPF32 = T = new Float32Array(n2), u.HEAPF64 = L = new Float64Array(n2); + u.HEAP8 = d = new Int8Array(n2), u.HEAP16 = m = new Int16Array(n2), u.HEAP32 = g = new Int32Array(n2), u.HEAPU8 = y = new Uint8Array(n2), u.HEAPU16 = E = new Uint16Array(n2), u.HEAPU32 = _ = new Uint32Array(n2), u.HEAPF32 = T2 = new Float32Array(n2), u.HEAPF64 = L = new Float64Array(n2); } - var d, y, m, E, g2, _, T, L, A, O = [], P2 = [], b = [], N = 0, I = null; + var d, y, m, E, g, _, T2, L, A, O = [], P = [], b = [], N = 0, I = null; function w(n2) { throw s(n2 = "Aborted(" + n2 + ")"), h = true, f(n2 = new WebAssembly.RuntimeError(n2 + ". Build with -sASSERTIONS for more info.")), n2; } @@ -17411,7 +17297,7 @@ var yoga = (() => { w(n2); } } - function C(n2) { + function C2(n2) { for (; 0 < n2.length; ) n2.shift()(u); } @@ -17421,24 +17307,24 @@ var yoga = (() => { var t2 = (n2 = n2.replace(/[^a-zA-Z0-9_]/g, "$")).charCodeAt(0); return 48 <= t2 && 57 >= t2 ? "_" + n2 : n2; } - function U(n2, t2) { + function U2(n2, t2) { return n2 = W(n2), function() { return t2.apply(this, arguments); }; } r = "yoga.wasm", S() || (r = i + r); var M = [{}, { value: void 0 }, { value: null }, { value: true }, { value: false }], F = []; - function D(n2) { - var t2 = Error, r2 = U(n2, function(t3) { + function D2(n2) { + var t2 = Error, r2 = U2(n2, function(t3) { this.name = n2, this.message = t3, (t3 = Error(t3).stack) !== void 0 && (this.stack = this.toString() + "\n" + t3.replace(/^Error(:[^\n]*)?\n/, "")); }); return r2.prototype = Object.create(t2.prototype), r2.prototype.constructor = r2, r2.prototype.toString = function() { return this.message === void 0 ? this.name : this.name + ": " + this.message; }, r2; } - var k2 = void 0; + var k = void 0; function V(n2) { - throw new k2(n2); + throw new k(n2); } var j = (n2) => (n2 || V("Cannot use deleted val. handle = " + n2), M[n2].value), G2 = (n2) => { switch (n2) { @@ -17460,10 +17346,10 @@ var yoga = (() => { t2 += X[y[n2++]]; return t2; } - var H2 = []; + var H = []; function x() { - for (; H2.length; ) { - var n2 = H2.pop(); + for (; H.length; ) { + var n2 = H.pop(); n2.L.Z = false, n2.delete(); } } @@ -17484,8 +17370,8 @@ var yoga = (() => { } function Q() { } - var nn = false; - function nt2(n2) { + var nn2 = false; + function nt(n2) { --n2.count.value, n2.count.value === 0 && (n2.S ? n2.T.V(n2.S) : n2.O.M.V(n2.N)); } var nr = {}, ne = void 0; @@ -17496,13 +17382,13 @@ var yoga = (() => { return t2.O && t2.N || na2("makeClassHandle requires ptr and ptrType"), !!t2.T != !!t2.S && na2("Both smartPtrType and smartPtr must be specified"), t2.count = { value: 1 }, no2(Object.create(n2, { L: { value: t2 } })); } function no2(n2) { - return typeof FinalizationRegistry == "undefined" ? (no2 = (n3) => n3, n2) : (nn = new FinalizationRegistry((n3) => { - nt2(n3.L); + return typeof FinalizationRegistry == "undefined" ? (no2 = (n3) => n3, n2) : (nn2 = new FinalizationRegistry((n3) => { + nt(n3.L); }), no2 = (n3) => { var t2 = n3.L; - return t2.S && nn.register(n3, { L: t2 }, n3), n3; + return t2.S && nn2.register(n3, { L: t2 }, n3), n3; }, Q = (n3) => { - nn.unregister(n3); + nn2.unregister(n3); }, no2(n2)); } var ns = {}; @@ -17513,7 +17399,7 @@ var yoga = (() => { } } function nc(n2) { - return this.fromWireType(g2[n2 >> 2]); + return this.fromWireType(g[n2 >> 2]); } var nf2 = {}, nl2 = {}; function nh(n2, t2, r2) { @@ -17650,13 +17536,13 @@ var yoga = (() => { s2 = true; break; } - var u2 = t2[0].name !== "void", c3 = i2 - 2, f2 = Array(c3), l2 = [], h2 = []; + var u2 = t2[0].name !== "void", c2 = i2 - 2, f2 = Array(c2), l2 = [], h2 = []; return function() { - if (arguments.length !== c3 && V("function " + n2 + " called with " + arguments.length + " arguments, expected " + c3 + " args!"), h2.length = 0, l2.length = o2 ? 2 : 1, l2[0] = a2, o2) { + if (arguments.length !== c2 && V("function " + n2 + " called with " + arguments.length + " arguments, expected " + c2 + " args!"), h2.length = 0, l2.length = o2 ? 2 : 1, l2[0] = a2, o2) { var r3 = t2[1].toWireType(h2, this); l2[1] = r3; } - for (var i3 = 0; i3 < c3; ++i3) + for (var i3 = 0; i3 < c2; ++i3) f2[i3] = t2[i3 + 2].toWireType(h2, arguments[i3]), l2.push(f2[i3]); if (i3 = e2.apply(null, l2), s2) nu2(h2); @@ -17706,7 +17592,7 @@ var yoga = (() => { } function nF(n2, t2) { for (var r2 = 0, e2 = ""; !(r2 >= t2 / 4); ) { - var a2 = g2[n2 + 4 * r2 >> 2]; + var a2 = g[n2 + 4 * r2 >> 2]; if (a2 == 0) break; ++r2, 65536 <= a2 ? (a2 -= 65536, e2 += String.fromCharCode(55296 | a2 >> 10, 56320 | 1023 & a2)) : e2 += String.fromCharCode(a2); @@ -17720,10 +17606,10 @@ var yoga = (() => { r2 = e2 + r2 - 4; for (var a2 = 0; a2 < n2.length; ++a2) { var i2 = n2.charCodeAt(a2); - if (55296 <= i2 && 57343 >= i2 && (i2 = 65536 + ((1023 & i2) << 10) | 1023 & n2.charCodeAt(++a2)), g2[t2 >> 2] = i2, (t2 += 4) + 4 > r2) + if (55296 <= i2 && 57343 >= i2 && (i2 = 65536 + ((1023 & i2) << 10) | 1023 & n2.charCodeAt(++a2)), g[t2 >> 2] = i2, (t2 += 4) + 4 > r2) break; } - return g2[t2 >> 2] = 0, t2 - e2; + return g[t2 >> 2] = 0, t2 - e2; } function nk(n2) { for (var t2 = 0, r2 = 0; r2 < n2.length; ++r2) { @@ -17738,7 +17624,7 @@ var yoga = (() => { return t2 === void 0 ? B(n2) : t2; } var nG = [], nY = [], nX = [null, [], []]; - k2 = u.BindingError = D("BindingError"), u.count_emval_handles = function() { + k = u.BindingError = D2("BindingError"), u.count_emval_handles = function() { for (var n2 = 0, t2 = 5; t2 < M.length; ++t2) M[t2] !== void 0 && ++n2; return n2; @@ -17747,7 +17633,7 @@ var yoga = (() => { if (M[n2] !== void 0) return M[n2]; return null; - }, Y = u.PureVirtualError = D("PureVirtualError"); + }, Y = u.PureVirtualError = D2("PureVirtualError"); for (var nB = Array(256), nH = 0; 256 > nH; ++nH) nB[nH] = String.fromCharCode(nH); X = nB, u.getInheritedInstanceCount = function() { @@ -17758,8 +17644,8 @@ var yoga = (() => { $.hasOwnProperty(n2) && t2.push($[n2]); return t2; }, u.flushPendingDeletes = x, u.setDelayFunction = function(n2) { - z = n2, H2.length && z && z(x); - }, ne = u.InternalError = D("InternalError"), ny.prototype.isAliasOf = function(n2) { + z = n2, H.length && z && z(x); + }, ne = u.InternalError = D2("InternalError"), ny.prototype.isAliasOf = function(n2) { if (!(this instanceof ny && n2 instanceof ny)) return false; var t2 = this.L.O.M, r2 = this.L.N, e2 = n2.L.O.M; @@ -17774,11 +17660,11 @@ var yoga = (() => { var n2 = no2, t2 = Object, r2 = t2.create, e2 = Object.getPrototypeOf(this), a2 = this.L; return n2 = n2(r2.call(t2, e2, { L: { value: { count: a2.count, Z: a2.Z, $: a2.$, N: a2.N, O: a2.O, S: a2.S, T: a2.T } } })), n2.L.count.value += 1, n2.L.Z = false, n2; }, ny.prototype.delete = function() { - this.L.N || nd(this), this.L.Z && !this.L.$ && V("Object already scheduled for deletion"), Q(this), nt2(this.L), this.L.$ || (this.L.S = void 0, this.L.N = void 0); + this.L.N || nd(this), this.L.Z && !this.L.$ && V("Object already scheduled for deletion"), Q(this), nt(this.L), this.L.$ || (this.L.S = void 0, this.L.N = void 0); }, ny.prototype.isDeleted = function() { return !this.L.N; }, ny.prototype.deleteLater = function() { - return this.L.N || nd(this), this.L.Z && !this.L.$ && V("Object already scheduled for deletion"), H2.push(this), H2.length === 1 && z && z(x), this.L.Z = true, this; + return this.L.N || nd(this), this.L.Z && !this.L.$ && V("Object already scheduled for deletion"), H.push(this), H.length === 1 && z && z(x), this.L.Z = true, this; }, nA.prototype.pa = function(n2) { return this.ja && (n2 = this.ja(n2)), n2; }, nA.prototype.ga = function(n2) { @@ -17802,11 +17688,11 @@ var yoga = (() => { return r3 === e3 ? t3 : e3.P === void 0 ? null : (t3 = n3(t3, r3, e3.P)) === null ? null : e3.ma(t3); }(e2, this.M, a2.M); return i2 === null ? t2.call(this) : this.ca ? ni(a2.M.W, { O: a2, N: i2, T: this, S: n2 }) : ni(a2.M.W, { O: a2, N: i2 }); - }, nN = u.UnboundTypeError = D("UnboundTypeError"); + }, nN = u.UnboundTypeError = D2("UnboundTypeError"); var nx = { q: function(n2, t2, r2) { n2 = B(n2), t2 = K(t2, "wrapper"), r2 = j(r2); var e2 = [].slice, a2 = t2.M, i2 = a2.W, o2 = a2.P.W, s2 = a2.P.constructor; - for (var u2 in n2 = U(n2, function() { + for (var u2 in n2 = U2(n2, function() { a2.P.ia.forEach(function(n3) { if (this[n3] === o2[n3]) throw new Y("Pure virtual function " + n3 + " must be implemented in JavaScript"); @@ -17831,10 +17717,10 @@ var yoga = (() => { nh([n2], a2.map((n3) => n3.sa).concat(a2.map((n3) => n3.ya)), (n3) => { var i2 = {}; return a2.forEach((t3, r3) => { - var e3 = n3[r3], o2 = t3.qa, s2 = t3.ra, u2 = n3[r3 + a2.length], c3 = t3.xa, f2 = t3.za; + var e3 = n3[r3], o2 = t3.qa, s2 = t3.ra, u2 = n3[r3 + a2.length], c2 = t3.xa, f2 = t3.za; i2[t3.na] = { read: (n4) => e3.fromWireType(o2(s2, n4)), write: (n4, t4) => { var r4 = []; - c3(f2, n4, u2.toWireType(r4, t4)), nu2(r4); + c2(f2, n4, u2.toWireType(r4, t4)), nu2(r4); } }; }), [{ name: t2.name, fromWireType: function(n4) { var t3, r3 = {}; @@ -17864,13 +17750,13 @@ var yoga = (() => { else if (r2 === 2) e3 = m; else if (r2 === 4) - e3 = g2; + e3 = g; else throw TypeError("Unknown boolean type size: " + t2); return this.fromWireType(e3[n3 >> i2]); }, U: null }); - }, h: function(n2, t2, r2, e2, a2, i2, o2, s2, c3, f2, l2, h2, p2) { - l2 = B(l2), i2 = nb(a2, i2), s2 && (s2 = nb(o2, s2)), f2 && (f2 = nb(c3, f2)), p2 = nb(h2, p2); + }, h: function(n2, t2, r2, e2, a2, i2, o2, s2, c2, f2, l2, h2, p2) { + l2 = B(l2), i2 = nb(a2, i2), s2 && (s2 = nb(o2, s2)), f2 && (f2 = nb(c2, f2)), p2 = nb(h2, p2); var v2, d2 = W(l2); v2 = function() { nI("Cannot construct " + l2 + " due to unbound types", [e2]); @@ -17879,19 +17765,19 @@ var yoga = (() => { var r3, a3 = t3.M, o3 = a3.W; else o3 = ny.prototype; - t3 = U(d2, function() { - if (Object.getPrototypeOf(this) !== c4) - throw new k2("Use 'new' to construct " + l2); + t3 = U2(d2, function() { + if (Object.getPrototypeOf(this) !== c3) + throw new k("Use 'new' to construct " + l2); if (h3.X === void 0) - throw new k2(l2 + " has no accessible constructor"); + throw new k(l2 + " has no accessible constructor"); var n3 = h3.X[arguments.length]; if (n3 === void 0) - throw new k2("Tried to invoke ctor of " + l2 + " with invalid number of parameters (" + arguments.length + ") - expected (" + Object.keys(h3.X).toString() + ") parameters instead!"); + throw new k("Tried to invoke ctor of " + l2 + " with invalid number of parameters (" + arguments.length + ") - expected (" + Object.keys(h3.X).toString() + ") parameters instead!"); return n3.apply(this, arguments); }); - var c4 = Object.create(o3, { constructor: { value: t3 } }); - t3.prototype = c4; - var h3 = new nE(l2, t3, c4, p2, a3, i2, s2, f2); + var c3 = Object.create(o3, { constructor: { value: t3 } }); + t3.prototype = c3; + var h3 = new nE(l2, t3, c3, p2, a3, i2, s2, f2); a3 = new nA(l2, h3, true, false), o3 = new nA(l2 + "*", h3, false, false); var v3 = new nA(l2 + " const*", h3, false, true); return nr[n2] = { pointerType: o3, ka: v3 }, r3 = t3, u.hasOwnProperty(d2) || na2("Replacing nonexistant public symbol"), u[d2] = r3, u[d2].Y = void 0, [a3, o3, v3]; @@ -17915,7 +17801,7 @@ var yoga = (() => { a2 = nb(e2, a2), nh([], [n2], function(n3) { var r3 = "constructor " + (n3 = n3[0]).name; if (n3.M.X === void 0 && (n3.M.X = []), n3.M.X[t2 - 1] !== void 0) - throw new k2("Cannot register multiple constructors with identical number of parameters (" + (t2 - 1) + ") for class '" + n3.name + "'! Overload resolution is currently only performed using the parameter count, not actual type info!"); + throw new k("Cannot register multiple constructors with identical number of parameters (" + (t2 - 1) + ") for class '" + n3.name + "'! Overload resolution is currently only performed using the parameter count, not actual type info!"); return n3.M.X[t2 - 1] = () => { nI("Cannot construct " + n3.name + " due to unbound types", o2); }, nh([], o2, function(e3) { @@ -17930,9 +17816,9 @@ var yoga = (() => { } var a3 = (n3 = n3[0]).name + "." + t2; t2.startsWith("@@") && (t2 = Symbol[t2.substring(2)]), s2 && n3.M.ia.push(t2); - var c3 = n3.M.W, f2 = c3[t2]; - return f2 === void 0 || f2.R === void 0 && f2.className !== n3.name && f2.Y === r2 - 2 ? (e3.Y = r2 - 2, e3.className = n3.name, c3[t2] = e3) : (nm(c3, t2, a3), c3[t2].R[r2 - 2] = e3), nh([], u2, function(e4) { - return e4 = nw(a3, e4, n3, i2, o2), c3[t2].R === void 0 ? (e4.Y = r2 - 2, c3[t2] = e4) : c3[t2].R[r2 - 2] = e4, []; + var c2 = n3.M.W, f2 = c2[t2]; + return f2 === void 0 || f2.R === void 0 && f2.className !== n3.name && f2.Y === r2 - 2 ? (e3.Y = r2 - 2, e3.className = n3.name, c2[t2] = e3) : (nm(c2, t2, a3), c2[t2].R[r2 - 2] = e3), nh([], u2, function(e4) { + return e4 = nw(a3, e4, n3, i2, o2), c2[t2].R === void 0 ? (e4.Y = r2 - 2, c2[t2] = e4) : c2[t2].R[r2 - 2] = e4, []; }), []; }); }, A: function(n2, t2) { @@ -17951,7 +17837,7 @@ var yoga = (() => { switch (t3) { case 2: return function(n4) { - return this.fromWireType(T[n4 >> 2]); + return this.fromWireType(T2[n4 >> 2]); }; case 3: return function(n4) { @@ -17988,7 +17874,7 @@ var yoga = (() => { }; case 2: return r3 ? function(n4) { - return g2[n4 >> 2]; + return g[n4 >> 2]; } : function(n4) { return _[n4 >> 2]; }; @@ -18084,9 +17970,9 @@ var yoga = (() => { else t2 === 4 && (e2 = nF, a2 = nD, i2 = nk, o2 = () => _, s2 = 2); nv(n2, { name: r2, fromWireType: function(n3) { - for (var r3, a3 = _[n3 >> 2], i3 = o2(), u2 = n3 + 4, c3 = 0; c3 <= a3; ++c3) { - var f2 = n3 + 4 + c3 * t2; - (c3 == a3 || i3[f2 >> s2] == 0) && (u2 = e2(u2, f2 - u2), r3 === void 0 ? r3 = u2 : r3 += "\0" + u2, u2 = f2 + t2); + for (var r3, a3 = _[n3 >> 2], i3 = o2(), u2 = n3 + 4, c2 = 0; c2 <= a3; ++c2) { + var f2 = n3 + 4 + c2 * t2; + (c2 == a3 || i3[f2 >> s2] == 0) && (u2 = e2(u2, f2 - u2), r3 === void 0 ? r3 = u2 : r3 += "\0" + u2, u2 = f2 + t2); } return nZ(n3), r3; }, toWireType: function(n3, e3) { @@ -18098,8 +17984,8 @@ var yoga = (() => { } }); }, m: function(n2, t2, r2, e2, a2, i2) { ns[n2] = { name: B(t2), ea: nb(r2, e2), V: nb(a2, i2), ha: [] }; - }, c: function(n2, t2, r2, e2, a2, i2, o2, s2, u2, c3) { - ns[n2].ha.push({ na: B(t2), sa: r2, qa: nb(e2, a2), ra: i2, ya: o2, xa: nb(s2, u2), za: c3 }); + }, c: function(n2, t2, r2, e2, a2, i2, o2, s2, u2, c2) { + ns[n2].ha.push({ na: B(t2), sa: r2, qa: nb(e2, a2), ra: i2, ya: o2, xa: nb(s2, u2), za: c2 }); }, C: function(n2, t2) { nv(n2, { ua: true, name: t2 = B(t2), argPackAdvance: 0, fromWireType: function() { }, toWireType: function() { @@ -18122,10 +18008,10 @@ var yoga = (() => { return o2; var s2 = Array(n2 - 1); return r2 = (t3, r3, e3, o3) => { - for (var u2 = 0, c3 = 0; c3 < n2 - 1; ++c3) - s2[c3] = a2[c3 + 1].readValueFromPointer(o3 + u2), u2 += a2[c3 + 1].argPackAdvance; - for (c3 = 0, t3 = t3[r3].apply(t3, s2); c3 < n2 - 1; ++c3) - a2[c3 + 1].la && a2[c3 + 1].la(s2[c3]); + for (var u2 = 0, c2 = 0; c2 < n2 - 1; ++c2) + s2[c2] = a2[c2 + 1].readValueFromPointer(o3 + u2), u2 += a2[c2 + 1].argPackAdvance; + for (c2 = 0, t3 = t3[r3].apply(t3, s2); c2 < n2 - 1; ++c2) + a2[c2 + 1].la && a2[c2 + 1].la(s2[c2]); if (!i2.ua) return i2.toWireType(e3, t3); }, e2 = nG.length, nG.push(r2), o2 = e2, nY[t2] = o2; @@ -18166,19 +18052,19 @@ var yoga = (() => { return 70; }, y: function(n2, t2, r2, e2) { for (var a2 = 0, i2 = 0; i2 < r2; i2++) { - var u2 = _[t2 >> 2], c3 = _[t2 + 4 >> 2]; + var u2 = _[t2 >> 2], c2 = _[t2 + 4 >> 2]; t2 += 8; - for (var f2 = 0; f2 < c3; f2++) { + for (var f2 = 0; f2 < c2; f2++) { var l2 = y[u2 + f2], h2 = nX[n2]; l2 === 0 || l2 === 10 ? ((n2 === 1 ? o : s)(p(h2, 0)), h2.length = 0) : h2.push(l2); } - a2 += c3; + a2 += c2; } return _[e2 >> 2] = a2, 0; } }; !function() { function n2(n3) { - u.asm = n3.exports, l = u.asm.D, v(), A = u.asm.I, P2.unshift(u.asm.E), --N == 0 && I && (n3 = I, I = null, n3()); + u.asm = n3.exports, l = u.asm.D, v(), A = u.asm.I, P.unshift(u.asm.E), --N == 0 && I && (n3 = I, I = null, n3()); } function t2(t3) { n2(t3.instance); @@ -18223,7 +18109,7 @@ var yoga = (() => { return (nZ = u.asm.J).apply(null, arguments); } function nJ() { - 0 < N || (C(O), 0 < N || e || (e = true, u.calledRun = true, h || (C(P2), c2(u), C(b)))); + 0 < N || (C2(O), 0 < N || e || (e = true, u.calledRun = true, h || (C2(P), c(u), C2(b)))); } return u.__embind_initialize_bindings = function() { return (u.__embind_initialize_bindings = u.asm.G).apply(null, arguments); @@ -18683,16 +18569,16 @@ function getIconCode(char) { return toCodePoint(char.indexOf(U200D) < 0 ? char.replace(UFE0Fg, "") : char); } function toCodePoint(unicodeSurrogates) { - var r = [], c2 = 0, p = 0, i = 0; + var r = [], c = 0, p = 0, i = 0; while (i < unicodeSurrogates.length) { - c2 = unicodeSurrogates.charCodeAt(i++); + c = unicodeSurrogates.charCodeAt(i++); if (p) { - r.push((65536 + (p - 55296 << 10) + (c2 - 56320)).toString(16)); + r.push((65536 + (p - 55296 << 10) + (c - 56320)).toString(16)); p = 0; - } else if (55296 <= c2 && c2 <= 56319) { - p = c2; + } else if (55296 <= c && c <= 56319) { + p = c; } else { - r.push(c2.toString(16)); + r.push(c.toString(16)); } } return r.join("-"); @@ -18716,7 +18602,86 @@ function loadEmoji(code, type) { return fetch(`${api}${code.toUpperCase()}.svg`); } -// src/og.ts +// src/language/index.ts +var FontDetector = class { + constructor() { + this.rangesByLang = {}; + } + async detect(text, fonts) { + await this.load(fonts); + const result = {}; + for (const segment of text) { + const lang = this.detectSegment(segment, fonts); + if (lang) { + result[lang] = result[lang] || ""; + result[lang] += segment; + } + } + return result; + } + detectSegment(segment, fonts) { + for (const font of fonts) { + const range = this.rangesByLang[font]; + if (range && checkSegmentInRange(segment, range)) { + return font; + } + } + return null; + } + async load(fonts) { + let params = ""; + const existingLang = Object.keys(this.rangesByLang); + const langNeedsToLoad = fonts.filter((font) => !existingLang.includes(font)); + if (langNeedsToLoad.length === 0) { + return; + } + for (const font of langNeedsToLoad) { + params += `family=${font}&`; + } + params += "display=swap"; + const API = `https://fonts.googleapis.com/css2?${params}`; + const fontFace = await (await fetch(API, { + headers: { + "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36" + } + })).text(); + this.addDetectors(fontFace); + } + addDetectors(input) { + const regex = /font-family:\s*'(.+?)';.+?unicode-range:\s*(.+?);/gms; + const matches = input.matchAll(regex); + for (const [, _lang, range] of matches) { + const lang = _lang.replaceAll(" ", "+"); + if (!this.rangesByLang[lang]) { + this.rangesByLang[lang] = []; + } + this.rangesByLang[lang].push(...convert(range)); + } + } +}; +function convert(input) { + return input.split(", ").map((range) => { + range = range.replaceAll("U+", ""); + const [start, end] = range.split("-").map((hex) => parseInt(hex, 16)); + if (isNaN(end)) { + return start; + } + return [start, end]; + }); +} +function checkSegmentInRange(segment, range) { + const codePoint = segment.codePointAt(0); + if (!codePoint) + return false; + return range.some((val) => { + if (typeof val === "number") { + return codePoint === val; + } else { + const [start, end] = val; + return start <= codePoint && codePoint <= end; + } + }); +} var languageFontMap = { "ja-JP": "Noto+Sans+JP", "ko-KR": "Noto+Sans+KR", @@ -18736,6 +18701,8 @@ var languageFontMap = { math: "Noto+Sans+Math", unknown: "Noto+Sans" }; + +// src/og.ts async function loadGoogleFont(font, text) { if (!font || !text) return; @@ -18747,27 +18714,35 @@ async function loadGoogleFont(font, text) { })).text(); const resource = css.match(/src: url\((.+)\) format\('(opentype|truetype)'\)/); if (!resource) - throw new Error("Failed to load font"); - return fetch(resource[1]).then((res) => res.arrayBuffer()); + throw new Error("Failed to download dynamic font"); + const res = await fetch(resource[1]); + if (!res.ok) { + throw new Error("Failed to download dynamic font. Status: " + res.status); + } + return res.arrayBuffer(); } +var detector = new FontDetector(); var assetCache = /* @__PURE__ */ new Map(); var loadDynamicAsset = ({ emoji }) => { const fn = async (code, text) => { if (code === "emoji") { return `data:image/svg+xml;base64,` + btoa(await (await loadEmoji(getIconCode(text), emoji)).text()); } - if (!languageFontMap[code]) - code = "unknown"; + const codes = code.split("|"); + const names = codes.map((code2) => languageFontMap[code2]).filter(Boolean).flat(); + if (names.length === 0) + return []; try { - const data = await loadGoogleFont(languageFontMap[code], text); - if (data) { - return { - name: `satori_${code}_fallback_${text}`, - data, - weight: 400, - style: "normal" - }; - } + const textByFont = await detector.detect(text, names); + const fonts = Object.keys(textByFont); + const fontData = await Promise.all(fonts.map((font) => loadGoogleFont(font, textByFont[font]))); + return fontData.map((data, index) => ({ + name: `satori_${codes[index]}_fallback_${text}`, + data, + weight: 400, + style: "normal", + lang: codes[index] === "unknown" ? void 0 : codes[index] + })); } catch (e) { console.error("Failed to load dynamic font for", text, ". Error:", e); } @@ -18808,7 +18783,7 @@ async function render(satori, resvg, opts, defaultFonts, element) { // src/index.edge.ts var initializedResvg = initWasm(resvg_wasm); -var initializedYoga = initYoga(yoga_wasm).then((yoga2) => Ll(yoga2)); +var initializedYoga = initYoga(yoga_wasm).then((yoga2) => Bl(yoga2)); var fallbackFont = fetch(new URL("./noto-sans-v27-latin-regular.ttf", import.meta.url)).then((res) => res.arrayBuffer()); var ImageResponse = class { constructor(element, options = {}) { @@ -18825,7 +18800,7 @@ var ImageResponse = class { style: "normal" } ]; - const result2 = await render(Cl, resvg_wasm_exports, options, fonts, element); + const result2 = await render(xl, resvg_wasm_exports, options, fonts, element); controller.enqueue(result2); controller.close(); } diff --git a/packages/next/src/compiled/@vercel/og/index.node.js b/packages/next/src/compiled/@vercel/og/index.node.js index f106ebd00a0b0..eba9c4738c00b 100644 --- a/packages/next/src/compiled/@vercel/og/index.node.js +++ b/packages/next/src/compiled/@vercel/og/index.node.js @@ -11,13 +11,13 @@ var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; -var __copyProps = (to, from, except, desc) => { +var __copyProps = (to2, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + if (!__hasOwnProp.call(to2, key) && key !== except) + __defProp(to2, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } - return to; + return to2; }; var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod)); @@ -80,7 +80,7 @@ var require_tiny_inflate = __commonJS({ sum += 1 << bits2[i]; } } - function tinf_build_fixed_trees(lt, dt2) { + function tinf_build_fixed_trees(lt, dt) { var i; for (i = 0; i < 7; ++i) lt.table[i] = 0; @@ -96,10 +96,10 @@ var require_tiny_inflate = __commonJS({ for (i = 0; i < 112; ++i) lt.trans[24 + 144 + 8 + i] = 144 + i; for (i = 0; i < 5; ++i) - dt2.table[i] = 0; - dt2.table[5] = 32; + dt.table[i] = 0; + dt.table[5] = 32; for (i = 0; i < 32; ++i) - dt2.trans[i] = i; + dt.trans[i] = i; } var offs = new Uint16Array(16); function tinf_build_tree(t, lengths2, off, num) { @@ -157,7 +157,7 @@ var require_tiny_inflate = __commonJS({ d.bitcount -= len; return t.trans[sum + cur]; } - function tinf_decode_trees(d, lt, dt2) { + function tinf_decode_trees(d, lt, dt) { var hlit, hdist, hclen; var i, num, length; hlit = tinf_read_bits(d, 5, 257); @@ -195,9 +195,9 @@ var require_tiny_inflate = __commonJS({ } } tinf_build_tree(lt, lengths, 0, hlit); - tinf_build_tree(dt2, lengths, hlit, hdist); + tinf_build_tree(dt, lengths, hlit, hdist); } - function tinf_inflate_block_data(d, lt, dt2) { + function tinf_inflate_block_data(d, lt, dt) { while (1) { var sym = tinf_decode_symbol(d, lt); if (sym === 256) { @@ -210,7 +210,7 @@ var require_tiny_inflate = __commonJS({ var i; sym -= 257; length = tinf_read_bits(d, length_bits[sym], length_base[sym]); - dist = tinf_decode_symbol(d, dt2); + dist = tinf_decode_symbol(d, dt); offs2 = d.destLen - tinf_read_bits(d, dist_bits[dist], dist_base[dist]); for (i = offs2; i < offs2 + length; ++i) { d.dest[d.destLen++] = d.dest[i]; @@ -3472,8 +3472,8 @@ var $32627af916ac1b00$export$5bdb8ccbf5c57afc = [ ]; var $557adaaeb0c7885f$var$data = import_base64_js.default.toByteArray("AAgOAAAAAAAQ4QAAAQ0P8vDtnQuMXUUZx+eyu7d7797d9m5bHoWltKVUlsjLWE0VJNigQoMVqkStEoNQQUl5GIo1KKmogEgqkKbBRki72lYabZMGKoGAjQRtJJDaCCIRiiigREBQS3z+xzOTnZ3O+3HOhd5NfpkzZx7fN9988zivu2M9hGwB28F94DnwEngd/Asc1EtIs9c/bIPDwCxwLDgezHcodyo4w5C+CCwBS8FnwSXgCnA1uFbI93XwbXAbWAfWgx+CzWAb+An4KfgFeAzsYWWfYuFz4CXwGvgb+Dfo6yNkEEwGh4CZYB44FpwI3g1OY+kfBItZOo2fB84Hy8DF4HJwNbiWpV8PVoO1LH4n2NRXyN+KcAd4kNVP9XsY4aPgcfAbsBfs6SniL4K/sPjfEf6HlanXCRkCw2BGvUh/keWfXS/CY+pFXs7x9XHmM94LTmWIeU2cgbxnS/k/B3kf86jDhU8L9V2E40vAFWAlWFUfb++NOL4F3C7JX4/4GiE+hvgWsF0oS7mXldspnN+F493gyXrh9xTav0cg3EvzgVfBG6wsmVSEkxBOBgdPGpd7JI6PnqRvJ68/xlbHof53gPeA94OzwLngk+ACsAwsByvASrAK3MB0Ws3CtQjvBJvAVrADPMDSHkb4CNijaccTwvnf4fiPEs8Lxy+D18A/QU8/xjgYBjPAbDAKTgYLwOngTHAO+EQ/8wuEF4EvsPiVCFf2+9tsFStzA8LVHuXXBsi6QyqzUYiPMR/7Mc7dAx7oL8bzw/3u/Bw8Bp4Az4AXwCtgHzsmDXP5fiF9iiVvly5d0sHngar16NKlS5cuXbp06fLmYlqHXrcd3ph4P0THUY3iXh49novju4S0tzfs5d+JPKewfAsRntZb3K9ZhOMlrO6lCC8An28U9+OuovcPcPxlVu5rCL/VmHh/iHIrzn3fIPu7SN8Axmg+8AOwEWwCm7tp3bRuWjetm5Y8bSu4B9zbKO6ZVsnORrVU3f4uXTqZ2H3sLoyx3eDXjfDndE9qyj6L838CfwVvgFpzYnof4oNgOhgBc8Fos9DrZIQLmtXPP1MmF6wGj4H+KXoWguvADkXaPil+YpuQy8Am8Ey7ODdtmJDF4HowBp4De6HDTNjhfHAHeBr0DBBy0kDxfPbcgSIusgrcWhtnJ8vL+TPix7UIOQtcBq4C28Cr4KRBnANbwSuDE+s50JgyNNFuXbp06XIgsXjIvPafjvXozKY+fVFz/z0LT1uCtKVSWbrOLWPnztG8e0Xfy7ol8XtZJi7WtG+5od2UFXQ/A12vUeS7jp27yVKHjdsU9lXB869TyNvAzt0lpP2oWbwLdjiO78bx/Sz+EMJHwK9Y/LcIfw+eZ3F67/Hl5vh9xX80J+rwX8SvRDhpgL17iPAQMHNArfPrqHPewLheI+AERV6efwV418B4nOZ/H+IfYHV8GOF5LJ3eAz0fx8sM9S0fUNud39O9CulfGZhY5huI3wzWgNvBelbHZoTbNPVpfYjKQpkHwUNgl0LWblbnk0LbbDxr0OMFpL3iqWdu9nWYPlVAWkXY39LnGdCkDbeqv1YNbfcMQ3t9oe8lzm6NH9N1ZB6Ln4BwfkJZJk7RyFnYKt6b/JDQXx9p5X+eFdqOjzM9P9MB/lUlFzr20aXIdzlY4dmn9F3YqtvoO76/2hp/D/xA5Zue88nNyL8GbFbs075X0tyUig3Qd2MCnf//HjnzpbsR3g9+1kHzzVjdnE71/qVBX9rGPUh/ysNWe1neFzvIDi5zAufV1sT0N0poR22wkFUfTOPfA4N2mbZ5fSrqOHSw+IbkSBbOGSzSRgf91/GTUWYBOB2cIZQ/G8cfBZ8CFwrnL8XxF8FKcA24jqXdiPA7Qr61OF7H4mMItwzuv2/YLth1ISt3Hzu3k4W7EH5JqPdRHD/O4k+z8A8IX5Lq3y7Z4nXE9xn6kX6vQ4bKfy+ok+hH+xf3hq9dnTTHhjKd2GmDuWA242iHMq4cC7A8kJ7i8o1+skSa7Jieo38HCWnoNjKFhdSFBxzpZ7QE6lI8N4S14aASZcryaV/WWHw66f6NHuCoxuQxmvM56GX9QMd8Q4D65ywGP+ZzRJuM+zQvx/MOS2VFeqQ4IXnH26zM9Xe6/E6D+4foAzzuajPZp8Qyw5ayZVDWuH0z0BtYRkeIDqH9KO9VbH1btd/lhNqCzvl8zeLnG0S/hnU6baHfpiuO6yy0rd+DHURo/zYF5H26j03rQsip2ndzz82u1z9N4VjWKWeb68Tedpt95HRVXp7H1R6p+/Wt4FPy/PpWwscOLRJ+PVWF/+W0iVyGzs18TIvXkOJ1Wxm66vSXz+vylenrZcj1ub439W+K8RNCGTJi2p/TJ1K23VaXr35tRpnzmjxequgfcfyk6B/TGBVlyedsNgpdd/h+W1U3P99QyFPNo1X3TwpM/WLTIWYfoBqXrv6iskHZ/RFr79R6hIyHBrH3f1nrUVnjP8SnZZ+rYtzr9Exld5MNbPNErusAPg+77u/eDOPftU9yj39TH7rezxd1LvsZQJlzkWlOirG/79zjMj/mtHUKu7vKy+3/LnXr9okyKedjX5/0He9iP/j63LwOQdarEVlfy8OO/Lqw023j6xcqmwxLiOd6heM2i9cV9LJy8jMJ23yQ+rpbfu7EQ/pXE8KYvUSqvVnb4XzZa6LrHMXHR+zcLvqWbm/Bn0/HzIs6fWPHoat8XfnDKmZGxRxeMbn2UqZ5Q94nmcZRbqqUXbZ8+lcjE+cPX11t814orvvAXNcG8vqj2vvk1MGn3anlj0bIT72v47bvE+Lc98T9b6r7AKn6j+8Duf7D0nnZx/j7Zjn0j9nbpSTndaLr9WNLivP+iN23xF7L+fqv6ZouFyb78jxVXvv5jJ9YUs9/sddO8h7KNg5jrhfaJGztT6G7KF+1d6yCmD5Kdb2fan60rSc552fZr3zeQ9DpnPp+Si5cx5Ktv2QfSzF/mMbWdOm46rFI4XstnU9xeqX4NKb7TKEdcr6pZOK3ID1k/LvFHkVczEuZLEDr499YqvqBym1aEHWgcvoYOtv0M91qQl5TfpO/in6rWx8OVpT1Wedkv3f5xom3T/xeR/6Gx6V86PWAOB4bBpqWdN+yTcVxjIyGRz/FrDGu6w/3d7kPm8StX8RyPu+uuvpNju/vTLJV37GpvoM0oZPnW87VLnL/5pDno1NoW1R6yedU6TyUv3u19a3KFnIbTLYz+ZCLP4T0tU1uivFgso0pnsJ/UtXvarNY28Xq5cvkBDrQP/E5ZaiuQwwfmTlsOiQRU1fMuqrDd/3ISSuwjOwXOfTyGUMpZIXq4GpLn3pUcdfzch2x7XO1u2uZHOPb1G6b3Xg9PH1IIWeEpJlPQtqos2EKW8b0u8rnuP1UeVLoXJb9be0uG9nnbchjU+XTszT5VeNBThPHnc5OKj1U9aj0GTHIVaGy1YhEWT4ixns00DT+XEzWn/7VAsIc63Cov3OdyhwjrnaqQqZvWKXdypRdlq+k8msZ031U+Rm4fA+3TtyeR9hwfW9G9yxDN0fZMN33F+9TE6md4hwoxumfaUzI9fN3PFT3xVV2msrQ3UsnChm6Nulk8TndpS28D3zX9tTIPsF/z7Am5OkTjm1tI1JZW74+4VgsZ0N3L1yXV3WeP5uR7TGHHdvC3JQlxybfpd22tDlk/2eofRK8TzrN/qnar/K/OUTth6I/+jAnEptNbPvFHP2gs40N3+dfMWtwqvVct7/wfd8gtQ7imifial9ZJ9/3IHLYU6eDj3+4PhsNhX+vwvcWLnu6kGfEMe8DuciPfUfGZB8X/7HJy/Gefe5n+VRGFd/wyP2ta7/LO4yh/sbLV/k9lev6kfO9Dt/5U67b1/6u/epqB1U9Me23jfHY9sscAg4tkbLl+e4/U36rJ9ddxfd6sg5vq5ice42Wpk/pb9FOJ36/W9tpv4kbC79nUbZceX8Zu6/qJ+P3WvhvA8v3reh7Jbn2d6rrNC7XNZTLma4Ba0JI9efX2uLzF5scG/w9UNU1ZxW+ymUfzELeTllXlQ1rUuhzjS5fp9c964iFBOqeSz63bU065nZKdU+mDEz3qHIjjifquw0pnb/raRtvrnsYcb46ihT3taoYz6brdNW9l6rWRnE/navdPn1XlR1km7hcz1WlH/elKuSOSvLLuE8U6m8uzwRdfcGl73VyTHuyMvzJ1Sa2cWDTP/Z63Kc94n2B1PYr24dz1JlyHLlcP+S4B6vD1c9EW4q2LWstCvUjeVy63k/LMYdUNd5D1xQfvVTzX1VjkMsUv88N8VH5fReVn/Fjn++/h6X6Q8a6b1/q3g/i/ewi0/Scs8zxXeV6mWIOUPlPzBgdFerW+bZrm2P18dnjuK6HunEp+rHvPMXbr+sHVb/lnL+pTP57jPw9Cvk3PW178JD9qChfzuvTf7Htl38L1QUf/VKu9SFjwWbTWPvFEvu7Uq76y7+31g6QlYPc669pbsm9Xur2LWI9Pu8ypfDXqm3A2z8s1FWGn4ntL9NfQu2oSlftX9uetvTtv7J8Ql4zxfXGZ3zk8PeQ9w59x2uMfqI8/q5eKh/l9cb2rwsu9rSNl06ZP2Pmxtz+rNMx93yno0n2/82rVH7rQ+y9P15H6FyRun9ViH81ATmffI7nJ5r8uXXW6enbP6b/B8/l5OifVHYLnb9S39s2zcc+Ph+rh8+eQgVPS72elzGWY/tUtbbabBpDiI7yN1q6/4th2y+ErAc5+9BVvu/7KamJbWNZeuqI/R4tRf+YyD1HmOZM1bMV3/14Sn10c0Xu+Sj1nOXb5jL73ncdy02uvlXZNde65dOHYl7Vs4KYuS6FzWLn2zJlpZqPXPVPOa5yzKOyn1VhT9lmMfdbfH7D11Wf2PXN5h9y+dD287+qxgSnaYmnIrRtIb8pJe6/Uv9OVer6Whn0zfGO/BEloZI9ojmfAlUflClDd178bTmVHVTpZXOkAlk/lb42UujmI89HH5V+cl7XtowY6vTxLVWok6UrGzoGTHN+bB+6ri05687VNpvfuvRfaP2uMlNQth1D5JjGelm/8yn+9p3p/7qk9gnfeddXZmq/Sm333PJT659Kv1zjNbZ9uv2Oi//67CV8/N1nj1DmviyXDNVeJkaeaX8UsyesYg8cu2+NvdaPfb+lLDu5tvt/"); var $557adaaeb0c7885f$var$classTrie = new import_unicode_trie.default($557adaaeb0c7885f$var$data); -var $557adaaeb0c7885f$var$mapClass = function(c2) { - switch (c2) { +var $557adaaeb0c7885f$var$mapClass = function(c) { + switch (c) { case $1627905f8be2ef3f$export$d710c5f50fc7496a: return $1627905f8be2ef3f$export$1bb1140fe1358b00; case $1627905f8be2ef3f$export$da51c6332ad11d7b: @@ -3483,18 +3483,18 @@ var $557adaaeb0c7885f$var$mapClass = function(c2) { case $1627905f8be2ef3f$export$eb6c6d0b7c8826f2: return $1627905f8be2ef3f$export$fb4028874a74450; default: - return c2; + return c; } }; -var $557adaaeb0c7885f$var$mapFirst = function(c2) { - switch (c2) { +var $557adaaeb0c7885f$var$mapFirst = function(c) { + switch (c) { case $1627905f8be2ef3f$export$606cfc2a8896c91f: case $1627905f8be2ef3f$export$e51d3c675bb0140d: return $1627905f8be2ef3f$export$66498d28055820a9; case $1627905f8be2ef3f$export$c4c7eecbfed13dc9: return $1627905f8be2ef3f$export$9e5d732f3676a9ba; default: - return c2; + return c; } }; var $557adaaeb0c7885f$var$Break = class { @@ -3614,7 +3614,7 @@ var $557adaaeb0c7885f$var$LineBreaker = class { }; $557adaaeb0c7885f$exports = $557adaaeb0c7885f$var$LineBreaker; -// node_modules/.pnpm/satori@0.10.1/node_modules/satori/dist/index.wasm.js +// node_modules/.pnpm/satori@0.10.3/node_modules/satori/dist/index.wasm.js var import_css_to_react_native = __toESM(require_css_to_react_native(), 1); var import_css_background_parser = __toESM(require_css_background_parser(), 1); var import_css_box_shadow = __toESM(require_css_box_shadow(), 1); @@ -3705,8 +3705,8 @@ function parseAlpha(alpha) { return clamp(a, 0, 1); } function getHEX(hex) { - const [r, g2, b, a] = (0, import_hex_rgb.default)(hex, { format: "array" }); - return getRGB([null, ...[r, g2, b, a]]); + const [r, g, b, a] = (0, import_hex_rgb.default)(hex, { format: "array" }); + return getRGB([null, ...[r, g, b, a]]); } function getHSL([, h, s, l, a = 1]) { let hh = h; @@ -3723,10 +3723,10 @@ function getHSL([, h, s, l, a = 1]) { alpha: parseAlpha(a === null ? 1 : a) }; } -function getRGB([, r, g2, b, a = 1]) { +function getRGB([, r, g, b, a = 1]) { return { type: "rgb", - values: [r, g2, b].map(parseRGB), + values: [r, g, b].map(parseRGB), alpha: parseAlpha(a === null ? 1 : a) }; } @@ -3751,7 +3751,7 @@ var parseCSSColor = (str) => { }; var index_esm_default = parseCSSColor; -// node_modules/.pnpm/satori@0.10.1/node_modules/satori/dist/index.wasm.js +// node_modules/.pnpm/satori@0.10.3/node_modules/satori/dist/index.wasm.js var import_postcss_value_parser = __toESM(require_lib(), 1); var import_css_to_react_native2 = __toESM(require_css_to_react_native(), 1); var import_escape_html = __toESM(require_escape_html(), 1); @@ -3900,13 +3900,13 @@ var ec = [ "stream finishing", "invalid zip data" ]; -var err = function(ind, msg, nt2) { +var err = function(ind, msg, nt) { var e = new Error(msg || ec[ind]); e.code = ind; if (Error.captureStackTrace) { Error.captureStackTrace(e, err); } - if (!nt2) { + if (!nt) { throw e; } return e; @@ -3932,7 +3932,7 @@ var inflt = function(dat, buf, st) { buf = nbuf; } }; - var final = st.f || 0, pos = st.p || 0, bt = st.b || 0, lm = st.l, dm = st.d, lbt = st.m, dbt = st.n; + var final = st.f || 0, pos = st.p || 0, bt2 = st.b || 0, lm = st.l, dm = st.d, lbt = st.m, dbt = st.n; var tbts = sl2 * 8; do { if (!lm) { @@ -3948,10 +3948,10 @@ var inflt = function(dat, buf, st) { break; } if (noBuf) { - cbuf(bt + l); + cbuf(bt2 + l); } - buf.set(dat.subarray(s, t), bt); - st.b = bt += l, st.p = pos = t * 8, st.f = final; + buf.set(dat.subarray(s, t), bt2); + st.b = bt2 += l, st.p = pos = t * 8, st.f = final; continue; } else if (type == 1) { lm = flrm, dm = fdrm, lbt = 9, dbt = 5; @@ -3974,24 +3974,24 @@ var inflt = function(dat, buf, st) { if (s < 16) { ldt[i++] = s; } else { - var c2 = 0, n = 0; + var c = 0, n = 0; if (s == 16) { - n = 3 + bits(dat, pos, 3), pos += 2, c2 = ldt[i - 1]; + n = 3 + bits(dat, pos, 3), pos += 2, c = ldt[i - 1]; } else if (s == 17) { n = 3 + bits(dat, pos, 7), pos += 3; } else if (s == 18) { n = 11 + bits(dat, pos, 127), pos += 7; } while (n--) { - ldt[i++] = c2; + ldt[i++] = c; } } } - var lt = ldt.subarray(0, hLit), dt2 = ldt.subarray(hLit); + var lt = ldt.subarray(0, hLit), dt = ldt.subarray(hLit); lbt = max(lt); - dbt = max(dt2); + dbt = max(dt); lm = hMap(lt, lbt, 1); - dm = hMap(dt2, dbt, 1); + dm = hMap(dt, dbt, 1); } else { err(1); } @@ -4003,24 +4003,24 @@ var inflt = function(dat, buf, st) { } } if (noBuf) { - cbuf(bt + 131072); + cbuf(bt2 + 131072); } var lms = (1 << lbt) - 1, dms = (1 << dbt) - 1; var lpos = pos; for (; ; lpos = pos) { - var c2 = lm[bits16(dat, pos) & lms], sym = c2 >>> 4; - pos += c2 & 15; + var c = lm[bits16(dat, pos) & lms], sym = c >>> 4; + pos += c & 15; if (pos > tbts) { if (noSt) { err(0); } break; } - if (!c2) { + if (!c) { err(2); } if (sym < 256) { - buf[bt++] = sym; + buf[bt2++] = sym; } else if (sym == 256) { lpos = pos, lm = null; break; @@ -4036,10 +4036,10 @@ var inflt = function(dat, buf, st) { err(3); } pos += d & 15; - var dt2 = fd[dsym]; + var dt = fd[dsym]; if (dsym > 3) { var b = fdeb[dsym]; - dt2 += bits16(dat, pos) & (1 << b) - 1, pos += b; + dt += bits16(dat, pos) & (1 << b) - 1, pos += b; } if (pos > tbts) { if (noSt) { @@ -4048,24 +4048,24 @@ var inflt = function(dat, buf, st) { break; } if (noBuf) { - cbuf(bt + 131072); + cbuf(bt2 + 131072); } - var end = bt + add; - for (; bt < end; bt += 4) { - buf[bt] = buf[bt - dt2]; - buf[bt + 1] = buf[bt + 1 - dt2]; - buf[bt + 2] = buf[bt + 2 - dt2]; - buf[bt + 3] = buf[bt + 3 - dt2]; + var end = bt2 + add; + for (; bt2 < end; bt2 += 4) { + buf[bt2] = buf[bt2 - dt]; + buf[bt2 + 1] = buf[bt2 + 1 - dt]; + buf[bt2 + 2] = buf[bt2 + 2 - dt]; + buf[bt2 + 3] = buf[bt2 + 3 - dt]; } - bt = end; + bt2 = end; } } - st.l = lm, st.p = lpos, st.b = bt, st.f = final; + st.l = lm, st.p = lpos, st.b = bt2, st.f = final; if (lm) { final = 1, st.m = lbt, st.d = dm, st.n = dbt; } } while (!final); - return bt == buf.length ? buf : slc(buf, 0, bt); + return bt2 == buf.length ? buf : slc(buf, 0, bt2); }; var et = /* @__PURE__ */ new u8(0); function inflateSync(data, out) { @@ -5074,8 +5074,8 @@ var cffExpertEncoding = [ function DefaultEncoding(font) { this.font = font; } -DefaultEncoding.prototype.charToGlyphIndex = function(c2) { - var code = c2.codePointAt(0); +DefaultEncoding.prototype.charToGlyphIndex = function(c) { + var code = c.codePointAt(0); var glyphs = this.font.glyphs; if (glyphs) { for (var i = 0; i < glyphs.length; i += 1) { @@ -5092,8 +5092,8 @@ DefaultEncoding.prototype.charToGlyphIndex = function(c2) { function CmapEncoding(cmap2) { this.cmap = cmap2; } -CmapEncoding.prototype.charToGlyphIndex = function(c2) { - return this.cmap.glyphIndexMap[c2.codePointAt(0)] || 0; +CmapEncoding.prototype.charToGlyphIndex = function(c) { + return this.cmap.glyphIndexMap[c.codePointAt(0)] || 0; }; function CffEncoding(encoding, charset) { this.encoding = encoding; @@ -5109,10 +5109,10 @@ function addGlyphNamesAll(font) { var glyphIndexMap = font.tables.cmap.glyphIndexMap; var charCodes = Object.keys(glyphIndexMap); for (var i = 0; i < charCodes.length; i += 1) { - var c2 = charCodes[i]; - var glyphIndex = glyphIndexMap[c2]; + var c = charCodes[i]; + var glyphIndex = glyphIndexMap[c]; glyph = font.glyphs.get(glyphIndex); - glyph.addUnicode(parseInt(c2)); + glyph.addUnicode(parseInt(c)); } } function addGlyphNamesToUnicodeMap(font) { @@ -5120,14 +5120,14 @@ function addGlyphNamesToUnicodeMap(font) { var glyphIndexMap = font.tables.cmap.glyphIndexMap; var charCodes = Object.keys(glyphIndexMap); for (var i = 0; i < charCodes.length; i += 1) { - var c2 = charCodes[i]; - var glyphIndex = glyphIndexMap[c2]; + var c = charCodes[i]; + var glyphIndex = glyphIndexMap[c]; if (font._IndexToUnicodeMap[glyphIndex] === void 0) { font._IndexToUnicodeMap[glyphIndex] = { - unicodes: [parseInt(c2)] + unicodes: [parseInt(c)] }; } else { - font._IndexToUnicodeMap[glyphIndex].unicodes.push(parseInt(c2)); + font._IndexToUnicodeMap[glyphIndex].unicodes.push(parseInt(c)); } } } @@ -5246,9 +5246,9 @@ Glyph.prototype.getContours = function() { var contours = []; var currentContour = []; for (var i = 0; i < this.points.length; i += 1) { - var pt2 = this.points[i]; - currentContour.push(pt2); - if (pt2.lastPointOfContour) { + var pt = this.points[i]; + currentContour.push(pt); + if (pt.lastPointOfContour) { contours.push(currentContour); currentContour = []; } @@ -5629,8 +5629,8 @@ Position.prototype.getKerningValue = function(kerningLookups, leftIndex, rightIn switch (subtable.posFormat) { case 1: var pairSet = subtable.pairSets[covIndex]; - for (var k2 = 0; k2 < pairSet.length; k2++) { - var pair = pairSet[k2]; + for (var k = 0; k < pairSet.length; k++) { + var pair = pairSet[k]; if (pair.secondGlyph === rightIndex) { return pair.value1 && pair.value1.xAdvance || 0; } @@ -5772,8 +5772,8 @@ Substitution.prototype.getLigatures = function(feature, script, language) { for (var j = 0; j < glyphs.length; j++) { var startGlyph = glyphs[j]; var ligSet = ligatureSets[j]; - for (var k2 = 0; k2 < ligSet.length; k2++) { - var lig = ligSet[k2]; + for (var k = 0; k < ligSet.length; k++) { + var lig = ligSet[k]; ligatures.push({ sub: [startGlyph].concat(lig.components), by: lig.ligGlyph @@ -6549,12 +6549,12 @@ function parseGlyph(glyph, data, start) { function transformPoints(points, transform) { var newPoints = []; for (var i = 0; i < points.length; i += 1) { - var pt2 = points[i]; + var pt = points[i]; var newPt = { - x: transform.xScale * pt2.x + transform.scale01 * pt2.y + transform.dx, - y: transform.scale10 * pt2.x + transform.yScale * pt2.y + transform.dy, - onCurve: pt2.onCurve, - lastPointOfContour: pt2.lastPointOfContour + x: transform.xScale * pt.x + transform.scale01 * pt.y + transform.dx, + y: transform.scale10 * pt.x + transform.yScale * pt.y + transform.dy, + onCurve: pt.onCurve, + lastPointOfContour: pt.lastPointOfContour }; newPoints.push(newPt); } @@ -6564,9 +6564,9 @@ function getContours(points) { var contours = []; var currentContour = []; for (var i = 0; i < points.length; i += 1) { - var pt2 = points[i]; - currentContour.push(pt2); - if (pt2.lastPointOfContour) { + var pt = points[i]; + currentContour.push(pt); + if (pt.lastPointOfContour) { contours.push(currentContour); currentContour = []; } @@ -6747,7 +6747,7 @@ var xUnitVector = { var doa2; var dm1; var dm2; - var dt2; + var dt; if (!pv || pv === this) { do1 = p.xo - rp1.xo; do2 = p.xo - rp2.xo; @@ -6755,12 +6755,12 @@ var xUnitVector = { dm2 = rp2.x - rp2.xo; doa1 = Math.abs(do1); doa2 = Math.abs(do2); - dt2 = doa1 + doa2; - if (dt2 === 0) { + dt = doa1 + doa2; + if (dt === 0) { p.x = p.xo + (dm1 + dm2) / 2; return; } - p.x = p.xo + (dm1 * doa2 + dm2 * doa1) / dt2; + p.x = p.xo + (dm1 * doa2 + dm2 * doa1) / dt; return; } do1 = pv.distance(p, rp1, true, true); @@ -6769,12 +6769,12 @@ var xUnitVector = { dm2 = pv.distance(rp2, rp2, false, true); doa1 = Math.abs(do1); doa2 = Math.abs(do2); - dt2 = doa1 + doa2; - if (dt2 === 0) { + dt = doa1 + doa2; + if (dt === 0) { xUnitVector.setRelative(p, p, (dm1 + dm2) / 2, pv, true); return; } - xUnitVector.setRelative(p, p, (dm1 * doa2 + dm2 * doa1) / dt2, pv, true); + xUnitVector.setRelative(p, p, (dm1 * doa2 + dm2 * doa1) / dt, pv, true); }, normalSlope: Number.NEGATIVE_INFINITY, setRelative: function(p, rp, d, pv, org) { @@ -6813,7 +6813,7 @@ var yUnitVector = { var doa2; var dm1; var dm2; - var dt2; + var dt; if (!pv || pv === this) { do1 = p.yo - rp1.yo; do2 = p.yo - rp2.yo; @@ -6821,12 +6821,12 @@ var yUnitVector = { dm2 = rp2.y - rp2.yo; doa1 = Math.abs(do1); doa2 = Math.abs(do2); - dt2 = doa1 + doa2; - if (dt2 === 0) { + dt = doa1 + doa2; + if (dt === 0) { p.y = p.yo + (dm1 + dm2) / 2; return; } - p.y = p.yo + (dm1 * doa2 + dm2 * doa1) / dt2; + p.y = p.yo + (dm1 * doa2 + dm2 * doa1) / dt; return; } do1 = pv.distance(p, rp1, true, true); @@ -6835,12 +6835,12 @@ var yUnitVector = { dm2 = pv.distance(rp2, rp2, false, true); doa1 = Math.abs(do1); doa2 = Math.abs(do2); - dt2 = doa1 + doa2; - if (dt2 === 0) { + dt = doa1 + doa2; + if (dt === 0) { yUnitVector.setRelative(p, p, (dm1 + dm2) / 2, pv, true); return; } - yUnitVector.setRelative(p, p, (dm1 * doa2 + dm2 * doa1) / dt2, pv, true); + yUnitVector.setRelative(p, p, (dm1 * doa2 + dm2 * doa1) / dt, pv, true); }, normalSlope: 0, setRelative: function(p, rp, d, pv, org) { @@ -6885,19 +6885,19 @@ UnitVector.prototype.interpolate = function(p, rp1, rp2, pv) { var do2; var doa1; var doa2; - var dt2; + var dt; do1 = pv.distance(p, rp1, true, true); do2 = pv.distance(p, rp2, true, true); dm1 = pv.distance(rp1, rp1, false, true); dm2 = pv.distance(rp2, rp2, false, true); doa1 = Math.abs(do1); doa2 = Math.abs(do2); - dt2 = doa1 + doa2; - if (dt2 === 0) { + dt = doa1 + doa2; + if (dt === 0) { this.setRelative(p, p, (dm1 + dm2) / 2, pv, true); return; } - this.setRelative(p, p, (dm1 * doa2 + dm2 * doa1) / dt2, pv, true); + this.setRelative(p, p, (dm1 * doa2 + dm2 * doa1) / dt, pv, true); }; UnitVector.prototype.setRelative = function(p, rp, d, pv, org) { pv = pv || this; @@ -7010,8 +7010,8 @@ Hinting.prototype.exec = function(glyph, ppem) { if (oCvt) { var cvt = prepState.cvt = new Array(oCvt.length); var scale = ppem / font.unitsPerEm; - for (var c2 = 0; c2 < oCvt.length; c2++) { - cvt[c2] = oCvt[c2] * scale; + for (var c = 0; c < oCvt.length; c++) { + cvt[c] = oCvt[c] * scale; } } else { prepState.cvt = []; @@ -7064,20 +7064,20 @@ execGlyph = function(glyph, prepState) { gZone = []; contours = []; for (var i = 0; i < components.length; i++) { - var c2 = components[i]; - var cg = font.glyphs.get(c2.glyphIndex); + var c = components[i]; + var cg = font.glyphs.get(c.glyphIndex); state = new State("glyf", cg.instructions); if (exports.DEBUG) { console.log("---EXEC COMP " + i + "---"); state.step = -1; } execComponent(cg, state, xScale, yScale); - var dx = Math.round(c2.dx * xScale); - var dy = Math.round(c2.dy * yScale); + var dx = Math.round(c.dx * xScale); + var dy = Math.round(c.dy * yScale); var gz = state.gZone; var cc = state.contours; - for (var pi2 = 0; pi2 < gz.length; pi2++) { - var p = gz[pi2]; + for (var pi = 0; pi < gz.length; pi++) { + var p = gz[pi]; p.xTouched = p.yTouched = false; p.xo = p.x = p.x + dx; p.yo = p.y = p.y + dy; @@ -7305,16 +7305,16 @@ function ISECT(state) { var pa1i = stack.pop(); var pb0i = stack.pop(); var pb1i = stack.pop(); - var pi2 = stack.pop(); + var pi = stack.pop(); var z0 = state.z0; var z1 = state.z1; var pa0 = z0[pa0i]; var pa1 = z0[pa1i]; var pb0 = z1[pb0i]; var pb1 = z1[pb1i]; - var p = state.z2[pi2]; + var p = state.z2[pi]; if (exports.DEBUG) { - console.log("ISECT[], ", pa0i, pa1i, pb0i, pb1i, pi2); + console.log("ISECT[], ", pa0i, pa1i, pb0i, pb1i, pi); } var x1 = pa0.x; var y1 = pa0.y; @@ -7512,17 +7512,17 @@ function DEPTH(state) { function LOOPCALL(state) { var stack = state.stack; var fn = stack.pop(); - var c2 = stack.pop(); + var c = stack.pop(); if (exports.DEBUG) { - console.log(state.step, "LOOPCALL[]", fn, c2); + console.log(state.step, "LOOPCALL[]", fn, c); } var cip = state.ip; var cprog = state.prog; state.prog = state.funcs[fn]; - for (var i = 0; i < c2; i++) { + for (var i = 0; i < c; i++) { exec(state); if (exports.DEBUG) { - console.log(++state.step, i + 1 < c2 ? "next loopcall" : "done loopcall", i); + console.log(++state.step, i + 1 < c ? "next loopcall" : "done loopcall", i); } } state.ip = cip; @@ -7545,19 +7545,19 @@ function CALL(state) { } function CINDEX(state) { var stack = state.stack; - var k2 = stack.pop(); + var k = stack.pop(); if (exports.DEBUG) { - console.log(state.step, "CINDEX[]", k2); + console.log(state.step, "CINDEX[]", k); } - stack.push(stack[stack.length - k2]); + stack.push(stack[stack.length - k]); } function MINDEX(state) { var stack = state.stack; - var k2 = stack.pop(); + var k = stack.pop(); if (exports.DEBUG) { - console.log(state.step, "MINDEX[]", k2); + console.log(state.step, "MINDEX[]", k); } - stack.push(stack.splice(stack.length - k2, 1)[0]); + stack.push(stack.splice(stack.length - k, 1)[0]); } function FDEF(state) { if (state.env !== "fpgm") { @@ -7577,12 +7577,12 @@ function FDEF(state) { state.funcs[fn] = prog.slice(ipBegin + 1, ip); } function MDAP(round, state) { - var pi2 = state.stack.pop(); - var p = state.z0[pi2]; + var pi = state.stack.pop(); + var p = state.z0[pi]; var fv = state.fv; var pv = state.pv; if (exports.DEBUG) { - console.log(state.step, "MDAP[" + round + "]", pi2); + console.log(state.step, "MDAP[" + round + "]", pi); } var d = pv.distance(p, HPZero); if (round) { @@ -7590,7 +7590,7 @@ function MDAP(round, state) { } fv.setRelative(p, HPZero, d, pv); fv.touch(p); - state.rp0 = state.rp1 = pi2; + state.rp0 = state.rp1 = pi; } function IUP(v, state) { var z2 = state.z2; @@ -7626,13 +7626,13 @@ function SHP(a, state) { var loop = state.loop; var z2 = state.z2; while (loop--) { - var pi2 = stack.pop(); - var p = z2[pi2]; + var pi = stack.pop(); + var p = z2[pi]; var d = pv.distance(rp, rp, false, true); fv.setRelative(p, p, d, pv); fv.touch(p); if (exports.DEBUG) { - console.log(state.step, (state.loop > 1 ? "loop " + (state.loop - loop) + ": " : "") + "SHP[" + (a ? "rp1" : "rp2") + "]", pi2); + console.log(state.step, (state.loop > 1 ? "loop " + (state.loop - loop) + ": " : "") + "SHP[" + (a ? "rp1" : "rp2") + "]", pi); } } state.loop = 1; @@ -7693,10 +7693,10 @@ function SHPIX(state) { var d = stack.pop() / 64; var z2 = state.z2; while (loop--) { - var pi2 = stack.pop(); - var p = z2[pi2]; + var pi = stack.pop(); + var p = z2[pi]; if (exports.DEBUG) { - console.log(state.step, (state.loop > 1 ? "loop " + (state.loop - loop) + ": " : "") + "SHPIX[]", pi2, d); + console.log(state.step, (state.loop > 1 ? "loop " + (state.loop - loop) + ": " : "") + "SHPIX[]", pi, d); } fv.setRelative(p, p, d); fv.touch(p); @@ -7714,10 +7714,10 @@ function IP(state) { var pv = state.dpv; var z2 = state.z2; while (loop--) { - var pi2 = stack.pop(); - var p = z2[pi2]; + var pi = stack.pop(); + var p = z2[pi]; if (exports.DEBUG) { - console.log(state.step, (state.loop > 1 ? "loop " + (state.loop - loop) + ": " : "") + "IP[]", pi2, rp1i, "<->", rp2i); + console.log(state.step, (state.loop > 1 ? "loop " + (state.loop - loop) + ": " : "") + "IP[]", pi, rp1i, "<->", rp2i); } fv.interpolate(p, rp1, rp2, pv); fv.touch(p); @@ -7727,20 +7727,20 @@ function IP(state) { function MSIRP(a, state) { var stack = state.stack; var d = stack.pop() / 64; - var pi2 = stack.pop(); - var p = state.z1[pi2]; + var pi = stack.pop(); + var p = state.z1[pi]; var rp0 = state.z0[state.rp0]; var fv = state.fv; var pv = state.pv; fv.setRelative(p, rp0, d, pv); fv.touch(p); if (exports.DEBUG) { - console.log(state.step, "MSIRP[" + a + "]", d, pi2); + console.log(state.step, "MSIRP[" + a + "]", d, pi); } state.rp1 = state.rp0; - state.rp2 = pi2; + state.rp2 = pi; if (a) { - state.rp0 = pi2; + state.rp0 = pi; } } function ALIGNRP(state) { @@ -7752,10 +7752,10 @@ function ALIGNRP(state) { var pv = state.pv; var z1 = state.z1; while (loop--) { - var pi2 = stack.pop(); - var p = z1[pi2]; + var pi = stack.pop(); + var p = z1[pi]; if (exports.DEBUG) { - console.log(state.step, (state.loop > 1 ? "loop " + (state.loop - loop) + ": " : "") + "ALIGNRP[]", pi2); + console.log(state.step, (state.loop > 1 ? "loop " + (state.loop - loop) + ": " : "") + "ALIGNRP[]", pi); } fv.setRelative(p, rp0, 0, pv); fv.touch(p); @@ -7771,13 +7771,13 @@ function RTDG(state) { function MIAP(round, state) { var stack = state.stack; var n = stack.pop(); - var pi2 = stack.pop(); - var p = state.z0[pi2]; + var pi = stack.pop(); + var p = state.z0[pi]; var fv = state.fv; var pv = state.pv; var cv = state.cvt[n]; if (exports.DEBUG) { - console.log(state.step, "MIAP[" + round + "]", n, "(", cv, ")", pi2); + console.log(state.step, "MIAP[" + round + "]", n, "(", cv, ")", pi); } var d = pv.distance(p, HPZero); if (round) { @@ -7792,7 +7792,7 @@ function MIAP(round, state) { p.yo = p.y; } fv.touch(p); - state.rp0 = state.rp1 = pi2; + state.rp0 = state.rp1 = pi; } function NPUSHB(state) { var prog = state.prog; @@ -7866,10 +7866,10 @@ function RCVT(state) { } function GC(a, state) { var stack = state.stack; - var pi2 = stack.pop(); - var p = state.z2[pi2]; + var pi = stack.pop(); + var p = state.z2[pi]; if (exports.DEBUG) { - console.log(state.step, "GC[" + a + "]", pi2); + console.log(state.step, "GC[" + a + "]", pi); } stack.push(state.dpv.distance(p, HPZero, a, false) * 64); } @@ -8023,7 +8023,7 @@ function DELTAP123(b, state) { console.log(state.step, "DELTAP[" + b + "]", n, stack); } for (var i = 0; i < n; i++) { - var pi2 = stack.pop(); + var pi = stack.pop(); var arg = stack.pop(); var appem = base + ((arg & 240) >> 4); if (appem !== ppem) { @@ -8034,9 +8034,9 @@ function DELTAP123(b, state) { mag++; } if (exports.DEBUG) { - console.log(state.step, "DELTAPFIX", pi2, "by", mag * ds); + console.log(state.step, "DELTAPFIX", pi, "by", mag * ds); } - var p = z0[pi2]; + var p = z0[pi]; fv.setRelative(p, p, mag * ds, pv); } } @@ -8124,7 +8124,7 @@ function CEILING(state) { } stack.push(Math.ceil(n / 64) * 64); } -function ROUND(dt2, state) { +function ROUND(dt, state) { var stack = state.stack; var n = stack.pop(); if (exports.DEBUG) { @@ -8151,7 +8151,7 @@ function DELTAC123(b, state) { console.log(state.step, "DELTAC[" + b + "]", n, stack); } for (var i = 0; i < n; i++) { - var c2 = stack.pop(); + var c = stack.pop(); var arg = stack.pop(); var appem = base + ((arg & 240) >> 4); if (appem !== ppem) { @@ -8163,9 +8163,9 @@ function DELTAC123(b, state) { } var delta = mag * ds; if (exports.DEBUG) { - console.log(state.step, "DELTACFIX", c2, "by", delta); + console.log(state.step, "DELTACFIX", c, "by", delta); } - state.cvt[c2] += delta; + state.cvt[c] += delta; } } function SROUND(state) { @@ -8319,13 +8319,13 @@ function ROLL(state) { var stack = state.stack; var a = stack.pop(); var b = stack.pop(); - var c2 = stack.pop(); + var c = stack.pop(); if (exports.DEBUG) { console.log(state.step, "ROLL[]"); } stack.push(b); stack.push(a); - stack.push(c2); + stack.push(c); } function MAX(state) { var stack = state.stack; @@ -8396,13 +8396,13 @@ function PUSHW(n, state) { } state.ip = ip; } -function MDRP_MIRP(indirect, setRp0, keepD, ro, dt2, state) { +function MDRP_MIRP(indirect, setRp0, keepD, ro, dt, state) { var stack = state.stack; var cvte = indirect && stack.pop(); - var pi2 = stack.pop(); + var pi = stack.pop(); var rp0i = state.rp0; var rp = state.z0[rp0i]; - var p = state.z1[pi2]; + var p = state.z1[pi]; var md = state.minDis; var fv = state.fv; var pv = state.dpv; @@ -8428,12 +8428,12 @@ function MDRP_MIRP(indirect, setRp0, keepD, ro, dt2, state) { fv.setRelative(p, rp, sign * d, pv); fv.touch(p); if (exports.DEBUG) { - console.log(state.step, (indirect ? "MIRP[" : "MDRP[") + (setRp0 ? "M" : "m") + (keepD ? ">" : "_") + (ro ? "R" : "_") + (dt2 === 0 ? "Gr" : dt2 === 1 ? "Bl" : dt2 === 2 ? "Wh" : "") + "]", indirect ? cvte + "(" + state.cvt[cvte] + "," + cv + ")" : "", pi2, "(d =", od, "->", sign * d, ")"); + console.log(state.step, (indirect ? "MIRP[" : "MDRP[") + (setRp0 ? "M" : "m") + (keepD ? ">" : "_") + (ro ? "R" : "_") + (dt === 0 ? "Gr" : dt === 1 ? "Bl" : dt === 2 ? "Wh" : "") + "]", indirect ? cvte + "(" + state.cvt[cvte] + "," + cv + ")" : "", pi, "(d =", od, "->", sign * d, ")"); } state.rp1 = state.rp0; - state.rp2 = pi2; + state.rp2 = pi; if (setRp0) { - state.rp0 = pi2; + state.rp0 = pi; } } instructionTable = [ @@ -9032,8 +9032,8 @@ Tokenizer.prototype.tokenize = function(text) { this.dispatch("end", [this.tokens]); return this.tokens; }; -function isArabicChar(c2) { - return /[\u0600-\u065F\u066A-\u06D2\u06FA-\u06FF]/.test(c2); +function isArabicChar(c) { + return /[\u0600-\u065F\u066A-\u06D2\u06FA-\u06FF]/.test(c); } function isIsolatedArabicChar(char) { return /[\u0630\u0690\u0621\u0631\u0661\u0671\u0622\u0632\u0672\u0692\u06C2\u0623\u0673\u0693\u06C3\u0624\u0694\u06C4\u0625\u0675\u0695\u06C5\u06E5\u0676\u0696\u06C6\u0627\u0677\u0697\u06C7\u0648\u0688\u0698\u06C8\u0689\u0699\u06C9\u068A\u06CA\u066B\u068B\u06CB\u068C\u068D\u06CD\u06FD\u068E\u06EE\u06FE\u062F\u068F\u06CF\u06EF]/.test(char); @@ -9041,11 +9041,11 @@ function isIsolatedArabicChar(char) { function isTashkeelArabicChar(char) { return /[\u0600-\u0605\u060C-\u060E\u0610-\u061B\u061E\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED]/.test(char); } -function isLatinChar(c2) { - return /[A-z]/.test(c2); +function isLatinChar(c) { + return /[A-z]/.test(c); } -function isWhiteSpace(c2) { - return /\s/.test(c2); +function isWhiteSpace(c) { + return /\s/.test(c); } function FeatureQuery(font) { this.font = font; @@ -9440,8 +9440,8 @@ function arabicSentenceEndCheck(contextParams) { } if (nextIsWhitespace) { var arabicCharAhead = false; - arabicCharAhead = contextParams.lookahead.some(function(c2) { - return isArabicChar(c2) || isTashkeelArabicChar(c2); + arabicCharAhead = contextParams.lookahead.some(function(c) { + return isArabicChar(c) || isTashkeelArabicChar(c); }); if (!arabicCharAhead) { return true; @@ -9827,14 +9827,14 @@ function Font(options) { } }); } -Font.prototype.hasChar = function(c2) { - return this.encoding.charToGlyphIndex(c2) !== null; +Font.prototype.hasChar = function(c) { + return this.encoding.charToGlyphIndex(c) !== null; }; Font.prototype.charToGlyphIndex = function(s) { return this.encoding.charToGlyphIndex(s); }; -Font.prototype.charToGlyph = function(c2) { - var glyphIndex = this.charToGlyphIndex(c2); +Font.prototype.charToGlyph = function(c) { + var glyphIndex = this.charToGlyphIndex(c); var glyph = this.glyphs.get(glyphIndex); if (!glyph) { glyph = this.glyphs.get(0); @@ -9984,8 +9984,8 @@ function parseCmapTableFormat12(cmap2, p) { var startCharCode = p.parseULong(); var endCharCode = p.parseULong(); var startGlyphId = p.parseULong(); - for (var c2 = startCharCode; c2 <= endCharCode; c2 += 1) { - cmap2.glyphIndexMap[c2] = startGlyphId; + for (var c = startCharCode; c <= endCharCode; c += 1) { + cmap2.glyphIndexMap[c] = startGlyphId; startGlyphId++; } } @@ -10008,19 +10008,19 @@ function parseCmapTableFormat4(cmap2, p, data, start, offset) { var startCount = startCountParser.parseUShort(); var idDelta = idDeltaParser.parseShort(); var idRangeOffset = idRangeOffsetParser.parseUShort(); - for (var c2 = startCount; c2 <= endCount; c2 += 1) { + for (var c = startCount; c <= endCount; c += 1) { if (idRangeOffset !== 0) { glyphIndexOffset = idRangeOffsetParser.offset + idRangeOffsetParser.relativeOffset - 2; glyphIndexOffset += idRangeOffset; - glyphIndexOffset += (c2 - startCount) * 2; + glyphIndexOffset += (c - startCount) * 2; glyphIndex = parse.getUShort(data, glyphIndexOffset); if (glyphIndex !== 0) { glyphIndex = glyphIndex + idDelta & 65535; } } else { - glyphIndex = c2 + idDelta & 65535; + glyphIndex = c + idDelta & 65535; } - cmap2.glyphIndexMap[c2] = glyphIndex; + cmap2.glyphIndexMap[c] = glyphIndex; } } } @@ -11616,11 +11616,11 @@ decode.MACSTRING = function(dataView, offset, dataLength, encoding) { } var result = ""; for (var i = 0; i < dataLength; i++) { - var c2 = dataView.getUint8(offset + i); - if (c2 <= 127) { - result += String.fromCharCode(c2); + var c = dataView.getUint8(offset + i); + if (c <= 127) { + result += String.fromCharCode(c); } else { - result += table[c2 & 127]; + result += table[c & 127]; } } return result; @@ -11889,43 +11889,39 @@ var opentype = /* @__PURE__ */ Object.freeze({ }); var opentype_module_default = opentype; -// node_modules/.pnpm/satori@0.10.1/node_modules/satori/dist/index.wasm.js -var Tl = Object.create; -var Rr = Object.defineProperty; -var Al = Object.getOwnPropertyDescriptor; -var Ol = Object.getOwnPropertyNames; -var Pl = Object.getPrototypeOf; -var Il = Object.prototype.hasOwnProperty; -var Lr = (e, t) => () => (e && (t = e(e = 0)), t); -var P = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports); -var Fn = (e, t) => { +// node_modules/.pnpm/satori@0.10.3/node_modules/satori/dist/index.wasm.js +var _l = Object.create; +var Br = Object.defineProperty; +var Sl = Object.getOwnPropertyDescriptor; +var kl = Object.getOwnPropertyNames; +var Tl = Object.getPrototypeOf; +var Al = Object.prototype.hasOwnProperty; +var vn = (e, t) => () => (e && (t = e(e = 0)), t); +var T = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports); +var yn = (e, t) => { for (var n in t) - Rr(e, n, { get: t[n], enumerable: true }); + Br(e, n, { get: t[n], enumerable: true }); }; -var Yo = (e, t, n, r) => { +var Go = (e, t, n, r) => { if (t && typeof t == "object" || typeof t == "function") - for (let i of Ol(t)) - !Il.call(e, i) && i !== n && Rr(e, i, { get: () => t[i], enumerable: !(r = Al(t, i)) || r.enumerable }); + for (let i of kl(t)) + !Al.call(e, i) && i !== n && Br(e, i, { get: () => t[i], enumerable: !(r = Sl(t, i)) || r.enumerable }); return e; }; -var Bl = (e, t, n) => (n = e != null ? Tl(Pl(e)) : {}, Yo(t || !e || !e.__esModule ? Rr(n, "default", { value: e, enumerable: true }) : n, e)); -var Mr = (e) => Yo(Rr({}, "__esModule", { value: true }), e); -var c = Lr(() => { -}); -var Xo = {}; -Fn(Xo, { getYogaModule: () => Rl }); -async function Rl() { +var Ol = (e, t, n) => (n = e != null ? _l(Tl(e)) : {}, Go(t || !e || !e.__esModule ? Br(n, "default", { value: e, enumerable: true }) : n, e)); +var Ir = (e) => Go(Br({}, "__esModule", { value: true }), e); +var jo = {}; +yn(jo, { getYogaModule: () => Pl }); +async function Pl() { return {}; } -var Qo = Lr(() => { - c(); +var Ho = vn(() => { }); -var Kn = P((Qn) => { +var Xn = T((Yn) => { "use strict"; - c(); - Object.defineProperty(Qn, "__esModule", { value: true }); - Object.defineProperty(Qn, "default", { enumerable: true, get: () => Hf }); - function Hf(e) { + Object.defineProperty(Yn, "__esModule", { value: true }); + Object.defineProperty(Yn, "default", { enumerable: true, get: () => zf }); + function zf(e) { if (e = `${e}`, e === "0") return "0"; if (/^[+-]?(\d+|\d*\.\d+)(e[+-]?\d+)?(%|\w+)?$/.test(e)) @@ -11934,32 +11930,28 @@ var Kn = P((Qn) => { return `calc(${e} * -1)`; } }); -var Gu = P((Jn) => { +var Wu = T((Qn) => { "use strict"; - c(); - Object.defineProperty(Jn, "__esModule", { value: true }); - Object.defineProperty(Jn, "default", { enumerable: true, get: () => Vf }); - var Vf = ["preflight", "container", "accessibility", "pointerEvents", "visibility", "position", "inset", "isolation", "zIndex", "order", "gridColumn", "gridColumnStart", "gridColumnEnd", "gridRow", "gridRowStart", "gridRowEnd", "float", "clear", "margin", "boxSizing", "display", "aspectRatio", "height", "maxHeight", "minHeight", "width", "minWidth", "maxWidth", "flex", "flexShrink", "flexGrow", "flexBasis", "tableLayout", "borderCollapse", "borderSpacing", "transformOrigin", "translate", "rotate", "skew", "scale", "transform", "animation", "cursor", "touchAction", "userSelect", "resize", "scrollSnapType", "scrollSnapAlign", "scrollSnapStop", "scrollMargin", "scrollPadding", "listStylePosition", "listStyleType", "appearance", "columns", "breakBefore", "breakInside", "breakAfter", "gridAutoColumns", "gridAutoFlow", "gridAutoRows", "gridTemplateColumns", "gridTemplateRows", "flexDirection", "flexWrap", "placeContent", "placeItems", "alignContent", "alignItems", "justifyContent", "justifyItems", "gap", "space", "divideWidth", "divideStyle", "divideColor", "divideOpacity", "placeSelf", "alignSelf", "justifySelf", "overflow", "overscrollBehavior", "scrollBehavior", "textOverflow", "whitespace", "wordBreak", "borderRadius", "borderWidth", "borderStyle", "borderColor", "borderOpacity", "backgroundColor", "backgroundOpacity", "backgroundImage", "gradientColorStops", "boxDecorationBreak", "backgroundSize", "backgroundAttachment", "backgroundClip", "backgroundPosition", "backgroundRepeat", "backgroundOrigin", "fill", "stroke", "strokeWidth", "objectFit", "objectPosition", "padding", "textAlign", "textIndent", "verticalAlign", "fontFamily", "fontSize", "fontWeight", "textTransform", "fontStyle", "fontVariantNumeric", "lineHeight", "letterSpacing", "textColor", "textOpacity", "textDecoration", "textDecorationColor", "textDecorationStyle", "textDecorationThickness", "textUnderlineOffset", "fontSmoothing", "placeholderColor", "placeholderOpacity", "caretColor", "accentColor", "opacity", "backgroundBlendMode", "mixBlendMode", "boxShadow", "boxShadowColor", "outlineStyle", "outlineWidth", "outlineOffset", "outlineColor", "ringWidth", "ringColor", "ringOpacity", "ringOffsetWidth", "ringOffsetColor", "blur", "brightness", "contrast", "dropShadow", "grayscale", "hueRotate", "invert", "saturate", "sepia", "filter", "backdropBlur", "backdropBrightness", "backdropContrast", "backdropGrayscale", "backdropHueRotate", "backdropInvert", "backdropOpacity", "backdropSaturate", "backdropSepia", "backdropFilter", "transitionProperty", "transitionDelay", "transitionDuration", "transitionTimingFunction", "willChange", "content"]; + Object.defineProperty(Qn, "__esModule", { value: true }); + Object.defineProperty(Qn, "default", { enumerable: true, get: () => Gf }); + var Gf = ["preflight", "container", "accessibility", "pointerEvents", "visibility", "position", "inset", "isolation", "zIndex", "order", "gridColumn", "gridColumnStart", "gridColumnEnd", "gridRow", "gridRowStart", "gridRowEnd", "float", "clear", "margin", "boxSizing", "display", "aspectRatio", "height", "maxHeight", "minHeight", "width", "minWidth", "maxWidth", "flex", "flexShrink", "flexGrow", "flexBasis", "tableLayout", "borderCollapse", "borderSpacing", "transformOrigin", "translate", "rotate", "skew", "scale", "transform", "animation", "cursor", "touchAction", "userSelect", "resize", "scrollSnapType", "scrollSnapAlign", "scrollSnapStop", "scrollMargin", "scrollPadding", "listStylePosition", "listStyleType", "appearance", "columns", "breakBefore", "breakInside", "breakAfter", "gridAutoColumns", "gridAutoFlow", "gridAutoRows", "gridTemplateColumns", "gridTemplateRows", "flexDirection", "flexWrap", "placeContent", "placeItems", "alignContent", "alignItems", "justifyContent", "justifyItems", "gap", "space", "divideWidth", "divideStyle", "divideColor", "divideOpacity", "placeSelf", "alignSelf", "justifySelf", "overflow", "overscrollBehavior", "scrollBehavior", "textOverflow", "whitespace", "wordBreak", "borderRadius", "borderWidth", "borderStyle", "borderColor", "borderOpacity", "backgroundColor", "backgroundOpacity", "backgroundImage", "gradientColorStops", "boxDecorationBreak", "backgroundSize", "backgroundAttachment", "backgroundClip", "backgroundPosition", "backgroundRepeat", "backgroundOrigin", "fill", "stroke", "strokeWidth", "objectFit", "objectPosition", "padding", "textAlign", "textIndent", "verticalAlign", "fontFamily", "fontSize", "fontWeight", "textTransform", "fontStyle", "fontVariantNumeric", "lineHeight", "letterSpacing", "textColor", "textOpacity", "textDecoration", "textDecorationColor", "textDecorationStyle", "textDecorationThickness", "textUnderlineOffset", "fontSmoothing", "placeholderColor", "placeholderOpacity", "caretColor", "accentColor", "opacity", "backgroundBlendMode", "mixBlendMode", "boxShadow", "boxShadowColor", "outlineStyle", "outlineWidth", "outlineOffset", "outlineColor", "ringWidth", "ringColor", "ringOpacity", "ringOffsetWidth", "ringOffsetColor", "blur", "brightness", "contrast", "dropShadow", "grayscale", "hueRotate", "invert", "saturate", "sepia", "filter", "backdropBlur", "backdropBrightness", "backdropContrast", "backdropGrayscale", "backdropHueRotate", "backdropInvert", "backdropOpacity", "backdropSaturate", "backdropSepia", "backdropFilter", "transitionProperty", "transitionDelay", "transitionDuration", "transitionTimingFunction", "willChange", "content"]; }); -var ju = P((Zn) => { +var qu = T((Kn) => { "use strict"; - c(); - Object.defineProperty(Zn, "__esModule", { value: true }); - Object.defineProperty(Zn, "default", { enumerable: true, get: () => Yf }); - function Yf(e, t) { + Object.defineProperty(Kn, "__esModule", { value: true }); + Object.defineProperty(Kn, "default", { enumerable: true, get: () => jf }); + function jf(e, t) { return e === void 0 ? t : Array.isArray(e) ? e : [...new Set(t.filter((r) => e !== false && e[r] !== false).concat(Object.keys(e).filter((r) => e[r] !== false)))]; } }); -var ei = P((tb, Hu) => { - c(); - Hu.exports = { content: [], presets: [], darkMode: "media", theme: { screens: { sm: "640px", md: "768px", lg: "1024px", xl: "1280px", "2xl": "1536px" }, colors: ({ colors: e }) => ({ inherit: e.inherit, current: e.current, transparent: e.transparent, black: e.black, white: e.white, slate: e.slate, gray: e.gray, zinc: e.zinc, neutral: e.neutral, stone: e.stone, red: e.red, orange: e.orange, amber: e.amber, yellow: e.yellow, lime: e.lime, green: e.green, emerald: e.emerald, teal: e.teal, cyan: e.cyan, sky: e.sky, blue: e.blue, indigo: e.indigo, violet: e.violet, purple: e.purple, fuchsia: e.fuchsia, pink: e.pink, rose: e.rose }), columns: { auto: "auto", 1: "1", 2: "2", 3: "3", 4: "4", 5: "5", 6: "6", 7: "7", 8: "8", 9: "9", 10: "10", 11: "11", 12: "12", "3xs": "16rem", "2xs": "18rem", xs: "20rem", sm: "24rem", md: "28rem", lg: "32rem", xl: "36rem", "2xl": "42rem", "3xl": "48rem", "4xl": "56rem", "5xl": "64rem", "6xl": "72rem", "7xl": "80rem" }, spacing: { px: "1px", 0: "0px", 0.5: "0.125rem", 1: "0.25rem", 1.5: "0.375rem", 2: "0.5rem", 2.5: "0.625rem", 3: "0.75rem", 3.5: "0.875rem", 4: "1rem", 5: "1.25rem", 6: "1.5rem", 7: "1.75rem", 8: "2rem", 9: "2.25rem", 10: "2.5rem", 11: "2.75rem", 12: "3rem", 14: "3.5rem", 16: "4rem", 20: "5rem", 24: "6rem", 28: "7rem", 32: "8rem", 36: "9rem", 40: "10rem", 44: "11rem", 48: "12rem", 52: "13rem", 56: "14rem", 60: "15rem", 64: "16rem", 72: "18rem", 80: "20rem", 96: "24rem" }, animation: { none: "none", spin: "spin 1s linear infinite", ping: "ping 1s cubic-bezier(0, 0, 0.2, 1) infinite", pulse: "pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite", bounce: "bounce 1s infinite" }, aspectRatio: { auto: "auto", square: "1 / 1", video: "16 / 9" }, backdropBlur: ({ theme: e }) => e("blur"), backdropBrightness: ({ theme: e }) => e("brightness"), backdropContrast: ({ theme: e }) => e("contrast"), backdropGrayscale: ({ theme: e }) => e("grayscale"), backdropHueRotate: ({ theme: e }) => e("hueRotate"), backdropInvert: ({ theme: e }) => e("invert"), backdropOpacity: ({ theme: e }) => e("opacity"), backdropSaturate: ({ theme: e }) => e("saturate"), backdropSepia: ({ theme: e }) => e("sepia"), backgroundColor: ({ theme: e }) => e("colors"), backgroundImage: { none: "none", "gradient-to-t": "linear-gradient(to top, var(--tw-gradient-stops))", "gradient-to-tr": "linear-gradient(to top right, var(--tw-gradient-stops))", "gradient-to-r": "linear-gradient(to right, var(--tw-gradient-stops))", "gradient-to-br": "linear-gradient(to bottom right, var(--tw-gradient-stops))", "gradient-to-b": "linear-gradient(to bottom, var(--tw-gradient-stops))", "gradient-to-bl": "linear-gradient(to bottom left, var(--tw-gradient-stops))", "gradient-to-l": "linear-gradient(to left, var(--tw-gradient-stops))", "gradient-to-tl": "linear-gradient(to top left, var(--tw-gradient-stops))" }, backgroundOpacity: ({ theme: e }) => e("opacity"), backgroundPosition: { bottom: "bottom", center: "center", left: "left", "left-bottom": "left bottom", "left-top": "left top", right: "right", "right-bottom": "right bottom", "right-top": "right top", top: "top" }, backgroundSize: { auto: "auto", cover: "cover", contain: "contain" }, blur: { 0: "0", none: "0", sm: "4px", DEFAULT: "8px", md: "12px", lg: "16px", xl: "24px", "2xl": "40px", "3xl": "64px" }, brightness: { 0: "0", 50: ".5", 75: ".75", 90: ".9", 95: ".95", 100: "1", 105: "1.05", 110: "1.1", 125: "1.25", 150: "1.5", 200: "2" }, borderColor: ({ theme: e }) => ({ ...e("colors"), DEFAULT: e("colors.gray.200", "currentColor") }), borderOpacity: ({ theme: e }) => e("opacity"), borderRadius: { none: "0px", sm: "0.125rem", DEFAULT: "0.25rem", md: "0.375rem", lg: "0.5rem", xl: "0.75rem", "2xl": "1rem", "3xl": "1.5rem", full: "9999px" }, borderSpacing: ({ theme: e }) => ({ ...e("spacing") }), borderWidth: { DEFAULT: "1px", 0: "0px", 2: "2px", 4: "4px", 8: "8px" }, boxShadow: { sm: "0 1px 2px 0 rgb(0 0 0 / 0.05)", DEFAULT: "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)", md: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)", lg: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)", xl: "0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)", "2xl": "0 25px 50px -12px rgb(0 0 0 / 0.25)", inner: "inset 0 2px 4px 0 rgb(0 0 0 / 0.05)", none: "none" }, boxShadowColor: ({ theme: e }) => e("colors"), caretColor: ({ theme: e }) => e("colors"), accentColor: ({ theme: e }) => ({ ...e("colors"), auto: "auto" }), contrast: { 0: "0", 50: ".5", 75: ".75", 100: "1", 125: "1.25", 150: "1.5", 200: "2" }, container: {}, content: { none: "none" }, cursor: { auto: "auto", default: "default", pointer: "pointer", wait: "wait", text: "text", move: "move", help: "help", "not-allowed": "not-allowed", none: "none", "context-menu": "context-menu", progress: "progress", cell: "cell", crosshair: "crosshair", "vertical-text": "vertical-text", alias: "alias", copy: "copy", "no-drop": "no-drop", grab: "grab", grabbing: "grabbing", "all-scroll": "all-scroll", "col-resize": "col-resize", "row-resize": "row-resize", "n-resize": "n-resize", "e-resize": "e-resize", "s-resize": "s-resize", "w-resize": "w-resize", "ne-resize": "ne-resize", "nw-resize": "nw-resize", "se-resize": "se-resize", "sw-resize": "sw-resize", "ew-resize": "ew-resize", "ns-resize": "ns-resize", "nesw-resize": "nesw-resize", "nwse-resize": "nwse-resize", "zoom-in": "zoom-in", "zoom-out": "zoom-out" }, divideColor: ({ theme: e }) => e("borderColor"), divideOpacity: ({ theme: e }) => e("borderOpacity"), divideWidth: ({ theme: e }) => e("borderWidth"), dropShadow: { sm: "0 1px 1px rgb(0 0 0 / 0.05)", DEFAULT: ["0 1px 2px rgb(0 0 0 / 0.1)", "0 1px 1px rgb(0 0 0 / 0.06)"], md: ["0 4px 3px rgb(0 0 0 / 0.07)", "0 2px 2px rgb(0 0 0 / 0.06)"], lg: ["0 10px 8px rgb(0 0 0 / 0.04)", "0 4px 3px rgb(0 0 0 / 0.1)"], xl: ["0 20px 13px rgb(0 0 0 / 0.03)", "0 8px 5px rgb(0 0 0 / 0.08)"], "2xl": "0 25px 25px rgb(0 0 0 / 0.15)", none: "0 0 #0000" }, fill: ({ theme: e }) => e("colors"), grayscale: { 0: "0", DEFAULT: "100%" }, hueRotate: { 0: "0deg", 15: "15deg", 30: "30deg", 60: "60deg", 90: "90deg", 180: "180deg" }, invert: { 0: "0", DEFAULT: "100%" }, flex: { 1: "1 1 0%", auto: "1 1 auto", initial: "0 1 auto", none: "none" }, flexBasis: ({ theme: e }) => ({ auto: "auto", ...e("spacing"), "1/2": "50%", "1/3": "33.333333%", "2/3": "66.666667%", "1/4": "25%", "2/4": "50%", "3/4": "75%", "1/5": "20%", "2/5": "40%", "3/5": "60%", "4/5": "80%", "1/6": "16.666667%", "2/6": "33.333333%", "3/6": "50%", "4/6": "66.666667%", "5/6": "83.333333%", "1/12": "8.333333%", "2/12": "16.666667%", "3/12": "25%", "4/12": "33.333333%", "5/12": "41.666667%", "6/12": "50%", "7/12": "58.333333%", "8/12": "66.666667%", "9/12": "75%", "10/12": "83.333333%", "11/12": "91.666667%", full: "100%" }), flexGrow: { 0: "0", DEFAULT: "1" }, flexShrink: { 0: "0", DEFAULT: "1" }, fontFamily: { sans: ["ui-sans-serif", "system-ui", "-apple-system", "BlinkMacSystemFont", '"Segoe UI"', "Roboto", '"Helvetica Neue"', "Arial", '"Noto Sans"', "sans-serif", '"Apple Color Emoji"', '"Segoe UI Emoji"', '"Segoe UI Symbol"', '"Noto Color Emoji"'], serif: ["ui-serif", "Georgia", "Cambria", '"Times New Roman"', "Times", "serif"], mono: ["ui-monospace", "SFMono-Regular", "Menlo", "Monaco", "Consolas", '"Liberation Mono"', '"Courier New"', "monospace"] }, fontSize: { xs: ["0.75rem", { lineHeight: "1rem" }], sm: ["0.875rem", { lineHeight: "1.25rem" }], base: ["1rem", { lineHeight: "1.5rem" }], lg: ["1.125rem", { lineHeight: "1.75rem" }], xl: ["1.25rem", { lineHeight: "1.75rem" }], "2xl": ["1.5rem", { lineHeight: "2rem" }], "3xl": ["1.875rem", { lineHeight: "2.25rem" }], "4xl": ["2.25rem", { lineHeight: "2.5rem" }], "5xl": ["3rem", { lineHeight: "1" }], "6xl": ["3.75rem", { lineHeight: "1" }], "7xl": ["4.5rem", { lineHeight: "1" }], "8xl": ["6rem", { lineHeight: "1" }], "9xl": ["8rem", { lineHeight: "1" }] }, fontWeight: { thin: "100", extralight: "200", light: "300", normal: "400", medium: "500", semibold: "600", bold: "700", extrabold: "800", black: "900" }, gap: ({ theme: e }) => e("spacing"), gradientColorStops: ({ theme: e }) => e("colors"), gridAutoColumns: { auto: "auto", min: "min-content", max: "max-content", fr: "minmax(0, 1fr)" }, gridAutoRows: { auto: "auto", min: "min-content", max: "max-content", fr: "minmax(0, 1fr)" }, gridColumn: { auto: "auto", "span-1": "span 1 / span 1", "span-2": "span 2 / span 2", "span-3": "span 3 / span 3", "span-4": "span 4 / span 4", "span-5": "span 5 / span 5", "span-6": "span 6 / span 6", "span-7": "span 7 / span 7", "span-8": "span 8 / span 8", "span-9": "span 9 / span 9", "span-10": "span 10 / span 10", "span-11": "span 11 / span 11", "span-12": "span 12 / span 12", "span-full": "1 / -1" }, gridColumnEnd: { auto: "auto", 1: "1", 2: "2", 3: "3", 4: "4", 5: "5", 6: "6", 7: "7", 8: "8", 9: "9", 10: "10", 11: "11", 12: "12", 13: "13" }, gridColumnStart: { auto: "auto", 1: "1", 2: "2", 3: "3", 4: "4", 5: "5", 6: "6", 7: "7", 8: "8", 9: "9", 10: "10", 11: "11", 12: "12", 13: "13" }, gridRow: { auto: "auto", "span-1": "span 1 / span 1", "span-2": "span 2 / span 2", "span-3": "span 3 / span 3", "span-4": "span 4 / span 4", "span-5": "span 5 / span 5", "span-6": "span 6 / span 6", "span-full": "1 / -1" }, gridRowStart: { auto: "auto", 1: "1", 2: "2", 3: "3", 4: "4", 5: "5", 6: "6", 7: "7" }, gridRowEnd: { auto: "auto", 1: "1", 2: "2", 3: "3", 4: "4", 5: "5", 6: "6", 7: "7" }, gridTemplateColumns: { none: "none", 1: "repeat(1, minmax(0, 1fr))", 2: "repeat(2, minmax(0, 1fr))", 3: "repeat(3, minmax(0, 1fr))", 4: "repeat(4, minmax(0, 1fr))", 5: "repeat(5, minmax(0, 1fr))", 6: "repeat(6, minmax(0, 1fr))", 7: "repeat(7, minmax(0, 1fr))", 8: "repeat(8, minmax(0, 1fr))", 9: "repeat(9, minmax(0, 1fr))", 10: "repeat(10, minmax(0, 1fr))", 11: "repeat(11, minmax(0, 1fr))", 12: "repeat(12, minmax(0, 1fr))" }, gridTemplateRows: { none: "none", 1: "repeat(1, minmax(0, 1fr))", 2: "repeat(2, minmax(0, 1fr))", 3: "repeat(3, minmax(0, 1fr))", 4: "repeat(4, minmax(0, 1fr))", 5: "repeat(5, minmax(0, 1fr))", 6: "repeat(6, minmax(0, 1fr))" }, height: ({ theme: e }) => ({ auto: "auto", ...e("spacing"), "1/2": "50%", "1/3": "33.333333%", "2/3": "66.666667%", "1/4": "25%", "2/4": "50%", "3/4": "75%", "1/5": "20%", "2/5": "40%", "3/5": "60%", "4/5": "80%", "1/6": "16.666667%", "2/6": "33.333333%", "3/6": "50%", "4/6": "66.666667%", "5/6": "83.333333%", full: "100%", screen: "100vh", min: "min-content", max: "max-content", fit: "fit-content" }), inset: ({ theme: e }) => ({ auto: "auto", ...e("spacing"), "1/2": "50%", "1/3": "33.333333%", "2/3": "66.666667%", "1/4": "25%", "2/4": "50%", "3/4": "75%", full: "100%" }), keyframes: { spin: { to: { transform: "rotate(360deg)" } }, ping: { "75%, 100%": { transform: "scale(2)", opacity: "0" } }, pulse: { "50%": { opacity: ".5" } }, bounce: { "0%, 100%": { transform: "translateY(-25%)", animationTimingFunction: "cubic-bezier(0.8,0,1,1)" }, "50%": { transform: "none", animationTimingFunction: "cubic-bezier(0,0,0.2,1)" } } }, letterSpacing: { tighter: "-0.05em", tight: "-0.025em", normal: "0em", wide: "0.025em", wider: "0.05em", widest: "0.1em" }, lineHeight: { none: "1", tight: "1.25", snug: "1.375", normal: "1.5", relaxed: "1.625", loose: "2", 3: ".75rem", 4: "1rem", 5: "1.25rem", 6: "1.5rem", 7: "1.75rem", 8: "2rem", 9: "2.25rem", 10: "2.5rem" }, listStyleType: { none: "none", disc: "disc", decimal: "decimal" }, margin: ({ theme: e }) => ({ auto: "auto", ...e("spacing") }), maxHeight: ({ theme: e }) => ({ ...e("spacing"), full: "100%", screen: "100vh", min: "min-content", max: "max-content", fit: "fit-content" }), maxWidth: ({ theme: e, breakpoints: t }) => ({ none: "none", 0: "0rem", xs: "20rem", sm: "24rem", md: "28rem", lg: "32rem", xl: "36rem", "2xl": "42rem", "3xl": "48rem", "4xl": "56rem", "5xl": "64rem", "6xl": "72rem", "7xl": "80rem", full: "100%", min: "min-content", max: "max-content", fit: "fit-content", prose: "65ch", ...t(e("screens")) }), minHeight: { 0: "0px", full: "100%", screen: "100vh", min: "min-content", max: "max-content", fit: "fit-content" }, minWidth: { 0: "0px", full: "100%", min: "min-content", max: "max-content", fit: "fit-content" }, objectPosition: { bottom: "bottom", center: "center", left: "left", "left-bottom": "left bottom", "left-top": "left top", right: "right", "right-bottom": "right bottom", "right-top": "right top", top: "top" }, opacity: { 0: "0", 5: "0.05", 10: "0.1", 20: "0.2", 25: "0.25", 30: "0.3", 40: "0.4", 50: "0.5", 60: "0.6", 70: "0.7", 75: "0.75", 80: "0.8", 90: "0.9", 95: "0.95", 100: "1" }, order: { first: "-9999", last: "9999", none: "0", 1: "1", 2: "2", 3: "3", 4: "4", 5: "5", 6: "6", 7: "7", 8: "8", 9: "9", 10: "10", 11: "11", 12: "12" }, padding: ({ theme: e }) => e("spacing"), placeholderColor: ({ theme: e }) => e("colors"), placeholderOpacity: ({ theme: e }) => e("opacity"), outlineColor: ({ theme: e }) => e("colors"), outlineOffset: { 0: "0px", 1: "1px", 2: "2px", 4: "4px", 8: "8px" }, outlineWidth: { 0: "0px", 1: "1px", 2: "2px", 4: "4px", 8: "8px" }, ringColor: ({ theme: e }) => ({ DEFAULT: e("colors.blue.500", "#3b82f6"), ...e("colors") }), ringOffsetColor: ({ theme: e }) => e("colors"), ringOffsetWidth: { 0: "0px", 1: "1px", 2: "2px", 4: "4px", 8: "8px" }, ringOpacity: ({ theme: e }) => ({ DEFAULT: "0.5", ...e("opacity") }), ringWidth: { DEFAULT: "3px", 0: "0px", 1: "1px", 2: "2px", 4: "4px", 8: "8px" }, rotate: { 0: "0deg", 1: "1deg", 2: "2deg", 3: "3deg", 6: "6deg", 12: "12deg", 45: "45deg", 90: "90deg", 180: "180deg" }, saturate: { 0: "0", 50: ".5", 100: "1", 150: "1.5", 200: "2" }, scale: { 0: "0", 50: ".5", 75: ".75", 90: ".9", 95: ".95", 100: "1", 105: "1.05", 110: "1.1", 125: "1.25", 150: "1.5" }, scrollMargin: ({ theme: e }) => ({ ...e("spacing") }), scrollPadding: ({ theme: e }) => e("spacing"), sepia: { 0: "0", DEFAULT: "100%" }, skew: { 0: "0deg", 1: "1deg", 2: "2deg", 3: "3deg", 6: "6deg", 12: "12deg" }, space: ({ theme: e }) => ({ ...e("spacing") }), stroke: ({ theme: e }) => e("colors"), strokeWidth: { 0: "0", 1: "1", 2: "2" }, textColor: ({ theme: e }) => e("colors"), textDecorationColor: ({ theme: e }) => e("colors"), textDecorationThickness: { auto: "auto", "from-font": "from-font", 0: "0px", 1: "1px", 2: "2px", 4: "4px", 8: "8px" }, textUnderlineOffset: { auto: "auto", 0: "0px", 1: "1px", 2: "2px", 4: "4px", 8: "8px" }, textIndent: ({ theme: e }) => ({ ...e("spacing") }), textOpacity: ({ theme: e }) => e("opacity"), transformOrigin: { center: "center", top: "top", "top-right": "top right", right: "right", "bottom-right": "bottom right", bottom: "bottom", "bottom-left": "bottom left", left: "left", "top-left": "top left" }, transitionDelay: { 75: "75ms", 100: "100ms", 150: "150ms", 200: "200ms", 300: "300ms", 500: "500ms", 700: "700ms", 1e3: "1000ms" }, transitionDuration: { DEFAULT: "150ms", 75: "75ms", 100: "100ms", 150: "150ms", 200: "200ms", 300: "300ms", 500: "500ms", 700: "700ms", 1e3: "1000ms" }, transitionProperty: { none: "none", all: "all", DEFAULT: "color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter", colors: "color, background-color, border-color, text-decoration-color, fill, stroke", opacity: "opacity", shadow: "box-shadow", transform: "transform" }, transitionTimingFunction: { DEFAULT: "cubic-bezier(0.4, 0, 0.2, 1)", linear: "linear", in: "cubic-bezier(0.4, 0, 1, 1)", out: "cubic-bezier(0, 0, 0.2, 1)", "in-out": "cubic-bezier(0.4, 0, 0.2, 1)" }, translate: ({ theme: e }) => ({ ...e("spacing"), "1/2": "50%", "1/3": "33.333333%", "2/3": "66.666667%", "1/4": "25%", "2/4": "50%", "3/4": "75%", full: "100%" }), width: ({ theme: e }) => ({ auto: "auto", ...e("spacing"), "1/2": "50%", "1/3": "33.333333%", "2/3": "66.666667%", "1/4": "25%", "2/4": "50%", "3/4": "75%", "1/5": "20%", "2/5": "40%", "3/5": "60%", "4/5": "80%", "1/6": "16.666667%", "2/6": "33.333333%", "3/6": "50%", "4/6": "66.666667%", "5/6": "83.333333%", "1/12": "8.333333%", "2/12": "16.666667%", "3/12": "25%", "4/12": "33.333333%", "5/12": "41.666667%", "6/12": "50%", "7/12": "58.333333%", "8/12": "66.666667%", "9/12": "75%", "10/12": "83.333333%", "11/12": "91.666667%", full: "100%", screen: "100vw", min: "min-content", max: "max-content", fit: "fit-content" }), willChange: { auto: "auto", scroll: "scroll-position", contents: "contents", transform: "transform" }, zIndex: { auto: "auto", 0: "0", 10: "10", 20: "20", 30: "30", 40: "40", 50: "50" } }, variantOrder: ["first", "last", "odd", "even", "visited", "checked", "empty", "read-only", "group-hover", "group-focus", "focus-within", "hover", "focus", "focus-visible", "active", "disabled"], plugins: [] }; +var Jn = T((Kg, Uu) => { + Uu.exports = { content: [], presets: [], darkMode: "media", theme: { screens: { sm: "640px", md: "768px", lg: "1024px", xl: "1280px", "2xl": "1536px" }, colors: ({ colors: e }) => ({ inherit: e.inherit, current: e.current, transparent: e.transparent, black: e.black, white: e.white, slate: e.slate, gray: e.gray, zinc: e.zinc, neutral: e.neutral, stone: e.stone, red: e.red, orange: e.orange, amber: e.amber, yellow: e.yellow, lime: e.lime, green: e.green, emerald: e.emerald, teal: e.teal, cyan: e.cyan, sky: e.sky, blue: e.blue, indigo: e.indigo, violet: e.violet, purple: e.purple, fuchsia: e.fuchsia, pink: e.pink, rose: e.rose }), columns: { auto: "auto", 1: "1", 2: "2", 3: "3", 4: "4", 5: "5", 6: "6", 7: "7", 8: "8", 9: "9", 10: "10", 11: "11", 12: "12", "3xs": "16rem", "2xs": "18rem", xs: "20rem", sm: "24rem", md: "28rem", lg: "32rem", xl: "36rem", "2xl": "42rem", "3xl": "48rem", "4xl": "56rem", "5xl": "64rem", "6xl": "72rem", "7xl": "80rem" }, spacing: { px: "1px", 0: "0px", 0.5: "0.125rem", 1: "0.25rem", 1.5: "0.375rem", 2: "0.5rem", 2.5: "0.625rem", 3: "0.75rem", 3.5: "0.875rem", 4: "1rem", 5: "1.25rem", 6: "1.5rem", 7: "1.75rem", 8: "2rem", 9: "2.25rem", 10: "2.5rem", 11: "2.75rem", 12: "3rem", 14: "3.5rem", 16: "4rem", 20: "5rem", 24: "6rem", 28: "7rem", 32: "8rem", 36: "9rem", 40: "10rem", 44: "11rem", 48: "12rem", 52: "13rem", 56: "14rem", 60: "15rem", 64: "16rem", 72: "18rem", 80: "20rem", 96: "24rem" }, animation: { none: "none", spin: "spin 1s linear infinite", ping: "ping 1s cubic-bezier(0, 0, 0.2, 1) infinite", pulse: "pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite", bounce: "bounce 1s infinite" }, aspectRatio: { auto: "auto", square: "1 / 1", video: "16 / 9" }, backdropBlur: ({ theme: e }) => e("blur"), backdropBrightness: ({ theme: e }) => e("brightness"), backdropContrast: ({ theme: e }) => e("contrast"), backdropGrayscale: ({ theme: e }) => e("grayscale"), backdropHueRotate: ({ theme: e }) => e("hueRotate"), backdropInvert: ({ theme: e }) => e("invert"), backdropOpacity: ({ theme: e }) => e("opacity"), backdropSaturate: ({ theme: e }) => e("saturate"), backdropSepia: ({ theme: e }) => e("sepia"), backgroundColor: ({ theme: e }) => e("colors"), backgroundImage: { none: "none", "gradient-to-t": "linear-gradient(to top, var(--tw-gradient-stops))", "gradient-to-tr": "linear-gradient(to top right, var(--tw-gradient-stops))", "gradient-to-r": "linear-gradient(to right, var(--tw-gradient-stops))", "gradient-to-br": "linear-gradient(to bottom right, var(--tw-gradient-stops))", "gradient-to-b": "linear-gradient(to bottom, var(--tw-gradient-stops))", "gradient-to-bl": "linear-gradient(to bottom left, var(--tw-gradient-stops))", "gradient-to-l": "linear-gradient(to left, var(--tw-gradient-stops))", "gradient-to-tl": "linear-gradient(to top left, var(--tw-gradient-stops))" }, backgroundOpacity: ({ theme: e }) => e("opacity"), backgroundPosition: { bottom: "bottom", center: "center", left: "left", "left-bottom": "left bottom", "left-top": "left top", right: "right", "right-bottom": "right bottom", "right-top": "right top", top: "top" }, backgroundSize: { auto: "auto", cover: "cover", contain: "contain" }, blur: { 0: "0", none: "0", sm: "4px", DEFAULT: "8px", md: "12px", lg: "16px", xl: "24px", "2xl": "40px", "3xl": "64px" }, brightness: { 0: "0", 50: ".5", 75: ".75", 90: ".9", 95: ".95", 100: "1", 105: "1.05", 110: "1.1", 125: "1.25", 150: "1.5", 200: "2" }, borderColor: ({ theme: e }) => ({ ...e("colors"), DEFAULT: e("colors.gray.200", "currentColor") }), borderOpacity: ({ theme: e }) => e("opacity"), borderRadius: { none: "0px", sm: "0.125rem", DEFAULT: "0.25rem", md: "0.375rem", lg: "0.5rem", xl: "0.75rem", "2xl": "1rem", "3xl": "1.5rem", full: "9999px" }, borderSpacing: ({ theme: e }) => ({ ...e("spacing") }), borderWidth: { DEFAULT: "1px", 0: "0px", 2: "2px", 4: "4px", 8: "8px" }, boxShadow: { sm: "0 1px 2px 0 rgb(0 0 0 / 0.05)", DEFAULT: "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)", md: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)", lg: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)", xl: "0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)", "2xl": "0 25px 50px -12px rgb(0 0 0 / 0.25)", inner: "inset 0 2px 4px 0 rgb(0 0 0 / 0.05)", none: "none" }, boxShadowColor: ({ theme: e }) => e("colors"), caretColor: ({ theme: e }) => e("colors"), accentColor: ({ theme: e }) => ({ ...e("colors"), auto: "auto" }), contrast: { 0: "0", 50: ".5", 75: ".75", 100: "1", 125: "1.25", 150: "1.5", 200: "2" }, container: {}, content: { none: "none" }, cursor: { auto: "auto", default: "default", pointer: "pointer", wait: "wait", text: "text", move: "move", help: "help", "not-allowed": "not-allowed", none: "none", "context-menu": "context-menu", progress: "progress", cell: "cell", crosshair: "crosshair", "vertical-text": "vertical-text", alias: "alias", copy: "copy", "no-drop": "no-drop", grab: "grab", grabbing: "grabbing", "all-scroll": "all-scroll", "col-resize": "col-resize", "row-resize": "row-resize", "n-resize": "n-resize", "e-resize": "e-resize", "s-resize": "s-resize", "w-resize": "w-resize", "ne-resize": "ne-resize", "nw-resize": "nw-resize", "se-resize": "se-resize", "sw-resize": "sw-resize", "ew-resize": "ew-resize", "ns-resize": "ns-resize", "nesw-resize": "nesw-resize", "nwse-resize": "nwse-resize", "zoom-in": "zoom-in", "zoom-out": "zoom-out" }, divideColor: ({ theme: e }) => e("borderColor"), divideOpacity: ({ theme: e }) => e("borderOpacity"), divideWidth: ({ theme: e }) => e("borderWidth"), dropShadow: { sm: "0 1px 1px rgb(0 0 0 / 0.05)", DEFAULT: ["0 1px 2px rgb(0 0 0 / 0.1)", "0 1px 1px rgb(0 0 0 / 0.06)"], md: ["0 4px 3px rgb(0 0 0 / 0.07)", "0 2px 2px rgb(0 0 0 / 0.06)"], lg: ["0 10px 8px rgb(0 0 0 / 0.04)", "0 4px 3px rgb(0 0 0 / 0.1)"], xl: ["0 20px 13px rgb(0 0 0 / 0.03)", "0 8px 5px rgb(0 0 0 / 0.08)"], "2xl": "0 25px 25px rgb(0 0 0 / 0.15)", none: "0 0 #0000" }, fill: ({ theme: e }) => e("colors"), grayscale: { 0: "0", DEFAULT: "100%" }, hueRotate: { 0: "0deg", 15: "15deg", 30: "30deg", 60: "60deg", 90: "90deg", 180: "180deg" }, invert: { 0: "0", DEFAULT: "100%" }, flex: { 1: "1 1 0%", auto: "1 1 auto", initial: "0 1 auto", none: "none" }, flexBasis: ({ theme: e }) => ({ auto: "auto", ...e("spacing"), "1/2": "50%", "1/3": "33.333333%", "2/3": "66.666667%", "1/4": "25%", "2/4": "50%", "3/4": "75%", "1/5": "20%", "2/5": "40%", "3/5": "60%", "4/5": "80%", "1/6": "16.666667%", "2/6": "33.333333%", "3/6": "50%", "4/6": "66.666667%", "5/6": "83.333333%", "1/12": "8.333333%", "2/12": "16.666667%", "3/12": "25%", "4/12": "33.333333%", "5/12": "41.666667%", "6/12": "50%", "7/12": "58.333333%", "8/12": "66.666667%", "9/12": "75%", "10/12": "83.333333%", "11/12": "91.666667%", full: "100%" }), flexGrow: { 0: "0", DEFAULT: "1" }, flexShrink: { 0: "0", DEFAULT: "1" }, fontFamily: { sans: ["ui-sans-serif", "system-ui", "-apple-system", "BlinkMacSystemFont", '"Segoe UI"', "Roboto", '"Helvetica Neue"', "Arial", '"Noto Sans"', "sans-serif", '"Apple Color Emoji"', '"Segoe UI Emoji"', '"Segoe UI Symbol"', '"Noto Color Emoji"'], serif: ["ui-serif", "Georgia", "Cambria", '"Times New Roman"', "Times", "serif"], mono: ["ui-monospace", "SFMono-Regular", "Menlo", "Monaco", "Consolas", '"Liberation Mono"', '"Courier New"', "monospace"] }, fontSize: { xs: ["0.75rem", { lineHeight: "1rem" }], sm: ["0.875rem", { lineHeight: "1.25rem" }], base: ["1rem", { lineHeight: "1.5rem" }], lg: ["1.125rem", { lineHeight: "1.75rem" }], xl: ["1.25rem", { lineHeight: "1.75rem" }], "2xl": ["1.5rem", { lineHeight: "2rem" }], "3xl": ["1.875rem", { lineHeight: "2.25rem" }], "4xl": ["2.25rem", { lineHeight: "2.5rem" }], "5xl": ["3rem", { lineHeight: "1" }], "6xl": ["3.75rem", { lineHeight: "1" }], "7xl": ["4.5rem", { lineHeight: "1" }], "8xl": ["6rem", { lineHeight: "1" }], "9xl": ["8rem", { lineHeight: "1" }] }, fontWeight: { thin: "100", extralight: "200", light: "300", normal: "400", medium: "500", semibold: "600", bold: "700", extrabold: "800", black: "900" }, gap: ({ theme: e }) => e("spacing"), gradientColorStops: ({ theme: e }) => e("colors"), gridAutoColumns: { auto: "auto", min: "min-content", max: "max-content", fr: "minmax(0, 1fr)" }, gridAutoRows: { auto: "auto", min: "min-content", max: "max-content", fr: "minmax(0, 1fr)" }, gridColumn: { auto: "auto", "span-1": "span 1 / span 1", "span-2": "span 2 / span 2", "span-3": "span 3 / span 3", "span-4": "span 4 / span 4", "span-5": "span 5 / span 5", "span-6": "span 6 / span 6", "span-7": "span 7 / span 7", "span-8": "span 8 / span 8", "span-9": "span 9 / span 9", "span-10": "span 10 / span 10", "span-11": "span 11 / span 11", "span-12": "span 12 / span 12", "span-full": "1 / -1" }, gridColumnEnd: { auto: "auto", 1: "1", 2: "2", 3: "3", 4: "4", 5: "5", 6: "6", 7: "7", 8: "8", 9: "9", 10: "10", 11: "11", 12: "12", 13: "13" }, gridColumnStart: { auto: "auto", 1: "1", 2: "2", 3: "3", 4: "4", 5: "5", 6: "6", 7: "7", 8: "8", 9: "9", 10: "10", 11: "11", 12: "12", 13: "13" }, gridRow: { auto: "auto", "span-1": "span 1 / span 1", "span-2": "span 2 / span 2", "span-3": "span 3 / span 3", "span-4": "span 4 / span 4", "span-5": "span 5 / span 5", "span-6": "span 6 / span 6", "span-full": "1 / -1" }, gridRowStart: { auto: "auto", 1: "1", 2: "2", 3: "3", 4: "4", 5: "5", 6: "6", 7: "7" }, gridRowEnd: { auto: "auto", 1: "1", 2: "2", 3: "3", 4: "4", 5: "5", 6: "6", 7: "7" }, gridTemplateColumns: { none: "none", 1: "repeat(1, minmax(0, 1fr))", 2: "repeat(2, minmax(0, 1fr))", 3: "repeat(3, minmax(0, 1fr))", 4: "repeat(4, minmax(0, 1fr))", 5: "repeat(5, minmax(0, 1fr))", 6: "repeat(6, minmax(0, 1fr))", 7: "repeat(7, minmax(0, 1fr))", 8: "repeat(8, minmax(0, 1fr))", 9: "repeat(9, minmax(0, 1fr))", 10: "repeat(10, minmax(0, 1fr))", 11: "repeat(11, minmax(0, 1fr))", 12: "repeat(12, minmax(0, 1fr))" }, gridTemplateRows: { none: "none", 1: "repeat(1, minmax(0, 1fr))", 2: "repeat(2, minmax(0, 1fr))", 3: "repeat(3, minmax(0, 1fr))", 4: "repeat(4, minmax(0, 1fr))", 5: "repeat(5, minmax(0, 1fr))", 6: "repeat(6, minmax(0, 1fr))" }, height: ({ theme: e }) => ({ auto: "auto", ...e("spacing"), "1/2": "50%", "1/3": "33.333333%", "2/3": "66.666667%", "1/4": "25%", "2/4": "50%", "3/4": "75%", "1/5": "20%", "2/5": "40%", "3/5": "60%", "4/5": "80%", "1/6": "16.666667%", "2/6": "33.333333%", "3/6": "50%", "4/6": "66.666667%", "5/6": "83.333333%", full: "100%", screen: "100vh", min: "min-content", max: "max-content", fit: "fit-content" }), inset: ({ theme: e }) => ({ auto: "auto", ...e("spacing"), "1/2": "50%", "1/3": "33.333333%", "2/3": "66.666667%", "1/4": "25%", "2/4": "50%", "3/4": "75%", full: "100%" }), keyframes: { spin: { to: { transform: "rotate(360deg)" } }, ping: { "75%, 100%": { transform: "scale(2)", opacity: "0" } }, pulse: { "50%": { opacity: ".5" } }, bounce: { "0%, 100%": { transform: "translateY(-25%)", animationTimingFunction: "cubic-bezier(0.8,0,1,1)" }, "50%": { transform: "none", animationTimingFunction: "cubic-bezier(0,0,0.2,1)" } } }, letterSpacing: { tighter: "-0.05em", tight: "-0.025em", normal: "0em", wide: "0.025em", wider: "0.05em", widest: "0.1em" }, lineHeight: { none: "1", tight: "1.25", snug: "1.375", normal: "1.5", relaxed: "1.625", loose: "2", 3: ".75rem", 4: "1rem", 5: "1.25rem", 6: "1.5rem", 7: "1.75rem", 8: "2rem", 9: "2.25rem", 10: "2.5rem" }, listStyleType: { none: "none", disc: "disc", decimal: "decimal" }, margin: ({ theme: e }) => ({ auto: "auto", ...e("spacing") }), maxHeight: ({ theme: e }) => ({ ...e("spacing"), full: "100%", screen: "100vh", min: "min-content", max: "max-content", fit: "fit-content" }), maxWidth: ({ theme: e, breakpoints: t }) => ({ none: "none", 0: "0rem", xs: "20rem", sm: "24rem", md: "28rem", lg: "32rem", xl: "36rem", "2xl": "42rem", "3xl": "48rem", "4xl": "56rem", "5xl": "64rem", "6xl": "72rem", "7xl": "80rem", full: "100%", min: "min-content", max: "max-content", fit: "fit-content", prose: "65ch", ...t(e("screens")) }), minHeight: { 0: "0px", full: "100%", screen: "100vh", min: "min-content", max: "max-content", fit: "fit-content" }, minWidth: { 0: "0px", full: "100%", min: "min-content", max: "max-content", fit: "fit-content" }, objectPosition: { bottom: "bottom", center: "center", left: "left", "left-bottom": "left bottom", "left-top": "left top", right: "right", "right-bottom": "right bottom", "right-top": "right top", top: "top" }, opacity: { 0: "0", 5: "0.05", 10: "0.1", 20: "0.2", 25: "0.25", 30: "0.3", 40: "0.4", 50: "0.5", 60: "0.6", 70: "0.7", 75: "0.75", 80: "0.8", 90: "0.9", 95: "0.95", 100: "1" }, order: { first: "-9999", last: "9999", none: "0", 1: "1", 2: "2", 3: "3", 4: "4", 5: "5", 6: "6", 7: "7", 8: "8", 9: "9", 10: "10", 11: "11", 12: "12" }, padding: ({ theme: e }) => e("spacing"), placeholderColor: ({ theme: e }) => e("colors"), placeholderOpacity: ({ theme: e }) => e("opacity"), outlineColor: ({ theme: e }) => e("colors"), outlineOffset: { 0: "0px", 1: "1px", 2: "2px", 4: "4px", 8: "8px" }, outlineWidth: { 0: "0px", 1: "1px", 2: "2px", 4: "4px", 8: "8px" }, ringColor: ({ theme: e }) => ({ DEFAULT: e("colors.blue.500", "#3b82f6"), ...e("colors") }), ringOffsetColor: ({ theme: e }) => e("colors"), ringOffsetWidth: { 0: "0px", 1: "1px", 2: "2px", 4: "4px", 8: "8px" }, ringOpacity: ({ theme: e }) => ({ DEFAULT: "0.5", ...e("opacity") }), ringWidth: { DEFAULT: "3px", 0: "0px", 1: "1px", 2: "2px", 4: "4px", 8: "8px" }, rotate: { 0: "0deg", 1: "1deg", 2: "2deg", 3: "3deg", 6: "6deg", 12: "12deg", 45: "45deg", 90: "90deg", 180: "180deg" }, saturate: { 0: "0", 50: ".5", 100: "1", 150: "1.5", 200: "2" }, scale: { 0: "0", 50: ".5", 75: ".75", 90: ".9", 95: ".95", 100: "1", 105: "1.05", 110: "1.1", 125: "1.25", 150: "1.5" }, scrollMargin: ({ theme: e }) => ({ ...e("spacing") }), scrollPadding: ({ theme: e }) => e("spacing"), sepia: { 0: "0", DEFAULT: "100%" }, skew: { 0: "0deg", 1: "1deg", 2: "2deg", 3: "3deg", 6: "6deg", 12: "12deg" }, space: ({ theme: e }) => ({ ...e("spacing") }), stroke: ({ theme: e }) => e("colors"), strokeWidth: { 0: "0", 1: "1", 2: "2" }, textColor: ({ theme: e }) => e("colors"), textDecorationColor: ({ theme: e }) => e("colors"), textDecorationThickness: { auto: "auto", "from-font": "from-font", 0: "0px", 1: "1px", 2: "2px", 4: "4px", 8: "8px" }, textUnderlineOffset: { auto: "auto", 0: "0px", 1: "1px", 2: "2px", 4: "4px", 8: "8px" }, textIndent: ({ theme: e }) => ({ ...e("spacing") }), textOpacity: ({ theme: e }) => e("opacity"), transformOrigin: { center: "center", top: "top", "top-right": "top right", right: "right", "bottom-right": "bottom right", bottom: "bottom", "bottom-left": "bottom left", left: "left", "top-left": "top left" }, transitionDelay: { 75: "75ms", 100: "100ms", 150: "150ms", 200: "200ms", 300: "300ms", 500: "500ms", 700: "700ms", 1e3: "1000ms" }, transitionDuration: { DEFAULT: "150ms", 75: "75ms", 100: "100ms", 150: "150ms", 200: "200ms", 300: "300ms", 500: "500ms", 700: "700ms", 1e3: "1000ms" }, transitionProperty: { none: "none", all: "all", DEFAULT: "color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter", colors: "color, background-color, border-color, text-decoration-color, fill, stroke", opacity: "opacity", shadow: "box-shadow", transform: "transform" }, transitionTimingFunction: { DEFAULT: "cubic-bezier(0.4, 0, 0.2, 1)", linear: "linear", in: "cubic-bezier(0.4, 0, 1, 1)", out: "cubic-bezier(0, 0, 0.2, 1)", "in-out": "cubic-bezier(0.4, 0, 0.2, 1)" }, translate: ({ theme: e }) => ({ ...e("spacing"), "1/2": "50%", "1/3": "33.333333%", "2/3": "66.666667%", "1/4": "25%", "2/4": "50%", "3/4": "75%", full: "100%" }), width: ({ theme: e }) => ({ auto: "auto", ...e("spacing"), "1/2": "50%", "1/3": "33.333333%", "2/3": "66.666667%", "1/4": "25%", "2/4": "50%", "3/4": "75%", "1/5": "20%", "2/5": "40%", "3/5": "60%", "4/5": "80%", "1/6": "16.666667%", "2/6": "33.333333%", "3/6": "50%", "4/6": "66.666667%", "5/6": "83.333333%", "1/12": "8.333333%", "2/12": "16.666667%", "3/12": "25%", "4/12": "33.333333%", "5/12": "41.666667%", "6/12": "50%", "7/12": "58.333333%", "8/12": "66.666667%", "9/12": "75%", "10/12": "83.333333%", "11/12": "91.666667%", full: "100%", screen: "100vw", min: "min-content", max: "max-content", fit: "fit-content" }), willChange: { auto: "auto", scroll: "scroll-position", contents: "contents", transform: "transform" }, zIndex: { auto: "auto", 0: "0", 10: "10", 20: "20", 30: "30", 40: "40", 50: "50" } }, variantOrder: ["first", "last", "odd", "even", "visited", "checked", "empty", "read-only", "group-hover", "group-focus", "focus-within", "hover", "focus", "focus-visible", "active", "disabled"], plugins: [] }; }); -var Jr = {}; -Fn(Jr, { default: () => Xf }); -var Xf; -var Zr = Lr(() => { - c(); - Xf = { info(e, t) { +var Xr = {}; +yn(Xr, { default: () => Hf }); +var Hf; +var Qr = vn(() => { + Hf = { info(e, t) { console.info(...Array.isArray(e) ? [e] : [t, e]); }, warn(e, t) { console.warn(...Array.isArray(e) ? [e] : [t, e]); @@ -11967,36 +11959,34 @@ var Zr = Lr(() => { console.error(...Array.isArray(e) ? [e] : [t, e]); } }; }); -var Vu = P((ti) => { +var zu = T((Zn) => { "use strict"; - c(); - Object.defineProperty(ti, "__esModule", { value: true }); - Object.defineProperty(ti, "default", { enumerable: true, get: () => Jf }); - var Qf = Kf((Zr(), Mr(Jr))); - function Kf(e) { + Object.defineProperty(Zn, "__esModule", { value: true }); + Object.defineProperty(Zn, "default", { enumerable: true, get: () => Xf }); + var Vf = Yf((Qr(), Ir(Xr))); + function Yf(e) { return e && e.__esModule ? e : { default: e }; } - function Vt({ version: e, from: t, to: n }) { - Qf.default.warn(`${t}-color-renamed`, [`As of Tailwind CSS ${e}, \`${t}\` has been renamed to \`${n}\`.`, "Update your configuration file to silence this warning."]); + function Ht({ version: e, from: t, to: n }) { + Vf.default.warn(`${t}-color-renamed`, [`As of Tailwind CSS ${e}, \`${t}\` has been renamed to \`${n}\`.`, "Update your configuration file to silence this warning."]); } - var Jf = { inherit: "inherit", current: "currentColor", transparent: "transparent", black: "#000", white: "#fff", slate: { 50: "#f8fafc", 100: "#f1f5f9", 200: "#e2e8f0", 300: "#cbd5e1", 400: "#94a3b8", 500: "#64748b", 600: "#475569", 700: "#334155", 800: "#1e293b", 900: "#0f172a" }, gray: { 50: "#f9fafb", 100: "#f3f4f6", 200: "#e5e7eb", 300: "#d1d5db", 400: "#9ca3af", 500: "#6b7280", 600: "#4b5563", 700: "#374151", 800: "#1f2937", 900: "#111827" }, zinc: { 50: "#fafafa", 100: "#f4f4f5", 200: "#e4e4e7", 300: "#d4d4d8", 400: "#a1a1aa", 500: "#71717a", 600: "#52525b", 700: "#3f3f46", 800: "#27272a", 900: "#18181b" }, neutral: { 50: "#fafafa", 100: "#f5f5f5", 200: "#e5e5e5", 300: "#d4d4d4", 400: "#a3a3a3", 500: "#737373", 600: "#525252", 700: "#404040", 800: "#262626", 900: "#171717" }, stone: { 50: "#fafaf9", 100: "#f5f5f4", 200: "#e7e5e4", 300: "#d6d3d1", 400: "#a8a29e", 500: "#78716c", 600: "#57534e", 700: "#44403c", 800: "#292524", 900: "#1c1917" }, red: { 50: "#fef2f2", 100: "#fee2e2", 200: "#fecaca", 300: "#fca5a5", 400: "#f87171", 500: "#ef4444", 600: "#dc2626", 700: "#b91c1c", 800: "#991b1b", 900: "#7f1d1d" }, orange: { 50: "#fff7ed", 100: "#ffedd5", 200: "#fed7aa", 300: "#fdba74", 400: "#fb923c", 500: "#f97316", 600: "#ea580c", 700: "#c2410c", 800: "#9a3412", 900: "#7c2d12" }, amber: { 50: "#fffbeb", 100: "#fef3c7", 200: "#fde68a", 300: "#fcd34d", 400: "#fbbf24", 500: "#f59e0b", 600: "#d97706", 700: "#b45309", 800: "#92400e", 900: "#78350f" }, yellow: { 50: "#fefce8", 100: "#fef9c3", 200: "#fef08a", 300: "#fde047", 400: "#facc15", 500: "#eab308", 600: "#ca8a04", 700: "#a16207", 800: "#854d0e", 900: "#713f12" }, lime: { 50: "#f7fee7", 100: "#ecfccb", 200: "#d9f99d", 300: "#bef264", 400: "#a3e635", 500: "#84cc16", 600: "#65a30d", 700: "#4d7c0f", 800: "#3f6212", 900: "#365314" }, green: { 50: "#f0fdf4", 100: "#dcfce7", 200: "#bbf7d0", 300: "#86efac", 400: "#4ade80", 500: "#22c55e", 600: "#16a34a", 700: "#15803d", 800: "#166534", 900: "#14532d" }, emerald: { 50: "#ecfdf5", 100: "#d1fae5", 200: "#a7f3d0", 300: "#6ee7b7", 400: "#34d399", 500: "#10b981", 600: "#059669", 700: "#047857", 800: "#065f46", 900: "#064e3b" }, teal: { 50: "#f0fdfa", 100: "#ccfbf1", 200: "#99f6e4", 300: "#5eead4", 400: "#2dd4bf", 500: "#14b8a6", 600: "#0d9488", 700: "#0f766e", 800: "#115e59", 900: "#134e4a" }, cyan: { 50: "#ecfeff", 100: "#cffafe", 200: "#a5f3fc", 300: "#67e8f9", 400: "#22d3ee", 500: "#06b6d4", 600: "#0891b2", 700: "#0e7490", 800: "#155e75", 900: "#164e63" }, sky: { 50: "#f0f9ff", 100: "#e0f2fe", 200: "#bae6fd", 300: "#7dd3fc", 400: "#38bdf8", 500: "#0ea5e9", 600: "#0284c7", 700: "#0369a1", 800: "#075985", 900: "#0c4a6e" }, blue: { 50: "#eff6ff", 100: "#dbeafe", 200: "#bfdbfe", 300: "#93c5fd", 400: "#60a5fa", 500: "#3b82f6", 600: "#2563eb", 700: "#1d4ed8", 800: "#1e40af", 900: "#1e3a8a" }, indigo: { 50: "#eef2ff", 100: "#e0e7ff", 200: "#c7d2fe", 300: "#a5b4fc", 400: "#818cf8", 500: "#6366f1", 600: "#4f46e5", 700: "#4338ca", 800: "#3730a3", 900: "#312e81" }, violet: { 50: "#f5f3ff", 100: "#ede9fe", 200: "#ddd6fe", 300: "#c4b5fd", 400: "#a78bfa", 500: "#8b5cf6", 600: "#7c3aed", 700: "#6d28d9", 800: "#5b21b6", 900: "#4c1d95" }, purple: { 50: "#faf5ff", 100: "#f3e8ff", 200: "#e9d5ff", 300: "#d8b4fe", 400: "#c084fc", 500: "#a855f7", 600: "#9333ea", 700: "#7e22ce", 800: "#6b21a8", 900: "#581c87" }, fuchsia: { 50: "#fdf4ff", 100: "#fae8ff", 200: "#f5d0fe", 300: "#f0abfc", 400: "#e879f9", 500: "#d946ef", 600: "#c026d3", 700: "#a21caf", 800: "#86198f", 900: "#701a75" }, pink: { 50: "#fdf2f8", 100: "#fce7f3", 200: "#fbcfe8", 300: "#f9a8d4", 400: "#f472b6", 500: "#ec4899", 600: "#db2777", 700: "#be185d", 800: "#9d174d", 900: "#831843" }, rose: { 50: "#fff1f2", 100: "#ffe4e6", 200: "#fecdd3", 300: "#fda4af", 400: "#fb7185", 500: "#f43f5e", 600: "#e11d48", 700: "#be123c", 800: "#9f1239", 900: "#881337" }, get lightBlue() { - return Vt({ version: "v2.2", from: "lightBlue", to: "sky" }), this.sky; + var Xf = { inherit: "inherit", current: "currentColor", transparent: "transparent", black: "#000", white: "#fff", slate: { 50: "#f8fafc", 100: "#f1f5f9", 200: "#e2e8f0", 300: "#cbd5e1", 400: "#94a3b8", 500: "#64748b", 600: "#475569", 700: "#334155", 800: "#1e293b", 900: "#0f172a" }, gray: { 50: "#f9fafb", 100: "#f3f4f6", 200: "#e5e7eb", 300: "#d1d5db", 400: "#9ca3af", 500: "#6b7280", 600: "#4b5563", 700: "#374151", 800: "#1f2937", 900: "#111827" }, zinc: { 50: "#fafafa", 100: "#f4f4f5", 200: "#e4e4e7", 300: "#d4d4d8", 400: "#a1a1aa", 500: "#71717a", 600: "#52525b", 700: "#3f3f46", 800: "#27272a", 900: "#18181b" }, neutral: { 50: "#fafafa", 100: "#f5f5f5", 200: "#e5e5e5", 300: "#d4d4d4", 400: "#a3a3a3", 500: "#737373", 600: "#525252", 700: "#404040", 800: "#262626", 900: "#171717" }, stone: { 50: "#fafaf9", 100: "#f5f5f4", 200: "#e7e5e4", 300: "#d6d3d1", 400: "#a8a29e", 500: "#78716c", 600: "#57534e", 700: "#44403c", 800: "#292524", 900: "#1c1917" }, red: { 50: "#fef2f2", 100: "#fee2e2", 200: "#fecaca", 300: "#fca5a5", 400: "#f87171", 500: "#ef4444", 600: "#dc2626", 700: "#b91c1c", 800: "#991b1b", 900: "#7f1d1d" }, orange: { 50: "#fff7ed", 100: "#ffedd5", 200: "#fed7aa", 300: "#fdba74", 400: "#fb923c", 500: "#f97316", 600: "#ea580c", 700: "#c2410c", 800: "#9a3412", 900: "#7c2d12" }, amber: { 50: "#fffbeb", 100: "#fef3c7", 200: "#fde68a", 300: "#fcd34d", 400: "#fbbf24", 500: "#f59e0b", 600: "#d97706", 700: "#b45309", 800: "#92400e", 900: "#78350f" }, yellow: { 50: "#fefce8", 100: "#fef9c3", 200: "#fef08a", 300: "#fde047", 400: "#facc15", 500: "#eab308", 600: "#ca8a04", 700: "#a16207", 800: "#854d0e", 900: "#713f12" }, lime: { 50: "#f7fee7", 100: "#ecfccb", 200: "#d9f99d", 300: "#bef264", 400: "#a3e635", 500: "#84cc16", 600: "#65a30d", 700: "#4d7c0f", 800: "#3f6212", 900: "#365314" }, green: { 50: "#f0fdf4", 100: "#dcfce7", 200: "#bbf7d0", 300: "#86efac", 400: "#4ade80", 500: "#22c55e", 600: "#16a34a", 700: "#15803d", 800: "#166534", 900: "#14532d" }, emerald: { 50: "#ecfdf5", 100: "#d1fae5", 200: "#a7f3d0", 300: "#6ee7b7", 400: "#34d399", 500: "#10b981", 600: "#059669", 700: "#047857", 800: "#065f46", 900: "#064e3b" }, teal: { 50: "#f0fdfa", 100: "#ccfbf1", 200: "#99f6e4", 300: "#5eead4", 400: "#2dd4bf", 500: "#14b8a6", 600: "#0d9488", 700: "#0f766e", 800: "#115e59", 900: "#134e4a" }, cyan: { 50: "#ecfeff", 100: "#cffafe", 200: "#a5f3fc", 300: "#67e8f9", 400: "#22d3ee", 500: "#06b6d4", 600: "#0891b2", 700: "#0e7490", 800: "#155e75", 900: "#164e63" }, sky: { 50: "#f0f9ff", 100: "#e0f2fe", 200: "#bae6fd", 300: "#7dd3fc", 400: "#38bdf8", 500: "#0ea5e9", 600: "#0284c7", 700: "#0369a1", 800: "#075985", 900: "#0c4a6e" }, blue: { 50: "#eff6ff", 100: "#dbeafe", 200: "#bfdbfe", 300: "#93c5fd", 400: "#60a5fa", 500: "#3b82f6", 600: "#2563eb", 700: "#1d4ed8", 800: "#1e40af", 900: "#1e3a8a" }, indigo: { 50: "#eef2ff", 100: "#e0e7ff", 200: "#c7d2fe", 300: "#a5b4fc", 400: "#818cf8", 500: "#6366f1", 600: "#4f46e5", 700: "#4338ca", 800: "#3730a3", 900: "#312e81" }, violet: { 50: "#f5f3ff", 100: "#ede9fe", 200: "#ddd6fe", 300: "#c4b5fd", 400: "#a78bfa", 500: "#8b5cf6", 600: "#7c3aed", 700: "#6d28d9", 800: "#5b21b6", 900: "#4c1d95" }, purple: { 50: "#faf5ff", 100: "#f3e8ff", 200: "#e9d5ff", 300: "#d8b4fe", 400: "#c084fc", 500: "#a855f7", 600: "#9333ea", 700: "#7e22ce", 800: "#6b21a8", 900: "#581c87" }, fuchsia: { 50: "#fdf4ff", 100: "#fae8ff", 200: "#f5d0fe", 300: "#f0abfc", 400: "#e879f9", 500: "#d946ef", 600: "#c026d3", 700: "#a21caf", 800: "#86198f", 900: "#701a75" }, pink: { 50: "#fdf2f8", 100: "#fce7f3", 200: "#fbcfe8", 300: "#f9a8d4", 400: "#f472b6", 500: "#ec4899", 600: "#db2777", 700: "#be185d", 800: "#9d174d", 900: "#831843" }, rose: { 50: "#fff1f2", 100: "#ffe4e6", 200: "#fecdd3", 300: "#fda4af", 400: "#fb7185", 500: "#f43f5e", 600: "#e11d48", 700: "#be123c", 800: "#9f1239", 900: "#881337" }, get lightBlue() { + return Ht({ version: "v2.2", from: "lightBlue", to: "sky" }), this.sky; }, get warmGray() { - return Vt({ version: "v3.0", from: "warmGray", to: "stone" }), this.stone; + return Ht({ version: "v3.0", from: "warmGray", to: "stone" }), this.stone; }, get trueGray() { - return Vt({ version: "v3.0", from: "trueGray", to: "neutral" }), this.neutral; + return Ht({ version: "v3.0", from: "trueGray", to: "neutral" }), this.neutral; }, get coolGray() { - return Vt({ version: "v3.0", from: "coolGray", to: "gray" }), this.gray; + return Ht({ version: "v3.0", from: "coolGray", to: "gray" }), this.gray; }, get blueGray() { - return Vt({ version: "v3.0", from: "blueGray", to: "slate" }), this.slate; + return Ht({ version: "v3.0", from: "blueGray", to: "slate" }), this.slate; } }; }); -var Yu = P((ri) => { +var Gu = T((ei) => { "use strict"; - c(); - Object.defineProperty(ri, "__esModule", { value: true }); - Object.defineProperty(ri, "defaults", { enumerable: true, get: () => Zf }); - function Zf(e, ...t) { + Object.defineProperty(ei, "__esModule", { value: true }); + Object.defineProperty(ei, "defaults", { enumerable: true, get: () => Qf }); + function Qf(e, ...t) { for (let i of t) { for (let o in i) { var n; @@ -12010,12 +12000,11 @@ var Yu = P((ri) => { return e; } }); -var Xu = P((ni) => { +var ju = T((ti) => { "use strict"; - c(); - Object.defineProperty(ni, "__esModule", { value: true }); - Object.defineProperty(ni, "toPath", { enumerable: true, get: () => ec2 }); - function ec2(e) { + Object.defineProperty(ti, "__esModule", { value: true }); + Object.defineProperty(ti, "toPath", { enumerable: true, get: () => Kf }); + function Kf(e) { if (Array.isArray(e)) return e; let t = e.split("[").length - 1, n = e.split("]").length - 1; @@ -12024,26 +12013,25 @@ var Xu = P((ni) => { return e.split(/\.(?![^\[]*\])|[\[\]]/g).filter(Boolean); } }); -var Ku = P((ii) => { +var Vu = T((ri) => { "use strict"; - c(); - Object.defineProperty(ii, "__esModule", { value: true }); - Object.defineProperty(ii, "normalizeConfig", { enumerable: true, get: () => rc }); - var Yt = tc((Zr(), Mr(Jr))); - function Qu(e) { + Object.defineProperty(ri, "__esModule", { value: true }); + Object.defineProperty(ri, "normalizeConfig", { enumerable: true, get: () => Zf }); + var Vt = Jf((Qr(), Ir(Xr))); + function Hu(e) { if (typeof WeakMap != "function") return null; var t = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap(); - return (Qu = function(r) { + return (Hu = function(r) { return r ? n : t; })(e); } - function tc(e, t) { + function Jf(e, t) { if (!t && e && e.__esModule) return e; if (e === null || typeof e != "object" && typeof e != "function") return { default: e }; - var n = Qu(t); + var n = Hu(t); if (n && n.has(e)) return n.get(e); var r = {}, i = Object.defineProperty && Object.getOwnPropertyDescriptor; @@ -12054,17 +12042,17 @@ var Ku = P((ii) => { } return r.default = e, n && n.set(e, r), r; } - function rc(e) { + function Zf(e) { if ((() => { if (e.purge || !e.content || !Array.isArray(e.content) && !(typeof e.content == "object" && e.content !== null)) return false; if (Array.isArray(e.content)) - return e.content.every((r) => typeof r == "string" ? true : !(typeof (r == null ? void 0 : r.raw) != "string" || (r == null ? void 0 : r.extension) && typeof (r == null ? void 0 : r.extension) != "string")); + return e.content.every((r) => typeof r == "string" ? true : !(typeof (r == null ? void 0 : r.raw) != "string" || r != null && r.extension && typeof (r == null ? void 0 : r.extension) != "string")); if (typeof e.content == "object" && e.content !== null) { if (Object.keys(e.content).some((r) => !["files", "extract", "transform"].includes(r))) return false; if (Array.isArray(e.content.files)) { - if (!e.content.files.every((r) => typeof r == "string" ? true : !(typeof (r == null ? void 0 : r.raw) != "string" || (r == null ? void 0 : r.extension) && typeof (r == null ? void 0 : r.extension) != "string"))) + if (!e.content.files.every((r) => typeof r == "string" ? true : !(typeof (r == null ? void 0 : r.raw) != "string" || r != null && r.extension && typeof (r == null ? void 0 : r.extension) != "string"))) return false; if (typeof e.content.extract == "object") { for (let r of Object.values(e.content.extract)) @@ -12082,12 +12070,12 @@ var Ku = P((ii) => { return true; } return false; - })() || Yt.default.warn("purge-deprecation", ["The `purge`/`content` options have changed in Tailwind CSS v3.0.", "Update your configuration file to eliminate this warning.", "https://tailwindcss.com/docs/upgrade-guide#configure-content-sources"]), e.safelist = (() => { + })() || Vt.default.warn("purge-deprecation", ["The `purge`/`content` options have changed in Tailwind CSS v3.0.", "Update your configuration file to eliminate this warning.", "https://tailwindcss.com/docs/upgrade-guide#configure-content-sources"]), e.safelist = (() => { var r; let { content: i, purge: o, safelist: u } = e; return Array.isArray(u) ? u : Array.isArray(i == null ? void 0 : i.safelist) ? i.safelist : Array.isArray(o == null ? void 0 : o.safelist) ? o.safelist : Array.isArray(o == null || (r = o.options) === null || r === void 0 ? void 0 : r.safelist) ? o.options.safelist : []; })(), typeof e.prefix == "function") - Yt.default.warn("prefix-function", ["As of Tailwind CSS v3.0, `prefix` cannot be a function.", "Update `prefix` in your configuration to be a string to eliminate this warning.", "https://tailwindcss.com/docs/upgrade-guide#prefix-cannot-be-a-function"]), e.prefix = ""; + Vt.default.warn("prefix-function", ["As of Tailwind CSS v3.0, `prefix` cannot be a function.", "Update `prefix` in your configuration to be a string to eliminate this warning.", "https://tailwindcss.com/docs/upgrade-guide#prefix-cannot-be-a-function"]), e.prefix = ""; else { var n; e.prefix = (n = e.prefix) !== null && n !== void 0 ? n : ""; @@ -12097,8 +12085,8 @@ var Ku = P((ii) => { return Array.isArray(i) ? i : Array.isArray(i == null ? void 0 : i.content) ? i.content : Array.isArray(r) ? r : Array.isArray(r == null ? void 0 : r.content) ? r.content : Array.isArray(r == null ? void 0 : r.files) ? r.files : []; })(), extract: (() => { let r = (() => { - var u, s, a, l, f, d, h, m, p, D; - return !((u = e.purge) === null || u === void 0) && u.extract ? e.purge.extract : !((s = e.content) === null || s === void 0) && s.extract ? e.content.extract : !((a = e.purge) === null || a === void 0 || (l = a.extract) === null || l === void 0) && l.DEFAULT ? e.purge.extract.DEFAULT : !((f = e.content) === null || f === void 0 || (d = f.extract) === null || d === void 0) && d.DEFAULT ? e.content.extract.DEFAULT : !((h = e.purge) === null || h === void 0 || (m = h.options) === null || m === void 0) && m.extractors ? e.purge.options.extractors : !((p = e.content) === null || p === void 0 || (D = p.options) === null || D === void 0) && D.extractors ? e.content.options.extractors : {}; + var u, s, a, l, f, c, p, h, d, m; + return !((u = e.purge) === null || u === void 0) && u.extract ? e.purge.extract : !((s = e.content) === null || s === void 0) && s.extract ? e.content.extract : !((a = e.purge) === null || a === void 0 || (l = a.extract) === null || l === void 0) && l.DEFAULT ? e.purge.extract.DEFAULT : !((f = e.content) === null || f === void 0 || (c = f.extract) === null || c === void 0) && c.DEFAULT ? e.content.extract.DEFAULT : !((p = e.purge) === null || p === void 0 || (h = p.options) === null || h === void 0) && h.extractors ? e.purge.options.extractors : !((d = e.content) === null || d === void 0 || (m = d.options) === null || m === void 0) && m.extractors ? e.content.options.extractors : {}; })(), i = {}, o = (() => { var u, s, a, l; if (!((u = e.purge) === null || u === void 0 || (s = u.options) === null || s === void 0) && s.defaultExtractor) @@ -12124,39 +12112,36 @@ var Ku = P((ii) => { })() }; for (let r of e.content.files) if (typeof r == "string" && /{([^,]*?)}/g.test(r)) { - Yt.default.warn("invalid-glob-braces", [`The glob pattern ${(0, Yt.dim)(r)} in your Tailwind CSS configuration is invalid.`, `Update it to ${(0, Yt.dim)(r.replace(/{([^,]*?)}/g, "$1"))} to silence this warning.`]); + Vt.default.warn("invalid-glob-braces", [`The glob pattern ${(0, Vt.dim)(r)} in your Tailwind CSS configuration is invalid.`, `Update it to ${(0, Vt.dim)(r.replace(/{([^,]*?)}/g, "$1"))} to silence this warning.`]); break; } return e; } }); -var Ju = P((oi) => { +var Yu = T((ni) => { "use strict"; - c(); - Object.defineProperty(oi, "__esModule", { value: true }); - Object.defineProperty(oi, "default", { enumerable: true, get: () => nc }); - function nc(e) { + Object.defineProperty(ni, "__esModule", { value: true }); + Object.defineProperty(ni, "default", { enumerable: true, get: () => ec2 }); + function ec2(e) { if (Object.prototype.toString.call(e) !== "[object Object]") return false; let t = Object.getPrototypeOf(e); return t === null || t === Object.prototype; } }); -var Zu = P((si) => { +var Xu = T((oi) => { "use strict"; - c(); - Object.defineProperty(si, "__esModule", { value: true }); - Object.defineProperty(si, "cloneDeep", { enumerable: true, get: () => ui }); - function ui(e) { - return Array.isArray(e) ? e.map((t) => ui(t)) : typeof e == "object" && e !== null ? Object.fromEntries(Object.entries(e).map(([t, n]) => [t, ui(n)])) : e; + Object.defineProperty(oi, "__esModule", { value: true }); + Object.defineProperty(oi, "cloneDeep", { enumerable: true, get: () => ii }); + function ii(e) { + return Array.isArray(e) ? e.map((t) => ii(t)) : typeof e == "object" && e !== null ? Object.fromEntries(Object.entries(e).map(([t, n]) => [t, ii(n)])) : e; } }); -var ai = P((en, es) => { +var ui = T((Kr, Qu) => { "use strict"; - c(); - en.__esModule = true; - en.default = uc; - function ic(e) { + Kr.__esModule = true; + Kr.default = nc; + function tc(e) { for (var t = e.toLowerCase(), n = "", r = false, i = 0; i < 6 && t[i] !== void 0; i++) { var o = t.charCodeAt(i), u = o >= 97 && o <= 102 || o >= 48 && o <= 57; if (r = o === 32, !u) @@ -12168,14 +12153,14 @@ var ai = P((en, es) => { return a || s === 0 || s > 1114111 ? ["\uFFFD", n.length + (r ? 1 : 0)] : [String.fromCodePoint(s), n.length + (r ? 1 : 0)]; } } - var oc = /\\/; - function uc(e) { - var t = oc.test(e); + var rc = /\\/; + function nc(e) { + var t = rc.test(e); if (!t) return e; for (var n = "", r = 0; r < e.length; r++) { if (e[r] === "\\") { - var i = ic(e.slice(r + 1, r + 7)); + var i = tc(e.slice(r + 1, r + 7)); if (i !== void 0) { n += i[0], r += i[1]; continue; @@ -12191,14 +12176,13 @@ var ai = P((en, es) => { } return n; } - es.exports = en.default; + Qu.exports = Kr.default; }); -var rs = P((tn, ts) => { +var Ju = T((Jr, Ku) => { "use strict"; - c(); - tn.__esModule = true; - tn.default = sc; - function sc(e) { + Jr.__esModule = true; + Jr.default = ic; + function ic(e) { for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r]; for (; n.length > 0; ) { @@ -12209,14 +12193,13 @@ var rs = P((tn, ts) => { } return e; } - ts.exports = tn.default; + Ku.exports = Jr.default; }); -var is = P((rn, ns) => { +var es = T((Zr, Zu) => { "use strict"; - c(); - rn.__esModule = true; - rn.default = ac; - function ac(e) { + Zr.__esModule = true; + Zr.default = oc; + function oc(e) { for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r]; for (; n.length > 0; ) { @@ -12224,14 +12207,13 @@ var is = P((rn, ns) => { e[i] || (e[i] = {}), e = e[i]; } } - ns.exports = rn.default; + Zu.exports = Zr.default; }); -var us = P((nn, os) => { +var rs = T((en, ts) => { "use strict"; - c(); - nn.__esModule = true; - nn.default = lc; - function lc(e) { + en.__esModule = true; + en.default = uc; + function uc(e) { for (var t = "", n = e.indexOf("/*"), r = 0; n >= 0; ) { t = t + e.slice(r, n); var i = e.indexOf("*/", n + 2); @@ -12241,53 +12223,51 @@ var us = P((nn, os) => { } return t = t + e.slice(r), t; } - os.exports = nn.default; + ts.exports = en.default; }); -var Xt = P((We) => { +var Yt = T((Le) => { "use strict"; - c(); - We.__esModule = true; - We.stripComments = We.ensureObject = We.getProp = We.unesc = void 0; - var fc = on(ai()); - We.unesc = fc.default; - var cc = on(rs()); - We.getProp = cc.default; - var dc = on(is()); - We.ensureObject = dc.default; - var pc = on(us()); - We.stripComments = pc.default; - function on(e) { + Le.__esModule = true; + Le.stripComments = Le.ensureObject = Le.getProp = Le.unesc = void 0; + var sc = tn(ui()); + Le.unesc = sc.default; + var ac = tn(Ju()); + Le.getProp = ac.default; + var lc = tn(es()); + Le.ensureObject = lc.default; + var fc = tn(rs()); + Le.stripComments = fc.default; + function tn(e) { return e && e.__esModule ? e : { default: e }; } }); -var je = P((Qt, ls) => { +var Ue = T((Xt, os) => { "use strict"; - c(); - Qt.__esModule = true; - Qt.default = void 0; - var ss = Xt(); - function as(e, t) { + Xt.__esModule = true; + Xt.default = void 0; + var ns = Yt(); + function is(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; r.enumerable = r.enumerable || false, r.configurable = true, "value" in r && (r.writable = true), Object.defineProperty(e, r.key, r); } } - function hc(e, t, n) { - return t && as(e.prototype, t), n && as(e, n), e; + function cc(e, t, n) { + return t && is(e.prototype, t), n && is(e, n), e; } - var mc = function e(t, n) { + var dc = function e(t, n) { if (typeof t != "object" || t === null) return t; var r = new t.constructor(); for (var i in t) - if (!!t.hasOwnProperty(i)) { + if (t.hasOwnProperty(i)) { var o = t[i], u = typeof o; i === "parent" && u === "object" ? n && (r[i] = n) : o instanceof Array ? r[i] = o.map(function(s) { return e(s, r); }) : r[i] = e(o, r); } return r; - }, Dc = function() { + }, pc = function() { function e(n) { n === void 0 && (n = {}), Object.assign(this, n), this.spaces = this.spaces || {}, this.spaces.before = this.spaces.before || "", this.spaces.after = this.spaces.after || ""; } @@ -12307,7 +12287,7 @@ var je = P((Qt, ls) => { return this.parent.at(this.parent.index(this) - 1); }, t.clone = function(r) { r === void 0 && (r = {}); - var i = mc(this); + var i = dc(this); for (var o in r) i[o] = r[o]; return i; @@ -12328,71 +12308,69 @@ var je = P((Qt, ls) => { return String(this.stringifyProperty("value")); }, t.toString = function() { return [this.rawSpaceBefore, this.valueToString(), this.rawSpaceAfter].join(""); - }, hc(e, [{ key: "rawSpaceBefore", get: function() { + }, cc(e, [{ key: "rawSpaceBefore", get: function() { var r = this.raws && this.raws.spaces && this.raws.spaces.before; return r === void 0 && (r = this.spaces && this.spaces.before), r || ""; }, set: function(r) { - (0, ss.ensureObject)(this, "raws", "spaces"), this.raws.spaces.before = r; + (0, ns.ensureObject)(this, "raws", "spaces"), this.raws.spaces.before = r; } }, { key: "rawSpaceAfter", get: function() { var r = this.raws && this.raws.spaces && this.raws.spaces.after; return r === void 0 && (r = this.spaces.after), r || ""; }, set: function(r) { - (0, ss.ensureObject)(this, "raws", "spaces"), this.raws.spaces.after = r; + (0, ns.ensureObject)(this, "raws", "spaces"), this.raws.spaces.after = r; } }]), e; }(); - Qt.default = Dc; - ls.exports = Qt.default; + Xt.default = pc; + os.exports = Xt.default; }); -var ge = P((ee) => { +var pe = T((K) => { "use strict"; - c(); - ee.__esModule = true; - ee.UNIVERSAL = ee.ATTRIBUTE = ee.CLASS = ee.COMBINATOR = ee.COMMENT = ee.ID = ee.NESTING = ee.PSEUDO = ee.ROOT = ee.SELECTOR = ee.STRING = ee.TAG = void 0; - var gc = "tag"; - ee.TAG = gc; - var bc = "string"; - ee.STRING = bc; - var vc = "selector"; - ee.SELECTOR = vc; - var yc = "root"; - ee.ROOT = yc; - var xc = "pseudo"; - ee.PSEUDO = xc; - var Fc = "nesting"; - ee.NESTING = Fc; - var wc = "id"; - ee.ID = wc; - var Ec = "comment"; - ee.COMMENT = Ec; - var Cc = "combinator"; - ee.COMBINATOR = Cc; - var _c = "class"; - ee.CLASS = _c; - var Sc = "attribute"; - ee.ATTRIBUTE = Sc; - var kc = "universal"; - ee.UNIVERSAL = kc; + K.__esModule = true; + K.UNIVERSAL = K.ATTRIBUTE = K.CLASS = K.COMBINATOR = K.COMMENT = K.ID = K.NESTING = K.PSEUDO = K.ROOT = K.SELECTOR = K.STRING = K.TAG = void 0; + var hc = "tag"; + K.TAG = hc; + var mc = "string"; + K.STRING = mc; + var Dc = "selector"; + K.SELECTOR = Dc; + var gc = "root"; + K.ROOT = gc; + var bc = "pseudo"; + K.PSEUDO = bc; + var vc = "nesting"; + K.NESTING = vc; + var yc = "id"; + K.ID = yc; + var xc = "comment"; + K.COMMENT = xc; + var Fc = "combinator"; + K.COMBINATOR = Fc; + var wc = "class"; + K.CLASS = wc; + var Ec = "attribute"; + K.ATTRIBUTE = Ec; + var Cc = "universal"; + K.UNIVERSAL = Cc; }); -var un = P((Kt, ps) => { +var rn = T((Qt, ls) => { "use strict"; - c(); - Kt.__esModule = true; - Kt.default = void 0; - var Tc = Oc(je()), He = Ac(ge()); - function ds() { + Qt.__esModule = true; + Qt.default = void 0; + var _c = kc(Ue()), ze = Sc(pe()); + function as() { if (typeof WeakMap != "function") return null; var e = /* @__PURE__ */ new WeakMap(); - return ds = function() { + return as = function() { return e; }, e; } - function Ac(e) { + function Sc(e) { if (e && e.__esModule) return e; if (e === null || typeof e != "object" && typeof e != "function") return { default: e }; - var t = ds(); + var t = as(); if (t && t.has(e)) return t.get(e); var n = {}, r = Object.defineProperty && Object.getOwnPropertyDescriptor; @@ -12403,13 +12381,13 @@ var un = P((Kt, ps) => { } return n.default = e, t && t.set(e, n), n; } - function Oc(e) { + function kc(e) { return e && e.__esModule ? e : { default: e }; } - function Pc(e, t) { + function Tc(e, t) { var n; if (typeof Symbol > "u" || e[Symbol.iterator] == null) { - if (Array.isArray(e) || (n = Ic(e)) || t && e && typeof e.length == "number") { + if (Array.isArray(e) || (n = Ac(e)) || t && e && typeof e.length == "number") { n && (e = n); var r = 0; return function() { @@ -12421,42 +12399,42 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } return n = e[Symbol.iterator](), n.next.bind(n); } - function Ic(e, t) { - if (!!e) { + function Ac(e, t) { + if (e) { if (typeof e == "string") - return fs2(e, t); + return us(e, t); var n = Object.prototype.toString.call(e).slice(8, -1); if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) - return fs2(e, t); + return us(e, t); } } - function fs2(e, t) { + function us(e, t) { (t == null || t > e.length) && (t = e.length); for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]; return r; } - function cs(e, t) { + function ss(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; r.enumerable = r.enumerable || false, r.configurable = true, "value" in r && (r.writable = true), Object.defineProperty(e, r.key, r); } } - function Bc(e, t, n) { - return t && cs(e.prototype, t), n && cs(e, n), e; + function Oc(e, t, n) { + return t && ss(e.prototype, t), n && ss(e, n), e; } - function Rc(e, t) { - e.prototype = Object.create(t.prototype), e.prototype.constructor = e, li(e, t); + function Pc(e, t) { + e.prototype = Object.create(t.prototype), e.prototype.constructor = e, si(e, t); } - function li(e, t) { - return li = Object.setPrototypeOf || function(r, i) { + function si(e, t) { + return si = Object.setPrototypeOf || function(r, i) { return r.__proto__ = i, r; - }, li(e, t); + }, si(e, t); } - var Lc = function(e) { - Rc(t, e); + var Bc = function(e) { + Pc(t, e); function t(r) { var i; return i = e.call(this, r) || this, i.nodes || (i.nodes = []), i; @@ -12477,7 +12455,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho o = this.indexes[u], o >= i && (this.indexes[u] = o - 1); return this; }, n.removeAll = function() { - for (var i = Pc(this.nodes), o; !(o = i()).done; ) { + for (var i = Tc(this.nodes), o; !(o = i()).done; ) { var u = o.value; u.parent = void 0; } @@ -12533,55 +12511,55 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, n.walkAttributes = function(i) { var o = this; return this.walk(function(u) { - if (u.type === He.ATTRIBUTE) + if (u.type === ze.ATTRIBUTE) return i.call(o, u); }); }, n.walkClasses = function(i) { var o = this; return this.walk(function(u) { - if (u.type === He.CLASS) + if (u.type === ze.CLASS) return i.call(o, u); }); }, n.walkCombinators = function(i) { var o = this; return this.walk(function(u) { - if (u.type === He.COMBINATOR) + if (u.type === ze.COMBINATOR) return i.call(o, u); }); }, n.walkComments = function(i) { var o = this; return this.walk(function(u) { - if (u.type === He.COMMENT) + if (u.type === ze.COMMENT) return i.call(o, u); }); }, n.walkIds = function(i) { var o = this; return this.walk(function(u) { - if (u.type === He.ID) + if (u.type === ze.ID) return i.call(o, u); }); }, n.walkNesting = function(i) { var o = this; return this.walk(function(u) { - if (u.type === He.NESTING) + if (u.type === ze.NESTING) return i.call(o, u); }); }, n.walkPseudos = function(i) { var o = this; return this.walk(function(u) { - if (u.type === He.PSEUDO) + if (u.type === ze.PSEUDO) return i.call(o, u); }); }, n.walkTags = function(i) { var o = this; return this.walk(function(u) { - if (u.type === He.TAG) + if (u.type === ze.TAG) return i.call(o, u); }); }, n.walkUniversals = function(i) { var o = this; return this.walk(function(u) { - if (u.type === He.UNIVERSAL) + if (u.type === ze.UNIVERSAL) return i.call(o, u); }); }, n.split = function(i) { @@ -12604,48 +12582,47 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return this.nodes.sort(i); }, n.toString = function() { return this.map(String).join(""); - }, Bc(t, [{ key: "first", get: function() { + }, Oc(t, [{ key: "first", get: function() { return this.at(0); } }, { key: "last", get: function() { return this.at(this.length - 1); } }, { key: "length", get: function() { return this.nodes.length; } }]), t; - }(Tc.default); - Kt.default = Lc; - ps.exports = Kt.default; + }(_c.default); + Qt.default = Bc; + ls.exports = Qt.default; }); -var ci = P((Jt, ms) => { +var li = T((Kt, cs) => { "use strict"; - c(); - Jt.__esModule = true; - Jt.default = void 0; - var Mc = $c(un()), Nc = ge(); - function $c(e) { + Kt.__esModule = true; + Kt.default = void 0; + var Ic = Lc(rn()), Rc = pe(); + function Lc(e) { return e && e.__esModule ? e : { default: e }; } - function hs(e, t) { + function fs2(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; r.enumerable = r.enumerable || false, r.configurable = true, "value" in r && (r.writable = true), Object.defineProperty(e, r.key, r); } } - function Wc(e, t, n) { - return t && hs(e.prototype, t), n && hs(e, n), e; + function Mc(e, t, n) { + return t && fs2(e.prototype, t), n && fs2(e, n), e; } - function qc(e, t) { - e.prototype = Object.create(t.prototype), e.prototype.constructor = e, fi(e, t); + function Nc(e, t) { + e.prototype = Object.create(t.prototype), e.prototype.constructor = e, ai(e, t); } - function fi(e, t) { - return fi = Object.setPrototypeOf || function(r, i) { + function ai(e, t) { + return ai = Object.setPrototypeOf || function(r, i) { return r.__proto__ = i, r; - }, fi(e, t); + }, ai(e, t); } - var Uc = function(e) { - qc(t, e); + var $c = function(e) { + Nc(t, e); function t(r) { var i; - return i = e.call(this, r) || this, i.type = Nc.ROOT, i; + return i = e.call(this, r) || this, i.type = Rc.ROOT, i; } var n = t.prototype; return n.toString = function() { @@ -12655,208 +12632,202 @@ var ci = P((Jt, ms) => { return this.trailingComma ? i + "," : i; }, n.error = function(i, o) { return this._error ? this._error(i, o) : new Error(i); - }, Wc(t, [{ key: "errorGenerator", set: function(i) { + }, Mc(t, [{ key: "errorGenerator", set: function(i) { this._error = i; } }]), t; - }(Mc.default); - Jt.default = Uc; - ms.exports = Jt.default; + }(Ic.default); + Kt.default = $c; + cs.exports = Kt.default; }); -var pi = P((Zt, Ds) => { +var ci = T((Jt, ds) => { "use strict"; - c(); - Zt.__esModule = true; - Zt.default = void 0; - var zc = jc(un()), Gc = ge(); - function jc(e) { + Jt.__esModule = true; + Jt.default = void 0; + var Wc = Uc(rn()), qc = pe(); + function Uc(e) { return e && e.__esModule ? e : { default: e }; } - function Hc(e, t) { - e.prototype = Object.create(t.prototype), e.prototype.constructor = e, di(e, t); + function zc(e, t) { + e.prototype = Object.create(t.prototype), e.prototype.constructor = e, fi(e, t); } - function di(e, t) { - return di = Object.setPrototypeOf || function(r, i) { + function fi(e, t) { + return fi = Object.setPrototypeOf || function(r, i) { return r.__proto__ = i, r; - }, di(e, t); + }, fi(e, t); } - var Vc = function(e) { - Hc(t, e); + var Gc = function(e) { + zc(t, e); function t(n) { var r; - return r = e.call(this, n) || this, r.type = Gc.SELECTOR, r; + return r = e.call(this, n) || this, r.type = qc.SELECTOR, r; } return t; - }(zc.default); - Zt.default = Vc; - Ds.exports = Zt.default; + }(Wc.default); + Jt.default = Gc; + ds.exports = Jt.default; }); -var sn = P((fb, gs) => { +var nn = T((ub, ps) => { "use strict"; - c(); - var Yc = {}, Xc = Yc.hasOwnProperty, Qc = function(t, n) { + var jc = {}, Hc = jc.hasOwnProperty, Vc = function(t, n) { if (!t) return n; var r = {}; for (var i in n) - r[i] = Xc.call(t, i) ? t[i] : n[i]; + r[i] = Hc.call(t, i) ? t[i] : n[i]; return r; - }, Kc = /[ -,\.\/:-@\[-\^`\{-~]/, Jc = /[ -,\.\/:-@\[\]\^`\{-~]/, Zc = /(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g, hi = function e(t, n) { - n = Qc(n, e.options), n.quotes != "single" && n.quotes != "double" && (n.quotes = "single"); + }, Yc = /[ -,\.\/:-@\[-\^`\{-~]/, Xc = /[ -,\.\/:-@\[\]\^`\{-~]/, Qc = /(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g, di = function e(t, n) { + n = Vc(n, e.options), n.quotes != "single" && n.quotes != "double" && (n.quotes = "single"); for (var r = n.quotes == "double" ? '"' : "'", i = n.isIdentifier, o = t.charAt(0), u = "", s = 0, a = t.length; s < a; ) { - var l = t.charAt(s++), f = l.charCodeAt(), d = void 0; + var l = t.charAt(s++), f = l.charCodeAt(), c = void 0; if (f < 32 || f > 126) { if (f >= 55296 && f <= 56319 && s < a) { - var h = t.charCodeAt(s++); - (h & 64512) == 56320 ? f = ((f & 1023) << 10) + (h & 1023) + 65536 : s--; + var p = t.charCodeAt(s++); + (p & 64512) == 56320 ? f = ((f & 1023) << 10) + (p & 1023) + 65536 : s--; } - d = "\\" + f.toString(16).toUpperCase() + " "; + c = "\\" + f.toString(16).toUpperCase() + " "; } else - n.escapeEverything ? Kc.test(l) ? d = "\\" + l : d = "\\" + f.toString(16).toUpperCase() + " " : /[\t\n\f\r\x0B]/.test(l) ? d = "\\" + f.toString(16).toUpperCase() + " " : l == "\\" || !i && (l == '"' && r == l || l == "'" && r == l) || i && Jc.test(l) ? d = "\\" + l : d = l; - u += d; + n.escapeEverything ? Yc.test(l) ? c = "\\" + l : c = "\\" + f.toString(16).toUpperCase() + " " : /[\t\n\f\r\x0B]/.test(l) ? c = "\\" + f.toString(16).toUpperCase() + " " : l == "\\" || !i && (l == '"' && r == l || l == "'" && r == l) || i && Xc.test(l) ? c = "\\" + l : c = l; + u += c; } - return i && (/^-[-\d]/.test(u) ? u = "\\-" + u.slice(1) : /\d/.test(o) && (u = "\\3" + o + " " + u.slice(1))), u = u.replace(Zc, function(m, p, D) { - return p && p.length % 2 ? m : (p || "") + D; + return i && (/^-[-\d]/.test(u) ? u = "\\-" + u.slice(1) : /\d/.test(o) && (u = "\\3" + o + " " + u.slice(1))), u = u.replace(Qc, function(h, d, m) { + return d && d.length % 2 ? h : (d || "") + m; }), !i && n.wrap ? r + u + r : u; }; - hi.options = { escapeEverything: false, isIdentifier: false, quotes: "single", wrap: false }; - hi.version = "3.0.0"; - gs.exports = hi; + di.options = { escapeEverything: false, isIdentifier: false, quotes: "single", wrap: false }; + di.version = "3.0.0"; + ps.exports = di; }); -var Di = P((er, ys) => { +var hi = T((Zt, Ds) => { "use strict"; - c(); - er.__esModule = true; - er.default = void 0; - var ed = vs(sn()), td2 = Xt(), rd = vs(je()), nd = ge(); - function vs(e) { + Zt.__esModule = true; + Zt.default = void 0; + var Kc = ms(nn()), Jc = Yt(), Zc = ms(Ue()), ed = pe(); + function ms(e) { return e && e.__esModule ? e : { default: e }; } - function bs(e, t) { + function hs(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; r.enumerable = r.enumerable || false, r.configurable = true, "value" in r && (r.writable = true), Object.defineProperty(e, r.key, r); } } - function id(e, t, n) { - return t && bs(e.prototype, t), n && bs(e, n), e; + function td2(e, t, n) { + return t && hs(e.prototype, t), n && hs(e, n), e; } - function od(e, t) { - e.prototype = Object.create(t.prototype), e.prototype.constructor = e, mi(e, t); + function rd(e, t) { + e.prototype = Object.create(t.prototype), e.prototype.constructor = e, pi(e, t); } - function mi(e, t) { - return mi = Object.setPrototypeOf || function(r, i) { + function pi(e, t) { + return pi = Object.setPrototypeOf || function(r, i) { return r.__proto__ = i, r; - }, mi(e, t); + }, pi(e, t); } - var ud = function(e) { - od(t, e); + var nd = function(e) { + rd(t, e); function t(r) { var i; - return i = e.call(this, r) || this, i.type = nd.CLASS, i._constructed = true, i; + return i = e.call(this, r) || this, i.type = ed.CLASS, i._constructed = true, i; } var n = t.prototype; return n.valueToString = function() { return "." + e.prototype.valueToString.call(this); - }, id(t, [{ key: "value", get: function() { + }, td2(t, [{ key: "value", get: function() { return this._value; }, set: function(i) { if (this._constructed) { - var o = (0, ed.default)(i, { isIdentifier: true }); - o !== i ? ((0, td2.ensureObject)(this, "raws"), this.raws.value = o) : this.raws && delete this.raws.value; + var o = (0, Kc.default)(i, { isIdentifier: true }); + o !== i ? ((0, Jc.ensureObject)(this, "raws"), this.raws.value = o) : this.raws && delete this.raws.value; } this._value = i; } }]), t; - }(rd.default); - er.default = ud; - ys.exports = er.default; + }(Zc.default); + Zt.default = nd; + Ds.exports = Zt.default; }); -var bi = P((tr, xs) => { +var Di = T((er, gs) => { "use strict"; - c(); - tr.__esModule = true; - tr.default = void 0; - var sd = ld(je()), ad = ge(); - function ld(e) { + er.__esModule = true; + er.default = void 0; + var id = ud(Ue()), od = pe(); + function ud(e) { return e && e.__esModule ? e : { default: e }; } - function fd2(e, t) { - e.prototype = Object.create(t.prototype), e.prototype.constructor = e, gi(e, t); + function sd(e, t) { + e.prototype = Object.create(t.prototype), e.prototype.constructor = e, mi(e, t); } - function gi(e, t) { - return gi = Object.setPrototypeOf || function(r, i) { + function mi(e, t) { + return mi = Object.setPrototypeOf || function(r, i) { return r.__proto__ = i, r; - }, gi(e, t); + }, mi(e, t); } - var cd = function(e) { - fd2(t, e); + var ad = function(e) { + sd(t, e); function t(n) { var r; - return r = e.call(this, n) || this, r.type = ad.COMMENT, r; + return r = e.call(this, n) || this, r.type = od.COMMENT, r; } return t; - }(sd.default); - tr.default = cd; - xs.exports = tr.default; + }(id.default); + er.default = ad; + gs.exports = er.default; }); -var yi = P((rr, Fs) => { +var bi = T((tr, bs) => { "use strict"; - c(); - rr.__esModule = true; - rr.default = void 0; - var dd = hd(je()), pd = ge(); - function hd(e) { + tr.__esModule = true; + tr.default = void 0; + var ld = cd(Ue()), fd2 = pe(); + function cd(e) { return e && e.__esModule ? e : { default: e }; } - function md(e, t) { - e.prototype = Object.create(t.prototype), e.prototype.constructor = e, vi(e, t); + function dd(e, t) { + e.prototype = Object.create(t.prototype), e.prototype.constructor = e, gi(e, t); } - function vi(e, t) { - return vi = Object.setPrototypeOf || function(r, i) { + function gi(e, t) { + return gi = Object.setPrototypeOf || function(r, i) { return r.__proto__ = i, r; - }, vi(e, t); + }, gi(e, t); } - var Dd = function(e) { - md(t, e); + var pd = function(e) { + dd(t, e); function t(r) { var i; - return i = e.call(this, r) || this, i.type = pd.ID, i; + return i = e.call(this, r) || this, i.type = fd2.ID, i; } var n = t.prototype; return n.valueToString = function() { return "#" + e.prototype.valueToString.call(this); }, t; - }(dd.default); - rr.default = Dd; - Fs.exports = rr.default; + }(ld.default); + tr.default = pd; + bs.exports = tr.default; }); -var an = P((nr, Cs) => { +var on = T((rr, xs) => { "use strict"; - c(); - nr.__esModule = true; - nr.default = void 0; - var gd = Es(sn()), bd = Xt(), vd = Es(je()); - function Es(e) { + rr.__esModule = true; + rr.default = void 0; + var hd = ys(nn()), md = Yt(), Dd = ys(Ue()); + function ys(e) { return e && e.__esModule ? e : { default: e }; } - function ws(e, t) { + function vs(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; r.enumerable = r.enumerable || false, r.configurable = true, "value" in r && (r.writable = true), Object.defineProperty(e, r.key, r); } } - function yd(e, t, n) { - return t && ws(e.prototype, t), n && ws(e, n), e; + function gd(e, t, n) { + return t && vs(e.prototype, t), n && vs(e, n), e; } - function xd(e, t) { - e.prototype = Object.create(t.prototype), e.prototype.constructor = e, xi(e, t); + function bd(e, t) { + e.prototype = Object.create(t.prototype), e.prototype.constructor = e, vi(e, t); } - function xi(e, t) { - return xi = Object.setPrototypeOf || function(r, i) { + function vi(e, t) { + return vi = Object.setPrototypeOf || function(r, i) { return r.__proto__ = i, r; - }, xi(e, t); + }, vi(e, t); } - var Fd = function(e) { - xd(t, e); + var vd = function(e) { + bd(t, e); function t() { return e.apply(this, arguments) || this; } @@ -12865,15 +12836,15 @@ var an = P((nr, Cs) => { return this.namespace ? this.namespaceString + "|" + i : i; }, n.valueToString = function() { return this.qualifiedName(e.prototype.valueToString.call(this)); - }, yd(t, [{ key: "namespace", get: function() { + }, gd(t, [{ key: "namespace", get: function() { return this._namespace; }, set: function(i) { if (i === true || i === "*" || i === "&") { this._namespace = i, this.raws && delete this.raws.namespace; return; } - var o = (0, gd.default)(i, { isIdentifier: true }); - this._namespace = i, o !== i ? ((0, bd.ensureObject)(this, "raws"), this.raws.namespace = o) : this.raws && delete this.raws.namespace; + var o = (0, hd.default)(i, { isIdentifier: true }); + this._namespace = i, o !== i ? ((0, md.ensureObject)(this, "raws"), this.raws.namespace = o) : this.raws && delete this.raws.namespace; } }, { key: "ns", get: function() { return this._namespace; }, set: function(i) { @@ -12885,20 +12856,46 @@ var an = P((nr, Cs) => { } else return ""; } }]), t; - }(vd.default); - nr.default = Fd; - Cs.exports = nr.default; + }(Dd.default); + rr.default = vd; + xs.exports = rr.default; +}); +var xi = T((nr, Fs) => { + "use strict"; + nr.__esModule = true; + nr.default = void 0; + var yd = Fd(on()), xd = pe(); + function Fd(e) { + return e && e.__esModule ? e : { default: e }; + } + function wd(e, t) { + e.prototype = Object.create(t.prototype), e.prototype.constructor = e, yi(e, t); + } + function yi(e, t) { + return yi = Object.setPrototypeOf || function(r, i) { + return r.__proto__ = i, r; + }, yi(e, t); + } + var Ed = function(e) { + wd(t, e); + function t(n) { + var r; + return r = e.call(this, n) || this, r.type = xd.TAG, r; + } + return t; + }(yd.default); + nr.default = Ed; + Fs.exports = nr.default; }); -var wi = P((ir, _s) => { +var wi = T((ir, ws) => { "use strict"; - c(); ir.__esModule = true; ir.default = void 0; - var wd = Cd(an()), Ed = ge(); - function Cd(e) { + var Cd = Sd(Ue()), _d = pe(); + function Sd(e) { return e && e.__esModule ? e : { default: e }; } - function _d(e, t) { + function kd(e, t) { e.prototype = Object.create(t.prototype), e.prototype.constructor = e, Fi(e, t); } function Fi(e, t) { @@ -12906,27 +12903,26 @@ var wi = P((ir, _s) => { return r.__proto__ = i, r; }, Fi(e, t); } - var Sd = function(e) { - _d(t, e); + var Td = function(e) { + kd(t, e); function t(n) { var r; - return r = e.call(this, n) || this, r.type = Ed.TAG, r; + return r = e.call(this, n) || this, r.type = _d.STRING, r; } return t; - }(wd.default); - ir.default = Sd; - _s.exports = ir.default; + }(Cd.default); + ir.default = Td; + ws.exports = ir.default; }); -var Ci = P((or, Ss) => { +var Ci = T((or, Es) => { "use strict"; - c(); or.__esModule = true; or.default = void 0; - var kd = Ad(je()), Td = ge(); - function Ad(e) { + var Ad = Pd(rn()), Od = pe(); + function Pd(e) { return e && e.__esModule ? e : { default: e }; } - function Od(e, t) { + function Bd(e, t) { e.prototype = Object.create(t.prototype), e.prototype.constructor = e, Ei(e, t); } function Ei(e, t) { @@ -12934,113 +12930,83 @@ var Ci = P((or, Ss) => { return r.__proto__ = i, r; }, Ei(e, t); } - var Pd = function(e) { - Od(t, e); - function t(n) { - var r; - return r = e.call(this, n) || this, r.type = Td.STRING, r; - } - return t; - }(kd.default); - or.default = Pd; - Ss.exports = or.default; -}); -var Si = P((ur, ks) => { - "use strict"; - c(); - ur.__esModule = true; - ur.default = void 0; - var Id = Rd(un()), Bd = ge(); - function Rd(e) { - return e && e.__esModule ? e : { default: e }; - } - function Ld(e, t) { - e.prototype = Object.create(t.prototype), e.prototype.constructor = e, _i(e, t); - } - function _i(e, t) { - return _i = Object.setPrototypeOf || function(r, i) { - return r.__proto__ = i, r; - }, _i(e, t); - } - var Md = function(e) { - Ld(t, e); + var Id = function(e) { + Bd(t, e); function t(r) { var i; - return i = e.call(this, r) || this, i.type = Bd.PSEUDO, i; + return i = e.call(this, r) || this, i.type = Od.PSEUDO, i; } var n = t.prototype; return n.toString = function() { var i = this.length ? "(" + this.map(String).join(",") + ")" : ""; return [this.rawSpaceBefore, this.stringifyProperty("value"), i, this.rawSpaceAfter].join(""); }, t; - }(Id.default); - ur.default = Md; - ks.exports = ur.default; + }(Ad.default); + or.default = Id; + Es.exports = or.default; }); -var As = P((cb, Ts) => { - c(); - Ts.exports = function(t, n) { +var _s = T((sb, Cs) => { + Cs.exports = function(t, n) { return function(...r) { return console.warn(n), t(...r); }; }; }); -var Ii = P((lr) => { +var Oi = T((ar) => { "use strict"; - c(); - lr.__esModule = true; - lr.unescapeValue = Pi; - lr.default = void 0; - var sr = Oi(sn()), Nd = Oi(ai()), $d = Oi(an()), Wd = ge(), ki; - function Oi(e) { + ar.__esModule = true; + ar.unescapeValue = Ai; + ar.default = void 0; + var ur = Ti(nn()), Rd = Ti(ui()), Ld = Ti(on()), Md = pe(), _i; + function Ti(e) { return e && e.__esModule ? e : { default: e }; } - function Os(e, t) { + function Ss(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; r.enumerable = r.enumerable || false, r.configurable = true, "value" in r && (r.writable = true), Object.defineProperty(e, r.key, r); } } - function qd(e, t, n) { - return t && Os(e.prototype, t), n && Os(e, n), e; + function Nd(e, t, n) { + return t && Ss(e.prototype, t), n && Ss(e, n), e; } - function Ud(e, t) { - e.prototype = Object.create(t.prototype), e.prototype.constructor = e, Ai(e, t); + function $d(e, t) { + e.prototype = Object.create(t.prototype), e.prototype.constructor = e, ki(e, t); } - function Ai(e, t) { - return Ai = Object.setPrototypeOf || function(r, i) { + function ki(e, t) { + return ki = Object.setPrototypeOf || function(r, i) { return r.__proto__ = i, r; - }, Ai(e, t); + }, ki(e, t); } - var ar = As(), zd = /^('|")([^]*)\1$/, Gd = ar(function() { - }, "Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."), jd = ar(function() { - }, "Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."), Hd = ar(function() { + var sr = _s(), Wd = /^('|")([^]*)\1$/, qd = sr(function() { + }, "Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."), Ud = sr(function() { + }, "Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."), zd = sr(function() { }, "Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now."); - function Pi(e) { - var t = false, n = null, r = e, i = r.match(zd); - return i && (n = i[1], r = i[2]), r = (0, Nd.default)(r), r !== e && (t = true), { deprecatedUsage: t, unescaped: r, quoteMark: n }; + function Ai(e) { + var t = false, n = null, r = e, i = r.match(Wd); + return i && (n = i[1], r = i[2]), r = (0, Rd.default)(r), r !== e && (t = true), { deprecatedUsage: t, unescaped: r, quoteMark: n }; } - function Vd(e) { + function Gd(e) { if (e.quoteMark !== void 0 || e.value === void 0) return e; - Hd(); - var t = Pi(e.value), n = t.quoteMark, r = t.unescaped; + zd(); + var t = Ai(e.value), n = t.quoteMark, r = t.unescaped; return e.raws || (e.raws = {}), e.raws.value === void 0 && (e.raws.value = e.value), e.value = r, e.quoteMark = n, e; } - var ln = function(e) { - Ud(t, e); + var un = function(e) { + $d(t, e); function t(r) { var i; - return r === void 0 && (r = {}), i = e.call(this, Vd(r)) || this, i.type = Wd.ATTRIBUTE, i.raws = i.raws || {}, Object.defineProperty(i.raws, "unquoted", { get: ar(function() { + return r === void 0 && (r = {}), i = e.call(this, Gd(r)) || this, i.type = Md.ATTRIBUTE, i.raws = i.raws || {}, Object.defineProperty(i.raws, "unquoted", { get: sr(function() { return i.value; - }, "attr.raws.unquoted is deprecated. Call attr.value instead."), set: ar(function() { + }, "attr.raws.unquoted is deprecated. Call attr.value instead."), set: sr(function() { return i.value; }, "Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.") }), i._constructed = true, i; } var n = t.prototype; return n.getQuotedValue = function(i) { i === void 0 && (i = {}); - var o = this._determineQuoteMark(i), u = Ti[o], s = (0, sr.default)(this._value, u); + var o = this._determineQuoteMark(i), u = Si[o], s = (0, ur.default)(this._value, u); return s; }, n._determineQuoteMark = function(i) { return i.smart ? this.smartQuoteMark(i) : this.preferredQuoteMark(i); @@ -13049,13 +13015,13 @@ var Ii = P((lr) => { }, n.smartQuoteMark = function(i) { var o = this.value, u = o.replace(/[^']/g, "").length, s = o.replace(/[^"]/g, "").length; if (u + s === 0) { - var a = (0, sr.default)(o, { isIdentifier: true }); + var a = (0, ur.default)(o, { isIdentifier: true }); if (a === o) return t.NO_QUOTE; var l = this.preferredQuoteMark(i); if (l === t.NO_QUOTE) { - var f = this.quoteMark || i.quoteMark || t.DOUBLE_QUOTE, d = Ti[f], h = (0, sr.default)(o, d); - if (h.length < a.length) + var f = this.quoteMark || i.quoteMark || t.DOUBLE_QUOTE, c = Si[f], p = (0, ur.default)(o, c); + if (p.length < a.length) return f; } return l; @@ -13065,18 +13031,18 @@ var Ii = P((lr) => { var o = i.preferCurrentQuoteMark ? this.quoteMark : i.quoteMark; return o === void 0 && (o = i.preferCurrentQuoteMark ? i.quoteMark : this.quoteMark), o === void 0 && (o = t.DOUBLE_QUOTE), o; }, n._syncRawValue = function() { - var i = (0, sr.default)(this._value, Ti[this.quoteMark]); + var i = (0, ur.default)(this._value, Si[this.quoteMark]); i === this._value ? this.raws && delete this.raws.value : this.raws.value = i; }, n._handleEscapes = function(i, o) { if (this._constructed) { - var u = (0, sr.default)(o, { isIdentifier: true }); + var u = (0, ur.default)(o, { isIdentifier: true }); u !== o ? this.raws[i] = u : delete this.raws[i]; } }, n._spacesFor = function(i) { var o = { before: "", after: "" }, u = this.spaces[i] || {}, s = this.raws.spaces && this.raws.spaces[i] || {}; return Object.assign(o, u, s); }, n._stringFor = function(i, o, u) { - o === void 0 && (o = i), u === void 0 && (u = Ps); + o === void 0 && (o = i), u === void 0 && (u = ks); var s = this._spacesFor(o); return u(this.stringifyProperty(i), s); }, n.offsetOf = function(i) { @@ -13098,18 +13064,18 @@ var Ii = P((lr) => { if (i === "value") return f ? o : -1; o += f.length, o += l.after.length; - var d = this._spacesFor("insensitive"); - return o += d.before.length, i === "insensitive" && this.insensitive ? o : -1; + var c = this._spacesFor("insensitive"); + return o += c.before.length, i === "insensitive" && this.insensitive ? o : -1; }, n.toString = function() { var i = this, o = [this.rawSpaceBefore, "["]; return o.push(this._stringFor("qualifiedAttribute", "attribute")), this.operator && (this.value || this.value === "") && (o.push(this._stringFor("operator")), o.push(this._stringFor("value")), o.push(this._stringFor("insensitiveFlag", "insensitive", function(u, s) { - return u.length > 0 && !i.quoted && s.before.length === 0 && !(i.spaces.value && i.spaces.value.after) && (s.before = " "), Ps(u, s); + return u.length > 0 && !i.quoted && s.before.length === 0 && !(i.spaces.value && i.spaces.value.after) && (s.before = " "), ks(u, s); }))), o.push("]"), o.push(this.rawSpaceAfter), o.join(""); - }, qd(t, [{ key: "quoted", get: function() { + }, Nd(t, [{ key: "quoted", get: function() { var i = this.quoteMark; return i === "'" || i === '"'; }, set: function(i) { - jd(); + Ud(); } }, { key: "quoteMark", get: function() { return this._quoteMark; }, set: function(i) { @@ -13126,8 +13092,8 @@ var Ii = P((lr) => { return this._value; }, set: function(i) { if (this._constructed) { - var o = Pi(i), u = o.deprecatedUsage, s = o.unescaped, a = o.quoteMark; - if (u && Gd(), s === this._value && a === this._quoteMark) + var o = Ai(i), u = o.deprecatedUsage, s = o.unescaped, a = o.quoteMark; + if (u && qd(), s === this._value && a === this._quoteMark) return; this._value = s, this._quoteMark = a, this._syncRawValue(); } else @@ -13137,201 +13103,195 @@ var Ii = P((lr) => { }, set: function(i) { this._handleEscapes("attribute", i), this._attribute = i; } }]), t; - }($d.default); - lr.default = ln; - ln.NO_QUOTE = null; - ln.SINGLE_QUOTE = "'"; - ln.DOUBLE_QUOTE = '"'; - var Ti = (ki = { "'": { quotes: "single", wrap: true }, '"': { quotes: "double", wrap: true } }, ki[null] = { isIdentifier: true }, ki); - function Ps(e, t) { + }(Ld.default); + ar.default = un; + un.NO_QUOTE = null; + un.SINGLE_QUOTE = "'"; + un.DOUBLE_QUOTE = '"'; + var Si = (_i = { "'": { quotes: "single", wrap: true }, '"': { quotes: "double", wrap: true } }, _i[null] = { isIdentifier: true }, _i); + function ks(e, t) { return "" + t.before + e + t.after; } }); -var Ri = P((fr, Is) => { +var Bi = T((lr, Ts) => { "use strict"; - c(); - fr.__esModule = true; - fr.default = void 0; - var Yd = Qd(an()), Xd = ge(); - function Qd(e) { + lr.__esModule = true; + lr.default = void 0; + var jd = Vd(on()), Hd = pe(); + function Vd(e) { return e && e.__esModule ? e : { default: e }; } - function Kd(e, t) { - e.prototype = Object.create(t.prototype), e.prototype.constructor = e, Bi(e, t); + function Yd(e, t) { + e.prototype = Object.create(t.prototype), e.prototype.constructor = e, Pi(e, t); } - function Bi(e, t) { - return Bi = Object.setPrototypeOf || function(r, i) { + function Pi(e, t) { + return Pi = Object.setPrototypeOf || function(r, i) { return r.__proto__ = i, r; - }, Bi(e, t); + }, Pi(e, t); } - var Jd = function(e) { - Kd(t, e); + var Xd = function(e) { + Yd(t, e); function t(n) { var r; - return r = e.call(this, n) || this, r.type = Xd.UNIVERSAL, r.value = "*", r; + return r = e.call(this, n) || this, r.type = Hd.UNIVERSAL, r.value = "*", r; } return t; - }(Yd.default); - fr.default = Jd; - Is.exports = fr.default; + }(jd.default); + lr.default = Xd; + Ts.exports = lr.default; }); -var Mi = P((cr, Bs) => { +var Ri = T((fr, As) => { "use strict"; - c(); - cr.__esModule = true; - cr.default = void 0; - var Zd = tp(je()), ep = ge(); - function tp(e) { + fr.__esModule = true; + fr.default = void 0; + var Qd = Jd(Ue()), Kd = pe(); + function Jd(e) { return e && e.__esModule ? e : { default: e }; } - function rp(e, t) { - e.prototype = Object.create(t.prototype), e.prototype.constructor = e, Li(e, t); + function Zd(e, t) { + e.prototype = Object.create(t.prototype), e.prototype.constructor = e, Ii(e, t); } - function Li(e, t) { - return Li = Object.setPrototypeOf || function(r, i) { + function Ii(e, t) { + return Ii = Object.setPrototypeOf || function(r, i) { return r.__proto__ = i, r; - }, Li(e, t); + }, Ii(e, t); } - var np = function(e) { - rp(t, e); + var ep = function(e) { + Zd(t, e); function t(n) { var r; - return r = e.call(this, n) || this, r.type = ep.COMBINATOR, r; + return r = e.call(this, n) || this, r.type = Kd.COMBINATOR, r; } return t; - }(Zd.default); - cr.default = np; - Bs.exports = cr.default; + }(Qd.default); + fr.default = ep; + As.exports = fr.default; }); -var $i = P((dr, Rs) => { +var Mi = T((cr, Os) => { "use strict"; - c(); - dr.__esModule = true; - dr.default = void 0; - var ip = up(je()), op = ge(); - function up(e) { + cr.__esModule = true; + cr.default = void 0; + var tp = np(Ue()), rp = pe(); + function np(e) { return e && e.__esModule ? e : { default: e }; } - function sp(e, t) { - e.prototype = Object.create(t.prototype), e.prototype.constructor = e, Ni(e, t); + function ip(e, t) { + e.prototype = Object.create(t.prototype), e.prototype.constructor = e, Li(e, t); } - function Ni(e, t) { - return Ni = Object.setPrototypeOf || function(r, i) { + function Li(e, t) { + return Li = Object.setPrototypeOf || function(r, i) { return r.__proto__ = i, r; - }, Ni(e, t); + }, Li(e, t); } - var ap = function(e) { - sp(t, e); + var op = function(e) { + ip(t, e); function t(n) { var r; - return r = e.call(this, n) || this, r.type = op.NESTING, r.value = "&", r; + return r = e.call(this, n) || this, r.type = rp.NESTING, r.value = "&", r; } return t; - }(ip.default); - dr.default = ap; - Rs.exports = dr.default; + }(tp.default); + cr.default = op; + Os.exports = cr.default; }); -var Ms = P((fn, Ls) => { +var Bs = T((sn, Ps) => { "use strict"; - c(); - fn.__esModule = true; - fn.default = lp; - function lp(e) { + sn.__esModule = true; + sn.default = up; + function up(e) { return e.sort(function(t, n) { return t - n; }); } - Ls.exports = fn.default; + Ps.exports = sn.default; }); -var Wi = P((A) => { +var Ni = T((S) => { "use strict"; - c(); - A.__esModule = true; - A.combinator = A.word = A.comment = A.str = A.tab = A.newline = A.feed = A.cr = A.backslash = A.bang = A.slash = A.doubleQuote = A.singleQuote = A.space = A.greaterThan = A.pipe = A.equals = A.plus = A.caret = A.tilde = A.dollar = A.closeSquare = A.openSquare = A.closeParenthesis = A.openParenthesis = A.semicolon = A.colon = A.comma = A.at = A.asterisk = A.ampersand = void 0; - var fp = 38; - A.ampersand = fp; - var cp = 42; - A.asterisk = cp; - var dp = 64; - A.at = dp; - var pp = 44; - A.comma = pp; - var hp = 58; - A.colon = hp; - var mp = 59; - A.semicolon = mp; - var Dp = 40; - A.openParenthesis = Dp; - var gp = 41; - A.closeParenthesis = gp; - var bp = 91; - A.openSquare = bp; - var vp = 93; - A.closeSquare = vp; - var yp = 36; - A.dollar = yp; - var xp = 126; - A.tilde = xp; - var Fp = 94; - A.caret = Fp; - var wp = 43; - A.plus = wp; - var Ep = 61; - A.equals = Ep; - var Cp = 124; - A.pipe = Cp; - var _p = 62; - A.greaterThan = _p; - var Sp = 32; - A.space = Sp; - var Ns = 39; - A.singleQuote = Ns; - var kp = 34; - A.doubleQuote = kp; - var Tp = 47; - A.slash = Tp; - var Ap = 33; - A.bang = Ap; - var Op = 92; - A.backslash = Op; - var Pp = 13; - A.cr = Pp; - var Ip = 12; - A.feed = Ip; - var Bp = 10; - A.newline = Bp; - var Rp = 9; - A.tab = Rp; - var Lp = Ns; - A.str = Lp; - var Mp = -1; - A.comment = Mp; - var Np = -2; - A.word = Np; - var $p = -3; - A.combinator = $p; + S.__esModule = true; + S.combinator = S.word = S.comment = S.str = S.tab = S.newline = S.feed = S.cr = S.backslash = S.bang = S.slash = S.doubleQuote = S.singleQuote = S.space = S.greaterThan = S.pipe = S.equals = S.plus = S.caret = S.tilde = S.dollar = S.closeSquare = S.openSquare = S.closeParenthesis = S.openParenthesis = S.semicolon = S.colon = S.comma = S.at = S.asterisk = S.ampersand = void 0; + var sp = 38; + S.ampersand = sp; + var ap = 42; + S.asterisk = ap; + var lp = 64; + S.at = lp; + var fp = 44; + S.comma = fp; + var cp = 58; + S.colon = cp; + var dp = 59; + S.semicolon = dp; + var pp = 40; + S.openParenthesis = pp; + var hp = 41; + S.closeParenthesis = hp; + var mp = 91; + S.openSquare = mp; + var Dp = 93; + S.closeSquare = Dp; + var gp = 36; + S.dollar = gp; + var bp = 126; + S.tilde = bp; + var vp = 94; + S.caret = vp; + var yp = 43; + S.plus = yp; + var xp = 61; + S.equals = xp; + var Fp = 124; + S.pipe = Fp; + var wp = 62; + S.greaterThan = wp; + var Ep = 32; + S.space = Ep; + var Is = 39; + S.singleQuote = Is; + var Cp = 34; + S.doubleQuote = Cp; + var _p = 47; + S.slash = _p; + var Sp = 33; + S.bang = Sp; + var kp = 92; + S.backslash = kp; + var Tp = 13; + S.cr = Tp; + var Ap = 12; + S.feed = Ap; + var Op = 10; + S.newline = Op; + var Pp = 9; + S.tab = Pp; + var Bp = Is; + S.str = Bp; + var Ip = -1; + S.comment = Ip; + var Rp = -2; + S.word = Rp; + var Lp = -3; + S.combinator = Lp; }); -var qs = P((pr) => { +var Ms = T((dr) => { "use strict"; - c(); - pr.__esModule = true; - pr.default = Hp; - pr.FIELDS = void 0; - var S = Wp(Wi()), wt, Z; - function Ws() { + dr.__esModule = true; + dr.default = zp; + dr.FIELDS = void 0; + var E = Mp(Ni()), xt, Q; + function Ls() { if (typeof WeakMap != "function") return null; var e = /* @__PURE__ */ new WeakMap(); - return Ws = function() { + return Ls = function() { return e; }, e; } - function Wp(e) { + function Mp(e) { if (e && e.__esModule) return e; if (e === null || typeof e != "object" && typeof e != "function") return { default: e }; - var t = Ws(); + var t = Ls(); if (t && t.has(e)) return t.get(e); var n = {}, r = Object.defineProperty && Object.getOwnPropertyDescriptor; @@ -13342,119 +13302,118 @@ var qs = P((pr) => { } return n.default = e, t && t.set(e, n), n; } - var qp = (wt = {}, wt[S.tab] = true, wt[S.newline] = true, wt[S.cr] = true, wt[S.feed] = true, wt), Up = (Z = {}, Z[S.space] = true, Z[S.tab] = true, Z[S.newline] = true, Z[S.cr] = true, Z[S.feed] = true, Z[S.ampersand] = true, Z[S.asterisk] = true, Z[S.bang] = true, Z[S.comma] = true, Z[S.colon] = true, Z[S.semicolon] = true, Z[S.openParenthesis] = true, Z[S.closeParenthesis] = true, Z[S.openSquare] = true, Z[S.closeSquare] = true, Z[S.singleQuote] = true, Z[S.doubleQuote] = true, Z[S.plus] = true, Z[S.pipe] = true, Z[S.tilde] = true, Z[S.greaterThan] = true, Z[S.equals] = true, Z[S.dollar] = true, Z[S.caret] = true, Z[S.slash] = true, Z), qi = {}, $s = "0123456789abcdefABCDEF"; - for (cn = 0; cn < $s.length; cn++) - qi[$s.charCodeAt(cn)] = true; - var cn; - function zp(e, t) { + var Np = (xt = {}, xt[E.tab] = true, xt[E.newline] = true, xt[E.cr] = true, xt[E.feed] = true, xt), $p = (Q = {}, Q[E.space] = true, Q[E.tab] = true, Q[E.newline] = true, Q[E.cr] = true, Q[E.feed] = true, Q[E.ampersand] = true, Q[E.asterisk] = true, Q[E.bang] = true, Q[E.comma] = true, Q[E.colon] = true, Q[E.semicolon] = true, Q[E.openParenthesis] = true, Q[E.closeParenthesis] = true, Q[E.openSquare] = true, Q[E.closeSquare] = true, Q[E.singleQuote] = true, Q[E.doubleQuote] = true, Q[E.plus] = true, Q[E.pipe] = true, Q[E.tilde] = true, Q[E.greaterThan] = true, Q[E.equals] = true, Q[E.dollar] = true, Q[E.caret] = true, Q[E.slash] = true, Q), $i = {}, Rs = "0123456789abcdefABCDEF"; + for (an = 0; an < Rs.length; an++) + $i[Rs.charCodeAt(an)] = true; + var an; + function Wp(e, t) { var n = t, r; do { - if (r = e.charCodeAt(n), Up[r]) + if (r = e.charCodeAt(n), $p[r]) return n - 1; - r === S.backslash ? n = Gp(e, n) + 1 : n++; + r === E.backslash ? n = qp(e, n) + 1 : n++; } while (n < e.length); return n - 1; } - function Gp(e, t) { + function qp(e, t) { var n = t, r = e.charCodeAt(n + 1); - if (!qp[r]) - if (qi[r]) { + if (!Np[r]) + if ($i[r]) { var i = 0; do n++, i++, r = e.charCodeAt(n + 1); - while (qi[r] && i < 6); - i < 6 && r === S.space && n++; + while ($i[r] && i < 6); + i < 6 && r === E.space && n++; } else n++; return n; } - var jp = { TYPE: 0, START_LINE: 1, START_COL: 2, END_LINE: 3, END_COL: 4, START_POS: 5, END_POS: 6 }; - pr.FIELDS = jp; - function Hp(e) { - var t = [], n = e.css.valueOf(), r = n, i = r.length, o = -1, u = 1, s = 0, a = 0, l, f, d, h, m, p, D, F, b, v, E, C, w; - function O(R, L) { + var Up = { TYPE: 0, START_LINE: 1, START_COL: 2, END_LINE: 3, END_COL: 4, START_POS: 5, END_POS: 6 }; + dr.FIELDS = Up; + function zp(e) { + var t = [], n = e.css.valueOf(), r = n, i = r.length, o = -1, u = 1, s = 0, a = 0, l, f, c, p, h, d, m, v, g, b, x, F, y; + function k(P, B) { if (e.safe) - n += L, b = n.length - 1; + n += B, g = n.length - 1; else - throw e.error("Unclosed " + R, u, s - o, s); + throw e.error("Unclosed " + P, u, s - o, s); } for (; s < i; ) { - switch (l = n.charCodeAt(s), l === S.newline && (o = s, u += 1), l) { - case S.space: - case S.tab: - case S.newline: - case S.cr: - case S.feed: - b = s; + switch (l = n.charCodeAt(s), l === E.newline && (o = s, u += 1), l) { + case E.space: + case E.tab: + case E.newline: + case E.cr: + case E.feed: + g = s; do - b += 1, l = n.charCodeAt(b), l === S.newline && (o = b, u += 1); - while (l === S.space || l === S.newline || l === S.tab || l === S.cr || l === S.feed); - w = S.space, h = u, d = b - o - 1, a = b; + g += 1, l = n.charCodeAt(g), l === E.newline && (o = g, u += 1); + while (l === E.space || l === E.newline || l === E.tab || l === E.cr || l === E.feed); + y = E.space, p = u, c = g - o - 1, a = g; break; - case S.plus: - case S.greaterThan: - case S.tilde: - case S.pipe: - b = s; + case E.plus: + case E.greaterThan: + case E.tilde: + case E.pipe: + g = s; do - b += 1, l = n.charCodeAt(b); - while (l === S.plus || l === S.greaterThan || l === S.tilde || l === S.pipe); - w = S.combinator, h = u, d = s - o, a = b; + g += 1, l = n.charCodeAt(g); + while (l === E.plus || l === E.greaterThan || l === E.tilde || l === E.pipe); + y = E.combinator, p = u, c = s - o, a = g; break; - case S.asterisk: - case S.ampersand: - case S.bang: - case S.comma: - case S.equals: - case S.dollar: - case S.caret: - case S.openSquare: - case S.closeSquare: - case S.colon: - case S.semicolon: - case S.openParenthesis: - case S.closeParenthesis: - b = s, w = l, h = u, d = s - o, a = b + 1; + case E.asterisk: + case E.ampersand: + case E.bang: + case E.comma: + case E.equals: + case E.dollar: + case E.caret: + case E.openSquare: + case E.closeSquare: + case E.colon: + case E.semicolon: + case E.openParenthesis: + case E.closeParenthesis: + g = s, y = l, p = u, c = s - o, a = g + 1; break; - case S.singleQuote: - case S.doubleQuote: - C = l === S.singleQuote ? "'" : '"', b = s; + case E.singleQuote: + case E.doubleQuote: + F = l === E.singleQuote ? "'" : '"', g = s; do - for (m = false, b = n.indexOf(C, b + 1), b === -1 && O("quote", C), p = b; n.charCodeAt(p - 1) === S.backslash; ) - p -= 1, m = !m; - while (m); - w = S.str, h = u, d = s - o, a = b + 1; + for (h = false, g = n.indexOf(F, g + 1), g === -1 && k("quote", F), d = g; n.charCodeAt(d - 1) === E.backslash; ) + d -= 1, h = !h; + while (h); + y = E.str, p = u, c = s - o, a = g + 1; break; default: - l === S.slash && n.charCodeAt(s + 1) === S.asterisk ? (b = n.indexOf("*/", s + 2) + 1, b === 0 && O("comment", "*/"), f = n.slice(s, b + 1), F = f.split(` -`), D = F.length - 1, D > 0 ? (v = u + D, E = b - F[D].length) : (v = u, E = o), w = S.comment, u = v, h = v, d = b - E) : l === S.slash ? (b = s, w = l, h = u, d = s - o, a = b + 1) : (b = zp(n, s), w = S.word, h = u, d = b - o), a = b + 1; + l === E.slash && n.charCodeAt(s + 1) === E.asterisk ? (g = n.indexOf("*/", s + 2) + 1, g === 0 && k("comment", "*/"), f = n.slice(s, g + 1), v = f.split(` +`), m = v.length - 1, m > 0 ? (b = u + m, x = g - v[m].length) : (b = u, x = o), y = E.comment, u = b, p = b, c = g - x) : l === E.slash ? (g = s, y = l, p = u, c = s - o, a = g + 1) : (g = Wp(n, s), y = E.word, p = u, c = g - o), a = g + 1; break; } - t.push([w, u, s - o, h, d, s, a]), E && (o = E, E = null), s = a; + t.push([y, u, s - o, p, c, s, a]), x && (o = x, x = null), s = a; } return t; } }); -var Xs = P((hr, Ys) => { +var js = T((pr, Gs) => { "use strict"; - c(); - hr.__esModule = true; - hr.default = void 0; - var Vp = Te(ci()), Ui = Te(pi()), Yp = Te(Di()), Us = Te(bi()), Xp = Te(yi()), Qp = Te(wi()), zi = Te(Ci()), Kp = Te(Si()), zs = dn(Ii()), Jp = Te(Ri()), Gi = Te(Mi()), Zp = Te($i()), e0 = Te(Ms()), _ = dn(qs()), T = dn(Wi()), t0 = dn(ge()), ie = Xt(), at, ji; - function Vs() { + pr.__esModule = true; + pr.default = void 0; + var Gp = _e(li()), Wi = _e(ci()), jp = _e(hi()), Ns = _e(Di()), Hp = _e(bi()), Vp = _e(xi()), qi = _e(wi()), Yp = _e(Ci()), $s = ln(Oi()), Xp = _e(Bi()), Ui = _e(Ri()), Qp = _e(Mi()), Kp = _e(Bs()), w = ln(Ms()), _ = ln(Ni()), Jp = ln(pe()), te = Yt(), ut, zi; + function zs() { if (typeof WeakMap != "function") return null; var e = /* @__PURE__ */ new WeakMap(); - return Vs = function() { + return zs = function() { return e; }, e; } - function dn(e) { + function ln(e) { if (e && e.__esModule) return e; if (e === null || typeof e != "object" && typeof e != "function") return { default: e }; - var t = Vs(); + var t = zs(); if (t && t.has(e)) return t.get(e); var n = {}, r = Object.defineProperty && Object.getOwnPropertyDescriptor; @@ -13465,57 +13424,57 @@ var Xs = P((hr, Ys) => { } return n.default = e, t && t.set(e, n), n; } - function Te(e) { + function _e(e) { return e && e.__esModule ? e : { default: e }; } - function Gs(e, t) { + function Ws(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; r.enumerable = r.enumerable || false, r.configurable = true, "value" in r && (r.writable = true), Object.defineProperty(e, r.key, r); } } - function r0(e, t, n) { - return t && Gs(e.prototype, t), n && Gs(e, n), e; + function Zp(e, t, n) { + return t && Ws(e.prototype, t), n && Ws(e, n), e; } - var Yi = (at = {}, at[T.space] = true, at[T.cr] = true, at[T.feed] = true, at[T.newline] = true, at[T.tab] = true, at), n0 = Object.assign({}, Yi, (ji = {}, ji[T.comment] = true, ji)); - function js(e) { - return { line: e[_.FIELDS.START_LINE], column: e[_.FIELDS.START_COL] }; + var Hi = (ut = {}, ut[_.space] = true, ut[_.cr] = true, ut[_.feed] = true, ut[_.newline] = true, ut[_.tab] = true, ut), e0 = Object.assign({}, Hi, (zi = {}, zi[_.comment] = true, zi)); + function qs(e) { + return { line: e[w.FIELDS.START_LINE], column: e[w.FIELDS.START_COL] }; } - function Hs(e) { - return { line: e[_.FIELDS.END_LINE], column: e[_.FIELDS.END_COL] }; + function Us(e) { + return { line: e[w.FIELDS.END_LINE], column: e[w.FIELDS.END_COL] }; } - function lt(e, t, n, r) { + function st(e, t, n, r) { return { start: { line: e, column: t }, end: { line: n, column: r } }; } - function Et(e) { - return lt(e[_.FIELDS.START_LINE], e[_.FIELDS.START_COL], e[_.FIELDS.END_LINE], e[_.FIELDS.END_COL]); + function Ft(e) { + return st(e[w.FIELDS.START_LINE], e[w.FIELDS.START_COL], e[w.FIELDS.END_LINE], e[w.FIELDS.END_COL]); } - function Hi(e, t) { - if (!!e) - return lt(e[_.FIELDS.START_LINE], e[_.FIELDS.START_COL], t[_.FIELDS.END_LINE], t[_.FIELDS.END_COL]); + function Gi(e, t) { + if (e) + return st(e[w.FIELDS.START_LINE], e[w.FIELDS.START_COL], t[w.FIELDS.END_LINE], t[w.FIELDS.END_COL]); } - function Ct(e, t) { + function wt(e, t) { var n = e[t]; if (typeof n == "string") - return n.indexOf("\\") !== -1 && ((0, ie.ensureObject)(e, "raws"), e[t] = (0, ie.unesc)(n), e.raws[t] === void 0 && (e.raws[t] = n)), e; + return n.indexOf("\\") !== -1 && ((0, te.ensureObject)(e, "raws"), e[t] = (0, te.unesc)(n), e.raws[t] === void 0 && (e.raws[t] = n)), e; } - function Vi(e, t) { + function ji(e, t) { for (var n = -1, r = []; (n = e.indexOf(t, n + 1)) !== -1; ) r.push(n); return r; } - function i0() { + function t0() { var e = Array.prototype.concat.apply([], arguments); return e.filter(function(t, n) { return n === e.indexOf(t); }); } - var o0 = function() { + var r0 = function() { function e(n, r) { - r === void 0 && (r = {}), this.rule = n, this.options = Object.assign({ lossy: false, safe: false }, r), this.position = 0, this.css = typeof this.rule == "string" ? this.rule : this.rule.selector, this.tokens = (0, _.default)({ css: this.css, error: this._errorGenerator(), safe: this.options.safe }); - var i = Hi(this.tokens[0], this.tokens[this.tokens.length - 1]); - this.root = new Vp.default({ source: i }), this.root.errorGenerator = this._errorGenerator(); - var o = new Ui.default({ source: { start: { line: 1, column: 1 } } }); + r === void 0 && (r = {}), this.rule = n, this.options = Object.assign({ lossy: false, safe: false }, r), this.position = 0, this.css = typeof this.rule == "string" ? this.rule : this.rule.selector, this.tokens = (0, w.default)({ css: this.css, error: this._errorGenerator(), safe: this.options.safe }); + var i = Gi(this.tokens[0], this.tokens[this.tokens.length - 1]); + this.root = new Gp.default({ source: i }), this.root.errorGenerator = this._errorGenerator(); + var o = new Wi.default({ source: { start: { line: 1, column: 1 } } }); this.root.append(o), this.current = o, this.loop(); } var t = e.prototype; @@ -13526,110 +13485,110 @@ var Xs = P((hr, Ys) => { }; }, t.attribute = function() { var r = [], i = this.currToken; - for (this.position++; this.position < this.tokens.length && this.currToken[_.FIELDS.TYPE] !== T.closeSquare; ) + for (this.position++; this.position < this.tokens.length && this.currToken[w.FIELDS.TYPE] !== _.closeSquare; ) r.push(this.currToken), this.position++; - if (this.currToken[_.FIELDS.TYPE] !== T.closeSquare) - return this.expected("closing square bracket", this.currToken[_.FIELDS.START_POS]); - var o = r.length, u = { source: lt(i[1], i[2], this.currToken[3], this.currToken[4]), sourceIndex: i[_.FIELDS.START_POS] }; - if (o === 1 && !~[T.word].indexOf(r[0][_.FIELDS.TYPE])) - return this.expected("attribute", r[0][_.FIELDS.START_POS]); - for (var s = 0, a = "", l = "", f = null, d = false; s < o; ) { - var h = r[s], m = this.content(h), p = r[s + 1]; - switch (h[_.FIELDS.TYPE]) { - case T.space: - if (d = true, this.options.lossy) + if (this.currToken[w.FIELDS.TYPE] !== _.closeSquare) + return this.expected("closing square bracket", this.currToken[w.FIELDS.START_POS]); + var o = r.length, u = { source: st(i[1], i[2], this.currToken[3], this.currToken[4]), sourceIndex: i[w.FIELDS.START_POS] }; + if (o === 1 && !~[_.word].indexOf(r[0][w.FIELDS.TYPE])) + return this.expected("attribute", r[0][w.FIELDS.START_POS]); + for (var s = 0, a = "", l = "", f = null, c = false; s < o; ) { + var p = r[s], h = this.content(p), d = r[s + 1]; + switch (p[w.FIELDS.TYPE]) { + case _.space: + if (c = true, this.options.lossy) break; if (f) { - (0, ie.ensureObject)(u, "spaces", f); - var D = u.spaces[f].after || ""; - u.spaces[f].after = D + m; - var F = (0, ie.getProp)(u, "raws", "spaces", f, "after") || null; - F && (u.raws.spaces[f].after = F + m); + (0, te.ensureObject)(u, "spaces", f); + var m = u.spaces[f].after || ""; + u.spaces[f].after = m + h; + var v = (0, te.getProp)(u, "raws", "spaces", f, "after") || null; + v && (u.raws.spaces[f].after = v + h); } else - a = a + m, l = l + m; + a = a + h, l = l + h; break; - case T.asterisk: - if (p[_.FIELDS.TYPE] === T.equals) - u.operator = m, f = "operator"; - else if ((!u.namespace || f === "namespace" && !d) && p) { - a && ((0, ie.ensureObject)(u, "spaces", "attribute"), u.spaces.attribute.before = a, a = ""), l && ((0, ie.ensureObject)(u, "raws", "spaces", "attribute"), u.raws.spaces.attribute.before = a, l = ""), u.namespace = (u.namespace || "") + m; - var b = (0, ie.getProp)(u, "raws", "namespace") || null; - b && (u.raws.namespace += m), f = "namespace"; + case _.asterisk: + if (d[w.FIELDS.TYPE] === _.equals) + u.operator = h, f = "operator"; + else if ((!u.namespace || f === "namespace" && !c) && d) { + a && ((0, te.ensureObject)(u, "spaces", "attribute"), u.spaces.attribute.before = a, a = ""), l && ((0, te.ensureObject)(u, "raws", "spaces", "attribute"), u.raws.spaces.attribute.before = a, l = ""), u.namespace = (u.namespace || "") + h; + var g = (0, te.getProp)(u, "raws", "namespace") || null; + g && (u.raws.namespace += h), f = "namespace"; } - d = false; + c = false; break; - case T.dollar: + case _.dollar: if (f === "value") { - var v = (0, ie.getProp)(u, "raws", "value"); - u.value += "$", v && (u.raws.value = v + "$"); + var b = (0, te.getProp)(u, "raws", "value"); + u.value += "$", b && (u.raws.value = b + "$"); break; } - case T.caret: - p[_.FIELDS.TYPE] === T.equals && (u.operator = m, f = "operator"), d = false; + case _.caret: + d[w.FIELDS.TYPE] === _.equals && (u.operator = h, f = "operator"), c = false; break; - case T.combinator: - if (m === "~" && p[_.FIELDS.TYPE] === T.equals && (u.operator = m, f = "operator"), m !== "|") { - d = false; + case _.combinator: + if (h === "~" && d[w.FIELDS.TYPE] === _.equals && (u.operator = h, f = "operator"), h !== "|") { + c = false; break; } - p[_.FIELDS.TYPE] === T.equals ? (u.operator = m, f = "operator") : !u.namespace && !u.attribute && (u.namespace = true), d = false; + d[w.FIELDS.TYPE] === _.equals ? (u.operator = h, f = "operator") : !u.namespace && !u.attribute && (u.namespace = true), c = false; break; - case T.word: - if (p && this.content(p) === "|" && r[s + 2] && r[s + 2][_.FIELDS.TYPE] !== T.equals && !u.operator && !u.namespace) - u.namespace = m, f = "namespace"; - else if (!u.attribute || f === "attribute" && !d) { - a && ((0, ie.ensureObject)(u, "spaces", "attribute"), u.spaces.attribute.before = a, a = ""), l && ((0, ie.ensureObject)(u, "raws", "spaces", "attribute"), u.raws.spaces.attribute.before = l, l = ""), u.attribute = (u.attribute || "") + m; - var E = (0, ie.getProp)(u, "raws", "attribute") || null; - E && (u.raws.attribute += m), f = "attribute"; - } else if (!u.value && u.value !== "" || f === "value" && !d) { - var C = (0, ie.unesc)(m), w = (0, ie.getProp)(u, "raws", "value") || "", O = u.value || ""; - u.value = O + C, u.quoteMark = null, (C !== m || w) && ((0, ie.ensureObject)(u, "raws"), u.raws.value = (w || O) + m), f = "value"; + case _.word: + if (d && this.content(d) === "|" && r[s + 2] && r[s + 2][w.FIELDS.TYPE] !== _.equals && !u.operator && !u.namespace) + u.namespace = h, f = "namespace"; + else if (!u.attribute || f === "attribute" && !c) { + a && ((0, te.ensureObject)(u, "spaces", "attribute"), u.spaces.attribute.before = a, a = ""), l && ((0, te.ensureObject)(u, "raws", "spaces", "attribute"), u.raws.spaces.attribute.before = l, l = ""), u.attribute = (u.attribute || "") + h; + var x = (0, te.getProp)(u, "raws", "attribute") || null; + x && (u.raws.attribute += h), f = "attribute"; + } else if (!u.value && u.value !== "" || f === "value" && !c) { + var F = (0, te.unesc)(h), y = (0, te.getProp)(u, "raws", "value") || "", k = u.value || ""; + u.value = k + F, u.quoteMark = null, (F !== h || y) && ((0, te.ensureObject)(u, "raws"), u.raws.value = (y || k) + h), f = "value"; } else { - var R = m === "i" || m === "I"; - (u.value || u.value === "") && (u.quoteMark || d) ? (u.insensitive = R, (!R || m === "I") && ((0, ie.ensureObject)(u, "raws"), u.raws.insensitiveFlag = m), f = "insensitive", a && ((0, ie.ensureObject)(u, "spaces", "insensitive"), u.spaces.insensitive.before = a, a = ""), l && ((0, ie.ensureObject)(u, "raws", "spaces", "insensitive"), u.raws.spaces.insensitive.before = l, l = "")) : (u.value || u.value === "") && (f = "value", u.value += m, u.raws.value && (u.raws.value += m)); + var P = h === "i" || h === "I"; + (u.value || u.value === "") && (u.quoteMark || c) ? (u.insensitive = P, (!P || h === "I") && ((0, te.ensureObject)(u, "raws"), u.raws.insensitiveFlag = h), f = "insensitive", a && ((0, te.ensureObject)(u, "spaces", "insensitive"), u.spaces.insensitive.before = a, a = ""), l && ((0, te.ensureObject)(u, "raws", "spaces", "insensitive"), u.raws.spaces.insensitive.before = l, l = "")) : (u.value || u.value === "") && (f = "value", u.value += h, u.raws.value && (u.raws.value += h)); } - d = false; + c = false; break; - case T.str: + case _.str: if (!u.attribute || !u.operator) - return this.error("Expected an attribute followed by an operator preceding the string.", { index: h[_.FIELDS.START_POS] }); - var L = (0, zs.unescapeValue)(m), Y = L.unescaped, se = L.quoteMark; - u.value = Y, u.quoteMark = se, f = "value", (0, ie.ensureObject)(u, "raws"), u.raws.value = m, d = false; + return this.error("Expected an attribute followed by an operator preceding the string.", { index: p[w.FIELDS.START_POS] }); + var B = (0, $s.unescapeValue)(h), H = B.unescaped, oe = B.quoteMark; + u.value = H, u.quoteMark = oe, f = "value", (0, te.ensureObject)(u, "raws"), u.raws.value = h, c = false; break; - case T.equals: + case _.equals: if (!u.attribute) - return this.expected("attribute", h[_.FIELDS.START_POS], m); + return this.expected("attribute", p[w.FIELDS.START_POS], h); if (u.value) - return this.error('Unexpected "=" found; an operator was already defined.', { index: h[_.FIELDS.START_POS] }); - u.operator = u.operator ? u.operator + m : m, f = "operator", d = false; + return this.error('Unexpected "=" found; an operator was already defined.', { index: p[w.FIELDS.START_POS] }); + u.operator = u.operator ? u.operator + h : h, f = "operator", c = false; break; - case T.comment: + case _.comment: if (f) - if (d || p && p[_.FIELDS.TYPE] === T.space || f === "insensitive") { - var ae = (0, ie.getProp)(u, "spaces", f, "after") || "", le = (0, ie.getProp)(u, "raws", "spaces", f, "after") || ae; - (0, ie.ensureObject)(u, "raws", "spaces", f), u.raws.spaces[f].after = le + m; + if (c || d && d[w.FIELDS.TYPE] === _.space || f === "insensitive") { + var ue = (0, te.getProp)(u, "spaces", f, "after") || "", se = (0, te.getProp)(u, "raws", "spaces", f, "after") || ue; + (0, te.ensureObject)(u, "raws", "spaces", f), u.raws.spaces[f].after = se + h; } else { - var q = u[f] || "", $ = (0, ie.getProp)(u, "raws", f) || q; - (0, ie.ensureObject)(u, "raws"), u.raws[f] = $ + m; + var $ = u[f] || "", L = (0, te.getProp)(u, "raws", f) || $; + (0, te.ensureObject)(u, "raws"), u.raws[f] = L + h; } else - l = l + m; + l = l + h; break; default: - return this.error('Unexpected "' + m + '" found.', { index: h[_.FIELDS.START_POS] }); + return this.error('Unexpected "' + h + '" found.', { index: p[w.FIELDS.START_POS] }); } s++; } - Ct(u, "attribute"), Ct(u, "namespace"), this.newNode(new zs.default(u)), this.position++; + wt(u, "attribute"), wt(u, "namespace"), this.newNode(new $s.default(u)), this.position++; }, t.parseWhitespaceEquivalentTokens = function(r) { r < 0 && (r = this.tokens.length); var i = this.position, o = [], u = "", s = void 0; do - if (Yi[this.currToken[_.FIELDS.TYPE]]) + if (Hi[this.currToken[w.FIELDS.TYPE]]) this.options.lossy || (u += this.content()); - else if (this.currToken[_.FIELDS.TYPE] === T.comment) { + else if (this.currToken[w.FIELDS.TYPE] === _.comment) { var a = {}; - u && (a.before = u, u = ""), s = new Us.default({ value: this.content(), source: Et(this.currToken), sourceIndex: this.currToken[_.FIELDS.START_POS], spaces: a }), o.push(s); + u && (a.before = u, u = ""), s = new Ns.default({ value: this.content(), source: Ft(this.currToken), sourceIndex: this.currToken[w.FIELDS.START_POS], spaces: a }), o.push(s); } while (++this.position < r); if (u) { @@ -13637,7 +13596,7 @@ var Xs = P((hr, Ys) => { s.spaces.after = u; else if (!this.options.lossy) { var l = this.tokens[i], f = this.tokens[this.position - 1]; - o.push(new zi.default({ value: "", source: lt(l[_.FIELDS.START_LINE], l[_.FIELDS.START_COL], f[_.FIELDS.END_LINE], f[_.FIELDS.END_COL]), sourceIndex: l[_.FIELDS.START_POS], spaces: { before: u, after: "" } })); + o.push(new qi.default({ value: "", source: st(l[w.FIELDS.START_LINE], l[w.FIELDS.START_COL], f[w.FIELDS.END_LINE], f[w.FIELDS.END_COL]), sourceIndex: l[w.FIELDS.START_POS], spaces: { before: u, after: "" } })); } } return o; @@ -13646,18 +13605,18 @@ var Xs = P((hr, Ys) => { i === void 0 && (i = false); var u = "", s = ""; r.forEach(function(l) { - var f = o.lossySpace(l.spaces.before, i), d = o.lossySpace(l.rawSpaceBefore, i); - u += f + o.lossySpace(l.spaces.after, i && f.length === 0), s += f + l.value + o.lossySpace(l.rawSpaceAfter, i && d.length === 0); + var f = o.lossySpace(l.spaces.before, i), c = o.lossySpace(l.rawSpaceBefore, i); + u += f + o.lossySpace(l.spaces.after, i && f.length === 0), s += f + l.value + o.lossySpace(l.rawSpaceAfter, i && c.length === 0); }), s === u && (s = void 0); var a = { space: u, rawSpace: s }; return a; }, t.isNamedCombinator = function(r) { - return r === void 0 && (r = this.position), this.tokens[r + 0] && this.tokens[r + 0][_.FIELDS.TYPE] === T.slash && this.tokens[r + 1] && this.tokens[r + 1][_.FIELDS.TYPE] === T.word && this.tokens[r + 2] && this.tokens[r + 2][_.FIELDS.TYPE] === T.slash; + return r === void 0 && (r = this.position), this.tokens[r + 0] && this.tokens[r + 0][w.FIELDS.TYPE] === _.slash && this.tokens[r + 1] && this.tokens[r + 1][w.FIELDS.TYPE] === _.word && this.tokens[r + 2] && this.tokens[r + 2][w.FIELDS.TYPE] === _.slash; }, t.namedCombinator = function() { if (this.isNamedCombinator()) { - var r = this.content(this.tokens[this.position + 1]), i = (0, ie.unesc)(r).toLowerCase(), o = {}; + var r = this.content(this.tokens[this.position + 1]), i = (0, te.unesc)(r).toLowerCase(), o = {}; i !== r && (o.value = "/" + r + "/"); - var u = new Gi.default({ value: "/" + i + "/", source: lt(this.currToken[_.FIELDS.START_LINE], this.currToken[_.FIELDS.START_COL], this.tokens[this.position + 2][_.FIELDS.END_LINE], this.tokens[this.position + 2][_.FIELDS.END_COL]), sourceIndex: this.currToken[_.FIELDS.START_POS], raws: o }); + var u = new Ui.default({ value: "/" + i + "/", source: st(this.currToken[w.FIELDS.START_LINE], this.currToken[w.FIELDS.START_COL], this.tokens[this.position + 2][w.FIELDS.END_LINE], this.tokens[this.position + 2][w.FIELDS.END_COL]), sourceIndex: this.currToken[w.FIELDS.START_POS], raws: o }); return this.position = this.position + 3, u; } else this.unexpected(); @@ -13666,7 +13625,7 @@ var Xs = P((hr, Ys) => { if (this.content() === "|") return this.namespace(); var i = this.locateNextMeaningfulToken(this.position); - if (i < 0 || this.tokens[i][_.FIELDS.TYPE] === T.comma) { + if (i < 0 || this.tokens[i][w.FIELDS.TYPE] === _.comma) { var o = this.parseWhitespaceEquivalentTokens(i); if (o.length > 0) { var u = this.current.last; @@ -13674,53 +13633,53 @@ var Xs = P((hr, Ys) => { var s = this.convertWhitespaceNodesToSpace(o), a = s.space, l = s.rawSpace; l !== void 0 && (u.rawSpaceAfter += l), u.spaces.after += a; } else - o.forEach(function(w) { - return r.newNode(w); + o.forEach(function(y) { + return r.newNode(y); }); } return; } - var f = this.currToken, d = void 0; - i > this.position && (d = this.parseWhitespaceEquivalentTokens(i)); - var h; - if (this.isNamedCombinator() ? h = this.namedCombinator() : this.currToken[_.FIELDS.TYPE] === T.combinator ? (h = new Gi.default({ value: this.content(), source: Et(this.currToken), sourceIndex: this.currToken[_.FIELDS.START_POS] }), this.position++) : Yi[this.currToken[_.FIELDS.TYPE]] || d || this.unexpected(), h) { - if (d) { - var m = this.convertWhitespaceNodesToSpace(d), p = m.space, D = m.rawSpace; - h.spaces.before = p, h.rawSpaceBefore = D; + var f = this.currToken, c = void 0; + i > this.position && (c = this.parseWhitespaceEquivalentTokens(i)); + var p; + if (this.isNamedCombinator() ? p = this.namedCombinator() : this.currToken[w.FIELDS.TYPE] === _.combinator ? (p = new Ui.default({ value: this.content(), source: Ft(this.currToken), sourceIndex: this.currToken[w.FIELDS.START_POS] }), this.position++) : Hi[this.currToken[w.FIELDS.TYPE]] || c || this.unexpected(), p) { + if (c) { + var h = this.convertWhitespaceNodesToSpace(c), d = h.space, m = h.rawSpace; + p.spaces.before = d, p.rawSpaceBefore = m; } } else { - var F = this.convertWhitespaceNodesToSpace(d, true), b = F.space, v = F.rawSpace; - v || (v = b); - var E = {}, C = { spaces: {} }; - b.endsWith(" ") && v.endsWith(" ") ? (E.before = b.slice(0, b.length - 1), C.spaces.before = v.slice(0, v.length - 1)) : b.startsWith(" ") && v.startsWith(" ") ? (E.after = b.slice(1), C.spaces.after = v.slice(1)) : C.value = v, h = new Gi.default({ value: " ", source: Hi(f, this.tokens[this.position - 1]), sourceIndex: f[_.FIELDS.START_POS], spaces: E, raws: C }); + var v = this.convertWhitespaceNodesToSpace(c, true), g = v.space, b = v.rawSpace; + b || (b = g); + var x = {}, F = { spaces: {} }; + g.endsWith(" ") && b.endsWith(" ") ? (x.before = g.slice(0, g.length - 1), F.spaces.before = b.slice(0, b.length - 1)) : g.startsWith(" ") && b.startsWith(" ") ? (x.after = g.slice(1), F.spaces.after = b.slice(1)) : F.value = b, p = new Ui.default({ value: " ", source: Gi(f, this.tokens[this.position - 1]), sourceIndex: f[w.FIELDS.START_POS], spaces: x, raws: F }); } - return this.currToken && this.currToken[_.FIELDS.TYPE] === T.space && (h.spaces.after = this.optionalSpace(this.content()), this.position++), this.newNode(h); + return this.currToken && this.currToken[w.FIELDS.TYPE] === _.space && (p.spaces.after = this.optionalSpace(this.content()), this.position++), this.newNode(p); }, t.comma = function() { if (this.position === this.tokens.length - 1) { this.root.trailingComma = true, this.position++; return; } this.current._inferEndPosition(); - var r = new Ui.default({ source: { start: js(this.tokens[this.position + 1]) } }); + var r = new Wi.default({ source: { start: qs(this.tokens[this.position + 1]) } }); this.current.parent.append(r), this.current = r, this.position++; }, t.comment = function() { var r = this.currToken; - this.newNode(new Us.default({ value: this.content(), source: Et(r), sourceIndex: r[_.FIELDS.START_POS] })), this.position++; + this.newNode(new Ns.default({ value: this.content(), source: Ft(r), sourceIndex: r[w.FIELDS.START_POS] })), this.position++; }, t.error = function(r, i) { throw this.root.error(r, i); }, t.missingBackslash = function() { - return this.error("Expected a backslash preceding the semicolon.", { index: this.currToken[_.FIELDS.START_POS] }); + return this.error("Expected a backslash preceding the semicolon.", { index: this.currToken[w.FIELDS.START_POS] }); }, t.missingParenthesis = function() { - return this.expected("opening parenthesis", this.currToken[_.FIELDS.START_POS]); + return this.expected("opening parenthesis", this.currToken[w.FIELDS.START_POS]); }, t.missingSquareBracket = function() { - return this.expected("opening square bracket", this.currToken[_.FIELDS.START_POS]); + return this.expected("opening square bracket", this.currToken[w.FIELDS.START_POS]); }, t.unexpected = function() { - return this.error("Unexpected '" + this.content() + "'. Escaping special characters with \\ may help.", this.currToken[_.FIELDS.START_POS]); + return this.error("Unexpected '" + this.content() + "'. Escaping special characters with \\ may help.", this.currToken[w.FIELDS.START_POS]); }, t.namespace = function() { var r = this.prevToken && this.content(this.prevToken) || true; - if (this.nextToken[_.FIELDS.TYPE] === T.word) + if (this.nextToken[w.FIELDS.TYPE] === _.word) return this.position++, this.word(r); - if (this.nextToken[_.FIELDS.TYPE] === T.asterisk) + if (this.nextToken[w.FIELDS.TYPE] === _.asterisk) return this.position++, this.universal(r); }, t.nesting = function() { if (this.nextToken) { @@ -13731,82 +13690,82 @@ var Xs = P((hr, Ys) => { } } var i = this.currToken; - this.newNode(new Zp.default({ value: this.content(), source: Et(i), sourceIndex: i[_.FIELDS.START_POS] })), this.position++; + this.newNode(new Qp.default({ value: this.content(), source: Ft(i), sourceIndex: i[w.FIELDS.START_POS] })), this.position++; }, t.parentheses = function() { var r = this.current.last, i = 1; - if (this.position++, r && r.type === t0.PSEUDO) { - var o = new Ui.default({ source: { start: js(this.tokens[this.position - 1]) } }), u = this.current; + if (this.position++, r && r.type === Jp.PSEUDO) { + var o = new Wi.default({ source: { start: qs(this.tokens[this.position - 1]) } }), u = this.current; for (r.append(o), this.current = o; this.position < this.tokens.length && i; ) - this.currToken[_.FIELDS.TYPE] === T.openParenthesis && i++, this.currToken[_.FIELDS.TYPE] === T.closeParenthesis && i--, i ? this.parse() : (this.current.source.end = Hs(this.currToken), this.current.parent.source.end = Hs(this.currToken), this.position++); + this.currToken[w.FIELDS.TYPE] === _.openParenthesis && i++, this.currToken[w.FIELDS.TYPE] === _.closeParenthesis && i--, i ? this.parse() : (this.current.source.end = Us(this.currToken), this.current.parent.source.end = Us(this.currToken), this.position++); this.current = u; } else { for (var s = this.currToken, a = "(", l; this.position < this.tokens.length && i; ) - this.currToken[_.FIELDS.TYPE] === T.openParenthesis && i++, this.currToken[_.FIELDS.TYPE] === T.closeParenthesis && i--, l = this.currToken, a += this.parseParenthesisToken(this.currToken), this.position++; - r ? r.appendToPropertyAndEscape("value", a, a) : this.newNode(new zi.default({ value: a, source: lt(s[_.FIELDS.START_LINE], s[_.FIELDS.START_COL], l[_.FIELDS.END_LINE], l[_.FIELDS.END_COL]), sourceIndex: s[_.FIELDS.START_POS] })); + this.currToken[w.FIELDS.TYPE] === _.openParenthesis && i++, this.currToken[w.FIELDS.TYPE] === _.closeParenthesis && i--, l = this.currToken, a += this.parseParenthesisToken(this.currToken), this.position++; + r ? r.appendToPropertyAndEscape("value", a, a) : this.newNode(new qi.default({ value: a, source: st(s[w.FIELDS.START_LINE], s[w.FIELDS.START_COL], l[w.FIELDS.END_LINE], l[w.FIELDS.END_COL]), sourceIndex: s[w.FIELDS.START_POS] })); } if (i) - return this.expected("closing parenthesis", this.currToken[_.FIELDS.START_POS]); + return this.expected("closing parenthesis", this.currToken[w.FIELDS.START_POS]); }, t.pseudo = function() { - for (var r = this, i = "", o = this.currToken; this.currToken && this.currToken[_.FIELDS.TYPE] === T.colon; ) + for (var r = this, i = "", o = this.currToken; this.currToken && this.currToken[w.FIELDS.TYPE] === _.colon; ) i += this.content(), this.position++; if (!this.currToken) return this.expected(["pseudo-class", "pseudo-element"], this.position - 1); - if (this.currToken[_.FIELDS.TYPE] === T.word) + if (this.currToken[w.FIELDS.TYPE] === _.word) this.splitWord(false, function(u, s) { - i += u, r.newNode(new Kp.default({ value: i, source: Hi(o, r.currToken), sourceIndex: o[_.FIELDS.START_POS] })), s > 1 && r.nextToken && r.nextToken[_.FIELDS.TYPE] === T.openParenthesis && r.error("Misplaced parenthesis.", { index: r.nextToken[_.FIELDS.START_POS] }); + i += u, r.newNode(new Yp.default({ value: i, source: Gi(o, r.currToken), sourceIndex: o[w.FIELDS.START_POS] })), s > 1 && r.nextToken && r.nextToken[w.FIELDS.TYPE] === _.openParenthesis && r.error("Misplaced parenthesis.", { index: r.nextToken[w.FIELDS.START_POS] }); }); else - return this.expected(["pseudo-class", "pseudo-element"], this.currToken[_.FIELDS.START_POS]); + return this.expected(["pseudo-class", "pseudo-element"], this.currToken[w.FIELDS.START_POS]); }, t.space = function() { var r = this.content(); - this.position === 0 || this.prevToken[_.FIELDS.TYPE] === T.comma || this.prevToken[_.FIELDS.TYPE] === T.openParenthesis || this.current.nodes.every(function(i) { + this.position === 0 || this.prevToken[w.FIELDS.TYPE] === _.comma || this.prevToken[w.FIELDS.TYPE] === _.openParenthesis || this.current.nodes.every(function(i) { return i.type === "comment"; - }) ? (this.spaces = this.optionalSpace(r), this.position++) : this.position === this.tokens.length - 1 || this.nextToken[_.FIELDS.TYPE] === T.comma || this.nextToken[_.FIELDS.TYPE] === T.closeParenthesis ? (this.current.last.spaces.after = this.optionalSpace(r), this.position++) : this.combinator(); + }) ? (this.spaces = this.optionalSpace(r), this.position++) : this.position === this.tokens.length - 1 || this.nextToken[w.FIELDS.TYPE] === _.comma || this.nextToken[w.FIELDS.TYPE] === _.closeParenthesis ? (this.current.last.spaces.after = this.optionalSpace(r), this.position++) : this.combinator(); }, t.string = function() { var r = this.currToken; - this.newNode(new zi.default({ value: this.content(), source: Et(r), sourceIndex: r[_.FIELDS.START_POS] })), this.position++; + this.newNode(new qi.default({ value: this.content(), source: Ft(r), sourceIndex: r[w.FIELDS.START_POS] })), this.position++; }, t.universal = function(r) { var i = this.nextToken; if (i && this.content(i) === "|") return this.position++, this.namespace(); var o = this.currToken; - this.newNode(new Jp.default({ value: this.content(), source: Et(o), sourceIndex: o[_.FIELDS.START_POS] }), r), this.position++; + this.newNode(new Xp.default({ value: this.content(), source: Ft(o), sourceIndex: o[w.FIELDS.START_POS] }), r), this.position++; }, t.splitWord = function(r, i) { - for (var o = this, u = this.nextToken, s = this.content(); u && ~[T.dollar, T.caret, T.equals, T.word].indexOf(u[_.FIELDS.TYPE]); ) { + for (var o = this, u = this.nextToken, s = this.content(); u && ~[_.dollar, _.caret, _.equals, _.word].indexOf(u[w.FIELDS.TYPE]); ) { this.position++; var a = this.content(); if (s += a, a.lastIndexOf("\\") === a.length - 1) { var l = this.nextToken; - l && l[_.FIELDS.TYPE] === T.space && (s += this.requiredSpace(this.content(l)), this.position++); + l && l[w.FIELDS.TYPE] === _.space && (s += this.requiredSpace(this.content(l)), this.position++); } u = this.nextToken; } - var f = Vi(s, ".").filter(function(p) { - var D = s[p - 1] === "\\", F = /^\d+\.\d+%$/.test(s); - return !D && !F; - }), d = Vi(s, "#").filter(function(p) { - return s[p - 1] !== "\\"; - }), h = Vi(s, "#{"); - h.length && (d = d.filter(function(p) { - return !~h.indexOf(p); + var f = ji(s, ".").filter(function(d) { + var m = s[d - 1] === "\\", v = /^\d+\.\d+%$/.test(s); + return !m && !v; + }), c = ji(s, "#").filter(function(d) { + return s[d - 1] !== "\\"; + }), p = ji(s, "#{"); + p.length && (c = c.filter(function(d) { + return !~p.indexOf(d); })); - var m = (0, e0.default)(i0([0].concat(f, d))); - m.forEach(function(p, D) { - var F = m[D + 1] || s.length, b = s.slice(p, F); - if (D === 0 && i) - return i.call(o, b, m.length); - var v, E = o.currToken, C = E[_.FIELDS.START_POS] + m[D], w = lt(E[1], E[2] + p, E[3], E[2] + (F - 1)); - if (~f.indexOf(p)) { - var O = { value: b.slice(1), source: w, sourceIndex: C }; - v = new Yp.default(Ct(O, "value")); - } else if (~d.indexOf(p)) { - var R = { value: b.slice(1), source: w, sourceIndex: C }; - v = new Xp.default(Ct(R, "value")); + var h = (0, Kp.default)(t0([0].concat(f, c))); + h.forEach(function(d, m) { + var v = h[m + 1] || s.length, g = s.slice(d, v); + if (m === 0 && i) + return i.call(o, g, h.length); + var b, x = o.currToken, F = x[w.FIELDS.START_POS] + h[m], y = st(x[1], x[2] + d, x[3], x[2] + (v - 1)); + if (~f.indexOf(d)) { + var k = { value: g.slice(1), source: y, sourceIndex: F }; + b = new jp.default(wt(k, "value")); + } else if (~c.indexOf(d)) { + var P = { value: g.slice(1), source: y, sourceIndex: F }; + b = new Hp.default(wt(P, "value")); } else { - var L = { value: b, source: w, sourceIndex: C }; - Ct(L, "value"), v = new Qp.default(L); + var B = { value: g, source: y, sourceIndex: F }; + wt(B, "value"), b = new Vp.default(B); } - o.newNode(v, r), r = null; + o.newNode(b, r), r = null; }), this.position++; }, t.word = function(r) { var i = this.nextToken; @@ -13816,50 +13775,50 @@ var Xs = P((hr, Ys) => { this.parse(true); return this.current._inferEndPosition(), this.root; }, t.parse = function(r) { - switch (this.currToken[_.FIELDS.TYPE]) { - case T.space: + switch (this.currToken[w.FIELDS.TYPE]) { + case _.space: this.space(); break; - case T.comment: + case _.comment: this.comment(); break; - case T.openParenthesis: + case _.openParenthesis: this.parentheses(); break; - case T.closeParenthesis: + case _.closeParenthesis: r && this.missingParenthesis(); break; - case T.openSquare: + case _.openSquare: this.attribute(); break; - case T.dollar: - case T.caret: - case T.equals: - case T.word: + case _.dollar: + case _.caret: + case _.equals: + case _.word: this.word(); break; - case T.colon: + case _.colon: this.pseudo(); break; - case T.comma: + case _.comma: this.comma(); break; - case T.asterisk: + case _.asterisk: this.universal(); break; - case T.ampersand: + case _.ampersand: this.nesting(); break; - case T.slash: - case T.combinator: + case _.slash: + case _.combinator: this.combinator(); break; - case T.str: + case _.str: this.string(); break; - case T.closeSquare: + case _.closeSquare: this.missingSquareBracket(); - case T.semicolon: + case _.semicolon: this.missingBackslash(); default: this.unexpected(); @@ -13879,21 +13838,21 @@ var Xs = P((hr, Ys) => { return this.options.lossy ? i ? " " : "" : r; }, t.parseParenthesisToken = function(r) { var i = this.content(r); - return r[_.FIELDS.TYPE] === T.space ? this.requiredSpace(i) : i; + return r[w.FIELDS.TYPE] === _.space ? this.requiredSpace(i) : i; }, t.newNode = function(r, i) { - return i && (/^ +$/.test(i) && (this.options.lossy || (this.spaces = (this.spaces || "") + i), i = true), r.namespace = i, Ct(r, "namespace")), this.spaces && (r.spaces.before = this.spaces, this.spaces = ""), this.current.append(r); + return i && (/^ +$/.test(i) && (this.options.lossy || (this.spaces = (this.spaces || "") + i), i = true), r.namespace = i, wt(r, "namespace")), this.spaces && (r.spaces.before = this.spaces, this.spaces = ""), this.current.append(r); }, t.content = function(r) { - return r === void 0 && (r = this.currToken), this.css.slice(r[_.FIELDS.START_POS], r[_.FIELDS.END_POS]); + return r === void 0 && (r = this.currToken), this.css.slice(r[w.FIELDS.START_POS], r[w.FIELDS.END_POS]); }, t.locateNextMeaningfulToken = function(r) { r === void 0 && (r = this.position + 1); for (var i = r; i < this.tokens.length; ) - if (n0[this.tokens[i][_.FIELDS.TYPE]]) { + if (e0[this.tokens[i][w.FIELDS.TYPE]]) { i++; continue; } else return i; return -1; - }, r0(e, [{ key: "currToken", get: function() { + }, Zp(e, [{ key: "currToken", get: function() { return this.tokens[this.position]; } }, { key: "nextToken", get: function() { return this.tokens[this.position + 1]; @@ -13901,19 +13860,18 @@ var Xs = P((hr, Ys) => { return this.tokens[this.position - 1]; } }]), e; }(); - hr.default = o0; - Ys.exports = hr.default; + pr.default = r0; + Gs.exports = pr.default; }); -var Ks = P((mr, Qs) => { +var Vs = T((hr, Hs) => { "use strict"; - c(); - mr.__esModule = true; - mr.default = void 0; - var u0 = s0(Xs()); - function s0(e) { + hr.__esModule = true; + hr.default = void 0; + var n0 = i0(js()); + function i0(e) { return e && e.__esModule ? e : { default: e }; } - var a0 = function() { + var o0 = function() { function e(n, r) { this.func = n || function() { }, this.funcRes = null, this.options = r; @@ -13929,7 +13887,7 @@ var Ks = P((mr, Qs) => { return i.lossless === false; }, t._root = function(r, i) { i === void 0 && (i = {}); - var o = new u0.default(r, this._parseOptions(i)); + var o = new n0.default(r, this._parseOptions(i)); return o.root; }, t._parseOptions = function(r) { return { lossy: this._isLossy(r) }; @@ -13975,158 +13933,154 @@ var Ks = P((mr, Qs) => { return o.string || o.root.toString(); }, e; }(); - mr.default = a0; - Qs.exports = mr.default; + hr.default = o0; + Hs.exports = hr.default; }); -var Js = P((te) => { +var Ys = T((J) => { "use strict"; - c(); - te.__esModule = true; - te.universal = te.tag = te.string = te.selector = te.root = te.pseudo = te.nesting = te.id = te.comment = te.combinator = te.className = te.attribute = void 0; - var l0 = Ae(Ii()), f0 = Ae(Di()), c0 = Ae(Mi()), d0 = Ae(bi()), p0 = Ae(yi()), h0 = Ae($i()), m0 = Ae(Si()), D0 = Ae(ci()), g0 = Ae(pi()), b0 = Ae(Ci()), v0 = Ae(wi()), y0 = Ae(Ri()); - function Ae(e) { + J.__esModule = true; + J.universal = J.tag = J.string = J.selector = J.root = J.pseudo = J.nesting = J.id = J.comment = J.combinator = J.className = J.attribute = void 0; + var u0 = Se(Oi()), s0 = Se(hi()), a0 = Se(Ri()), l0 = Se(Di()), f0 = Se(bi()), c0 = Se(Mi()), d0 = Se(Ci()), p0 = Se(li()), h0 = Se(ci()), m0 = Se(wi()), D0 = Se(xi()), g0 = Se(Bi()); + function Se(e) { return e && e.__esModule ? e : { default: e }; } + var b0 = function(t) { + return new u0.default(t); + }; + J.attribute = b0; + var v0 = function(t) { + return new s0.default(t); + }; + J.className = v0; + var y0 = function(t) { + return new a0.default(t); + }; + J.combinator = y0; var x0 = function(t) { return new l0.default(t); }; - te.attribute = x0; + J.comment = x0; var F0 = function(t) { return new f0.default(t); }; - te.className = F0; + J.id = F0; var w0 = function(t) { return new c0.default(t); }; - te.combinator = w0; + J.nesting = w0; var E0 = function(t) { return new d0.default(t); }; - te.comment = E0; + J.pseudo = E0; var C0 = function(t) { return new p0.default(t); }; - te.id = C0; + J.root = C0; var _0 = function(t) { return new h0.default(t); }; - te.nesting = _0; + J.selector = _0; var S0 = function(t) { return new m0.default(t); }; - te.pseudo = S0; + J.string = S0; var k0 = function(t) { return new D0.default(t); }; - te.root = k0; + J.tag = k0; var T0 = function(t) { return new g0.default(t); }; - te.selector = T0; - var A0 = function(t) { - return new b0.default(t); - }; - te.string = A0; - var O0 = function(t) { - return new v0.default(t); - }; - te.tag = O0; - var P0 = function(t) { - return new y0.default(t); - }; - te.universal = P0; + J.universal = T0; }); -var ra = P((j) => { +var Js = T((z) => { "use strict"; - c(); - j.__esModule = true; - j.isNode = Xi; - j.isPseudoElement = ta; - j.isPseudoClass = z0; - j.isContainer = G0; - j.isNamespace = j0; - j.isUniversal = j.isTag = j.isString = j.isSelector = j.isRoot = j.isPseudo = j.isNesting = j.isIdentifier = j.isComment = j.isCombinator = j.isClassName = j.isAttribute = void 0; - var oe = ge(), we, I0 = (we = {}, we[oe.ATTRIBUTE] = true, we[oe.CLASS] = true, we[oe.COMBINATOR] = true, we[oe.COMMENT] = true, we[oe.ID] = true, we[oe.NESTING] = true, we[oe.PSEUDO] = true, we[oe.ROOT] = true, we[oe.SELECTOR] = true, we[oe.STRING] = true, we[oe.TAG] = true, we[oe.UNIVERSAL] = true, we); - function Xi(e) { - return typeof e == "object" && I0[e.type]; - } - function Oe(e, t) { - return Xi(t) && t.type === e; - } - var Zs = Oe.bind(null, oe.ATTRIBUTE); - j.isAttribute = Zs; - var B0 = Oe.bind(null, oe.CLASS); - j.isClassName = B0; - var R0 = Oe.bind(null, oe.COMBINATOR); - j.isCombinator = R0; - var L0 = Oe.bind(null, oe.COMMENT); - j.isComment = L0; - var M0 = Oe.bind(null, oe.ID); - j.isIdentifier = M0; - var N0 = Oe.bind(null, oe.NESTING); - j.isNesting = N0; - var Qi = Oe.bind(null, oe.PSEUDO); - j.isPseudo = Qi; - var $0 = Oe.bind(null, oe.ROOT); - j.isRoot = $0; - var W0 = Oe.bind(null, oe.SELECTOR); - j.isSelector = W0; - var q0 = Oe.bind(null, oe.STRING); - j.isString = q0; - var ea = Oe.bind(null, oe.TAG); - j.isTag = ea; - var U0 = Oe.bind(null, oe.UNIVERSAL); - j.isUniversal = U0; - function ta(e) { - return Qi(e) && e.value && (e.value.startsWith("::") || e.value.toLowerCase() === ":before" || e.value.toLowerCase() === ":after" || e.value.toLowerCase() === ":first-letter" || e.value.toLowerCase() === ":first-line"); - } - function z0(e) { - return Qi(e) && !ta(e); - } - function G0(e) { - return !!(Xi(e) && e.walk); - } - function j0(e) { - return Zs(e) || ea(e); + z.__esModule = true; + z.isNode = Vi; + z.isPseudoElement = Ks; + z.isPseudoClass = W0; + z.isContainer = q0; + z.isNamespace = U0; + z.isUniversal = z.isTag = z.isString = z.isSelector = z.isRoot = z.isPseudo = z.isNesting = z.isIdentifier = z.isComment = z.isCombinator = z.isClassName = z.isAttribute = void 0; + var re = pe(), ye, A0 = (ye = {}, ye[re.ATTRIBUTE] = true, ye[re.CLASS] = true, ye[re.COMBINATOR] = true, ye[re.COMMENT] = true, ye[re.ID] = true, ye[re.NESTING] = true, ye[re.PSEUDO] = true, ye[re.ROOT] = true, ye[re.SELECTOR] = true, ye[re.STRING] = true, ye[re.TAG] = true, ye[re.UNIVERSAL] = true, ye); + function Vi(e) { + return typeof e == "object" && A0[e.type]; + } + function ke(e, t) { + return Vi(t) && t.type === e; + } + var Xs = ke.bind(null, re.ATTRIBUTE); + z.isAttribute = Xs; + var O0 = ke.bind(null, re.CLASS); + z.isClassName = O0; + var P0 = ke.bind(null, re.COMBINATOR); + z.isCombinator = P0; + var B0 = ke.bind(null, re.COMMENT); + z.isComment = B0; + var I0 = ke.bind(null, re.ID); + z.isIdentifier = I0; + var R0 = ke.bind(null, re.NESTING); + z.isNesting = R0; + var Yi = ke.bind(null, re.PSEUDO); + z.isPseudo = Yi; + var L0 = ke.bind(null, re.ROOT); + z.isRoot = L0; + var M0 = ke.bind(null, re.SELECTOR); + z.isSelector = M0; + var N0 = ke.bind(null, re.STRING); + z.isString = N0; + var Qs = ke.bind(null, re.TAG); + z.isTag = Qs; + var $0 = ke.bind(null, re.UNIVERSAL); + z.isUniversal = $0; + function Ks(e) { + return Yi(e) && e.value && (e.value.startsWith("::") || e.value.toLowerCase() === ":before" || e.value.toLowerCase() === ":after" || e.value.toLowerCase() === ":first-letter" || e.value.toLowerCase() === ":first-line"); + } + function W0(e) { + return Yi(e) && !Ks(e); + } + function q0(e) { + return !!(Vi(e) && e.walk); + } + function U0(e) { + return Xs(e) || Qs(e); } }); -var na = P((Me) => { +var Zs = T((Pe) => { "use strict"; - c(); - Me.__esModule = true; - var Ki = ge(); - Object.keys(Ki).forEach(function(e) { - e === "default" || e === "__esModule" || e in Me && Me[e] === Ki[e] || (Me[e] = Ki[e]); + Pe.__esModule = true; + var Xi = pe(); + Object.keys(Xi).forEach(function(e) { + e === "default" || e === "__esModule" || e in Pe && Pe[e] === Xi[e] || (Pe[e] = Xi[e]); }); - var Ji = Js(); - Object.keys(Ji).forEach(function(e) { - e === "default" || e === "__esModule" || e in Me && Me[e] === Ji[e] || (Me[e] = Ji[e]); + var Qi = Ys(); + Object.keys(Qi).forEach(function(e) { + e === "default" || e === "__esModule" || e in Pe && Pe[e] === Qi[e] || (Pe[e] = Qi[e]); }); - var Zi = ra(); - Object.keys(Zi).forEach(function(e) { - e === "default" || e === "__esModule" || e in Me && Me[e] === Zi[e] || (Me[e] = Zi[e]); + var Ki = Js(); + Object.keys(Ki).forEach(function(e) { + e === "default" || e === "__esModule" || e in Pe && Pe[e] === Ki[e] || (Pe[e] = Ki[e]); }); }); -var ua = P((Dr, oa) => { +var ra = T((mr, ta) => { "use strict"; - c(); - Dr.__esModule = true; - Dr.default = void 0; - var H0 = X0(Ks()), V0 = Y0(na()); - function ia() { + mr.__esModule = true; + mr.default = void 0; + var z0 = H0(Vs()), G0 = j0(Zs()); + function ea() { if (typeof WeakMap != "function") return null; var e = /* @__PURE__ */ new WeakMap(); - return ia = function() { + return ea = function() { return e; }, e; } - function Y0(e) { + function j0(e) { if (e && e.__esModule) return e; if (e === null || typeof e != "object" && typeof e != "function") return { default: e }; - var t = ia(); + var t = ea(); if (t && t.has(e)) return t.get(e); var n = {}, r = Object.defineProperty && Object.getOwnPropertyDescriptor; @@ -14137,148 +14091,142 @@ var ua = P((Dr, oa) => { } return n.default = e, t && t.set(e, n), n; } - function X0(e) { + function H0(e) { return e && e.__esModule ? e : { default: e }; } - var eo = function(t) { - return new H0.default(t); + var Ji = function(t) { + return new z0.default(t); }; - Object.assign(eo, V0); - delete eo.__esModule; - var Q0 = eo; - Dr.default = Q0; - oa.exports = Dr.default; + Object.assign(Ji, G0); + delete Ji.__esModule; + var V0 = Ji; + mr.default = V0; + ta.exports = mr.default; }); -var sa = P((to) => { +var na = T((Zi) => { "use strict"; - c(); - Object.defineProperty(to, "__esModule", { value: true }); - Object.defineProperty(to, "default", { enumerable: true, get: () => K0 }); - function K0(e) { + Object.defineProperty(Zi, "__esModule", { value: true }); + Object.defineProperty(Zi, "default", { enumerable: true, get: () => Y0 }); + function Y0(e) { return e.replace(/\\,/g, "\\2c "); } }); -var la = P((vb, aa) => { +var oa = T((mb, ia) => { "use strict"; - c(); - aa.exports = { 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] }; + ia.exports = { 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] }; }); -var no = P((ro) => { +var to = T((eo) => { "use strict"; - c(); - Object.defineProperty(ro, "__esModule", { value: true }); - function J0(e, t) { + Object.defineProperty(eo, "__esModule", { value: true }); + function X0(e, t) { for (var n in t) Object.defineProperty(e, n, { enumerable: true, get: t[n] }); } - J0(ro, { parseColor: () => ih, formatColor: () => oh }); - var fa = Z0(la()); - function Z0(e) { + X0(eo, { parseColor: () => th, formatColor: () => rh }); + var ua = Q0(oa()); + function Q0(e) { return e && e.__esModule ? e : { default: e }; } - var eh = /^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i, th = /^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i, et2 = /(?:\d+|\d*\.\d+)%?/, pn = /(?:\s*,\s*|\s+)/, ca = /\s*[,/]\s*/, tt = /var\(--(?:[^ )]*?)\)/, rh = new RegExp(`^(rgb)a?\\(\\s*(${et2.source}|${tt.source})(?:${pn.source}(${et2.source}|${tt.source}))?(?:${pn.source}(${et2.source}|${tt.source}))?(?:${ca.source}(${et2.source}|${tt.source}))?\\s*\\)$`), nh = new RegExp(`^(hsl)a?\\(\\s*((?:${et2.source})(?:deg|rad|grad|turn)?|${tt.source})(?:${pn.source}(${et2.source}|${tt.source}))?(?:${pn.source}(${et2.source}|${tt.source}))?(?:${ca.source}(${et2.source}|${tt.source}))?\\s*\\)$`); - function ih(e, { loose: t = false } = {}) { + var K0 = /^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i, J0 = /^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i, Ke = /(?:\d+|\d*\.\d+)%?/, fn = /(?:\s*,\s*|\s+)/, sa = /\s*[,/]\s*/, Je = /var\(--(?:[^ )]*?)\)/, Z0 = new RegExp(`^(rgb)a?\\(\\s*(${Ke.source}|${Je.source})(?:${fn.source}(${Ke.source}|${Je.source}))?(?:${fn.source}(${Ke.source}|${Je.source}))?(?:${sa.source}(${Ke.source}|${Je.source}))?\\s*\\)$`), eh = new RegExp(`^(hsl)a?\\(\\s*((?:${Ke.source})(?:deg|rad|grad|turn)?|${Je.source})(?:${fn.source}(${Ke.source}|${Je.source}))?(?:${fn.source}(${Ke.source}|${Je.source}))?(?:${sa.source}(${Ke.source}|${Je.source}))?\\s*\\)$`); + function th(e, { loose: t = false } = {}) { var n, r; if (typeof e != "string") return null; if (e = e.trim(), e === "transparent") return { mode: "rgb", color: ["0", "0", "0"], alpha: "0" }; - if (e in fa.default) - return { mode: "rgb", color: fa.default[e].map((a) => a.toString()) }; - let i = e.replace(th, (a, l, f, d, h) => ["#", l, l, f, f, d, d, h ? h + h : ""].join("")).match(eh); + if (e in ua.default) + return { mode: "rgb", color: ua.default[e].map((a) => a.toString()) }; + let i = e.replace(J0, (a, l, f, c, p) => ["#", l, l, f, f, c, c, p ? p + p : ""].join("")).match(K0); if (i !== null) return { mode: "rgb", color: [parseInt(i[1], 16), parseInt(i[2], 16), parseInt(i[3], 16)].map((a) => a.toString()), alpha: i[4] ? (parseInt(i[4], 16) / 255).toString() : void 0 }; var o; - let u = (o = e.match(rh)) !== null && o !== void 0 ? o : e.match(nh); + let u = (o = e.match(Z0)) !== null && o !== void 0 ? o : e.match(eh); if (u === null) return null; let s = [u[2], u[3], u[4]].filter(Boolean).map((a) => a.toString()); return !t && s.length !== 3 || s.length < 3 && !s.some((a) => /^var\(.*?\)$/.test(a)) ? null : { mode: u[1], color: s, alpha: (n = u[5]) === null || n === void 0 || (r = n.toString) === null || r === void 0 ? void 0 : r.call(n) }; } - function oh({ mode: e, color: t, alpha: n }) { + function rh({ mode: e, color: t, alpha: n }) { let r = n !== void 0; return `${e}(${t.join(" ")}${r ? ` / ${n}` : ""})`; } }); -var oo = P((io) => { +var no = T((ro) => { "use strict"; - c(); - Object.defineProperty(io, "__esModule", { value: true }); - function uh(e, t) { + Object.defineProperty(ro, "__esModule", { value: true }); + function nh(e, t) { for (var n in t) Object.defineProperty(e, n, { enumerable: true, get: t[n] }); } - uh(io, { withAlphaValue: () => sh, default: () => ah }); - var hn = no(); - function sh(e, t, n) { + nh(ro, { withAlphaValue: () => ih, default: () => oh }); + var cn = to(); + function ih(e, t, n) { if (typeof e == "function") return e({ opacityValue: t }); - let r = (0, hn.parseColor)(e, { loose: true }); - return r === null ? n : (0, hn.formatColor)({ ...r, alpha: t }); + let r = (0, cn.parseColor)(e, { loose: true }); + return r === null ? n : (0, cn.formatColor)({ ...r, alpha: t }); } - function ah({ color: e, property: t, variable: n }) { + function oh({ color: e, property: t, variable: n }) { let r = [].concat(t); if (typeof e == "function") return { [n]: "1", ...Object.fromEntries(r.map((o) => [o, e({ opacityVariable: n, opacityValue: `var(${n})` })])) }; - let i = (0, hn.parseColor)(e); - return i === null ? Object.fromEntries(r.map((o) => [o, e])) : i.alpha !== void 0 ? Object.fromEntries(r.map((o) => [o, e])) : { [n]: "1", ...Object.fromEntries(r.map((o) => [o, (0, hn.formatColor)({ ...i, alpha: `var(${n})` })])) }; + let i = (0, cn.parseColor)(e); + return i === null ? Object.fromEntries(r.map((o) => [o, e])) : i.alpha !== void 0 ? Object.fromEntries(r.map((o) => [o, e])) : { [n]: "1", ...Object.fromEntries(r.map((o) => [o, (0, cn.formatColor)({ ...i, alpha: `var(${n})` })])) }; } }); -var Da = P((uo) => { +var da = T((io) => { "use strict"; - c(); - Object.defineProperty(uo, "__esModule", { value: true }); - function lh(e, t) { + Object.defineProperty(io, "__esModule", { value: true }); + function uh(e, t) { for (var n in t) Object.defineProperty(e, n, { enumerable: true, get: t[n] }); } - lh(uo, { pattern: () => ch, withoutCapturing: () => pa, any: () => ha, optional: () => dh, zeroOrMore: () => ph, nestedBrackets: () => ma, escape: () => ft }); - var da = /[\\^$.*+?()[\]{}|]/g, fh = RegExp(da.source); - function gr(e) { + uh(io, { pattern: () => ah, withoutCapturing: () => la, any: () => fa, optional: () => lh, zeroOrMore: () => fh, nestedBrackets: () => ca, escape: () => at }); + var aa = /[\\^$.*+?()[\]{}|]/g, sh = RegExp(aa.source); + function Dr(e) { return e = Array.isArray(e) ? e : [e], e = e.map((t) => t instanceof RegExp ? t.source : t), e.join(""); } - function ch(e) { - return new RegExp(gr(e), "g"); + function ah(e) { + return new RegExp(Dr(e), "g"); } - function pa(e) { - return new RegExp(`(?:${gr(e)})`, "g"); + function la(e) { + return new RegExp(`(?:${Dr(e)})`, "g"); } - function ha(e) { - return `(?:${e.map(gr).join("|")})`; + function fa(e) { + return `(?:${e.map(Dr).join("|")})`; } - function dh(e) { - return `(?:${gr(e)})?`; + function lh(e) { + return `(?:${Dr(e)})?`; } - function ph(e) { - return `(?:${gr(e)})*`; + function fh(e) { + return `(?:${Dr(e)})*`; } - function ma(e, t, n = 1) { - return pa([ft(e), /[^\s]*/, n === 1 ? `[^${ft(e)}${ft(t)}s]*` : ha([`[^${ft(e)}${ft(t)}s]*`, ma(e, t, n - 1)]), /[^\s]*/, ft(t)]); + function ca(e, t, n = 1) { + return la([at(e), /[^\s]*/, n === 1 ? `[^${at(e)}${at(t)}s]*` : fa([`[^${at(e)}${at(t)}s]*`, ca(e, t, n - 1)]), /[^\s]*/, at(t)]); } - function ft(e) { - return e && fh.test(e) ? e.replace(da, "\\$&") : e || ""; + function at(e) { + return e && sh.test(e) ? e.replace(aa, "\\$&") : e || ""; } }); -var ba = P((so) => { +var ha = T((oo) => { "use strict"; - c(); - Object.defineProperty(so, "__esModule", { value: true }); - Object.defineProperty(so, "splitAtTopLevelOnly", { enumerable: true, get: () => Dh }); - var hh = mh(Da()); - function ga(e) { + Object.defineProperty(oo, "__esModule", { value: true }); + Object.defineProperty(oo, "splitAtTopLevelOnly", { enumerable: true, get: () => ph }); + var ch = dh(da()); + function pa(e) { if (typeof WeakMap != "function") return null; var t = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap(); - return (ga = function(r) { + return (pa = function(r) { return r ? n : t; })(e); } - function mh(e, t) { + function dh(e, t) { if (!t && e && e.__esModule) return e; if (e === null || typeof e != "object" && typeof e != "function") return { default: e }; - var n = ga(t); + var n = pa(t); if (n && n.has(e)) return n.get(e); var r = {}, i = Object.defineProperty && Object.getOwnPropertyDescriptor; @@ -14289,302 +14237,297 @@ var ba = P((so) => { } return r.default = e, n && n.set(e, r), r; } - function* Dh(e, t) { - let n = new RegExp(`[(){}\\[\\]${hh.escape(t)}]`, "g"), r = 0, i = 0, o = false, u = 0, s = 0, a = t.length; + function* ph(e, t) { + let n = new RegExp(`[(){}\\[\\]${ch.escape(t)}]`, "g"), r = 0, i = 0, o = false, u = 0, s = 0, a = t.length; for (let l of e.matchAll(n)) { - let f = l[0] === t[u], d = u === a - 1, h = f && d; - l[0] === "(" && r++, l[0] === ")" && r--, l[0] === "[" && r++, l[0] === "]" && r--, l[0] === "{" && r++, l[0] === "}" && r--, f && r === 0 && (s === 0 && (s = l.index), u++), h && r === 0 && (o = true, yield e.substring(i, s), i = s + a), u === a && (u = 0, s = 0); + let f = l[0] === t[u], c = u === a - 1, p = f && c; + l[0] === "(" && r++, l[0] === ")" && r--, l[0] === "[" && r++, l[0] === "]" && r--, l[0] === "{" && r++, l[0] === "}" && r--, f && r === 0 && (s === 0 && (s = l.index), u++), p && r === 0 && (o = true, yield e.substring(i, s), i = s + a), u === a && (u = 0, s = 0); } o ? yield e.substring(i) : yield e; } }); -var ya = P((ao) => { +var Da = T((uo) => { "use strict"; - c(); - Object.defineProperty(ao, "__esModule", { value: true }); - function gh(e, t) { + Object.defineProperty(uo, "__esModule", { value: true }); + function hh(e, t) { for (var n in t) Object.defineProperty(e, n, { enumerable: true, get: t[n] }); } - gh(ao, { parseBoxShadowValue: () => xh, formatBoxShadowValue: () => Fh }); - var bh = ba(), vh = /* @__PURE__ */ new Set(["inset", "inherit", "initial", "revert", "unset"]), yh = /\ +(?![^(]*\))/g, va = /^-?(\d+|\.\d+)(.*?)$/g; - function xh(e) { - return Array.from((0, bh.splitAtTopLevelOnly)(e, ",")).map((n) => { - let r = n.trim(), i = { raw: r }, o = r.split(yh), u = /* @__PURE__ */ new Set(); + hh(uo, { parseBoxShadowValue: () => bh, formatBoxShadowValue: () => vh }); + var mh = ha(), Dh = /* @__PURE__ */ new Set(["inset", "inherit", "initial", "revert", "unset"]), gh = /\ +(?![^(]*\))/g, ma = /^-?(\d+|\.\d+)(.*?)$/g; + function bh(e) { + return Array.from((0, mh.splitAtTopLevelOnly)(e, ",")).map((n) => { + let r = n.trim(), i = { raw: r }, o = r.split(gh), u = /* @__PURE__ */ new Set(); for (let s of o) - va.lastIndex = 0, !u.has("KEYWORD") && vh.has(s) ? (i.keyword = s, u.add("KEYWORD")) : va.test(s) ? u.has("X") ? u.has("Y") ? u.has("BLUR") ? u.has("SPREAD") || (i.spread = s, u.add("SPREAD")) : (i.blur = s, u.add("BLUR")) : (i.y = s, u.add("Y")) : (i.x = s, u.add("X")) : i.color ? (i.unknown || (i.unknown = []), i.unknown.push(s)) : i.color = s; + ma.lastIndex = 0, !u.has("KEYWORD") && Dh.has(s) ? (i.keyword = s, u.add("KEYWORD")) : ma.test(s) ? u.has("X") ? u.has("Y") ? u.has("BLUR") ? u.has("SPREAD") || (i.spread = s, u.add("SPREAD")) : (i.blur = s, u.add("BLUR")) : (i.y = s, u.add("Y")) : (i.x = s, u.add("X")) : i.color ? (i.unknown || (i.unknown = []), i.unknown.push(s)) : i.color = s; return i.valid = i.x !== void 0 && i.y !== void 0, i; }); } - function Fh(e) { + function vh(e) { return e.map((t) => t.valid ? [t.keyword, t.x, t.y, t.blur, t.spread, t.color].filter(Boolean).join(" ") : t.raw).join(", "); } }); -var Sa = P((fo) => { +var wa = T((ao) => { "use strict"; - c(); - Object.defineProperty(fo, "__esModule", { value: true }); - function wh(e, t) { + Object.defineProperty(ao, "__esModule", { value: true }); + function yh(e, t) { for (var n in t) Object.defineProperty(e, n, { enumerable: true, get: t[n] }); } - wh(fo, { normalize: () => rt, url: () => wa, number: () => _h, percentage: () => Ea, length: () => Ca, lineWidth: () => Th, shadow: () => Ah, color: () => Oh, image: () => Ph, gradient: () => _a2, position: () => Rh, familyName: () => Lh, genericName: () => Nh, absoluteSize: () => Wh, relativeSize: () => Uh }); - var Eh = no(), Ch = ya(), lo = ["min", "max", "clamp", "calc"], Fa = /,(?![^(]*\))/g, mn = /_(?![^(]*\))/g; - function rt(e, t = true) { - return e.includes("url(") ? e.split(/(url\(.*?\))/g).filter(Boolean).map((n) => /^url\(.*?\)$/.test(n) ? n : rt(n, false)).join("") : (e = e.replace(/([^\\])_+/g, (n, r) => r + " ".repeat(n.length - 1)).replace(/^_/g, " ").replace(/\\_/g, "_"), t && (e = e.trim()), e = e.replace(/(calc|min|max|clamp)\(.+\)/g, (n) => n.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g, "$1 $2 ")), e); + yh(ao, { normalize: () => Ze, url: () => va, number: () => wh, percentage: () => ya, length: () => xa, lineWidth: () => _h, shadow: () => Sh, color: () => kh, image: () => Th, gradient: () => Fa, position: () => Ph, familyName: () => Bh, genericName: () => Rh, absoluteSize: () => Mh, relativeSize: () => $h }); + var xh = to(), Fh = Da(), so = ["min", "max", "clamp", "calc"], ba = /,(?![^(]*\))/g, dn = /_(?![^(]*\))/g; + function Ze(e, t = true) { + return e.includes("url(") ? e.split(/(url\(.*?\))/g).filter(Boolean).map((n) => /^url\(.*?\)$/.test(n) ? n : Ze(n, false)).join("") : (e = e.replace(/([^\\])_+/g, (n, r) => r + " ".repeat(n.length - 1)).replace(/^_/g, " ").replace(/\\_/g, "_"), t && (e = e.trim()), e = e.replace(/(calc|min|max|clamp)\(.+\)/g, (n) => n.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g, "$1 $2 ")), e); } - function wa(e) { + function va(e) { return e.startsWith("url("); } - function _h(e) { - return !isNaN(Number(e)) || lo.some((t) => new RegExp(`^${t}\\(.+?`).test(e)); + function wh(e) { + return !isNaN(Number(e)) || so.some((t) => new RegExp(`^${t}\\(.+?`).test(e)); } - function Ea(e) { - return e.split(mn).every((t) => /%$/g.test(t) || lo.some((n) => new RegExp(`^${n}\\(.+?%`).test(t))); + function ya(e) { + return e.split(dn).every((t) => /%$/g.test(t) || so.some((n) => new RegExp(`^${n}\\(.+?%`).test(t))); } - var Sh = ["cm", "mm", "Q", "in", "pc", "pt", "px", "em", "ex", "ch", "rem", "lh", "vw", "vh", "vmin", "vmax"], xa = `(?:${Sh.join("|")})`; - function Ca(e) { - return e.split(mn).every((t) => t === "0" || new RegExp(`${xa}$`).test(t) || lo.some((n) => new RegExp(`^${n}\\(.+?${xa}`).test(t))); + var Eh = ["cm", "mm", "Q", "in", "pc", "pt", "px", "em", "ex", "ch", "rem", "lh", "vw", "vh", "vmin", "vmax"], ga = `(?:${Eh.join("|")})`; + function xa(e) { + return e.split(dn).every((t) => t === "0" || new RegExp(`${ga}$`).test(t) || so.some((n) => new RegExp(`^${n}\\(.+?${ga}`).test(t))); } - var kh = /* @__PURE__ */ new Set(["thin", "medium", "thick"]); - function Th(e) { - return kh.has(e); + var Ch = /* @__PURE__ */ new Set(["thin", "medium", "thick"]); + function _h(e) { + return Ch.has(e); } - function Ah(e) { - let t = (0, Ch.parseBoxShadowValue)(rt(e)); + function Sh(e) { + let t = (0, Fh.parseBoxShadowValue)(Ze(e)); for (let n of t) if (!n.valid) return false; return true; } - function Oh(e) { + function kh(e) { let t = 0; - return e.split(mn).every((r) => (r = rt(r), r.startsWith("var(") ? true : (0, Eh.parseColor)(r, { loose: true }) !== null ? (t++, true) : false)) ? t > 0 : false; + return e.split(dn).every((r) => (r = Ze(r), r.startsWith("var(") ? true : (0, xh.parseColor)(r, { loose: true }) !== null ? (t++, true) : false)) ? t > 0 : false; } - function Ph(e) { + function Th(e) { let t = 0; - return e.split(Fa).every((r) => (r = rt(r), r.startsWith("var(") ? true : wa(r) || _a2(r) || ["element(", "image(", "cross-fade(", "image-set("].some((i) => r.startsWith(i)) ? (t++, true) : false)) ? t > 0 : false; + return e.split(ba).every((r) => (r = Ze(r), r.startsWith("var(") ? true : va(r) || Fa(r) || ["element(", "image(", "cross-fade(", "image-set("].some((i) => r.startsWith(i)) ? (t++, true) : false)) ? t > 0 : false; } - var Ih = /* @__PURE__ */ new Set(["linear-gradient", "radial-gradient", "repeating-linear-gradient", "repeating-radial-gradient", "conic-gradient"]); - function _a2(e) { - e = rt(e); - for (let t of Ih) + var Ah = /* @__PURE__ */ new Set(["linear-gradient", "radial-gradient", "repeating-linear-gradient", "repeating-radial-gradient", "conic-gradient"]); + function Fa(e) { + e = Ze(e); + for (let t of Ah) if (e.startsWith(`${t}(`)) return true; return false; } - var Bh = /* @__PURE__ */ new Set(["center", "top", "right", "bottom", "left"]); - function Rh(e) { + var Oh = /* @__PURE__ */ new Set(["center", "top", "right", "bottom", "left"]); + function Ph(e) { let t = 0; - return e.split(mn).every((r) => (r = rt(r), r.startsWith("var(") ? true : Bh.has(r) || Ca(r) || Ea(r) ? (t++, true) : false)) ? t > 0 : false; + return e.split(dn).every((r) => (r = Ze(r), r.startsWith("var(") ? true : Oh.has(r) || xa(r) || ya(r) ? (t++, true) : false)) ? t > 0 : false; } - function Lh(e) { + function Bh(e) { let t = 0; - return e.split(Fa).every((r) => (r = rt(r), r.startsWith("var(") ? true : r.includes(" ") && !/(['"])([^"']+)\1/g.test(r) || /^\d/g.test(r) ? false : (t++, true))) ? t > 0 : false; + return e.split(ba).every((r) => (r = Ze(r), r.startsWith("var(") ? true : r.includes(" ") && !/(['"])([^"']+)\1/g.test(r) || /^\d/g.test(r) ? false : (t++, true))) ? t > 0 : false; } - var Mh = /* @__PURE__ */ new Set(["serif", "sans-serif", "monospace", "cursive", "fantasy", "system-ui", "ui-serif", "ui-sans-serif", "ui-monospace", "ui-rounded", "math", "emoji", "fangsong"]); - function Nh(e) { - return Mh.has(e); + var Ih = /* @__PURE__ */ new Set(["serif", "sans-serif", "monospace", "cursive", "fantasy", "system-ui", "ui-serif", "ui-sans-serif", "ui-monospace", "ui-rounded", "math", "emoji", "fangsong"]); + function Rh(e) { + return Ih.has(e); } - var $h = /* @__PURE__ */ new Set(["xx-small", "x-small", "small", "medium", "large", "x-large", "x-large", "xxx-large"]); - function Wh(e) { - return $h.has(e); + var Lh = /* @__PURE__ */ new Set(["xx-small", "x-small", "small", "medium", "large", "x-large", "x-large", "xxx-large"]); + function Mh(e) { + return Lh.has(e); } - var qh = /* @__PURE__ */ new Set(["larger", "smaller"]); - function Uh(e) { - return qh.has(e); + var Nh = /* @__PURE__ */ new Set(["larger", "smaller"]); + function $h(e) { + return Nh.has(e); } }); -var Ra = P((ho) => { +var Oa = T((co) => { "use strict"; - c(); - Object.defineProperty(ho, "__esModule", { value: true }); - function zh(e, t) { + Object.defineProperty(co, "__esModule", { value: true }); + function Wh(e, t) { for (var n in t) Object.defineProperty(e, n, { enumerable: true, get: t[n] }); } - zh(ho, { updateAllClasses: () => Hh, asValue: () => vr, parseColorFormat: () => co, asColor: () => Pa, asLookupValue: () => Ia, coerceValue: () => Qh }); - var Gh = po(ua()), jh = po(sa()), ka = oo(), Ee = Sa(), Ta = po(Kn()); - function po(e) { + Wh(co, { updateAllClasses: () => zh, asValue: () => br, parseColorFormat: () => lo, asColor: () => ka, asLookupValue: () => Ta, coerceValue: () => Vh }); + var qh = fo(ra()), Uh = fo(na()), Ea = no(), xe = wa(), Ca = fo(Xn()); + function fo(e) { return e && e.__esModule ? e : { default: e }; } - function Hh(e, t) { - return (0, Gh.default)((i) => { + function zh(e, t) { + return (0, qh.default)((i) => { i.walkClasses((o) => { let u = t(o.value); - o.value = u, o.raws && o.raws.value && (o.raws.value = (0, jh.default)(o.raws.value)); + o.value = u, o.raws && o.raws.value && (o.raws.value = (0, Uh.default)(o.raws.value)); }); }).processSync(e); } - function Oa(e, t) { - if (!br(e)) + function Sa(e, t) { + if (!gr(e)) return; let n = e.slice(1, -1); - if (!!t(n)) - return (0, Ee.normalize)(n); + if (t(n)) + return (0, xe.normalize)(n); } - function Vh(e, t = {}, n) { + function Gh(e, t = {}, n) { let r = t[e]; if (r !== void 0) - return (0, Ta.default)(r); - if (br(e)) { - let i = Oa(e, n); - return i === void 0 ? void 0 : (0, Ta.default)(i); + return (0, Ca.default)(r); + if (gr(e)) { + let i = Sa(e, n); + return i === void 0 ? void 0 : (0, Ca.default)(i); } } - function vr(e, t = {}, { validate: n = () => true } = {}) { + function br(e, t = {}, { validate: n = () => true } = {}) { var r; let i = (r = t.values) === null || r === void 0 ? void 0 : r[e]; - return i !== void 0 ? i : t.supportsNegativeValues && e.startsWith("-") ? Vh(e.slice(1), t.values, n) : Oa(e, n); + return i !== void 0 ? i : t.supportsNegativeValues && e.startsWith("-") ? Gh(e.slice(1), t.values, n) : Sa(e, n); } - function br(e) { + function gr(e) { return e.startsWith("[") && e.endsWith("]"); } - function Yh(e) { + function jh(e) { let t = e.lastIndexOf("/"); return t === -1 || t === e.length - 1 ? [e] : [e.slice(0, t), e.slice(t + 1)]; } - function co(e) { + function lo(e) { if (typeof e == "string" && e.includes("")) { let t = e; return ({ opacityValue: n = 1 }) => t.replace("", n); } return e; } - function Pa(e, t = {}, { tailwindConfig: n = {} } = {}) { + function ka(e, t = {}, { tailwindConfig: n = {} } = {}) { var r; if (((r = t.values) === null || r === void 0 ? void 0 : r[e]) !== void 0) { var i; - return co((i = t.values) === null || i === void 0 ? void 0 : i[e]); + return lo((i = t.values) === null || i === void 0 ? void 0 : i[e]); } - let [o, u] = Yh(e); + let [o, u] = jh(e); if (u !== void 0) { var s, a, l, f; - let d = (f = (s = t.values) === null || s === void 0 ? void 0 : s[o]) !== null && f !== void 0 ? f : br(o) ? o.slice(1, -1) : void 0; - return d === void 0 ? void 0 : (d = co(d), br(u) ? (0, ka.withAlphaValue)(d, u.slice(1, -1)) : ((a = n.theme) === null || a === void 0 || (l = a.opacity) === null || l === void 0 ? void 0 : l[u]) === void 0 ? void 0 : (0, ka.withAlphaValue)(d, n.theme.opacity[u])); + let c = (f = (s = t.values) === null || s === void 0 ? void 0 : s[o]) !== null && f !== void 0 ? f : gr(o) ? o.slice(1, -1) : void 0; + return c === void 0 ? void 0 : (c = lo(c), gr(u) ? (0, Ea.withAlphaValue)(c, u.slice(1, -1)) : ((a = n.theme) === null || a === void 0 || (l = a.opacity) === null || l === void 0 ? void 0 : l[u]) === void 0 ? void 0 : (0, Ea.withAlphaValue)(c, n.theme.opacity[u])); } - return vr(e, t, { validate: Ee.color }); + return br(e, t, { validate: xe.color }); } - function Ia(e, t = {}) { + function Ta(e, t = {}) { var n; return (n = t.values) === null || n === void 0 ? void 0 : n[e]; } - function Pe(e) { - return (t, n) => vr(t, n, { validate: e }); + function Te(e) { + return (t, n) => br(t, n, { validate: e }); } - var Ba = { any: vr, color: Pa, url: Pe(Ee.url), image: Pe(Ee.image), length: Pe(Ee.length), percentage: Pe(Ee.percentage), position: Pe(Ee.position), lookup: Ia, "generic-name": Pe(Ee.genericName), "family-name": Pe(Ee.familyName), number: Pe(Ee.number), "line-width": Pe(Ee.lineWidth), "absolute-size": Pe(Ee.absoluteSize), "relative-size": Pe(Ee.relativeSize), shadow: Pe(Ee.shadow) }, Aa = Object.keys(Ba); - function Xh(e, t) { + var Aa = { any: br, color: ka, url: Te(xe.url), image: Te(xe.image), length: Te(xe.length), percentage: Te(xe.percentage), position: Te(xe.position), lookup: Ta, "generic-name": Te(xe.genericName), "family-name": Te(xe.familyName), number: Te(xe.number), "line-width": Te(xe.lineWidth), "absolute-size": Te(xe.absoluteSize), "relative-size": Te(xe.relativeSize), shadow: Te(xe.shadow) }, _a2 = Object.keys(Aa); + function Hh(e, t) { let n = e.indexOf(t); return n === -1 ? [void 0, e] : [e.slice(0, n), e.slice(n + 1)]; } - function Qh(e, t, n, r) { - if (br(t)) { - let i = t.slice(1, -1), [o, u] = Xh(i, ":"); + function Vh(e, t, n, r) { + if (gr(t)) { + let i = t.slice(1, -1), [o, u] = Hh(i, ":"); if (!/^[\w-_]+$/g.test(o)) u = i; - else if (o !== void 0 && !Aa.includes(o)) + else if (o !== void 0 && !_a2.includes(o)) return []; - if (u.length > 0 && Aa.includes(o)) - return [vr(`[${u}]`, n), o]; + if (u.length > 0 && _a2.includes(o)) + return [br(`[${u}]`, n), o]; } for (let i of [].concat(e)) { - let o = Ba[i](t, n, { tailwindConfig: r }); + let o = Aa[i](t, n, { tailwindConfig: r }); if (o !== void 0) return [o, i]; } return []; } }); -var La = P((mo) => { +var Pa = T((po) => { "use strict"; - c(); - Object.defineProperty(mo, "__esModule", { value: true }); - Object.defineProperty(mo, "default", { enumerable: true, get: () => Kh }); - function Kh(e) { + Object.defineProperty(po, "__esModule", { value: true }); + Object.defineProperty(po, "default", { enumerable: true, get: () => Yh }); + function Yh(e) { return typeof e == "function" ? e({}) : e; } }); -var qa = P((go) => { +var Ma = T((mo) => { "use strict"; - c(); - Object.defineProperty(go, "__esModule", { value: true }); - Object.defineProperty(go, "default", { enumerable: true, get: () => gm }); - var Jh = ct(Kn()), Zh = ct(Gu()), em = ct(ju()), tm = ct(ei()), rm = ct(Vu()), $a = Yu(), Ma = Xu(), nm = Ku(), im = ct(Ju()), om = Zu(), um = Ra(), sm = oo(), am = ct(La()); - function ct(e) { + Object.defineProperty(mo, "__esModule", { value: true }); + Object.defineProperty(mo, "default", { enumerable: true, get: () => hm }); + var Xh = lt(Xn()), Qh = lt(Wu()), Kh = lt(qu()), Jh = lt(Jn()), Zh = lt(zu()), Ra = Gu(), Ba = ju(), em = Vu(), tm = lt(Yu()), rm = Xu(), nm = Oa(), im = no(), om = lt(Pa()); + function lt(e) { return e && e.__esModule ? e : { default: e }; } - function _t(e) { + function Et(e) { return typeof e == "function"; } - function yr(e) { + function vr(e) { return typeof e == "object" && e !== null; } - function xr(e, ...t) { + function yr(e, ...t) { let n = t.pop(); for (let r of t) for (let i in r) { let o = n(e[i], r[i]); - o === void 0 ? yr(e[i]) && yr(r[i]) ? e[i] = xr(e[i], r[i], n) : e[i] = r[i] : e[i] = o; + o === void 0 ? vr(e[i]) && vr(r[i]) ? e[i] = yr(e[i], r[i], n) : e[i] = r[i] : e[i] = o; } return e; } - var Do = { colors: rm.default, negative(e) { + var ho = { colors: Zh.default, negative(e) { return Object.keys(e).filter((t) => e[t] !== "0").reduce((t, n) => { - let r = (0, Jh.default)(e[n]); + let r = (0, Xh.default)(e[n]); return r !== void 0 && (t[`-${n}`] = r), t; }, {}); }, breakpoints(e) { return Object.keys(e).filter((t) => typeof e[t] == "string").reduce((t, n) => ({ ...t, [`screen-${n}`]: e[n] }), {}); } }; - function lm(e, ...t) { - return _t(e) ? e(...t) : e; + function um(e, ...t) { + return Et(e) ? e(...t) : e; } - function fm(e) { - return e.reduce((t, { extend: n }) => xr(t, n, (r, i) => r === void 0 ? [i] : Array.isArray(r) ? [i, ...r] : [i, r]), {}); + function sm(e) { + return e.reduce((t, { extend: n }) => yr(t, n, (r, i) => r === void 0 ? [i] : Array.isArray(r) ? [i, ...r] : [i, r]), {}); } - function cm(e) { - return { ...e.reduce((t, n) => (0, $a.defaults)(t, n), {}), extend: fm(e) }; + function am(e) { + return { ...e.reduce((t, n) => (0, Ra.defaults)(t, n), {}), extend: sm(e) }; } - function Na(e, t) { - if (Array.isArray(e) && yr(e[0])) + function Ia(e, t) { + if (Array.isArray(e) && vr(e[0])) return e.concat(t); - if (Array.isArray(t) && yr(t[0]) && yr(e)) + if (Array.isArray(t) && vr(t[0]) && vr(e)) return [e, ...t]; if (Array.isArray(t)) return t; } - function dm({ extend: e, ...t }) { - return xr(t, e, (n, r) => !_t(n) && !r.some(_t) ? xr({}, n, ...r, Na) : (i, o) => xr({}, ...[n, ...r].map((u) => lm(u, i, o)), Na)); + function lm({ extend: e, ...t }) { + return yr(t, e, (n, r) => !Et(n) && !r.some(Et) ? yr({}, n, ...r, Ia) : (i, o) => yr({}, ...[n, ...r].map((u) => um(u, i, o)), Ia)); } - function* pm(e) { - let t = (0, Ma.toPath)(e); + function* fm(e) { + let t = (0, Ba.toPath)(e); if (t.length === 0 || (yield t, Array.isArray(e))) return; let n = /^(.*?)\s*\/\s*([^/]+)$/, r = e.match(n); if (r !== null) { - let [, i, o] = r, u = (0, Ma.toPath)(i); + let [, i, o] = r, u = (0, Ba.toPath)(i); u.alpha = o, yield u; } } - function hm(e) { + function cm(e) { let t = (n, r) => { - for (let i of pm(n)) { + for (let i of fm(n)) { let o = 0, u = e; for (; u != null && o < i.length; ) - u = u[i[o++]], u = _t(u) && (i.alpha === void 0 || o <= i.length - 1) ? u(t, Do) : u; + u = u[i[o++]], u = Et(u) && (i.alpha === void 0 || o <= i.length - 1) ? u(t, ho) : u; if (u !== void 0) { if (i.alpha !== void 0) { - let s = (0, um.parseColorFormat)(u); - return (0, sm.withAlphaValue)(s, i.alpha, (0, am.default)(s)); + let s = (0, nm.parseColorFormat)(u); + return (0, im.withAlphaValue)(s, i.alpha, (0, om.default)(s)); } - return (0, im.default)(u) ? (0, om.cloneDeep)(u) : u; + return (0, tm.default)(u) ? (0, rm.cloneDeep)(u) : u; } } return r; }; - return Object.assign(t, { theme: t, ...Do }), Object.keys(e).reduce((n, r) => (n[r] = _t(e[r]) ? e[r](t, Do) : e[r], n), {}); + return Object.assign(t, { theme: t, ...ho }), Object.keys(e).reduce((n, r) => (n[r] = Et(e[r]) ? e[r](t, ho) : e[r], n), {}); } - function Wa(e) { + function La(e) { let t = []; return e.forEach((n) => { t = [...t, n]; @@ -14593,199 +14536,188 @@ var qa = P((go) => { i.length !== 0 && i.forEach((o) => { o.__isOptionsFunction && (o = o()); var u; - t = [...t, ...Wa([(u = o == null ? void 0 : o.config) !== null && u !== void 0 ? u : {}])]; + t = [...t, ...La([(u = o == null ? void 0 : o.config) !== null && u !== void 0 ? u : {}])]; }); }), t; } - function mm(e) { - return [...e].reduceRight((n, r) => _t(r) ? r({ corePlugins: n }) : (0, em.default)(r, n), Zh.default); + function dm(e) { + return [...e].reduceRight((n, r) => Et(r) ? r({ corePlugins: n }) : (0, Kh.default)(r, n), Qh.default); } - function Dm(e) { + function pm(e) { return [...e].reduceRight((n, r) => [...n, ...r], []); } - function gm(e) { - let t = [...Wa(e), { prefix: "", important: false, separator: ":", variantOrder: tm.default.variantOrder }]; + function hm(e) { + let t = [...La(e), { prefix: "", important: false, separator: ":", variantOrder: Jh.default.variantOrder }]; var n, r; - return (0, nm.normalizeConfig)((0, $a.defaults)({ theme: hm(dm(cm(t.map((i) => (n = i == null ? void 0 : i.theme) !== null && n !== void 0 ? n : {})))), corePlugins: mm(t.map((i) => i.corePlugins)), plugins: Dm(e.map((i) => (r = i == null ? void 0 : i.plugins) !== null && r !== void 0 ? r : [])) }, ...t)); + return (0, em.normalizeConfig)((0, Ra.defaults)({ theme: cm(lm(am(t.map((i) => (n = i == null ? void 0 : i.theme) !== null && n !== void 0 ? n : {})))), corePlugins: dm(t.map((i) => i.corePlugins)), plugins: pm(e.map((i) => (r = i == null ? void 0 : i.plugins) !== null && r !== void 0 ? r : [])) }, ...t)); } }); -var Ua = {}; -Fn(Ua, { default: () => bm }); -var bm; -var za = Lr(() => { - c(); - bm = { yellow: (e) => e }; +var Na = {}; +yn(Na, { default: () => mm }); +var mm; +var $a = vn(() => { + mm = { yellow: (e) => e }; }); -var Va = P((bo) => { +var za = T((Do) => { "use strict"; - c(); - Object.defineProperty(bo, "__esModule", { value: true }); - function vm(e, t) { + Object.defineProperty(Do, "__esModule", { value: true }); + function Dm(e, t) { for (var n in t) Object.defineProperty(e, n, { enumerable: true, get: t[n] }); } - vm(bo, { flagEnabled: () => Fm, issueFlagNotices: () => wm, default: () => Em }); - var ym = Ha((za(), Mr(Ua))), xm = Ha((Zr(), Mr(Jr))); - function Ha(e) { + Dm(Do, { flagEnabled: () => vm, issueFlagNotices: () => ym, default: () => xm }); + var gm = Ua(($a(), Ir(Na))), bm = Ua((Qr(), Ir(Xr))); + function Ua(e) { return e && e.__esModule ? e : { default: e }; } - var Ga = { optimizeUniversalDefaults: false }, Fr = { future: ["hoverOnlyWhenSupported", "respectDefaultRingColorOpacity"], experimental: ["optimizeUniversalDefaults", "matchVariant"] }; - function Fm(e, t) { - if (Fr.future.includes(t)) { + var Wa = { optimizeUniversalDefaults: false }, xr = { future: ["hoverOnlyWhenSupported", "respectDefaultRingColorOpacity"], experimental: ["optimizeUniversalDefaults", "matchVariant"] }; + function vm(e, t) { + if (xr.future.includes(t)) { var n, r, i; - return e.future === "all" || ((i = (r = e == null || (n = e.future) === null || n === void 0 ? void 0 : n[t]) !== null && r !== void 0 ? r : Ga[t]) !== null && i !== void 0 ? i : false); + return e.future === "all" || ((i = (r = e == null || (n = e.future) === null || n === void 0 ? void 0 : n[t]) !== null && r !== void 0 ? r : Wa[t]) !== null && i !== void 0 ? i : false); } - if (Fr.experimental.includes(t)) { + if (xr.experimental.includes(t)) { var o, u, s; - return e.experimental === "all" || ((s = (u = e == null || (o = e.experimental) === null || o === void 0 ? void 0 : o[t]) !== null && u !== void 0 ? u : Ga[t]) !== null && s !== void 0 ? s : false); + return e.experimental === "all" || ((s = (u = e == null || (o = e.experimental) === null || o === void 0 ? void 0 : o[t]) !== null && u !== void 0 ? u : Wa[t]) !== null && s !== void 0 ? s : false); } return false; } - function ja(e) { + function qa(e) { if (e.experimental === "all") - return Fr.experimental; + return xr.experimental; var t; - return Object.keys((t = e == null ? void 0 : e.experimental) !== null && t !== void 0 ? t : {}).filter((n) => Fr.experimental.includes(n) && e.experimental[n]); + return Object.keys((t = e == null ? void 0 : e.experimental) !== null && t !== void 0 ? t : {}).filter((n) => xr.experimental.includes(n) && e.experimental[n]); } - function wm(e) { - if (process.env.JEST_WORKER_ID === void 0 && ja(e).length > 0) { - let t = ja(e).map((n) => ym.default.yellow(n)).join(", "); - xm.default.warn("experimental-flags-enabled", [`You have enabled experimental features: ${t}`, "Experimental features in Tailwind CSS are not covered by semver, may introduce breaking changes, and can change at any time."]); + function ym(e) { + if (process.env.JEST_WORKER_ID === void 0 && qa(e).length > 0) { + let t = qa(e).map((n) => gm.default.yellow(n)).join(", "); + bm.default.warn("experimental-flags-enabled", [`You have enabled experimental features: ${t}`, "Experimental features in Tailwind CSS are not covered by semver, may introduce breaking changes, and can change at any time."]); } } - var Em = Fr; + var xm = xr; }); -var Xa = P((vo) => { +var ja = T((go) => { "use strict"; - c(); - Object.defineProperty(vo, "__esModule", { value: true }); - Object.defineProperty(vo, "default", { enumerable: true, get: () => Ya }); - var Cm = Sm(ei()), _m = Va(); - function Sm(e) { + Object.defineProperty(go, "__esModule", { value: true }); + Object.defineProperty(go, "default", { enumerable: true, get: () => Ga }); + var Fm = Em(Jn()), wm = za(); + function Em(e) { return e && e.__esModule ? e : { default: e }; } - function Ya(e) { + function Ga(e) { var t; - let n = ((t = e == null ? void 0 : e.presets) !== null && t !== void 0 ? t : [Cm.default]).slice().reverse().flatMap((o) => Ya(typeof o == "function" ? o() : o)), r = { respectDefaultRingColorOpacity: { theme: { ringColor: { DEFAULT: "#3b82f67f" } } } }, i = Object.keys(r).filter((o) => (0, _m.flagEnabled)(e, o)).map((o) => r[o]); + let n = ((t = e == null ? void 0 : e.presets) !== null && t !== void 0 ? t : [Fm.default]).slice().reverse().flatMap((o) => Ga(typeof o == "function" ? o() : o)), r = { respectDefaultRingColorOpacity: { theme: { ringColor: { DEFAULT: "#3b82f67f" } } } }, i = Object.keys(r).filter((o) => (0, wm.flagEnabled)(e, o)).map((o) => r[o]); return [e, ...i, ...n]; } }); -var Ka = P((yo) => { +var Va = T((bo) => { "use strict"; - c(); - Object.defineProperty(yo, "__esModule", { value: true }); - Object.defineProperty(yo, "default", { enumerable: true, get: () => Am }); - var km = Qa(qa()), Tm = Qa(Xa()); - function Qa(e) { + Object.defineProperty(bo, "__esModule", { value: true }); + Object.defineProperty(bo, "default", { enumerable: true, get: () => Sm }); + var Cm = Ha(Ma()), _m = Ha(ja()); + function Ha(e) { return e && e.__esModule ? e : { default: e }; } - function Am(...e) { - let [, ...t] = (0, Tm.default)(e[0]); - return (0, km.default)([...e, ...t]); + function Sm(...e) { + let [, ...t] = (0, _m.default)(e[0]); + return (0, Cm.default)([...e, ...t]); } }); -var Za = P((Pb, Ja) => { - c(); - var xo = Ka(); - Ja.exports = (xo.__esModule ? xo : { default: xo }).default; +var Xa = T((kb, Ya) => { + var vo = Va(); + Ya.exports = (vo.__esModule ? vo : { default: vo }).default; }); -c(); -c(); -c(); -var vt; -function Ll(e) { - vt = e; -} -var It = null; -async function Ge() { - return vt || (It ? (await It, vt) : (It = Promise.resolve().then(() => (Qo(), Xo)).then((e) => e.getYogaModule()).then((e) => vt = e), await It, It = null, vt)); -} -c(); -c(); -c(); +var gt; +function Bl(e) { + gt = e; +} +var Pt = null; +async function qe() { + return gt || (Pt ? (await Pt, gt) : (Pt = Promise.resolve().then(() => (Ho(), jo)).then((e) => e.getYogaModule()).then((e) => gt = e), await Pt, Pt = null, gt)); +} var Bt = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports); -var Ml = Bt((e, t) => { +var Il = Bt((e, t) => { t.exports = ["em", "ex", "ch", "rem", "vh", "vw", "vmin", "vmax", "px", "mm", "cm", "in", "pt", "pc", "mozmm"]; }); -var Nl = Bt((e, t) => { +var Rl = Bt((e, t) => { t.exports = ["deg", "grad", "rad", "turn"]; }); -var $l = Bt((e, t) => { +var Ll = Bt((e, t) => { t.exports = ["dpi", "dpcm", "dppx"]; }); -var Wl = Bt((e, t) => { +var Ml = Bt((e, t) => { t.exports = ["Hz", "kHz"]; }); -var ql = Bt((e, t) => { +var Nl = Bt((e, t) => { t.exports = ["s", "ms"]; }); -var Ul = Ml(); -var Ko = Nl(); -var Jo = $l(); -var Zo = Wl(); -var eu = ql(); -function En(e) { +var $l = Il(); +var Vo = Rl(); +var Yo = Ll(); +var Xo = Ml(); +var Qo = Nl(); +function Fn(e) { if (/\.\D?$/.test(e)) throw new Error("The dot should be followed by a number"); if (/^[+-]{2}/.test(e)) throw new Error("Only one leading +/- is allowed"); - if (zl(e) > 1) + if (Wl(e) > 1) throw new Error("Only one dot is allowed"); if (/%$/.test(e)) { - this.type = "percentage", this.value = wn(e), this.unit = "%"; + this.type = "percentage", this.value = xn(e), this.unit = "%"; return; } - var t = jl(e); + var t = Ul(e); if (!t) { - this.type = "number", this.value = wn(e); + this.type = "number", this.value = xn(e); return; } - this.type = Vl(t), this.value = wn(e.substr(0, e.length - t.length)), this.unit = t; + this.type = Gl(t), this.value = xn(e.substr(0, e.length - t.length)), this.unit = t; } -En.prototype.valueOf = function() { +Fn.prototype.valueOf = function() { return this.value; }; -En.prototype.toString = function() { +Fn.prototype.toString = function() { return this.value + (this.unit || ""); }; -function Ke(e) { - return new En(e); +function Ye(e) { + return new Fn(e); } -function zl(e) { +function Wl(e) { var t = e.match(/\./g); return t ? t.length : 0; } -function wn(e) { +function xn(e) { var t = parseFloat(e); if (isNaN(t)) throw new Error("Invalid number: " + e); return t; } -var Gl = [].concat(Ko, Zo, Ul, Jo, eu); -function jl(e) { +var ql = [].concat(Vo, Xo, $l, Yo, Qo); +function Ul(e) { var t = e.match(/\D+$/), n = t && t[0]; - if (n && Gl.indexOf(n) === -1) + if (n && ql.indexOf(n) === -1) throw new Error("Invalid unit: " + n); return n; } -var Hl = Object.assign(Nr(Ko, "angle"), Nr(Zo, "frequency"), Nr(Jo, "resolution"), Nr(eu, "time")); -function Nr(e, t) { +var zl = Object.assign(Rr(Vo, "angle"), Rr(Xo, "frequency"), Rr(Yo, "resolution"), Rr(Qo, "time")); +function Rr(e, t) { return Object.fromEntries(e.map((n) => [n, t])); } -function Vl(e) { - return Hl[e] || "length"; +function Gl(e) { + return zl[e] || "length"; } -function yt(e) { +function bt(e) { let t = typeof e; return !(t === "number" || t === "bigint" || t === "string" || t === "boolean"); } -function tu(e) { +function Ko(e) { return /^class\s/.test(e.toString()); } -function ru(e) { +function Jo(e) { return "dangerouslySetInnerHTML" in e; } -function nu(e) { +function Zo(e) { let t = typeof e > "u" ? [] : [].concat(e).flat(1 / 0), n = []; for (let r = 0; r < t.length; r++) { let i = t[r]; @@ -14793,7 +14725,7 @@ function nu(e) { } return n; } -function G(e, t, n, r, i = false) { +function U(e, t, n, r, i = false) { if (typeof e == "number") return e; try { @@ -14801,7 +14733,7 @@ function G(e, t, n, r, i = false) { return; if (e === String(+e)) return +e; - let o = new Ke(e); + let o = new Ye(e); if (o.type === "length") switch (o.unit) { case "em": @@ -14829,10 +14761,10 @@ function G(e, t, n, r, i = false) { } catch { } } -function Rt(e, t) { +function It(e, t) { return [e[0] * t[0] + e[2] * t[1], e[1] * t[0] + e[3] * t[1], e[0] * t[2] + e[2] * t[3], e[1] * t[2] + e[3] * t[3], e[0] * t[4] + e[2] * t[5] + e[4], e[1] * t[4] + e[3] * t[5] + e[5]]; } -function Fe(e, t, n, r) { +function ve(e, t, n, r) { let i = t[e]; if (typeof i > "u") { if (r && typeof e < "u") @@ -14841,19 +14773,19 @@ function Fe(e, t, n, r) { } return i; } -var Cn; -var _n; -var iu = [32, 160, 4961, 65792, 65793, 4153, 4241, 10].map((e) => String.fromCodePoint(e)); -function Se(e, t, n) { - if (!Cn || !_n) { +var wn; +var En; +var eu = [32, 160, 4961, 65792, 65793, 4153, 4241, 10].map((e) => String.fromCodePoint(e)); +function we(e, t, n) { + if (!wn || !En) { if (!(typeof Intl < "u" && "Segmenter" in Intl)) throw new Error("Intl.Segmenter does not exist, please use import a polyfill."); - Cn = new Intl.Segmenter(n, { granularity: "word" }), _n = new Intl.Segmenter(n, { granularity: "grapheme" }); + wn = new Intl.Segmenter(n, { granularity: "word" }), En = new Intl.Segmenter(n, { granularity: "grapheme" }); } if (t === "grapheme") - return [..._n.segment(e)].map((r) => r.segment); + return [...En.segment(e)].map((r) => r.segment); { - let r = [...Cn.segment(e)].map((u) => u.segment), i = [], o = 0; + let r = [...wn.segment(e)].map((u) => u.segment), i = [], o = 0; for (; o < r.length; ) { let u = r[o]; if (u == "\xA0") { @@ -14865,13 +14797,13 @@ function Se(e, t, n) { return i; } } -function k(e, t, n) { +function C(e, t, n) { let r = ""; for (let [i, o] of Object.entries(t)) typeof o < "u" && (r += ` ${i}="${o}"`); return n ? `<${e}${r}>${n}` : `<${e}${r}/>`; } -function ou(e = 20) { +function tu(e = 20) { let t = /* @__PURE__ */ new Map(); function n(o, u) { if (t.size >= e) { @@ -14891,26 +14823,26 @@ function ou(e = 20) { } return { set: n, get: r, clear: i }; } -function xt(e) { +function vt(e) { return e ? e.split(/[, ]/).filter(Boolean).map(Number) : null; } -function Xl(e) { +function Hl(e) { return Object.prototype.toString.call(e); } -function $r(e) { +function Lr(e) { return typeof e == "string"; } -function uu(e) { +function ru(e) { return typeof e == "number"; } -function su(e) { - return Xl(e) === "[object Undefined]"; +function nu(e) { + return Hl(e) === "[object Undefined]"; } -function au(e, t) { +function iu(e, t) { if (t === "break-all") - return { words: Se(e, "grapheme"), requiredBreaks: [] }; + return { words: we(e, "grapheme"), requiredBreaks: [] }; if (t === "keep-all") - return { words: Se(e, "word"), requiredBreaks: [] }; + return { words: we(e, "word"), requiredBreaks: [] }; let n = new $557adaaeb0c7885f$exports(e), r = 0, i = n.nextBreak(), o = [], u = [false]; for (; i; ) { let s = e.slice(r, i.position); @@ -14918,17 +14850,15 @@ function au(e, t) { } return { words: o, requiredBreaks: u }; } -var lu = (e) => e.replaceAll(/([A-Z])/g, (t, n) => `-${n.toLowerCase()}`); -c(); -c(); -var Ql = "image/avif"; -var Kl = "image/webp"; -var Wr = "image/apng"; -var qr = "image/png"; -var Ur = "image/jpeg"; -var zr = "image/gif"; -var kn = "image/svg+xml"; -function du(e) { +var ou = (e) => e.replaceAll(/([A-Z])/g, (t, n) => `-${n.toLowerCase()}`); +var Vl = "image/avif"; +var Yl = "image/webp"; +var Mr = "image/apng"; +var Nr = "image/png"; +var $r = "image/jpeg"; +var Wr = "image/gif"; +var _n = "image/svg+xml"; +function au(e) { let t = new DataView(e), n = 4, r = t.byteLength; for (; n < r; ) { let i = t.getUint16(n, false); @@ -14941,59 +14871,59 @@ function du(e) { } throw new TypeError("Invalid JPEG"); } -function pu(e) { +function lu(e) { let t = new Uint8Array(e.slice(6, 10)); return [t[0] | t[1] << 8, t[2] | t[3] << 8]; } -function hu(e) { +function fu(e) { let t = new DataView(e); return [t.getUint16(18, false), t.getUint16(22, false)]; } -var $e = ou(100); -var Sn = /* @__PURE__ */ new Map(); -var Jl = [qr, Wr, Ur, zr, kn]; -function Zl(e) { +var Re = tu(100); +var Cn = /* @__PURE__ */ new Map(); +var Xl = [Nr, Mr, $r, Wr, _n]; +function Ql(e) { let t = "", n = new Uint8Array(e); for (let r = 0; r < n.byteLength; r++) t += String.fromCharCode(n[r]); return btoa(t); } -function ef(e) { +function Kl(e) { let t = atob(e), n = t.length, r = new Uint8Array(n); for (let i = 0; i < n; i++) r[i] = t.charCodeAt(i); return r.buffer; } -function fu(e, t) { - let n = t.match(/]*>/)[0], r = n.match(/viewBox=['"](.+)['"]/), i = r ? xt(r[1]) : null, o = n.match(/width=['"](\d*\.\d+|\d+)['"]/), u = n.match(/height=['"](\d*\.\d+|\d+)['"]/); +function uu(e, t) { + let n = t.match(/]*>/)[0], r = n.match(/viewBox=['"](.+)['"]/), i = r ? vt(r[1]) : null, o = n.match(/width=['"](\d*\.\d+|\d+)['"]/), u = n.match(/height=['"](\d*\.\d+|\d+)['"]/); if (!i && (!o || !u)) throw new Error(`Failed to parse SVG from ${e}: missing "viewBox"`); let s = i ? [i[2], i[3]] : [+o[1], +u[1]], a = s[0] / s[1]; return o && u ? [+o[1], +u[1]] : o ? [+o[1], +o[1] / a] : u ? [+u[1] * a, +u[1]] : [s[0], s[1]]; } -function cu(e) { - let t, n = tf(new Uint8Array(e)); +function su(e) { + let t, n = Jl(new Uint8Array(e)); switch (n) { - case qr: - case Wr: - t = hu(e); + case Nr: + case Mr: + t = fu(e); break; - case zr: - t = pu(e); + case Wr: + t = lu(e); break; - case Ur: - t = du(e); + case $r: + t = au(e); break; } - if (!Jl.includes(n)) + if (!Xl.includes(n)) throw new Error(`Unsupported image type: ${n || "unknown"}`); - return [`data:${n};base64,${Zl(e)}`, t]; + return [`data:${n};base64,${Ql(e)}`, t]; } -async function Ft(e) { +async function yt(e) { if (!e) throw new Error("Image source is not provided."); if (typeof e == "object") { - let [i, o] = cu(e); + let [i, o] = su(e); return [i, ...o]; } if ((e.startsWith('"') && e.endsWith('"') || e.startsWith("'") && e.endsWith("'")) && (e = e.slice(1, -1)), typeof window > "u" && !e.startsWith("http") && !e.startsWith("data:")) @@ -15001,37 +14931,37 @@ async function Ft(e) { if (e.startsWith("data:")) { let i; try { - i = /data:(?[a-z/+]+)(;(?base64|utf8))?,(?.*)/g.exec(e).groups; + i = /data:(?[a-z/+]+)(;(charset=)?(?.*))?,(?.*)/g.exec(e).groups; } catch { return console.warn("Image data URI resolved without size:" + e), [e]; } let { imageType: o, encodingType: u, dataString: s } = i; - if (o === kn) { - let a = u === "base64" ? atob(s) : decodeURIComponent(s.replace(/ /g, "%20")), l = u === "base64" ? e : `data:image/svg+xml;base64,${btoa(a)}`, f = fu(e, a); - return $e.set(e, [l, ...f]), [l, ...f]; + if (o === _n) { + let a = u === "base64" ? atob(s) : decodeURIComponent(s.replace(/ /g, "%20")), l = u === "base64" ? e : `data:image/svg+xml;base64,${btoa(a)}`, f = uu(e, a); + return Re.set(e, [l, ...f]), [l, ...f]; } else if (u === "base64") { - let a, l = ef(s); + let a, l = Kl(s); switch (o) { - case qr: - case Wr: - a = hu(l); + case Nr: + case Mr: + a = fu(l); break; - case zr: - a = pu(l); + case Wr: + a = lu(l); break; - case Ur: - a = du(l); + case $r: + a = au(l); break; } - return $e.set(e, [e, ...a]), [e, ...a]; + return Re.set(e, [e, ...a]), [e, ...a]; } else - return console.warn("Image data URI resolved without size:" + e), $e.set(e, [e]), [e]; + return console.warn("Image data URI resolved without size:" + e), Re.set(e, [e]), [e]; } if (!globalThis.fetch) throw new Error("`fetch` is required to be polyfilled to load images."); - if (Sn.has(e)) - return Sn.get(e); - let t = $e.get(e); + if (Cn.has(e)) + return Cn.get(e); + let t = Re.get(e); if (t) return t; let n = e, r = fetch(n).then((i) => { @@ -15040,20 +14970,20 @@ async function Ft(e) { }).then((i) => { if (typeof i == "string") try { - let s = `data:image/svg+xml;base64,${btoa(i)}`, a = fu(n, i); + let s = `data:image/svg+xml;base64,${btoa(i)}`, a = uu(n, i); return [s, ...a]; } catch (s) { throw new Error(`Failed to parse SVG image: ${s.message}`); } - let [o, u] = cu(i); + let [o, u] = su(i); return [o, ...u]; - }).then((i) => ($e.set(n, i), i)).catch((i) => (console.error(`Can't load image ${n}: ` + i.message), $e.set(n, []), [])); - return Sn.set(n, r), r; + }).then((i) => (Re.set(n, i), i)).catch((i) => (console.error(`Can't load image ${n}: ` + i.message), Re.set(n, []), [])); + return Cn.set(n, r), r; } -function tf(e) { - return [255, 216, 255].every((t, n) => e[n] === t) ? Ur : [137, 80, 78, 71, 13, 10, 26, 10].every((t, n) => e[n] === t) ? rf(e) ? Wr : qr : [71, 73, 70, 56].every((t, n) => e[n] === t) ? zr : [82, 73, 70, 70, 0, 0, 0, 0, 87, 69, 66, 80].every((t, n) => !t || e[n] === t) ? Kl : [60, 63, 120, 109, 108].every((t, n) => e[n] === t) ? kn : [0, 0, 0, 0, 102, 116, 121, 112, 97, 118, 105, 102].every((t, n) => !t || e[n] === t) ? Ql : null; +function Jl(e) { + return [255, 216, 255].every((t, n) => e[n] === t) ? $r : [137, 80, 78, 71, 13, 10, 26, 10].every((t, n) => e[n] === t) ? Zl(e) ? Mr : Nr : [71, 73, 70, 56].every((t, n) => e[n] === t) ? Wr : [82, 73, 70, 70, 0, 0, 0, 0, 87, 69, 66, 80].every((t, n) => !t || e[n] === t) ? Yl : [60, 63, 120, 109, 108].every((t, n) => e[n] === t) ? _n : [0, 0, 0, 0, 102, 116, 121, 112, 97, 118, 105, 102].every((t, n) => !t || e[n] === t) ? Vl : null; } -function rf(e) { +function Zl(e) { let t = new DataView(e.buffer), n, r, i = 8, o = false; for (; !o && n !== "IEND" && i < e.length; ) { r = t.getUint32(i); @@ -15062,24 +14992,24 @@ function rf(e) { } return o; } -var Tn = { accentHeight: "accent-height", alignmentBaseline: "alignment-baseline", arabicForm: "arabic-form", baselineShift: "baseline-shift", capHeight: "cap-height", clipPath: "clip-path", clipRule: "clip-rule", colorInterpolation: "color-interpolation", colorInterpolationFilters: "color-interpolation-filters", colorProfile: "color-profile", colorRendering: "color-rendering", dominantBaseline: "dominant-baseline", enableBackground: "enable-background", fillOpacity: "fill-opacity", fillRule: "fill-rule", floodColor: "flood-color", floodOpacity: "flood-opacity", fontFamily: "font-family", fontSize: "font-size", fontSizeAdjust: "font-size-adjust", fontStretch: "font-stretch", fontStyle: "font-style", fontVariant: "font-variant", fontWeight: "font-weight", glyphName: "glyph-name", glyphOrientationHorizontal: "glyph-orientation-horizontal", glyphOrientationVertical: "glyph-orientation-vertical", horizAdvX: "horiz-adv-x", horizOriginX: "horiz-origin-x", href: "href", imageRendering: "image-rendering", letterSpacing: "letter-spacing", lightingColor: "lighting-color", markerEnd: "marker-end", markerMid: "marker-mid", markerStart: "marker-start", overlinePosition: "overline-position", overlineThickness: "overline-thickness", paintOrder: "paint-order", panose1: "panose-1", pointerEvents: "pointer-events", renderingIntent: "rendering-intent", shapeRendering: "shape-rendering", stopColor: "stop-color", stopOpacity: "stop-opacity", strikethroughPosition: "strikethrough-position", strikethroughThickness: "strikethrough-thickness", strokeDasharray: "stroke-dasharray", strokeDashoffset: "stroke-dashoffset", strokeLinecap: "stroke-linecap", strokeLinejoin: "stroke-linejoin", strokeMiterlimit: "stroke-miterlimit", strokeOpacity: "stroke-opacity", strokeWidth: "stroke-width", textAnchor: "text-anchor", textDecoration: "text-decoration", textRendering: "text-rendering", underlinePosition: "underline-position", underlineThickness: "underline-thickness", unicodeBidi: "unicode-bidi", unicodeRange: "unicode-range", unitsPerEm: "units-per-em", vAlphabetic: "v-alphabetic", vHanging: "v-hanging", vIdeographic: "v-ideographic", vMathematical: "v-mathematical", vectorEffect: "vector-effect", vertAdvY: "vert-adv-y", vertOriginX: "vert-origin-x", vertOriginY: "vert-origin-y", wordSpacing: "word-spacing", writingMode: "writing-mode", xHeight: "x-height", xlinkActuate: "xlink:actuate", xlinkArcrole: "xlink:arcrole", xlinkHref: "xlink:href", xlinkRole: "xlink:role", xlinkShow: "xlink:show", xlinkTitle: "xlink:title", xlinkType: "xlink:type", xmlBase: "xml:base", xmlLang: "xml:lang", xmlSpace: "xml:space", xmlnsXlink: "xmlns:xlink" }; -var nf = /[\r\n%#()<>?[\\\]^`{|}"']/g; -function An(e, t) { +var Sn = { accentHeight: "accent-height", alignmentBaseline: "alignment-baseline", arabicForm: "arabic-form", baselineShift: "baseline-shift", capHeight: "cap-height", clipPath: "clip-path", clipRule: "clip-rule", colorInterpolation: "color-interpolation", colorInterpolationFilters: "color-interpolation-filters", colorProfile: "color-profile", colorRendering: "color-rendering", dominantBaseline: "dominant-baseline", enableBackground: "enable-background", fillOpacity: "fill-opacity", fillRule: "fill-rule", floodColor: "flood-color", floodOpacity: "flood-opacity", fontFamily: "font-family", fontSize: "font-size", fontSizeAdjust: "font-size-adjust", fontStretch: "font-stretch", fontStyle: "font-style", fontVariant: "font-variant", fontWeight: "font-weight", glyphName: "glyph-name", glyphOrientationHorizontal: "glyph-orientation-horizontal", glyphOrientationVertical: "glyph-orientation-vertical", horizAdvX: "horiz-adv-x", horizOriginX: "horiz-origin-x", href: "href", imageRendering: "image-rendering", letterSpacing: "letter-spacing", lightingColor: "lighting-color", markerEnd: "marker-end", markerMid: "marker-mid", markerStart: "marker-start", overlinePosition: "overline-position", overlineThickness: "overline-thickness", paintOrder: "paint-order", panose1: "panose-1", pointerEvents: "pointer-events", renderingIntent: "rendering-intent", shapeRendering: "shape-rendering", stopColor: "stop-color", stopOpacity: "stop-opacity", strikethroughPosition: "strikethrough-position", strikethroughThickness: "strikethrough-thickness", strokeDasharray: "stroke-dasharray", strokeDashoffset: "stroke-dashoffset", strokeLinecap: "stroke-linecap", strokeLinejoin: "stroke-linejoin", strokeMiterlimit: "stroke-miterlimit", strokeOpacity: "stroke-opacity", strokeWidth: "stroke-width", textAnchor: "text-anchor", textDecoration: "text-decoration", textRendering: "text-rendering", underlinePosition: "underline-position", underlineThickness: "underline-thickness", unicodeBidi: "unicode-bidi", unicodeRange: "unicode-range", unitsPerEm: "units-per-em", vAlphabetic: "v-alphabetic", vHanging: "v-hanging", vIdeographic: "v-ideographic", vMathematical: "v-mathematical", vectorEffect: "vector-effect", vertAdvY: "vert-adv-y", vertOriginX: "vert-origin-x", vertOriginY: "vert-origin-y", wordSpacing: "word-spacing", writingMode: "writing-mode", xHeight: "x-height", xlinkActuate: "xlink:actuate", xlinkArcrole: "xlink:arcrole", xlinkHref: "xlink:href", xlinkRole: "xlink:role", xlinkShow: "xlink:show", xlinkTitle: "xlink:title", xlinkType: "xlink:type", xmlBase: "xml:base", xmlLang: "xml:lang", xmlSpace: "xml:space", xmlnsXlink: "xmlns:xlink" }; +var ef = /[\r\n%#()<>?[\\\]^`{|}"']/g; +function kn(e, t) { if (!e) return ""; if (Array.isArray(e)) - return e.map((l) => An(l, t)).join(""); + return e.map((l) => kn(l, t)).join(""); if (typeof e != "object") return String(e); let n = e.type; if (n === "text") throw new Error(" nodes are not currently supported, please convert them to "); - let { children: r, style: i, ...o } = e.props || {}, u = (i == null ? void 0 : i.color) || t, s = `${Object.entries(o).map(([l, f]) => (typeof f == "string" && f.toLowerCase() === "currentcolor" && (f = u), l === "href" && n === "image" ? ` ${Tn[l] || l}="${$e.get(f)[0]}"` : ` ${Tn[l] || l}="${f}"`)).join("")}`, a = i ? ` style="${Object.entries(i).map(([l, f]) => `${lu(l)}:${f}`).join(";")}"` : ""; - return `<${n}${s}${a}>${An(r, u)}`; + let { children: r, style: i, ...o } = e.props || {}, u = (i == null ? void 0 : i.color) || t, s = `${Object.entries(o).map(([l, f]) => (typeof f == "string" && f.toLowerCase() === "currentcolor" && (f = u), l === "href" && n === "image" ? ` ${Sn[l] || l}="${Re.get(f)[0]}"` : ` ${Sn[l] || l}="${f}"`)).join("")}`, a = i ? ` style="${Object.entries(i).map(([l, f]) => `${ou(l)}:${f}`).join(";")}"` : ""; + return `<${n}${s}${a}>${kn(r, u)}`; } -async function mu(e) { +async function cu(e) { let t = /* @__PURE__ */ new Set(), n = (r) => { - if (!!r && !!yt(r)) { + if (r && bt(r)) { if (Array.isArray(r)) { r.forEach((i) => n(i)); return; @@ -15088,31 +15018,26 @@ async function mu(e) { Array.isArray(r.props.children) ? r.props.children.map((i) => n(i)) : n(r.props.children); } }; - return n(e), Promise.all(Array.from(t).map((r) => Ft(r))); + return n(e), Promise.all(Array.from(t).map((r) => yt(r))); } -async function Du(e, t) { +async function du(e, t) { let { viewBox: n, viewbox: r, width: i, height: o, className: u, style: s, children: a, ...l } = e.props || {}; n || (n = r), l.xmlns = "http://www.w3.org/2000/svg"; - let f = (s == null ? void 0 : s.color) || t, d = xt(n), h = d ? d[3] / d[2] : null; - return i = i || h && o ? o / h : null, o = o || h && i ? i * h : null, l.width = i, l.height = o, n && (l.viewBox = n), `data:image/svg+xml;utf8,${` (typeof p == "string" && p.toLowerCase() === "currentcolor" && (p = f), ` ${Tn[m] || m}="${p}"`)).join("")}>${An(a, f)}`.replace(nf, encodeURIComponent)}`; -} -c(); -c(); -var ke = "flex"; -var gu = { p: { display: ke, marginTop: "1em", marginBottom: "1em" }, div: { display: ke }, blockquote: { display: ke, marginTop: "1em", marginBottom: "1em", marginLeft: 40, marginRight: 40 }, center: { display: ke, textAlign: "center" }, hr: { display: ke, marginTop: "0.5em", marginBottom: "0.5em", marginLeft: "auto", marginRight: "auto", borderWidth: 1, borderStyle: "solid" }, h1: { display: ke, fontSize: "2em", marginTop: "0.67em", marginBottom: "0.67em", marginLeft: 0, marginRight: 0, fontWeight: "bold" }, h2: { display: ke, fontSize: "1.5em", marginTop: "0.83em", marginBottom: "0.83em", marginLeft: 0, marginRight: 0, fontWeight: "bold" }, h3: { display: ke, fontSize: "1.17em", marginTop: "1em", marginBottom: "1em", marginLeft: 0, marginRight: 0, fontWeight: "bold" }, h4: { display: ke, marginTop: "1.33em", marginBottom: "1.33em", marginLeft: 0, marginRight: 0, fontWeight: "bold" }, h5: { display: ke, fontSize: "0.83em", marginTop: "1.67em", marginBottom: "1.67em", marginLeft: 0, marginRight: 0, fontWeight: "bold" }, h6: { display: ke, fontSize: "0.67em", marginTop: "2.33em", marginBottom: "2.33em", marginLeft: 0, marginRight: 0, fontWeight: "bold" }, u: { textDecoration: "underline" }, strong: { fontWeight: "bold" }, b: { fontWeight: "bold" }, i: { fontStyle: "italic" }, em: { fontStyle: "italic" }, code: { fontFamily: "monospace" }, kbd: { fontFamily: "monospace" }, pre: { display: ke, fontFamily: "monospace", whiteSpace: "pre", marginTop: "1em", marginBottom: "1em" }, mark: { backgroundColor: "yellow", color: "black" }, big: { fontSize: "larger" }, small: { fontSize: "smaller" }, s: { textDecoration: "line-through" } }; -c(); -var of = /* @__PURE__ */ new Set(["color", "font", "fontFamily", "fontSize", "fontStyle", "fontWeight", "letterSpacing", "lineHeight", "textAlign", "textTransform", "textShadowOffset", "textShadowColor", "textShadowRadius", "textDecorationLine", "textDecorationStyle", "textDecorationColor", "whiteSpace", "transform", "wordBreak", "tabSize", "opacity", "filter", "_viewportWidth", "_viewportHeight", "_inheritedClipPathId", "_inheritedMaskId", "_inheritedBackgroundClipTextPath"]); -function On(e) { + let f = (s == null ? void 0 : s.color) || t, c = vt(n), p = c ? c[3] / c[2] : null; + return i = i || p && o ? o / p : null, o = o || p && i ? i * p : null, l.width = i, l.height = o, n && (l.viewBox = n), `data:image/svg+xml;utf8,${` (typeof d == "string" && d.toLowerCase() === "currentcolor" && (d = f), ` ${Sn[h] || h}="${d}"`)).join("")}>${kn(a, f)}`.replace(ef, encodeURIComponent)}`; +} +var Ce = "flex"; +var pu = { p: { display: Ce, marginTop: "1em", marginBottom: "1em" }, div: { display: Ce }, blockquote: { display: Ce, marginTop: "1em", marginBottom: "1em", marginLeft: 40, marginRight: 40 }, center: { display: Ce, textAlign: "center" }, hr: { display: Ce, marginTop: "0.5em", marginBottom: "0.5em", marginLeft: "auto", marginRight: "auto", borderWidth: 1, borderStyle: "solid" }, h1: { display: Ce, fontSize: "2em", marginTop: "0.67em", marginBottom: "0.67em", marginLeft: 0, marginRight: 0, fontWeight: "bold" }, h2: { display: Ce, fontSize: "1.5em", marginTop: "0.83em", marginBottom: "0.83em", marginLeft: 0, marginRight: 0, fontWeight: "bold" }, h3: { display: Ce, fontSize: "1.17em", marginTop: "1em", marginBottom: "1em", marginLeft: 0, marginRight: 0, fontWeight: "bold" }, h4: { display: Ce, marginTop: "1.33em", marginBottom: "1.33em", marginLeft: 0, marginRight: 0, fontWeight: "bold" }, h5: { display: Ce, fontSize: "0.83em", marginTop: "1.67em", marginBottom: "1.67em", marginLeft: 0, marginRight: 0, fontWeight: "bold" }, h6: { display: Ce, fontSize: "0.67em", marginTop: "2.33em", marginBottom: "2.33em", marginLeft: 0, marginRight: 0, fontWeight: "bold" }, u: { textDecoration: "underline" }, strong: { fontWeight: "bold" }, b: { fontWeight: "bold" }, i: { fontStyle: "italic" }, em: { fontStyle: "italic" }, code: { fontFamily: "monospace" }, kbd: { fontFamily: "monospace" }, pre: { display: Ce, fontFamily: "monospace", whiteSpace: "pre", marginTop: "1em", marginBottom: "1em" }, mark: { backgroundColor: "yellow", color: "black" }, big: { fontSize: "larger" }, small: { fontSize: "smaller" }, s: { textDecoration: "line-through" } }; +var tf = /* @__PURE__ */ new Set(["color", "font", "fontFamily", "fontSize", "fontStyle", "fontWeight", "letterSpacing", "lineHeight", "textAlign", "textTransform", "textShadowOffset", "textShadowColor", "textShadowRadius", "textDecorationLine", "textDecorationStyle", "textDecorationColor", "whiteSpace", "transform", "wordBreak", "tabSize", "opacity", "filter", "_viewportWidth", "_viewportHeight", "_inheritedClipPathId", "_inheritedMaskId", "_inheritedBackgroundClipTextPath"]); +function Tn(e) { let t = {}; for (let n in e) - of.has(n) && (t[n] = e[n]); + tf.has(n) && (t[n] = e[n]); return t; } -c(); -c(); -function sf(e, t) { +function nf(e, t) { try { - let n = new Ke(e); + let n = new Ye(e); switch (n.unit) { case "px": return { absolute: n.value }; @@ -15129,7 +15054,7 @@ function sf(e, t) { return {}; } } -function Pn(e, t, n) { +function An(e, t, n) { switch (e) { case "top": return { yRelative: 0 }; @@ -15142,12 +15067,12 @@ function Pn(e, t, n) { case "center": return {}; default: { - let r = sf(e, t); + let r = nf(e, t); return r.absolute ? { [n ? "xAbsolute" : "yAbsolute"]: r.absolute } : r.relative ? { [n ? "xRelative" : "yRelative"]: r.relative } : {}; } } } -function In(e, t) { +function On(e, t) { if (typeof e == "number") return { xAbsolute: e }; let n; @@ -15156,29 +15081,33 @@ function In(e, t) { } catch { return {}; } - return n.length === 1 ? Pn(n[0], t, true) : n.length === 2 ? ((n[0] === "top" || n[0] === "bottom" || n[1] === "left" || n[1] === "right") && n.reverse(), { ...Pn(n[0], t, true), ...Pn(n[1], t, false) }) : {}; + return n.length === 1 ? An(n[0], t, true) : n.length === 2 ? ((n[0] === "top" || n[0] === "bottom" || n[1] === "left" || n[1] === "right") && n.reverse(), { ...An(n[0], t, true), ...An(n[1], t, false) }) : {}; } -c(); -function Lt(e, t) { +function Rt(e, t) { let n = (0, import_css_to_react_native2.getPropertyName)(`mask-${t}`); return e[n] || e[`WebkitM${n.substring(1)}`]; } -var lf = /(?<=\))(?:\s*,\s*)/; -function bu(e) { - let t = e.maskImage || e.WebkitMaskImage, n = { position: Lt(e, "position") || "0% 0%", size: Lt(e, "size") || "100% 100%", repeat: Lt(e, "repeat") || "repeat", origin: Lt(e, "origin") || "border-box", clip: Lt(e, "origin") || "border-box" }; - return t.split(lf).reverse().map((r) => r.trim()).filter((r) => r && r !== "none").map((r) => ({ image: r, ...n })); +function uf(e) { + let t = [], n = 0, r = 0; + for (let i = 0; i < e.length; i++) + e[i] === "(" ? r++ : e[i] === ")" && r--, r === 0 && e[i] === "," && (t.push(e.slice(n, i).trim()), n = i + 1); + return t.push(e.slice(n).trim()), t; +} +function hu(e) { + let t = e.maskImage || e.WebkitMaskImage, n = { position: Rt(e, "position") || "0% 0%", size: Rt(e, "size") || "100% 100%", repeat: Rt(e, "repeat") || "repeat", origin: Rt(e, "origin") || "border-box", clip: Rt(e, "origin") || "border-box" }; + return uf(t).filter((i) => i && i !== "none").reverse().map((i) => ({ image: i, ...n })); } -var hf = /* @__PURE__ */ new Set(["flex", "flexGrow", "flexShrink", "flexBasis", "fontWeight", "lineHeight", "opacity", "scale", "scaleX", "scaleY"]); -var mf = /* @__PURE__ */ new Set(["lineHeight"]); -function Df(e, t, n, r) { +var cf = /* @__PURE__ */ new Set(["flex", "flexGrow", "flexShrink", "flexBasis", "fontWeight", "lineHeight", "opacity", "scale", "scaleX", "scaleY"]); +var df = /* @__PURE__ */ new Set(["lineHeight"]); +function pf(e, t, n, r) { return e === "textDecoration" && !n.includes(t.textDecorationColor) && (t.textDecorationColor = r), t; } -function Mt(e, t) { - return typeof t == "number" ? hf.has(e) ? mf.has(e) ? t : String(t) : t + "px" : t; +function Lt(e, t) { + return typeof t == "number" ? cf.has(e) ? df.has(e) ? t : String(t) : t + "px" : t; } -function gf(e, t, n) { +function hf(e, t, n) { if (e === "lineHeight") - return { lineHeight: Mt(e, t) }; + return { lineHeight: Lt(e, t) }; if (e === "fontFamily") return { fontFamily: t.split(",").map((r) => r.trim().replace(/(^['"])|(['"]$)/g, "").toLocaleLowerCase()) }; if (e === "borderRadius") { @@ -15186,13 +15115,13 @@ function gf(e, t, n) { return; let [r, i] = t.split("/"), o = (0, import_css_to_react_native.getStylesForProperty)(e, r, true), u = (0, import_css_to_react_native.getStylesForProperty)(e, i, true); for (let s in o) - u[s] = Mt(e, o[s]) + " " + Mt(e, u[s]); + u[s] = Lt(e, o[s]) + " " + Lt(e, u[s]); return u; } if (/^border(Top|Right|Bottom|Left)?$/.test(e)) { let r = (0, import_css_to_react_native.getStylesForProperty)("border", t, true); r.borderWidth === 1 && !String(t).includes("1px") && (r.borderWidth = 3), r.borderColor === "black" && !String(t).includes("black") && (r.borderColor = n); - let i = { Width: Mt(e + "Width", r.borderWidth), Style: Fe(r.borderStyle, { solid: "solid", dashed: "dashed" }, "solid", e + "Style"), Color: r.borderColor }, o = {}; + let i = { Width: Lt(e + "Width", r.borderWidth), Style: ve(r.borderStyle, { solid: "solid", dashed: "dashed" }, "solid", e + "Style"), Color: r.borderColor }, o = {}; for (let u of e === "border" ? ["Top", "Right", "Bottom", "Left"] : [e.slice(6)]) for (let s in i) o["border" + u + s] = i[s]; @@ -15218,7 +15147,7 @@ function gf(e, t, n) { if (e === "background") return t = t.toString().trim(), /^(linear-gradient|radial-gradient|url)\(/.test(t) ? (0, import_css_to_react_native.getStylesForProperty)("backgroundImage", t, true) : (0, import_css_to_react_native.getStylesForProperty)("background", t, true); if (e === "textShadow" && (t = t.toString().trim(), t.includes(","))) { - let r = bf(t), i = {}; + let r = mf(t), i = {}; for (let o of r) { let u = (0, import_css_to_react_native.getStylesForProperty)("textShadow", o, true); for (let s in u) @@ -15227,7 +15156,7 @@ function gf(e, t, n) { return i; } } -function bf(e) { +function mf(e) { let t = [], n = false, r = 0, i = e.length; for (let o = 0; o < i; ++o) { let u = e[o]; @@ -15235,24 +15164,24 @@ function bf(e) { } return t.push(e.substring(r, i)), t.map((o) => o.trim()); } -function vu(e) { +function mu(e) { return e === "transform" ? " Only absolute lengths such as `10px` are supported." : ""; } -var yu = /rgb\((\d+)\s+(\d+)\s+(\d+)\s*\/\s*([\.\d]+)\)/; -function Fu(e) { - if (typeof e == "string" && yu.test(e.trim())) - return e.trim().replace(yu, (t, n, r, i, o) => `rgba(${n}, ${r}, ${i}, ${o})`); +var Du = /rgb\((\d+)\s+(\d+)\s+(\d+)\s*\/\s*([\.\d]+)\)/; +function bu(e) { + if (typeof e == "string" && Du.test(e.trim())) + return e.trim().replace(Du, (t, n, r, i, o) => `rgba(${n}, ${r}, ${i}, ${o})`); if (typeof e == "object" && e !== null) { for (let t in e) - e[t] = Fu(e[t]); + e[t] = bu(e[t]); return e; } return e; } -function Gr(e, t) { +function qr(e, t) { let n = {}; if (e) { - let i = yf(e.color, t.color); + let i = gf(e.color, t.color); n.color = i; for (let o in e) { if (o.startsWith("_")) { @@ -15261,14 +15190,14 @@ function Gr(e, t) { } if (o === "color") continue; - let u = (0, import_css_to_react_native.getPropertyName)(o), s = Ff(e[o], i); + let u = (0, import_css_to_react_native.getPropertyName)(o), s = vf(e[o], i); try { - let a = gf(u, s, i) || Df(u, (0, import_css_to_react_native.getStylesForProperty)(u, Mt(u, s), true), s, i); + let a = hf(u, s, i) || pf(u, (0, import_css_to_react_native.getStylesForProperty)(u, Lt(u, s), true), s, i); Object.assign(n, a); } catch (a) { throw new Error(a.message + (a.message.includes(s) ? ` - ` + vu(u) : ` - in CSS rule \`${u}: ${s}\`.${vu(u)}`)); + ` + mu(u) : ` + in CSS rule \`${u}: ${s}\`.${mu(u)}`)); } } } @@ -15277,40 +15206,40 @@ function Gr(e, t) { n.backgroundImage = i; } if (n.maskImage || n.WebkitMaskImage) { - let i = bu(n); + let i = hu(n); n.maskImage = i; } - let r = vf(n.fontSize, t.fontSize); - typeof n.fontSize < "u" && (n.fontSize = r), n.transformOrigin && (n.transformOrigin = In(n.transformOrigin, r)); + let r = Df(n.fontSize, t.fontSize); + typeof n.fontSize < "u" && (n.fontSize = r), n.transformOrigin && (n.transformOrigin = On(n.transformOrigin, r)); for (let i in n) { let o = n[i]; if (i === "lineHeight") - typeof o == "string" && (o = n[i] = G(o, r, r, t, true) / r); + typeof o == "string" && (o = n[i] = U(o, r, r, t, true) / r); else { if (typeof o == "string") { - let u = G(o, r, r, t); + let u = U(o, r, r, t); typeof u < "u" && (n[i] = u), o = n[i]; } if (typeof o == "string" || typeof o == "object") { - let u = Fu(o); + let u = bu(o); u && (n[i] = u), o = n[i]; } } if (i === "opacity" && (o = n[i] = o * t.opacity), i === "transform") { let u = o; for (let s of u) { - let a = Object.keys(s)[0], l = s[a], f = typeof l == "string" ? G(l, r, r, t) ?? l : l; + let a = Object.keys(s)[0], l = s[a], f = typeof l == "string" ? U(l, r, r, t) ?? l : l; s[a] = f; } } } return n; } -function vf(e, t) { +function Df(e, t) { if (typeof e == "number") return e; try { - let n = new Ke(e); + let n = new Ye(e); switch (n.unit) { case "em": return n.value * t; @@ -15321,46 +15250,43 @@ function vf(e, t) { return t; } } -function xu(e) { +function gu(e) { if (e.startsWith("hsl")) { let t = index_esm_default(e), [n, r, i] = t.values; return `hsl(${[n, `${r}%`, `${i}%`].concat(t.alpha === 1 ? [] : [t.alpha]).join(",")})`; } return e; } -function yf(e, t) { - return e && e.toLowerCase() !== "currentcolor" ? xu(e) : xu(t); +function gf(e, t) { + return e && e.toLowerCase() !== "currentcolor" ? gu(e) : gu(t); } -function xf(e, t) { +function bf(e, t) { return e.replace(/currentcolor/gi, t); } -function Ff(e, t) { - return $r(e) && (e = xf(e, t)), e; +function vf(e, t) { + return Lr(e) && (e = bf(e, t)), e; } -async function Bn(e, t, n, r, i) { - let o = await Ge(), u = { ...n, ...Gr(gu[t], n), ...Gr(r, n) }; +async function Pn(e, t, n, r, i) { + let o = await qe(), u = { ...n, ...qr(pu[t], n), ...qr(r, n) }; if (t === "img") { - let [s, a, l] = await Ft(i.src); + let [s, a, l] = await yt(i.src); if (a === void 0 && l === void 0) { if (i.width === void 0 || i.height === void 0) throw new Error("Image size cannot be determined. Please provide the width and height of the image."); a = parseInt(i.width), l = parseInt(i.height); } - let f = l / a, d = (u.borderLeftWidth || 0) + (u.borderRightWidth || 0) + (u.paddingLeft || 0) + (u.paddingRight || 0), h = (u.borderTopWidth || 0) + (u.borderBottomWidth || 0) + (u.paddingTop || 0) + (u.paddingBottom || 0), m = u.width || i.width, p = u.height || i.height, D = typeof m == "number" && typeof p == "number"; - D && (m -= d, p -= h), m === void 0 && p === void 0 ? (m = "100%", e.setAspectRatio(1 / f)) : m === void 0 ? typeof p == "number" ? m = p / f : e.setAspectRatio(1 / f) : p === void 0 && (typeof m == "number" ? p = m * f : e.setAspectRatio(1 / f)), u.width = D ? m + d : m, u.height = D ? p + h : p, u.__src = s; + let f = l / a, c = (u.borderLeftWidth || 0) + (u.borderRightWidth || 0) + (u.paddingLeft || 0) + (u.paddingRight || 0), p = (u.borderTopWidth || 0) + (u.borderBottomWidth || 0) + (u.paddingTop || 0) + (u.paddingBottom || 0), h = u.width || i.width, d = u.height || i.height, m = typeof h == "number" && typeof d == "number"; + m && (h -= c, d -= p), h === void 0 && d === void 0 ? (h = "100%", e.setAspectRatio(1 / f)) : h === void 0 ? typeof d == "number" ? h = d / f : e.setAspectRatio(1 / f) : d === void 0 && (typeof h == "number" ? d = h * f : e.setAspectRatio(1 / f)), u.width = m ? h + c : h, u.height = m ? d + p : d, u.__src = s; } if (t === "svg") { - let s = i.viewBox || i.viewbox, a = xt(s), l = a ? a[3] / a[2] : null, { width: f, height: d } = i; - typeof f > "u" && d ? l == null ? f = 0 : typeof d == "string" && d.endsWith("%") ? f = parseInt(d) / l + "%" : (d = G(d, n.fontSize, 1, n), f = d / l) : typeof d > "u" && f ? l == null ? f = 0 : typeof f == "string" && f.endsWith("%") ? d = parseInt(f) * l + "%" : (f = G(f, n.fontSize, 1, n), d = f * l) : (typeof f < "u" && (f = G(f, n.fontSize, 1, n) || f), typeof d < "u" && (d = G(d, n.fontSize, 1, n) || d), f || (f = a == null ? void 0 : a[2]), d || (d = a == null ? void 0 : a[3])), !u.width && f && (u.width = f), !u.height && d && (u.height = d); + let s = i.viewBox || i.viewbox, a = vt(s), l = a ? a[3] / a[2] : null, { width: f, height: c } = i; + typeof f > "u" && c ? l == null ? f = 0 : typeof c == "string" && c.endsWith("%") ? f = parseInt(c) / l + "%" : (c = U(c, n.fontSize, 1, n), f = c / l) : typeof c > "u" && f ? l == null ? f = 0 : typeof f == "string" && f.endsWith("%") ? c = parseInt(f) * l + "%" : (f = U(f, n.fontSize, 1, n), c = f * l) : (typeof f < "u" && (f = U(f, n.fontSize, 1, n) || f), typeof c < "u" && (c = U(c, n.fontSize, 1, n) || c), f || (f = a == null ? void 0 : a[2]), c || (c = a == null ? void 0 : a[3])), !u.width && f && (u.width = f), !u.height && c && (u.height = c); } - return e.setDisplay(Fe(u.display, { flex: o.DISPLAY_FLEX, block: o.DISPLAY_FLEX, none: o.DISPLAY_NONE, "-webkit-box": o.DISPLAY_FLEX }, o.DISPLAY_FLEX, "display")), e.setAlignContent(Fe(u.alignContent, { stretch: o.ALIGN_STRETCH, center: o.ALIGN_CENTER, "flex-start": o.ALIGN_FLEX_START, "flex-end": o.ALIGN_FLEX_END, "space-between": o.ALIGN_SPACE_BETWEEN, "space-around": o.ALIGN_SPACE_AROUND, baseline: o.ALIGN_BASELINE, normal: o.ALIGN_AUTO }, o.ALIGN_AUTO, "alignContent")), e.setAlignItems(Fe(u.alignItems, { stretch: o.ALIGN_STRETCH, center: o.ALIGN_CENTER, "flex-start": o.ALIGN_FLEX_START, "flex-end": o.ALIGN_FLEX_END, baseline: o.ALIGN_BASELINE, normal: o.ALIGN_AUTO }, o.ALIGN_STRETCH, "alignItems")), e.setAlignSelf(Fe(u.alignSelf, { stretch: o.ALIGN_STRETCH, center: o.ALIGN_CENTER, "flex-start": o.ALIGN_FLEX_START, "flex-end": o.ALIGN_FLEX_END, baseline: o.ALIGN_BASELINE, normal: o.ALIGN_AUTO }, o.ALIGN_AUTO, "alignSelf")), e.setJustifyContent(Fe(u.justifyContent, { center: o.JUSTIFY_CENTER, "flex-start": o.JUSTIFY_FLEX_START, "flex-end": o.JUSTIFY_FLEX_END, "space-between": o.JUSTIFY_SPACE_BETWEEN, "space-around": o.JUSTIFY_SPACE_AROUND }, o.JUSTIFY_FLEX_START, "justifyContent")), e.setFlexDirection(Fe(u.flexDirection, { row: o.FLEX_DIRECTION_ROW, column: o.FLEX_DIRECTION_COLUMN, "row-reverse": o.FLEX_DIRECTION_ROW_REVERSE, "column-reverse": o.FLEX_DIRECTION_COLUMN_REVERSE }, o.FLEX_DIRECTION_ROW, "flexDirection")), e.setFlexWrap(Fe(u.flexWrap, { wrap: o.WRAP_WRAP, nowrap: o.WRAP_NO_WRAP, "wrap-reverse": o.WRAP_WRAP_REVERSE }, o.WRAP_NO_WRAP, "flexWrap")), typeof u.gap < "u" && e.setGap(o.GUTTER_ALL, u.gap), typeof u.rowGap < "u" && e.setGap(o.GUTTER_ROW, u.rowGap), typeof u.columnGap < "u" && e.setGap(o.GUTTER_COLUMN, u.columnGap), typeof u.flexBasis < "u" && e.setFlexBasis(u.flexBasis), e.setFlexGrow(typeof u.flexGrow > "u" ? 0 : u.flexGrow), e.setFlexShrink(typeof u.flexShrink > "u" ? 0 : u.flexShrink), typeof u.maxHeight < "u" && e.setMaxHeight(u.maxHeight), typeof u.maxWidth < "u" && e.setMaxWidth(u.maxWidth), typeof u.minHeight < "u" && e.setMinHeight(u.minHeight), typeof u.minWidth < "u" && e.setMinWidth(u.minWidth), e.setOverflow(Fe(u.overflow, { visible: o.OVERFLOW_VISIBLE, hidden: o.OVERFLOW_HIDDEN }, o.OVERFLOW_VISIBLE, "overflow")), e.setMargin(o.EDGE_TOP, u.marginTop || 0), e.setMargin(o.EDGE_BOTTOM, u.marginBottom || 0), e.setMargin(o.EDGE_LEFT, u.marginLeft || 0), e.setMargin(o.EDGE_RIGHT, u.marginRight || 0), e.setBorder(o.EDGE_TOP, u.borderTopWidth || 0), e.setBorder(o.EDGE_BOTTOM, u.borderBottomWidth || 0), e.setBorder(o.EDGE_LEFT, u.borderLeftWidth || 0), e.setBorder(o.EDGE_RIGHT, u.borderRightWidth || 0), e.setPadding(o.EDGE_TOP, u.paddingTop || 0), e.setPadding(o.EDGE_BOTTOM, u.paddingBottom || 0), e.setPadding(o.EDGE_LEFT, u.paddingLeft || 0), e.setPadding(o.EDGE_RIGHT, u.paddingRight || 0), e.setPositionType(Fe(u.position, { absolute: o.POSITION_TYPE_ABSOLUTE, relative: o.POSITION_TYPE_RELATIVE }, o.POSITION_TYPE_RELATIVE, "position")), typeof u.top < "u" && e.setPosition(o.EDGE_TOP, u.top), typeof u.bottom < "u" && e.setPosition(o.EDGE_BOTTOM, u.bottom), typeof u.left < "u" && e.setPosition(o.EDGE_LEFT, u.left), typeof u.right < "u" && e.setPosition(o.EDGE_RIGHT, u.right), typeof u.height < "u" ? e.setHeight(u.height) : e.setHeightAuto(), typeof u.width < "u" ? e.setWidth(u.width) : e.setWidthAuto(), [u, On(u)]; + return e.setDisplay(ve(u.display, { flex: o.DISPLAY_FLEX, block: o.DISPLAY_FLEX, none: o.DISPLAY_NONE, "-webkit-box": o.DISPLAY_FLEX }, o.DISPLAY_FLEX, "display")), e.setAlignContent(ve(u.alignContent, { stretch: o.ALIGN_STRETCH, center: o.ALIGN_CENTER, "flex-start": o.ALIGN_FLEX_START, "flex-end": o.ALIGN_FLEX_END, "space-between": o.ALIGN_SPACE_BETWEEN, "space-around": o.ALIGN_SPACE_AROUND, baseline: o.ALIGN_BASELINE, normal: o.ALIGN_AUTO }, o.ALIGN_AUTO, "alignContent")), e.setAlignItems(ve(u.alignItems, { stretch: o.ALIGN_STRETCH, center: o.ALIGN_CENTER, "flex-start": o.ALIGN_FLEX_START, "flex-end": o.ALIGN_FLEX_END, baseline: o.ALIGN_BASELINE, normal: o.ALIGN_AUTO }, o.ALIGN_STRETCH, "alignItems")), e.setAlignSelf(ve(u.alignSelf, { stretch: o.ALIGN_STRETCH, center: o.ALIGN_CENTER, "flex-start": o.ALIGN_FLEX_START, "flex-end": o.ALIGN_FLEX_END, baseline: o.ALIGN_BASELINE, normal: o.ALIGN_AUTO }, o.ALIGN_AUTO, "alignSelf")), e.setJustifyContent(ve(u.justifyContent, { center: o.JUSTIFY_CENTER, "flex-start": o.JUSTIFY_FLEX_START, "flex-end": o.JUSTIFY_FLEX_END, "space-between": o.JUSTIFY_SPACE_BETWEEN, "space-around": o.JUSTIFY_SPACE_AROUND }, o.JUSTIFY_FLEX_START, "justifyContent")), e.setFlexDirection(ve(u.flexDirection, { row: o.FLEX_DIRECTION_ROW, column: o.FLEX_DIRECTION_COLUMN, "row-reverse": o.FLEX_DIRECTION_ROW_REVERSE, "column-reverse": o.FLEX_DIRECTION_COLUMN_REVERSE }, o.FLEX_DIRECTION_ROW, "flexDirection")), e.setFlexWrap(ve(u.flexWrap, { wrap: o.WRAP_WRAP, nowrap: o.WRAP_NO_WRAP, "wrap-reverse": o.WRAP_WRAP_REVERSE }, o.WRAP_NO_WRAP, "flexWrap")), typeof u.gap < "u" && e.setGap(o.GUTTER_ALL, u.gap), typeof u.rowGap < "u" && e.setGap(o.GUTTER_ROW, u.rowGap), typeof u.columnGap < "u" && e.setGap(o.GUTTER_COLUMN, u.columnGap), typeof u.flexBasis < "u" && e.setFlexBasis(u.flexBasis), e.setFlexGrow(typeof u.flexGrow > "u" ? 0 : u.flexGrow), e.setFlexShrink(typeof u.flexShrink > "u" ? 0 : u.flexShrink), typeof u.maxHeight < "u" && e.setMaxHeight(u.maxHeight), typeof u.maxWidth < "u" && e.setMaxWidth(u.maxWidth), typeof u.minHeight < "u" && e.setMinHeight(u.minHeight), typeof u.minWidth < "u" && e.setMinWidth(u.minWidth), e.setOverflow(ve(u.overflow, { visible: o.OVERFLOW_VISIBLE, hidden: o.OVERFLOW_HIDDEN }, o.OVERFLOW_VISIBLE, "overflow")), e.setMargin(o.EDGE_TOP, u.marginTop || 0), e.setMargin(o.EDGE_BOTTOM, u.marginBottom || 0), e.setMargin(o.EDGE_LEFT, u.marginLeft || 0), e.setMargin(o.EDGE_RIGHT, u.marginRight || 0), e.setBorder(o.EDGE_TOP, u.borderTopWidth || 0), e.setBorder(o.EDGE_BOTTOM, u.borderBottomWidth || 0), e.setBorder(o.EDGE_LEFT, u.borderLeftWidth || 0), e.setBorder(o.EDGE_RIGHT, u.borderRightWidth || 0), e.setPadding(o.EDGE_TOP, u.paddingTop || 0), e.setPadding(o.EDGE_BOTTOM, u.paddingBottom || 0), e.setPadding(o.EDGE_LEFT, u.paddingLeft || 0), e.setPadding(o.EDGE_RIGHT, u.paddingRight || 0), e.setPositionType(ve(u.position, { absolute: o.POSITION_TYPE_ABSOLUTE, relative: o.POSITION_TYPE_RELATIVE }, o.POSITION_TYPE_RELATIVE, "position")), typeof u.top < "u" && e.setPosition(o.EDGE_TOP, u.top), typeof u.bottom < "u" && e.setPosition(o.EDGE_BOTTOM, u.bottom), typeof u.left < "u" && e.setPosition(o.EDGE_LEFT, u.left), typeof u.right < "u" && e.setPosition(o.EDGE_RIGHT, u.right), typeof u.height < "u" ? e.setHeight(u.height) : e.setHeightAuto(), typeof u.width < "u" ? e.setWidth(u.width) : e.setWidthAuto(), [u, Tn(u)]; } -c(); -c(); -c(); -var wu = [1, 0, 0, 1, 0, 0]; -function wf(e, t, n) { - let r = [...wu]; +var vu = [1, 0, 0, 1, 0, 0]; +function yf(e, t, n) { + let r = [...vu]; for (let i of e) { let o = Object.keys(i)[0], u = i[o]; if (typeof u == "string") @@ -15370,7 +15296,7 @@ function wf(e, t, n) { u = parseFloat(u) / 100 * n, i[o] = u; else throw new Error(`Invalid transform: "${o}: ${u}".`); - let s = u, a = [...wu]; + let s = u, a = [...vu]; switch (o) { case "translateX": a[4] = s; @@ -15388,8 +15314,8 @@ function wf(e, t, n) { a[3] = s; break; case "rotate": { - let l = s * Math.PI / 180, f = Math.cos(l), d = Math.sin(l); - a[0] = f, a[1] = d, a[2] = -d, a[3] = f; + let l = s * Math.PI / 180, f = Math.cos(l), c = Math.sin(l); + a[0] = f, a[1] = c, a[2] = -c, a[3] = f; break; } case "skewX": @@ -15399,275 +15325,274 @@ function wf(e, t, n) { a[1] = Math.tan(s * Math.PI / 180); break; } - r = Rt(a, r); + r = It(a, r); } e.splice(0, e.length), e.push(...r), e.__resolved = true; } -function Nt({ left: e, top: t, width: n, height: r }, i, o, u) { +function Mt({ left: e, top: t, width: n, height: r }, i, o, u) { let s; - i.__resolved || wf(i, n, r); + i.__resolved || yf(i, n, r); let a = i; if (o) s = a; else { - let l = (u == null ? void 0 : u.xAbsolute) ?? ((u == null ? void 0 : u.xRelative) ?? 50) * n / 100, f = (u == null ? void 0 : u.yAbsolute) ?? ((u == null ? void 0 : u.yRelative) ?? 50) * r / 100, d = e + l, h = t + f; - s = Rt([1, 0, 0, 1, d, h], Rt(a, [1, 0, 0, 1, -d, -h])), a.__parent && (s = Rt(a.__parent, s)), a.splice(0, 6, ...s); + let l = (u == null ? void 0 : u.xAbsolute) ?? ((u == null ? void 0 : u.xRelative) ?? 50) * n / 100, f = (u == null ? void 0 : u.yAbsolute) ?? ((u == null ? void 0 : u.yRelative) ?? 50) * r / 100, c = e + l, p = t + f; + s = It([1, 0, 0, 1, c, p], It(a, [1, 0, 0, 1, -c, -p])), a.__parent && (s = It(a.__parent, s)), a.splice(0, 6, ...s); } return `matrix(${s.map((l) => l.toFixed(2)).join(",")})`; } -function Cu({ left: e, top: t, width: n, height: r, isInheritingTransform: i }, o) { +function xu({ left: e, top: t, width: n, height: r, isInheritingTransform: i }, o) { let u = "", s = 1; - return o.transform && (u = Nt({ left: e, top: t, width: n, height: r }, o.transform, i, o.transformOrigin)), o.opacity !== void 0 && (s = +o.opacity), { matrix: u, opacity: s }; + return o.transform && (u = Mt({ left: e, top: t, width: n, height: r }, o.transform, i, o.transformOrigin)), o.opacity !== void 0 && (s = +o.opacity), { matrix: u, opacity: s }; } -function Rn({ id: e, content: t, filter: n, left: r, top: i, width: o, height: u, matrix: s, opacity: a, image: l, clipPathId: f, debug: d, shape: h, decorationShape: m }, p) { - let D = ""; - if (d && (D = k("rect", { x: r, y: i - u, width: o, height: u, fill: "transparent", stroke: "#575eff", "stroke-width": 1, transform: s || void 0, "clip-path": f ? `url(#${f})` : void 0 })), l) { - let b = { href: l, x: r, y: i, width: o, height: u, transform: s || void 0, "clip-path": f ? `url(#${f})` : void 0, style: p.filter ? `filter:${p.filter}` : void 0 }; - return [(n ? `${n}` : "") + k("image", { ...b, opacity: a !== 1 ? a : void 0 }) + (m || "") + (n ? "" : "") + D, ""]; +function Bn({ id: e, content: t, filter: n, left: r, top: i, width: o, height: u, matrix: s, opacity: a, image: l, clipPathId: f, debug: c, shape: p, decorationShape: h }, d) { + let m = ""; + if (c && (m = C("rect", { x: r, y: i - u, width: o, height: u, fill: "transparent", stroke: "#575eff", "stroke-width": 1, transform: s || void 0, "clip-path": f ? `url(#${f})` : void 0 })), l) { + let g = { href: l, x: r, y: i, width: o, height: u, transform: s || void 0, "clip-path": f ? `url(#${f})` : void 0, style: d.filter ? `filter:${d.filter}` : void 0 }; + return [(n ? `${n}` : "") + C("image", { ...g, opacity: a !== 1 ? a : void 0 }) + (h || "") + (n ? "" : "") + m, ""]; } - let F = { x: r, y: i, width: o, height: u, "font-weight": p.fontWeight, "font-style": p.fontStyle, "font-size": p.fontSize, "font-family": p.fontFamily, "letter-spacing": p.letterSpacing || void 0, transform: s || void 0, "clip-path": f ? `url(#${f})` : void 0, style: p.filter ? `filter:${p.filter}` : void 0 }; - return [(n ? `${n}` : "") + k("text", { ...F, fill: p.color, opacity: a !== 1 ? a : void 0 }, (0, import_escape_html.default)(t)) + (m || "") + (n ? "" : "") + D, h ? k("text", F, (0, import_escape_html.default)(t)) : ""]; + let v = { x: r, y: i, width: o, height: u, "font-weight": d.fontWeight, "font-style": d.fontStyle, "font-size": d.fontSize, "font-family": d.fontFamily, "letter-spacing": d.letterSpacing || void 0, transform: s || void 0, "clip-path": f ? `url(#${f})` : void 0, style: d.filter ? `filter:${d.filter}` : void 0 }; + return [(n ? `${n}` : "") + C("text", { ...v, fill: d.color, opacity: a !== 1 ? a : void 0 }, (0, import_escape_html.default)(t)) + (h || "") + (n ? "" : "") + m, p ? C("text", v, (0, import_escape_html.default)(t)) : ""]; } -c(); -function Ef(e, t, n) { +function xf(e, t, n) { return e.replace(/([MA])([0-9.-]+),([0-9.-]+)/g, function(r, i, o, u) { return i + (parseFloat(o) + t) + "," + (parseFloat(u) + n); }); } -var jr = 1.1; -function _u({ id: e, width: t, height: n }, r) { +var Ur = 1.1; +function Fu({ id: e, width: t, height: n }, r) { if (!r.shadowColor || !r.shadowOffset || typeof r.shadowRadius > "u") return ""; let i = r.shadowColor.length, o = "", u = "", s = 0, a = t, l = 0, f = n; - for (let d = 0; d < i; d++) { - let h = r.shadowRadius[d] * r.shadowRadius[d] / 4; - s = Math.min(r.shadowOffset[d].width - h, s), a = Math.max(r.shadowOffset[d].width + h + t, a), l = Math.min(r.shadowOffset[d].height - h, l), f = Math.max(r.shadowOffset[d].height + h + n, f), o += k("feDropShadow", { dx: r.shadowOffset[d].width, dy: r.shadowOffset[d].height, stdDeviation: r.shadowRadius[d] / 2, "flood-color": r.shadowColor[d], "flood-opacity": 1, ...i > 1 ? { in: "SourceGraphic", result: `satori_s-${e}-result-${d}` } : {} }), i > 1 && (u = k("feMergeNode", { in: `satori_s-${e}-result-${d}` }) + u); + for (let c = 0; c < i; c++) { + let p = r.shadowRadius[c] * r.shadowRadius[c] / 4; + s = Math.min(r.shadowOffset[c].width - p, s), a = Math.max(r.shadowOffset[c].width + p + t, a), l = Math.min(r.shadowOffset[c].height - p, l), f = Math.max(r.shadowOffset[c].height + p + n, f), o += C("feDropShadow", { dx: r.shadowOffset[c].width, dy: r.shadowOffset[c].height, stdDeviation: r.shadowRadius[c] / 2, "flood-color": r.shadowColor[c], "flood-opacity": 1, ...i > 1 ? { in: "SourceGraphic", result: `satori_s-${e}-result-${c}` } : {} }), i > 1 && (u = C("feMergeNode", { in: `satori_s-${e}-result-${c}` }) + u); } - return k("filter", { id: `satori_s-${e}`, x: (s / t * 100 * jr).toFixed(2) + "%", y: (l / n * 100 * jr).toFixed(2) + "%", width: ((a - s) / t * 100 * jr).toFixed(2) + "%", height: ((f - l) / n * 100 * jr).toFixed(2) + "%" }, o + (u ? k("feMerge", {}, u) : "")); + return C("filter", { id: `satori_s-${e}`, x: (s / t * 100 * Ur).toFixed(2) + "%", y: (l / n * 100 * Ur).toFixed(2) + "%", width: ((a - s) / t * 100 * Ur).toFixed(2) + "%", height: ((f - l) / n * 100 * Ur).toFixed(2) + "%" }, o + (u ? C("feMerge", {}, u) : "")); } -function Su({ width: e, height: t, shape: n, opacity: r, id: i }, o) { +function wu({ width: e, height: t, shape: n, opacity: r, id: i }, o) { if (!o.boxShadow) return null; let u = "", s = ""; for (let a = o.boxShadow.length - 1; a >= 0; a--) { let l = "", f = o.boxShadow[a]; f.spreadRadius && f.inset && (f.spreadRadius = -f.spreadRadius); - let d = f.blurRadius * f.blurRadius / 4 + (f.spreadRadius || 0), h = Math.min(-d - (f.inset ? f.offsetX : 0), 0), m = Math.max(d + e - (f.inset ? f.offsetX : 0), e), p = Math.min(-d - (f.inset ? f.offsetY : 0), 0), D = Math.max(d + t - (f.inset ? f.offsetY : 0), t), F = `satori_s-${i}-${a}`, b = `satori_ms-${i}-${a}`, v = f.spreadRadius ? n.replace('stroke-width="0"', `stroke-width="${f.spreadRadius * 2}"`) : n; - l += k("mask", { id: b, maskUnits: "userSpaceOnUse" }, k("rect", { x: 0, y: 0, width: o._viewportWidth || "100%", height: o._viewportHeight || "100%", fill: f.inset ? "#000" : "#fff" }) + v.replace('fill="#fff"', f.inset ? 'fill="#fff"' : 'fill="#000"').replace('stroke="#fff"', "")); - let E = v.replace(/d="([^"]+)"/, (C, w) => 'd="' + Ef(w, f.offsetX, f.offsetY) + '"').replace(/x="([^"]+)"/, (C, w) => 'x="' + (parseFloat(w) + f.offsetX) + '"').replace(/y="([^"]+)"/, (C, w) => 'y="' + (parseFloat(w) + f.offsetY) + '"'); - f.spreadRadius && f.spreadRadius < 0 && (l += k("mask", { id: b + "-neg", maskUnits: "userSpaceOnUse" }, E.replace('stroke="#fff"', 'stroke="#000"').replace(/stroke-width="[^"]+"/, `stroke-width="${-f.spreadRadius * 2}"`))), f.spreadRadius && f.spreadRadius < 0 && (E = k("g", { mask: `url(#${b}-neg)` }, E)), l += k("defs", {}, k("filter", { id: F, x: `${h / e * 100}%`, y: `${p / t * 100}%`, width: `${(m - h) / e * 100}%`, height: `${(D - p) / t * 100}%` }, k("feGaussianBlur", { stdDeviation: f.blurRadius / 2, result: "b" }) + k("feFlood", { "flood-color": f.color, in: "SourceGraphic", result: "f" }) + k("feComposite", { in: "f", in2: "b", operator: f.inset ? "out" : "in" }))) + k("g", { mask: `url(#${b})`, filter: `url(#${F})`, opacity: r }, E), f.inset ? s += l : u += l; + let c = f.blurRadius * f.blurRadius / 4 + (f.spreadRadius || 0), p = Math.min(-c - (f.inset ? f.offsetX : 0), 0), h = Math.max(c + e - (f.inset ? f.offsetX : 0), e), d = Math.min(-c - (f.inset ? f.offsetY : 0), 0), m = Math.max(c + t - (f.inset ? f.offsetY : 0), t), v = `satori_s-${i}-${a}`, g = `satori_ms-${i}-${a}`, b = f.spreadRadius ? n.replace('stroke-width="0"', `stroke-width="${f.spreadRadius * 2}"`) : n; + l += C("mask", { id: g, maskUnits: "userSpaceOnUse" }, C("rect", { x: 0, y: 0, width: o._viewportWidth || "100%", height: o._viewportHeight || "100%", fill: f.inset ? "#000" : "#fff" }) + b.replace('fill="#fff"', f.inset ? 'fill="#fff"' : 'fill="#000"').replace('stroke="#fff"', "")); + let x = b.replace(/d="([^"]+)"/, (F, y) => 'd="' + xf(y, f.offsetX, f.offsetY) + '"').replace(/x="([^"]+)"/, (F, y) => 'x="' + (parseFloat(y) + f.offsetX) + '"').replace(/y="([^"]+)"/, (F, y) => 'y="' + (parseFloat(y) + f.offsetY) + '"'); + f.spreadRadius && f.spreadRadius < 0 && (l += C("mask", { id: g + "-neg", maskUnits: "userSpaceOnUse" }, x.replace('stroke="#fff"', 'stroke="#000"').replace(/stroke-width="[^"]+"/, `stroke-width="${-f.spreadRadius * 2}"`))), f.spreadRadius && f.spreadRadius < 0 && (x = C("g", { mask: `url(#${g}-neg)` }, x)), l += C("defs", {}, C("filter", { id: v, x: `${p / e * 100}%`, y: `${d / t * 100}%`, width: `${(h - p) / e * 100}%`, height: `${(m - d) / t * 100}%` }, C("feGaussianBlur", { stdDeviation: f.blurRadius / 2, result: "b" }) + C("feFlood", { "flood-color": f.color, in: "SourceGraphic", result: "f" }) + C("feComposite", { in: "f", in2: "b", operator: f.inset ? "out" : "in" }))) + C("g", { mask: `url(#${g})`, filter: `url(#${v})`, opacity: r }, x), f.inset ? s += l : u += l; } return [u, s]; } -c(); -function Ln({ width: e, left: t, top: n, ascender: r, clipPathId: i }, o) { +function In({ width: e, left: t, top: n, ascender: r, clipPathId: i }, o) { let { textDecorationColor: u, textDecorationStyle: s, textDecorationLine: a, fontSize: l } = o; if (!a || a === "none") return ""; - let f = Math.max(1, l * 0.1), d = a === "line-through" ? n + r * 0.5 : a === "underline" ? n + r * 1.1 : n, h = s === "dashed" ? `${f * 1.2} ${f * 2}` : s === "dotted" ? `0 ${f * 2}` : void 0; - return k("line", { x1: t, y1: d, x2: t + e, y2: d, stroke: u, "stroke-width": f, "stroke-dasharray": h, "stroke-linecap": s === "dotted" ? "round" : "square", "clip-path": i ? `url(#${i})` : void 0 }); + let f = Math.max(1, l * 0.1), c = a === "line-through" ? n + r * 0.5 : a === "underline" ? n + r * 1.1 : n, p = s === "dashed" ? `${f * 1.2} ${f * 2}` : s === "dotted" ? `0 ${f * 2}` : void 0; + return C("line", { x1: t, y1: c, x2: t + e, y2: c, stroke: u, "stroke-width": f, "stroke-dasharray": p, "stroke-linecap": s === "dotted" ? "round" : "square", "clip-path": i ? `url(#${i})` : void 0 }); } -c(); -function Mn(e) { +function Rn(e) { return e = e.replace("U+", "0x"), String.fromCodePoint(Number(e)); } -var $t = Mn("U+0020"); -var Nn = Mn("U+0009"); -var Wt = Mn("U+2026"); -var Cf = /* @__PURE__ */ new Set([Nn]); -function _f(e) { - return Cf.has(e); -} -async function* $n(e, t) { - let n = await Ge(), { parentStyle: r, inheritedStyle: i, parent: o, font: u, id: s, isInheritingTransform: a, debug: l, embedFont: f, graphemeImages: d, locale: h, canLoadAdditionalAssets: m } = t, { textAlign: p, whiteSpace: D, wordBreak: F, lineHeight: b, textTransform: v, textWrap: E, fontSize: C, filter: w, tabSize: O = 8, _inheritedBackgroundClipTextPath: R } = r; - e = Sf(e, v, h); - let { content: L, shouldCollapseTabsAndSpaces: Y, allowSoftWrap: se } = Af(e, D), { words: ae, requiredBreaks: le, allowBreakWord: q } = Tf(L, F), [$, J] = kf(r, se), he = Of(n, p); - o.insertChild(he, o.getChildCount()), su(r.flexShrink) && o.setFlexShrink(1); - let X = u.getEngine(C, b, r, h), re = m ? Se(L, "grapheme").filter((M) => !_f(M) && !X.has(M)) : []; - yield re.map((M) => ({ word: M, locale: h })), re.length && (X = u.getEngine(C, b, r, h)); - function ce(M) { - return !!(d && d[M]); - } - let be = Pf(X, r); - function I(M) { - let U = 0; - for (let V of M) - ce(V) ? U += C : U += be(V); - return U; - } - function B(M) { - return I(Se(M, "grapheme")); - } - let W = $r(O) ? G(O, C, 1, r) : be($t) * O, N = (M, U) => { - if (M.length === 0) - return { originWidth: 0, endingSpacesWidth: 0, text: M }; - let { index: V, tabCount: z } = If(M), ue = 0, Q = ""; - if (z > 0) { - Q = M.slice(0, V); - let me = M.slice(V + z), ne = B(Q), De = ne + U; - ue = (W === 0 ? ne : (Math.floor(De / W) + z) * W) + B(me); +var Nt = Rn("U+0020"); +var Ln = Rn("U+0009"); +var $t = Rn("U+2026"); +var Ff = /* @__PURE__ */ new Set([Ln]); +function wf(e) { + return Ff.has(e); +} +async function* Mn(e, t) { + let n = await qe(), { parentStyle: r, inheritedStyle: i, parent: o, font: u, id: s, isInheritingTransform: a, debug: l, embedFont: f, graphemeImages: c, locale: p, canLoadAdditionalAssets: h } = t, { textAlign: d, whiteSpace: m, wordBreak: v, lineHeight: g, textTransform: b, textWrap: x, fontSize: F, filter: y, tabSize: k = 8, _inheritedBackgroundClipTextPath: P } = r; + e = Ef(e, b, p); + let { content: B, shouldCollapseTabsAndSpaces: H, allowSoftWrap: oe } = Sf(e, m), { words: ue, requiredBreaks: se, allowBreakWord: $ } = _f(B, v), [L, X] = Cf(r, oe), ce = kf(n, d); + o.insertChild(ce, o.getChildCount()), nu(r.flexShrink) && o.setFlexShrink(1); + let V = u.getEngine(F, g, r, p), Z = h ? we(B, "grapheme").filter((I) => !wf(I) && !V.has(I)) : []; + yield Z.map((I) => ({ word: I, locale: p })), Z.length && (V = u.getEngine(F, g, r, p)); + function le(I) { + return !!(c && c[I]); + } + let he = Tf(V, r); + function A(I) { + let W = 0; + for (let j of I) + le(j) ? W += F : W += he(j); + return W; + } + function O(I) { + return A(we(I, "grapheme")); + } + let M = Lr(k) ? U(k, F, 1, r) : he(Nt) * k, R = (I, W) => { + if (I.length === 0) + return { originWidth: 0, endingSpacesWidth: 0, text: I }; + let { index: j, tabCount: q } = Af(I), ne = 0, Y = ""; + if (q > 0) { + Y = I.slice(0, j); + let de = I.slice(j + q), ee = O(Y), Ie = ee + W; + ne = (M === 0 ? ee : (Math.floor(Ie / M) + q) * M) + O(de); } else - ue = B(M); - let ve = M.trimEnd() === M ? ue : B(M.trimEnd()); - return { originWidth: ue, endingSpacesWidth: ue - ve, text: M }; - }, fe = [], xe = [], Ne = [], ht = [], Tt = []; - function vn(M) { - let U = 0, V = 0, z = -1, ue = 0, Q = 0, ve = 0, me = 0; - fe = [], Ne = [0], ht = [], Tt = []; - let ne = 0; - for (; ne < ae.length && U < $; ) { - let De = ae[ne], K = le[ne], _e = 0, Ir = 0, { originWidth: it, endingSpacesWidth: Pt, text: ot } = N(De, Q); - De = ot, _e = it, Ir = Pt, K && ve === 0 && (ve = X.height(De)); - let de = ",.!?:-@)>]}%#".indexOf(De[0]) < 0, ye = !Q, ut = ne && de && Q + _e > M + Ir && se; - if (q && _e > M && (!Q || ut || K)) { - let Be = Se(De, "grapheme"); - ae.splice(ne, 1, ...Be), Q > 0 && (fe.push(Q), xe.push(me), U++, ue += ve, Q = 0, ve = 0, me = 0, Ne.push(1), z = -1); + ne = O(I); + let me = I.trimEnd() === I ? ne : O(I.trimEnd()); + return { originWidth: ne, endingSpacesWidth: ne - me, text: I }; + }, ae = [], be = [], Be = [], dt = [], St = []; + function Dn(I) { + let W = 0, j = 0, q = -1, ne = 0, Y = 0, me = 0, de = 0; + ae = [], Be = [0], dt = [], St = []; + let ee = 0, Ie = 0; + for (; ee < ue.length && W < L; ) { + let N = ue[ee], tt = se[ee], Ee = 0, { originWidth: rt, endingSpacesWidth: At, text: nt } = R(N, Y); + N = nt, Ee = rt; + let ie = At; + tt && me === 0 && (me = V.height(N)); + let De = ",.!?:-@)>]}%#".indexOf(N[0]) < 0, Ve = !Y, Pr = ee && De && Y + Ee > I + ie && oe; + if ($ && Ee > I && (!Y || Pr || tt)) { + let ge = we(N, "grapheme"); + ue.splice(ee, 1, ...ge), Y > 0 && (ae.push(Y - Ie), be.push(de), W++, ne += me, Y = 0, me = 0, de = 0, Be.push(1), q = -1), Ie = ie; continue; } - if (K || ut) - Y && De === " " && (_e = 0), fe.push(Q), xe.push(me), U++, ue += ve, Q = _e, ve = _e ? X.height(De) : 0, me = _e ? X.baseline(De) : 0, Ne.push(1), z = -1, K || (V = Math.max(V, M)); + if (tt || Pr) + H && N === " " && (Ee = 0), ae.push(Y - Ie), be.push(de), W++, ne += me, Y = Ee, me = Ee ? V.height(N) : 0, de = Ee ? V.baseline(N) : 0, Be.push(1), q = -1, tt || (j = Math.max(j, I)); else { - Q += _e; - let Be = X.height(De); - Be > ve && (ve = Be, me = X.baseline(De)), ye && Ne[Ne.length - 1]++; + Y += Ee; + let ge = V.height(N); + ge > me && (me = ge, de = V.baseline(N)), Ve && Be[Be.length - 1]++; } - ye && z++, V = Math.max(V, Q); - let Br = Q - _e; - if (_e === 0) - Tt.push({ y: ue, x: Br, width: 0, line: U, lineIndex: z, isImage: false }); + Ve && q++, j = Math.max(j, Y); + let it = Y - Ee; + if (Ee === 0) + St.push({ y: ne, x: it, width: 0, line: W, lineIndex: q, isImage: false }); else { - let Be = Se(De, "word"); - for (let Re = 0; Re < Be.length; Re++) { - let Le = Be[Re], Qe = 0, st = false; - ce(Le) ? (Qe = C, st = true) : Qe = be(Le), ht.push(Le), Tt.push({ y: ue, x: Br, width: Qe, line: U, lineIndex: z, isImage: st }), Br += Qe; + let ge = we(N, "word"); + for (let Oe = 0; Oe < ge.length; Oe++) { + let ot = ge[Oe], We = 0, Ot = false; + le(ot) ? (We = F, Ot = true) : We = he(ot), dt.push(ot), St.push({ y: ne, x: it, width: We, line: W, lineIndex: q, isImage: Ot }), it += We; } } - ne++; - } - return Q && (U < $ && (ue += ve), U++, fe.push(Q), xe.push(me)), { width: V, height: ue }; - } - let kr = { width: 0, height: 0 }; - he.setMeasureFunc((M) => { - let { width: U, height: V } = vn(M); - if (E === "balance") { - let z = U / 2, ue = U, Q = U; - for (; z + 1 < ue; ) { - Q = (z + ue) / 2; - let { height: ve } = vn(Q); - ve > V ? z = Q : ue = Q; + ee++, Ie = ie; + } + return Y && (W < L && (ne += me), W++, ae.push(Y), be.push(de)), { width: j, height: ne }; + } + let Sr = { width: 0, height: 0 }; + ce.setMeasureFunc((I) => { + let { width: W, height: j } = Dn(I); + if (x === "balance") { + let q = W / 2, ne = W, Y = W; + for (; q + 1 < ne; ) { + Y = (q + ne) / 2; + let { height: me } = Dn(Y); + me > j ? q = Y : ne = Y; } - return vn(ue), kr = { width: ue, height: V }, { width: ue, height: V }; + return Dn(ne), Sr = { width: ne, height: j }, { width: ne, height: j }; } - return kr = { width: U, height: V }, { width: U, height: V }; + return Sr = { width: W, height: j }, { width: W, height: j }; }); - let [_l, Sl] = yield, yn = "", Tr = "", Ye = i._inheritedClipPathId, $o = i._inheritedMaskId, { left: Wo, top: qo, width: xn, height: kl } = he.getComputedLayout(), Ar = o.getComputedWidth() - o.getComputedPadding(n.EDGE_LEFT) - o.getComputedPadding(n.EDGE_RIGHT) - o.getComputedBorder(n.EDGE_LEFT) - o.getComputedBorder(n.EDGE_RIGHT), mt = _l + Wo, Dt = Sl + qo, { matrix: ze, opacity: Or } = Cu({ left: Wo, top: qo, width: xn, height: kl, isInheritingTransform: a }, r), gt = ""; + let [Fl, wl] = yield, gn = "", kr = "", je = i._inheritedClipPathId, Mo = i._inheritedMaskId, { left: No, top: $o, width: bn, height: El } = ce.getComputedLayout(), Tr = o.getComputedWidth() - o.getComputedPadding(n.EDGE_LEFT) - o.getComputedPadding(n.EDGE_RIGHT) - o.getComputedBorder(n.EDGE_LEFT) - o.getComputedBorder(n.EDGE_RIGHT), pt = Fl + No, ht = wl + $o, { matrix: $e, opacity: Ar } = xu({ left: No, top: $o, width: bn, height: El, isInheritingTransform: a }, r), mt = ""; if (r.textShadowOffset) { - let { textShadowColor: M, textShadowOffset: U, textShadowRadius: V } = r; - Array.isArray(r.textShadowOffset) || (M = [M], U = [U], V = [V]), gt = _u({ width: kr.width, height: kr.height, id: s }, { shadowColor: M, shadowOffset: U, shadowRadius: V }), gt = k("defs", {}, gt); + let { textShadowColor: I, textShadowOffset: W, textShadowRadius: j } = r; + Array.isArray(r.textShadowOffset) || (I = [I], W = [W], j = [j]), mt = Fu({ width: Sr.width, height: Sr.height, id: s }, { shadowColor: I, shadowOffset: W, shadowRadius: j }), mt = C("defs", {}, mt); } - let At = "", Pr = "", Uo = "", Ot = -1, bt = {}, Xe = null, zo = 0; - for (let M = 0; M < ht.length; M++) { - let U = Tt[M], V = Tt[M + 1]; - if (!U) + let kt = "", Or = "", Wo = "", Tt = -1, Dt = {}, He = null, qo = 0; + for (let I = 0; I < dt.length; I++) { + let W = St[I], j = St[I + 1]; + if (!W) continue; - let z = ht[M], ue = null, Q = false, ve = d ? d[z] : null, me = U.y, ne = U.x, De = U.width, K = U.line; - if (K === Ot) + let q = dt[I], ne = null, Y = false, me = c ? c[q] : null, de = W.y, ee = W.x, Ie = W.width, N = W.line; + if (N === Tt) continue; - let _e = false; - if (fe.length > 1) { - let de = xn - fe[K]; - if (p === "right" || p === "end") - ne += de; - else if (p === "center") - ne += de / 2; - else if (p === "justify" && K < fe.length - 1) { - let ye = Ne[K]; - ne += (ye > 1 ? de / (ye - 1) : 0) * U.lineIndex, _e = true; + let tt = false; + if (ae.length > 1) { + let ie = bn - ae[N]; + if (d === "right" || d === "end") + ee += ie; + else if (d === "center") + ee += ie / 2; + else if (d === "justify" && N < ae.length - 1) { + let De = Be[N], Ve = De > 1 ? ie / (De - 1) : 0; + ee += Ve * W.lineIndex, tt = true; } } - if (bt[K] || (bt[K] = [ne, _e ? xn : fe[K]]), $ !== 1 / 0) { - let Be = function(Re, Le) { - let Qe = Se(Le, "grapheme", h), st = "", jo = 0; - for (let Ho of Qe) { - let Vo = Re + I([st + Ho]); - if (st && Vo + ye > Ar) + if (Dt[N] || (Dt[N] = [ee, tt ? bn : ae[N]]), L !== 1 / 0) { + let it = function(ge, Oe) { + let ot = we(Oe, "grapheme", p), We = "", Ot = 0; + for (let Uo of ot) { + let zo = ge + A([We + Uo]); + if (We && zo + De > Tr) break; - st += Ho, jo = Vo; + We += Uo, Ot = zo; } - return { subset: st, resolvedWidth: jo }; - }, de = J, ye = be(J); - ye > Ar && (de = Wt, ye = be(de)); - let ut = be($t), Go = K < fe.length - 1; - if (K + 1 === $ && (Go || fe[K] > Ar)) { - if (ne + De + ye + ut > Ar) { - let { subset: Re, resolvedWidth: Le } = Be(ne, z); - z = Re + de, Ot = K, bt[K][1] = Le, Q = true; - } else if (V && V.line !== K) - if (p === "center") { - let { subset: Re, resolvedWidth: Le } = Be(ne, z); - z = Re + de, Ot = K, bt[K][1] = Le, Q = true; + return { subset: We, resolvedWidth: Ot }; + }, ie = X, De = he(X); + De > Tr && (ie = $t, De = he(ie)); + let Ve = he(Nt), Pr = N < ae.length - 1; + if (N + 1 === L && (Pr || ae[N] > Tr)) { + if (ee + Ie + De + Ve > Tr) { + let { subset: ge, resolvedWidth: Oe } = it(ee, q); + q = ge + ie, Tt = N, Dt[N][1] = Oe, Y = true; + } else if (j && j.line !== N) + if (d === "center") { + let { subset: ge, resolvedWidth: Oe } = it(ee, q); + q = ge + ie, Tt = N, Dt[N][1] = Oe, Y = true; } else { - let Re = ht[M + 1], { subset: Le, resolvedWidth: Qe } = Be(De + ne, Re); - z = z + Le + de, Ot = K, bt[K][1] = Qe, Q = true; + let ge = dt[I + 1], { subset: Oe, resolvedWidth: ot } = it(Ie + ee, ge); + q = q + Oe + ie, Tt = N, Dt[N][1] = ot, Y = true; } } } - let Ir = xe[K], it = X.baseline(z), Pt = X.height(z), ot = Ir - it; - if (ve) - me += 0; + let Ee = be[N], rt = V.baseline(q), At = V.height(q), nt = Ee - rt; + if (me) + de += 0; else if (f) { - if (!z.includes(Nn) && !iu.includes(z) && ht[M + 1] && V && !V.isImage && me === V.y && !Q) { - Xe === null && (zo = ne), Xe = Xe === null ? z : Xe + z; + if (!q.includes(Ln) && !eu.includes(q) && dt[I + 1] && j && !j.isImage && de === j.y && !Y) { + He === null && (qo = ee), He = He === null ? q : He + q; continue; } - let de = Xe === null ? z : Xe + z, ye = Xe === null ? ne : zo, ut = U.width + ne - ye; - ue = X.getSVG(de.replace(/(\t)+/g, ""), { ...r, left: mt + ye, top: Dt + me + it + ot, letterSpacing: r.letterSpacing }), Xe = null, l && (Uo += k("rect", { x: mt + ye, y: Dt + me + ot, width: ut, height: Pt, fill: "transparent", stroke: "#575eff", "stroke-width": 1, transform: ze || void 0, "clip-path": Ye ? `url(#${Ye})` : void 0 }) + k("line", { x1: mt + ne, x2: mt + ne + U.width, y1: Dt + me + ot + it, y2: Dt + me + ot + it, stroke: "#14c000", "stroke-width": 1, transform: ze || void 0, "clip-path": Ye ? `url(#${Ye})` : void 0 })); + let ie = He === null ? q : He + q, De = He === null ? ee : qo, Ve = W.width + ee - De; + ne = V.getSVG(ie.replace(/(\t)+/g, ""), { ...r, left: pt + De, top: ht + de + rt + nt, letterSpacing: r.letterSpacing }), He = null, l && (Wo += C("rect", { x: pt + De, y: ht + de + nt, width: Ve, height: At, fill: "transparent", stroke: "#575eff", "stroke-width": 1, transform: $e || void 0, "clip-path": je ? `url(#${je})` : void 0 }) + C("line", { x1: pt + ee, x2: pt + ee + W.width, y1: ht + de + nt + rt, y2: ht + de + nt + rt, stroke: "#14c000", "stroke-width": 1, transform: $e || void 0, "clip-path": je ? `url(#${je})` : void 0 })); } else - me += it + ot; - if (r.textDecorationLine && (K !== (V == null ? void 0 : V.line) || Ot === K)) { - let de = bt[K]; - de && !de[2] && (At += Ln({ left: mt + de[0], top: Dt + Pt * +K, width: de[1], ascender: X.baseline(z), clipPathId: Ye }, r), de[2] = 1); + de += rt + nt; + if (r.textDecorationLine && (N !== (j == null ? void 0 : j.line) || Tt === N)) { + let ie = Dt[N]; + ie && !ie[2] && (kt += In({ left: pt + ie[0], top: ht + At * +N, width: ie[1], ascender: V.baseline(q), clipPathId: je }, r), ie[2] = 1); } - if (ue !== null) - Pr += ue + " "; + if (ne !== null) + Or += ne + " "; else { - let [de, ye] = Rn({ content: z, filter: gt, id: s, left: mt + ne, top: Dt + me, width: De, height: Pt, matrix: ze, opacity: Or, image: ve, clipPathId: Ye, debug: l, shape: !!R, decorationShape: At }, r); - yn += de, Tr += ye, At = ""; + let [ie, De] = Bn({ content: q, filter: mt, id: s, left: pt + ee, top: ht + de, width: Ie, height: At, matrix: $e, opacity: Ar, image: me, clipPathId: je, debug: l, shape: !!P, decorationShape: kt }, r); + gn += ie, kr += De, kt = ""; } - if (Q) + if (Y) break; } - if (Pr) { - let M = r.color !== "transparent" && Or !== 0 ? k("path", { fill: r.color, d: Pr, transform: ze || void 0, opacity: Or !== 1 ? Or : void 0, "clip-path": Ye ? `url(#${Ye})` : void 0, mask: $o ? `url(#${$o})` : void 0, style: w ? `filter:${w}` : void 0 }) : ""; - R && (Tr = k("path", { d: Pr, transform: ze || void 0 })), yn += (gt ? gt + k("g", { filter: `url(#satori_s-${s})` }, M + At) : M + At) + Uo; + if (Or) { + let I = r.color !== "transparent" && Ar !== 0 ? C("path", { fill: r.color, d: Or, transform: $e || void 0, opacity: Ar !== 1 ? Ar : void 0, "clip-path": je ? `url(#${je})` : void 0, mask: Mo ? `url(#${Mo})` : void 0, style: y ? `filter:${y}` : void 0 }) : ""; + P && (kr = C("path", { d: Or, transform: $e || void 0 })), gn += (mt ? mt + C("g", { filter: `url(#satori_s-${s})` }, I + kt) : I + kt) + Wo; } - return Tr && (r._inheritedBackgroundClipTextPath.value += Tr), yn; + return kr && (r._inheritedBackgroundClipTextPath.value += kr), gn; } -function Sf(e, t, n) { - return t === "uppercase" ? e = e.toLocaleUpperCase(n) : t === "lowercase" ? e = e.toLocaleLowerCase(n) : t === "capitalize" && (e = Se(e, "word", n).map((r) => Se(r, "grapheme", n).map((i, o) => o === 0 ? i.toLocaleUpperCase(n) : i).join("")).join("")), e; +function Ef(e, t, n) { + return t === "uppercase" ? e = e.toLocaleUpperCase(n) : t === "lowercase" ? e = e.toLocaleLowerCase(n) : t === "capitalize" && (e = we(e, "word", n).map((r) => we(r, "grapheme", n).map((i, o) => o === 0 ? i.toLocaleUpperCase(n) : i).join("")).join("")), e; } -function kf(e, t) { +function Cf(e, t) { let { textOverflow: n, lineClamp: r, WebkitLineClamp: i, WebkitBoxOrient: o, overflow: u, display: s } = e; if (s === "block" && r) { - let [a, l = Wt] = Bf(r); + let [a, l = $t] = Of(r); if (a) return [a, l]; } - return n === "ellipsis" && s === "-webkit-box" && o === "vertical" && uu(i) && i > 0 ? [i, Wt] : n === "ellipsis" && u === "hidden" && !t ? [1, Wt] : [1 / 0]; + return n === "ellipsis" && s === "-webkit-box" && o === "vertical" && ru(i) && i > 0 ? [i, $t] : n === "ellipsis" && u === "hidden" && !t ? [1, $t] : [1 / 0]; } -function Tf(e, t) { - let n = ["break-all", "break-word"].includes(t), { words: r, requiredBreaks: i } = au(e, t); +function _f(e, t) { + let n = ["break-all", "break-word"].includes(t), { words: r, requiredBreaks: i } = iu(e, t); return { words: r, requiredBreaks: i, allowBreakWord: n }; } -function Af(e, t) { +function Sf(e, t) { let n = ["pre", "pre-wrap", "pre-line"].includes(t), r = ["normal", "nowrap", "pre-line"].includes(t), i = !["pre", "nowrap"].includes(t); - return n || (e = e.replace(/\n/g, $t)), r && (e = e.replace(/([ ]|\t)+/g, $t).trim()), { content: e, shouldCollapseTabsAndSpaces: r, allowSoftWrap: i }; + return n || (e = e.replace(/\n/g, Nt)), r && (e = e.replace(/([ ]|\t)+/g, Nt).trim()), { content: e, shouldCollapseTabsAndSpaces: r, allowSoftWrap: i }; } -function Of(e, t) { +function kf(e, t) { let n = e.Node.create(); - return n.setAlignItems(e.ALIGN_BASELINE), n.setJustifyContent(Fe(t, { left: e.JUSTIFY_FLEX_START, right: e.JUSTIFY_FLEX_END, center: e.JUSTIFY_CENTER, justify: e.JUSTIFY_SPACE_BETWEEN, start: e.JUSTIFY_FLEX_START, end: e.JUSTIFY_FLEX_END }, e.JUSTIFY_FLEX_START, "textAlign")), n; + return n.setAlignItems(e.ALIGN_BASELINE), n.setJustifyContent(ve(t, { left: e.JUSTIFY_FLEX_START, right: e.JUSTIFY_FLEX_END, center: e.JUSTIFY_CENTER, justify: e.JUSTIFY_SPACE_BETWEEN, start: e.JUSTIFY_FLEX_START, end: e.JUSTIFY_FLEX_END }, e.JUSTIFY_FLEX_START, "textAlign")), n; } -function Pf(e, t) { +function Tf(e, t) { let n = /* @__PURE__ */ new Map(); return function(i) { if (n.has(i)) @@ -15676,11 +15601,11 @@ function Pf(e, t) { return n.set(i, o), o; }; } -function If(e) { +function Af(e) { let t = /(\t)+/.exec(e); return t ? { index: t.index, tabCount: t[0].length } : { index: null, tabCount: 0 }; } -function Bf(e) { +function Of(e) { if (typeof e == "number") return [e]; let t = /^(\d+)\s*"(.*)"$/, n = /^(\d+)\s*'(.*)'$/, r = t.exec(e), i = n.exec(e); @@ -15693,185 +15618,182 @@ function Bf(e) { } return []; } -c(); -c(); -c(); -var Wn = Wn || {}; -var ku = { type: "directional", value: "bottom" }; -Wn.parse = function() { +var Nn = Nn || {}; +var Eu = { type: "directional", value: "bottom" }; +Nn.parse = function() { var e = { linearGradient: /^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i, repeatingLinearGradient: /^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i, radialGradient: /^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i, repeatingRadialGradient: /^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i, sideOrCorner: /^to (left (top|bottom)|right (top|bottom)|top (left|right)|bottom (left|right)|left|right|top|bottom)/i, extentKeywords: /^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/, positionKeywords: /^(left|center|right|top|bottom)/i, pixelValue: /^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/, percentageValue: /^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/, emLikeValue: /^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))(r?em|vw|vh)/, angleValue: /^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/, zeroValue: /[0]/, startCall: /^\(/, endCall: /^\)/, comma: /^,/, hexColor: /^\#([0-9a-fA-F]+)/, literalColor: /^([a-zA-Z]+)/, rgbColor: /^rgb/i, rgbaColor: /^rgba/i, number: /^(([0-9]*\.[0-9]+)|([0-9]+\.?))/ }, t = ""; - function n(I) { - var B = new Error(t + ": " + I); - throw B.source = t, B; + function n(A) { + var O = new Error(t + ": " + A); + throw O.source = t, O; } function r() { - var I = i(); - return t.length > 0 && n("Invalid input not EOF"), I; + var A = i(); + return t.length > 0 && n("Invalid input not EOF"), A; } function i() { - return O(o); + return k(o); } function o() { - return s("linear-gradient", e.linearGradient, l, ku) || s("repeating-linear-gradient", e.repeatingLinearGradient, l, ku) || s("radial-gradient", e.radialGradient, m) || s("repeating-radial-gradient", e.repeatingRadialGradient, m); + return s("linear-gradient", e.linearGradient, l, Eu) || s("repeating-linear-gradient", e.repeatingLinearGradient, l, Eu) || s("radial-gradient", e.radialGradient, h) || s("repeating-radial-gradient", e.repeatingRadialGradient, h); } - function u(I = {}) { - var W, N, fe, xe; - let B = { ...I }; - return Object.assign(B, { style: (B.style || []).length > 0 ? B.style : [{ type: "extent-keyword", value: "farthest-corner" }], at: { type: "position", value: { x: { type: "position-keyword", value: "center", ...((N = (W = B.at) == null ? void 0 : W.value) == null ? void 0 : N.x) || {} }, y: { type: "position-keyword", value: "center", ...((xe = (fe = B.at) == null ? void 0 : fe.value) == null ? void 0 : xe.y) || {} } } } }), I.value || Object.assign(B, { type: "shape", value: B.style.some((Ne) => ["%", "extent-keyword"].includes(Ne.type)) ? "ellipse" : "circle" }), B; + function u(A = {}) { + var M, R, ae, be; + let O = { ...A }; + return Object.assign(O, { style: (O.style || []).length > 0 ? O.style : [{ type: "extent-keyword", value: "farthest-corner" }], at: { type: "position", value: { x: { type: "position-keyword", value: "center", ...((R = (M = O.at) == null ? void 0 : M.value) == null ? void 0 : R.x) || {} }, y: { type: "position-keyword", value: "center", ...((be = (ae = O.at) == null ? void 0 : ae.value) == null ? void 0 : be.y) || {} } } } }), A.value || Object.assign(O, { type: "shape", value: O.style.some((Be) => ["%", "extent-keyword"].includes(Be.type)) ? "ellipse" : "circle" }), O; } - function s(I, B, W, N) { - return a(B, function(fe) { - var xe = W(); - return xe ? ce(e.comma) || n("Missing comma before color stops") : xe = N, { type: I, orientation: I.endsWith("radial-gradient") ? (xe == null ? void 0 : xe.map((Ne) => u(Ne))) ?? [u()] : xe, colorStops: O(R) }; + function s(A, O, M, R) { + return a(O, function(ae) { + var be = M(); + return be ? le(e.comma) || n("Missing comma before color stops") : be = R, { type: A, orientation: A.endsWith("radial-gradient") ? (be == null ? void 0 : be.map((Be) => u(Be))) ?? [u()] : be, colorStops: k(P) }; }); } - function a(I, B) { - var W = ce(I); - if (W) { - ce(e.startCall) || n("Missing ("); - var N = B(W); - return ce(e.endCall) || n("Missing )"), N; + function a(A, O) { + var M = le(A); + if (M) { + le(e.startCall) || n("Missing ("); + var R = O(M); + return le(e.endCall) || n("Missing )"), R; } } function l() { - return f() || d() || h(); + return f() || c() || p(); } function f() { - return re("directional", e.sideOrCorner, 1); + return Z("directional", e.sideOrCorner, 1); } - function d() { - return re("angular", e.angleValue, 1); + function c() { + return Z("angular", e.angleValue, 1); + } + function p() { + return Z("directional", e.zeroValue, 0); } function h() { - return re("directional", e.zeroValue, 0); + var A, O = d(), M; + return O && (A = [], A.push(O), M = t, le(e.comma) && (O = d(), O ? A.push(O) : t = M)), A; } - function m() { - var I, B = p(), W; - return B && (I = [], I.push(B), W = t, ce(e.comma) && (B = p(), B ? I.push(B) : t = W)), I; + function d() { + let A = m(), O = x(); + if (!(!A && !O)) + return { ...A, at: O }; } - function p() { - let I = D(), B = E(); - if (!(!I && !B)) - return { ...I, at: B }; + function m() { + let A = v() || g(), O = b() || ce() || L(), M = Z("%", e.percentageValue, 1); + if (A) + return { ...A, style: [O, M].filter((R) => R) }; + if (O) + return { style: [O, M].filter((R) => R), ...v() || g() }; } - function D() { - let I = F() || b(), B = v() || he() || $(), W = re("%", e.percentageValue, 1); - if (I) - return { ...I, style: [B, W].filter((N) => N) }; - if (B) - return { style: [B, W].filter((N) => N), ...F() || b() }; + function v() { + return Z("shape", /^(circle)/i, 0); } - function F() { - return re("shape", /^(circle)/i, 0); + function g() { + return Z("shape", /^(ellipse)/i, 0); } function b() { - return re("shape", /^(ellipse)/i, 0); + return Z("extent-keyword", e.extentKeywords, 1); } - function v() { - return re("extent-keyword", e.extentKeywords, 1); - } - function E() { - if (re("position", /^at/, 0)) { - var I = C(); - return I || n("Missing positioning value"), I; + function x() { + if (Z("position", /^at/, 0)) { + var A = F(); + return A || n("Missing positioning value"), A; } } - function C() { - var I = w(); - if (I.x || I.y) - return { type: "position", value: I }; + function F() { + var A = y(); + if (A.x || A.y) + return { type: "position", value: A }; } - function w() { - return { x: $(), y: $() }; + function y() { + return { x: L(), y: L() }; } - function O(I) { - var B = I(), W = []; - if (B) - for (W.push(B); ce(e.comma); ) - B = I(), B ? W.push(B) : n("One extra comma"); - return W; + function k(A) { + var O = A(), M = []; + if (O) + for (M.push(O); le(e.comma); ) + O = A(), O ? M.push(O) : n("One extra comma"); + return M; } - function R() { - var I = L(); - return I || n("Expected color definition"), I.length = $(), I; + function P() { + var A = B(); + return A || n("Expected color definition"), A.length = L(), A; } - function L() { - return se() || le() || ae() || Y(); + function B() { + return oe() || se() || ue() || H(); } - function Y() { - return re("literal", e.literalColor, 0); + function H() { + return Z("literal", e.literalColor, 0); } - function se() { - return re("hex", e.hexColor, 1); + function oe() { + return Z("hex", e.hexColor, 1); } - function ae() { + function ue() { return a(e.rgbColor, function() { - return { type: "rgb", value: O(q) }; + return { type: "rgb", value: k($) }; }); } - function le() { + function se() { return a(e.rgbaColor, function() { - return { type: "rgba", value: O(q) }; + return { type: "rgba", value: k($) }; }); } - function q() { - return ce(e.number)[1]; - } function $() { - return re("%", e.percentageValue, 1) || J() || he(); + return le(e.number)[1]; + } + function L() { + return Z("%", e.percentageValue, 1) || X() || ce(); } - function J() { - return re("position-keyword", e.positionKeywords, 1); + function X() { + return Z("position-keyword", e.positionKeywords, 1); } - function he() { - return re("px", e.pixelValue, 1) || X(e.emLikeValue, 1); + function ce() { + return Z("px", e.pixelValue, 1) || V(e.emLikeValue, 1); } - function X(I, B) { - var W = ce(I); - if (W) - return { type: W[5], value: W[B] }; + function V(A, O) { + var M = le(A); + if (M) + return { type: M[5], value: M[O] }; } - function re(I, B, W) { - var N = ce(B); - if (N) - return { type: I, value: N[W] }; + function Z(A, O, M) { + var R = le(O); + if (R) + return { type: A, value: R[M] }; } - function ce(I) { - var B, W; - return W = /^[\n\r\t\s]+/.exec(t), W && be(W[0].length), B = I.exec(t), B && be(B[0].length), B; + function le(A) { + var O, M; + return M = /^[\n\r\t\s]+/.exec(t), M && he(M[0].length), O = A.exec(t), O && he(O[0].length), O; } - function be(I) { - t = t.substr(I); + function he(A) { + t = t.substr(A); } - return function(I) { - return t = I.toString(), r(); + return function(A) { + return t = A.toString(), r(); }; }(); -var qn = Wn; -function Lf(e) { +var $n = Nn; +function Bf(e) { return e.type === "literal" ? e.value : e.type === "hex" ? `#${e.value}` : e.type === "rgb" ? `rgb(${e.value.join(",")})` : e.type === "rgba" ? `rgba(${e.value.join(",")})` : "transparent"; } -function Mf(e) { +function If(e) { let t = 0, n = 0, r = 0, i = 0; return e.includes("top") ? n = 1 : e.includes("bottom") && (i = 1), e.includes("left") ? t = 1 : e.includes("right") && (r = 1), !t && !r && !n && !i && (n = 1), [t, n, r, i]; } -function Nf(e, t) { +function Rf(e, t) { return typeof e == "string" && e.endsWith("%") ? t * parseFloat(e) / 100 : +e; } -function Un(e, { x: t, y: n, defaultX: r, defaultY: i }) { +function Wn(e, { x: t, y: n, defaultX: r, defaultY: i }) { return (e ? e.split(" ").map((o) => { try { - let u = new Ke(o); + let u = new Ye(o); return u.type === "length" || u.type === "number" ? u.value : u.value + u.unit; } catch { return null; } - }).filter((o) => o !== null) : [r, i]).map((o, u) => Nf(o, [t, n][u])); + }).filter((o) => o !== null) : [r, i]).map((o, u) => Rf(o, [t, n][u])); } -function Tu(e, t, n) { +function Cu(e, t, n) { let r = []; for (let s of t) { - let a = Lf(s); + let a = Bf(s); if (!r.length && (r.push({ offset: 0, color: a }), typeof s.length > "u" || s.length.value === "0")) continue; let l = typeof s.length > "u" ? void 0 : s.length.type === "%" ? s.length.value / 100 : s.length.value / e; @@ -15893,66 +15815,66 @@ function Tu(e, t, n) { return a.alpha === 0 ? { ...s, color: "rgba(0, 0, 0, 1)" } : { ...s, color: `rgba(255, 255, 255, ${a.alpha})` }; }) : r; } -async function qt({ id: e, width: t, height: n, left: r, top: i }, { image: o, size: u, position: s, repeat: a }, l, f) { +async function Wt({ id: e, width: t, height: n, left: r, top: i }, { image: o, size: u, position: s, repeat: a }, l, f) { a = a || "repeat", f = f || "background"; - let d = a === "repeat-x" || a === "repeat", h = a === "repeat-y" || a === "repeat", m = Un(u, { x: t, y: n, defaultX: t, defaultY: n }), p = Un(s, { x: t, y: n, defaultX: 0, defaultY: 0 }); + let c = a === "repeat-x" || a === "repeat", p = a === "repeat-y" || a === "repeat", h = Wn(u, { x: t, y: n, defaultX: t, defaultY: n }), d = Wn(s, { x: t, y: n, defaultX: 0, defaultY: 0 }); if (o.startsWith("linear-gradient(")) { - let D = qn.parse(o)[0], [F, b] = m, v, E, C, w, O; - if (D.orientation.type === "directional") - [v, E, C, w] = Mf(D.orientation.value), O = Math.sqrt(Math.pow((C - v) * F, 2) + Math.pow((w - E) * b, 2)); - else if (D.orientation.type === "angular") { - let q = function($) { - if ($ = ($ % (Math.PI * 2) + Math.PI * 2) % (Math.PI * 2), Math.abs($ - Math.PI / 2) < 1e-6) { - v = 0, E = 0, C = 1, w = 0, O = F; + let m = $n.parse(o)[0], [v, g] = h, b, x, F, y, k; + if (m.orientation.type === "directional") + [b, x, F, y] = If(m.orientation.value), k = Math.sqrt(Math.pow((F - b) * v, 2) + Math.pow((y - x) * g, 2)); + else if (m.orientation.type === "angular") { + let $ = function(L) { + if (L = (L % (Math.PI * 2) + Math.PI * 2) % (Math.PI * 2), Math.abs(L - Math.PI / 2) < 1e-6) { + b = 0, x = 0, F = 1, y = 0, k = v; return; - } else if (Math.abs($) < 1e-6) { - v = 0, E = 1, C = 0, w = 0, O = b; + } else if (Math.abs(L) < 1e-6) { + b = 0, x = 1, F = 0, y = 0, k = g; return; } - if ($ >= Math.PI / 2 && $ < Math.PI) { - q(Math.PI - $), E = 1 - E, w = 1 - w; + if (L >= Math.PI / 2 && L < Math.PI) { + $(Math.PI - L), x = 1 - x, y = 1 - y; return; - } else if ($ >= Math.PI) { - q($ - Math.PI); - let W = v; - v = C, C = W, W = E, E = w, w = W; + } else if (L >= Math.PI) { + $(L - Math.PI); + let M = b; + b = F, F = M, M = x, x = y, y = M; return; } - let J = Math.tan($), he = J * le, X = Math.atan(he), re = Math.sqrt(2) * Math.cos(Math.PI / 4 - X); - v = 0, E = 1, C = Math.sin(X) * re, w = 1 - Math.cos(X) * re; - let ce = 1, be = 1 / J, I = Math.abs((ce * le + be) / Math.sqrt(ce * ce + be * be) / Math.sqrt(le * le + 1)); - O = Math.sqrt(F * F + b * b) * I; - }, le = F / b; - q(+D.orientation.value / 180 * Math.PI); + let X = Math.tan(L), ce = X * se, V = Math.atan(ce), Z = Math.sqrt(2) * Math.cos(Math.PI / 4 - V); + b = 0, x = 1, F = Math.sin(V) * Z, y = 1 - Math.cos(V) * Z; + let le = 1, he = 1 / X, A = Math.abs((le * se + he) / Math.sqrt(le * le + he * he) / Math.sqrt(se * se + 1)); + k = Math.sqrt(v * v + g * g) * A; + }, se = v / g; + $(+m.orientation.value / 180 * Math.PI); } - let R = Tu(O, D.colorStops, f), L = `satori_bi${e}`, Y = `satori_pattern_${e}`, se = k("pattern", { id: Y, x: p[0] / t, y: p[1] / n, width: d ? F / t : "1", height: h ? b / n : "1", patternUnits: "objectBoundingBox" }, k("linearGradient", { id: L, x1: v, y1: E, x2: C, y2: w }, R.map((ae) => k("stop", { offset: ae.offset * 100 + "%", "stop-color": ae.color })).join("")) + k("rect", { x: 0, y: 0, width: F, height: b, fill: `url(#${L})` })); - return [Y, se]; + let P = Cu(k, m.colorStops, f), B = `satori_bi${e}`, H = `satori_pattern_${e}`, oe = C("pattern", { id: H, x: d[0] / t, y: d[1] / n, width: c ? v / t : "1", height: p ? g / n : "1", patternUnits: "objectBoundingBox" }, C("linearGradient", { id: B, x1: b, y1: x, x2: F, y2: y }, P.map((ue) => C("stop", { offset: ue.offset * 100 + "%", "stop-color": ue.color })).join("")) + C("rect", { x: 0, y: 0, width: v, height: g, fill: `url(#${B})` })); + return [H, oe]; } if (o.startsWith("radial-gradient(")) { - let D = qn.parse(o)[0], F = D.orientation[0], [b, v] = m, E = "circle", C = b / 2, w = v / 2; - if (F.type === "shape") { - if (E = F.value, F.at) - if (F.at.type === "position") { - let q = $f(F.at.value.x, F.at.value.y, b, v, l.fontSize, l); - C = q.x, w = q.y; + let m = $n.parse(o)[0], v = m.orientation[0], [g, b] = h, x = "circle", F = g / 2, y = b / 2; + if (v.type === "shape") { + if (x = v.value, v.at) + if (v.at.type === "position") { + let $ = Lf(v.at.value.x, v.at.value.y, g, b, l.fontSize, l); + F = $.x, y = $.y; } else - throw new Error("orientation.at.type not implemented: " + F.at.type); + throw new Error("orientation.at.type not implemented: " + v.at.type); } else - throw new Error("orientation.type not implemented: " + F.type); - let O = Tu(t, D.colorStops, f), R = `satori_radial_${e}`, L = `satori_pattern_${e}`, Y = `satori_mask_${e}`, se = Wf(E, F.style, l.fontSize, { x: C, y: w }, [b, v], l), ae = k("pattern", { id: L, x: p[0] / t, y: p[1] / n, width: d ? b / t : "1", height: h ? v / n : "1", patternUnits: "objectBoundingBox" }, k("radialGradient", { id: R }, O.map((q) => k("stop", { offset: q.offset, "stop-color": q.color })).join("")) + k("mask", { id: Y }, k("rect", { x: 0, y: 0, width: b, height: v, fill: "#fff" })) + k("rect", { x: 0, y: 0, width: b, height: v, fill: O.at(-1).color }) + k(E, { cx: C, cy: w, width: b, height: v, ...se, fill: `url(#${R})`, mask: `url(#${Y})` })); - return [L, ae]; + throw new Error("orientation.type not implemented: " + v.type); + let k = Cu(t, m.colorStops, f), P = `satori_radial_${e}`, B = `satori_pattern_${e}`, H = `satori_mask_${e}`, oe = Mf(x, v.style, l.fontSize, { x: F, y }, [g, b], l), ue = C("pattern", { id: B, x: d[0] / t, y: d[1] / n, width: c ? g / t : "1", height: p ? b / n : "1", patternUnits: "objectBoundingBox" }, C("radialGradient", { id: P }, k.map(($) => C("stop", { offset: $.offset, "stop-color": $.color })).join("")) + C("mask", { id: H }, C("rect", { x: 0, y: 0, width: g, height: b, fill: "#fff" })) + C("rect", { x: 0, y: 0, width: g, height: b, fill: k.at(-1).color }) + C(x, { cx: F, cy: y, width: g, height: b, ...oe, fill: `url(#${P})`, mask: `url(#${H})` })); + return [B, ue]; } if (o.startsWith("url(")) { - let D = Un(u, { x: t, y: n, defaultX: 0, defaultY: 0 }), [F, b, v] = await Ft(o.slice(4, -1)), E = f === "mask" ? b || D[0] : D[0] || b, C = f === "mask" ? v || D[1] : D[1] || v; - return [`satori_bi${e}`, k("pattern", { id: `satori_bi${e}`, patternContentUnits: "userSpaceOnUse", patternUnits: "userSpaceOnUse", x: p[0] + r, y: p[1] + i, width: d ? E : "100%", height: h ? C : "100%" }, k("image", { x: 0, y: 0, width: E, height: C, preserveAspectRatio: "none", href: F }))]; + let m = Wn(u, { x: t, y: n, defaultX: 0, defaultY: 0 }), [v, g, b] = await yt(o.slice(4, -1)), x = f === "mask" ? g || m[0] : m[0] || g, F = f === "mask" ? b || m[1] : m[1] || b; + return [`satori_bi${e}`, C("pattern", { id: `satori_bi${e}`, patternContentUnits: "userSpaceOnUse", patternUnits: "userSpaceOnUse", x: d[0] + r, y: d[1] + i, width: c ? x : "100%", height: p ? F : "100%" }, C("image", { x: 0, y: 0, width: x, height: F, preserveAspectRatio: "none", href: v }))]; } throw new Error(`Invalid background image: "${o}"`); } -function $f(e, t, n, r, i, o) { +function Lf(e, t, n, r, i, o) { let u = { x: n / 2, y: r / 2 }; - return e.type === "position-keyword" ? Object.assign(u, Au(e.value, n, r, "x")) : u.x = G(`${e.value}${e.type}`, i, n, o, true), t.type === "position-keyword" ? Object.assign(u, Au(t.value, n, r, "y")) : u.y = G(`${t.value}${t.type}`, i, r, o, true), u; + return e.type === "position-keyword" ? Object.assign(u, _u(e.value, n, r, "x")) : u.x = U(`${e.value}${e.type}`, i, n, o, true), t.type === "position-keyword" ? Object.assign(u, _u(t.value, n, r, "y")) : u.y = U(`${t.value}${t.type}`, i, r, o, true), u; } -function Au(e, t, n, r) { +function _u(e, t, n, r) { switch (e) { case "center": return { [r]: r === "x" ? t / 2 : n / 2 }; @@ -15966,19 +15888,19 @@ function Au(e, t, n, r) { return { y: n }; } } -function Wf(e, t, n, r, i, o) { - let [u, s] = i, { x: a, y: l } = r, f = {}, d = 0, h = 0; - if (!t.some((p) => p.type === "extent-keyword")) { - if (t.some((p) => p.value.startsWith("-"))) +function Mf(e, t, n, r, i, o) { + let [u, s] = i, { x: a, y: l } = r, f = {}, c = 0, p = 0; + if (!t.some((d) => d.type === "extent-keyword")) { + if (t.some((d) => d.value.startsWith("-"))) throw new Error("disallow setting negative values to the size of the shape. Check https://w3c.github.io/csswg-drafts/css-images/#valdef-rg-size-length-0"); - return e === "circle" ? { r: G(`${t[0].value}${t[0].type}`, n, u, o, true) } : { rx: G(`${t[0].value}${t[0].type}`, n, u, o, true), ry: G(`${t[1].value}${t[1].type}`, n, s, o, true) }; + return e === "circle" ? { r: U(`${t[0].value}${t[0].type}`, n, u, o, true) } : { rx: U(`${t[0].value}${t[0].type}`, n, u, o, true), ry: U(`${t[1].value}${t[1].type}`, n, s, o, true) }; } switch (t[0].value) { case "farthest-corner": - d = Math.max(Math.abs(u - a), Math.abs(a)), h = Math.max(Math.abs(s - l), Math.abs(l)); + c = Math.max(Math.abs(u - a), Math.abs(a)), p = Math.max(Math.abs(s - l), Math.abs(l)); break; case "closest-corner": - d = Math.min(Math.abs(u - a), Math.abs(a)), h = Math.min(Math.abs(s - l), Math.abs(l)); + c = Math.min(Math.abs(u - a), Math.abs(a)), p = Math.min(Math.abs(s - l), Math.abs(l)); break; case "farthest-side": return e === "circle" ? f.r = Math.max(Math.abs(u - a), Math.abs(a), Math.abs(s - l), Math.abs(l)) : (f.rx = Math.max(Math.abs(u - a), Math.abs(a)), f.ry = Math.max(Math.abs(s - l), Math.abs(l))), f; @@ -15986,247 +15908,234 @@ function Wf(e, t, n, r, i, o) { return e === "circle" ? f.r = Math.min(Math.abs(u - a), Math.abs(a), Math.abs(s - l), Math.abs(l)) : (f.rx = Math.min(Math.abs(u - a), Math.abs(a)), f.ry = Math.min(Math.abs(s - l), Math.abs(l))), f; } if (e === "circle") - f.r = Math.sqrt(d * d + h * h); + f.r = Math.sqrt(c * c + p * p); else { - let p = h !== 0 ? d / h : 1; - d === 0 ? (f.rx = 0, f.ry = 0) : (f.ry = Math.sqrt(d * d + h * h * p * p) / p, f.rx = f.ry * p); + let d = p !== 0 ? c / p : 1; + c === 0 ? (f.rx = 0, f.ry = 0) : (f.ry = Math.sqrt(c * c + p * p * d * d) / d, f.rx = f.ry * d); } return f; } -c(); -function qf([e, t]) { +function Nf([e, t]) { return Math.round(e * 1e3) === 0 && Math.round(t * 1e3) === 0 ? 0 : Math.round(e * t / Math.sqrt(e * e + t * t) * 1e3) / 1e3; } -function Hr(e, t, n) { +function zr(e, t, n) { return n < e + t && (n / 2 < e && n / 2 < t ? e = t = n / 2 : n / 2 < e ? e = n - t : n / 2 < t && (t = n - e)), [e, t]; } -function Vr(e) { +function Gr(e) { e[0] = e[1] = Math.min(e[0], e[1]); } -function Yr(e, t, n, r, i) { +function jr(e, t, n, r, i) { if (typeof e == "string") { let o = e.split(" ").map((s) => s.trim()), u = !o[1] && !o[0].endsWith("%"); - return o[1] = o[1] || o[0], [u, [Math.min(G(o[0], r, t, i, true), t), Math.min(G(o[1], r, n, i, true), n)]]; + return o[1] = o[1] || o[0], [u, [Math.min(U(o[0], r, t, i, true), t), Math.min(U(o[1], r, n, i, true), n)]]; } return typeof e == "number" ? [true, [Math.min(e, t), Math.min(e, n)]] : [true, void 0]; } -var Xr = (e) => e && e[0] !== 0 && e[1] !== 0; -function Ze({ left: e, top: t, width: n, height: r }, i, o) { - let { borderTopLeftRadius: u, borderTopRightRadius: s, borderBottomLeftRadius: a, borderBottomRightRadius: l, fontSize: f } = i, d, h, m, p; - if ([d, u] = Yr(u, n, r, f, i), [h, s] = Yr(s, n, r, f, i), [m, a] = Yr(a, n, r, f, i), [p, l] = Yr(l, n, r, f, i), !o && !Xr(u) && !Xr(s) && !Xr(a) && !Xr(l)) +var Hr = (e) => e && e[0] !== 0 && e[1] !== 0; +function Qe({ left: e, top: t, width: n, height: r }, i, o) { + let { borderTopLeftRadius: u, borderTopRightRadius: s, borderBottomLeftRadius: a, borderBottomRightRadius: l, fontSize: f } = i, c, p, h, d; + if ([c, u] = jr(u, n, r, f, i), [p, s] = jr(s, n, r, f, i), [h, a] = jr(a, n, r, f, i), [d, l] = jr(l, n, r, f, i), !o && !Hr(u) && !Hr(s) && !Hr(a) && !Hr(l)) return ""; - u || (u = [0, 0]), s || (s = [0, 0]), a || (a = [0, 0]), l || (l = [0, 0]), [u[0], s[0]] = Hr(u[0], s[0], n), [a[0], l[0]] = Hr(a[0], l[0], n), [u[1], a[1]] = Hr(u[1], a[1], r), [s[1], l[1]] = Hr(s[1], l[1], r), d && Vr(u), h && Vr(s), m && Vr(a), p && Vr(l); - let D = []; - D[0] = [s, s], D[1] = [l, [-l[0], l[1]]], D[2] = [a, [-a[0], -a[1]]], D[3] = [u, [u[0], -u[1]]]; - let F = `h${n - u[0] - s[0]} a${D[0][0]} 0 0 1 ${D[0][1]}`, b = `v${r - s[1] - l[1]} a${D[1][0]} 0 0 1 ${D[1][1]}`, v = `h${l[0] + a[0] - n} a${D[2][0]} 0 0 1 ${D[2][1]}`, E = `v${a[1] + u[1] - r} a${D[3][0]} 0 0 1 ${D[3][1]}`; + u || (u = [0, 0]), s || (s = [0, 0]), a || (a = [0, 0]), l || (l = [0, 0]), [u[0], s[0]] = zr(u[0], s[0], n), [a[0], l[0]] = zr(a[0], l[0], n), [u[1], a[1]] = zr(u[1], a[1], r), [s[1], l[1]] = zr(s[1], l[1], r), c && Gr(u), p && Gr(s), h && Gr(a), d && Gr(l); + let m = []; + m[0] = [s, s], m[1] = [l, [-l[0], l[1]]], m[2] = [a, [-a[0], -a[1]]], m[3] = [u, [u[0], -u[1]]]; + let v = `h${n - u[0] - s[0]} a${m[0][0]} 0 0 1 ${m[0][1]}`, g = `v${r - s[1] - l[1]} a${m[1][0]} 0 0 1 ${m[1][1]}`, b = `h${l[0] + a[0] - n} a${m[2][0]} 0 0 1 ${m[2][1]}`, x = `v${a[1] + u[1] - r} a${m[3][0]} 0 0 1 ${m[3][1]}`; if (o) { - let w = function(le) { - let q = qf([u, s, l, a][le]); - return le === 0 ? [[e + u[0] - q, t + u[1] - q], [e + u[0], t]] : le === 1 ? [[e + n - s[0] + q, t + s[1] - q], [e + n, t + s[1]]] : le === 2 ? [[e + n - l[0] + q, t + r - l[1] + q], [e + n - l[0], t + r]] : [[e + a[0] - q, t + r - a[1] + q], [e, t + r - a[1]]]; - }, C = o.indexOf(false); + let y = function(se) { + let $ = Nf([u, s, l, a][se]); + return se === 0 ? [[e + u[0] - $, t + u[1] - $], [e + u[0], t]] : se === 1 ? [[e + n - s[0] + $, t + s[1] - $], [e + n, t + s[1]]] : se === 2 ? [[e + n - l[0] + $, t + r - l[1] + $], [e + n - l[0], t + r]] : [[e + a[0] - $, t + r - a[1] + $], [e, t + r - a[1]]]; + }, F = o.indexOf(false); if (!o.includes(true)) throw new Error("Invalid `partialSides`."); - if (C === -1) - C = 0; + if (F === -1) + F = 0; else - for (; !o[C]; ) - C = (C + 1) % 4; - let O = "", R = w(C), L = `M${R[0]} A${D[(C + 3) % 4][0]} 0 0 1 ${R[1]}`, Y = 0; - for (; Y < 4 && o[(C + Y) % 4]; Y++) - O += L + " ", L = [F, b, v, E][(C + Y) % 4]; - let se = (C + Y) % 4; - O += L.split(" ")[0]; - let ae = w(se); - return O += ` A${D[(se + 3) % 4][0]} 0 0 1 ${ae[0]}`, O; - } - return `M${e + u[0]},${t} ${F} ${b} ${v} ${E}`; -} -c(); -c(); -c(); -function Ou(e, t, n) { + for (; !o[F]; ) + F = (F + 1) % 4; + let k = "", P = y(F), B = `M${P[0]} A${m[(F + 3) % 4][0]} 0 0 1 ${P[1]}`, H = 0; + for (; H < 4 && o[(F + H) % 4]; H++) + k += B + " ", B = [v, g, b, x][(F + H) % 4]; + let oe = (F + H) % 4; + k += B.split(" ")[0]; + let ue = y(oe); + return k += ` A${m[(oe + 3) % 4][0]} 0 0 1 ${ue[0]}`, k; + } + return `M${e + u[0]},${t} ${v} ${g} ${b} ${x}`; +} +function Su(e, t, n) { return n[e + "Width"] === n[t + "Width"] && n[e + "Style"] === n[t + "Style"] && n[e + "Color"] === n[t + "Color"]; } -function Pu({ id: e, currentClipPathId: t, borderPath: n, borderType: r, left: i, top: o, width: u, height: s }, a) { +function ku({ id: e, currentClipPathId: t, borderPath: n, borderType: r, left: i, top: o, width: u, height: s }, a) { if (!(a.borderTopWidth || a.borderRightWidth || a.borderBottomWidth || a.borderLeftWidth)) return null; let f = `satori_bc-${e}`; - return [k("clipPath", { id: f, "clip-path": t ? `url(#${t})` : void 0 }, k(r, { x: i, y: o, width: u, height: s, d: n || void 0 })), f]; + return [C("clipPath", { id: f, "clip-path": t ? `url(#${t})` : void 0 }, C(r, { x: i, y: o, width: u, height: s, d: n || void 0 })), f]; } -function Ut({ left: e, top: t, width: n, height: r, props: i, asContentMask: o, maskBorderOnly: u }, s) { +function qt({ left: e, top: t, width: n, height: r, props: i, asContentMask: o, maskBorderOnly: u }, s) { let a = ["borderTop", "borderRight", "borderBottom", "borderLeft"]; - if (!o && !a.some((m) => s[m + "Width"])) + if (!o && !a.some((h) => s[h + "Width"])) return ""; let l = "", f = 0; - for (; f > 0 && Ou(a[f], a[(f + 3) % 4], s); ) + for (; f > 0 && Su(a[f], a[(f + 3) % 4], s); ) f = (f + 3) % 4; - let d = [false, false, false, false], h = []; - for (let m = 0; m < 4; m++) { - let p = (f + m) % 4, D = (f + m + 1) % 4, F = a[p], b = a[D]; - if (d[p] = true, h = [s[F + "Width"], s[F + "Style"], s[F + "Color"], F], !Ou(F, b, s)) { - let v = (h[0] || 0) + (o && !u && s[F.replace("border", "padding")] || 0); - v && (l += k("path", { width: n, height: r, ...i, fill: "none", stroke: o ? "#000" : h[2], "stroke-width": v * 2, "stroke-dasharray": !o && h[1] === "dashed" ? v * 2 + " " + v : void 0, d: Ze({ left: e, top: t, width: n, height: r }, s, d) })), d = [false, false, false, false]; + let c = [false, false, false, false], p = []; + for (let h = 0; h < 4; h++) { + let d = (f + h) % 4, m = (f + h + 1) % 4, v = a[d], g = a[m]; + if (c[d] = true, p = [s[v + "Width"], s[v + "Style"], s[v + "Color"], v], !Su(v, g, s)) { + let b = (p[0] || 0) + (o && !u && s[v.replace("border", "padding")] || 0); + b && (l += C("path", { width: n, height: r, ...i, fill: "none", stroke: o ? "#000" : p[2], "stroke-width": b * 2, "stroke-dasharray": !o && p[1] === "dashed" ? b * 2 + " " + b : void 0, d: Qe({ left: e, top: t, width: n, height: r }, s, c) })), c = [false, false, false, false]; } } - if (d.some(Boolean)) { - let m = (h[0] || 0) + (o && !u && s[h[3].replace("border", "padding")] || 0); - m && (l += k("path", { width: n, height: r, ...i, fill: "none", stroke: o ? "#000" : h[2], "stroke-width": m * 2, "stroke-dasharray": !o && h[1] === "dashed" ? m * 2 + " " + m : void 0, d: Ze({ left: e, top: t, width: n, height: r }, s, d) })); + if (c.some(Boolean)) { + let h = (p[0] || 0) + (o && !u && s[p[3].replace("border", "padding")] || 0); + h && (l += C("path", { width: n, height: r, ...i, fill: "none", stroke: o ? "#000" : p[2], "stroke-width": h * 2, "stroke-dasharray": !o && p[1] === "dashed" ? h * 2 + " " + h : void 0, d: Qe({ left: e, top: t, width: n, height: r }, s, c) })); } return l; } -function zn({ id: e, left: t, top: n, width: r, height: i, matrix: o, borderOnly: u }, s) { - let a = (s.borderLeftWidth || 0) + (u ? 0 : s.paddingLeft || 0), l = (s.borderTopWidth || 0) + (u ? 0 : s.paddingTop || 0), f = (s.borderRightWidth || 0) + (u ? 0 : s.paddingRight || 0), d = (s.borderBottomWidth || 0) + (u ? 0 : s.paddingBottom || 0), h = { x: t + a, y: n + l, width: r - a - f, height: i - l - d }; - return k("mask", { id: e }, k("rect", { ...h, fill: "#fff", mask: s._inheritedMaskId ? `url(#${s._inheritedMaskId})` : void 0 }) + Ut({ left: t, top: n, width: r, height: i, props: { transform: o || void 0 }, asContentMask: true, maskBorderOnly: u }, s)); +function qn({ id: e, left: t, top: n, width: r, height: i, matrix: o, borderOnly: u }, s) { + let a = (s.borderLeftWidth || 0) + (u ? 0 : s.paddingLeft || 0), l = (s.borderTopWidth || 0) + (u ? 0 : s.paddingTop || 0), f = (s.borderRightWidth || 0) + (u ? 0 : s.paddingRight || 0), c = (s.borderBottomWidth || 0) + (u ? 0 : s.paddingBottom || 0), p = { x: t + a, y: n + l, width: r - a - f, height: i - l - c }; + return C("mask", { id: e }, C("rect", { ...p, fill: "#fff", mask: s._inheritedMaskId ? `url(#${s._inheritedMaskId})` : void 0 }) + qt({ left: t, top: n, width: r, height: i, props: { transform: o || void 0 }, asContentMask: true, maskBorderOnly: u }, s)); } -c(); -c(); -var zt = { circle: /circle\((.+)\)/, ellipse: /ellipse\((.+)\)/, path: /path\((.+)\)/, polygon: /polygon\((.+)\)/, inset: /inset\((.+)\)/ }; -function Lu({ width: e, height: t }, n, r) { +var Ut = { circle: /circle\((.+)\)/, ellipse: /ellipse\((.+)\)/, path: /path\((.+)\)/, polygon: /polygon\((.+)\)/, inset: /inset\((.+)\)/ }; +function Pu({ width: e, height: t }, n, r) { function i(l) { - let f = l.match(zt.circle); + let f = l.match(Ut.circle); if (!f) return null; - let [, d] = f, [h, m = ""] = d.split("at").map((F) => F.trim()), { x: p, y: D } = Ru(m, e, t); - return { type: "circle", r: G(h, r.fontSize, Math.sqrt(Math.pow(e, 2) + Math.pow(t, 2)) / Math.sqrt(2), r, true), cx: G(p, r.fontSize, e, r, true), cy: G(D, r.fontSize, t, r, true) }; + let [, c] = f, [p, h = ""] = c.split("at").map((v) => v.trim()), { x: d, y: m } = Ou(h, e, t); + return { type: "circle", r: U(p, r.fontSize, Math.sqrt(Math.pow(e, 2) + Math.pow(t, 2)) / Math.sqrt(2), r, true), cx: U(d, r.fontSize, e, r, true), cy: U(m, r.fontSize, t, r, true) }; } function o(l) { - let f = l.match(zt.ellipse); + let f = l.match(Ut.ellipse); if (!f) return null; - let [, d] = f, [h, m = ""] = d.split("at").map((v) => v.trim()), [p, D] = h.split(" "), { x: F, y: b } = Ru(m, e, t); - return { type: "ellipse", rx: G(p || "50%", r.fontSize, e, r, true), ry: G(D || "50%", r.fontSize, t, r, true), cx: G(F, r.fontSize, e, r, true), cy: G(b, r.fontSize, t, r, true) }; + let [, c] = f, [p, h = ""] = c.split("at").map((b) => b.trim()), [d, m] = p.split(" "), { x: v, y: g } = Ou(h, e, t); + return { type: "ellipse", rx: U(d || "50%", r.fontSize, e, r, true), ry: U(m || "50%", r.fontSize, t, r, true), cx: U(v, r.fontSize, e, r, true), cy: U(g, r.fontSize, t, r, true) }; } function u(l) { - let f = l.match(zt.path); + let f = l.match(Ut.path); if (!f) return null; - let [d, h] = Bu(f[1]); - return { type: "path", d: h, "fill-rule": d }; + let [c, p] = Au(f[1]); + return { type: "path", d: p, "fill-rule": c }; } function s(l) { - let f = l.match(zt.polygon); + let f = l.match(Ut.polygon); if (!f) return null; - let [d, h] = Bu(f[1]); - return { type: "polygon", "fill-rule": d, points: h.split(",").map((m) => m.split(" ").map((p, D) => G(p, r.fontSize, D === 0 ? e : t, r, true)).join(" ")).join(",") }; + let [c, p] = Au(f[1]); + return { type: "polygon", "fill-rule": c, points: p.split(",").map((h) => h.split(" ").map((d, m) => U(d, r.fontSize, m === 0 ? e : t, r, true)).join(" ")).join(",") }; } function a(l) { - let f = l.match(zt.inset); + let f = l.match(Ut.inset); if (!f) return null; - let [d, h] = (f[1].includes("round") ? f[1] : `${f[1].trim()} round 0`).split("round"), m = (0, import_css_to_react_native3.getStylesForProperty)("borderRadius", h, true), p = Object.values(m).map((C) => String(C)).map((C, w) => G(C, r.fontSize, w === 0 || w === 2 ? t : e, r, true) || 0), D = Object.values((0, import_css_to_react_native3.getStylesForProperty)("margin", d, true)).map((C) => String(C)).map((C, w) => G(C, r.fontSize, w === 0 || w === 2 ? t : e, r, true) || 0), F = D[3], b = D[0], v = e - (D[1] + D[3]), E = t - (D[0] + D[2]); - if (p.some((C) => C > 0)) { - let C = Ze({ left: F, top: b, width: v, height: E }, { ...n, ...m }); - return { type: "path", d: C }; - } - return { type: "rect", x: F, y: b, width: v, height: E }; + let [c, p] = (f[1].includes("round") ? f[1] : `${f[1].trim()} round 0`).split("round"), h = (0, import_css_to_react_native3.getStylesForProperty)("borderRadius", p, true), d = Object.values(h).map((F) => String(F)).map((F, y) => U(F, r.fontSize, y === 0 || y === 2 ? t : e, r, true) || 0), m = Object.values((0, import_css_to_react_native3.getStylesForProperty)("margin", c, true)).map((F) => String(F)).map((F, y) => U(F, r.fontSize, y === 0 || y === 2 ? t : e, r, true) || 0), v = m[3], g = m[0], b = e - (m[1] + m[3]), x = t - (m[0] + m[2]); + return d.some((F) => F > 0) ? { type: "path", d: Qe({ left: v, top: g, width: b, height: x }, { ...n, ...h }) } : { type: "rect", x: v, y: g, width: b, height: x }; } return { parseCircle: i, parseEllipse: o, parsePath: u, parsePolygon: s, parseInset: a }; } -function Bu(e) { +function Au(e) { let [, t = "nonzero", n] = e.replace(/('|")/g, "").match(/^(nonzero|evenodd)?,?(.+)/) || []; return [t, n]; } -function Ru(e, t, n) { +function Ou(e, t, n) { let r = e.split(" "), i = { x: r[0] || "50%", y: r[1] || "50%" }; return r.forEach((o) => { o === "top" ? i.y = 0 : o === "bottom" ? i.y = n : o === "left" ? i.x = 0 : o === "right" ? i.x = t : o === "center" && (i.x = t / 2, i.y = n / 2); }), i; } -function Qr(e) { +function Vr(e) { return `satori_cp-${e}`; } -function Mu(e) { - return `url(#${Qr(e)})`; +function Bu(e) { + return `url(#${Vr(e)})`; } -function Nu(e, t, n) { +function Iu(e, t, n) { if (t.clipPath === "none") return ""; - let r = Lu(e, t, n), i = t.clipPath, o = { type: "" }; + let r = Pu(e, t, n), i = t.clipPath, o = { type: "" }; for (let u of Object.keys(r)) if (o = r[u](i), o) break; if (o) { let { type: u, ...s } = o; - return k("clipPath", { id: Qr(e.id), "clip-path": e.currentClipPath, transform: `translate(${e.left}, ${e.top})` }, k(u, s)); + return C("clipPath", { id: Vr(e.id), "clip-path": e.currentClipPath, transform: `translate(${e.left}, ${e.top})` }, C(u, s)); } return ""; } -function Gn({ left: e, top: t, width: n, height: r, path: i, matrix: o, id: u, currentClipPath: s, src: a }, l, f) { - let d = "", h = l.clipPath && l.clipPath !== "none" ? Nu({ left: e, top: t, width: n, height: r, path: i, id: u, matrix: o, currentClipPath: s, src: a }, l, f) : ""; +function Un({ left: e, top: t, width: n, height: r, path: i, matrix: o, id: u, currentClipPath: s, src: a }, l, f) { + let c = "", p = l.clipPath && l.clipPath !== "none" ? Iu({ left: e, top: t, width: n, height: r, path: i, id: u, matrix: o, currentClipPath: s, src: a }, l, f) : ""; if (l.overflow !== "hidden" && !a) - d = ""; + c = ""; else { - let p = h ? `satori_ocp-${u}` : Qr(u); - d = k("clipPath", { id: p, "clip-path": s }, k(i ? "path" : "rect", { x: e, y: t, width: n, height: r, d: i || void 0 })); + let d = p ? `satori_ocp-${u}` : Vr(u); + c = C("clipPath", { id: d, "clip-path": s }, C(i ? "path" : "rect", { x: e, y: t, width: n, height: r, d: i || void 0 })); } - let m = zn({ id: `satori_om-${u}`, left: e, top: t, width: n, height: r, matrix: o, borderOnly: !a }, l); - return h + d + m; + let h = qn({ id: `satori_om-${u}`, left: e, top: t, width: n, height: r, matrix: o, borderOnly: !a }, l); + return p + c + h; } -c(); -var Uf = (e) => `satori_mi-${e}`; -async function jn(e, t, n) { +var $f = (e) => `satori_mi-${e}`; +async function zn(e, t, n) { if (!t.maskImage) return ["", ""]; let { left: r, top: i, width: o, height: u, id: s } = e, a = t.maskImage, l = a.length; if (!l) return ["", ""]; - let f = Uf(s), d = ""; - for (let h = 0; h < l; h++) { - let m = a[h], [p, D] = await qt({ id: `${f}-${h}`, left: r, top: i, width: o, height: u }, m, n, "mask"); - d += D + k("rect", { x: 0, y: 0, width: o, height: u, fill: `url(#${p})` }); + let f = $f(s), c = ""; + for (let p = 0; p < l; p++) { + let h = a[p], [d, m] = await Wt({ id: `${f}-${p}`, left: r, top: i, width: o, height: u }, h, n, "mask"); + c += m + C("rect", { x: 0, y: 0, width: o, height: u, fill: `url(#${d})` }); } - return d = k("mask", { id: f }, d), [f, d]; + return c = C("mask", { id: f }, c), [f, c]; } -async function Gt({ id: e, left: t, top: n, width: r, height: i, isInheritingTransform: o, src: u, debug: s }, a, l) { +async function zt({ id: e, left: t, top: n, width: r, height: i, isInheritingTransform: o, src: u, debug: s }, a, l) { if (a.display === "none") return ""; - let f = !!u, d = "rect", h = "", m = "", p = [], D = 1, F = ""; - a.backgroundColor && p.push(a.backgroundColor), a.opacity !== void 0 && (D = +a.opacity), a.transform && (h = Nt({ left: t, top: n, width: r, height: i }, a.transform, o, a.transformOrigin)); - let b = ""; + let f = !!u, c = "rect", p = "", h = "", d = [], m = 1, v = ""; + a.backgroundColor && d.push(a.backgroundColor), a.opacity !== void 0 && (m = +a.opacity), a.transform && (p = Mt({ left: t, top: n, width: r, height: i }, a.transform, o, a.transformOrigin)); + let g = ""; if (a.backgroundImage) { - let $ = []; - for (let J = 0; J < a.backgroundImage.length; J++) { - let he = a.backgroundImage[J], X = await qt({ id: e + "_" + J, width: r, height: i, left: t, top: n }, he, l); - X && $.unshift(X); - } - for (let J of $) - p.push(`url(#${J[0]})`), m += J[1], J[2] && (b += J[2]); - } - let [v, E] = await jn({ id: e, left: t, top: n, width: r, height: i }, a, l); - m += E; - let C = v ? `url(#${v})` : a._inheritedMaskId ? `url(#${a._inheritedMaskId})` : void 0, w = Ze({ left: t, top: n, width: r, height: i }, a); - w && (d = "path"); - let O = a._inheritedClipPathId; - s && (F = k("rect", { x: t, y: n, width: r, height: i, fill: "transparent", stroke: "#ff5757", "stroke-width": 1, transform: h || void 0, "clip-path": O ? `url(#${O})` : void 0 })); - let { backgroundClip: R, filter: L } = a, Y = R === "text" ? `url(#satori_bct-${e})` : O ? `url(#${O})` : a.clipPath ? Mu(e) : void 0, se = Gn({ left: t, top: n, width: r, height: i, path: w, id: e, matrix: h, currentClipPath: Y, src: u }, a, l), ae = p.map(($) => k(d, { x: t, y: n, width: r, height: i, fill: $, d: w || void 0, transform: h || void 0, "clip-path": Y, style: L ? `filter:${L}` : void 0, mask: C })).join(""), le = Pu({ id: e, left: t, top: n, width: r, height: i, currentClipPathId: O, borderPath: w, borderType: d }, a); + let L = []; + for (let X = 0; X < a.backgroundImage.length; X++) { + let ce = a.backgroundImage[X], V = await Wt({ id: e + "_" + X, width: r, height: i, left: t, top: n }, ce, l); + V && L.unshift(V); + } + for (let X of L) + d.push(`url(#${X[0]})`), h += X[1], X[2] && (g += X[2]); + } + let [b, x] = await zn({ id: e, left: t, top: n, width: r, height: i }, a, l); + h += x; + let F = b ? `url(#${b})` : a._inheritedMaskId ? `url(#${a._inheritedMaskId})` : void 0, y = Qe({ left: t, top: n, width: r, height: i }, a); + y && (c = "path"); + let k = a._inheritedClipPathId; + s && (v = C("rect", { x: t, y: n, width: r, height: i, fill: "transparent", stroke: "#ff5757", "stroke-width": 1, transform: p || void 0, "clip-path": k ? `url(#${k})` : void 0 })); + let { backgroundClip: P, filter: B } = a, H = P === "text" ? `url(#satori_bct-${e})` : k ? `url(#${k})` : a.clipPath ? Bu(e) : void 0, oe = Un({ left: t, top: n, width: r, height: i, path: y, id: e, matrix: p, currentClipPath: H, src: u }, a, l), ue = d.map((L) => C(c, { x: t, y: n, width: r, height: i, fill: L, d: y || void 0, transform: p || void 0, "clip-path": H, style: B ? `filter:${B}` : void 0, mask: F })).join(""), se = ku({ id: e, left: t, top: n, width: r, height: i, currentClipPathId: k, borderPath: y, borderType: c }, a); if (f) { - let $ = (a.borderLeftWidth || 0) + (a.paddingLeft || 0), J = (a.borderTopWidth || 0) + (a.paddingTop || 0), he = (a.borderRightWidth || 0) + (a.paddingRight || 0), X = (a.borderBottomWidth || 0) + (a.paddingBottom || 0), re = a.objectFit === "contain" ? "xMidYMid" : a.objectFit === "cover" ? "xMidYMid slice" : "none"; - ae += k("image", { x: t + $, y: n + J, width: r - $ - he, height: i - J - X, href: u, preserveAspectRatio: re, transform: h || void 0, style: L ? `filter:${L}` : void 0, "clip-path": `url(#satori_cp-${e})`, mask: v ? `url(#${v})` : `url(#satori_om-${e})` }); - } - if (le) { - m += le[0]; - let $ = le[1]; - ae += Ut({ left: t, top: n, width: r, height: i, props: { transform: h || void 0, "clip-path": `url(#${$})` } }, a); - } - let q = Su({ width: r, height: i, id: e, opacity: D, shape: k(d, { x: t, y: n, width: r, height: i, fill: "#fff", stroke: "#fff", "stroke-width": 0, d: w || void 0, transform: h || void 0, "clip-path": Y, mask: C }) }, a); - return (m ? k("defs", {}, m) : "") + (q ? q[0] : "") + se + (D !== 1 ? `` : "") + (b || ae) + (D !== 1 ? "" : "") + (q ? q[1] : "") + F; -} -c(); -c(); -var $u = () => /[#*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\u26D3\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](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\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]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\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])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\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-\uDDF5\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]|\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(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\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-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\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-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\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-\uDDB3\uDDBC\uDDBD])|\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-\uDDB3\uDDBC\uDDBD]|\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-\uDDB3\uDDBC\uDDBD]|\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-\uDDB3\uDDBC\uDDBD]|\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-\uDDB3\uDDBC\uDDBD]|\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-\uDDB3\uDDBC\uDDBD]|\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-\uDDB3\uDDBC\uDDBD])|\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-\uDDB3\uDDBC\uDDBD]|\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-\uDDB3\uDDBC\uDDBD]|\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-\uDDB3\uDDBC\uDDBD]|\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-\uDDB3\uDDBC\uDDBD]|\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-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\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-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\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-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\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-\uDDB3\uDDBC\uDDBD]|\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-\uDDB3\uDDBC\uDDBD]|\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-\uDDB3\uDDBC\uDDBD]|\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-\uDDB3\uDDBC\uDDBD]|\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-\uDDB3\uDDBC\uDDBD]|\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; -var zf = new RegExp($u(), ""); -var Hn = { emoji: zf, symbol: /\p{Symbol}/u, math: /\p{Math}/u }; -var Vn = { "ja-JP": /\p{scx=Hira}|\p{scx=Kana}|\p{scx=Han}|[\u3000]|[\uFF00-\uFFEF]/u, "ko-KR": /\p{scx=Hangul}/u, "zh-CN": /\p{scx=Han}/u, "zh-TW": /\p{scx=Han}/u, "zh-HK": /\p{scx=Han}/u, "th-TH": /\p{scx=Thai}/u, "bn-IN": /\p{scx=Bengali}/u, "ar-AR": /\p{scx=Arabic}/u, "ta-IN": /\p{scx=Tamil}/u, "ml-IN": /\p{scx=Malayalam}/u, "he-IL": /\p{scx=Hebrew}/u, "te-IN": /\p{scx=Telugu}/u, devanagari: /\p{scx=Devanagari}/u, kannada: /\p{scx=Kannada}/u }; -var Kr = Object.keys({ ...Vn, ...Hn }); -function Wu(e) { - return Kr.includes(e); -} -function qu(e, t) { - for (let r of Object.keys(Hn)) - if (Hn[r].test(e)) + let L = (a.borderLeftWidth || 0) + (a.paddingLeft || 0), X = (a.borderTopWidth || 0) + (a.paddingTop || 0), ce = (a.borderRightWidth || 0) + (a.paddingRight || 0), V = (a.borderBottomWidth || 0) + (a.paddingBottom || 0), Z = a.objectFit === "contain" ? "xMidYMid" : a.objectFit === "cover" ? "xMidYMid slice" : "none"; + ue += C("image", { x: t + L, y: n + X, width: r - L - ce, height: i - X - V, href: u, preserveAspectRatio: Z, transform: p || void 0, style: B ? `filter:${B}` : void 0, "clip-path": `url(#satori_cp-${e})`, mask: b ? `url(#${b})` : `url(#satori_om-${e})` }); + } + if (se) { + h += se[0]; + let L = se[1]; + ue += qt({ left: t, top: n, width: r, height: i, props: { transform: p || void 0, "clip-path": `url(#${L})` } }, a); + } + let $ = wu({ width: r, height: i, id: e, opacity: m, shape: C(c, { x: t, y: n, width: r, height: i, fill: "#fff", stroke: "#fff", "stroke-width": 0, d: y || void 0, transform: p || void 0, "clip-path": H, mask: F }) }, a); + return (h ? C("defs", {}, h) : "") + ($ ? $[0] : "") + oe + (m !== 1 ? `` : "") + (g || ue) + (m !== 1 ? "" : "") + ($ ? $[1] : "") + v; +} +var Ru = () => /[#*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\u26D3\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](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\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]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\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])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\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-\uDDF5\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]|\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(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\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-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\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-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\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-\uDDB3\uDDBC\uDDBD])|\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-\uDDB3\uDDBC\uDDBD]|\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-\uDDB3\uDDBC\uDDBD]|\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-\uDDB3\uDDBC\uDDBD]|\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-\uDDB3\uDDBC\uDDBD]|\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-\uDDB3\uDDBC\uDDBD]|\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-\uDDB3\uDDBC\uDDBD])|\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-\uDDB3\uDDBC\uDDBD]|\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-\uDDB3\uDDBC\uDDBD]|\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-\uDDB3\uDDBC\uDDBD]|\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-\uDDB3\uDDBC\uDDBD]|\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-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\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-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\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-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\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-\uDDB3\uDDBC\uDDBD]|\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-\uDDB3\uDDBC\uDDBD]|\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-\uDDB3\uDDBC\uDDBD]|\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-\uDDB3\uDDBC\uDDBD]|\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-\uDDB3\uDDBC\uDDBD]|\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; +var Wf = new RegExp(Ru(), ""); +var Gn = { emoji: Wf, symbol: /\p{Symbol}/u, math: /\p{Math}/u }; +var jn = { "ja-JP": /\p{scx=Hira}|\p{scx=Kana}|\p{scx=Han}|[\u3000]|[\uFF00-\uFFEF]/u, "ko-KR": /\p{scx=Hangul}/u, "zh-CN": /\p{scx=Han}/u, "zh-TW": /\p{scx=Han}/u, "zh-HK": /\p{scx=Han}/u, "th-TH": /\p{scx=Thai}/u, "bn-IN": /\p{scx=Bengali}/u, "ar-AR": /\p{scx=Arabic}/u, "ta-IN": /\p{scx=Tamil}/u, "ml-IN": /\p{scx=Malayalam}/u, "he-IL": /\p{scx=Hebrew}/u, "te-IN": /\p{scx=Telugu}/u, devanagari: /\p{scx=Devanagari}/u, kannada: /\p{scx=Kannada}/u }; +var Yr = Object.keys({ ...jn, ...Gn }); +function Lu(e) { + return Yr.includes(e); +} +function Mu(e, t) { + for (let r of Object.keys(Gn)) + if (Gn[r].test(e)) return [r]; - let n = Object.keys(Vn).filter((r) => Vn[r].test(e)); + let n = Object.keys(jn).filter((r) => jn[r].test(e)); if (n.length === 0) return ["unknown"]; if (t) { @@ -16235,73 +16144,72 @@ function qu(e, t) { } return n; } -function Uu(e) { +function Nu(e) { if (e) - return Kr.find((t) => t.toLowerCase().startsWith(e.toLowerCase())); + return Yr.find((t) => t.toLowerCase().startsWith(e.toLowerCase())); } -async function* jt(e, t) { - var W; - let n = await Ge(), { id: r, inheritedStyle: i, parent: o, font: u, debug: s, locale: a, embedFont: l = true, graphemeImages: f, canLoadAdditionalAssets: d, getTwStyles: h } = t; +async function* Gt(e, t) { + var M; + let n = await qe(), { id: r, inheritedStyle: i, parent: o, font: u, debug: s, locale: a, embedFont: l = true, graphemeImages: f, canLoadAdditionalAssets: c, getTwStyles: p } = t; if (e === null || typeof e > "u") return yield, yield, ""; - if (!yt(e) || typeof e.type == "function") { - let N; - if (!yt(e)) - N = $n(String(e), t), yield (await N.next()).value; + if (!bt(e) || typeof e.type == "function") { + let R; + if (!bt(e)) + R = Mn(String(e), t), yield (await R.next()).value; else { - if (tu(e.type)) + if (Ko(e.type)) throw new Error("Class component is not supported."); - N = jt(e.type(e.props), t), yield (await N.next()).value; + R = Gt(e.type(e.props), t), yield (await R.next()).value; } - await N.next(); - let fe = yield; - return (await N.next(fe)).value; + await R.next(); + let ae = yield; + return (await R.next(ae)).value; } - let { type: m, props: p } = e; - if (p && ru(p)) + let { type: h, props: d } = e; + if (d && Jo(d)) throw new Error("dangerouslySetInnerHTML property is not supported. See documentation for more information https://github.com/vercel/satori#jsx."); - let { style: D, children: F, tw: b, lang: v = a } = p || {}, E = Uu(v); - if (b) { - let N = h(b, D); - D = Object.assign(N, D); - } - let C = n.Node.create(); - o.insertChild(C, o.getChildCount()); - let [w, O] = await Bn(C, m, i, D, p), R = w.transform === i.transform; - if (R || (w.transform.__parent = i.transform), (w.overflow === "hidden" || w.clipPath && w.clipPath !== "none") && (O._inheritedClipPathId = `satori_cp-${r}`, O._inheritedMaskId = `satori_om-${r}`), w.maskImage && (O._inheritedMaskId = `satori_mi-${r}`), w.backgroundClip === "text") { - let N = { value: "" }; - O._inheritedBackgroundClipTextPath = N, w._inheritedBackgroundClipTextPath = N; - } - let L = nu(F), Y = [], se = 0, ae = []; - for (let N of L) { - let fe = jt(N, { id: r + "-" + se++, parentStyle: w, inheritedStyle: O, isInheritingTransform: true, parent: C, font: u, embedFont: l, debug: s, graphemeImages: f, canLoadAdditionalAssets: d, locale: E, getTwStyles: h, onNodeDetected: t.onNodeDetected }); - d ? ae.push(...(await fe.next()).value || []) : await fe.next(), Y.push(fe); - } - yield ae; - for (let N of Y) - await N.next(); - let [le, q] = yield, { left: $, top: J, width: he, height: X } = C.getComputedLayout(); - $ += le, J += q; - let re = "", ce = "", be = "", { children: I, ...B } = p; - if ((W = t.onNodeDetected) == null || W.call(t, { left: $, top: J, width: he, height: X, type: m, props: B, key: e.key, textContent: yt(I) ? void 0 : I }), m === "img") { - let N = w.__src; - ce = await Gt({ id: r, left: $, top: J, width: he, height: X, src: N, isInheritingTransform: R, debug: s }, w, O); - } else if (m === "svg") { - let N = w.color, fe = await Du(e, N); - ce = await Gt({ id: r, left: $, top: J, width: he, height: X, src: fe, isInheritingTransform: R, debug: s }, w, O); + let { style: m, children: v, tw: g, lang: b = a } = d || {}, x = Nu(b); + if (g) { + let R = p(g, m); + m = Object.assign(R, m); + } + let F = n.Node.create(); + o.insertChild(F, o.getChildCount()); + let [y, k] = await Pn(F, h, i, m, d), P = y.transform === i.transform; + if (P || (y.transform.__parent = i.transform), (y.overflow === "hidden" || y.clipPath && y.clipPath !== "none") && (k._inheritedClipPathId = `satori_cp-${r}`, k._inheritedMaskId = `satori_om-${r}`), y.maskImage && (k._inheritedMaskId = `satori_mi-${r}`), y.backgroundClip === "text") { + let R = { value: "" }; + k._inheritedBackgroundClipTextPath = R, y._inheritedBackgroundClipTextPath = R; + } + let B = Zo(v), H = [], oe = 0, ue = []; + for (let R of B) { + let ae = Gt(R, { id: r + "-" + oe++, parentStyle: y, inheritedStyle: k, isInheritingTransform: true, parent: F, font: u, embedFont: l, debug: s, graphemeImages: f, canLoadAdditionalAssets: c, locale: x, getTwStyles: p, onNodeDetected: t.onNodeDetected }); + c ? ue.push(...(await ae.next()).value || []) : await ae.next(), H.push(ae); + } + yield ue; + for (let R of H) + await R.next(); + let [se, $] = yield, { left: L, top: X, width: ce, height: V } = F.getComputedLayout(); + L += se, X += $; + let Z = "", le = "", he = "", { children: A, ...O } = d; + if ((M = t.onNodeDetected) == null || M.call(t, { left: L, top: X, width: ce, height: V, type: h, props: O, key: e.key, textContent: bt(A) ? void 0 : A }), h === "img") { + let R = y.__src; + le = await zt({ id: r, left: L, top: X, width: ce, height: V, src: R, isInheritingTransform: P, debug: s }, y, k); + } else if (h === "svg") { + let R = y.color, ae = await du(e, R); + le = await zt({ id: r, left: L, top: X, width: ce, height: V, src: ae, isInheritingTransform: P, debug: s }, y, k); } else { - let N = D == null ? void 0 : D.display; - if (m === "div" && F && typeof F != "string" && N !== "flex" && N !== "none") + let R = m == null ? void 0 : m.display; + if (h === "div" && v && typeof v != "string" && R !== "flex" && R !== "none") throw new Error('Expected
to have explicit "display: flex" or "display: none" if it has more than one child node.'); - ce = await Gt({ id: r, left: $, top: J, width: he, height: X, isInheritingTransform: R, debug: s }, w, O); + le = await zt({ id: r, left: L, top: X, width: ce, height: V, isInheritingTransform: P, debug: s }, y, k); } - for (let N of Y) - re += (await N.next([$, J])).value; - return w._inheritedBackgroundClipTextPath && (be += k("clipPath", { id: `satori_bct-${r}`, "clip-path": w._inheritedClipPathId ? `url(#${w._inheritedClipPathId})` : void 0 }, w._inheritedBackgroundClipTextPath.value)), be + ce + re; + for (let R of H) + Z += (await R.next([L, X])).value; + return y._inheritedBackgroundClipTextPath && (he += C("clipPath", { id: `satori_bct-${r}`, "clip-path": y._inheritedClipPathId ? `url(#${y._inheritedClipPathId})` : void 0 }, y._inheritedBackgroundClipTextPath.value)), he + le + Z; } -c(); -var zu = "unknown"; -function Gf(e, t, [n, r], [i, o]) { +var $u = "unknown"; +function qf(e, t, [n, r], [i, o]) { if (n !== i) return n ? !i || n === e ? -1 : i === e ? 1 : e === 400 && n === 500 || e === 500 && n === 400 ? -1 : e === 400 && i === 500 || e === 500 && i === 400 ? 1 : e < 400 ? n < e && i < e ? i - n : n < e ? -1 : i < e ? 1 : n - i : e < n && e < i ? n - i : e < n ? -1 : e < i ? 1 : i - n : 1; if (r !== o) { @@ -16312,9 +16220,10 @@ function Gf(e, t, [n, r], [i, o]) { } return -1; } -var Ht = class { +var jt = class { + defaultFont; + fonts = /* @__PURE__ */ new Map(); constructor(t) { - this.fonts = /* @__PURE__ */ new Map(); this.addFonts(t); } get({ name: t, weight: n, style: r }) { @@ -16324,19 +16233,19 @@ var Ht = class { let i = [...this.fonts.get(t)], o = i[0]; for (let u = 1; u < i.length; u++) { let [, s, a] = o, [, l, f] = i[u]; - Gf(n, r, [s, a], [l, f]) > 0 && (o = i[u]); + qf(n, r, [s, a], [l, f]) > 0 && (o = i[u]); } return o[0]; } addFonts(t) { for (let n of t) { let { name: r, data: i, lang: o } = n; - if (o && !Wu(o)) - throw new Error(`Invalid value for props \`lang\`: "${o}". The value must be one of the following: ${Kr.join(", ")}.`); - let u = o ?? zu, s = opentype_module_default.parse("buffer" in i ? i.buffer.slice(i.byteOffset, i.byteOffset + i.byteLength) : i, { lowMemory: true }), a = s.charToGlyphIndex; + if (o && !Lu(o)) + throw new Error(`Invalid value for props \`lang\`: "${o}". The value must be one of the following: ${Yr.join(", ")}.`); + let u = o ?? $u, s = opentype_module_default.parse("buffer" in i ? i.buffer.slice(i.byteOffset, i.byteOffset + i.byteLength) : i, { lowMemory: true }), a = s.charToGlyphIndex; s.charToGlyphIndex = (f) => { - let d = a.call(s, f); - return d === 0 && s._trackBrokenChars && s._trackBrokenChars.push(f), d; + let c = a.call(s, f); + return c === 0 && s._trackBrokenChars && s._trackBrokenChars.push(f), c; }, this.defaultFont || (this.defaultFont = s); let l = `${r.toLowerCase()}_${u}`; this.fonts.has(l) || this.fonts.set(l, []), this.fonts.get(l).push([s, n.weight, n.style]); @@ -16345,54 +16254,54 @@ var Ht = class { getEngine(t = 16, n = 1.2, { fontFamily: r = "sans-serif", fontWeight: i = 400, fontStyle: o = "normal" }, u) { if (!this.fonts.size) throw new Error("No fonts are loaded. At least one font is required to calculate the layout."); - r = (Array.isArray(r) ? r : [r]).map((v) => v.toLowerCase()); + r = (Array.isArray(r) ? r : [r]).map((b) => b.toLowerCase()); let s = []; - r.forEach((v) => { - let E = this.get({ name: v, weight: i, style: o }); - if (E) { - s.push(E); + r.forEach((b) => { + let x = this.get({ name: b, weight: i, style: o }); + if (x) { + s.push(x); return; } - let C = this.get({ name: v + "_unknown", weight: i, style: o }); - if (C) { - s.push(C); + let F = this.get({ name: b + "_unknown", weight: i, style: o }); + if (F) { + s.push(F); return; } }); - let a = Array.from(this.fonts.keys()), l = [], f = [], d = []; - for (let v of a) - if (!r.includes(v)) + let a = Array.from(this.fonts.keys()), l = [], f = [], c = []; + for (let b of a) + if (!r.includes(b)) if (u) { - let E = jf(v); - E ? E === u ? l.push(this.get({ name: v, weight: i, style: o })) : f.push(this.get({ name: v, weight: i, style: o })) : d.push(this.get({ name: v, weight: i, style: o })); + let x = Uf(b); + x ? x === u ? l.push(this.get({ name: b, weight: i, style: o })) : f.push(this.get({ name: b, weight: i, style: o })) : c.push(this.get({ name: b, weight: i, style: o })); } else - d.push(this.get({ name: v, weight: i, style: o })); - let h = /* @__PURE__ */ new Map(), m = (v, E = true) => { - let C = [...s, ...d, ...l, ...E ? f : []]; - if (typeof v > "u") - return E ? C[C.length - 1] : void 0; - let w = v.charCodeAt(0); - if (h.has(w)) - return h.get(w); - let O = C.find((R, L) => !!R.charToGlyphIndex(v) || E && L === C.length - 1); - return O && h.set(w, O), O; - }, p = (v, E = false) => { - var w, O; - return ((E ? (O = (w = v.tables) == null ? void 0 : w.os2) == null ? void 0 : O.sTypoAscender : 0) || v.ascender) / v.unitsPerEm * t; - }, D = (v, E = false) => { - var w, O; - return ((E ? (O = (w = v.tables) == null ? void 0 : w.os2) == null ? void 0 : O.sTypoDescender : 0) || v.descender) / v.unitsPerEm * t; - }, F = (v) => m(v, false), b = { has: (v) => { - if (v === ` + c.push(this.get({ name: b, weight: i, style: o })); + let p = /* @__PURE__ */ new Map(), h = (b, x = true) => { + let F = [...s, ...c, ...l, ...x ? f : []]; + if (typeof b > "u") + return x ? F[F.length - 1] : void 0; + let y = b.charCodeAt(0); + if (p.has(y)) + return p.get(y); + let k = F.find((P, B) => !!P.charToGlyphIndex(b) || x && B === F.length - 1); + return k && p.set(y, k), k; + }, d = (b, x = false) => { + var y, k; + return ((x ? (k = (y = b.tables) == null ? void 0 : y.os2) == null ? void 0 : k.sTypoAscender : 0) || b.ascender) / b.unitsPerEm * t; + }, m = (b, x = false) => { + var y, k; + return ((x ? (k = (y = b.tables) == null ? void 0 : y.os2) == null ? void 0 : k.sTypoDescender : 0) || b.descender) / b.unitsPerEm * t; + }, v = (b) => h(b, false), g = { has: (b) => { + if (b === ` `) return true; - let E = F(v); - return E ? (E._trackBrokenChars = [], E.stringToGlyphs(v), E._trackBrokenChars.length ? (E._trackBrokenChars = void 0, false) : true) : false; - }, baseline: (v, E = typeof v > "u" ? s[0] : m(v)) => { - let C = p(E, true), w = D(E, true), O = b.height(v, E), { yMax: R, yMin: L } = E.tables.head, Y = C - w, se = (R / (R - L) - 1) * Y; - return O * ((1.2 / n + 1) / 2) + se; - }, height: (v, E = typeof v > "u" ? s[0] : m(v)) => (p(E) - D(E)) * (n / 1.2), measure: (v, E) => this.measure(m, v, E), getSVG: (v, E) => this.getSVG(m, v, E) }; - return b; + let x = v(b); + return x ? (x._trackBrokenChars = [], x.stringToGlyphs(b), x._trackBrokenChars.length ? (x._trackBrokenChars = void 0, false) : true) : false; + }, baseline: (b, x = typeof b > "u" ? s[0] : h(b)) => { + let F = d(x, true), y = m(x, true), k = g.height(b, x), { yMax: P, yMin: B } = x.tables.head, H = F - y, oe = (P / (P - B) - 1) * H; + return k * ((1.2 / n + 1) / 2) + oe; + }, height: (b, x = typeof b > "u" ? s[0] : h(b)) => (d(x) - m(x)) * (n / 1.2), measure: (b, x) => this.measure(h, b, x), getSVG: (b, x) => this.getSVG(h, b, x) }; + return g; } patchFontFallbackResolver(t, n) { let r = []; @@ -16404,15 +16313,15 @@ var Ht = class { if (s[a].unicode === void 0) { let l = r.shift(), f = n(l); if (f !== t) { - let d = f.charToGlyph(l), h = t.unitsPerEm / f.unitsPerEm, m = new opentype_module_default.Path(); - m.unitsPerEm = t.unitsPerEm, m.commands = d.path.commands.map((D) => { - let F = { ...D }; - for (let b in F) - typeof F[b] == "number" && (F[b] *= h); - return F; + let c = f.charToGlyph(l), p = t.unitsPerEm / f.unitsPerEm, h = new opentype_module_default.Path(); + h.unitsPerEm = t.unitsPerEm, h.commands = c.path.commands.map((m) => { + let v = { ...m }; + for (let g in v) + typeof v[g] == "number" && (v[g] *= p); + return v; }); - let p = new opentype_module_default.Glyph({ ...d, advanceWidth: d.advanceWidth * h, xMin: d.xMin * h, xMax: d.xMax * h, yMin: d.yMin * h, yMax: d.yMax * h, path: m }); - s[a] = p; + let d = new opentype_module_default.Glyph({ ...c, advanceWidth: c.advanceWidth * p, xMin: c.xMin * p, xMax: c.xMax * p, yMin: c.yMin * p, yMax: c.yMax * p, path: h }); + s[a] = d; } } return s; @@ -16437,51 +16346,44 @@ var Ht = class { } } }; -function jf(e) { +function Uf(e) { let t = e.split("_"), n = t[t.length - 1]; - return n === zu ? void 0 : n; -} -c(); -function Xn({ width: e, height: t, content: n }) { - return k("svg", { width: e, height: t, viewBox: `0 0 ${e} ${t}`, xmlns: "http://www.w3.org/2000/svg" }, n); -} -c(); -c(); -var Fl = Bl(Za()); -c(); -c(); -c(); -c(); -var Om = ["ios", "android", "windows", "macos", "web"]; -function tl(e) { - return Om.includes(e); -} -var Pm = ["portrait", "landscape"]; -function rl(e) { - return Pm.includes(e); -} -var el; + return n === $u ? void 0 : n; +} +function Vn({ width: e, height: t, content: n }) { + return C("svg", { width: e, height: t, viewBox: `0 0 ${e} ${t}`, xmlns: "http://www.w3.org/2000/svg" }, n); +} +var bl = Ol(Xa()); +var km = ["ios", "android", "windows", "macos", "web"]; +function Ka(e) { + return km.includes(e); +} +var Tm = ["portrait", "landscape"]; +function Ja(e) { + return Tm.includes(e); +} +var Qa; (function(e) { e.fontSize = "fontSize", e.lineHeight = "lineHeight"; -})(el || (el = {})); -var H; +})(Qa || (Qa = {})); +var G; (function(e) { e.rem = "rem", e.em = "em", e.px = "px", e.percent = "%", e.vw = "vw", e.vh = "vh", e.none = ""; -})(H || (H = {})); -function Fo(e) { +})(G || (G = {})); +function yo(e) { return typeof e == "string"; } -function wo(e) { +function xo(e) { return typeof e == "object"; } -var Eo; -function g(e) { +var Fo; +function D(e) { return { kind: "complete", style: e }; } -function pe(e, t = {}) { +function fe(e, t = {}) { let { fractions: n } = t; if (n && e.includes("/")) { - let [o = "", u = ""] = e.split("/", 2), s = pe(o), a = pe(u); + let [o = "", u = ""] = e.split("/", 2), s = fe(o), a = fe(u); return !s || !a ? null : [s[0] / a[0], a[1]]; } let r = parseFloat(e); @@ -16489,120 +16391,120 @@ function pe(e, t = {}) { return null; let i = e.match(/(([a-z]{2,}|%))$/); if (!i) - return [r, H.none]; + return [r, G.none]; switch (i == null ? void 0 : i[1]) { case "rem": - return [r, H.rem]; + return [r, G.rem]; case "px": - return [r, H.px]; + return [r, G.px]; case "em": - return [r, H.em]; + return [r, G.em]; case "%": - return [r, H.percent]; + return [r, G.percent]; case "vw": - return [r, H.vw]; + return [r, G.vw]; case "vh": - return [r, H.vh]; + return [r, G.vh]; default: return null; } } -function Ve(e, t, n = {}) { - let r = qe(t, n); - return r === null ? null : g({ [e]: r }); +function Ge(e, t, n = {}) { + let r = Me(t, n); + return r === null ? null : D({ [e]: r }); } -function Dn(e, t, n) { - let r = qe(t); +function pn(e, t, n) { + let r = Me(t); return r !== null && (n[e] = r), n; } -function il(e, t) { - let n = qe(t); +function el(e, t) { + let n = Me(t); return n === null ? null : { [e]: n }; } -function qe(e, t = {}) { +function Me(e, t = {}) { if (e === void 0) return null; - let n = pe(String(e), t); - return n ? nt(...n, t) : null; + let n = fe(String(e), t); + return n ? et2(...n, t) : null; } -function nt(e, t, n = {}) { +function et2(e, t, n = {}) { let { isNegative: r, device: i } = n; switch (t) { - case H.rem: + case G.rem: return e * 16 * (r ? -1 : 1); - case H.px: + case G.px: return e * (r ? -1 : 1); - case H.percent: + case G.percent: return `${r ? "-" : ""}${e}%`; - case H.none: + case G.none: return e * (r ? -1 : 1); - case H.vw: - return i != null && i.windowDimensions ? i.windowDimensions.width * (e / 100) : (Ce("`vw` CSS unit requires configuration with `useDeviceContext()`"), null); - case H.vh: - return i != null && i.windowDimensions ? i.windowDimensions.height * (e / 100) : (Ce("`vh` CSS unit requires configuration with `useDeviceContext()`"), null); + case G.vw: + return i != null && i.windowDimensions ? i.windowDimensions.width * (e / 100) : (Fe("`vw` CSS unit requires configuration with `useDeviceContext()`"), null); + case G.vh: + return i != null && i.windowDimensions ? i.windowDimensions.height * (e / 100) : (Fe("`vh` CSS unit requires configuration with `useDeviceContext()`"), null); default: return null; } } -function Co(e) { - let t = pe(e); +function wo(e) { + let t = fe(e); if (!t) return null; let [n, r] = t; switch (r) { - case H.rem: + case G.rem: return n * 16; - case H.px: + case G.px: return n; default: return null; } } -var Im = { t: "Top", tr: "TopRight", tl: "TopLeft", b: "Bottom", br: "BottomRight", bl: "BottomLeft", l: "Left", r: "Right", x: "Horizontal", y: "Vertical" }; -function _o(e) { - return Im[e ?? ""] || "All"; +var Am = { t: "Top", tr: "TopRight", tl: "TopLeft", b: "Bottom", br: "BottomRight", bl: "BottomLeft", l: "Left", r: "Right", x: "Horizontal", y: "Vertical" }; +function Eo(e) { + return Am[e ?? ""] || "All"; } -function So(e) { +function Co(e) { let t = "All"; - return [e.replace(/^-(t|b|r|l|tr|tl|br|bl)(-|$)/, (r, i) => (t = _o(i), "")), t]; + return [e.replace(/^-(t|b|r|l|tr|tl|br|bl)(-|$)/, (r, i) => (t = Eo(i), "")), t]; } -function dt(e, t = {}) { +function ft(e, t = {}) { if (e.includes("/")) { - let n = nl(e, { ...t, fractions: true }); + let n = Za(e, { ...t, fractions: true }); if (n) return n; } - return e[0] === "[" && (e = e.slice(1, -1)), nl(e, t); + return e[0] === "[" && (e = e.slice(1, -1)), Za(e, t); } -function Ie(e, t, n = {}) { - let r = dt(t, n); - return r === null ? null : g({ [e]: r }); +function Ae(e, t, n = {}) { + let r = ft(t, n); + return r === null ? null : D({ [e]: r }); } -function nl(e, t = {}) { +function Za(e, t = {}) { if (e === "px") return 1; - let n = pe(e, t); + let n = fe(e, t); if (!n) return null; let [r, i] = n; - return t.fractions && (i = H.percent, r *= 100), i === H.none && (r = r / 4, i = H.rem), nt(r, i, t); + return t.fractions && (i = G.percent, r *= 100), i === G.none && (r = r / 4, i = G.rem), et2(r, i, t); } -function Bm(...e) { +function Om(...e) { console.warn(...e); } -function Rm(...e) { +function Pm(...e) { } -var Ce = typeof process > "u" || ((Eo = process == null ? void 0 : process.env) === null || Eo === void 0 ? void 0 : Eo.JEST_WORKER_ID) === void 0 ? Bm : Rm; -var Lm = [["aspect-square", g({ aspectRatio: 1 })], ["aspect-video", g({ aspectRatio: 16 / 9 })], ["items-center", g({ alignItems: "center" })], ["items-start", g({ alignItems: "flex-start" })], ["items-end", g({ alignItems: "flex-end" })], ["items-baseline", g({ alignItems: "baseline" })], ["items-stretch", g({ alignItems: "stretch" })], ["justify-start", g({ justifyContent: "flex-start" })], ["justify-end", g({ justifyContent: "flex-end" })], ["justify-center", g({ justifyContent: "center" })], ["justify-between", g({ justifyContent: "space-between" })], ["justify-around", g({ justifyContent: "space-around" })], ["justify-evenly", g({ justifyContent: "space-evenly" })], ["content-start", g({ alignContent: "flex-start" })], ["content-end", g({ alignContent: "flex-end" })], ["content-between", g({ alignContent: "space-between" })], ["content-around", g({ alignContent: "space-around" })], ["content-stretch", g({ alignContent: "stretch" })], ["content-center", g({ alignContent: "center" })], ["self-auto", g({ alignSelf: "auto" })], ["self-start", g({ alignSelf: "flex-start" })], ["self-end", g({ alignSelf: "flex-end" })], ["self-center", g({ alignSelf: "center" })], ["self-stretch", g({ alignSelf: "stretch" })], ["self-baseline", g({ alignSelf: "baseline" })], ["direction-inherit", g({ direction: "inherit" })], ["direction-ltr", g({ direction: "ltr" })], ["direction-rtl", g({ direction: "rtl" })], ["hidden", g({ display: "none" })], ["flex", g({ display: "flex" })], ["flex-row", g({ flexDirection: "row" })], ["flex-row-reverse", g({ flexDirection: "row-reverse" })], ["flex-col", g({ flexDirection: "column" })], ["flex-col-reverse", g({ flexDirection: "column-reverse" })], ["flex-wrap", g({ flexWrap: "wrap" })], ["flex-wrap-reverse", g({ flexWrap: "wrap-reverse" })], ["flex-nowrap", g({ flexWrap: "nowrap" })], ["flex-auto", g({ flexGrow: 1, flexShrink: 1, flexBasis: "auto" })], ["flex-initial", g({ flexGrow: 0, flexShrink: 1, flexBasis: "auto" })], ["flex-none", g({ flexGrow: 0, flexShrink: 0, flexBasis: "auto" })], ["overflow-hidden", g({ overflow: "hidden" })], ["overflow-visible", g({ overflow: "visible" })], ["overflow-scroll", g({ overflow: "scroll" })], ["absolute", g({ position: "absolute" })], ["relative", g({ position: "relative" })], ["italic", g({ fontStyle: "italic" })], ["not-italic", g({ fontStyle: "normal" })], ["oldstyle-nums", wr("oldstyle-nums")], ["small-caps", wr("small-caps")], ["lining-nums", wr("lining-nums")], ["tabular-nums", wr("tabular-nums")], ["proportional-nums", wr("proportional-nums")], ["font-thin", g({ fontWeight: "100" })], ["font-100", g({ fontWeight: "100" })], ["font-extralight", g({ fontWeight: "200" })], ["font-200", g({ fontWeight: "200" })], ["font-light", g({ fontWeight: "300" })], ["font-300", g({ fontWeight: "300" })], ["font-normal", g({ fontWeight: "normal" })], ["font-400", g({ fontWeight: "400" })], ["font-medium", g({ fontWeight: "500" })], ["font-500", g({ fontWeight: "500" })], ["font-semibold", g({ fontWeight: "600" })], ["font-600", g({ fontWeight: "600" })], ["font-bold", g({ fontWeight: "bold" })], ["font-700", g({ fontWeight: "700" })], ["font-extrabold", g({ fontWeight: "800" })], ["font-800", g({ fontWeight: "800" })], ["font-black", g({ fontWeight: "900" })], ["font-900", g({ fontWeight: "900" })], ["include-font-padding", g({ includeFontPadding: true })], ["remove-font-padding", g({ includeFontPadding: false })], ["max-w-none", g({ maxWidth: "99999%" })], ["text-left", g({ textAlign: "left" })], ["text-center", g({ textAlign: "center" })], ["text-right", g({ textAlign: "right" })], ["text-justify", g({ textAlign: "justify" })], ["text-auto", g({ textAlign: "auto" })], ["underline", g({ textDecorationLine: "underline" })], ["line-through", g({ textDecorationLine: "line-through" })], ["no-underline", g({ textDecorationLine: "none" })], ["uppercase", g({ textTransform: "uppercase" })], ["lowercase", g({ textTransform: "lowercase" })], ["capitalize", g({ textTransform: "capitalize" })], ["normal-case", g({ textTransform: "none" })], ["w-auto", g({ width: "auto" })], ["h-auto", g({ height: "auto" })], ["shadow-sm", g({ shadowOffset: { width: 1, height: 1 }, shadowColor: "#000", shadowRadius: 1, shadowOpacity: 0.025, elevation: 1 })], ["shadow", g({ shadowOffset: { width: 1, height: 1 }, shadowColor: "#000", shadowRadius: 1, shadowOpacity: 0.075, elevation: 2 })], ["shadow-md", g({ shadowOffset: { width: 1, height: 1 }, shadowColor: "#000", shadowRadius: 3, shadowOpacity: 0.125, elevation: 3 })], ["shadow-lg", g({ shadowOffset: { width: 1, height: 1 }, shadowColor: "#000", shadowOpacity: 0.15, shadowRadius: 8, elevation: 8 })], ["shadow-xl", g({ shadowOffset: { width: 1, height: 1 }, shadowColor: "#000", shadowOpacity: 0.19, shadowRadius: 20, elevation: 12 })], ["shadow-2xl", g({ shadowOffset: { width: 1, height: 1 }, shadowColor: "#000", shadowOpacity: 0.25, shadowRadius: 30, elevation: 16 })], ["shadow-none", g({ shadowOffset: { width: 0, height: 0 }, shadowColor: "#000", shadowRadius: 0, shadowOpacity: 0, elevation: 0 })]]; -var ko = Lm; -function wr(e) { +var Fe = typeof process > "u" || ((Fo = process == null ? void 0 : process.env) === null || Fo === void 0 ? void 0 : Fo.JEST_WORKER_ID) === void 0 ? Om : Pm; +var Bm = [["aspect-square", D({ aspectRatio: 1 })], ["aspect-video", D({ aspectRatio: 16 / 9 })], ["items-center", D({ alignItems: "center" })], ["items-start", D({ alignItems: "flex-start" })], ["items-end", D({ alignItems: "flex-end" })], ["items-baseline", D({ alignItems: "baseline" })], ["items-stretch", D({ alignItems: "stretch" })], ["justify-start", D({ justifyContent: "flex-start" })], ["justify-end", D({ justifyContent: "flex-end" })], ["justify-center", D({ justifyContent: "center" })], ["justify-between", D({ justifyContent: "space-between" })], ["justify-around", D({ justifyContent: "space-around" })], ["justify-evenly", D({ justifyContent: "space-evenly" })], ["content-start", D({ alignContent: "flex-start" })], ["content-end", D({ alignContent: "flex-end" })], ["content-between", D({ alignContent: "space-between" })], ["content-around", D({ alignContent: "space-around" })], ["content-stretch", D({ alignContent: "stretch" })], ["content-center", D({ alignContent: "center" })], ["self-auto", D({ alignSelf: "auto" })], ["self-start", D({ alignSelf: "flex-start" })], ["self-end", D({ alignSelf: "flex-end" })], ["self-center", D({ alignSelf: "center" })], ["self-stretch", D({ alignSelf: "stretch" })], ["self-baseline", D({ alignSelf: "baseline" })], ["direction-inherit", D({ direction: "inherit" })], ["direction-ltr", D({ direction: "ltr" })], ["direction-rtl", D({ direction: "rtl" })], ["hidden", D({ display: "none" })], ["flex", D({ display: "flex" })], ["flex-row", D({ flexDirection: "row" })], ["flex-row-reverse", D({ flexDirection: "row-reverse" })], ["flex-col", D({ flexDirection: "column" })], ["flex-col-reverse", D({ flexDirection: "column-reverse" })], ["flex-wrap", D({ flexWrap: "wrap" })], ["flex-wrap-reverse", D({ flexWrap: "wrap-reverse" })], ["flex-nowrap", D({ flexWrap: "nowrap" })], ["flex-auto", D({ flexGrow: 1, flexShrink: 1, flexBasis: "auto" })], ["flex-initial", D({ flexGrow: 0, flexShrink: 1, flexBasis: "auto" })], ["flex-none", D({ flexGrow: 0, flexShrink: 0, flexBasis: "auto" })], ["overflow-hidden", D({ overflow: "hidden" })], ["overflow-visible", D({ overflow: "visible" })], ["overflow-scroll", D({ overflow: "scroll" })], ["absolute", D({ position: "absolute" })], ["relative", D({ position: "relative" })], ["italic", D({ fontStyle: "italic" })], ["not-italic", D({ fontStyle: "normal" })], ["oldstyle-nums", Fr("oldstyle-nums")], ["small-caps", Fr("small-caps")], ["lining-nums", Fr("lining-nums")], ["tabular-nums", Fr("tabular-nums")], ["proportional-nums", Fr("proportional-nums")], ["font-thin", D({ fontWeight: "100" })], ["font-100", D({ fontWeight: "100" })], ["font-extralight", D({ fontWeight: "200" })], ["font-200", D({ fontWeight: "200" })], ["font-light", D({ fontWeight: "300" })], ["font-300", D({ fontWeight: "300" })], ["font-normal", D({ fontWeight: "normal" })], ["font-400", D({ fontWeight: "400" })], ["font-medium", D({ fontWeight: "500" })], ["font-500", D({ fontWeight: "500" })], ["font-semibold", D({ fontWeight: "600" })], ["font-600", D({ fontWeight: "600" })], ["font-bold", D({ fontWeight: "bold" })], ["font-700", D({ fontWeight: "700" })], ["font-extrabold", D({ fontWeight: "800" })], ["font-800", D({ fontWeight: "800" })], ["font-black", D({ fontWeight: "900" })], ["font-900", D({ fontWeight: "900" })], ["include-font-padding", D({ includeFontPadding: true })], ["remove-font-padding", D({ includeFontPadding: false })], ["max-w-none", D({ maxWidth: "99999%" })], ["text-left", D({ textAlign: "left" })], ["text-center", D({ textAlign: "center" })], ["text-right", D({ textAlign: "right" })], ["text-justify", D({ textAlign: "justify" })], ["text-auto", D({ textAlign: "auto" })], ["underline", D({ textDecorationLine: "underline" })], ["line-through", D({ textDecorationLine: "line-through" })], ["no-underline", D({ textDecorationLine: "none" })], ["uppercase", D({ textTransform: "uppercase" })], ["lowercase", D({ textTransform: "lowercase" })], ["capitalize", D({ textTransform: "capitalize" })], ["normal-case", D({ textTransform: "none" })], ["w-auto", D({ width: "auto" })], ["h-auto", D({ height: "auto" })], ["shadow-sm", D({ shadowOffset: { width: 1, height: 1 }, shadowColor: "#000", shadowRadius: 1, shadowOpacity: 0.025, elevation: 1 })], ["shadow", D({ shadowOffset: { width: 1, height: 1 }, shadowColor: "#000", shadowRadius: 1, shadowOpacity: 0.075, elevation: 2 })], ["shadow-md", D({ shadowOffset: { width: 1, height: 1 }, shadowColor: "#000", shadowRadius: 3, shadowOpacity: 0.125, elevation: 3 })], ["shadow-lg", D({ shadowOffset: { width: 1, height: 1 }, shadowColor: "#000", shadowOpacity: 0.15, shadowRadius: 8, elevation: 8 })], ["shadow-xl", D({ shadowOffset: { width: 1, height: 1 }, shadowColor: "#000", shadowOpacity: 0.19, shadowRadius: 20, elevation: 12 })], ["shadow-2xl", D({ shadowOffset: { width: 1, height: 1 }, shadowColor: "#000", shadowOpacity: 0.25, shadowRadius: 30, elevation: 16 })], ["shadow-none", D({ shadowOffset: { width: 0, height: 0 }, shadowColor: "#000", shadowRadius: 0, shadowOpacity: 0, elevation: 0 })]]; +var _o = Bm; +function Fr(e) { return { kind: "dependent", complete(t) { (!t.fontVariant || !Array.isArray(t.fontVariant)) && (t.fontVariant = []), t.fontVariant.push(e); } }; } -var Er = class { +var wr = class { constructor(t) { - this.ir = new Map(ko), this.styles = /* @__PURE__ */ new Map(), this.prefixes = /* @__PURE__ */ new Map(), this.ir = new Map([...ko, ...t ?? []]); + this.ir = new Map(_o), this.styles = /* @__PURE__ */ new Map(), this.prefixes = /* @__PURE__ */ new Map(), this.ir = new Map([..._o, ...t ?? []]); } getStyle(t) { return this.styles.get(t); @@ -16623,47 +16525,43 @@ var Er = class { this.prefixes.set(t, n); } }; -c(); -c(); -function To(e, t, n = {}) { +function So(e, t, n = {}) { let r = t == null ? void 0 : t[e]; if (!r) - return Ie("fontSize", e, n); + return Ae("fontSize", e, n); if (typeof r == "string") - return Ve("fontSize", r); - let i = {}, [o, u] = r, s = il("fontSize", o); + return Ge("fontSize", r); + let i = {}, [o, u] = r, s = el("fontSize", o); if (s && (i = s), typeof u == "string") - return g(Dn("lineHeight", ol(u, i), i)); + return D(pn("lineHeight", tl(u, i), i)); let { lineHeight: a, letterSpacing: l } = u; - return a && Dn("lineHeight", ol(a, i), i), l && Dn("letterSpacing", l, i), g(i); + return a && pn("lineHeight", tl(a, i), i), l && pn("letterSpacing", l, i), D(i); } -function ol(e, t) { - let n = pe(e); +function tl(e, t) { + let n = fe(e); if (n) { let [r, i] = n; - if ((i === H.none || i === H.em) && typeof t.fontSize == "number") + if ((i === G.none || i === G.em) && typeof t.fontSize == "number") return t.fontSize * r; } return e; } -c(); -function Ao(e, t) { +function ko(e, t) { var n; - let r = (n = t == null ? void 0 : t[e]) !== null && n !== void 0 ? n : e.startsWith("[") ? e.slice(1, -1) : e, i = pe(r); + let r = (n = t == null ? void 0 : t[e]) !== null && n !== void 0 ? n : e.startsWith("[") ? e.slice(1, -1) : e, i = fe(r); if (!i) return null; let [o, u] = i; - if (u === H.none) + if (u === G.none) return { kind: "dependent", complete(a) { if (typeof a.fontSize != "number") return "relative line-height utilities require that font-size be set"; a.lineHeight = a.fontSize * o; } }; - let s = nt(o, u); - return s !== null ? g({ lineHeight: s }) : null; + let s = et2(o, u); + return s !== null ? D({ lineHeight: s }) : null; } -c(); -function Oo(e, t, n, r, i) { +function To(e, t, n, r, i) { let o = ""; if (r[0] === "[") o = r.slice(1, -1); @@ -16672,23 +16570,23 @@ function Oo(e, t, n, r, i) { if (l) o = l; else { - let f = dt(r); - return f && typeof f == "number" ? ul(f, H.px, t, e) : null; + let f = ft(r); + return f && typeof f == "number" ? rl(f, G.px, t, e) : null; } } if (o === "auto") - return sl(t, e, "auto"); - let u = pe(o); + return nl(t, e, "auto"); + let u = fe(o); if (!u) return null; let [s, a] = u; - return n && (s = -s), ul(s, a, t, e); + return n && (s = -s), rl(s, a, t, e); } -function ul(e, t, n, r) { - let i = nt(e, t); - return i === null ? null : sl(n, r, i); +function rl(e, t, n, r) { + let i = et2(e, t); + return i === null ? null : nl(n, r, i); } -function sl(e, t, n) { +function nl(e, t, n) { switch (e) { case "All": return { kind: "complete", style: { [`${t}Top`]: n, [`${t}Right`]: n, [`${t}Bottom`]: n, [`${t}Left`]: n } }; @@ -16705,15 +16603,14 @@ function sl(e, t, n) { return null; } } -c(); -function Po(e) { +function Ao(e) { if (!e) return {}; let t = Object.entries(e).reduce((i, [o, u]) => { - let s = [0, 1 / 0, 0], a = typeof u == "string" ? { min: u } : u, l = a.min ? Co(a.min) : 0; - l === null ? Ce(`invalid screen config value: ${o}->min: ${a.min}`) : s[0] = l; - let f = a.max ? Co(a.max) : 1 / 0; - return f === null ? Ce(`invalid screen config value: ${o}->max: ${a.max}`) : s[1] = f, i[o] = s, i; + let s = [0, 1 / 0, 0], a = typeof u == "string" ? { min: u } : u, l = a.min ? wo(a.min) : 0; + l === null ? Fe(`invalid screen config value: ${o}->min: ${a.min}`) : s[0] = l; + let f = a.max ? wo(a.max) : 1 / 0; + return f === null ? Fe(`invalid screen config value: ${o}->max: ${a.max}`) : s[1] = f, i[o] = s, i; }, {}), n = Object.values(t); n.sort((i, o) => { let [u, s] = i, [a, l] = o; @@ -16722,85 +16619,82 @@ function Po(e) { let r = 0; return n.forEach((i) => i[2] = r++), t; } -c(); -function Io(e, t) { +function Oo(e, t) { let n = t == null ? void 0 : t[e]; if (!n) return null; if (typeof n == "string") - return g({ fontFamily: n }); + return D({ fontFamily: n }); let r = n[0]; - return r ? g({ fontFamily: r }) : null; + return r ? D({ fontFamily: r }) : null; } -c(); -function pt(e, t, n) { +function ct(e, t, n) { if (!n) return null; let r; t.includes("/") && ([t = "", r] = t.split("/", 2)); let i = ""; - if (t.startsWith("[#") || t.startsWith("[rgb") ? i = t.slice(1, -1) : i = fl2(t, n), !i) + if (t.startsWith("[#") || t.startsWith("[rgb") ? i = t.slice(1, -1) : i = ul(t, n), !i) return null; if (r) { let o = Number(r); if (!Number.isNaN(o)) - return i = al(i, o / 100), g({ [gn[e].color]: i }); + return i = il(i, o / 100), D({ [hn[e].color]: i }); } return { kind: "dependent", complete(o) { - let u = gn[e].opacity, s = o[u]; - typeof s == "number" && (i = al(i, s)), o[gn[e].color] = i; + let u = hn[e].opacity, s = o[u]; + typeof s == "number" && (i = il(i, s)), o[hn[e].color] = i; } }; } -function Cr(e, t) { +function Er(e, t) { let n = parseInt(t, 10); if (Number.isNaN(n)) return null; - let r = n / 100, i = { [gn[e].opacity]: r }; - return { kind: "complete", style: i }; + let r = n / 100; + return { kind: "complete", style: { [hn[e].opacity]: r } }; } -function al(e, t) { - return e.startsWith("#") ? e = Mm(e) : e.startsWith("rgb(") && (e = e.replace(/^rgb\(/, "rgba(").replace(/\)$/, ", 1)")), e.replace(/, ?\d*\.?(\d+)\)$/, `, ${t})`); +function il(e, t) { + return e.startsWith("#") ? e = Im(e) : e.startsWith("rgb(") && (e = e.replace(/^rgb\(/, "rgba(").replace(/\)$/, ", 1)")), e.replace(/, ?\d*\.?(\d+)\)$/, `, ${t})`); } -function ll(e) { +function ol(e) { for (let t in e) t.startsWith("__opacity_") && delete e[t]; } -var gn = { bg: { opacity: "__opacity_bg", color: "backgroundColor" }, text: { opacity: "__opacity_text", color: "color" }, border: { opacity: "__opacity_border", color: "borderColor" }, borderTop: { opacity: "__opacity_border", color: "borderTopColor" }, borderBottom: { opacity: "__opacity_border", color: "borderBottomColor" }, borderLeft: { opacity: "__opacity_border", color: "borderLeftColor" }, borderRight: { opacity: "__opacity_border", color: "borderRightColor" }, shadow: { opacity: "__opacity_shadow", color: "shadowColor" }, tint: { opacity: "__opacity_tint", color: "tintColor" } }; -function Mm(e) { +var hn = { bg: { opacity: "__opacity_bg", color: "backgroundColor" }, text: { opacity: "__opacity_text", color: "color" }, border: { opacity: "__opacity_border", color: "borderColor" }, borderTop: { opacity: "__opacity_border", color: "borderTopColor" }, borderBottom: { opacity: "__opacity_border", color: "borderBottomColor" }, borderLeft: { opacity: "__opacity_border", color: "borderLeftColor" }, borderRight: { opacity: "__opacity_border", color: "borderRightColor" }, shadow: { opacity: "__opacity_shadow", color: "shadowColor" }, tint: { opacity: "__opacity_tint", color: "tintColor" } }; +function Im(e) { let t = e; - e = e.replace(Nm, (u, s, a, l) => s + s + a + a + l + l); - let n = $m.exec(e); + e = e.replace(Rm, (u, s, a, l) => s + s + a + a + l + l); + let n = Lm.exec(e); if (!n) - return Ce(`invalid config hex color value: ${t}`), "rgba(0, 0, 0, 1)"; + return Fe(`invalid config hex color value: ${t}`), "rgba(0, 0, 0, 1)"; let r = parseInt(n[1], 16), i = parseInt(n[2], 16), o = parseInt(n[3], 16); return `rgba(${r}, ${i}, ${o}, 1)`; } -function fl2(e, t) { +function ul(e, t) { let n = t[e]; - if (Fo(n)) + if (yo(n)) return n; - if (wo(n) && Fo(n.DEFAULT)) + if (xo(n) && yo(n.DEFAULT)) return n.DEFAULT; let [r = "", ...i] = e.split("-"); for (; r !== e; ) { let o = t[r]; - if (wo(o)) - return fl2(i.join("-"), o); + if (xo(o)) + return ul(i.join("-"), o); if (i.length === 0) return ""; r = `${r}-${i.shift()}`; } return ""; } -var Nm = /^#?([a-f\d])([a-f\d])([a-f\d])$/i; -var $m = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i; -c(); -function dl(e, t) { - let [n, r] = So(e); +var Rm = /^#?([a-f\d])([a-f\d])([a-f\d])$/i; +var Lm = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i; +function al(e, t) { + let [n, r] = Co(e); if (n.match(/^(-?(\d)+)?$/)) - return Wm(n, r, t == null ? void 0 : t.borderWidth); + return Mm(n, r, t == null ? void 0 : t.borderWidth); if (n = n.replace(/^-/, ""), ["dashed", "solid", "dotted"].includes(n)) - return g({ borderStyle: n }); + return D({ borderStyle: n }); let o = "border"; switch (r) { case "Bottom": @@ -16816,15 +16710,15 @@ function dl(e, t) { o = "borderRight"; break; } - let u = pt(o, n, t == null ? void 0 : t.borderColor); + let u = ct(o, n, t == null ? void 0 : t.borderColor); if (u) return u; let s = `border${r === "All" ? "" : r}Width`; n = n.replace(/^-/, ""); - let a = n.slice(1, -1), l = Ie(s, a); + let a = n.slice(1, -1), l = Ae(s, a); return typeof (l == null ? void 0 : l.style[s]) != "number" ? null : l; } -function Wm(e, t, n) { +function Mm(e, t, n) { if (!n) return null; e = e.replace(/^-/, ""); @@ -16832,20 +16726,20 @@ function Wm(e, t, n) { if (i === void 0) return null; let o = `border${t === "All" ? "" : t}Width`; - return Ve(o, i); + return Ge(o, i); } -function pl(e, t) { +function ll(e, t) { if (!t) return null; - let [n, r] = So(e); + let [n, r] = Co(e); n = n.replace(/^-/, ""), n === "" && (n = "DEFAULT"); let i = `border${r === "All" ? "" : r}Radius`, o = t[n]; if (o) - return cl(Ve(i, o)); - let u = Ie(i, n); - return typeof (u == null ? void 0 : u.style[i]) != "number" ? null : cl(u); + return sl(Ge(i, o)); + let u = Ae(i, n); + return typeof (u == null ? void 0 : u.style[i]) != "number" ? null : sl(u); } -function cl(e) { +function sl(e) { if ((e == null ? void 0 : e.kind) !== "complete") return e; let t = e.style.borderTopRadius; @@ -16857,84 +16751,80 @@ function cl(e) { let i = e.style.borderRightRadius; return i !== void 0 && (e.style.borderBottomRightRadius = i, e.style.borderTopRightRadius = i, delete e.style.borderRightRadius), e; } -c(); -function St(e, t, n, r) { +function Ct(e, t, n, r) { let i = null; e === "inset" && (t = t.replace(/^(x|y)-/, (s, a) => (i = a === "x" ? "x" : "y", ""))); let o = r == null ? void 0 : r[t]; if (o) { - let s = qe(o, { isNegative: n }); + let s = Me(o, { isNegative: n }); if (s !== null) - return hl(e, i, s); + return fl2(e, i, s); } - let u = dt(t, { isNegative: n }); - return u !== null ? hl(e, i, u) : null; + let u = ft(t, { isNegative: n }); + return u !== null ? fl2(e, i, u) : null; } -function hl(e, t, n) { +function fl2(e, t, n) { if (e !== "inset") - return g({ [e]: n }); + return D({ [e]: n }); switch (t) { case null: - return g({ top: n, left: n, right: n, bottom: n }); + return D({ top: n, left: n, right: n, bottom: n }); case "y": - return g({ top: n, bottom: n }); + return D({ top: n, bottom: n }); case "x": - return g({ left: n, right: n }); + return D({ left: n, right: n }); } } -c(); -function _r(e, t, n) { +function Cr(e, t, n) { var r; t = t.replace(/^-/, ""); let i = t === "" ? "DEFAULT" : t, o = Number((r = n == null ? void 0 : n[i]) !== null && r !== void 0 ? r : t); - return Number.isNaN(o) ? null : g({ [`flex${e}`]: o }); + return Number.isNaN(o) ? null : D({ [`flex${e}`]: o }); } -function ml(e, t) { +function cl(e, t) { var n, r; if (e = (t == null ? void 0 : t[e]) || e, ["min-content", "revert", "unset"].includes(e)) return null; if (e.match(/^\d+(\.\d+)?$/)) - return g({ flexGrow: Number(e), flexBasis: "0%" }); + return D({ flexGrow: Number(e), flexBasis: "0%" }); let i = e.match(/^(\d+)\s+(\d+)$/); if (i) - return g({ flexGrow: Number(i[1]), flexShrink: Number(i[2]) }); + return D({ flexGrow: Number(i[1]), flexShrink: Number(i[2]) }); if (i = e.match(/^(\d+)\s+([^ ]+)$/), i) { - let o = qe((n = i[2]) !== null && n !== void 0 ? n : ""); - return o ? g({ flexGrow: Number(i[1]), flexBasis: o }) : null; + let o = Me((n = i[2]) !== null && n !== void 0 ? n : ""); + return o ? D({ flexGrow: Number(i[1]), flexBasis: o }) : null; } if (i = e.match(/^(\d+)\s+(\d+)\s+(.+)$/), i) { - let o = qe((r = i[3]) !== null && r !== void 0 ? r : ""); - return o ? g({ flexGrow: Number(i[1]), flexShrink: Number(i[2]), flexBasis: o }) : null; + let o = Me((r = i[3]) !== null && r !== void 0 ? r : ""); + return o ? D({ flexGrow: Number(i[1]), flexShrink: Number(i[2]), flexBasis: o }) : null; } return null; } -c(); -function Bo(e, t, n = {}, r) { +function Po(e, t, n = {}, r) { let i = r == null ? void 0 : r[t]; - return i !== void 0 ? Ve(e, i, n) : Ie(e, t, n); + return i !== void 0 ? Ge(e, i, n) : Ae(e, t, n); } -function Sr(e, t, n = {}, r) { - let i = qe(r == null ? void 0 : r[t], n); - return i ? g({ [e]: i }) : (t === "screen" && (t = e.includes("Width") ? "100vw" : "100vh"), Ie(e, t, n)); +function _r(e, t, n = {}, r) { + let i = Me(r == null ? void 0 : r[t], n); + return i ? D({ [e]: i }) : (t === "screen" && (t = e.includes("Width") ? "100vw" : "100vh"), Ae(e, t, n)); } -c(); -function Dl(e, t, n) { +function dl(e, t, n) { let r = n == null ? void 0 : n[e]; if (r) { - let i = pe(r, { isNegative: t }); + let i = fe(r, { isNegative: t }); if (!i) return null; let [o, u] = i; - if (u === H.em) - return qm(o); - if (u === H.percent) - return Ce("percentage-based letter-spacing configuration currently unsupported, switch to `em`s, or open an issue if you'd like to see support added."), null; - let s = nt(o, u, { isNegative: t }); - return s !== null ? g({ letterSpacing: s }) : null; + if (u === G.em) + return Nm(o); + if (u === G.percent) + return Fe("percentage-based letter-spacing configuration currently unsupported, switch to `em`s, or open an issue if you'd like to see support added."), null; + let s = et2(o, u, { isNegative: t }); + return s !== null ? D({ letterSpacing: s }) : null; } - return Ie("letterSpacing", e, { isNegative: t }); + return Ae("letterSpacing", e, { isNegative: t }); } -function qm(e) { +function Nm(e) { return { kind: "dependent", complete(t) { let n = t.fontSize; if (typeof n != "number" || Number.isNaN(n)) @@ -16942,53 +16832,51 @@ function qm(e) { t.letterSpacing = Math.round((e * n + Number.EPSILON) * 100) / 100; } }; } -c(); -function gl(e, t) { +function pl(e, t) { let n = t == null ? void 0 : t[e]; if (n) { - let i = pe(String(n)); + let i = fe(String(n)); if (i) - return g({ opacity: i[0] }); + return D({ opacity: i[0] }); } - let r = pe(e); - return r ? g({ opacity: r[0] / 100 }) : null; + let r = fe(e); + return r ? D({ opacity: r[0] / 100 }) : null; } -c(); -function bl(e) { +function hl(e) { let t = parseInt(e, 10); return Number.isNaN(t) ? null : { kind: "complete", style: { shadowOpacity: t / 100 } }; } -function vl(e) { +function ml(e) { if (e.includes("/")) { - let [n = "", r = ""] = e.split("/", 2), i = Ro(n), o = Ro(r); + let [n = "", r = ""] = e.split("/", 2), i = Bo(n), o = Bo(r); return i === null || o === null ? null : { kind: "complete", style: { shadowOffset: { width: i, height: o } } }; } - let t = Ro(e); + let t = Bo(e); return t === null ? null : { kind: "complete", style: { shadowOffset: { width: t, height: t } } }; } -function Ro(e) { - let t = dt(e); +function Bo(e) { + let t = ft(e); return typeof t == "number" ? t : null; } -var kt = class { +var _t = class { constructor(t, n = {}, r, i, o) { - var u, s, a, l, f, d; + var u, s, a, l, f, c; this.config = n, this.cache = r, this.position = 0, this.isNull = false, this.isNegative = false, this.context = {}, this.context.device = i; - let h = t.trim().split(":"), m = []; - h.length === 1 ? this.string = t : (this.string = (u = h.pop()) !== null && u !== void 0 ? u : "", m = h), this.char = this.string[0]; - let p = Po((s = this.config.theme) === null || s === void 0 ? void 0 : s.screens); - for (let D of m) - if (p[D]) { - let F = (a = p[D]) === null || a === void 0 ? void 0 : a[2]; - F !== void 0 && (this.order = ((l = this.order) !== null && l !== void 0 ? l : 0) + F); - let b = (f = i.windowDimensions) === null || f === void 0 ? void 0 : f.width; - if (b) { - let [v, E] = (d = p[D]) !== null && d !== void 0 ? d : [0, 0]; - (b <= v || b > E) && (this.isNull = true); + let p = t.trim().split(":"), h = []; + p.length === 1 ? this.string = t : (this.string = (u = p.pop()) !== null && u !== void 0 ? u : "", h = p), this.char = this.string[0]; + let d = Ao((s = this.config.theme) === null || s === void 0 ? void 0 : s.screens); + for (let m of h) + if (d[m]) { + let v = (a = d[m]) === null || a === void 0 ? void 0 : a[2]; + v !== void 0 && (this.order = ((l = this.order) !== null && l !== void 0 ? l : 0) + v); + let g = (f = i.windowDimensions) === null || f === void 0 ? void 0 : f.width; + if (g) { + let [b, x] = (c = d[m]) !== null && c !== void 0 ? c : [0, 0]; + (g <= b || g > x) && (this.isNull = true); } else this.isNull = true; } else - tl(D) ? this.isNull = D !== o : rl(D) ? i.windowDimensions ? (i.windowDimensions.width > i.windowDimensions.height ? "landscape" : "portrait") !== D ? this.isNull = true : this.incrementOrder() : this.isNull = true : D === "retina" ? i.pixelDensity === 2 ? this.incrementOrder() : this.isNull = true : D === "dark" ? i.colorScheme !== "dark" ? this.isNull = true : this.incrementOrder() : this.handlePossibleArbitraryBreakpointPrefix(D) || (this.isNull = true); + Ka(m) ? this.isNull = m !== o : Ja(m) ? i.windowDimensions ? (i.windowDimensions.width > i.windowDimensions.height ? "landscape" : "portrait") !== m ? this.isNull = true : this.incrementOrder() : this.isNull = true : m === "retina" ? i.pixelDensity === 2 ? this.incrementOrder() : this.isNull = true : m === "dark" ? i.colorScheme !== "dark" ? this.isNull = true : this.incrementOrder() : this.handlePossibleArbitraryBreakpointPrefix(m) || (this.isNull = true); } parse() { if (this.isNull) @@ -17010,27 +16898,27 @@ var kt = class { if (a) { let l = this.char === "m" ? "margin" : "padding"; this.advance(((n = (t = a[0]) === null || t === void 0 ? void 0 : t.length) !== null && n !== void 0 ? n : 0) + 1); - let f = _o(a[1]), d = Oo(l, f, this.isNegative, this.rest, (r = this.config.theme) === null || r === void 0 ? void 0 : r[l]); - if (d) - return d; + let f = Eo(a[1]), c = To(l, f, this.isNegative, this.rest, (r = this.config.theme) === null || r === void 0 ? void 0 : r[l]); + if (c) + return c; } } } - if (this.consumePeeked("h-") && (s = Bo("height", this.rest, this.context, u == null ? void 0 : u.height), s) || this.consumePeeked("w-") && (s = Bo("width", this.rest, this.context, u == null ? void 0 : u.width), s) || this.consumePeeked("min-w-") && (s = Sr("minWidth", this.rest, this.context, u == null ? void 0 : u.minWidth), s) || this.consumePeeked("min-h-") && (s = Sr("minHeight", this.rest, this.context, u == null ? void 0 : u.minHeight), s) || this.consumePeeked("max-w-") && (s = Sr("maxWidth", this.rest, this.context, u == null ? void 0 : u.maxWidth), s) || this.consumePeeked("max-h-") && (s = Sr("maxHeight", this.rest, this.context, u == null ? void 0 : u.maxHeight), s) || this.consumePeeked("leading-") && (s = Ao(this.rest, u == null ? void 0 : u.lineHeight), s) || this.consumePeeked("text-") && (s = To(this.rest, u == null ? void 0 : u.fontSize, this.context), s || (s = pt("text", this.rest, u == null ? void 0 : u.textColor), s) || this.consumePeeked("opacity-") && (s = Cr("text", this.rest), s)) || this.consumePeeked("font-") && (s = Io(this.rest, u == null ? void 0 : u.fontFamily), s) || this.consumePeeked("aspect-") && (this.consumePeeked("ratio-") && Ce("`aspect-ratio-{ratio}` is deprecated, use `aspect-{ratio}` instead"), s = Ve("aspectRatio", this.rest, { fractions: true }), s) || this.consumePeeked("tint-") && (s = pt("tint", this.rest, u == null ? void 0 : u.colors), s) || this.consumePeeked("bg-") && (s = pt("bg", this.rest, u == null ? void 0 : u.backgroundColor), s || this.consumePeeked("opacity-") && (s = Cr("bg", this.rest), s)) || this.consumePeeked("border") && (s = dl(this.rest, u), s || this.consumePeeked("-opacity-") && (s = Cr("border", this.rest), s)) || this.consumePeeked("rounded") && (s = pl(this.rest, u == null ? void 0 : u.borderRadius), s) || this.consumePeeked("bottom-") && (s = St("bottom", this.rest, this.isNegative, u == null ? void 0 : u.inset), s) || this.consumePeeked("top-") && (s = St("top", this.rest, this.isNegative, u == null ? void 0 : u.inset), s) || this.consumePeeked("left-") && (s = St("left", this.rest, this.isNegative, u == null ? void 0 : u.inset), s) || this.consumePeeked("right-") && (s = St("right", this.rest, this.isNegative, u == null ? void 0 : u.inset), s) || this.consumePeeked("inset-") && (s = St("inset", this.rest, this.isNegative, u == null ? void 0 : u.inset), s) || this.consumePeeked("flex-") && (this.consumePeeked("grow") ? s = _r("Grow", this.rest, u == null ? void 0 : u.flexGrow) : this.consumePeeked("shrink") ? s = _r("Shrink", this.rest, u == null ? void 0 : u.flexShrink) : s = ml(this.rest, u == null ? void 0 : u.flex), s) || this.consumePeeked("grow") && (s = _r("Grow", this.rest, u == null ? void 0 : u.flexGrow), s) || this.consumePeeked("shrink") && (s = _r("Shrink", this.rest, u == null ? void 0 : u.flexShrink), s) || this.consumePeeked("shadow-color-opacity-") && (s = Cr("shadow", this.rest), s) || this.consumePeeked("shadow-opacity-") && (s = bl(this.rest), s) || this.consumePeeked("shadow-offset-") && (s = vl(this.rest), s) || this.consumePeeked("shadow-radius-") && (s = Ie("shadowRadius", this.rest), s) || this.consumePeeked("shadow-") && (s = pt("shadow", this.rest, u == null ? void 0 : u.colors), s)) + if (this.consumePeeked("h-") && (s = Po("height", this.rest, this.context, u == null ? void 0 : u.height), s) || this.consumePeeked("w-") && (s = Po("width", this.rest, this.context, u == null ? void 0 : u.width), s) || this.consumePeeked("min-w-") && (s = _r("minWidth", this.rest, this.context, u == null ? void 0 : u.minWidth), s) || this.consumePeeked("min-h-") && (s = _r("minHeight", this.rest, this.context, u == null ? void 0 : u.minHeight), s) || this.consumePeeked("max-w-") && (s = _r("maxWidth", this.rest, this.context, u == null ? void 0 : u.maxWidth), s) || this.consumePeeked("max-h-") && (s = _r("maxHeight", this.rest, this.context, u == null ? void 0 : u.maxHeight), s) || this.consumePeeked("leading-") && (s = ko(this.rest, u == null ? void 0 : u.lineHeight), s) || this.consumePeeked("text-") && (s = So(this.rest, u == null ? void 0 : u.fontSize, this.context), s || (s = ct("text", this.rest, u == null ? void 0 : u.textColor), s) || this.consumePeeked("opacity-") && (s = Er("text", this.rest), s)) || this.consumePeeked("font-") && (s = Oo(this.rest, u == null ? void 0 : u.fontFamily), s) || this.consumePeeked("aspect-") && (this.consumePeeked("ratio-") && Fe("`aspect-ratio-{ratio}` is deprecated, use `aspect-{ratio}` instead"), s = Ge("aspectRatio", this.rest, { fractions: true }), s) || this.consumePeeked("tint-") && (s = ct("tint", this.rest, u == null ? void 0 : u.colors), s) || this.consumePeeked("bg-") && (s = ct("bg", this.rest, u == null ? void 0 : u.backgroundColor), s || this.consumePeeked("opacity-") && (s = Er("bg", this.rest), s)) || this.consumePeeked("border") && (s = al(this.rest, u), s || this.consumePeeked("-opacity-") && (s = Er("border", this.rest), s)) || this.consumePeeked("rounded") && (s = ll(this.rest, u == null ? void 0 : u.borderRadius), s) || this.consumePeeked("bottom-") && (s = Ct("bottom", this.rest, this.isNegative, u == null ? void 0 : u.inset), s) || this.consumePeeked("top-") && (s = Ct("top", this.rest, this.isNegative, u == null ? void 0 : u.inset), s) || this.consumePeeked("left-") && (s = Ct("left", this.rest, this.isNegative, u == null ? void 0 : u.inset), s) || this.consumePeeked("right-") && (s = Ct("right", this.rest, this.isNegative, u == null ? void 0 : u.inset), s) || this.consumePeeked("inset-") && (s = Ct("inset", this.rest, this.isNegative, u == null ? void 0 : u.inset), s) || this.consumePeeked("flex-") && (this.consumePeeked("grow") ? s = Cr("Grow", this.rest, u == null ? void 0 : u.flexGrow) : this.consumePeeked("shrink") ? s = Cr("Shrink", this.rest, u == null ? void 0 : u.flexShrink) : s = cl(this.rest, u == null ? void 0 : u.flex), s) || this.consumePeeked("grow") && (s = Cr("Grow", this.rest, u == null ? void 0 : u.flexGrow), s) || this.consumePeeked("shrink") && (s = Cr("Shrink", this.rest, u == null ? void 0 : u.flexShrink), s) || this.consumePeeked("shadow-color-opacity-") && (s = Er("shadow", this.rest), s) || this.consumePeeked("shadow-opacity-") && (s = hl(this.rest), s) || this.consumePeeked("shadow-offset-") && (s = ml(this.rest), s) || this.consumePeeked("shadow-radius-") && (s = Ae("shadowRadius", this.rest), s) || this.consumePeeked("shadow-") && (s = ct("shadow", this.rest, u == null ? void 0 : u.colors), s)) return s; if (this.consumePeeked("elevation-")) { let a = parseInt(this.rest, 10); if (!Number.isNaN(a)) - return g({ elevation: a }); + return D({ elevation: a }); } - if (this.consumePeeked("opacity-") && (s = gl(this.rest, u == null ? void 0 : u.opacity), s) || this.consumePeeked("tracking-") && (s = Dl(this.rest, this.isNegative, u == null ? void 0 : u.letterSpacing), s)) + if (this.consumePeeked("opacity-") && (s = pl(this.rest, u == null ? void 0 : u.opacity), s) || this.consumePeeked("tracking-") && (s = dl(this.rest, this.isNegative, u == null ? void 0 : u.letterSpacing), s)) return s; if (this.consumePeeked("z-")) { let a = Number((o = (i = u == null ? void 0 : u.zIndex) === null || i === void 0 ? void 0 : i[this.rest]) !== null && o !== void 0 ? o : this.rest); if (!Number.isNaN(a)) - return g({ zIndex: a }); + return D({ zIndex: a }); } - return Ce(`\`${this.rest}\` unknown or invalid utility`), null; + return Fe(`\`${this.rest}\` unknown or invalid utility`), null; } handlePossibleArbitraryBreakpointPrefix(t) { var n; @@ -17041,11 +16929,11 @@ var kt = class { return false; if (!(!((n = this.context.device) === null || n === void 0) && n.windowDimensions)) return this.isNull = true, true; - let i = this.context.device.windowDimensions, [, o = "", u = "", s = ""] = r, a = u === "w" ? i.width : i.height, l = pe(s, this.context); + let i = this.context.device.windowDimensions, [, o = "", u = "", s = ""] = r, a = u === "w" ? i.width : i.height, l = fe(s, this.context); if (l === null) return this.isNull = true, true; - let [f, d] = l; - return d !== "px" && (this.isNull = true), (o === "min" ? a >= f : a <= f) ? this.incrementOrder() : this.isNull = true, true; + let [f, c] = l; + return c !== "px" && (this.isNull = true), (o === "min" ? a >= f : a <= f) ? this.incrementOrder() : this.isNull = true, true; } advance(t = 1) { this.position += t, this.char = this.string[this.position]; @@ -17067,180 +16955,178 @@ var kt = class { this.order = ((t = this.order) !== null && t !== void 0 ? t : 0) + 1; } }; -c(); -function yl(e) { +function Dl(e) { let t = [], n = null; return e.forEach((r) => { if (typeof r == "string") - t = [...t, ...Lo(r)]; + t = [...t, ...Io(r)]; else if (Array.isArray(r)) - t = [...t, ...r.flatMap(Lo)]; + t = [...t, ...r.flatMap(Io)]; else if (typeof r == "object" && r !== null) for (let [i, o] of Object.entries(r)) - typeof o == "boolean" ? t = [...t, ...o ? Lo(i) : []] : n ? n[i] = o : n = { [i]: o }; - }), [t.filter(Boolean).filter(Um), n]; + typeof o == "boolean" ? t = [...t, ...o ? Io(i) : []] : n ? n[i] = o : n = { [i]: o }; + }), [t.filter(Boolean).filter($m), n]; } -function Lo(e) { +function Io(e) { return e.trim().split(/\s+/); } -function Um(e, t, n) { +function $m(e, t, n) { return n.indexOf(e) === t; } -c(); -function xl(e) { +function gl(e) { var t; - return (t = e == null ? void 0 : e.reduce((n, r) => ({ ...n, ...zm(r.handler) }), {})) !== null && t !== void 0 ? t : {}; + return (t = e == null ? void 0 : e.reduce((n, r) => ({ ...n, ...Wm(r.handler) }), {})) !== null && t !== void 0 ? t : {}; } -function zm(e) { +function Wm(e) { let t = {}; return e({ addUtilities: (n) => { t = n; - }, ...Gm }), t; + }, ...qm }), t; } -function Ue(e) { +function Ne(e) { throw new Error(`tailwindcss plugin function argument object prop "${e}" not implemented`); } -var Gm = { addComponents: Ue, addBase: Ue, addVariant: Ue, e: Ue, prefix: Ue, theme: Ue, variants: Ue, config: Ue, corePlugins: Ue, matchUtilities: Ue, postcss: null }; -function wl(e, t) { - let n = (0, Fl.default)(jm(e)), r = {}, i = xl(n.plugins), o = {}, u = Object.entries(i).map(([p, D]) => typeof D == "string" ? (o[p] = D, [p, { kind: "null" }]) : [p, g(D)]).filter(([, p]) => p.kind !== "null"); +var qm = { addComponents: Ne, addBase: Ne, addVariant: Ne, e: Ne, prefix: Ne, theme: Ne, variants: Ne, config: Ne, corePlugins: Ne, matchUtilities: Ne, postcss: null }; +function vl(e, t) { + let n = (0, bl.default)(Um(e)), r = {}, i = gl(n.plugins), o = {}, u = Object.entries(i).map(([d, m]) => typeof m == "string" ? (o[d] = m, [d, { kind: "null" }]) : [d, D(m)]).filter(([, d]) => d.kind !== "null"); function s() { return [r.windowDimensions ? `w${r.windowDimensions.width}` : false, r.windowDimensions ? `h${r.windowDimensions.height}` : false, r.fontScale ? `fs${r.fontScale}` : false, r.colorScheme === "dark" ? "dark" : false, r.pixelDensity === 2 ? "retina" : false].filter(Boolean).join("--") || "default"; } let a = s(), l = {}; function f() { - let p = l[a]; - if (p) - return p; - let D = new Er(u); - return l[a] = D, D; - } - function d(...p) { - let D = f(), F = {}, b = [], v = [], [E, C] = yl(p), w = E.join(" "), O = D.getStyle(w); - if (O) - return { ...O, ...C || {} }; - for (let R of E) { - let L = D.getIr(R); - if (!L && R in o) { - let se = d(o[R]); - D.setIr(R, g(se)), F = { ...F, ...se }; + let d = l[a]; + if (d) + return d; + let m = new wr(u); + return l[a] = m, m; + } + function c(...d) { + let m = f(), v = {}, g = [], b = [], [x, F] = Dl(d), y = x.join(" "), k = m.getStyle(y); + if (k) + return { ...k, ...F || {} }; + for (let P of x) { + let B = m.getIr(P); + if (!B && P in o) { + let oe = c(o[P]); + m.setIr(P, D(oe)), v = { ...v, ...oe }; continue; } - switch (L = new kt(R, n, D, r, t).parse(), L.kind) { + switch (B = new _t(P, n, m, r, t).parse(), B.kind) { case "complete": - F = { ...F, ...L.style }, D.setIr(R, L); + v = { ...v, ...B.style }, m.setIr(P, B); break; case "dependent": - b.push(L); + g.push(B); break; case "ordered": - v.push(L); + b.push(B); break; case "null": - D.setIr(R, L); + m.setIr(P, B); break; } } - if (v.length > 0) { - v.sort((R, L) => R.order - L.order); - for (let R of v) - switch (R.styleIr.kind) { + if (b.length > 0) { + b.sort((P, B) => P.order - B.order); + for (let P of b) + switch (P.styleIr.kind) { case "complete": - F = { ...F, ...R.styleIr.style }; + v = { ...v, ...P.styleIr.style }; break; case "dependent": - b.push(R.styleIr); + g.push(P.styleIr); break; } } - if (b.length > 0) { - for (let R of b) { - let L = R.complete(F); - L && Ce(L); + if (g.length > 0) { + for (let P of g) { + let B = P.complete(v); + B && Fe(B); } - ll(F); + ol(v); } - return w !== "" && D.setStyle(w, F), C && (F = { ...F, ...C }), F; + return y !== "" && m.setStyle(y, v), F && (v = { ...v, ...F }), v; } - function h(p) { - let D = d(p.split(/\s+/g).map((F) => F.replace(/^(bg|text|border)-/, "")).map((F) => `bg-${F}`).join(" ")); - return typeof D.backgroundColor == "string" ? D.backgroundColor : void 0; + function p(d) { + let m = c(d.split(/\s+/g).map((v) => v.replace(/^(bg|text|border)-/, "")).map((v) => `bg-${v}`).join(" ")); + return typeof m.backgroundColor == "string" ? m.backgroundColor : void 0; } - let m = (p, ...D) => { - let F = ""; - return p.forEach((b, v) => { - var E; - F += b + ((E = D[v]) !== null && E !== void 0 ? E : ""); - }), d(F); + let h = (d, ...m) => { + let v = ""; + return d.forEach((g, b) => { + var x; + v += g + ((x = m[b]) !== null && x !== void 0 ? x : ""); + }), c(v); }; - return m.style = d, m.color = h, m.prefixMatch = (...p) => { - let D = p.sort().join(":"), F = f(), b = F.getPrefixMatch(D); - if (b !== void 0) - return b; - let C = new kt(`${D}:flex`, n, F, r, t).parse().kind !== "null"; - return F.setPrefixMatch(D, C), C; - }, m.setWindowDimensions = (p) => { - r.windowDimensions = p, a = s(); - }, m.setFontScale = (p) => { - r.fontScale = p, a = s(); - }, m.setPixelDensity = (p) => { - r.pixelDensity = p, a = s(); - }, m.setColorScheme = (p) => { - r.colorScheme = p, a = s(); - }, m; -} -function jm(e) { + return h.style = c, h.color = p, h.prefixMatch = (...d) => { + let m = d.sort().join(":"), v = f(), g = v.getPrefixMatch(m); + if (g !== void 0) + return g; + let F = new _t(`${m}:flex`, n, v, r, t).parse().kind !== "null"; + return v.setPrefixMatch(m, F), F; + }, h.setWindowDimensions = (d) => { + r.windowDimensions = d, a = s(); + }, h.setFontScale = (d) => { + r.fontScale = d, a = s(); + }, h.setPixelDensity = (d) => { + r.pixelDensity = d, a = s(); + }, h.setColorScheme = (d) => { + r.colorScheme = d, a = s(); + }, h; +} +function Um(e) { return { ...e, content: ["_no_warnings_please"] }; } -var Vm = { handler: ({ addUtilities: e }) => { +var Gm = { handler: ({ addUtilities: e }) => { e({ "shadow-sm": { boxShadow: "0 1px 2px 0 rgb(0 0 0 / 0.05)" }, shadow: { boxShadow: "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)" }, "shadow-md": { boxShadow: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)" }, "shadow-lg": { boxShadow: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)" }, "shadow-xl": { boxShadow: "0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)" }, "shadow-2xl": { boxShadow: "0 25px 50px -12px rgb(0 0 0 / 0.25)" }, "shadow-inner": { boxShadow: "inset 0 2px 4px 0 rgb(0 0 0 / 0.05)" }, "shadow-none": { boxShadow: "0 0 #0000" } }); } }; -function Ym(e) { - return wl({ ...e, plugins: [...(e == null ? void 0 : e.plugins) ?? [], Vm] }, "web"); +function jm(e) { + return vl({ ...e, plugins: [...(e == null ? void 0 : e.plugins) ?? [], Gm] }, "web"); } -var bn; -function Mo({ width: e, height: t, config: n }) { - return bn || (bn = Ym(n)), bn.setWindowDimensions({ width: +e, height: +t }), bn; +var mn; +function Ro({ width: e, height: t, config: n }) { + return mn || (mn = jm(n)), mn.setWindowDimensions({ width: +e, height: +t }), mn; } -var No = /* @__PURE__ */ new WeakMap(); -async function Cl(e, t) { - let n = await Ge(); +var Lo = /* @__PURE__ */ new WeakMap(); +async function xl(e, t) { + let n = await qe(); if (!n || !n.Node) throw new Error("Satori is not initialized: expect `yoga` to be loaded, got " + n); t.fonts = t.fonts || []; let r; - No.has(t.fonts) ? r = No.get(t.fonts) : No.set(t.fonts, r = new Ht(t.fonts)); + Lo.has(t.fonts) ? r = Lo.get(t.fonts) : Lo.set(t.fonts, r = new jt(t.fonts)); let i = "width" in t ? t.width : void 0, o = "height" in t ? t.height : void 0, u = n.Node.create(); i && u.setWidth(i), o && u.setHeight(o), u.setFlexDirection(n.FLEX_DIRECTION_ROW), u.setFlexWrap(n.WRAP_WRAP), u.setAlignContent(n.ALIGN_AUTO), u.setAlignItems(n.ALIGN_FLEX_START), u.setJustifyContent(n.JUSTIFY_FLEX_START), u.setOverflow(n.OVERFLOW_HIDDEN); let s = { ...t.graphemeImages }, a = /* @__PURE__ */ new Set(); - $e.clear(), await mu(e); - let l = jt(e, { id: "id", parentStyle: {}, inheritedStyle: { fontSize: 16, fontWeight: "normal", fontFamily: "serif", fontStyle: "normal", lineHeight: 1.2, color: "black", opacity: 1, whiteSpace: "normal", _viewportWidth: i, _viewportHeight: o }, parent: u, font: r, embedFont: t.embedFont, debug: t.debug, graphemeImages: s, canLoadAdditionalAssets: !!t.loadAdditionalAsset, onNodeDetected: t.onNodeDetected, getTwStyles: (p, D) => { - let b = { ...Mo({ width: i, height: o, config: t.tailwindConfig })([p]) }; - return typeof b.lineHeight == "number" && (b.lineHeight = b.lineHeight / (+b.fontSize || D.fontSize || 16)), b.shadowColor && b.boxShadow && (b.boxShadow = b.boxShadow.replace(/rgba?\([^)]+\)/, b.shadowColor)), b; + Re.clear(), await cu(e); + let l = Gt(e, { id: "id", parentStyle: {}, inheritedStyle: { fontSize: 16, fontWeight: "normal", fontFamily: "serif", fontStyle: "normal", lineHeight: 1.2, color: "black", opacity: 1, whiteSpace: "normal", _viewportWidth: i, _viewportHeight: o }, parent: u, font: r, embedFont: t.embedFont, debug: t.debug, graphemeImages: s, canLoadAdditionalAssets: !!t.loadAdditionalAsset, onNodeDetected: t.onNodeDetected, getTwStyles: (d, m) => { + let g = { ...Ro({ width: i, height: o, config: t.tailwindConfig })([d]) }; + return typeof g.lineHeight == "number" && (g.lineHeight = g.lineHeight / (+g.fontSize || m.fontSize || 16)), g.shadowColor && g.boxShadow && (g.boxShadow = g.boxShadow.replace(/rgba?\([^)]+\)/, g.shadowColor)), g; } }), f = (await l.next()).value; if (t.loadAdditionalAsset && f.length) { - let p = Xm(f), D = [], F = {}; - await Promise.all(Object.entries(p).flatMap(([b, v]) => v.map((E) => { - let C = `${b}_${E}`; - return a.has(C) ? null : (a.add(C), t.loadAdditionalAsset(b, E).then((w) => { - typeof w == "string" ? F[E] = w : w && (Array.isArray(w) ? D.push(...w) : D.push(w)); + let d = Hm(f), m = [], v = {}; + await Promise.all(Object.entries(d).flatMap(([g, b]) => b.map((x) => { + let F = `${g}_${x}`; + return a.has(F) ? null : (a.add(F), t.loadAdditionalAsset(g, x).then((y) => { + typeof y == "string" ? v[x] = y : y && (Array.isArray(y) ? m.push(...y) : m.push(y)); })); - }))), r.addFonts(D), Object.assign(s, F); + }))), r.addFonts(m), Object.assign(s, v); } await l.next(), u.calculateLayout(i, o, n.DIRECTION_LTR); - let d = (await l.next([0, 0])).value, h = u.getComputedWidth(), m = u.getComputedHeight(); - return u.freeRecursive(), Xn({ width: h, height: m, content: d }); + let c = (await l.next([0, 0])).value, p = u.getComputedWidth(), h = u.getComputedHeight(); + return u.freeRecursive(), Vn({ width: p, height: h, content: c }); } -function Xm(e) { +function Hm(e) { let t = {}, n = {}; for (let { word: r, locale: i } of e) { - let o = qu(r, i).join("|"); + let o = Mu(r, i).join("|"); n[o] = n[o] || "", n[o] += r; } return Object.keys(n).forEach((r) => { - t[r] = t[r] || [], r === "emoji" ? t[r].push(...El(Se(n[r], "grapheme"))) : (t[r][0] = t[r][0] || "", t[r][0] += El(Se(n[r], "grapheme", r === "unknown" ? void 0 : r)).join("")); + t[r] = t[r] || [], r === "emoji" ? t[r].push(...yl(we(n[r], "grapheme"))) : (t[r][0] = t[r][0] || "", t[r][0] += yl(we(n[r], "grapheme", r === "unknown" ? void 0 : r)).join("")); }), t; } -function El(e) { +function yl(e) { return Array.from(new Set(e)); } @@ -17314,15 +17200,15 @@ var WRAP_NO_WRAP = YGEnums.WRAP_NO_WRAP = 0; var WRAP_WRAP = YGEnums.WRAP_WRAP = 1; var WRAP_WRAP_REVERSE = YGEnums.WRAP_WRAP_REVERSE = 2; var wrapAsm = (E) => { - function _(E2, _2, T2) { + function _(E2, _2, T3) { let N2 = E2[_2]; E2[_2] = function(...E3) { - return T2.call(this, N2, ...E3); + return T3.call(this, N2, ...E3); }; } - for (let T2 of ["setPosition", "setMargin", "setFlexBasis", "setWidth", "setHeight", "setMinWidth", "setMinHeight", "setMaxWidth", "setMaxHeight", "setPadding"]) { - let N2 = { [YGEnums.UNIT_POINT]: E.Node.prototype[T2], [YGEnums.UNIT_PERCENT]: E.Node.prototype[`${T2}Percent`], [YGEnums.UNIT_AUTO]: E.Node.prototype[`${T2}Auto`] }; - _(E.Node.prototype, T2, function(E2, ..._2) { + for (let T3 of ["setPosition", "setMargin", "setFlexBasis", "setWidth", "setHeight", "setMinWidth", "setMinHeight", "setMaxWidth", "setMaxHeight", "setPadding"]) { + let N2 = { [YGEnums.UNIT_POINT]: E.Node.prototype[T3], [YGEnums.UNIT_PERCENT]: E.Node.prototype[`${T3}Percent`], [YGEnums.UNIT_AUTO]: E.Node.prototype[`${T3}Auto`] }; + _(E.Node.prototype, T3, function(E2, ..._2) { let I, L; let O = _2.pop(); if (O === "auto") @@ -17330,35 +17216,35 @@ var wrapAsm = (E) => { else if (typeof O == "object") I = O.unit, L = O.valueOf(); else if (I = typeof O == "string" && O.endsWith("%") ? YGEnums.UNIT_PERCENT : YGEnums.UNIT_POINT, L = parseFloat(O), !Number.isNaN(O) && Number.isNaN(L)) - throw Error(`Invalid value ${O} for ${T2}`); + throw Error(`Invalid value ${O} for ${T3}`); if (!N2[I]) - throw Error(`Failed to execute "${T2}": Unsupported unit '${O}'`); + throw Error(`Failed to execute "${T3}": Unsupported unit '${O}'`); return L !== void 0 ? N2[I].call(this, ..._2, L) : N2[I].call(this, ..._2); }); } - function T(_2) { + function T2(_2) { return E.MeasureCallback.implement({ measure: (...E2) => { - let { width: T2, height: N2 } = _2(...E2); - return { width: T2 ?? NaN, height: N2 ?? NaN }; + let { width: T3, height: N2 } = _2(...E2); + return { width: T3 ?? NaN, height: N2 ?? NaN }; } }); } function N(_2) { return E.DirtiedCallback.implement({ dirtied: _2 }); } return _(E.Node.prototype, "setMeasureFunc", function(E2, _2) { - return _2 ? E2.call(this, T(_2)) : this.unsetMeasureFunc(); + return _2 ? E2.call(this, T2(_2)) : this.unsetMeasureFunc(); }), _(E.Node.prototype, "setDirtiedFunc", function(E2, _2) { E2.call(this, N(_2)); }), _(E.Config.prototype, "free", function() { E.Config.destroy(this); - }), _(E.Node, "create", (_2, T2) => T2 ? E.Node.createWithConfig(T2) : E.Node.createDefault()), _(E.Node.prototype, "free", function() { + }), _(E.Node, "create", (_2, T3) => T3 ? E.Node.createWithConfig(T3) : E.Node.createDefault()), _(E.Node.prototype, "free", function() { E.Node.destroy(this); }), _(E.Node.prototype, "freeRecursive", function() { for (let E2 = 0, _2 = this.getChildCount(); E2 < _2; ++E2) this.getChild(0).freeRecursive(); this.free(); - }), _(E.Node.prototype, "calculateLayout", function(E2, _2 = NaN, T2 = NaN, N2 = YGEnums.DIRECTION_LTR) { - return E2.call(this, _2, T2, N2); + }), _(E.Node.prototype, "calculateLayout", function(E2, _2 = NaN, T3 = NaN, N2 = YGEnums.DIRECTION_LTR) { + return E2.call(this, _2, T3, N2); }), { Config: E.Config, Node: E.Node, ...YGEnums }; }; @@ -17367,13 +17253,13 @@ var yoga = (() => { var n = typeof document != "undefined" && document.currentScript ? document.currentScript.src : void 0; return function(t = {}) { u || (u = t !== void 0 ? t : {}), u.ready = new Promise(function(n2, t2) { - c2 = n2, f = t2; + c = n2, f = t2; }); var r, e, a = Object.assign({}, u), i = ""; typeof document != "undefined" && document.currentScript && (i = document.currentScript.src), n && (i = n), i = i.indexOf("blob:") !== 0 ? i.substr(0, i.replace(/[?#].*/, "").lastIndexOf("/") + 1) : ""; var o = console.log.bind(console), s = console.warn.bind(console); Object.assign(u, a), a = null, typeof WebAssembly != "object" && w("no native wasm support detected"); - var u, c2, f, l, h = false; + var u, c, f, l, h = false; function p(n2, t2, r2) { r2 = t2 + r2; for (var e2 = ""; !(t2 >= r2); ) { @@ -17395,9 +17281,9 @@ var yoga = (() => { } function v() { var n2 = l.buffer; - u.HEAP8 = d = new Int8Array(n2), u.HEAP16 = m = new Int16Array(n2), u.HEAP32 = g2 = new Int32Array(n2), u.HEAPU8 = y = new Uint8Array(n2), u.HEAPU16 = E = new Uint16Array(n2), u.HEAPU32 = _ = new Uint32Array(n2), u.HEAPF32 = T = new Float32Array(n2), u.HEAPF64 = L = new Float64Array(n2); + u.HEAP8 = d = new Int8Array(n2), u.HEAP16 = m = new Int16Array(n2), u.HEAP32 = g = new Int32Array(n2), u.HEAPU8 = y = new Uint8Array(n2), u.HEAPU16 = E = new Uint16Array(n2), u.HEAPU32 = _ = new Uint32Array(n2), u.HEAPF32 = T2 = new Float32Array(n2), u.HEAPF64 = L = new Float64Array(n2); } - var d, y, m, E, g2, _, T, L, A, O = [], P2 = [], b = [], N = 0, I = null; + var d, y, m, E, g, _, T2, L, A, O = [], P = [], b = [], N = 0, I = null; function w(n2) { throw s(n2 = "Aborted(" + n2 + ")"), h = true, f(n2 = new WebAssembly.RuntimeError(n2 + ". Build with -sASSERTIONS for more info.")), n2; } @@ -17411,7 +17297,7 @@ var yoga = (() => { w(n2); } } - function C(n2) { + function C2(n2) { for (; 0 < n2.length; ) n2.shift()(u); } @@ -17421,24 +17307,24 @@ var yoga = (() => { var t2 = (n2 = n2.replace(/[^a-zA-Z0-9_]/g, "$")).charCodeAt(0); return 48 <= t2 && 57 >= t2 ? "_" + n2 : n2; } - function U(n2, t2) { + function U2(n2, t2) { return n2 = W(n2), function() { return t2.apply(this, arguments); }; } r = "yoga.wasm", S() || (r = i + r); var M = [{}, { value: void 0 }, { value: null }, { value: true }, { value: false }], F = []; - function D(n2) { - var t2 = Error, r2 = U(n2, function(t3) { + function D2(n2) { + var t2 = Error, r2 = U2(n2, function(t3) { this.name = n2, this.message = t3, (t3 = Error(t3).stack) !== void 0 && (this.stack = this.toString() + "\n" + t3.replace(/^Error(:[^\n]*)?\n/, "")); }); return r2.prototype = Object.create(t2.prototype), r2.prototype.constructor = r2, r2.prototype.toString = function() { return this.message === void 0 ? this.name : this.name + ": " + this.message; }, r2; } - var k2 = void 0; + var k = void 0; function V(n2) { - throw new k2(n2); + throw new k(n2); } var j = (n2) => (n2 || V("Cannot use deleted val. handle = " + n2), M[n2].value), G2 = (n2) => { switch (n2) { @@ -17460,10 +17346,10 @@ var yoga = (() => { t2 += X[y[n2++]]; return t2; } - var H2 = []; + var H = []; function x() { - for (; H2.length; ) { - var n2 = H2.pop(); + for (; H.length; ) { + var n2 = H.pop(); n2.L.Z = false, n2.delete(); } } @@ -17484,8 +17370,8 @@ var yoga = (() => { } function Q() { } - var nn = false; - function nt2(n2) { + var nn2 = false; + function nt(n2) { --n2.count.value, n2.count.value === 0 && (n2.S ? n2.T.V(n2.S) : n2.O.M.V(n2.N)); } var nr = {}, ne = void 0; @@ -17496,13 +17382,13 @@ var yoga = (() => { return t2.O && t2.N || na2("makeClassHandle requires ptr and ptrType"), !!t2.T != !!t2.S && na2("Both smartPtrType and smartPtr must be specified"), t2.count = { value: 1 }, no2(Object.create(n2, { L: { value: t2 } })); } function no2(n2) { - return typeof FinalizationRegistry == "undefined" ? (no2 = (n3) => n3, n2) : (nn = new FinalizationRegistry((n3) => { - nt2(n3.L); + return typeof FinalizationRegistry == "undefined" ? (no2 = (n3) => n3, n2) : (nn2 = new FinalizationRegistry((n3) => { + nt(n3.L); }), no2 = (n3) => { var t2 = n3.L; - return t2.S && nn.register(n3, { L: t2 }, n3), n3; + return t2.S && nn2.register(n3, { L: t2 }, n3), n3; }, Q = (n3) => { - nn.unregister(n3); + nn2.unregister(n3); }, no2(n2)); } var ns = {}; @@ -17513,7 +17399,7 @@ var yoga = (() => { } } function nc(n2) { - return this.fromWireType(g2[n2 >> 2]); + return this.fromWireType(g[n2 >> 2]); } var nf2 = {}, nl2 = {}; function nh(n2, t2, r2) { @@ -17650,13 +17536,13 @@ var yoga = (() => { s2 = true; break; } - var u2 = t2[0].name !== "void", c3 = i2 - 2, f2 = Array(c3), l2 = [], h2 = []; + var u2 = t2[0].name !== "void", c2 = i2 - 2, f2 = Array(c2), l2 = [], h2 = []; return function() { - if (arguments.length !== c3 && V("function " + n2 + " called with " + arguments.length + " arguments, expected " + c3 + " args!"), h2.length = 0, l2.length = o2 ? 2 : 1, l2[0] = a2, o2) { + if (arguments.length !== c2 && V("function " + n2 + " called with " + arguments.length + " arguments, expected " + c2 + " args!"), h2.length = 0, l2.length = o2 ? 2 : 1, l2[0] = a2, o2) { var r3 = t2[1].toWireType(h2, this); l2[1] = r3; } - for (var i3 = 0; i3 < c3; ++i3) + for (var i3 = 0; i3 < c2; ++i3) f2[i3] = t2[i3 + 2].toWireType(h2, arguments[i3]), l2.push(f2[i3]); if (i3 = e2.apply(null, l2), s2) nu2(h2); @@ -17706,7 +17592,7 @@ var yoga = (() => { } function nF(n2, t2) { for (var r2 = 0, e2 = ""; !(r2 >= t2 / 4); ) { - var a2 = g2[n2 + 4 * r2 >> 2]; + var a2 = g[n2 + 4 * r2 >> 2]; if (a2 == 0) break; ++r2, 65536 <= a2 ? (a2 -= 65536, e2 += String.fromCharCode(55296 | a2 >> 10, 56320 | 1023 & a2)) : e2 += String.fromCharCode(a2); @@ -17720,10 +17606,10 @@ var yoga = (() => { r2 = e2 + r2 - 4; for (var a2 = 0; a2 < n2.length; ++a2) { var i2 = n2.charCodeAt(a2); - if (55296 <= i2 && 57343 >= i2 && (i2 = 65536 + ((1023 & i2) << 10) | 1023 & n2.charCodeAt(++a2)), g2[t2 >> 2] = i2, (t2 += 4) + 4 > r2) + if (55296 <= i2 && 57343 >= i2 && (i2 = 65536 + ((1023 & i2) << 10) | 1023 & n2.charCodeAt(++a2)), g[t2 >> 2] = i2, (t2 += 4) + 4 > r2) break; } - return g2[t2 >> 2] = 0, t2 - e2; + return g[t2 >> 2] = 0, t2 - e2; } function nk(n2) { for (var t2 = 0, r2 = 0; r2 < n2.length; ++r2) { @@ -17738,7 +17624,7 @@ var yoga = (() => { return t2 === void 0 ? B(n2) : t2; } var nG = [], nY = [], nX = [null, [], []]; - k2 = u.BindingError = D("BindingError"), u.count_emval_handles = function() { + k = u.BindingError = D2("BindingError"), u.count_emval_handles = function() { for (var n2 = 0, t2 = 5; t2 < M.length; ++t2) M[t2] !== void 0 && ++n2; return n2; @@ -17747,7 +17633,7 @@ var yoga = (() => { if (M[n2] !== void 0) return M[n2]; return null; - }, Y = u.PureVirtualError = D("PureVirtualError"); + }, Y = u.PureVirtualError = D2("PureVirtualError"); for (var nB = Array(256), nH = 0; 256 > nH; ++nH) nB[nH] = String.fromCharCode(nH); X = nB, u.getInheritedInstanceCount = function() { @@ -17758,8 +17644,8 @@ var yoga = (() => { $.hasOwnProperty(n2) && t2.push($[n2]); return t2; }, u.flushPendingDeletes = x, u.setDelayFunction = function(n2) { - z = n2, H2.length && z && z(x); - }, ne = u.InternalError = D("InternalError"), ny.prototype.isAliasOf = function(n2) { + z = n2, H.length && z && z(x); + }, ne = u.InternalError = D2("InternalError"), ny.prototype.isAliasOf = function(n2) { if (!(this instanceof ny && n2 instanceof ny)) return false; var t2 = this.L.O.M, r2 = this.L.N, e2 = n2.L.O.M; @@ -17774,11 +17660,11 @@ var yoga = (() => { var n2 = no2, t2 = Object, r2 = t2.create, e2 = Object.getPrototypeOf(this), a2 = this.L; return n2 = n2(r2.call(t2, e2, { L: { value: { count: a2.count, Z: a2.Z, $: a2.$, N: a2.N, O: a2.O, S: a2.S, T: a2.T } } })), n2.L.count.value += 1, n2.L.Z = false, n2; }, ny.prototype.delete = function() { - this.L.N || nd(this), this.L.Z && !this.L.$ && V("Object already scheduled for deletion"), Q(this), nt2(this.L), this.L.$ || (this.L.S = void 0, this.L.N = void 0); + this.L.N || nd(this), this.L.Z && !this.L.$ && V("Object already scheduled for deletion"), Q(this), nt(this.L), this.L.$ || (this.L.S = void 0, this.L.N = void 0); }, ny.prototype.isDeleted = function() { return !this.L.N; }, ny.prototype.deleteLater = function() { - return this.L.N || nd(this), this.L.Z && !this.L.$ && V("Object already scheduled for deletion"), H2.push(this), H2.length === 1 && z && z(x), this.L.Z = true, this; + return this.L.N || nd(this), this.L.Z && !this.L.$ && V("Object already scheduled for deletion"), H.push(this), H.length === 1 && z && z(x), this.L.Z = true, this; }, nA.prototype.pa = function(n2) { return this.ja && (n2 = this.ja(n2)), n2; }, nA.prototype.ga = function(n2) { @@ -17802,11 +17688,11 @@ var yoga = (() => { return r3 === e3 ? t3 : e3.P === void 0 ? null : (t3 = n3(t3, r3, e3.P)) === null ? null : e3.ma(t3); }(e2, this.M, a2.M); return i2 === null ? t2.call(this) : this.ca ? ni(a2.M.W, { O: a2, N: i2, T: this, S: n2 }) : ni(a2.M.W, { O: a2, N: i2 }); - }, nN = u.UnboundTypeError = D("UnboundTypeError"); + }, nN = u.UnboundTypeError = D2("UnboundTypeError"); var nx = { q: function(n2, t2, r2) { n2 = B(n2), t2 = K(t2, "wrapper"), r2 = j(r2); var e2 = [].slice, a2 = t2.M, i2 = a2.W, o2 = a2.P.W, s2 = a2.P.constructor; - for (var u2 in n2 = U(n2, function() { + for (var u2 in n2 = U2(n2, function() { a2.P.ia.forEach(function(n3) { if (this[n3] === o2[n3]) throw new Y("Pure virtual function " + n3 + " must be implemented in JavaScript"); @@ -17831,10 +17717,10 @@ var yoga = (() => { nh([n2], a2.map((n3) => n3.sa).concat(a2.map((n3) => n3.ya)), (n3) => { var i2 = {}; return a2.forEach((t3, r3) => { - var e3 = n3[r3], o2 = t3.qa, s2 = t3.ra, u2 = n3[r3 + a2.length], c3 = t3.xa, f2 = t3.za; + var e3 = n3[r3], o2 = t3.qa, s2 = t3.ra, u2 = n3[r3 + a2.length], c2 = t3.xa, f2 = t3.za; i2[t3.na] = { read: (n4) => e3.fromWireType(o2(s2, n4)), write: (n4, t4) => { var r4 = []; - c3(f2, n4, u2.toWireType(r4, t4)), nu2(r4); + c2(f2, n4, u2.toWireType(r4, t4)), nu2(r4); } }; }), [{ name: t2.name, fromWireType: function(n4) { var t3, r3 = {}; @@ -17864,13 +17750,13 @@ var yoga = (() => { else if (r2 === 2) e3 = m; else if (r2 === 4) - e3 = g2; + e3 = g; else throw TypeError("Unknown boolean type size: " + t2); return this.fromWireType(e3[n3 >> i2]); }, U: null }); - }, h: function(n2, t2, r2, e2, a2, i2, o2, s2, c3, f2, l2, h2, p2) { - l2 = B(l2), i2 = nb(a2, i2), s2 && (s2 = nb(o2, s2)), f2 && (f2 = nb(c3, f2)), p2 = nb(h2, p2); + }, h: function(n2, t2, r2, e2, a2, i2, o2, s2, c2, f2, l2, h2, p2) { + l2 = B(l2), i2 = nb(a2, i2), s2 && (s2 = nb(o2, s2)), f2 && (f2 = nb(c2, f2)), p2 = nb(h2, p2); var v2, d2 = W(l2); v2 = function() { nI("Cannot construct " + l2 + " due to unbound types", [e2]); @@ -17879,19 +17765,19 @@ var yoga = (() => { var r3, a3 = t3.M, o3 = a3.W; else o3 = ny.prototype; - t3 = U(d2, function() { - if (Object.getPrototypeOf(this) !== c4) - throw new k2("Use 'new' to construct " + l2); + t3 = U2(d2, function() { + if (Object.getPrototypeOf(this) !== c3) + throw new k("Use 'new' to construct " + l2); if (h3.X === void 0) - throw new k2(l2 + " has no accessible constructor"); + throw new k(l2 + " has no accessible constructor"); var n3 = h3.X[arguments.length]; if (n3 === void 0) - throw new k2("Tried to invoke ctor of " + l2 + " with invalid number of parameters (" + arguments.length + ") - expected (" + Object.keys(h3.X).toString() + ") parameters instead!"); + throw new k("Tried to invoke ctor of " + l2 + " with invalid number of parameters (" + arguments.length + ") - expected (" + Object.keys(h3.X).toString() + ") parameters instead!"); return n3.apply(this, arguments); }); - var c4 = Object.create(o3, { constructor: { value: t3 } }); - t3.prototype = c4; - var h3 = new nE(l2, t3, c4, p2, a3, i2, s2, f2); + var c3 = Object.create(o3, { constructor: { value: t3 } }); + t3.prototype = c3; + var h3 = new nE(l2, t3, c3, p2, a3, i2, s2, f2); a3 = new nA(l2, h3, true, false), o3 = new nA(l2 + "*", h3, false, false); var v3 = new nA(l2 + " const*", h3, false, true); return nr[n2] = { pointerType: o3, ka: v3 }, r3 = t3, u.hasOwnProperty(d2) || na2("Replacing nonexistant public symbol"), u[d2] = r3, u[d2].Y = void 0, [a3, o3, v3]; @@ -17915,7 +17801,7 @@ var yoga = (() => { a2 = nb(e2, a2), nh([], [n2], function(n3) { var r3 = "constructor " + (n3 = n3[0]).name; if (n3.M.X === void 0 && (n3.M.X = []), n3.M.X[t2 - 1] !== void 0) - throw new k2("Cannot register multiple constructors with identical number of parameters (" + (t2 - 1) + ") for class '" + n3.name + "'! Overload resolution is currently only performed using the parameter count, not actual type info!"); + throw new k("Cannot register multiple constructors with identical number of parameters (" + (t2 - 1) + ") for class '" + n3.name + "'! Overload resolution is currently only performed using the parameter count, not actual type info!"); return n3.M.X[t2 - 1] = () => { nI("Cannot construct " + n3.name + " due to unbound types", o2); }, nh([], o2, function(e3) { @@ -17930,9 +17816,9 @@ var yoga = (() => { } var a3 = (n3 = n3[0]).name + "." + t2; t2.startsWith("@@") && (t2 = Symbol[t2.substring(2)]), s2 && n3.M.ia.push(t2); - var c3 = n3.M.W, f2 = c3[t2]; - return f2 === void 0 || f2.R === void 0 && f2.className !== n3.name && f2.Y === r2 - 2 ? (e3.Y = r2 - 2, e3.className = n3.name, c3[t2] = e3) : (nm(c3, t2, a3), c3[t2].R[r2 - 2] = e3), nh([], u2, function(e4) { - return e4 = nw(a3, e4, n3, i2, o2), c3[t2].R === void 0 ? (e4.Y = r2 - 2, c3[t2] = e4) : c3[t2].R[r2 - 2] = e4, []; + var c2 = n3.M.W, f2 = c2[t2]; + return f2 === void 0 || f2.R === void 0 && f2.className !== n3.name && f2.Y === r2 - 2 ? (e3.Y = r2 - 2, e3.className = n3.name, c2[t2] = e3) : (nm(c2, t2, a3), c2[t2].R[r2 - 2] = e3), nh([], u2, function(e4) { + return e4 = nw(a3, e4, n3, i2, o2), c2[t2].R === void 0 ? (e4.Y = r2 - 2, c2[t2] = e4) : c2[t2].R[r2 - 2] = e4, []; }), []; }); }, A: function(n2, t2) { @@ -17951,7 +17837,7 @@ var yoga = (() => { switch (t3) { case 2: return function(n4) { - return this.fromWireType(T[n4 >> 2]); + return this.fromWireType(T2[n4 >> 2]); }; case 3: return function(n4) { @@ -17988,7 +17874,7 @@ var yoga = (() => { }; case 2: return r3 ? function(n4) { - return g2[n4 >> 2]; + return g[n4 >> 2]; } : function(n4) { return _[n4 >> 2]; }; @@ -18084,9 +17970,9 @@ var yoga = (() => { else t2 === 4 && (e2 = nF, a2 = nD, i2 = nk, o2 = () => _, s2 = 2); nv(n2, { name: r2, fromWireType: function(n3) { - for (var r3, a3 = _[n3 >> 2], i3 = o2(), u2 = n3 + 4, c3 = 0; c3 <= a3; ++c3) { - var f2 = n3 + 4 + c3 * t2; - (c3 == a3 || i3[f2 >> s2] == 0) && (u2 = e2(u2, f2 - u2), r3 === void 0 ? r3 = u2 : r3 += "\0" + u2, u2 = f2 + t2); + for (var r3, a3 = _[n3 >> 2], i3 = o2(), u2 = n3 + 4, c2 = 0; c2 <= a3; ++c2) { + var f2 = n3 + 4 + c2 * t2; + (c2 == a3 || i3[f2 >> s2] == 0) && (u2 = e2(u2, f2 - u2), r3 === void 0 ? r3 = u2 : r3 += "\0" + u2, u2 = f2 + t2); } return nZ(n3), r3; }, toWireType: function(n3, e3) { @@ -18098,8 +17984,8 @@ var yoga = (() => { } }); }, m: function(n2, t2, r2, e2, a2, i2) { ns[n2] = { name: B(t2), ea: nb(r2, e2), V: nb(a2, i2), ha: [] }; - }, c: function(n2, t2, r2, e2, a2, i2, o2, s2, u2, c3) { - ns[n2].ha.push({ na: B(t2), sa: r2, qa: nb(e2, a2), ra: i2, ya: o2, xa: nb(s2, u2), za: c3 }); + }, c: function(n2, t2, r2, e2, a2, i2, o2, s2, u2, c2) { + ns[n2].ha.push({ na: B(t2), sa: r2, qa: nb(e2, a2), ra: i2, ya: o2, xa: nb(s2, u2), za: c2 }); }, C: function(n2, t2) { nv(n2, { ua: true, name: t2 = B(t2), argPackAdvance: 0, fromWireType: function() { }, toWireType: function() { @@ -18122,10 +18008,10 @@ var yoga = (() => { return o2; var s2 = Array(n2 - 1); return r2 = (t3, r3, e3, o3) => { - for (var u2 = 0, c3 = 0; c3 < n2 - 1; ++c3) - s2[c3] = a2[c3 + 1].readValueFromPointer(o3 + u2), u2 += a2[c3 + 1].argPackAdvance; - for (c3 = 0, t3 = t3[r3].apply(t3, s2); c3 < n2 - 1; ++c3) - a2[c3 + 1].la && a2[c3 + 1].la(s2[c3]); + for (var u2 = 0, c2 = 0; c2 < n2 - 1; ++c2) + s2[c2] = a2[c2 + 1].readValueFromPointer(o3 + u2), u2 += a2[c2 + 1].argPackAdvance; + for (c2 = 0, t3 = t3[r3].apply(t3, s2); c2 < n2 - 1; ++c2) + a2[c2 + 1].la && a2[c2 + 1].la(s2[c2]); if (!i2.ua) return i2.toWireType(e3, t3); }, e2 = nG.length, nG.push(r2), o2 = e2, nY[t2] = o2; @@ -18166,19 +18052,19 @@ var yoga = (() => { return 70; }, y: function(n2, t2, r2, e2) { for (var a2 = 0, i2 = 0; i2 < r2; i2++) { - var u2 = _[t2 >> 2], c3 = _[t2 + 4 >> 2]; + var u2 = _[t2 >> 2], c2 = _[t2 + 4 >> 2]; t2 += 8; - for (var f2 = 0; f2 < c3; f2++) { + for (var f2 = 0; f2 < c2; f2++) { var l2 = y[u2 + f2], h2 = nX[n2]; l2 === 0 || l2 === 10 ? ((n2 === 1 ? o : s)(p(h2, 0)), h2.length = 0) : h2.push(l2); } - a2 += c3; + a2 += c2; } return _[e2 >> 2] = a2, 0; } }; !function() { function n2(n3) { - u.asm = n3.exports, l = u.asm.D, v(), A = u.asm.I, P2.unshift(u.asm.E), --N == 0 && I && (n3 = I, I = null, n3()); + u.asm = n3.exports, l = u.asm.D, v(), A = u.asm.I, P.unshift(u.asm.E), --N == 0 && I && (n3 = I, I = null, n3()); } function t2(t3) { n2(t3.instance); @@ -18223,7 +18109,7 @@ var yoga = (() => { return (nZ = u.asm.J).apply(null, arguments); } function nJ() { - 0 < N || (C(O), 0 < N || e || (e = true, u.calledRun = true, h || (C(P2), c2(u), C(b)))); + 0 < N || (C2(O), 0 < N || e || (e = true, u.calledRun = true, h || (C2(P), c(u), C2(b)))); } return u.__embind_initialize_bindings = function() { return (u.__embind_initialize_bindings = u.asm.G).apply(null, arguments); @@ -18685,16 +18571,16 @@ function getIconCode(char) { return toCodePoint(char.indexOf(U200D) < 0 ? char.replace(UFE0Fg, "") : char); } function toCodePoint(unicodeSurrogates) { - var r = [], c2 = 0, p = 0, i = 0; + var r = [], c = 0, p = 0, i = 0; while (i < unicodeSurrogates.length) { - c2 = unicodeSurrogates.charCodeAt(i++); + c = unicodeSurrogates.charCodeAt(i++); if (p) { - r.push((65536 + (p - 55296 << 10) + (c2 - 56320)).toString(16)); + r.push((65536 + (p - 55296 << 10) + (c - 56320)).toString(16)); p = 0; - } else if (55296 <= c2 && c2 <= 56319) { - p = c2; + } else if (55296 <= c && c <= 56319) { + p = c; } else { - r.push(c2.toString(16)); + r.push(c.toString(16)); } } return r.join("-"); @@ -18718,7 +18604,86 @@ function loadEmoji(code, type) { return fetch(`${api}${code.toUpperCase()}.svg`); } -// src/og.ts +// src/language/index.ts +var FontDetector = class { + constructor() { + this.rangesByLang = {}; + } + async detect(text, fonts) { + await this.load(fonts); + const result = {}; + for (const segment of text) { + const lang = this.detectSegment(segment, fonts); + if (lang) { + result[lang] = result[lang] || ""; + result[lang] += segment; + } + } + return result; + } + detectSegment(segment, fonts) { + for (const font of fonts) { + const range = this.rangesByLang[font]; + if (range && checkSegmentInRange(segment, range)) { + return font; + } + } + return null; + } + async load(fonts) { + let params = ""; + const existingLang = Object.keys(this.rangesByLang); + const langNeedsToLoad = fonts.filter((font) => !existingLang.includes(font)); + if (langNeedsToLoad.length === 0) { + return; + } + for (const font of langNeedsToLoad) { + params += `family=${font}&`; + } + params += "display=swap"; + const API = `https://fonts.googleapis.com/css2?${params}`; + const fontFace = await (await fetch(API, { + headers: { + "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36" + } + })).text(); + this.addDetectors(fontFace); + } + addDetectors(input) { + const regex = /font-family:\s*'(.+?)';.+?unicode-range:\s*(.+?);/gms; + const matches = input.matchAll(regex); + for (const [, _lang, range] of matches) { + const lang = _lang.replaceAll(" ", "+"); + if (!this.rangesByLang[lang]) { + this.rangesByLang[lang] = []; + } + this.rangesByLang[lang].push(...convert(range)); + } + } +}; +function convert(input) { + return input.split(", ").map((range) => { + range = range.replaceAll("U+", ""); + const [start, end] = range.split("-").map((hex) => parseInt(hex, 16)); + if (isNaN(end)) { + return start; + } + return [start, end]; + }); +} +function checkSegmentInRange(segment, range) { + const codePoint = segment.codePointAt(0); + if (!codePoint) + return false; + return range.some((val) => { + if (typeof val === "number") { + return codePoint === val; + } else { + const [start, end] = val; + return start <= codePoint && codePoint <= end; + } + }); +} var languageFontMap = { "ja-JP": "Noto+Sans+JP", "ko-KR": "Noto+Sans+KR", @@ -18738,6 +18703,8 @@ var languageFontMap = { math: "Noto+Sans+Math", unknown: "Noto+Sans" }; + +// src/og.ts async function loadGoogleFont(font, text) { if (!font || !text) return; @@ -18749,27 +18716,35 @@ async function loadGoogleFont(font, text) { })).text(); const resource = css.match(/src: url\((.+)\) format\('(opentype|truetype)'\)/); if (!resource) - throw new Error("Failed to load font"); - return fetch(resource[1]).then((res) => res.arrayBuffer()); + throw new Error("Failed to download dynamic font"); + const res = await fetch(resource[1]); + if (!res.ok) { + throw new Error("Failed to download dynamic font. Status: " + res.status); + } + return res.arrayBuffer(); } +var detector = new FontDetector(); var assetCache = /* @__PURE__ */ new Map(); var loadDynamicAsset = ({ emoji }) => { const fn = async (code, text) => { if (code === "emoji") { return `data:image/svg+xml;base64,` + btoa(await (await loadEmoji(getIconCode(text), emoji)).text()); } - if (!languageFontMap[code]) - code = "unknown"; + const codes = code.split("|"); + const names = codes.map((code2) => languageFontMap[code2]).filter(Boolean).flat(); + if (names.length === 0) + return []; try { - const data = await loadGoogleFont(languageFontMap[code], text); - if (data) { - return { - name: `satori_${code}_fallback_${text}`, - data, - weight: 400, - style: "normal" - }; - } + const textByFont = await detector.detect(text, names); + const fonts = Object.keys(textByFont); + const fontData2 = await Promise.all(fonts.map((font) => loadGoogleFont(font, textByFont[font]))); + return fontData2.map((data, index) => ({ + name: `satori_${codes[index]}_fallback_${text}`, + data, + weight: 400, + style: "normal", + lang: codes[index] === "unknown" ? void 0 : codes[index] + })); } catch (e) { console.error("Failed to load dynamic font for", text, ". Error:", e); } @@ -18809,12 +18784,12 @@ async function render(satori2, resvg, opts, defaultFonts, element) { } // src/index.node.ts -var satori = Cl.default || Cl; +var satori = xl.default || xl; var fontData = fs.readFileSync(fileURLToPath(join(import.meta.url, "../noto-sans-v27-latin-regular.ttf"))); var yoga_wasm = fs.readFileSync(fileURLToPath(join(import.meta.url, "../yoga.wasm"))); var resvg_wasm = fs.readFileSync(fileURLToPath(join(import.meta.url, "../resvg.wasm"))); var initializedResvg = initWasm(resvg_wasm); -var initializedYoga = initYoga(yoga_wasm).then((yoga2) => Ll(yoga2)); +var initializedYoga = initYoga(yoga_wasm).then((yoga2) => Bl(yoga2)); var ImageResponse = class { constructor(element, options = {}) { if (typeof Response === "undefined" || typeof ReadableStream === "undefined") { diff --git a/packages/next/src/compiled/@vercel/og/language/index.d.ts b/packages/next/src/compiled/@vercel/og/language/index.d.ts new file mode 100644 index 0000000000000..0bfd4d76cde83 --- /dev/null +++ b/packages/next/src/compiled/@vercel/og/language/index.d.ts @@ -0,0 +1,28 @@ +export declare class FontDetector { + private rangesByLang; + detect(text: string, fonts: string[]): Promise<{ + [lang: string]: string; + }>; + private detectSegment; + private load; + private addDetectors; +} +export declare const languageFontMap: { + 'ja-JP': string; + 'ko-KR': string; + 'zh-CN': string; + 'zh-TW': string; + 'zh-HK': string; + 'th-TH': string; + 'bn-IN': string; + 'ar-AR': string; + 'ta-IN': string; + 'ml-IN': string; + 'he-IL': string; + 'te-IN': string; + devanagari: string; + kannada: string; + symbol: string[]; + math: string; + unknown: string; +}; diff --git a/packages/next/src/compiled/@vercel/og/satori/index.d.ts b/packages/next/src/compiled/@vercel/og/satori/index.d.ts index 8f6882c5cfe04..026e1b3c520b2 100644 --- a/packages/next/src/compiled/@vercel/og/satori/index.d.ts +++ b/packages/next/src/compiled/@vercel/og/satori/index.d.ts @@ -17,14 +17,14 @@ declare const code: { readonly devanagari: RegExp; readonly kannada: RegExp; }; -declare type Locale = keyof typeof code; +type Locale = keyof typeof code; /** * This class handles everything related to fonts. */ -declare type Weight = 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900; -declare type Style$1 = 'normal' | 'italic'; +type Weight = 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900; +type Style$1 = 'normal' | 'italic'; interface FontOptions { data: Buffer | ArrayBuffer; name: string; @@ -151,7 +151,7 @@ interface SatoriNode { declare function init(yoga: Yoga): void; -declare type SatoriOptions = ({ +type SatoriOptions = ({ width: number; height: number; } | { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4c505e81fac7f..155c1f5788d78 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -171,8 +171,8 @@ importers: specifier: 6.1.1 version: 6.1.1(@types/node-fetch@2.6.1)(node-fetch@2.6.7) '@vercel/og': - specifier: 0.5.9 - version: 0.5.9 + specifier: 0.5.12 + version: 0.5.12 '@zeit/next-typescript': specifier: 1.1.2-canary.0 version: 1.1.2-canary.0(@babel/core@7.18.0) @@ -471,8 +471,8 @@ importers: specifier: 1.54.0 version: 1.54.0 satori: - specifier: 0.10.1 - version: 0.10.1 + specifier: 0.10.3 + version: 0.10.3 scheduler-builtin: specifier: npm:scheduler@0.24.0-canary-dd480ef92-20230822 version: /scheduler@0.24.0-canary-dd480ef92-20230822 @@ -8873,12 +8873,12 @@ packages: - supports-color dev: true - /@vercel/og@0.5.9: - resolution: {integrity: sha512-CtjaV/BVHtNCjRtxGqn8Q6AKFLqcG34Byxr91+mY+4eqyp/09LVe9jEeY9WXjbaKvu8syWPMteTpY+YQUQYzSg==} + /@vercel/og@0.5.12: + resolution: {integrity: sha512-NDtxHeX1ka0uSh6tSuIuOh2rz6+++BC7RSoqQd/NmKHK9kJ9mdhgRiMv8uBSgcdgBucRfyKHUzora+qaXhyB5Q==} engines: {node: '>=16'} dependencies: '@resvg/resvg-wasm': 2.4.1 - satori: 0.10.1 + satori: 0.10.3 yoga-wasm-web: 0.3.3 dev: true @@ -23923,8 +23923,8 @@ packages: immutable: 4.1.0 source-map-js: 1.0.2 - /satori@0.10.1: - resolution: {integrity: sha512-F4bTCkDp931tLb7+UCNPBuSQwXhikrUkI4fBQo6fA8lF0Evqqgg3nDyUpRktQpR5Ry1DIiIVqLyEwkAms87ykg==} + /satori@0.10.3: + resolution: {integrity: sha512-8tZPu7AGiRWimbOyja1s2HK0hEC4DacZ8cAKDITxlVI5tKQZbOuMiVgSB50CABwc0I4Imgtkq7o9Egj1WOJTKg==} engines: {node: '>=16'} dependencies: '@shuding/opentype.js': 1.4.0-beta.0