@expressive/sql 0.7.0 → 0.8.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.
Files changed (45) hide show
  1. package/README.md +1 -1
  2. package/dist/codecs.d.ts +16 -0
  3. package/dist/codecs.js +104 -0
  4. package/dist/codecs.js.map +1 -0
  5. package/dist/connection/Connection.d.ts +5 -0
  6. package/dist/connection/Connection.js +39 -24
  7. package/dist/connection/Connection.js.map +1 -1
  8. package/dist/connection/Generator.js +1 -1
  9. package/dist/connection/Generator.js.map +1 -1
  10. package/dist/datatypes.d.ts +5 -25
  11. package/dist/datatypes.js +0 -4
  12. package/dist/datatypes.js.map +1 -1
  13. package/dist/index.d.ts +2 -6
  14. package/dist/index.js +2 -6
  15. package/dist/sqlite/SQLiteConnection.d.ts +1 -0
  16. package/dist/sqlite/SQLiteConnection.js +15 -8
  17. package/dist/sqlite/SQLiteConnection.js.map +1 -1
  18. package/dist/sqlite/SQLiteGenerator.d.ts +2 -2
  19. package/dist/sqlite/SQLiteGenerator.js +0 -3
  20. package/dist/sqlite/SQLiteGenerator.js.map +1 -1
  21. package/dist/sqlite/engine.js +3 -4
  22. package/dist/sqlite/engine.js.map +1 -1
  23. package/dist/sqlite/load.d.ts +6 -0
  24. package/dist/sqlite/load.js +9 -0
  25. package/dist/sqlite/load.js.map +1 -0
  26. package/dist/sqlite/load.native.d.ts +8 -0
  27. package/dist/sqlite/load.native.js +9 -0
  28. package/dist/sqlite/load.native.js.map +1 -0
  29. package/package.json +5 -2
  30. package/skills/expressive-sql/SKILL.md +16 -30
  31. package/dist/columns/Bool.d.ts +0 -37
  32. package/dist/columns/Bool.js +0 -28
  33. package/dist/columns/Bool.js.map +0 -1
  34. package/dist/columns/Num.d.ts +0 -59
  35. package/dist/columns/Num.js +0 -42
  36. package/dist/columns/Num.js.map +0 -1
  37. package/dist/columns/One.d.ts +0 -25
  38. package/dist/columns/One.js +0 -15
  39. package/dist/columns/One.js.map +0 -1
  40. package/dist/columns/Str.d.ts +0 -36
  41. package/dist/columns/Str.js +0 -21
  42. package/dist/columns/Str.js.map +0 -1
  43. package/dist/columns/Time.d.ts +0 -52
  44. package/dist/columns/Time.js +0 -45
  45. package/dist/columns/Time.js.map +0 -1
