@happyvertical/smrt-inventory 0.55.7 → 0.55.8
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/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +106 -32
- package/dist/index.js.map +1 -1
- package/dist/manifest.json +170 -14
- package/dist/models/InventoryLocation.d.ts.map +1 -1
- package/dist/models/StockLevel.d.ts.map +1 -1
- package/dist/models/StockMovement.d.ts.map +1 -1
- package/dist/recipes.d.ts +83 -0
- package/dist/recipes.d.ts.map +1 -0
- package/dist/smrt-knowledge.json +146 -19
- package/package.json +7 -7
package/dist/manifest.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"version": "1.0.0",
|
|
3
3
|
"timestamp": 0,
|
|
4
4
|
"packageName": "@happyvertical/smrt-inventory",
|
|
5
|
-
"packageVersion": "0.55.
|
|
5
|
+
"packageVersion": "0.55.8",
|
|
6
6
|
"objects": {
|
|
7
7
|
"@happyvertical/smrt-inventory:InventoryLocationCollection": {
|
|
8
8
|
"name": "inventorylocationcollection",
|
|
@@ -626,19 +626,29 @@
|
|
|
626
626
|
"type": "text",
|
|
627
627
|
"required": true,
|
|
628
628
|
"default": "",
|
|
629
|
+
"description": "A short code for the place stock is kept, for example MAIN.",
|
|
629
630
|
"_meta": {
|
|
630
|
-
"required": true
|
|
631
|
+
"required": true,
|
|
632
|
+
"description": "A short code for the place stock is kept, for example MAIN."
|
|
631
633
|
}
|
|
632
634
|
},
|
|
633
635
|
"name": {
|
|
634
636
|
"type": "text",
|
|
635
637
|
"required": false,
|
|
636
|
-
"default": ""
|
|
638
|
+
"default": "",
|
|
639
|
+
"description": "What you call the place, for example Main warehouse.",
|
|
640
|
+
"_meta": {
|
|
641
|
+
"description": "What you call the place, for example Main warehouse."
|
|
642
|
+
}
|
|
637
643
|
},
|
|
638
644
|
"kind": {
|
|
639
645
|
"type": "text",
|
|
640
646
|
"required": false,
|
|
641
|
-
"default": "warehouse"
|
|
647
|
+
"default": "warehouse",
|
|
648
|
+
"description": "What sort of place it is, for example a warehouse or a shop floor.",
|
|
649
|
+
"_meta": {
|
|
650
|
+
"description": "What sort of place it is, for example a warehouse or a shop floor."
|
|
651
|
+
}
|
|
642
652
|
},
|
|
643
653
|
"placeId": {
|
|
644
654
|
"type": "text",
|
|
@@ -813,24 +823,30 @@
|
|
|
813
823
|
"type": "text",
|
|
814
824
|
"required": true,
|
|
815
825
|
"default": "",
|
|
826
|
+
"description": "The item being counted.",
|
|
816
827
|
"_meta": {
|
|
817
|
-
"required": true
|
|
828
|
+
"required": true,
|
|
829
|
+
"description": "The item being counted."
|
|
818
830
|
}
|
|
819
831
|
},
|
|
820
832
|
"locationId": {
|
|
821
833
|
"type": "text",
|
|
822
834
|
"required": true,
|
|
823
835
|
"default": "",
|
|
836
|
+
"description": "Where the stock is kept.",
|
|
824
837
|
"_meta": {
|
|
825
|
-
"required": true
|
|
838
|
+
"required": true,
|
|
839
|
+
"description": "Where the stock is kept."
|
|
826
840
|
}
|
|
827
841
|
},
|
|
828
842
|
"state": {
|
|
829
843
|
"type": "text",
|
|
830
844
|
"required": true,
|
|
831
845
|
"default": "available",
|
|
846
|
+
"description": "The state of this stock: available, allocated, wip, qc_hold or damaged.",
|
|
832
847
|
"_meta": {
|
|
833
|
-
"required": true
|
|
848
|
+
"required": true,
|
|
849
|
+
"description": "The state of this stock: available, allocated, wip, qc_hold or damaged."
|
|
834
850
|
},
|
|
835
851
|
"enum": [
|
|
836
852
|
"available",
|
|
@@ -843,7 +859,10 @@
|
|
|
843
859
|
"qty": {
|
|
844
860
|
"type": "decimal",
|
|
845
861
|
"required": false,
|
|
846
|
-
"
|
|
862
|
+
"description": "How many are on hand.",
|
|
863
|
+
"_meta": {
|
|
864
|
+
"description": "How many are on hand."
|
|
865
|
+
}
|
|
847
866
|
},
|
|
848
867
|
"reorderPoint": {
|
|
849
868
|
"type": "decimal",
|
|
@@ -1041,21 +1060,29 @@
|
|
|
1041
1060
|
"type": "text",
|
|
1042
1061
|
"required": true,
|
|
1043
1062
|
"default": "",
|
|
1063
|
+
"description": "The item that moved.",
|
|
1044
1064
|
"_meta": {
|
|
1045
|
-
"required": true
|
|
1065
|
+
"required": true,
|
|
1066
|
+
"description": "The item that moved."
|
|
1046
1067
|
}
|
|
1047
1068
|
},
|
|
1048
1069
|
"locationId": {
|
|
1049
1070
|
"type": "text",
|
|
1050
1071
|
"required": true,
|
|
1051
1072
|
"default": "",
|
|
1073
|
+
"description": "The place it moved at.",
|
|
1052
1074
|
"_meta": {
|
|
1053
|
-
"required": true
|
|
1075
|
+
"required": true,
|
|
1076
|
+
"description": "The place it moved at."
|
|
1054
1077
|
}
|
|
1055
1078
|
},
|
|
1056
1079
|
"fromState": {
|
|
1057
1080
|
"type": "text",
|
|
1058
1081
|
"required": false,
|
|
1082
|
+
"description": "What it was before, for example available or damaged.",
|
|
1083
|
+
"_meta": {
|
|
1084
|
+
"description": "What it was before, for example available or damaged."
|
|
1085
|
+
},
|
|
1059
1086
|
"enum": [
|
|
1060
1087
|
"available",
|
|
1061
1088
|
"allocated",
|
|
@@ -1067,6 +1094,10 @@
|
|
|
1067
1094
|
"toState": {
|
|
1068
1095
|
"type": "text",
|
|
1069
1096
|
"required": false,
|
|
1097
|
+
"description": "What it became.",
|
|
1098
|
+
"_meta": {
|
|
1099
|
+
"description": "What it became."
|
|
1100
|
+
},
|
|
1070
1101
|
"enum": [
|
|
1071
1102
|
"available",
|
|
1072
1103
|
"allocated",
|
|
@@ -1078,14 +1109,19 @@
|
|
|
1078
1109
|
"qty": {
|
|
1079
1110
|
"type": "decimal",
|
|
1080
1111
|
"required": false,
|
|
1081
|
-
"
|
|
1112
|
+
"description": "How many moved.",
|
|
1113
|
+
"_meta": {
|
|
1114
|
+
"description": "How many moved."
|
|
1115
|
+
}
|
|
1082
1116
|
},
|
|
1083
1117
|
"reasonCode": {
|
|
1084
1118
|
"type": "text",
|
|
1085
1119
|
"required": true,
|
|
1086
1120
|
"default": "adjustment",
|
|
1121
|
+
"description": "Why it moved, for example adjustment, sale or return.",
|
|
1087
1122
|
"_meta": {
|
|
1088
|
-
"required": true
|
|
1123
|
+
"required": true,
|
|
1124
|
+
"description": "Why it moved, for example adjustment, sale or return."
|
|
1089
1125
|
}
|
|
1090
1126
|
},
|
|
1091
1127
|
"sourceType": {
|
|
@@ -1106,11 +1142,19 @@
|
|
|
1106
1142
|
"note": {
|
|
1107
1143
|
"type": "text",
|
|
1108
1144
|
"required": false,
|
|
1109
|
-
"default": ""
|
|
1145
|
+
"default": "",
|
|
1146
|
+
"description": "Anything worth remembering about this movement.",
|
|
1147
|
+
"_meta": {
|
|
1148
|
+
"description": "Anything worth remembering about this movement."
|
|
1149
|
+
}
|
|
1110
1150
|
},
|
|
1111
1151
|
"occurredAt": {
|
|
1112
1152
|
"type": "datetime",
|
|
1113
|
-
"required": false
|
|
1153
|
+
"required": false,
|
|
1154
|
+
"description": "When it happened.",
|
|
1155
|
+
"_meta": {
|
|
1156
|
+
"description": "When it happened."
|
|
1157
|
+
}
|
|
1114
1158
|
}
|
|
1115
1159
|
},
|
|
1116
1160
|
"methods": {},
|
|
@@ -1287,9 +1331,121 @@
|
|
|
1287
1331
|
}
|
|
1288
1332
|
},
|
|
1289
1333
|
"moduleType": "smrt",
|
|
1334
|
+
"recipes": [
|
|
1335
|
+
{
|
|
1336
|
+
"id": "inventory.stock",
|
|
1337
|
+
"className": "StockRecipe",
|
|
1338
|
+
"label": "Inventory",
|
|
1339
|
+
"summary": "Keep count of how many of each product you have.",
|
|
1340
|
+
"synonyms": [
|
|
1341
|
+
"stock",
|
|
1342
|
+
"quantity",
|
|
1343
|
+
"on hand"
|
|
1344
|
+
],
|
|
1345
|
+
"models": [
|
|
1346
|
+
"@happyvertical/smrt-inventory:StockLevel",
|
|
1347
|
+
"@happyvertical/smrt-inventory:InventoryLocation",
|
|
1348
|
+
"@happyvertical/smrt-inventory:StockMovement"
|
|
1349
|
+
],
|
|
1350
|
+
"nav": [
|
|
1351
|
+
{
|
|
1352
|
+
"label": "Stock levels",
|
|
1353
|
+
"model": "@happyvertical/smrt-inventory:StockLevel",
|
|
1354
|
+
"icon": "archive",
|
|
1355
|
+
"description": "How much of each item you have on hand right now.",
|
|
1356
|
+
"noun": "stock entry"
|
|
1357
|
+
},
|
|
1358
|
+
{
|
|
1359
|
+
"label": "Locations",
|
|
1360
|
+
"model": "@happyvertical/smrt-inventory:InventoryLocation",
|
|
1361
|
+
"icon": "home",
|
|
1362
|
+
"description": "The places you keep stock, like shelves, rooms or vans."
|
|
1363
|
+
},
|
|
1364
|
+
{
|
|
1365
|
+
"label": "Stock movements",
|
|
1366
|
+
"model": "@happyvertical/smrt-inventory:StockMovement",
|
|
1367
|
+
"icon": "truck",
|
|
1368
|
+
"description": "Every time stock came in, went out or moved."
|
|
1369
|
+
}
|
|
1370
|
+
],
|
|
1371
|
+
"requires": [],
|
|
1372
|
+
"requiresAny": [
|
|
1373
|
+
[
|
|
1374
|
+
"products.simple",
|
|
1375
|
+
"products.clothing"
|
|
1376
|
+
]
|
|
1377
|
+
],
|
|
1378
|
+
"section": {
|
|
1379
|
+
"id": "catalog",
|
|
1380
|
+
"label": "Catalog",
|
|
1381
|
+
"icon": "package",
|
|
1382
|
+
"description": "Products, ingredients and the stock you hold."
|
|
1383
|
+
},
|
|
1384
|
+
"options": {
|
|
1385
|
+
"@happyvertical/smrt-inventory:StockLevel": {
|
|
1386
|
+
"fields": {
|
|
1387
|
+
"reorderPoint": {
|
|
1388
|
+
"visibility": "hidden"
|
|
1389
|
+
},
|
|
1390
|
+
"reorderQuantity": {
|
|
1391
|
+
"visibility": "hidden"
|
|
1392
|
+
}
|
|
1393
|
+
}
|
|
1394
|
+
},
|
|
1395
|
+
"@happyvertical/smrt-inventory:InventoryLocation": {
|
|
1396
|
+
"fields": {
|
|
1397
|
+
"placeId": {
|
|
1398
|
+
"visibility": "hidden"
|
|
1399
|
+
},
|
|
1400
|
+
"active": {
|
|
1401
|
+
"visibility": "hidden"
|
|
1402
|
+
}
|
|
1403
|
+
}
|
|
1404
|
+
},
|
|
1405
|
+
"@happyvertical/smrt-inventory:StockMovement": {
|
|
1406
|
+
"fields": {
|
|
1407
|
+
"sourceType": {
|
|
1408
|
+
"visibility": "hidden"
|
|
1409
|
+
},
|
|
1410
|
+
"sourceId": {
|
|
1411
|
+
"visibility": "hidden"
|
|
1412
|
+
},
|
|
1413
|
+
"actorProfileId": {
|
|
1414
|
+
"visibility": "hidden"
|
|
1415
|
+
}
|
|
1416
|
+
}
|
|
1417
|
+
}
|
|
1418
|
+
},
|
|
1419
|
+
"help": {
|
|
1420
|
+
"markdown": "## Overview\n\nInventory keeps count of how many of each product you have. Each count is a\nstock level: an item, the place it is kept and how many are on hand. Stock can\nsit in more than one place, and every change is recorded as a stock movement so\nthere is a trail.\n\n## Tasks\n\n### Count what you have\n\n1. Create a stock level for the item and the place it is kept.\n2. Set **{field:qty}** to how many you have on hand.\n3. Set **{field:state}** if the stock is not available to sell, for example\n allocated or on quality hold.\n\n### Correct a count\n\n1. Find the stock level for the item.\n2. Set **{field:qty}** to what you really have. Record why as a stock movement.\n\n### Keep stock in more than one place\n\n1. Add a location with a **{field:code}** and a **{field:name}**, and say what\n sort it is in **{field:kind}**.\n2. Create stock levels against that location.\n",
|
|
1421
|
+
"fieldRefs": [
|
|
1422
|
+
"code",
|
|
1423
|
+
"kind",
|
|
1424
|
+
"name",
|
|
1425
|
+
"qty",
|
|
1426
|
+
"state"
|
|
1427
|
+
]
|
|
1428
|
+
},
|
|
1429
|
+
"demo": {
|
|
1430
|
+
"mode": "server",
|
|
1431
|
+
"reasons": [
|
|
1432
|
+
"Needs a server because its package depends on @happyvertical/smrt-tenancy, which do not build for a browser (#3624)."
|
|
1433
|
+
]
|
|
1434
|
+
}
|
|
1435
|
+
}
|
|
1436
|
+
],
|
|
1290
1437
|
"smrtDependencies": [
|
|
1291
1438
|
"@happyvertical/smrt-core",
|
|
1292
1439
|
"@happyvertical/smrt-tenancy"
|
|
1293
1440
|
],
|
|
1441
|
+
"browser": {
|
|
1442
|
+
"status": "server-only",
|
|
1443
|
+
"issues": [
|
|
1444
|
+
"#3624"
|
|
1445
|
+
],
|
|
1446
|
+
"via": [
|
|
1447
|
+
"@happyvertical/smrt-tenancy"
|
|
1448
|
+
]
|
|
1449
|
+
},
|
|
1294
1450
|
"stampsConstructors": true
|
|
1295
1451
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InventoryLocation.d.ts","sourceRoot":"","sources":["../../src/models/InventoryLocation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAEL,UAAU,EACV,KAAK,iBAAiB,EAEvB,MAAM,0BAA0B,CAAC;AAElC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAEzD;;GAEG;AACH,MAAM,WAAW,wBAAyB,SAAQ,iBAAiB;IACjE,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,qBAAqB,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,qBAQa,iBAAkB,SAAQ,UAAU;IAC/C,gEAAgE;IAEhE,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAQ;IAE/B;;;OAGG;
|
|
1
|
+
{"version":3,"file":"InventoryLocation.d.ts","sourceRoot":"","sources":["../../src/models/InventoryLocation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAEL,UAAU,EACV,KAAK,iBAAiB,EAEvB,MAAM,0BAA0B,CAAC;AAElC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAEzD;;GAEG;AACH,MAAM,WAA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AC;CACjC;AAED,qBAgBa,UAAW,SAAQ,UAAU;IACxC,0DAA0D;IAE1D,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAQ;IAE/B,iEAAiE;
|
|
1
|
+
{"version":3,"file":"StockLevel.d.ts","sourceRoot":"","sources":["../../src/models/StockLevel.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAEL,UAAU,EACV,KAAK,iBAAiB,EAEvB,MAAM,0BAA0B,CAAC;AAElC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C;;GAEG;AACH,MAAM,WAAW,iBAAkB,SAAQ,iBAAiB;IAC1D,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC;AAED,qBAgBa,UAAW,SAAQ,UAAU;IACxC,0DAA0D;IAE1D,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAQ;IAE/B,iEAAiE;IAKjE,KAAK,EAAE,MAAM,CAAM;IAEnB,+EAA+E;IAK/E,UAAU,EAAE,MAAM,CAAM;IAExB,6EAA6E;IAM7E,KAAK,EAAE,UAAU,CAAe;IAEhC;;;;OAIG;IAEH,GAAG,EAAE,MAAM,CAAO;IAElB,mEAAmE;IAEnE,YAAY,EAAE,MAAM,GAAG,IAAI,CAAQ;IAEnC,+EAA+E;IAE/E,eAAe,EAAE,MAAM,GAAG,IAAI,CAAQ;gBAE1B,OAAO,GAAE,iBAAsB;CAY5C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StockMovement.d.ts","sourceRoot":"","sources":["../../src/models/St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B/C"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Declared recipes for smrt-inventory (#3590, #3604): user-facing units of
|
|
3
|
+
* functionality an app or agent can pick instead of the whole package.
|
|
4
|
+
* The scanner reads these statics into the `recipes` array of `manifest.json`
|
|
5
|
+
* and `smrt-knowledge.json`; nothing here runs at that point.
|
|
6
|
+
*
|
|
7
|
+
* @packageDocumentation
|
|
8
|
+
*/
|
|
9
|
+
import { SmrtRecipe } from '@happyvertical/smrt-core';
|
|
10
|
+
import { InventoryLocation } from './models/InventoryLocation.js';
|
|
11
|
+
import { StockLevel } from './models/StockLevel.js';
|
|
12
|
+
import { StockMovement } from './models/StockMovement.js';
|
|
13
|
+
/** Inventory: Keep count of how many of each product you have. */
|
|
14
|
+
export declare class StockRecipe extends SmrtRecipe {
|
|
15
|
+
static id: string;
|
|
16
|
+
static help: string;
|
|
17
|
+
static label: string;
|
|
18
|
+
static summary: string;
|
|
19
|
+
static synonyms: string[];
|
|
20
|
+
static section: {
|
|
21
|
+
id: string;
|
|
22
|
+
label: string;
|
|
23
|
+
icon: string;
|
|
24
|
+
description: string;
|
|
25
|
+
};
|
|
26
|
+
static models: (typeof InventoryLocation | typeof StockLevel | typeof StockMovement)[];
|
|
27
|
+
static nav: ({
|
|
28
|
+
label: string;
|
|
29
|
+
model: typeof StockLevel;
|
|
30
|
+
icon: string;
|
|
31
|
+
description: string;
|
|
32
|
+
noun: string;
|
|
33
|
+
} | {
|
|
34
|
+
label: string;
|
|
35
|
+
model: typeof InventoryLocation;
|
|
36
|
+
icon: string;
|
|
37
|
+
description: string;
|
|
38
|
+
noun?: undefined;
|
|
39
|
+
} | {
|
|
40
|
+
label: string;
|
|
41
|
+
model: typeof StockMovement;
|
|
42
|
+
icon: string;
|
|
43
|
+
description: string;
|
|
44
|
+
noun?: undefined;
|
|
45
|
+
})[];
|
|
46
|
+
static requiresAny: string[][];
|
|
47
|
+
static options: {
|
|
48
|
+
readonly StockLevel: {
|
|
49
|
+
readonly fields: {
|
|
50
|
+
readonly reorderPoint: {
|
|
51
|
+
readonly visibility: "hidden";
|
|
52
|
+
};
|
|
53
|
+
readonly reorderQuantity: {
|
|
54
|
+
readonly visibility: "hidden";
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
readonly InventoryLocation: {
|
|
59
|
+
readonly fields: {
|
|
60
|
+
readonly placeId: {
|
|
61
|
+
readonly visibility: "hidden";
|
|
62
|
+
};
|
|
63
|
+
readonly active: {
|
|
64
|
+
readonly visibility: "hidden";
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
readonly StockMovement: {
|
|
69
|
+
readonly fields: {
|
|
70
|
+
readonly sourceType: {
|
|
71
|
+
readonly visibility: "hidden";
|
|
72
|
+
};
|
|
73
|
+
readonly sourceId: {
|
|
74
|
+
readonly visibility: "hidden";
|
|
75
|
+
};
|
|
76
|
+
readonly actorProfileId: {
|
|
77
|
+
readonly visibility: "hidden";
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
//# sourceMappingURL=recipes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recipes.d.ts","sourceRoot":"","sources":["../src/recipes.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,kEAAkE;AAClE,qBAAa,WAAY,SAAQ,UAAU;IACzC,MAAM,CAAC,EAAE,SAAqB;IAC9B,MAAM,CAAC,IAAI,SAAuB;IAClC,MAAM,CAAC,KAAK,SAAe;IAC3B,MAAM,CAAC,OAAO,SAAsD;IACpE,MAAM,CAAC,QAAQ,WAAoC;IACnD,MAAM,CAAC,OAAO;;;;;MAKZ;IACF,MAAM,CAAC,MAAM,0EAAkD;IAC/D,MAAM,CAAC,GAAG;;;;;;;;;;;;;;;;;;SAoBR;IACF,MAAM,CAAC,WAAW,aAA8C;IAChE,MAAM,CAAC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAoBH;CACZ"}
|