{"version":3,"sources":["node_modules/@arcgis/core/layers/effects/parser.js"],"sourcesContent":["/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { hex2rgba as e, isNamedColor as t, getNamedColorCopy as r, hsla2rgba as n } from \"../../colorUtils.js\";\nimport u from \"../../core/Error.js\";\nimport { ColorMatrixEffect as a, OpacityEffect as o, HueRotateEffect as c, BlurEffect as i, DropShadowEffect as l, BloomEffect as s } from \"./effects.js\";\nimport { canInterpolateEffects as f, normalizeEffects as p } from \"./utils.js\";\nfunction h(e, t) {\n function r() {\n this.constructor = e;\n }\n r.prototype = t.prototype, e.prototype = new r();\n}\nfunction m(e, t, r, n) {\n var u = Error.call(this, e);\n return Object.setPrototypeOf && Object.setPrototypeOf(u, m.prototype), u.expected = t, u.found = r, u.location = n, u.name = \"SyntaxError\", u;\n}\nfunction g(e, t, r) {\n return r = r || \" \", e.length > t ? e : (t -= e.length, e + (r += r.repeat(t)).slice(0, t));\n}\nfunction v(e, t) {\n var r,\n n = {},\n u = (t = void 0 !== t ? t : {}).grammarSource,\n a = {\n start: Qe\n },\n o = Qe,\n c = \"none\",\n i = \")\",\n l = \",\",\n s = \"(\",\n f = \"%\",\n p = \"px\",\n h = \"cm\",\n g = \"mm\",\n v = \"in\",\n d = \"pt\",\n y = \"pc\",\n w = \"deg\",\n x = \"rad\",\n A = \"grad\",\n b = \"turn\",\n F = \"#\",\n $ = \".\",\n C = \"e\",\n E = /^[ \\t\\n\\r]/,\n j = /^[a-z\\-]/,\n O = /^[0-9a-fA-F]/,\n P = /^[+\\-]/,\n q = /^[0-9]/,\n k = Be(\"none\"),\n z = Ue(\"none\", !1),\n I = Ue(\")\", !1),\n R = Ue(\",\", !1),\n S = Be(\"whitespace\"),\n M = De([\" \", \"\\t\", \"\\n\", \"\\r\"], !1, !1),\n N = Be(\"function\"),\n T = Ue(\"(\", !1),\n U = Be(\"identifier\"),\n D = De([[\"a\", \"z\"], \"-\"], !1, !1),\n L = Be(\"percentage\"),\n B = Ue(\"%\", !1),\n G = Be(\"length\"),\n H = Ue(\"px\", !1),\n J = Ue(\"cm\", !1),\n K = Ue(\"mm\", !1),\n Q = Ue(\"in\", !1),\n V = Ue(\"pt\", !1),\n W = Ue(\"pc\", !1),\n X = Be(\"angle\"),\n Y = Ue(\"deg\", !1),\n Z = Ue(\"rad\", !1),\n _ = Ue(\"grad\", !1),\n ee = Ue(\"turn\", !1),\n te = Be(\"number\"),\n re = Be(\"color\"),\n ne = Ue(\"#\", !1),\n ue = De([[\"0\", \"9\"], [\"a\", \"f\"], [\"A\", \"F\"]], !1, !1),\n ae = De([\"+\", \"-\"], !1, !1),\n oe = De([[\"0\", \"9\"]], !1, !1),\n ce = Ue(\".\", !1),\n ie = Ue(\"e\", !1),\n le = function () {\n return [];\n },\n se = function (e, t) {\n return {\n type: \"function\",\n name: e,\n parameters: t || []\n };\n },\n fe = function (e, t) {\n return t.length > 0 ? lt(e, t, 3) : [e];\n },\n pe = function (e) {\n return {\n type: \"quantity\",\n value: e.value,\n unit: e.unit\n };\n },\n he = function (e) {\n return {\n type: \"color\",\n colorType: e.type,\n value: e.value\n };\n },\n me = function (e) {\n return e;\n },\n ge = function () {\n return Te();\n },\n ve = function (e) {\n return {\n value: e,\n unit: \"%\"\n };\n },\n de = function (e) {\n return {\n value: e,\n unit: \"px\"\n };\n },\n ye = function (e) {\n return {\n value: e,\n unit: \"cm\"\n };\n },\n we = function (e) {\n return {\n value: e,\n unit: \"mm\"\n };\n },\n xe = function (e) {\n return {\n value: e,\n unit: \"in\"\n };\n },\n Ae = function (e) {\n return {\n value: e,\n unit: \"pt\"\n };\n },\n be = function (e) {\n return {\n value: e,\n unit: \"pc\"\n };\n },\n Fe = function (e) {\n return {\n value: e,\n unit: \"deg\"\n };\n },\n $e = function (e) {\n return {\n value: e,\n unit: \"rad\"\n };\n },\n Ce = function (e) {\n return {\n value: e,\n unit: \"grad\"\n };\n },\n Ee = function (e) {\n return {\n value: e,\n unit: \"turn\"\n };\n },\n je = function (e) {\n return {\n value: e,\n unit: null\n };\n },\n Oe = function () {\n return {\n type: \"hex\",\n value: Te()\n };\n },\n Pe = function (e) {\n return {\n type: \"function\",\n value: e\n };\n },\n qe = function () {\n return {\n type: \"named\",\n value: Te()\n };\n },\n ke = function () {\n return parseFloat(Te());\n },\n ze = 0 | t.peg$currPos,\n Ie = ze,\n Re = [{\n line: 1,\n column: 1\n }],\n Se = ze,\n Me = t.peg$maxFailExpected || [],\n Ne = 0 | t.peg$silentFails;\n if (t.startRule) {\n if (!(t.startRule in a)) throw new Error(\"Can't start parsing from rule \\\"\" + t.startRule + '\".');\n o = a[t.startRule];\n }\n function Te() {\n return e.substring(Ie, ze);\n }\n function Ue(e, t) {\n return {\n type: \"literal\",\n text: e,\n ignoreCase: t\n };\n }\n function De(e, t, r) {\n return {\n type: \"class\",\n parts: e,\n inverted: t,\n ignoreCase: r\n };\n }\n function Le() {\n return {\n type: \"end\"\n };\n }\n function Be(e) {\n return {\n type: \"other\",\n description: e\n };\n }\n function Ge(t) {\n var r,\n n = Re[t];\n if (n) return n;\n if (t >= Re.length) r = Re.length - 1;else for (r = t; !Re[--r];);\n for (n = {\n line: (n = Re[r]).line,\n column: n.column\n }; r < t;) 10 === e.charCodeAt(r) ? (n.line++, n.column = 1) : n.column++, r++;\n return Re[t] = n, n;\n }\n function He(e, t, r) {\n var n = Ge(e),\n a = Ge(t);\n return {\n source: u,\n start: {\n offset: e,\n line: n.line,\n column: n.column\n },\n end: {\n offset: t,\n line: a.line,\n column: a.column\n }\n };\n }\n function Je(e) {\n ze < Se || (ze > Se && (Se = ze, Me = []), Me.push(e));\n }\n function Ke(e, t, r) {\n return new m(m.buildMessage(e, t), e, t, r);\n }\n function Qe() {\n var e;\n return (e = Ve()) === n && (e = We()), e;\n }\n function Ve() {\n var t, r;\n return Ne++, t = ze, _e(), e.substr(ze, 4) === c ? (r = c, ze += 4) : (r = n, 0 === Ne && Je(z)), r !== n ? (_e(), Ie = t, t = le()) : (ze = t, t = n), Ne--, t === n && 0 === Ne && Je(k), t;\n }\n function We() {\n var e, t;\n if (e = [], (t = Xe()) !== n) for (; t !== n;) e.push(t), t = Xe();else e = n;\n return e;\n }\n function Xe() {\n var t, r, u, a;\n return t = ze, _e(), (r = et()) !== n ? (_e(), (u = Ye()) === n && (u = null), _e(), 41 === e.charCodeAt(ze) ? (a = i, ze++) : (a = n, 0 === Ne && Je(I)), a !== n ? (_e(), Ie = t, t = se(r, u)) : (ze = t, t = n)) : (ze = t, t = n), t;\n }\n function Ye() {\n var t, r, u, a, o, c, i, s;\n if (t = ze, (r = Ze()) !== n) {\n for (u = [], a = ze, o = _e(), 44 === e.charCodeAt(ze) ? (c = l, ze++) : (c = n, 0 === Ne && Je(R)), c === n && (c = null), i = _e(), (s = Ze()) !== n ? a = o = [o, c, i, s] : (ze = a, a = n); a !== n;) u.push(a), a = ze, o = _e(), 44 === e.charCodeAt(ze) ? (c = l, ze++) : (c = n, 0 === Ne && Je(R)), c === n && (c = null), i = _e(), (s = Ze()) !== n ? a = o = [o, c, i, s] : (ze = a, a = n);\n Ie = t, t = fe(r, u);\n } else ze = t, t = n;\n return t;\n }\n function Ze() {\n var e, t;\n return e = ze, (t = rt()) === n && (t = nt()) === n && (t = ut()) === n && (t = at()), t !== n && (Ie = e, t = pe(t)), (e = t) === n && (e = ze, (t = ot()) !== n && (Ie = e, t = he(t)), e = t), e;\n }\n function _e() {\n var t, r;\n for (Ne++, t = [], r = e.charAt(ze), E.test(r) ? ze++ : (r = n, 0 === Ne && Je(M)); r !== n;) t.push(r), r = e.charAt(ze), E.test(r) ? ze++ : (r = n, 0 === Ne && Je(M));\n return Ne--, r = n, 0 === Ne && Je(S), t;\n }\n function et() {\n var t, r, u;\n return Ne++, t = ze, (r = tt()) !== n ? (40 === e.charCodeAt(ze) ? (u = s, ze++) : (u = n, 0 === Ne && Je(T)), u !== n ? (Ie = t, t = me(r)) : (ze = t, t = n)) : (ze = t, t = n), Ne--, t === n && (r = n, 0 === Ne && Je(N)), t;\n }\n function tt() {\n var t, r, u;\n if (Ne++, t = ze, r = [], u = e.charAt(ze), j.test(u) ? ze++ : (u = n, 0 === Ne && Je(D)), u !== n) for (; u !== n;) r.push(u), u = e.charAt(ze), j.test(u) ? ze++ : (u = n, 0 === Ne && Je(D));else r = n;\n return r !== n && (Ie = t, r = ge()), Ne--, (t = r) === n && (r = n, 0 === Ne && Je(U)), t;\n }\n function rt() {\n var t, r, u;\n return Ne++, t = ze, _e(), (r = ct()) !== n ? (37 === e.charCodeAt(ze) ? (u = f, ze++) : (u = n, 0 === Ne && Je(B)), u !== n ? (Ie = t, t = ve(r)) : (ze = t, t = n)) : (ze = t, t = n), Ne--, t === n && 0 === Ne && Je(L), t;\n }\n function nt() {\n var t, r, u;\n return Ne++, t = ze, _e(), (r = ct()) !== n ? (e.substr(ze, 2) === p ? (u = p, ze += 2) : (u = n, 0 === Ne && Je(H)), u !== n ? (Ie = t, t = de(r)) : (ze = t, t = n)) : (ze = t, t = n), t === n && (t = ze, _e(), (r = ct()) !== n ? (e.substr(ze, 2) === h ? (u = h, ze += 2) : (u = n, 0 === Ne && Je(J)), u !== n ? (Ie = t, t = ye(r)) : (ze = t, t = n)) : (ze = t, t = n), t === n && (t = ze, _e(), (r = ct()) !== n ? (e.substr(ze, 2) === g ? (u = g, ze += 2) : (u = n, 0 === Ne && Je(K)), u !== n ? (Ie = t, t = we(r)) : (ze = t, t = n)) : (ze = t, t = n), t === n && (t = ze, _e(), (r = ct()) !== n ? (e.substr(ze, 2) === v ? (u = v, ze += 2) : (u = n, 0 === Ne && Je(Q)), u !== n ? (Ie = t, t = xe(r)) : (ze = t, t = n)) : (ze = t, t = n), t === n && (t = ze, _e(), (r = ct()) !== n ? (e.substr(ze, 2) === d ? (u = d, ze += 2) : (u = n, 0 === Ne && Je(V)), u !== n ? (Ie = t, t = Ae(r)) : (ze = t, t = n)) : (ze = t, t = n), t === n && (t = ze, _e(), (r = ct()) !== n ? (e.substr(ze, 2) === y ? (u = y, ze += 2) : (u = n, 0 === Ne && Je(W)), u !== n ? (Ie = t, t = be(r)) : (ze = t, t = n)) : (ze = t, t = n)))))), Ne--, t === n && 0 === Ne && Je(G), t;\n }\n function ut() {\n var t, r, u;\n return Ne++, t = ze, (r = ct()) !== n ? (e.substr(ze, 3) === w ? (u = w, ze += 3) : (u = n, 0 === Ne && Je(Y)), u !== n ? (Ie = t, t = Fe(r)) : (ze = t, t = n)) : (ze = t, t = n), t === n && (t = ze, (r = ct()) !== n ? (e.substr(ze, 3) === x ? (u = x, ze += 3) : (u = n, 0 === Ne && Je(Z)), u !== n ? (Ie = t, t = $e(r)) : (ze = t, t = n)) : (ze = t, t = n), t === n && (t = ze, (r = ct()) !== n ? (e.substr(ze, 4) === A ? (u = A, ze += 4) : (u = n, 0 === Ne && Je(_)), u !== n ? (Ie = t, t = Ce(r)) : (ze = t, t = n)) : (ze = t, t = n), t === n && (t = ze, (r = ct()) !== n ? (e.substr(ze, 4) === b ? (u = b, ze += 4) : (u = n, 0 === Ne && Je(ee)), u !== n ? (Ie = t, t = Ee(r)) : (ze = t, t = n)) : (ze = t, t = n)))), Ne--, t === n && (r = n, 0 === Ne && Je(X)), t;\n }\n function at() {\n var e, t;\n return Ne++, e = ze, _e(), (t = ct()) !== n ? (Ie = e, e = je(t)) : (ze = e, e = n), Ne--, e === n && 0 === Ne && Je(te), e;\n }\n function ot() {\n var t, r, u, a;\n if (Ne++, t = ze, 35 === e.charCodeAt(ze) ? (r = F, ze++) : (r = n, 0 === Ne && Je(ne)), r !== n) {\n if (u = [], a = e.charAt(ze), O.test(a) ? ze++ : (a = n, 0 === Ne && Je(ue)), a !== n) for (; a !== n;) u.push(a), a = e.charAt(ze), O.test(a) ? ze++ : (a = n, 0 === Ne && Je(ue));else u = n;\n u !== n ? (Ie = t, t = Oe()) : (ze = t, t = n);\n } else ze = t, t = n;\n return t === n && (t = ze, (r = Xe()) !== n && (Ie = t, r = Pe(r)), (t = r) === n && (t = ze, (r = tt()) !== n && (Ie = t, r = qe()), t = r)), Ne--, t === n && (r = n, 0 === Ne && Je(re)), t;\n }\n function ct() {\n var t, r, u, a, o, c, i, l;\n for (t = ze, r = e.charAt(ze), P.test(r) ? ze++ : (r = n, 0 === Ne && Je(ae)), r === n && (r = null), u = ze, a = [], o = e.charAt(ze), q.test(o) ? ze++ : (o = n, 0 === Ne && Je(oe)); o !== n;) a.push(o), o = e.charAt(ze), q.test(o) ? ze++ : (o = n, 0 === Ne && Je(oe));\n if (46 === e.charCodeAt(ze) ? (o = $, ze++) : (o = n, 0 === Ne && Je(ce)), o !== n) {\n if (c = [], i = e.charAt(ze), q.test(i) ? ze++ : (i = n, 0 === Ne && Je(oe)), i !== n) for (; i !== n;) c.push(i), i = e.charAt(ze), q.test(i) ? ze++ : (i = n, 0 === Ne && Je(oe));else c = n;\n c !== n ? u = a = [a, o, c] : (ze = u, u = n);\n } else ze = u, u = n;\n if (u === n) if (u = [], a = e.charAt(ze), q.test(a) ? ze++ : (a = n, 0 === Ne && Je(oe)), a !== n) for (; a !== n;) u.push(a), a = e.charAt(ze), q.test(a) ? ze++ : (a = n, 0 === Ne && Je(oe));else u = n;\n if (u !== n) {\n if (a = ze, 101 === e.charCodeAt(ze) ? (o = C, ze++) : (o = n, 0 === Ne && Je(ie)), o !== n) {\n if (c = e.charAt(ze), P.test(c) ? ze++ : (c = n, 0 === Ne && Je(ae)), c === n && (c = null), i = [], l = e.charAt(ze), q.test(l) ? ze++ : (l = n, 0 === Ne && Je(oe)), l !== n) for (; l !== n;) i.push(l), l = e.charAt(ze), q.test(l) ? ze++ : (l = n, 0 === Ne && Je(oe));else i = n;\n i !== n ? a = o = [o, c, i] : (ze = a, a = n);\n } else ze = a, a = n;\n a === n && (a = null), Ie = t, t = ke();\n } else ze = t, t = n;\n return t;\n }\n function it(e, t) {\n return e.map(function (e) {\n return e[t];\n });\n }\n function lt(e, t, r) {\n return [e].concat(it(t, r));\n }\n if (r = o(), t.peg$library) return {\n peg$result: r,\n peg$currPos: ze,\n peg$FAILED: n,\n peg$maxFailExpected: Me,\n peg$maxFailPos: Se\n };\n if (r !== n && ze === e.length) return r;\n throw r !== n && ze < e.length && Je(Le()), Ke(Me, Se < e.length ? e.charAt(Se) : null, Se < e.length ? He(Se, Se + 1) : He(Se, Se));\n}\nfunction d(e) {\n if (!e || 0 === e.length) return null;\n if (\"string\" == typeof e) {\n const t = y(e);\n return t && 0 !== t.length ? t : null;\n }\n const t = e.map(e => {\n if (!Number.isFinite(e.scale) || e.scale <= 0) throw new u(\"effect:invalid-scale\", \"scale must be finite and greater than 0\", {\n stop: e\n });\n return {\n scale: e.scale,\n effects: y(e.value)\n };\n });\n t.sort((e, t) => t.effects.length - e.effects.length);\n for (let r = 0; r < t.length - 1; r++) {\n if (!f(t[r].effects, t[r + 1].effects)) throw new u(\"effect:interpolation-impossible\", \"Cannot interpolate by scale between 2 lists of mixed effects\", {\n a: t[r].effects,\n b: t[r + 1].effects\n });\n p(t[r].effects, t[r + 1].effects);\n }\n return t.sort((e, t) => t.scale - e.scale), t;\n}\nfunction y(e) {\n let t;\n if (!e) return [];\n try {\n t = v(e);\n } catch (r) {\n throw new u(\"effect:invalid-syntax\", \"Invalid effect syntax\", {\n value: e,\n error: r\n });\n }\n return t.map(e => w(e));\n}\nfunction w(e) {\n try {\n switch (e.name) {\n case \"grayscale\":\n case \"sepia\":\n case \"saturate\":\n case \"invert\":\n case \"brightness\":\n case \"contrast\":\n return x(e);\n case \"opacity\":\n return A(e);\n case \"hue-rotate\":\n return b(e);\n case \"blur\":\n return F(e);\n case \"drop-shadow\":\n return $(e);\n case \"bloom\":\n return C(e);\n }\n } catch (t) {\n throw t.details.filter = e, t;\n }\n throw new u(\"effect:unknown-effect\", `Effect '${e.name}' is not supported`, {\n effect: e\n });\n}\nfunction x(e) {\n let t = 1;\n return E(e.parameters, 1), 1 === e.parameters.length && (t = S(e.parameters[0])), new a(e.name, t);\n}\nfunction A(e) {\n let t = 1;\n return E(e.parameters, 1), 1 === e.parameters.length && (t = S(e.parameters[0])), new o(t);\n}\nfunction b(e) {\n let t = 0;\n return E(e.parameters, 1), 1 === e.parameters.length && (t = N(e.parameters[0])), new c(t);\n}\nfunction F(e) {\n let t = 0;\n return E(e.parameters, 1), 1 === e.parameters.length && (t = T(e.parameters[0]), O(t, e.parameters[0])), new i(t);\n}\nfunction $(e) {\n const t = [];\n let r = null;\n for (const n of e.parameters) if (\"color\" === n.type) {\n if (t.length && Object.freeze(t), r) throw new u(\"effect:type-error\", \"Accepts only one color\", {});\n r = U(n);\n } else {\n const e = T(n);\n if (Object.isFrozen(t)) throw new u(\"effect:type-error\", \" parameters not consecutive\", {\n lengths: t\n });\n t.push(e), 3 === t.length && O(e, n);\n }\n if (t.length < 2 || t.length > 3) throw new u(\"effect:type-error\", `Expected {2,3}, Actual: {${t.length}}`, {\n lengths: t\n });\n return new l(t[0], t[1], t[2] || 0, r || D(\"black\"));\n}\nfunction C(e) {\n let t = 1,\n r = 0,\n n = 0;\n return E(e.parameters, 3), e.parameters[0] && (t = S(e.parameters[0])), e.parameters[1] && (r = T(e.parameters[1]), O(r, e.parameters[1])), e.parameters[2] && (n = S(e.parameters[2])), new s(t, r, n);\n}\nfunction E(e, t) {\n if (e.length > t) throw new u(\"effect:type-error\", `Function supports up to ${t} parameters, Actual: ${e.length}`, {\n parameters: e\n });\n}\nfunction j(e) {\n if (\"color\" === e.type) return \"\";\n if (e.unit) {\n if (e.unit in I) return \"\";\n if (e.unit in k) return \"\";\n if (\"%\" === e.unit) return \"\";\n }\n return \"\";\n}\nfunction O(e, t) {\n if (e < 0) throw new u(\"effect:type-error\", `Negative values are not allowed, Actual: ${e}`, {\n term: t\n });\n}\nfunction P(e) {\n if (\"quantity\" !== e.type || null !== e.unit) throw new u(\"effect:type-error\", `Expected , Actual: ${j(e)}`, {\n term: e\n });\n}\nfunction q(e) {\n if (\"quantity\" !== e.type || null !== e.unit && \"%\" !== e.unit) throw new u(\"effect:type-error\", `Expected or , Actual: ${j(e)}`, {\n term: e\n });\n}\nh(m, Error), m.prototype.format = function (e) {\n var t = \"Error: \" + this.message;\n if (this.location) {\n var r,\n n = null;\n for (r = 0; r < e.length; r++) if (e[r].source === this.location.source) {\n n = e[r].text.split(/\\r\\n|\\n|\\r/g);\n break;\n }\n var u = this.location.start,\n a = this.location.source && \"function\" == typeof this.location.source.offset ? this.location.source.offset(u) : u,\n o = this.location.source + \":\" + a.line + \":\" + a.column;\n if (n) {\n var c = this.location.end,\n i = g(\"\", a.line.toString().length, \" \"),\n l = n[u.line - 1],\n s = (u.line === c.line ? c.column : l.length + 1) - u.column || 1;\n t += \"\\n --\\x3e \" + o + \"\\n\" + i + \" |\\n\" + a.line + \" | \" + l + \"\\n\" + i + \" | \" + g(\"\", u.column - 1, \" \") + g(\"\", s, \"^\");\n } else t += \"\\n at \" + o;\n }\n return t;\n}, m.buildMessage = function (e, t) {\n var r = {\n literal: function (e) {\n return '\"' + u(e.text) + '\"';\n },\n class: function (e) {\n var t = e.parts.map(function (e) {\n return Array.isArray(e) ? a(e[0]) + \"-\" + a(e[1]) : a(e);\n });\n return \"[\" + (e.inverted ? \"^\" : \"\") + t.join(\"\") + \"]\";\n },\n any: function () {\n return \"any character\";\n },\n end: function () {\n return \"end of input\";\n },\n other: function (e) {\n return e.description;\n }\n };\n function n(e) {\n return e.charCodeAt(0).toString(16).toUpperCase();\n }\n function u(e) {\n return e.replace(/\\\\/g, \"\\\\\\\\\").replace(/\"/g, '\\\\\"').replace(/\\0/g, \"\\\\0\").replace(/\\t/g, \"\\\\t\").replace(/\\n/g, \"\\\\n\").replace(/\\r/g, \"\\\\r\").replace(/[\\x00-\\x0F]/g, function (e) {\n return \"\\\\x0\" + n(e);\n }).replace(/[\\x10-\\x1F\\x7F-\\x9F]/g, function (e) {\n return \"\\\\x\" + n(e);\n });\n }\n function a(e) {\n return e.replace(/\\\\/g, \"\\\\\\\\\").replace(/\\]/g, \"\\\\]\").replace(/\\^/g, \"\\\\^\").replace(/-/g, \"\\\\-\").replace(/\\0/g, \"\\\\0\").replace(/\\t/g, \"\\\\t\").replace(/\\n/g, \"\\\\n\").replace(/\\r/g, \"\\\\r\").replace(/[\\x00-\\x0F]/g, function (e) {\n return \"\\\\x0\" + n(e);\n }).replace(/[\\x10-\\x1F\\x7F-\\x9F]/g, function (e) {\n return \"\\\\x\" + n(e);\n });\n }\n function o(e) {\n return r[e.type](e);\n }\n function c(e) {\n var t,\n r,\n n = e.map(o);\n if (n.sort(), n.length > 0) {\n for (t = 1, r = 1; t < n.length; t++) n[t - 1] !== n[t] && (n[r] = n[t], r++);\n n.length = r;\n }\n switch (n.length) {\n case 1:\n return n[0];\n case 2:\n return n[0] + \" or \" + n[1];\n default:\n return n.slice(0, -1).join(\", \") + \", or \" + n[n.length - 1];\n }\n }\n function i(e) {\n return e ? '\"' + u(e) + '\"' : \"end of input\";\n }\n return \"Expected \" + c(e) + \" but \" + i(t) + \" found.\";\n};\nconst k = {\n deg: 1,\n grad: .9,\n rad: 180 / Math.PI,\n turn: 360\n};\nfunction z(e) {\n if (\"quantity\" !== e.type || !(0 === e.value && null === e.unit || e.unit && null != k[e.unit])) throw new u(\"effect:type-error\", `Expected , Actual: ${j(e)}`, {\n term: e\n });\n}\nconst I = {\n px: 1,\n cm: 96 / 2.54,\n mm: 96 / 2.54 / 10,\n in: 96,\n pc: 16,\n pt: 96 / 72\n};\nfunction R(e) {\n if (\"quantity\" !== e.type || !(0 === e.value && null === e.unit || e.unit && null != I[e.unit])) throw new u(\"effect:type-error\", `Expected , Actual: ${j(e)}`, {\n term: e\n });\n}\nfunction S(e) {\n q(e);\n const t = e.value;\n return O(t, e), \"%\" === e.unit ? .01 * t : t;\n}\nfunction M(e) {\n return P(e), O(e.value, e), e.value;\n}\nfunction N(e) {\n return z(e), e.value * k[e.unit] || 0;\n}\nfunction T(e) {\n return R(e), e.value * I[e.unit] || 0;\n}\nfunction U(t) {\n switch (t.colorType) {\n case \"hex\":\n return e(t.value);\n case \"named\":\n return D(t.value);\n case \"function\":\n return G(t.value);\n }\n}\nfunction D(e) {\n if (!t(e)) throw new u(\"effect:unknown-color\", `color '${e}' isn't valid`, {\n namedColor: e\n });\n return r(e);\n}\nconst L = /^rgba?/i,\n B = /^hsla?/i;\nfunction G(e) {\n if (E(e.parameters, 4), L.test(e.name)) return [S(e.parameters[0]), S(e.parameters[1]), S(e.parameters[2]), e.parameters[3] ? S(e.parameters[3]) : 1];\n if (B.test(e.name)) return n(M(e.parameters[0]), S(e.parameters[1]), S(e.parameters[2]), e.parameters[3] ? S(e.parameters[3]) : 1);\n throw new u(\"effect:syntax-error\", `Invalid color function '${e.name}'`, {\n colorFunction: e\n });\n}\nexport { d as parse };"],"mappings":"0MAQA,SAASA,GAAEC,EAAGC,EAAG,CACf,SAASC,GAAI,CACX,KAAK,YAAcF,CACrB,CACAE,EAAE,UAAYD,EAAE,UAAWD,EAAE,UAAY,IAAIE,CAC/C,CACA,SAASC,EAAEH,EAAGC,EAAGC,EAAGE,EAAG,CACrB,IAAIC,EAAI,MAAM,KAAK,KAAML,CAAC,EAC1B,OAAO,OAAO,gBAAkB,OAAO,eAAeK,EAAGF,EAAE,SAAS,EAAGE,EAAE,SAAWJ,EAAGI,EAAE,MAAQH,EAAGG,EAAE,SAAWD,EAAGC,EAAE,KAAO,cAAeA,CAC9I,CACA,SAASC,EAAEN,EAAGC,EAAGC,EAAG,CAClB,OAAOA,EAAIA,GAAK,IAAKF,EAAE,OAASC,EAAID,GAAKC,GAAKD,EAAE,OAAQA,GAAKE,GAAKA,EAAE,OAAOD,CAAC,GAAG,MAAM,EAAGA,CAAC,EAC3F,CACA,SAASM,GAAEP,EAAGC,EAAG,CACf,IAAIC,EACFE,EAAI,CAAC,EACLC,GAAKJ,EAAeA,IAAX,OAAeA,EAAI,CAAC,GAAG,cAChCO,EAAI,CACF,MAAOC,EACT,EACAC,EAAID,GACJE,EAAI,OACJC,EAAI,IACJC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AK,EAClB,IAAK,QACH,OAAO0C,GAAE1C,EAAE,KAAK,EAClB,IAAK,WACH,OAAO6C,GAAE7C,EAAE,KAAK,CACpB,CACF,CACA,SAAS0C,GAAE3C,EAAG,CACZ,GAAI,CAACE,GAAEF,CAAC,EAAG,MAAM,IAAIc,EAAE,uBAAwB,UAAUd,CAAC,gBAAiB,CACzE,WAAYA,CACd,CAAC,EACD,OAAOQ,GAAER,CAAC,CACZ,CACA,IAAM4C,GAAI,UACRC,GAAI,UACN,SAASC,GAAE9C,EAAG,CACZ,GAAI0B,EAAE1B,EAAE,WAAY,CAAC,EAAG4C,GAAE,KAAK5C,EAAE,IAAI,EAAG,MAAO,CAACqC,EAAErC,EAAE,WAAW,CAAC,CAAC,EAAGqC,EAAErC,EAAE,WAAW,CAAC,CAAC,EAAGqC,EAAErC,EAAE,WAAW,CAAC,CAAC,EAAGA,EAAE,WAAW,CAAC,EAAIqC,EAAErC,EAAE,WAAW,CAAC,CAAC,EAAI,CAAC,EACpJ,GAAI6C,GAAE,KAAK7C,EAAE,IAAI,EAAG,OAAOY,GAAE0B,GAAEtC,EAAE,WAAW,CAAC,CAAC,EAAGqC,EAAErC,EAAE,WAAW,CAAC,CAAC,EAAGqC,EAAErC,EAAE,WAAW,CAAC,CAAC,EAAGA,EAAE,WAAW,CAAC,EAAIqC,EAAErC,EAAE,WAAW,CAAC,CAAC,EAAI,CAAC,EACjI,MAAM,IAAIc,EAAE,sBAAuB,2BAA2Bd,EAAE,IAAI,IAAK,CACvE,cAAeA,CACjB,CAAC,CACH","names":["h","e","t","r","m","n","u","g","v","a","Qe","o","c","i","l","s","f","p","d","y","w","x","A","b","F","$","C","E","j","O","P","q","k","Be","z","Ue","I","R","S","M","De","N","T","U","D","L","B","G","H","J","K","Q","V","W","X","Y","Z","_","ee","re","ne","ue","ae","oe","ce","ie","le","se","fe","lt","pe","he","me","ge","Te","ve","de","ye","we","xe","Ae","be","Fe","$e","Ce","Ee","je","Oe","Pe","qe","ke","ze","Ie","Re","Se","Me","Ne","Le","Ge","He","Je","Ke","Ve","We","_e","Xe","et","Ye","Ze","rt","nt","ut","at","ot","tt","ct","it"],"x_google_ignoreList":[0]}