@@ -1,59 +0,0 @@
1
- import { num } from "@expressive/orm";
2
-
3
- //#region src/columns/Num.d.ts
4
- declare module '@expressive/orm' {
5
- namespace num {
6
- interface Integer extends NumericColumn {
7
- type: "integer";
8
- }
9
- interface SmallInt extends NumericColumn {
10
- type: "smallint";
11
- }
12
- interface BigInt extends NumericColumn {
13
- type: "bigint";
14
- }
15
- interface Real extends NumericColumn {
16
- type: "real";
17
- }
18
- interface Float extends NumericColumn {
19
- type: "float";
20
- }
21
- interface Double extends NumericColumn {
22
- type: "double";
23
- }
24
- interface Numeric extends NumericColumn {
25
- type: "numeric";
26
- precision: number;
27
- scale: number;
28
- }
29
- interface Decimal extends NumericColumn {
30
- type: "decimal";
31
- precision: number;
32
- scale: number;
33
- }
34
- interface Types {
35
- default: Integer;
36
- integer: Integer;
37
- smallint: SmallInt;
38
- bigint: BigInt;
39
- real: Real;
40
- float: Float;
41
- double: Double;
42
- numeric: Numeric;
43
- decimal: Decimal;
44
- }
45
- }
46
- }
47
- /**
48
- * Column class behind `num()` on SQL.
49
- *
50
- * Checks integer ranges and `numeric` precision and scale on write.
51
- */
52
- declare class NumericColumn extends num.Type {
53
- type: num.DataType;
54
- get datatype(): string;
55
- set(value: unknown): number | null | undefined;
56
- }
57
- //#endregion
58
- export { NumericColumn };
59
- //# sourceMappingURL=Num.d.ts.map
@@ -1,42 +0,0 @@
1
- import { num } from "@expressive/orm";
2
-
3
- //#region src/columns/Num.ts
4
- const RANGE = {
5
- smallint: [-32768, 32767],
6
- integer: [-2147483648, 2147483647],
7
- bigint: [-Infinity, Infinity]
8
- };
9
- /**
10
- * Column class behind `num()` on SQL.
11
- *
12
- * Checks integer ranges and `numeric` precision and scale on write.
13
- */
14
- var NumericColumn = class extends num.Type {
15
- constructor(..._args) {
16
- super(..._args);
17
- this.type = "integer";
18
- }
19
- get datatype() {
20
- return this.type === "double" ? "double precision" : super.datatype;
21
- }
22
- set(value) {
23
- const out = super.set(value);
24
- if (typeof value != "number") return out;
25
- const { type, precision, scale } = this;
26
- const range = RANGE[type];
27
- if (range) {
28
- const [min, max] = range;
29
- if (value !== Math.floor(value) || value < min || value > max) throw new Error(`Value ${value} out of range for ${type}.`);
30
- } else if (precision !== void 0) {
31
- const [whole, fraction = ""] = Math.abs(value).toString().split(".");
32
- if (whole.length + fraction.length > precision) throw new Error(`Value ${value} exceeds precision of ${precision}.`);
33
- if (scale !== void 0 && fraction.length > scale) throw new Error(`Value ${value} exceeds scale of ${scale}.`);
34
- }
35
- return out;
36
- }
37
- };
38
- num.Type = NumericColumn;
39
-
40
- //#endregion
41
- export { NumericColumn };
42
- //# sourceMappingURL=Num.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Num.js","names":[],"sources":["../../src/columns/Num.ts"],"sourcesContent":["import { num } from '@expressive/orm';\n\ndeclare module '@expressive/orm' {\n namespace num {\n interface Integer extends NumericColumn {\n type: \"integer\";\n }\n\n interface SmallInt extends NumericColumn {\n type: \"smallint\";\n }\n\n interface BigInt extends NumericColumn {\n type: \"bigint\";\n }\n\n interface Real extends NumericColumn {\n type: \"real\";\n }\n\n interface Float extends NumericColumn {\n type: \"float\";\n }\n\n interface Double extends NumericColumn {\n type: \"double\";\n }\n\n interface Numeric extends NumericColumn {\n type: \"numeric\";\n precision: number;\n scale: number;\n }\n\n interface Decimal extends NumericColumn {\n type: \"decimal\";\n precision: number;\n scale: number;\n }\n\n interface Types {\n default: Integer;\n integer: Integer;\n smallint: SmallInt;\n bigint: BigInt;\n real: Real;\n float: Float;\n double: Double;\n numeric: Numeric;\n decimal: Decimal;\n }\n }\n}\n\nconst RANGE: Record<string, [number, number]> = {\n smallint: [-32768, 32767],\n integer: [-2147483648, 2147483647],\n bigint: [-Infinity, Infinity]\n};\n\n/**\n * Column class behind `num()` on SQL.\n *\n * Checks integer ranges and `numeric` precision and scale on write.\n */\nexport class NumericColumn extends num.Type {\n type: num.DataType = \"integer\";\n\n get datatype() {\n return this.type === \"double\" ? \"double precision\" : super.datatype;\n }\n\n set(value: unknown) {\n const out = super.set(value);\n\n if (typeof value != \"number\")\n return out;\n\n const { type, precision, scale } = this;\n const range = RANGE[type];\n\n if (range) {\n const [min, max] = range;\n\n if (value !== Math.floor(value) || value < min || value > max)\n throw new Error(`Value ${value} out of range for ${type}.`);\n }\n else if (precision !== undefined) {\n const [whole, fraction = \"\"] = Math.abs(value).toString().split('.');\n\n if (whole.length + fraction.length > precision)\n throw new Error(`Value ${value} exceeds precision of ${precision}.`);\n\n if (scale !== undefined && fraction.length > scale)\n throw new Error(`Value ${value} exceeds scale of ${scale}.`);\n }\n\n return out;\n }\n}\n\nnum.Type = NumericColumn;\n"],"mappings":";;;AAsDA,MAAM,QAA0C;CAC9C,UAAU,CAAC,QAAQ,MAAM;CACzB,SAAS,CAAC,aAAa,WAAW;CAClC,QAAQ,CAAC,WAAW,SAAS;CAC9B;;;;;;AAOD,IAAa,gBAAb,cAAmC,IAAI,KAAK;;;cACrB;;CAErB,IAAI,WAAW;AACb,SAAO,KAAK,SAAS,WAAW,qBAAqB,MAAM;;CAG7D,IAAI,OAAgB;EAClB,MAAM,MAAM,MAAM,IAAI,MAAM;AAE5B,MAAI,OAAO,SAAS,SAClB,QAAO;EAET,MAAM,EAAE,MAAM,WAAW,UAAU;EACnC,MAAM,QAAQ,MAAM;AAEpB,MAAI,OAAO;GACT,MAAM,CAAC,KAAK,OAAO;AAEnB,OAAI,UAAU,KAAK,MAAM,MAAM,IAAI,QAAQ,OAAO,QAAQ,IACxD,OAAM,IAAI,MAAM,SAAS,MAAM,oBAAoB,KAAK,GAAG;aAEtD,cAAc,QAAW;GAChC,MAAM,CAAC,OAAO,WAAW,MAAM,KAAK,IAAI,MAAM,CAAC,UAAU,CAAC,MAAM,IAAI;AAEpE,OAAI,MAAM,SAAS,SAAS,SAAS,UACnC,OAAM,IAAI,MAAM,SAAS,MAAM,wBAAwB,UAAU,GAAG;AAEtE,OAAI,UAAU,UAAa,SAAS,SAAS,MAC3C,OAAM,IAAI,MAAM,SAAS,MAAM,oBAAoB,MAAM,GAAG;;AAGhE,SAAO;;;AAIX,IAAI,OAAO"}
@@ -1,25 +0,0 @@
1
- import { Type, one } from "@expressive/orm";
2
-
3
- //#region src/columns/One.d.ts
4
- declare module '@expressive/orm' {
5
- namespace one {
6
- interface Integer<T extends Type = Type> extends ForeignColumn<T> {
7
- type: "integer";
8
- }
9
- interface BigInt<T extends Type = Type> extends ForeignColumn<T> {
10
- type: "bigint";
11
- }
12
- interface Types {
13
- default: Integer;
14
- integer: Integer;
15
- bigint: BigInt;
16
- }
17
- }
18
- }
19
- /** Column class behind `one()` on SQL - an `integer` or `bigint` foreign key. */
20
- declare class ForeignColumn<T extends Type = Type> extends one.Type<T> {
21
- type: one.DataType;
22
- }
23
- //#endregion
24
- export { ForeignColumn };
25
- //# sourceMappingURL=One.d.ts.map
@@ -1,15 +0,0 @@
1
- import { one } from "@expressive/orm";
2
-
3
- //#region src/columns/One.ts
4
- /** Column class behind `one()` on SQL - an `integer` or `bigint` foreign key. */
5
- var ForeignColumn = class extends one.Type {
6
- constructor(..._args) {
7
- super(..._args);
8
- this.type = "integer";
9
- }
10
- };
11
- one.Type = ForeignColumn;
12
-
13
- //#endregion
14
- export { ForeignColumn };
15
- //# sourceMappingURL=One.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"One.js","names":[],"sources":["../../src/columns/One.ts"],"sourcesContent":["import { one, type Type } from '@expressive/orm';\n\ndeclare module '@expressive/orm' {\n namespace one {\n interface Integer<T extends Type = Type> extends ForeignColumn<T> {\n type: \"integer\";\n }\n\n interface BigInt<T extends Type = Type> extends ForeignColumn<T> {\n type: \"bigint\";\n }\n\n interface Types {\n default: Integer;\n integer: Integer;\n bigint: BigInt;\n }\n }\n}\n\n/** Column class behind `one()` on SQL - an `integer` or `bigint` foreign key. */\nexport class ForeignColumn<T extends Type = Type> extends one.Type<T> {\n type: one.DataType = \"integer\";\n}\n\none.Type = ForeignColumn;\n"],"mappings":";;;;AAqBA,IAAa,gBAAb,cAA0D,IAAI,KAAQ;;;cAC/C;;;AAGvB,IAAI,OAAO"}
@@ -1,36 +0,0 @@
1
- import { str } from "@expressive/orm";
2
-
3
- //#region src/columns/Str.d.ts
4
- declare module '@expressive/orm' {
5
- namespace str {
6
- interface Text extends StringColumn {
7
- type: "text";
8
- }
9
- interface VarChar extends StringColumn {
10
- type: "varchar";
11
- length: number;
12
- }
13
- interface Char extends StringColumn {
14
- type: "char";
15
- length: number;
16
- }
17
- interface UUID extends StringColumn {
18
- type: "uuid";
19
- }
20
- interface Types {
21
- default: Text;
22
- text: Text;
23
- varchar: VarChar;
24
- char: Char;
25
- uuid: UUID;
26
- }
27
- }
28
- }
29
- /** Column class behind `str()` on SQL - `text`, `varchar`, `char` or `uuid`. */
30
- declare class StringColumn extends str.Type {
31
- type: str.DataType;
32
- get datatype(): string;
33
- }
34
- //#endregion
35
- export { StringColumn };
36
- //# sourceMappingURL=Str.d.ts.map
@@ -1,21 +0,0 @@
1
- import { str } from "@expressive/orm";
2
-
3
- //#region src/columns/Str.ts
4
- /** Column class behind `str()` on SQL - `text`, `varchar`, `char` or `uuid`. */
5
- var StringColumn = class extends str.Type {
6
- constructor(..._args) {
7
- super(..._args);
8
- this.type = "text";
9
- }
10
- get datatype() {
11
- let { type, length, collate } = this;
12
- if (type.endsWith("char") && length) type += `(${length})`;
13
- if (collate) type += ` COLLATE "${collate}"`;
14
- return type;
15
- }
16
- };
17
- str.Type = StringColumn;
18
-
19
- //#endregion
20
- export { StringColumn };
21
- //# sourceMappingURL=Str.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Str.js","names":[],"sources":["../../src/columns/Str.ts"],"sourcesContent":["import { str } from '@expressive/orm';\n\ndeclare module '@expressive/orm' {\n namespace str {\n interface Text extends StringColumn {\n type: \"text\";\n }\n\n interface VarChar extends StringColumn {\n type: \"varchar\";\n length: number;\n }\n\n interface Char extends StringColumn {\n type: \"char\";\n length: number;\n }\n\n interface UUID extends StringColumn {\n type: \"uuid\";\n }\n\n interface Types {\n default: Text;\n text: Text;\n varchar: VarChar;\n char: Char;\n uuid: UUID;\n }\n }\n}\n\n/** Column class behind `str()` on SQL - `text`, `varchar`, `char` or `uuid`. */\nexport class StringColumn extends str.Type {\n type: str.DataType = \"text\";\n\n get datatype() {\n let { type, length, collate } = this;\n\n if (type.endsWith(\"char\") && length)\n type += `(${length})`;\n\n if (collate)\n type += ` COLLATE \"${collate}\"`;\n\n return type;\n }\n}\n\nstr.Type = StringColumn;\n"],"mappings":";;;;AAiCA,IAAa,eAAb,cAAkC,IAAI,KAAK;;;cACpB;;CAErB,IAAI,WAAW;EACb,IAAI,EAAE,MAAM,QAAQ,YAAY;AAEhC,MAAI,KAAK,SAAS,OAAO,IAAI,OAC3B,SAAQ,IAAI,OAAO;AAErB,MAAI,QACF,SAAQ,aAAa,QAAQ;AAE/B,SAAO;;;AAIX,IAAI,OAAO"}
@@ -1,52 +0,0 @@
1
- import { date } from "@expressive/orm";
2
-
3
- //#region src/columns/Time.d.ts
4
- declare module '@expressive/orm' {
5
- namespace date {
6
- interface Timestamp extends TimeColumn {
7
- type: "timestamp";
8
- }
9
- interface Day extends TimeColumn {
10
- type: "date";
11
- }
12
- interface Time extends TimeColumn {
13
- type: "time";
14
- }
15
- interface Integer extends TimeColumn {
16
- type: "integer";
17
- }
18
- interface Text extends TimeColumn {
19
- type: "text";
20
- }
21
- interface Ms extends TimeColumn {
22
- type: "ms";
23
- }
24
- interface Seconds extends TimeColumn {
25
- type: "seconds";
26
- }
27
- interface Types {
28
- default: Timestamp;
29
- timestamp: Timestamp;
30
- date: Day;
31
- time: Time;
32
- integer: Integer;
33
- text: Text;
34
- ms: Ms;
35
- seconds: Seconds;
36
- }
37
- }
38
- }
39
- /**
40
- * Column class behind `date()` on SQL.
41
- *
42
- * Stores a Date as `timestamp`, `date`, `time`, `ms`, `seconds`, `integer` or `text`.
43
- */
44
- declare class TimeColumn extends date.Type {
45
- type: date.DataType;
46
- get datatype(): string;
47
- get(value: unknown): Date | undefined;
48
- set(value: unknown): string | number | undefined;
49
- }
50
- //#endregion
51
- export { TimeColumn };
52
- //# sourceMappingURL=Time.d.ts.map
@@ -1,45 +0,0 @@
1
- import { date } from "@expressive/orm";
2
-
3
- //#region src/columns/Time.ts
4
- /**
5
- * Column class behind `date()` on SQL.
6
- *
7
- * Stores a Date as `timestamp`, `date`, `time`, `ms`, `seconds`, `integer` or `text`.
8
- */
9
- var TimeColumn = class extends date.Type {
10
- constructor(..._args) {
11
- super(..._args);
12
- this.type = "timestamp";
13
- }
14
- get datatype() {
15
- const { type } = this;
16
- return type === "ms" ? "bigint" : type === "seconds" ? "integer" : super.datatype;
17
- }
18
- get(value) {
19
- if (value == null) return void 0;
20
- if (this.type === "ms") return new Date(Number(value));
21
- if (typeof value === "number") return /* @__PURE__ */ new Date(value * 1e3);
22
- if (typeof value === "string" && this.type === "date") {
23
- const [year, month, day] = value.split("-").map(Number);
24
- return new Date(year, month - 1, day);
25
- }
26
- if (typeof value === "string" && this.type === "time") return /* @__PURE__ */ new Date(`1970-01-01T${value}Z`);
27
- if (typeof value === "string" && /^\d{4}-\d\d-\d\d \d\d:\d\d:\d\d(\.\d+)?$/.test(value)) return /* @__PURE__ */ new Date(value.replace(" ", "T") + "Z");
28
- return new Date(value);
29
- }
30
- set(value) {
31
- const iso = super.set(value);
32
- if (iso === void 0) return iso;
33
- const date = new Date(iso);
34
- if (this.type === "ms") return date.getTime();
35
- if (this.type === "integer" || this.type === "seconds") return Math.floor(date.getTime() / 1e3);
36
- if (this.type === "date") return date.toISOString().slice(0, 10);
37
- if (this.type === "time") return date.toISOString().slice(11, 19);
38
- return iso;
39
- }
40
- };
41
- date.Type = TimeColumn;
42
-
43
- //#endregion
44
- export { TimeColumn };
45
- //# sourceMappingURL=Time.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Time.js","names":[],"sources":["../../src/columns/Time.ts"],"sourcesContent":["import { date } from '@expressive/orm';\n\ndeclare module '@expressive/orm' {\n namespace date {\n interface Timestamp extends TimeColumn {\n type: \"timestamp\";\n }\n\n interface Day extends TimeColumn {\n type: \"date\";\n }\n\n interface Time extends TimeColumn {\n type: \"time\";\n }\n\n interface Integer extends TimeColumn {\n type: \"integer\";\n }\n\n interface Text extends TimeColumn {\n type: \"text\";\n }\n\n interface Ms extends TimeColumn {\n type: \"ms\";\n }\n\n interface Seconds extends TimeColumn {\n type: \"seconds\";\n }\n\n interface Types {\n default: Timestamp;\n timestamp: Timestamp;\n date: Day;\n time: Time;\n integer: Integer;\n text: Text;\n ms: Ms;\n seconds: Seconds;\n }\n }\n}\n\n/**\n * Column class behind `date()` on SQL.\n *\n * Stores a Date as `timestamp`, `date`, `time`, `ms`, `seconds`, `integer` or `text`.\n */\nexport class TimeColumn extends date.Type {\n type: date.DataType = \"timestamp\";\n\n get datatype() {\n const { type } = this;\n\n return type === \"ms\" ? \"bigint\" : type === \"seconds\" ? \"integer\" : super.datatype;\n }\n\n get(value: unknown) {\n if (value == null)\n return undefined;\n\n if (this.type === \"ms\")\n return new Date(Number(value));\n\n if (typeof value === 'number')\n return new Date(value * 1000);\n\n if (typeof value === 'string' && this.type === \"date\") {\n const [year, month, day] = value.split('-').map(Number);\n return new Date(year, month - 1, day);\n }\n\n if (typeof value === 'string' && this.type === \"time\")\n return new Date(`1970-01-01T${value}Z`);\n\n if (typeof value === 'string' && /^\\d{4}-\\d\\d-\\d\\d \\d\\d:\\d\\d:\\d\\d(\\.\\d+)?$/.test(value))\n return new Date(value.replace(\" \", \"T\") + \"Z\");\n\n return new Date(value as string | Date);\n }\n\n set(value: unknown) {\n const iso = super.set(value);\n\n if (iso === undefined)\n return iso;\n\n const date = new Date(iso);\n\n if (this.type === \"ms\")\n return date.getTime();\n\n if (this.type === \"integer\" || this.type === \"seconds\")\n return Math.floor(date.getTime() / 1000);\n\n if (this.type === \"date\")\n return date.toISOString().slice(0, 10);\n\n if (this.type === \"time\")\n return date.toISOString().slice(11, 19);\n\n return iso;\n }\n}\n\ndate.Type = TimeColumn;\n"],"mappings":";;;;;;;;AAkDA,IAAa,aAAb,cAAgC,KAAK,KAAK;;;cAClB;;CAEtB,IAAI,WAAW;EACb,MAAM,EAAE,SAAS;AAEjB,SAAO,SAAS,OAAO,WAAW,SAAS,YAAY,YAAY,MAAM;;CAG3E,IAAI,OAAgB;AAClB,MAAI,SAAS,KACX,QAAO;AAET,MAAI,KAAK,SAAS,KAChB,QAAO,IAAI,KAAK,OAAO,MAAM,CAAC;AAEhC,MAAI,OAAO,UAAU,SACnB,wBAAO,IAAI,KAAK,QAAQ,IAAK;AAE/B,MAAI,OAAO,UAAU,YAAY,KAAK,SAAS,QAAQ;GACrD,MAAM,CAAC,MAAM,OAAO,OAAO,MAAM,MAAM,IAAI,CAAC,IAAI,OAAO;AACvD,UAAO,IAAI,KAAK,MAAM,QAAQ,GAAG,IAAI;;AAGvC,MAAI,OAAO,UAAU,YAAY,KAAK,SAAS,OAC7C,wBAAO,IAAI,KAAK,cAAc,MAAM,GAAG;AAEzC,MAAI,OAAO,UAAU,YAAY,2CAA2C,KAAK,MAAM,CACrF,wBAAO,IAAI,KAAK,MAAM,QAAQ,KAAK,IAAI,GAAG,IAAI;AAEhD,SAAO,IAAI,KAAK,MAAuB;;CAGzC,IAAI,OAAgB;EAClB,MAAM,MAAM,MAAM,IAAI,MAAM;AAE5B,MAAI,QAAQ,OACV,QAAO;EAET,MAAM,OAAO,IAAI,KAAK,IAAI;AAE1B,MAAI,KAAK,SAAS,KAChB,QAAO,KAAK,SAAS;AAEvB,MAAI,KAAK,SAAS,aAAa,KAAK,SAAS,UAC3C,QAAO,KAAK,MAAM,KAAK,SAAS,GAAG,IAAK;AAE1C,MAAI,KAAK,SAAS,OAChB,QAAO,KAAK,aAAa,CAAC,MAAM,GAAG,GAAG;AAExC,MAAI,KAAK,SAAS,OAChB,QAAO,KAAK,aAAa,CAAC,MAAM,IAAI,GAAG;AAEzC,SAAO;;;AAIX,KAAK,OAAO"}