@conciv/solid-streamdown 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 aidx contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/LICENSE-APACHE ADDED
@@ -0,0 +1,13 @@
1
+ Copyright 2023 Vercel, Inc.
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,5 @@
1
+ # @conciv/solid-streamdown
2
+
3
+ A SolidJS streaming-markdown renderer: a port of Vercel's streamdown (block memoization, incomplete-markdown handling, token fade-in) onto Solid + the unified pipeline. Encapsulated so the widget can swap it without churn.
4
+
5
+ Part of [conciv](https://github.com/conciv-dev/conciv).
@@ -0,0 +1,18 @@
1
+ import type { Pluggable } from 'unified';
2
+ export type AnimatePlugin = {
3
+ name: 'animate';
4
+ type: 'animate';
5
+ rehypePlugin: Pluggable;
6
+ setPrevContentLength: (length: number) => void;
7
+ getLastRenderCharCount: () => number;
8
+ };
9
+ export type AnimateOptions = {
10
+ animation?: 'fadeIn' | 'blurIn' | 'slideUp' | (string & {});
11
+ duration?: number;
12
+ easing?: string;
13
+ sep?: 'word' | 'char';
14
+ stagger?: number;
15
+ maxStagger?: number;
16
+ };
17
+ export declare function createAnimatePlugin(options?: AnimateOptions): AnimatePlugin;
18
+ //# sourceMappingURL=animate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"animate.d.ts","sourceRoot":"","sources":["../src/animate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,SAAS,CAAA;AAGtC,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,SAAS,CAAA;IACf,IAAI,EAAE,SAAS,CAAA;IACf,YAAY,EAAE,SAAS,CAAA;IAEvB,oBAAoB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;IAE9C,sBAAsB,EAAE,MAAM,MAAM,CAAA;CACrC,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,SAAS,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IAC3D,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACrB,OAAO,CAAC,EAAE,MAAM,CAAA;IAIhB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAA;AAqHD,wBAAgB,mBAAmB,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,aAAa,CAiC3E"}
@@ -0,0 +1,171 @@
1
+ //#region ../../node_modules/.pnpm/unist-util-position@5.0.0/node_modules/unist-util-position/lib/index.js
2
+ var e = n("end"), t = n("start");
3
+ function n(e) {
4
+ return t;
5
+ function t(t) {
6
+ let n = t && t.position && t.position[e] || {};
7
+ if (typeof n.line == "number" && n.line > 0 && typeof n.column == "number" && n.column > 0) return {
8
+ line: n.line,
9
+ column: n.column,
10
+ offset: typeof n.offset == "number" && n.offset > -1 ? n.offset : void 0
11
+ };
12
+ }
13
+ }
14
+ function r(n) {
15
+ let r = t(n), i = e(n);
16
+ if (r && i) return {
17
+ start: r,
18
+ end: i
19
+ };
20
+ }
21
+ //#endregion
22
+ //#region ../../node_modules/.pnpm/@ungap+structured-clone@1.3.1/node_modules/@ungap/structured-clone/esm/deserialize.js
23
+ var i = typeof self == "object" ? self : globalThis, a = (e, t) => {
24
+ switch (e) {
25
+ case "Function":
26
+ case "SharedWorker":
27
+ case "Worker":
28
+ case "eval":
29
+ case "setInterval":
30
+ case "setTimeout": throw TypeError("unable to deserialize " + e);
31
+ }
32
+ return new i[e](t);
33
+ }, o = (e, t) => {
34
+ let n = (t, n) => (e.set(n, t), t), r = (i) => {
35
+ if (e.has(i)) return e.get(i);
36
+ let [o, s] = t[i];
37
+ switch (o) {
38
+ case 0:
39
+ case -1: return n(s, i);
40
+ case 1: {
41
+ let e = n([], i);
42
+ for (let t of s) e.push(r(t));
43
+ return e;
44
+ }
45
+ case 2: {
46
+ let e = n({}, i);
47
+ for (let [t, n] of s) e[r(t)] = r(n);
48
+ return e;
49
+ }
50
+ case 3: return n(new Date(s), i);
51
+ case 4: {
52
+ let { source: e, flags: t } = s;
53
+ return n(new RegExp(e, t), i);
54
+ }
55
+ case 5: {
56
+ let e = n(/* @__PURE__ */ new Map(), i);
57
+ for (let [t, n] of s) e.set(r(t), r(n));
58
+ return e;
59
+ }
60
+ case 6: {
61
+ let e = n(/* @__PURE__ */ new Set(), i);
62
+ for (let t of s) e.add(r(t));
63
+ return e;
64
+ }
65
+ case 7: {
66
+ let { name: e, message: t } = s;
67
+ return n(a(e, t), i);
68
+ }
69
+ case 8: return n(BigInt(s), i);
70
+ case "BigInt": return n(Object(BigInt(s)), i);
71
+ case "ArrayBuffer": return n(new Uint8Array(s).buffer, s);
72
+ case "DataView": {
73
+ let { buffer: e } = new Uint8Array(s);
74
+ return n(new DataView(e), s);
75
+ }
76
+ }
77
+ return n(a(o, s), i);
78
+ };
79
+ return r;
80
+ }, s = (e) => o(/* @__PURE__ */ new Map(), e)(0), c = "", { toString: l } = {}, { keys: u } = Object, d = (e) => {
81
+ let t = typeof e;
82
+ if (t !== "object" || !e) return [0, t];
83
+ let n = l.call(e).slice(8, -1);
84
+ switch (n) {
85
+ case "Array": return [1, c];
86
+ case "Object": return [2, c];
87
+ case "Date": return [3, c];
88
+ case "RegExp": return [4, c];
89
+ case "Map": return [5, c];
90
+ case "Set": return [6, c];
91
+ case "DataView": return [1, n];
92
+ }
93
+ return n.includes("Array") ? [1, n] : n.includes("Error") ? [7, n] : [2, n];
94
+ }, f = ([e, t]) => e === 0 && (t === "function" || t === "symbol"), p = (e, t, n, r) => {
95
+ let i = (e, t) => {
96
+ let i = r.push(e) - 1;
97
+ return n.set(t, i), i;
98
+ }, a = (r) => {
99
+ if (n.has(r)) return n.get(r);
100
+ let [o, s] = d(r);
101
+ switch (o) {
102
+ case 0: {
103
+ let t = r;
104
+ switch (s) {
105
+ case "bigint":
106
+ o = 8, t = r.toString();
107
+ break;
108
+ case "function":
109
+ case "symbol":
110
+ if (e) throw TypeError("unable to serialize " + s);
111
+ t = null;
112
+ break;
113
+ case "undefined": return i([-1], r);
114
+ }
115
+ return i([o, t], r);
116
+ }
117
+ case 1: {
118
+ if (s) {
119
+ let e = r;
120
+ return s === "DataView" ? e = new Uint8Array(r.buffer) : s === "ArrayBuffer" && (e = new Uint8Array(r)), i([s, [...e]], r);
121
+ }
122
+ let e = [], t = i([o, e], r);
123
+ for (let t of r) e.push(a(t));
124
+ return t;
125
+ }
126
+ case 2: {
127
+ if (s) switch (s) {
128
+ case "BigInt": return i([s, r.toString()], r);
129
+ case "Boolean":
130
+ case "Number":
131
+ case "String": return i([s, r.valueOf()], r);
132
+ }
133
+ if (t && "toJSON" in r) return a(r.toJSON());
134
+ let n = [], c = i([o, n], r);
135
+ for (let t of u(r)) (e || !f(d(r[t]))) && n.push([a(t), a(r[t])]);
136
+ return c;
137
+ }
138
+ case 3: return i([o, r.toISOString()], r);
139
+ case 4: {
140
+ let { source: e, flags: t } = r;
141
+ return i([o, {
142
+ source: e,
143
+ flags: t
144
+ }], r);
145
+ }
146
+ case 5: {
147
+ let t = [], n = i([o, t], r);
148
+ for (let [n, i] of r) (e || !(f(d(n)) || f(d(i)))) && t.push([a(n), a(i)]);
149
+ return n;
150
+ }
151
+ case 6: {
152
+ let t = [], n = i([o, t], r);
153
+ for (let n of r) (e || !f(d(n))) && t.push(a(n));
154
+ return n;
155
+ }
156
+ }
157
+ let { message: c } = r;
158
+ return i([o, {
159
+ name: s,
160
+ message: c
161
+ }], r);
162
+ };
163
+ return a;
164
+ }, m = (e, { json: t, lossy: n } = {}) => {
165
+ let r = [];
166
+ return p(!(t || n), !!t, /* @__PURE__ */ new Map(), r)(e), r;
167
+ }, h = typeof structuredClone == "function" ? (e, t) => t && ("json" in t || "lossy" in t) ? s(m(e, t)) : structuredClone(e) : (e, t) => s(m(e, t));
168
+ //#endregion
169
+ export { r as i, e as n, t as r, h as t };
170
+
171
+ //# sourceMappingURL=esm-C6DrQFNX.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"esm-C6DrQFNX.js","names":[],"sources":["../../../node_modules/.pnpm/unist-util-position@5.0.0/node_modules/unist-util-position/lib/index.js","../../../node_modules/.pnpm/@ungap+structured-clone@1.3.1/node_modules/@ungap/structured-clone/esm/deserialize.js","../../../node_modules/.pnpm/@ungap+structured-clone@1.3.1/node_modules/@ungap/structured-clone/esm/serialize.js","../../../node_modules/.pnpm/@ungap+structured-clone@1.3.1/node_modules/@ungap/structured-clone/esm/index.js"],"sourcesContent":["/**\n * @typedef {import('unist').Node} Node\n * @typedef {import('unist').Point} Point\n * @typedef {import('unist').Position} Position\n */\n\n/**\n * @typedef NodeLike\n * @property {string} type\n * @property {PositionLike | null | undefined} [position]\n *\n * @typedef PositionLike\n * @property {PointLike | null | undefined} [start]\n * @property {PointLike | null | undefined} [end]\n *\n * @typedef PointLike\n * @property {number | null | undefined} [line]\n * @property {number | null | undefined} [column]\n * @property {number | null | undefined} [offset]\n */\n\n/**\n * Get the ending point of `node`.\n *\n * @param node\n * Node.\n * @returns\n * Point.\n */\nexport const pointEnd = point('end')\n\n/**\n * Get the starting point of `node`.\n *\n * @param node\n * Node.\n * @returns\n * Point.\n */\nexport const pointStart = point('start')\n\n/**\n * Get the positional info of `node`.\n *\n * @param {'end' | 'start'} type\n * Side.\n * @returns\n * Getter.\n */\nfunction point(type) {\n return point\n\n /**\n * Get the point info of `node` at a bound side.\n *\n * @param {Node | NodeLike | null | undefined} [node]\n * @returns {Point | undefined}\n */\n function point(node) {\n const point = (node && node.position && node.position[type]) || {}\n\n if (\n typeof point.line === 'number' &&\n point.line > 0 &&\n typeof point.column === 'number' &&\n point.column > 0\n ) {\n return {\n line: point.line,\n column: point.column,\n offset:\n typeof point.offset === 'number' && point.offset > -1\n ? point.offset\n : undefined\n }\n }\n }\n}\n\n/**\n * Get the positional info of `node`.\n *\n * @param {Node | NodeLike | null | undefined} [node]\n * Node.\n * @returns {Position | undefined}\n * Position.\n */\nexport function position(node) {\n const start = pointStart(node)\n const end = pointEnd(node)\n\n if (start && end) {\n return {start, end}\n }\n}\n","import {\n VOID, PRIMITIVE,\n ARRAY, OBJECT,\n DATE, REGEXP, MAP, SET,\n ERROR, BIGINT\n} from './types.js';\n\nconst env = typeof self === 'object' ? self : globalThis;\n\nconst guard = (name, init) => {\n switch (name) {\n case 'Function':\n case 'SharedWorker':\n case 'Worker':\n case 'eval':\n case 'setInterval':\n case 'setTimeout':\n throw new TypeError('unable to deserialize ' + name);\n }\n return new env[name](init);\n};\n\nconst deserializer = ($, _) => {\n const as = (out, index) => {\n $.set(index, out);\n return out;\n };\n\n const unpair = index => {\n if ($.has(index))\n return $.get(index);\n\n const [type, value] = _[index];\n switch (type) {\n case PRIMITIVE:\n case VOID:\n return as(value, index);\n case ARRAY: {\n const arr = as([], index);\n for (const index of value)\n arr.push(unpair(index));\n return arr;\n }\n case OBJECT: {\n const object = as({}, index);\n for (const [key, index] of value)\n object[unpair(key)] = unpair(index);\n return object;\n }\n case DATE:\n return as(new Date(value), index);\n case REGEXP: {\n const {source, flags} = value;\n return as(new RegExp(source, flags), index);\n }\n case MAP: {\n const map = as(new Map, index);\n for (const [key, index] of value)\n map.set(unpair(key), unpair(index));\n return map;\n }\n case SET: {\n const set = as(new Set, index);\n for (const index of value)\n set.add(unpair(index));\n return set;\n }\n case ERROR: {\n const {name, message} = value;\n return as(guard(name, message), index);\n }\n case BIGINT:\n return as(BigInt(value), index);\n case 'BigInt':\n return as(Object(BigInt(value)), index);\n case 'ArrayBuffer':\n return as(new Uint8Array(value).buffer, value);\n case 'DataView': {\n const { buffer } = new Uint8Array(value);\n return as(new DataView(buffer), value);\n }\n }\n return as(guard(type, value), index);\n };\n\n return unpair;\n};\n\n/**\n * @typedef {Array<string,any>} Record a type representation\n */\n\n/**\n * Returns a deserialized value from a serialized array of Records.\n * @param {Record[]} serialized a previously serialized value.\n * @returns {any}\n */\nexport const deserialize = serialized => deserializer(new Map, serialized)(0);\n","import {\n VOID, PRIMITIVE,\n ARRAY, OBJECT,\n DATE, REGEXP, MAP, SET,\n ERROR, BIGINT\n} from './types.js';\n\nconst EMPTY = '';\n\nconst {toString} = {};\nconst {keys} = Object;\n\nconst typeOf = value => {\n const type = typeof value;\n if (type !== 'object' || !value)\n return [PRIMITIVE, type];\n\n const asString = toString.call(value).slice(8, -1);\n switch (asString) {\n case 'Array':\n return [ARRAY, EMPTY];\n case 'Object':\n return [OBJECT, EMPTY];\n case 'Date':\n return [DATE, EMPTY];\n case 'RegExp':\n return [REGEXP, EMPTY];\n case 'Map':\n return [MAP, EMPTY];\n case 'Set':\n return [SET, EMPTY];\n case 'DataView':\n return [ARRAY, asString];\n }\n\n if (asString.includes('Array'))\n return [ARRAY, asString];\n\n if (asString.includes('Error'))\n return [ERROR, asString];\n\n return [OBJECT, asString];\n};\n\nconst shouldSkip = ([TYPE, type]) => (\n TYPE === PRIMITIVE &&\n (type === 'function' || type === 'symbol')\n);\n\nconst serializer = (strict, json, $, _) => {\n\n const as = (out, value) => {\n const index = _.push(out) - 1;\n $.set(value, index);\n return index;\n };\n\n const pair = value => {\n if ($.has(value))\n return $.get(value);\n\n let [TYPE, type] = typeOf(value);\n switch (TYPE) {\n case PRIMITIVE: {\n let entry = value;\n switch (type) {\n case 'bigint':\n TYPE = BIGINT;\n entry = value.toString();\n break;\n case 'function':\n case 'symbol':\n if (strict)\n throw new TypeError('unable to serialize ' + type);\n entry = null;\n break;\n case 'undefined':\n return as([VOID], value);\n }\n return as([TYPE, entry], value);\n }\n case ARRAY: {\n if (type) {\n let spread = value;\n if (type === 'DataView') {\n spread = new Uint8Array(value.buffer);\n }\n else if (type === 'ArrayBuffer') {\n spread = new Uint8Array(value);\n }\n return as([type, [...spread]], value);\n }\n\n const arr = [];\n const index = as([TYPE, arr], value);\n for (const entry of value)\n arr.push(pair(entry));\n return index;\n }\n case OBJECT: {\n if (type) {\n switch (type) {\n case 'BigInt':\n return as([type, value.toString()], value);\n case 'Boolean':\n case 'Number':\n case 'String':\n return as([type, value.valueOf()], value);\n }\n }\n\n if (json && ('toJSON' in value))\n return pair(value.toJSON());\n\n const entries = [];\n const index = as([TYPE, entries], value);\n for (const key of keys(value)) {\n if (strict || !shouldSkip(typeOf(value[key])))\n entries.push([pair(key), pair(value[key])]);\n }\n return index;\n }\n case DATE:\n return as([TYPE, value.toISOString()], value);\n case REGEXP: {\n const {source, flags} = value;\n return as([TYPE, {source, flags}], value);\n }\n case MAP: {\n const entries = [];\n const index = as([TYPE, entries], value);\n for (const [key, entry] of value) {\n if (strict || !(shouldSkip(typeOf(key)) || shouldSkip(typeOf(entry))))\n entries.push([pair(key), pair(entry)]);\n }\n return index;\n }\n case SET: {\n const entries = [];\n const index = as([TYPE, entries], value);\n for (const entry of value) {\n if (strict || !shouldSkip(typeOf(entry)))\n entries.push(pair(entry));\n }\n return index;\n }\n }\n\n const {message} = value;\n return as([TYPE, {name: type, message}], value);\n };\n\n return pair;\n};\n\n/**\n * @typedef {Array<string,any>} Record a type representation\n */\n\n/**\n * Returns an array of serialized Records.\n * @param {any} value a serializable value.\n * @param {{json?: boolean, lossy?: boolean}?} options an object with a `lossy` or `json` property that,\n * if `true`, will not throw errors on incompatible types, and behave more\n * like JSON stringify would behave. Symbol and Function will be discarded.\n * @returns {Record[]}\n */\n export const serialize = (value, {json, lossy} = {}) => {\n const _ = [];\n return serializer(!(json || lossy), !!json, new Map, _)(value), _;\n};\n","import {deserialize} from './deserialize.js';\nimport {serialize} from './serialize.js';\n\n/**\n * @typedef {Array<string,any>} Record a type representation\n */\n\n/**\n * Returns an array of serialized Records.\n * @param {any} any a serializable value.\n * @param {{transfer?: any[], json?: boolean, lossy?: boolean}?} options an object with\n * a transfer option (ignored when polyfilled) and/or non standard fields that\n * fallback to the polyfill if present.\n * @returns {Record[]}\n */\nexport default typeof structuredClone === \"function\" ?\n /* c8 ignore start */\n (any, options) => (\n options && ('json' in options || 'lossy' in options) ?\n deserialize(serialize(any, options)) : structuredClone(any)\n ) :\n (any, options) => deserialize(serialize(any, options));\n /* c8 ignore stop */\n\nexport {deserialize, serialize};\n"],"x_google_ignoreList":[0,1,2,3],"mappings":";AA6BA,IAAa,IAAW,EAAM,KAAK,GAUtB,IAAa,EAAM,OAAO;AAUvC,SAAS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,KAAK,CAAC,EAAK,CAAG,GAAG,EAAK,CAAK,CAAC,CAAC;IAEzC,OAAO;GACT;GACA,KAAA,GAAU;IACR,IAAM,IAAU,CAAC,GACX,IAAQ,EAAG,CAAC,GAAM,CAAO,GAAG,CAAK;IACvC,KAAK,IAAM,KAAS,GAClB,CAAI,KAAU,CAAC,EAAW,EAAO,CAAK,CAAC,MACrC,EAAQ,KAAK,EAAK,CAAK,CAAC;IAE5B,OAAO;GACT;EACF;EAEA,IAAM,EAAC,eAAW;EAClB,OAAO,EAAG,CAAC,GAAM;GAAC,MAAM;GAAM;EAAO,CAAC,GAAG,CAAK;CAChD;CAEA,OAAO;AACT,GAcc,KAAa,GAAO,EAAC,SAAM,aAAS,CAAC,MAAM;CACvD,IAAM,IAAI,CAAC;CACX,OAAO,EAAW,EAAE,KAAQ,IAAQ,CAAC,CAAC,mBAAM,IAAI,IAAE,GAAG,CAAC,EAAE,CAAK,GAAG;AAClE,GC3JA,IAAe,OAAO,mBAAoB,cAEvC,GAAK,MACJ,MAAY,UAAU,KAAW,WAAW,KAC1C,EAAY,EAAU,GAAK,CAAO,CAAC,IAAI,gBAAgB,CAAG,KAE7D,GAAK,MAAY,EAAY,EAAU,GAAK,CAAO,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { Streamdown, type StreamdownProps, type HighlightCode } from './streamdown.js';
2
+ export { parseMarkdownIntoBlocks } from './parse-blocks.js';
3
+ export { createAnimatePlugin, type AnimateOptions, type AnimatePlugin } from './animate.js';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,KAAK,eAAe,EAAE,KAAK,aAAa,EAAC,MAAM,iBAAiB,CAAA;AACpF,OAAO,EAAC,uBAAuB,EAAC,MAAM,mBAAmB,CAAA;AACzD,OAAO,EAAC,mBAAmB,EAAE,KAAK,cAAc,EAAE,KAAK,aAAa,EAAC,MAAM,cAAc,CAAA"}