{ "type": "File", "start": 0, "end": 243, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 10, "column": 1 } }, "program": { "type": "Program", "start": 0, "end": 243, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 10, "column": 1 } }, "sourceType": "module", "body": [ { "type": "ExportNamedDeclaration", "start": 0, "end": 121, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 4, "column": 2 } }, "specifiers": [], "source": null, "declaration": { "type": "VariableDeclaration", "start": 7, "end": 121, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 4, "column": 2 } }, "declarations": [ { "type": "VariableDeclarator", "start": 13, "end": 120, "loc": { "start": { "line": 1, "column": 13 }, "end": { "line": 4, "column": 1 } }, "id": { "type": "Identifier", "start": 13, "end": 27, "loc": { "start": { "line": 1, "column": 13 }, "end": { "line": 1, "column": 27 }, "identifierName": "VANILLA_THEMES" }, "name": "VANILLA_THEMES" }, "init": { "type": "ObjectExpression", "start": 30, "end": 120, "loc": { "start": { "line": 1, "column": 30 }, "end": { "line": 4, "column": 1 } }, "properties": [ { "type": "ObjectProperty", "start": 37, "end": 72, "loc": { "start": { "line": 2, "column": 4 }, "end": { "line": 2, "column": 39 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 37, "end": 41, "loc": { "start": { "line": 2, "column": 4 }, "end": { "line": 2, "column": 8 }, "identifierName": "dark" }, "name": "dark" }, "value": { "type": "CallExpression", "start": 43, "end": 72, "loc": { "start": { "line": 2, "column": 10 }, "end": { "line": 2, "column": 39 } }, "callee": { "type": "Identifier", "start": 43, "end": 50, "loc": { "start": { "line": 2, "column": 10 }, "end": { "line": 2, "column": 17 }, "identifierName": "require" }, "name": "require" }, "arguments": [ { "type": "StringLiteral", "start": 51, "end": 71, "loc": { "start": { "line": 2, "column": 18 }, "end": { "line": 2, "column": 38 } }, "extra": { "rawValue": "./themes/dark.json", "raw": "\"./themes/dark.json\"" }, "value": "./themes/dark.json" } ] } }, { "type": "ObjectProperty", "start": 79, "end": 116, "loc": { "start": { "line": 3, "column": 4 }, "end": { "line": 3, "column": 41 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 79, "end": 84, "loc": { "start": { "line": 3, "column": 4 }, "end": { "line": 3, "column": 9 }, "identifierName": "light" }, "name": "light" }, "value": { "type": "CallExpression", "start": 86, "end": 116, "loc": { "start": { "line": 3, "column": 11 }, "end": { "line": 3, "column": 41 } }, "callee": { "type": "Identifier", "start": 86, "end": 93, "loc": { "start": { "line": 3, "column": 11 }, "end": { "line": 3, "column": 18 }, "identifierName": "require" }, "name": "require" }, "arguments": [ { "type": "StringLiteral", "start": 94, "end": 115, "loc": { "start": { "line": 3, "column": 19 }, "end": { "line": 3, "column": 40 } }, "extra": { "rawValue": "./themes/light.json", "raw": "\"./themes/light.json\"" }, "value": "./themes/light.json" } ] } } ] } } ], "kind": "const", "leadingComments": [], "trailingComments": [] } }, { "type": "ExportNamedDeclaration", "start": 125, "end": 165, "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 6, "column": 40 } }, "specifiers": [], "source": null, "declaration": { "type": "VariableDeclaration", "start": 132, "end": 165, "loc": { "start": { "line": 6, "column": 7 }, "end": { "line": 6, "column": 40 } }, "declarations": [ { "type": "VariableDeclarator", "start": 136, "end": 164, "loc": { "start": { "line": 6, "column": 11 }, "end": { "line": 6, "column": 39 } }, "id": { "type": "Identifier", "start": 136, "end": 141, "loc": { "start": { "line": 6, "column": 11 }, "end": { "line": 6, "column": 16 }, "identifierName": "THEME" }, "name": "THEME" }, "init": { "type": "MemberExpression", "start": 144, "end": 164, "loc": { "start": { "line": 6, "column": 19 }, "end": { "line": 6, "column": 39 } }, "object": { "type": "Identifier", "start": 144, "end": 158, "loc": { "start": { "line": 6, "column": 19 }, "end": { "line": 6, "column": 33 }, "identifierName": "VANILLA_THEMES" }, "name": "VANILLA_THEMES" }, "property": { "type": "Identifier", "start": 159, "end": 164, "loc": { "start": { "line": 6, "column": 34 }, "end": { "line": 6, "column": 39 }, "identifierName": "light" }, "name": "light" }, "computed": false } } ], "kind": "let", "leadingComments": [], "trailingComments": [] } }, { "type": "ExportNamedDeclaration", "start": 169, "end": 243, "loc": { "start": { "line": 8, "column": 0 }, "end": { "line": 10, "column": 1 } }, "specifiers": [], "source": null, "declaration": { "type": "FunctionDeclaration", "start": 176, "end": 243, "loc": { "start": { "line": 8, "column": 7 }, "end": { "line": 10, "column": 1 } }, "id": { "type": "Identifier", "start": 185, "end": 199, "loc": { "start": { "line": 8, "column": 16 }, "end": { "line": 8, "column": 30 }, "identifierName": "applyGameTheme" }, "name": "applyGameTheme" }, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 200, "end": 202, "loc": { "start": { "line": 8, "column": 31 }, "end": { "line": 8, "column": 33 }, "identifierName": "id" }, "name": "id" } ], "body": { "type": "BlockStatement", "start": 204, "end": 243, "loc": { "start": { "line": 8, "column": 35 }, "end": { "line": 10, "column": 1 } }, "body": [ { "type": "ExpressionStatement", "start": 211, "end": 240, "loc": { "start": { "line": 9, "column": 4 }, "end": { "line": 9, "column": 33 } }, "expression": { "type": "AssignmentExpression", "start": 211, "end": 239, "loc": { "start": { "line": 9, "column": 4 }, "end": { "line": 9, "column": 32 } }, "operator": "=", "left": { "type": "Identifier", "start": 211, "end": 216, "loc": { "start": { "line": 9, "column": 4 }, "end": { "line": 9, "column": 9 }, "identifierName": "THEME" }, "name": "THEME" }, "right": { "type": "MemberExpression", "start": 219, "end": 239, "loc": { "start": { "line": 9, "column": 12 }, "end": { "line": 9, "column": 32 } }, "object": { "type": "MemberExpression", "start": 219, "end": 235, "loc": { "start": { "line": 9, "column": 12 }, "end": { "line": 9, "column": 28 } }, "object": { "type": "Identifier", "start": 219, "end": 228, "loc": { "start": { "line": 9, "column": 12 }, "end": { "line": 9, "column": 21 }, "identifierName": "shapezAPI" }, "name": "shapezAPI" }, "property": { "type": "Identifier", "start": 229, "end": 235, "loc": { "start": { "line": 9, "column": 22 }, "end": { "line": 9, "column": 28 }, "identifierName": "themes" }, "name": "themes" }, "computed": false }, "property": { "type": "Identifier", "start": 236, "end": 238, "loc": { "start": { "line": 9, "column": 29 }, "end": { "line": 9, "column": 31 }, "identifierName": "id" }, "name": "id" }, "computed": true } } } ], "directives": [] }, "leadingComments": [], "trailingComments": [] } } ], "directives": [] }, "comments": [], "tokens": [ { "type": { "label": "export", "keyword": "export", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "export", "start": 0, "end": 6, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 6 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 7, "end": 12, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "VANILLA_THEMES", "start": 13, "end": 27, "loc": { "start": { "line": 1, "column": 13 }, "end": { "line": 1, "column": 27 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 28, "end": 29, "loc": { "start": { "line": 1, "column": 28 }, "end": { "line": 1, "column": 29 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 30, "end": 31, "loc": { "start": { "line": 1, "column": 30 }, "end": { "line": 1, "column": 31 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "dark", "start": 37, "end": 41, "loc": { "start": { "line": 2, "column": 4 }, "end": { "line": 2, "column": 8 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 41, "end": 42, "loc": { "start": { "line": 2, "column": 8 }, "end": { "line": 2, "column": 9 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "require", "start": 43, "end": 50, "loc": { "start": { "line": 2, "column": 10 }, "end": { "line": 2, "column": 17 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 50, "end": 51, "loc": { "start": { "line": 2, "column": 17 }, "end": { "line": 2, "column": 18 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "./themes/dark.json", "start": 51, "end": 71, "loc": { "start": { "line": 2, "column": 18 }, "end": { "line": 2, "column": 38 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 71, "end": 72, "loc": { "start": { "line": 2, "column": 38 }, "end": { "line": 2, "column": 39 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 72, "end": 73, "loc": { "start": { "line": 2, "column": 39 }, "end": { "line": 2, "column": 40 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "light", "start": 79, "end": 84, "loc": { "start": { "line": 3, "column": 4 }, "end": { "line": 3, "column": 9 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 84, "end": 85, "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 10 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "require", "start": 86, "end": 93, "loc": { "start": { "line": 3, "column": 11 }, "end": { "line": 3, "column": 18 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 93, "end": 94, "loc": { "start": { "line": 3, "column": 18 }, "end": { "line": 3, "column": 19 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "./themes/light.json", "start": 94, "end": 115, "loc": { "start": { "line": 3, "column": 19 }, "end": { "line": 3, "column": 40 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 115, "end": 116, "loc": { "start": { "line": 3, "column": 40 }, "end": { "line": 3, "column": 41 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 116, "end": 117, "loc": { "start": { "line": 3, "column": 41 }, "end": { "line": 3, "column": 42 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 119, "end": 120, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 1 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 120, "end": 121, "loc": { "start": { "line": 4, "column": 1 }, "end": { "line": 4, "column": 2 } } }, { "type": { "label": "export", "keyword": "export", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "export", "start": 125, "end": 131, "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 6, "column": 6 } } }, { "type": { "label": "let", "keyword": "let", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "let", "start": 132, "end": 135, "loc": { "start": { "line": 6, "column": 7 }, "end": { "line": 6, "column": 10 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "THEME", "start": 136, "end": 141, "loc": { "start": { "line": 6, "column": 11 }, "end": { "line": 6, "column": 16 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 142, "end": 143, "loc": { "start": { "line": 6, "column": 17 }, "end": { "line": 6, "column": 18 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "VANILLA_THEMES", "start": 144, "end": 158, "loc": { "start": { "line": 6, "column": 19 }, "end": { "line": 6, "column": 33 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 158, "end": 159, "loc": { "start": { "line": 6, "column": 33 }, "end": { "line": 6, "column": 34 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "light", "start": 159, "end": 164, "loc": { "start": { "line": 6, "column": 34 }, "end": { "line": 6, "column": 39 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 164, "end": 165, "loc": { "start": { "line": 6, "column": 39 }, "end": { "line": 6, "column": 40 } } }, { "type": { "label": "export", "keyword": "export", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "export", "start": 169, "end": 175, "loc": { "start": { "line": 8, "column": 0 }, "end": { "line": 8, "column": 6 } } }, { "type": { "label": "function", "keyword": "function", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "function", "start": 176, "end": 184, "loc": { "start": { "line": 8, "column": 7 }, "end": { "line": 8, "column": 15 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "applyGameTheme", "start": 185, "end": 199, "loc": { "start": { "line": 8, "column": 16 }, "end": { "line": 8, "column": 30 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 199, "end": 200, "loc": { "start": { "line": 8, "column": 30 }, "end": { "line": 8, "column": 31 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "id", "start": 200, "end": 202, "loc": { "start": { "line": 8, "column": 31 }, "end": { "line": 8, "column": 33 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 202, "end": 203, "loc": { "start": { "line": 8, "column": 33 }, "end": { "line": 8, "column": 34 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 204, "end": 205, "loc": { "start": { "line": 8, "column": 35 }, "end": { "line": 8, "column": 36 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "THEME", "start": 211, "end": 216, "loc": { "start": { "line": 9, "column": 4 }, "end": { "line": 9, "column": 9 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 217, "end": 218, "loc": { "start": { "line": 9, "column": 10 }, "end": { "line": 9, "column": 11 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "shapezAPI", "start": 219, "end": 228, "loc": { "start": { "line": 9, "column": 12 }, "end": { "line": 9, "column": 21 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 228, "end": 229, "loc": { "start": { "line": 9, "column": 21 }, "end": { "line": 9, "column": 22 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "themes", "start": 229, "end": 235, "loc": { "start": { "line": 9, "column": 22 }, "end": { "line": 9, "column": 28 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 235, "end": 236, "loc": { "start": { "line": 9, "column": 28 }, "end": { "line": 9, "column": 29 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "id", "start": 236, "end": 238, "loc": { "start": { "line": 9, "column": 29 }, "end": { "line": 9, "column": 31 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 238, "end": 239, "loc": { "start": { "line": 9, "column": 31 }, "end": { "line": 9, "column": 32 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 239, "end": 240, "loc": { "start": { "line": 9, "column": 32 }, "end": { "line": 9, "column": 33 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 242, "end": 243, "loc": { "start": { "line": 10, "column": 0 }, "end": { "line": 10, "column": 1 } } }, { "type": { "label": "eof", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 243, "end": 243, "loc": { "start": { "line": 10, "column": 1 }, "end": { "line": 10, "column": 1 } } } ] }