1
0
Fork 0
mirror of https://github.com/koalyptus/TableFilter.git synced 2024-06-03 14:32:21 +02:00
TableFilter/docs/ast/source/modules/storage.js.json
koalyptus 4481fbe361 publish Docs to gh-pages (auto)
branch:       master
SHA:          c7d6de72f7
range SHA:    81f31a3106fb...c7d6de72f785
build id:     375208741
build number: 1103
2018-05-05 08:21:30 +00:00

19088 lines
491 KiB
JSON

{
"type": "File",
"start": 0,
"end": 3543,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 162,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 3543,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 162,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 31,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 31
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 7,
"end": 13,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 13
}
},
"local": {
"type": "Identifier",
"start": 7,
"end": 13,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 13
},
"identifierName": "Cookie"
},
"name": "Cookie"
}
}
],
"source": {
"type": "StringLiteral",
"start": 19,
"end": 30,
"loc": {
"start": {
"line": 1,
"column": 19
},
"end": {
"line": 1,
"column": 30
}
},
"extra": {
"rawValue": "../cookie",
"raw": "'../cookie'"
},
"value": "../cookie"
}
},
{
"type": "ImportDeclaration",
"start": 32,
"end": 61,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 29
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 40,
"end": 44,
"loc": {
"start": {
"line": 2,
"column": 8
},
"end": {
"line": 2,
"column": 12
}
},
"imported": {
"type": "Identifier",
"start": 40,
"end": 44,
"loc": {
"start": {
"line": 2,
"column": 8
},
"end": {
"line": 2,
"column": 12
},
"identifierName": "root"
},
"name": "root"
},
"local": {
"type": "Identifier",
"start": 40,
"end": 44,
"loc": {
"start": {
"line": 2,
"column": 8
},
"end": {
"line": 2,
"column": 12
},
"identifierName": "root"
},
"name": "root"
}
}
],
"source": {
"type": "StringLiteral",
"start": 51,
"end": 60,
"loc": {
"start": {
"line": 2,
"column": 19
},
"end": {
"line": 2,
"column": 28
}
},
"extra": {
"rawValue": "../root",
"raw": "'../root'"
},
"value": "../root"
}
},
{
"type": "VariableDeclaration",
"start": 63,
"end": 86,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 23
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 69,
"end": 85,
"loc": {
"start": {
"line": 4,
"column": 6
},
"end": {
"line": 4,
"column": 22
}
},
"id": {
"type": "Identifier",
"start": 69,
"end": 73,
"loc": {
"start": {
"line": 4,
"column": 6
},
"end": {
"line": 4,
"column": 10
},
"identifierName": "JSON"
},
"name": "JSON"
},
"init": {
"type": "MemberExpression",
"start": 76,
"end": 85,
"loc": {
"start": {
"line": 4,
"column": 13
},
"end": {
"line": 4,
"column": 22
}
},
"object": {
"type": "Identifier",
"start": 76,
"end": 80,
"loc": {
"start": {
"line": 4,
"column": 13
},
"end": {
"line": 4,
"column": 17
},
"identifierName": "root"
},
"name": "root"
},
"property": {
"type": "Identifier",
"start": 81,
"end": 85,
"loc": {
"start": {
"line": 4,
"column": 18
},
"end": {
"line": 4,
"column": 22
},
"identifierName": "JSON"
},
"name": "JSON"
},
"computed": false
}
}
],
"kind": "const"
},
{
"type": "VariableDeclaration",
"start": 87,
"end": 126,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 5,
"column": 39
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 93,
"end": 125,
"loc": {
"start": {
"line": 5,
"column": 6
},
"end": {
"line": 5,
"column": 38
}
},
"id": {
"type": "Identifier",
"start": 93,
"end": 105,
"loc": {
"start": {
"line": 5,
"column": 6
},
"end": {
"line": 5,
"column": 18
},
"identifierName": "localStorage"
},
"name": "localStorage"
},
"init": {
"type": "MemberExpression",
"start": 108,
"end": 125,
"loc": {
"start": {
"line": 5,
"column": 21
},
"end": {
"line": 5,
"column": 38
}
},
"object": {
"type": "Identifier",
"start": 108,
"end": 112,
"loc": {
"start": {
"line": 5,
"column": 21
},
"end": {
"line": 5,
"column": 25
},
"identifierName": "root"
},
"name": "root"
},
"property": {
"type": "Identifier",
"start": 113,
"end": 125,
"loc": {
"start": {
"line": 5,
"column": 26
},
"end": {
"line": 5,
"column": 38
},
"identifierName": "localStorage"
},
"name": "localStorage"
},
"computed": false
}
}
],
"kind": "const"
},
{
"type": "VariableDeclaration",
"start": 127,
"end": 158,
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 6,
"column": 31
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 133,
"end": 157,
"loc": {
"start": {
"line": 6,
"column": 6
},
"end": {
"line": 6,
"column": 30
}
},
"id": {
"type": "Identifier",
"start": 133,
"end": 141,
"loc": {
"start": {
"line": 6,
"column": 6
},
"end": {
"line": 6,
"column": 14
},
"identifierName": "location"
},
"name": "location"
},
"init": {
"type": "MemberExpression",
"start": 144,
"end": 157,
"loc": {
"start": {
"line": 6,
"column": 17
},
"end": {
"line": 6,
"column": 30
}
},
"object": {
"type": "Identifier",
"start": 144,
"end": 148,
"loc": {
"start": {
"line": 6,
"column": 17
},
"end": {
"line": 6,
"column": 21
},
"identifierName": "root"
},
"name": "root"
},
"property": {
"type": "Identifier",
"start": 149,
"end": 157,
"loc": {
"start": {
"line": 6,
"column": 22
},
"end": {
"line": 6,
"column": 30
},
"identifierName": "location"
},
"name": "location"
},
"computed": false
}
}
],
"kind": "const",
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Checks if browser has Storage feature\n ",
"start": 160,
"end": 208,
"loc": {
"start": {
"line": 8,
"column": 0
},
"end": {
"line": 10,
"column": 3
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"start": 209,
"end": 275,
"loc": {
"start": {
"line": 11,
"column": 0
},
"end": {
"line": 13,
"column": 2
}
},
"specifiers": [],
"source": null,
"declaration": {
"type": "VariableDeclaration",
"start": 216,
"end": 275,
"loc": {
"start": {
"line": 11,
"column": 7
},
"end": {
"line": 13,
"column": 2
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 222,
"end": 274,
"loc": {
"start": {
"line": 11,
"column": 13
},
"end": {
"line": 13,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 222,
"end": 232,
"loc": {
"start": {
"line": 11,
"column": 13
},
"end": {
"line": 11,
"column": 23
},
"identifierName": "hasStorage"
},
"name": "hasStorage",
"leadingComments": null
},
"init": {
"type": "ArrowFunctionExpression",
"start": 235,
"end": 274,
"loc": {
"start": {
"line": 11,
"column": 26
},
"end": {
"line": 13,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 222,
"end": 232,
"loc": {
"start": {
"line": 11,
"column": 13
},
"end": {
"line": 11,
"column": 23
},
"identifierName": "hasStorage"
},
"name": "hasStorage",
"leadingComments": null
},
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 241,
"end": 274,
"loc": {
"start": {
"line": 11,
"column": 32
},
"end": {
"line": 13,
"column": 1
}
},
"body": [
{
"type": "ReturnStatement",
"start": 247,
"end": 272,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 29
}
},
"argument": {
"type": "BinaryExpression",
"start": 254,
"end": 271,
"loc": {
"start": {
"line": 12,
"column": 11
},
"end": {
"line": 12,
"column": 28
}
},
"left": {
"type": "StringLiteral",
"start": 254,
"end": 263,
"loc": {
"start": {
"line": 12,
"column": 11
},
"end": {
"line": 12,
"column": 20
}
},
"extra": {
"rawValue": "Storage",
"raw": "'Storage'"
},
"value": "Storage"
},
"operator": "in",
"right": {
"type": "Identifier",
"start": 267,
"end": 271,
"loc": {
"start": {
"line": 12,
"column": 24
},
"end": {
"line": 12,
"column": 28
},
"identifierName": "root"
},
"name": "root"
}
}
}
],
"directives": []
}
},
"leadingComments": null
}
],
"kind": "const",
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Checks if browser has Storage feature\n ",
"start": 160,
"end": 208,
"loc": {
"start": {
"line": 8,
"column": 0
},
"end": {
"line": 10,
"column": 3
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Stores the features state in browser's local storage or cookie\n *\n * @export\n * @class Storage\n ",
"start": 277,
"end": 382,
"loc": {
"start": {
"line": 15,
"column": 0
},
"end": {
"line": 20,
"column": 3
}
}
}
]
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Checks if browser has Storage feature\n ",
"start": 160,
"end": 208,
"loc": {
"start": {
"line": 8,
"column": 0
},
"end": {
"line": 10,
"column": 3
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Stores the features state in browser's local storage or cookie\n *\n * @export\n * @class Storage\n ",
"start": 277,
"end": 382,
"loc": {
"start": {
"line": 15,
"column": 0
},
"end": {
"line": 20,
"column": 3
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"start": 383,
"end": 3542,
"loc": {
"start": {
"line": 21,
"column": 0
},
"end": {
"line": 161,
"column": 1
}
},
"specifiers": [],
"source": null,
"declaration": {
"type": "ClassDeclaration",
"start": 390,
"end": 3542,
"loc": {
"start": {
"line": 21,
"column": 7
},
"end": {
"line": 161,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 396,
"end": 403,
"loc": {
"start": {
"line": 21,
"column": 13
},
"end": {
"line": 21,
"column": 20
},
"identifierName": "Storage"
},
"name": "Storage",
"leadingComments": null
},
"superClass": null,
"body": {
"type": "ClassBody",
"start": 404,
"end": 3542,
"loc": {
"start": {
"line": 21,
"column": 21
},
"end": {
"line": 161,
"column": 1
}
},
"body": [
{
"type": "ClassMethod",
"start": 518,
"end": 1472,
"loc": {
"start": {
"line": 28,
"column": 4
},
"end": {
"line": 71,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 518,
"end": 529,
"loc": {
"start": {
"line": 28,
"column": 4
},
"end": {
"line": 28,
"column": 15
},
"identifierName": "constructor"
},
"name": "constructor",
"leadingComments": null
},
"kind": "constructor",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 530,
"end": 535,
"loc": {
"start": {
"line": 28,
"column": 16
},
"end": {
"line": 28,
"column": 21
},
"identifierName": "state"
},
"name": "state"
}
],
"body": {
"type": "BlockStatement",
"start": 537,
"end": 1472,
"loc": {
"start": {
"line": 28,
"column": 23
},
"end": {
"line": 71,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 641,
"end": 660,
"loc": {
"start": {
"line": 35,
"column": 8
},
"end": {
"line": 35,
"column": 27
}
},
"expression": {
"type": "AssignmentExpression",
"start": 641,
"end": 659,
"loc": {
"start": {
"line": 35,
"column": 8
},
"end": {
"line": 35,
"column": 26
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 641,
"end": 651,
"loc": {
"start": {
"line": 35,
"column": 8
},
"end": {
"line": 35,
"column": 18
}
},
"object": {
"type": "ThisExpression",
"start": 641,
"end": 645,
"loc": {
"start": {
"line": 35,
"column": 8
},
"end": {
"line": 35,
"column": 12
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 646,
"end": 651,
"loc": {
"start": {
"line": 35,
"column": 13
},
"end": {
"line": 35,
"column": 18
},
"identifierName": "state"
},
"name": "state"
},
"computed": false,
"leadingComments": null
},
"right": {
"type": "Identifier",
"start": 654,
"end": 659,
"loc": {
"start": {
"line": 35,
"column": 21
},
"end": {
"line": 35,
"column": 26
},
"identifierName": "state"
},
"name": "state"
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * State object\n * @type {State}\n * @private\n ",
"start": 548,
"end": 632,
"loc": {
"start": {
"line": 30,
"column": 8
},
"end": {
"line": 34,
"column": 11
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * TableFilter object\n * @type {TableFilter}\n * @private\n ",
"start": 670,
"end": 766,
"loc": {
"start": {
"line": 37,
"column": 8
},
"end": {
"line": 41,
"column": 11
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 775,
"end": 794,
"loc": {
"start": {
"line": 42,
"column": 8
},
"end": {
"line": 42,
"column": 27
}
},
"expression": {
"type": "AssignmentExpression",
"start": 775,
"end": 793,
"loc": {
"start": {
"line": 42,
"column": 8
},
"end": {
"line": 42,
"column": 26
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 775,
"end": 782,
"loc": {
"start": {
"line": 42,
"column": 8
},
"end": {
"line": 42,
"column": 15
}
},
"object": {
"type": "ThisExpression",
"start": 775,
"end": 779,
"loc": {
"start": {
"line": 42,
"column": 8
},
"end": {
"line": 42,
"column": 12
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 780,
"end": 782,
"loc": {
"start": {
"line": 42,
"column": 13
},
"end": {
"line": 42,
"column": 15
},
"identifierName": "tf"
},
"name": "tf"
},
"computed": false,
"leadingComments": null
},
"right": {
"type": "MemberExpression",
"start": 785,
"end": 793,
"loc": {
"start": {
"line": 42,
"column": 18
},
"end": {
"line": 42,
"column": 26
}
},
"object": {
"type": "Identifier",
"start": 785,
"end": 790,
"loc": {
"start": {
"line": 42,
"column": 18
},
"end": {
"line": 42,
"column": 23
},
"identifierName": "state"
},
"name": "state"
},
"property": {
"type": "Identifier",
"start": 791,
"end": 793,
"loc": {
"start": {
"line": 42,
"column": 24
},
"end": {
"line": 42,
"column": 26
},
"identifierName": "tf"
},
"name": "tf"
},
"computed": false
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * TableFilter object\n * @type {TableFilter}\n * @private\n ",
"start": 670,
"end": 766,
"loc": {
"start": {
"line": 37,
"column": 8
},
"end": {
"line": 41,
"column": 11
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Persist with local storage\n * @type {Boolean}\n * @private\n ",
"start": 804,
"end": 904,
"loc": {
"start": {
"line": 44,
"column": 8
},
"end": {
"line": 48,
"column": 11
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 913,
"end": 980,
"loc": {
"start": {
"line": 49,
"column": 8
},
"end": {
"line": 49,
"column": 75
}
},
"expression": {
"type": "AssignmentExpression",
"start": 913,
"end": 979,
"loc": {
"start": {
"line": 49,
"column": 8
},
"end": {
"line": 49,
"column": 74
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 913,
"end": 936,
"loc": {
"start": {
"line": 49,
"column": 8
},
"end": {
"line": 49,
"column": 31
}
},
"object": {
"type": "ThisExpression",
"start": 913,
"end": 917,
"loc": {
"start": {
"line": 49,
"column": 8
},
"end": {
"line": 49,
"column": 12
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 918,
"end": 936,
"loc": {
"start": {
"line": 49,
"column": 13
},
"end": {
"line": 49,
"column": 31
},
"identifierName": "enableLocalStorage"
},
"name": "enableLocalStorage"
},
"computed": false,
"leadingComments": null
},
"right": {
"type": "LogicalExpression",
"start": 939,
"end": 979,
"loc": {
"start": {
"line": 49,
"column": 34
},
"end": {
"line": 49,
"column": 74
}
},
"left": {
"type": "MemberExpression",
"start": 939,
"end": 963,
"loc": {
"start": {
"line": 49,
"column": 34
},
"end": {
"line": 49,
"column": 58
}
},
"object": {
"type": "Identifier",
"start": 939,
"end": 944,
"loc": {
"start": {
"line": 49,
"column": 34
},
"end": {
"line": 49,
"column": 39
},
"identifierName": "state"
},
"name": "state"
},
"property": {
"type": "Identifier",
"start": 945,
"end": 963,
"loc": {
"start": {
"line": 49,
"column": 40
},
"end": {
"line": 49,
"column": 58
},
"identifierName": "enableLocalStorage"
},
"name": "enableLocalStorage"
},
"computed": false
},
"operator": "&&",
"right": {
"type": "CallExpression",
"start": 967,
"end": 979,
"loc": {
"start": {
"line": 49,
"column": 62
},
"end": {
"line": 49,
"column": 74
}
},
"callee": {
"type": "Identifier",
"start": 967,
"end": 977,
"loc": {
"start": {
"line": 49,
"column": 62
},
"end": {
"line": 49,
"column": 72
},
"identifierName": "hasStorage"
},
"name": "hasStorage"
},
"arguments": []
}
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Persist with local storage\n * @type {Boolean}\n * @private\n ",
"start": 804,
"end": 904,
"loc": {
"start": {
"line": 44,
"column": 8
},
"end": {
"line": 48,
"column": 11
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Persist with cookie\n * @type {Boolean}\n * @private\n ",
"start": 990,
"end": 1083,
"loc": {
"start": {
"line": 51,
"column": 8
},
"end": {
"line": 55,
"column": 11
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 1092,
"end": 1159,
"loc": {
"start": {
"line": 56,
"column": 8
},
"end": {
"line": 56,
"column": 75
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1092,
"end": 1158,
"loc": {
"start": {
"line": 56,
"column": 8
},
"end": {
"line": 56,
"column": 74
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 1092,
"end": 1109,
"loc": {
"start": {
"line": 56,
"column": 8
},
"end": {
"line": 56,
"column": 25
}
},
"object": {
"type": "ThisExpression",
"start": 1092,
"end": 1096,
"loc": {
"start": {
"line": 56,
"column": 8
},
"end": {
"line": 56,
"column": 12
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 1097,
"end": 1109,
"loc": {
"start": {
"line": 56,
"column": 13
},
"end": {
"line": 56,
"column": 25
},
"identifierName": "enableCookie"
},
"name": "enableCookie"
},
"computed": false,
"leadingComments": null
},
"right": {
"type": "LogicalExpression",
"start": 1112,
"end": 1158,
"loc": {
"start": {
"line": 56,
"column": 28
},
"end": {
"line": 56,
"column": 74
}
},
"left": {
"type": "MemberExpression",
"start": 1112,
"end": 1130,
"loc": {
"start": {
"line": 56,
"column": 28
},
"end": {
"line": 56,
"column": 46
}
},
"object": {
"type": "Identifier",
"start": 1112,
"end": 1117,
"loc": {
"start": {
"line": 56,
"column": 28
},
"end": {
"line": 56,
"column": 33
},
"identifierName": "state"
},
"name": "state"
},
"property": {
"type": "Identifier",
"start": 1118,
"end": 1130,
"loc": {
"start": {
"line": 56,
"column": 34
},
"end": {
"line": 56,
"column": 46
},
"identifierName": "enableCookie"
},
"name": "enableCookie"
},
"computed": false
},
"operator": "&&",
"right": {
"type": "UnaryExpression",
"start": 1134,
"end": 1158,
"loc": {
"start": {
"line": 56,
"column": 50
},
"end": {
"line": 56,
"column": 74
}
},
"operator": "!",
"prefix": true,
"argument": {
"type": "MemberExpression",
"start": 1135,
"end": 1158,
"loc": {
"start": {
"line": 56,
"column": 51
},
"end": {
"line": 56,
"column": 74
}
},
"object": {
"type": "ThisExpression",
"start": 1135,
"end": 1139,
"loc": {
"start": {
"line": 56,
"column": 51
},
"end": {
"line": 56,
"column": 55
}
}
},
"property": {
"type": "Identifier",
"start": 1140,
"end": 1158,
"loc": {
"start": {
"line": 56,
"column": 56
},
"end": {
"line": 56,
"column": 74
},
"identifierName": "enableLocalStorage"
},
"name": "enableLocalStorage"
},
"computed": false
},
"extra": {
"parenthesizedArgument": false
}
}
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Persist with cookie\n * @type {Boolean}\n * @private\n ",
"start": 990,
"end": 1083,
"loc": {
"start": {
"line": 51,
"column": 8
},
"end": {
"line": 55,
"column": 11
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Emitter object\n * @type {Emitter}\n * @private\n ",
"start": 1169,
"end": 1257,
"loc": {
"start": {
"line": 58,
"column": 8
},
"end": {
"line": 62,
"column": 11
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 1266,
"end": 1295,
"loc": {
"start": {
"line": 63,
"column": 8
},
"end": {
"line": 63,
"column": 37
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1266,
"end": 1294,
"loc": {
"start": {
"line": 63,
"column": 8
},
"end": {
"line": 63,
"column": 36
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 1266,
"end": 1278,
"loc": {
"start": {
"line": 63,
"column": 8
},
"end": {
"line": 63,
"column": 20
}
},
"object": {
"type": "ThisExpression",
"start": 1266,
"end": 1270,
"loc": {
"start": {
"line": 63,
"column": 8
},
"end": {
"line": 63,
"column": 12
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 1271,
"end": 1278,
"loc": {
"start": {
"line": 63,
"column": 13
},
"end": {
"line": 63,
"column": 20
},
"identifierName": "emitter"
},
"name": "emitter"
},
"computed": false,
"leadingComments": null
},
"right": {
"type": "MemberExpression",
"start": 1281,
"end": 1294,
"loc": {
"start": {
"line": 63,
"column": 23
},
"end": {
"line": 63,
"column": 36
}
},
"object": {
"type": "Identifier",
"start": 1281,
"end": 1286,
"loc": {
"start": {
"line": 63,
"column": 23
},
"end": {
"line": 63,
"column": 28
},
"identifierName": "state"
},
"name": "state"
},
"property": {
"type": "Identifier",
"start": 1287,
"end": 1294,
"loc": {
"start": {
"line": 63,
"column": 29
},
"end": {
"line": 63,
"column": 36
},
"identifierName": "emitter"
},
"name": "emitter"
},
"computed": false
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Emitter object\n * @type {Emitter}\n * @private\n ",
"start": 1169,
"end": 1257,
"loc": {
"start": {
"line": 58,
"column": 8
},
"end": {
"line": 62,
"column": 11
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Cookie duration in hours from state object\n * @type {Number}\n * @private\n ",
"start": 1305,
"end": 1420,
"loc": {
"start": {
"line": 65,
"column": 8
},
"end": {
"line": 69,
"column": 11
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 1429,
"end": 1466,
"loc": {
"start": {
"line": 70,
"column": 8
},
"end": {
"line": 70,
"column": 45
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1429,
"end": 1465,
"loc": {
"start": {
"line": 70,
"column": 8
},
"end": {
"line": 70,
"column": 44
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 1429,
"end": 1442,
"loc": {
"start": {
"line": 70,
"column": 8
},
"end": {
"line": 70,
"column": 21
}
},
"object": {
"type": "ThisExpression",
"start": 1429,
"end": 1433,
"loc": {
"start": {
"line": 70,
"column": 8
},
"end": {
"line": 70,
"column": 12
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 1434,
"end": 1442,
"loc": {
"start": {
"line": 70,
"column": 13
},
"end": {
"line": 70,
"column": 21
},
"identifierName": "duration"
},
"name": "duration"
},
"computed": false,
"leadingComments": null
},
"right": {
"type": "MemberExpression",
"start": 1445,
"end": 1465,
"loc": {
"start": {
"line": 70,
"column": 24
},
"end": {
"line": 70,
"column": 44
}
},
"object": {
"type": "Identifier",
"start": 1445,
"end": 1450,
"loc": {
"start": {
"line": 70,
"column": 24
},
"end": {
"line": 70,
"column": 29
},
"identifierName": "state"
},
"name": "state"
},
"property": {
"type": "Identifier",
"start": 1451,
"end": 1465,
"loc": {
"start": {
"line": 70,
"column": 30
},
"end": {
"line": 70,
"column": 44
},
"identifierName": "cookieDuration"
},
"name": "cookieDuration"
},
"computed": false
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Cookie duration in hours from state object\n * @type {Number}\n * @private\n ",
"start": 1305,
"end": 1420,
"loc": {
"start": {
"line": 65,
"column": 8
},
"end": {
"line": 69,
"column": 11
}
}
}
]
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Creates an instance of Storage\n *\n * @param {State} state Instance of State\n ",
"start": 411,
"end": 513,
"loc": {
"start": {
"line": 23,
"column": 4
},
"end": {
"line": 27,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Initializes the Storage object\n ",
"start": 1479,
"end": 1528,
"loc": {
"start": {
"line": 74,
"column": 4
},
"end": {
"line": 76,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 1533,
"end": 1685,
"loc": {
"start": {
"line": 77,
"column": 4
},
"end": {
"line": 80,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1533,
"end": 1537,
"loc": {
"start": {
"line": 77,
"column": 4
},
"end": {
"line": 77,
"column": 8
},
"identifierName": "init"
},
"name": "init",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 1540,
"end": 1685,
"loc": {
"start": {
"line": 77,
"column": 11
},
"end": {
"line": 80,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 1550,
"end": 1618,
"loc": {
"start": {
"line": 78,
"column": 8
},
"end": {
"line": 78,
"column": 76
}
},
"expression": {
"type": "CallExpression",
"start": 1550,
"end": 1617,
"loc": {
"start": {
"line": 78,
"column": 8
},
"end": {
"line": 78,
"column": 75
}
},
"callee": {
"type": "MemberExpression",
"start": 1550,
"end": 1565,
"loc": {
"start": {
"line": 78,
"column": 8
},
"end": {
"line": 78,
"column": 23
}
},
"object": {
"type": "MemberExpression",
"start": 1550,
"end": 1562,
"loc": {
"start": {
"line": 78,
"column": 8
},
"end": {
"line": 78,
"column": 20
}
},
"object": {
"type": "ThisExpression",
"start": 1550,
"end": 1554,
"loc": {
"start": {
"line": 78,
"column": 8
},
"end": {
"line": 78,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 1555,
"end": 1562,
"loc": {
"start": {
"line": 78,
"column": 13
},
"end": {
"line": 78,
"column": 20
},
"identifierName": "emitter"
},
"name": "emitter"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1563,
"end": 1565,
"loc": {
"start": {
"line": 78,
"column": 21
},
"end": {
"line": 78,
"column": 23
},
"identifierName": "on"
},
"name": "on"
},
"computed": false
},
"arguments": [
{
"type": "ArrayExpression",
"start": 1566,
"end": 1583,
"loc": {
"start": {
"line": 78,
"column": 24
},
"end": {
"line": 78,
"column": 41
}
},
"elements": [
{
"type": "StringLiteral",
"start": 1567,
"end": 1582,
"loc": {
"start": {
"line": 78,
"column": 25
},
"end": {
"line": 78,
"column": 40
}
},
"extra": {
"rawValue": "state-changed",
"raw": "'state-changed'"
},
"value": "state-changed"
}
]
},
{
"type": "ArrowFunctionExpression",
"start": 1585,
"end": 1616,
"loc": {
"start": {
"line": 78,
"column": 43
},
"end": {
"line": 78,
"column": 74
}
},
"id": null,
"generator": false,
"expression": true,
"async": false,
"params": [
{
"type": "Identifier",
"start": 1586,
"end": 1588,
"loc": {
"start": {
"line": 78,
"column": 44
},
"end": {
"line": 78,
"column": 46
},
"identifierName": "tf"
},
"name": "tf"
},
{
"type": "Identifier",
"start": 1590,
"end": 1595,
"loc": {
"start": {
"line": 78,
"column": 48
},
"end": {
"line": 78,
"column": 53
},
"identifierName": "state"
},
"name": "state"
}
],
"body": {
"type": "CallExpression",
"start": 1600,
"end": 1616,
"loc": {
"start": {
"line": 78,
"column": 58
},
"end": {
"line": 78,
"column": 74
}
},
"callee": {
"type": "MemberExpression",
"start": 1600,
"end": 1609,
"loc": {
"start": {
"line": 78,
"column": 58
},
"end": {
"line": 78,
"column": 67
}
},
"object": {
"type": "ThisExpression",
"start": 1600,
"end": 1604,
"loc": {
"start": {
"line": 78,
"column": 58
},
"end": {
"line": 78,
"column": 62
}
}
},
"property": {
"type": "Identifier",
"start": 1605,
"end": 1609,
"loc": {
"start": {
"line": 78,
"column": 63
},
"end": {
"line": 78,
"column": 67
},
"identifierName": "save"
},
"name": "save"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 1610,
"end": 1615,
"loc": {
"start": {
"line": 78,
"column": 68
},
"end": {
"line": 78,
"column": 73
},
"identifierName": "state"
},
"name": "state"
}
]
}
}
]
}
},
{
"type": "ExpressionStatement",
"start": 1627,
"end": 1679,
"loc": {
"start": {
"line": 79,
"column": 8
},
"end": {
"line": 79,
"column": 60
}
},
"expression": {
"type": "CallExpression",
"start": 1627,
"end": 1678,
"loc": {
"start": {
"line": 79,
"column": 8
},
"end": {
"line": 79,
"column": 59
}
},
"callee": {
"type": "MemberExpression",
"start": 1627,
"end": 1642,
"loc": {
"start": {
"line": 79,
"column": 8
},
"end": {
"line": 79,
"column": 23
}
},
"object": {
"type": "MemberExpression",
"start": 1627,
"end": 1639,
"loc": {
"start": {
"line": 79,
"column": 8
},
"end": {
"line": 79,
"column": 20
}
},
"object": {
"type": "ThisExpression",
"start": 1627,
"end": 1631,
"loc": {
"start": {
"line": 79,
"column": 8
},
"end": {
"line": 79,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 1632,
"end": 1639,
"loc": {
"start": {
"line": 79,
"column": 13
},
"end": {
"line": 79,
"column": 20
},
"identifierName": "emitter"
},
"name": "emitter"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1640,
"end": 1642,
"loc": {
"start": {
"line": 79,
"column": 21
},
"end": {
"line": 79,
"column": 23
},
"identifierName": "on"
},
"name": "on"
},
"computed": false
},
"arguments": [
{
"type": "ArrayExpression",
"start": 1643,
"end": 1658,
"loc": {
"start": {
"line": 79,
"column": 24
},
"end": {
"line": 79,
"column": 39
}
},
"elements": [
{
"type": "StringLiteral",
"start": 1644,
"end": 1657,
"loc": {
"start": {
"line": 79,
"column": 25
},
"end": {
"line": 79,
"column": 38
}
},
"extra": {
"rawValue": "initialized",
"raw": "'initialized'"
},
"value": "initialized"
}
]
},
{
"type": "ArrowFunctionExpression",
"start": 1660,
"end": 1677,
"loc": {
"start": {
"line": 79,
"column": 41
},
"end": {
"line": 79,
"column": 58
}
},
"id": null,
"generator": false,
"expression": true,
"async": false,
"params": [],
"body": {
"type": "CallExpression",
"start": 1666,
"end": 1677,
"loc": {
"start": {
"line": 79,
"column": 47
},
"end": {
"line": 79,
"column": 58
}
},
"callee": {
"type": "MemberExpression",
"start": 1666,
"end": 1675,
"loc": {
"start": {
"line": 79,
"column": 47
},
"end": {
"line": 79,
"column": 56
}
},
"object": {
"type": "ThisExpression",
"start": 1666,
"end": 1670,
"loc": {
"start": {
"line": 79,
"column": 47
},
"end": {
"line": 79,
"column": 51
}
}
},
"property": {
"type": "Identifier",
"start": 1671,
"end": 1675,
"loc": {
"start": {
"line": 79,
"column": 52
},
"end": {
"line": 79,
"column": 56
},
"identifierName": "sync"
},
"name": "sync"
},
"computed": false
},
"arguments": []
}
}
]
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Initializes the Storage object\n ",
"start": 1479,
"end": 1528,
"loc": {
"start": {
"line": 74,
"column": 4
},
"end": {
"line": 76,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Persists the features state on state changes\n *\n * @param {State} state Instance of State\n ",
"start": 1691,
"end": 1807,
"loc": {
"start": {
"line": 82,
"column": 4
},
"end": {
"line": 86,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 1812,
"end": 2041,
"loc": {
"start": {
"line": 87,
"column": 4
},
"end": {
"line": 93,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1812,
"end": 1816,
"loc": {
"start": {
"line": 87,
"column": 4
},
"end": {
"line": 87,
"column": 8
},
"identifierName": "save"
},
"name": "save",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 1817,
"end": 1822,
"loc": {
"start": {
"line": 87,
"column": 9
},
"end": {
"line": 87,
"column": 14
},
"identifierName": "state"
},
"name": "state"
}
],
"body": {
"type": "BlockStatement",
"start": 1824,
"end": 2041,
"loc": {
"start": {
"line": 87,
"column": 16
},
"end": {
"line": 93,
"column": 5
}
},
"body": [
{
"type": "IfStatement",
"start": 1834,
"end": 2035,
"loc": {
"start": {
"line": 88,
"column": 8
},
"end": {
"line": 92,
"column": 9
}
},
"test": {
"type": "MemberExpression",
"start": 1838,
"end": 1861,
"loc": {
"start": {
"line": 88,
"column": 12
},
"end": {
"line": 88,
"column": 35
}
},
"object": {
"type": "ThisExpression",
"start": 1838,
"end": 1842,
"loc": {
"start": {
"line": 88,
"column": 12
},
"end": {
"line": 88,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"start": 1843,
"end": 1861,
"loc": {
"start": {
"line": 88,
"column": 17
},
"end": {
"line": 88,
"column": 35
},
"identifierName": "enableLocalStorage"
},
"name": "enableLocalStorage"
},
"computed": false
},
"consequent": {
"type": "BlockStatement",
"start": 1863,
"end": 1939,
"loc": {
"start": {
"line": 88,
"column": 37
},
"end": {
"line": 90,
"column": 9
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 1877,
"end": 1929,
"loc": {
"start": {
"line": 89,
"column": 12
},
"end": {
"line": 89,
"column": 64
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1877,
"end": 1928,
"loc": {
"start": {
"line": 89,
"column": 12
},
"end": {
"line": 89,
"column": 63
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 1877,
"end": 1904,
"loc": {
"start": {
"line": 89,
"column": 12
},
"end": {
"line": 89,
"column": 39
}
},
"object": {
"type": "Identifier",
"start": 1877,
"end": 1889,
"loc": {
"start": {
"line": 89,
"column": 12
},
"end": {
"line": 89,
"column": 24
},
"identifierName": "localStorage"
},
"name": "localStorage"
},
"property": {
"type": "CallExpression",
"start": 1890,
"end": 1903,
"loc": {
"start": {
"line": 89,
"column": 25
},
"end": {
"line": 89,
"column": 38
}
},
"callee": {
"type": "MemberExpression",
"start": 1890,
"end": 1901,
"loc": {
"start": {
"line": 89,
"column": 25
},
"end": {
"line": 89,
"column": 36
}
},
"object": {
"type": "ThisExpression",
"start": 1890,
"end": 1894,
"loc": {
"start": {
"line": 89,
"column": 25
},
"end": {
"line": 89,
"column": 29
}
}
},
"property": {
"type": "Identifier",
"start": 1895,
"end": 1901,
"loc": {
"start": {
"line": 89,
"column": 30
},
"end": {
"line": 89,
"column": 36
},
"identifierName": "getKey"
},
"name": "getKey"
},
"computed": false
},
"arguments": []
},
"computed": true
},
"right": {
"type": "CallExpression",
"start": 1907,
"end": 1928,
"loc": {
"start": {
"line": 89,
"column": 42
},
"end": {
"line": 89,
"column": 63
}
},
"callee": {
"type": "MemberExpression",
"start": 1907,
"end": 1921,
"loc": {
"start": {
"line": 89,
"column": 42
},
"end": {
"line": 89,
"column": 56
}
},
"object": {
"type": "Identifier",
"start": 1907,
"end": 1911,
"loc": {
"start": {
"line": 89,
"column": 42
},
"end": {
"line": 89,
"column": 46
},
"identifierName": "JSON"
},
"name": "JSON"
},
"property": {
"type": "Identifier",
"start": 1912,
"end": 1921,
"loc": {
"start": {
"line": 89,
"column": 47
},
"end": {
"line": 89,
"column": 56
},
"identifierName": "stringify"
},
"name": "stringify"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 1922,
"end": 1927,
"loc": {
"start": {
"line": 89,
"column": 57
},
"end": {
"line": 89,
"column": 62
},
"identifierName": "state"
},
"name": "state"
}
]
}
}
}
],
"directives": []
},
"alternate": {
"type": "BlockStatement",
"start": 1945,
"end": 2035,
"loc": {
"start": {
"line": 90,
"column": 15
},
"end": {
"line": 92,
"column": 9
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 1959,
"end": 2025,
"loc": {
"start": {
"line": 91,
"column": 12
},
"end": {
"line": 91,
"column": 78
}
},
"expression": {
"type": "CallExpression",
"start": 1959,
"end": 2024,
"loc": {
"start": {
"line": 91,
"column": 12
},
"end": {
"line": 91,
"column": 77
}
},
"callee": {
"type": "MemberExpression",
"start": 1959,
"end": 1971,
"loc": {
"start": {
"line": 91,
"column": 12
},
"end": {
"line": 91,
"column": 24
}
},
"object": {
"type": "Identifier",
"start": 1959,
"end": 1965,
"loc": {
"start": {
"line": 91,
"column": 12
},
"end": {
"line": 91,
"column": 18
},
"identifierName": "Cookie"
},
"name": "Cookie"
},
"property": {
"type": "Identifier",
"start": 1966,
"end": 1971,
"loc": {
"start": {
"line": 91,
"column": 19
},
"end": {
"line": 91,
"column": 24
},
"identifierName": "write"
},
"name": "write"
},
"computed": false
},
"arguments": [
{
"type": "CallExpression",
"start": 1972,
"end": 1985,
"loc": {
"start": {
"line": 91,
"column": 25
},
"end": {
"line": 91,
"column": 38
}
},
"callee": {
"type": "MemberExpression",
"start": 1972,
"end": 1983,
"loc": {
"start": {
"line": 91,
"column": 25
},
"end": {
"line": 91,
"column": 36
}
},
"object": {
"type": "ThisExpression",
"start": 1972,
"end": 1976,
"loc": {
"start": {
"line": 91,
"column": 25
},
"end": {
"line": 91,
"column": 29
}
}
},
"property": {
"type": "Identifier",
"start": 1977,
"end": 1983,
"loc": {
"start": {
"line": 91,
"column": 30
},
"end": {
"line": 91,
"column": 36
},
"identifierName": "getKey"
},
"name": "getKey"
},
"computed": false
},
"arguments": []
},
{
"type": "CallExpression",
"start": 1987,
"end": 2008,
"loc": {
"start": {
"line": 91,
"column": 40
},
"end": {
"line": 91,
"column": 61
}
},
"callee": {
"type": "MemberExpression",
"start": 1987,
"end": 2001,
"loc": {
"start": {
"line": 91,
"column": 40
},
"end": {
"line": 91,
"column": 54
}
},
"object": {
"type": "Identifier",
"start": 1987,
"end": 1991,
"loc": {
"start": {
"line": 91,
"column": 40
},
"end": {
"line": 91,
"column": 44
},
"identifierName": "JSON"
},
"name": "JSON"
},
"property": {
"type": "Identifier",
"start": 1992,
"end": 2001,
"loc": {
"start": {
"line": 91,
"column": 45
},
"end": {
"line": 91,
"column": 54
},
"identifierName": "stringify"
},
"name": "stringify"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 2002,
"end": 2007,
"loc": {
"start": {
"line": 91,
"column": 55
},
"end": {
"line": 91,
"column": 60
},
"identifierName": "state"
},
"name": "state"
}
]
},
{
"type": "MemberExpression",
"start": 2010,
"end": 2023,
"loc": {
"start": {
"line": 91,
"column": 63
},
"end": {
"line": 91,
"column": 76
}
},
"object": {
"type": "ThisExpression",
"start": 2010,
"end": 2014,
"loc": {
"start": {
"line": 91,
"column": 63
},
"end": {
"line": 91,
"column": 67
}
}
},
"property": {
"type": "Identifier",
"start": 2015,
"end": 2023,
"loc": {
"start": {
"line": 91,
"column": 68
},
"end": {
"line": 91,
"column": 76
},
"identifierName": "duration"
},
"name": "duration"
},
"computed": false
}
]
}
}
],
"directives": []
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Persists the features state on state changes\n *\n * @param {State} state Instance of State\n ",
"start": 1691,
"end": 1807,
"loc": {
"start": {
"line": 82,
"column": 4
},
"end": {
"line": 86,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Turns stored string into a State JSON object\n *\n * @returns {Object} JSON object\n ",
"start": 2047,
"end": 2155,
"loc": {
"start": {
"line": 95,
"column": 4
},
"end": {
"line": 99,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 2160,
"end": 2459,
"loc": {
"start": {
"line": 100,
"column": 4
},
"end": {
"line": 112,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 2160,
"end": 2168,
"loc": {
"start": {
"line": 100,
"column": 4
},
"end": {
"line": 100,
"column": 12
},
"identifierName": "retrieve"
},
"name": "retrieve",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 2171,
"end": 2459,
"loc": {
"start": {
"line": 100,
"column": 15
},
"end": {
"line": 112,
"column": 5
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 2181,
"end": 2198,
"loc": {
"start": {
"line": 101,
"column": 8
},
"end": {
"line": 101,
"column": 25
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 2185,
"end": 2197,
"loc": {
"start": {
"line": 101,
"column": 12
},
"end": {
"line": 101,
"column": 24
}
},
"id": {
"type": "Identifier",
"start": 2185,
"end": 2190,
"loc": {
"start": {
"line": 101,
"column": 12
},
"end": {
"line": 101,
"column": 17
},
"identifierName": "state"
},
"name": "state"
},
"init": {
"type": "NullLiteral",
"start": 2193,
"end": 2197,
"loc": {
"start": {
"line": 101,
"column": 20
},
"end": {
"line": 101,
"column": 24
}
}
}
}
],
"kind": "let"
},
{
"type": "IfStatement",
"start": 2207,
"end": 2361,
"loc": {
"start": {
"line": 102,
"column": 8
},
"end": {
"line": 106,
"column": 9
}
},
"test": {
"type": "MemberExpression",
"start": 2211,
"end": 2234,
"loc": {
"start": {
"line": 102,
"column": 12
},
"end": {
"line": 102,
"column": 35
}
},
"object": {
"type": "ThisExpression",
"start": 2211,
"end": 2215,
"loc": {
"start": {
"line": 102,
"column": 12
},
"end": {
"line": 102,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"start": 2216,
"end": 2234,
"loc": {
"start": {
"line": 102,
"column": 17
},
"end": {
"line": 102,
"column": 35
},
"identifierName": "enableLocalStorage"
},
"name": "enableLocalStorage"
},
"computed": false
},
"consequent": {
"type": "BlockStatement",
"start": 2236,
"end": 2296,
"loc": {
"start": {
"line": 102,
"column": 37
},
"end": {
"line": 104,
"column": 9
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 2250,
"end": 2286,
"loc": {
"start": {
"line": 103,
"column": 12
},
"end": {
"line": 103,
"column": 48
}
},
"expression": {
"type": "AssignmentExpression",
"start": 2250,
"end": 2285,
"loc": {
"start": {
"line": 103,
"column": 12
},
"end": {
"line": 103,
"column": 47
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 2250,
"end": 2255,
"loc": {
"start": {
"line": 103,
"column": 12
},
"end": {
"line": 103,
"column": 17
},
"identifierName": "state"
},
"name": "state"
},
"right": {
"type": "MemberExpression",
"start": 2258,
"end": 2285,
"loc": {
"start": {
"line": 103,
"column": 20
},
"end": {
"line": 103,
"column": 47
}
},
"object": {
"type": "Identifier",
"start": 2258,
"end": 2270,
"loc": {
"start": {
"line": 103,
"column": 20
},
"end": {
"line": 103,
"column": 32
},
"identifierName": "localStorage"
},
"name": "localStorage"
},
"property": {
"type": "CallExpression",
"start": 2271,
"end": 2284,
"loc": {
"start": {
"line": 103,
"column": 33
},
"end": {
"line": 103,
"column": 46
}
},
"callee": {
"type": "MemberExpression",
"start": 2271,
"end": 2282,
"loc": {
"start": {
"line": 103,
"column": 33
},
"end": {
"line": 103,
"column": 44
}
},
"object": {
"type": "ThisExpression",
"start": 2271,
"end": 2275,
"loc": {
"start": {
"line": 103,
"column": 33
},
"end": {
"line": 103,
"column": 37
}
}
},
"property": {
"type": "Identifier",
"start": 2276,
"end": 2282,
"loc": {
"start": {
"line": 103,
"column": 38
},
"end": {
"line": 103,
"column": 44
},
"identifierName": "getKey"
},
"name": "getKey"
},
"computed": false
},
"arguments": []
},
"computed": true
}
}
}
],
"directives": []
},
"alternate": {
"type": "BlockStatement",
"start": 2302,
"end": 2361,
"loc": {
"start": {
"line": 104,
"column": 15
},
"end": {
"line": 106,
"column": 9
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 2316,
"end": 2351,
"loc": {
"start": {
"line": 105,
"column": 12
},
"end": {
"line": 105,
"column": 47
}
},
"expression": {
"type": "AssignmentExpression",
"start": 2316,
"end": 2350,
"loc": {
"start": {
"line": 105,
"column": 12
},
"end": {
"line": 105,
"column": 46
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 2316,
"end": 2321,
"loc": {
"start": {
"line": 105,
"column": 12
},
"end": {
"line": 105,
"column": 17
},
"identifierName": "state"
},
"name": "state"
},
"right": {
"type": "CallExpression",
"start": 2324,
"end": 2350,
"loc": {
"start": {
"line": 105,
"column": 20
},
"end": {
"line": 105,
"column": 46
}
},
"callee": {
"type": "MemberExpression",
"start": 2324,
"end": 2335,
"loc": {
"start": {
"line": 105,
"column": 20
},
"end": {
"line": 105,
"column": 31
}
},
"object": {
"type": "Identifier",
"start": 2324,
"end": 2330,
"loc": {
"start": {
"line": 105,
"column": 20
},
"end": {
"line": 105,
"column": 26
},
"identifierName": "Cookie"
},
"name": "Cookie"
},
"property": {
"type": "Identifier",
"start": 2331,
"end": 2335,
"loc": {
"start": {
"line": 105,
"column": 27
},
"end": {
"line": 105,
"column": 31
},
"identifierName": "read"
},
"name": "read"
},
"computed": false
},
"arguments": [
{
"type": "CallExpression",
"start": 2336,
"end": 2349,
"loc": {
"start": {
"line": 105,
"column": 32
},
"end": {
"line": 105,
"column": 45
}
},
"callee": {
"type": "MemberExpression",
"start": 2336,
"end": 2347,
"loc": {
"start": {
"line": 105,
"column": 32
},
"end": {
"line": 105,
"column": 43
}
},
"object": {
"type": "ThisExpression",
"start": 2336,
"end": 2340,
"loc": {
"start": {
"line": 105,
"column": 32
},
"end": {
"line": 105,
"column": 36
}
}
},
"property": {
"type": "Identifier",
"start": 2341,
"end": 2347,
"loc": {
"start": {
"line": 105,
"column": 37
},
"end": {
"line": 105,
"column": 43
},
"identifierName": "getKey"
},
"name": "getKey"
},
"computed": false
},
"arguments": []
}
]
}
}
}
],
"directives": []
}
},
{
"type": "IfStatement",
"start": 2371,
"end": 2419,
"loc": {
"start": {
"line": 108,
"column": 8
},
"end": {
"line": 110,
"column": 9
}
},
"test": {
"type": "UnaryExpression",
"start": 2375,
"end": 2381,
"loc": {
"start": {
"line": 108,
"column": 12
},
"end": {
"line": 108,
"column": 18
}
},
"operator": "!",
"prefix": true,
"argument": {
"type": "Identifier",
"start": 2376,
"end": 2381,
"loc": {
"start": {
"line": 108,
"column": 13
},
"end": {
"line": 108,
"column": 18
},
"identifierName": "state"
},
"name": "state"
},
"extra": {
"parenthesizedArgument": false
}
},
"consequent": {
"type": "BlockStatement",
"start": 2383,
"end": 2419,
"loc": {
"start": {
"line": 108,
"column": 20
},
"end": {
"line": 110,
"column": 9
}
},
"body": [
{
"type": "ReturnStatement",
"start": 2397,
"end": 2409,
"loc": {
"start": {
"line": 109,
"column": 12
},
"end": {
"line": 109,
"column": 24
}
},
"argument": {
"type": "NullLiteral",
"start": 2404,
"end": 2408,
"loc": {
"start": {
"line": 109,
"column": 19
},
"end": {
"line": 109,
"column": 23
}
}
}
}
],
"directives": []
},
"alternate": null
},
{
"type": "ReturnStatement",
"start": 2428,
"end": 2453,
"loc": {
"start": {
"line": 111,
"column": 8
},
"end": {
"line": 111,
"column": 33
}
},
"argument": {
"type": "CallExpression",
"start": 2435,
"end": 2452,
"loc": {
"start": {
"line": 111,
"column": 15
},
"end": {
"line": 111,
"column": 32
}
},
"callee": {
"type": "MemberExpression",
"start": 2435,
"end": 2445,
"loc": {
"start": {
"line": 111,
"column": 15
},
"end": {
"line": 111,
"column": 25
}
},
"object": {
"type": "Identifier",
"start": 2435,
"end": 2439,
"loc": {
"start": {
"line": 111,
"column": 15
},
"end": {
"line": 111,
"column": 19
},
"identifierName": "JSON"
},
"name": "JSON"
},
"property": {
"type": "Identifier",
"start": 2440,
"end": 2445,
"loc": {
"start": {
"line": 111,
"column": 20
},
"end": {
"line": 111,
"column": 25
},
"identifierName": "parse"
},
"name": "parse"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 2446,
"end": 2451,
"loc": {
"start": {
"line": 111,
"column": 26
},
"end": {
"line": 111,
"column": 31
},
"identifierName": "state"
},
"name": "state"
}
]
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Turns stored string into a State JSON object\n *\n * @returns {Object} JSON object\n ",
"start": 2047,
"end": 2155,
"loc": {
"start": {
"line": 95,
"column": 4
},
"end": {
"line": 99,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Removes persisted state from storage\n ",
"start": 2465,
"end": 2520,
"loc": {
"start": {
"line": 114,
"column": 4
},
"end": {
"line": 116,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 2525,
"end": 2701,
"loc": {
"start": {
"line": 117,
"column": 4
},
"end": {
"line": 123,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 2525,
"end": 2531,
"loc": {
"start": {
"line": 117,
"column": 4
},
"end": {
"line": 117,
"column": 10
},
"identifierName": "remove"
},
"name": "remove",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 2534,
"end": 2701,
"loc": {
"start": {
"line": 117,
"column": 13
},
"end": {
"line": 123,
"column": 5
}
},
"body": [
{
"type": "IfStatement",
"start": 2544,
"end": 2695,
"loc": {
"start": {
"line": 118,
"column": 8
},
"end": {
"line": 122,
"column": 9
}
},
"test": {
"type": "MemberExpression",
"start": 2548,
"end": 2571,
"loc": {
"start": {
"line": 118,
"column": 12
},
"end": {
"line": 118,
"column": 35
}
},
"object": {
"type": "ThisExpression",
"start": 2548,
"end": 2552,
"loc": {
"start": {
"line": 118,
"column": 12
},
"end": {
"line": 118,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"start": 2553,
"end": 2571,
"loc": {
"start": {
"line": 118,
"column": 17
},
"end": {
"line": 118,
"column": 35
},
"identifierName": "enableLocalStorage"
},
"name": "enableLocalStorage"
},
"computed": false
},
"consequent": {
"type": "BlockStatement",
"start": 2573,
"end": 2636,
"loc": {
"start": {
"line": 118,
"column": 37
},
"end": {
"line": 120,
"column": 9
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 2587,
"end": 2626,
"loc": {
"start": {
"line": 119,
"column": 12
},
"end": {
"line": 119,
"column": 51
}
},
"expression": {
"type": "CallExpression",
"start": 2587,
"end": 2625,
"loc": {
"start": {
"line": 119,
"column": 12
},
"end": {
"line": 119,
"column": 50
}
},
"callee": {
"type": "MemberExpression",
"start": 2587,
"end": 2610,
"loc": {
"start": {
"line": 119,
"column": 12
},
"end": {
"line": 119,
"column": 35
}
},
"object": {
"type": "Identifier",
"start": 2587,
"end": 2599,
"loc": {
"start": {
"line": 119,
"column": 12
},
"end": {
"line": 119,
"column": 24
},
"identifierName": "localStorage"
},
"name": "localStorage"
},
"property": {
"type": "Identifier",
"start": 2600,
"end": 2610,
"loc": {
"start": {
"line": 119,
"column": 25
},
"end": {
"line": 119,
"column": 35
},
"identifierName": "removeItem"
},
"name": "removeItem"
},
"computed": false
},
"arguments": [
{
"type": "CallExpression",
"start": 2611,
"end": 2624,
"loc": {
"start": {
"line": 119,
"column": 36
},
"end": {
"line": 119,
"column": 49
}
},
"callee": {
"type": "MemberExpression",
"start": 2611,
"end": 2622,
"loc": {
"start": {
"line": 119,
"column": 36
},
"end": {
"line": 119,
"column": 47
}
},
"object": {
"type": "ThisExpression",
"start": 2611,
"end": 2615,
"loc": {
"start": {
"line": 119,
"column": 36
},
"end": {
"line": 119,
"column": 40
}
}
},
"property": {
"type": "Identifier",
"start": 2616,
"end": 2622,
"loc": {
"start": {
"line": 119,
"column": 41
},
"end": {
"line": 119,
"column": 47
},
"identifierName": "getKey"
},
"name": "getKey"
},
"computed": false
},
"arguments": []
}
]
}
}
],
"directives": []
},
"alternate": {
"type": "BlockStatement",
"start": 2642,
"end": 2695,
"loc": {
"start": {
"line": 120,
"column": 15
},
"end": {
"line": 122,
"column": 9
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 2656,
"end": 2685,
"loc": {
"start": {
"line": 121,
"column": 12
},
"end": {
"line": 121,
"column": 41
}
},
"expression": {
"type": "CallExpression",
"start": 2656,
"end": 2684,
"loc": {
"start": {
"line": 121,
"column": 12
},
"end": {
"line": 121,
"column": 40
}
},
"callee": {
"type": "MemberExpression",
"start": 2656,
"end": 2669,
"loc": {
"start": {
"line": 121,
"column": 12
},
"end": {
"line": 121,
"column": 25
}
},
"object": {
"type": "Identifier",
"start": 2656,
"end": 2662,
"loc": {
"start": {
"line": 121,
"column": 12
},
"end": {
"line": 121,
"column": 18
},
"identifierName": "Cookie"
},
"name": "Cookie"
},
"property": {
"type": "Identifier",
"start": 2663,
"end": 2669,
"loc": {
"start": {
"line": 121,
"column": 19
},
"end": {
"line": 121,
"column": 25
},
"identifierName": "remove"
},
"name": "remove"
},
"computed": false
},
"arguments": [
{
"type": "CallExpression",
"start": 2670,
"end": 2683,
"loc": {
"start": {
"line": 121,
"column": 26
},
"end": {
"line": 121,
"column": 39
}
},
"callee": {
"type": "MemberExpression",
"start": 2670,
"end": 2681,
"loc": {
"start": {
"line": 121,
"column": 26
},
"end": {
"line": 121,
"column": 37
}
},
"object": {
"type": "ThisExpression",
"start": 2670,
"end": 2674,
"loc": {
"start": {
"line": 121,
"column": 26
},
"end": {
"line": 121,
"column": 30
}
}
},
"property": {
"type": "Identifier",
"start": 2675,
"end": 2681,
"loc": {
"start": {
"line": 121,
"column": 31
},
"end": {
"line": 121,
"column": 37
},
"identifierName": "getKey"
},
"name": "getKey"
},
"computed": false
},
"arguments": []
}
]
}
}
],
"directives": []
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Removes persisted state from storage\n ",
"start": 2465,
"end": 2520,
"loc": {
"start": {
"line": 114,
"column": 4
},
"end": {
"line": 116,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Applies persisted state to features\n ",
"start": 2707,
"end": 2761,
"loc": {
"start": {
"line": 125,
"column": 4
},
"end": {
"line": 127,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 2766,
"end": 2983,
"loc": {
"start": {
"line": 128,
"column": 4
},
"end": {
"line": 135,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 2766,
"end": 2770,
"loc": {
"start": {
"line": 128,
"column": 4
},
"end": {
"line": 128,
"column": 8
},
"identifierName": "sync"
},
"name": "sync",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 2773,
"end": 2983,
"loc": {
"start": {
"line": 128,
"column": 11
},
"end": {
"line": 135,
"column": 5
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 2783,
"end": 2811,
"loc": {
"start": {
"line": 129,
"column": 8
},
"end": {
"line": 129,
"column": 36
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 2787,
"end": 2810,
"loc": {
"start": {
"line": 129,
"column": 12
},
"end": {
"line": 129,
"column": 35
}
},
"id": {
"type": "Identifier",
"start": 2787,
"end": 2792,
"loc": {
"start": {
"line": 129,
"column": 12
},
"end": {
"line": 129,
"column": 17
},
"identifierName": "state"
},
"name": "state"
},
"init": {
"type": "CallExpression",
"start": 2795,
"end": 2810,
"loc": {
"start": {
"line": 129,
"column": 20
},
"end": {
"line": 129,
"column": 35
}
},
"callee": {
"type": "MemberExpression",
"start": 2795,
"end": 2808,
"loc": {
"start": {
"line": 129,
"column": 20
},
"end": {
"line": 129,
"column": 33
}
},
"object": {
"type": "ThisExpression",
"start": 2795,
"end": 2799,
"loc": {
"start": {
"line": 129,
"column": 20
},
"end": {
"line": 129,
"column": 24
}
}
},
"property": {
"type": "Identifier",
"start": 2800,
"end": 2808,
"loc": {
"start": {
"line": 129,
"column": 25
},
"end": {
"line": 129,
"column": 33
},
"identifierName": "retrieve"
},
"name": "retrieve"
},
"computed": false
},
"arguments": []
}
}
],
"kind": "let"
},
{
"type": "IfStatement",
"start": 2820,
"end": 2863,
"loc": {
"start": {
"line": 130,
"column": 8
},
"end": {
"line": 132,
"column": 9
}
},
"test": {
"type": "UnaryExpression",
"start": 2824,
"end": 2830,
"loc": {
"start": {
"line": 130,
"column": 12
},
"end": {
"line": 130,
"column": 18
}
},
"operator": "!",
"prefix": true,
"argument": {
"type": "Identifier",
"start": 2825,
"end": 2830,
"loc": {
"start": {
"line": 130,
"column": 13
},
"end": {
"line": 130,
"column": 18
},
"identifierName": "state"
},
"name": "state"
},
"extra": {
"parenthesizedArgument": false
}
},
"consequent": {
"type": "BlockStatement",
"start": 2832,
"end": 2863,
"loc": {
"start": {
"line": 130,
"column": 20
},
"end": {
"line": 132,
"column": 9
}
},
"body": [
{
"type": "ReturnStatement",
"start": 2846,
"end": 2853,
"loc": {
"start": {
"line": 131,
"column": 12
},
"end": {
"line": 131,
"column": 19
}
},
"argument": null
}
],
"directives": [],
"trailingComments": null
},
"alternate": null,
"trailingComments": [
{
"type": "CommentLine",
"value": " override current state with persisted one and sync features",
"start": 2872,
"end": 2934,
"loc": {
"start": {
"line": 133,
"column": 8
},
"end": {
"line": 133,
"column": 70
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 2943,
"end": 2977,
"loc": {
"start": {
"line": 134,
"column": 8
},
"end": {
"line": 134,
"column": 42
}
},
"expression": {
"type": "CallExpression",
"start": 2943,
"end": 2976,
"loc": {
"start": {
"line": 134,
"column": 8
},
"end": {
"line": 134,
"column": 41
}
},
"callee": {
"type": "MemberExpression",
"start": 2943,
"end": 2969,
"loc": {
"start": {
"line": 134,
"column": 8
},
"end": {
"line": 134,
"column": 34
}
},
"object": {
"type": "MemberExpression",
"start": 2943,
"end": 2953,
"loc": {
"start": {
"line": 134,
"column": 8
},
"end": {
"line": 134,
"column": 18
}
},
"object": {
"type": "ThisExpression",
"start": 2943,
"end": 2947,
"loc": {
"start": {
"line": 134,
"column": 8
},
"end": {
"line": 134,
"column": 12
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 2948,
"end": 2953,
"loc": {
"start": {
"line": 134,
"column": 13
},
"end": {
"line": 134,
"column": 18
},
"identifierName": "state"
},
"name": "state"
},
"computed": false,
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 2954,
"end": 2969,
"loc": {
"start": {
"line": 134,
"column": 19
},
"end": {
"line": 134,
"column": 34
},
"identifierName": "overrideAndSync"
},
"name": "overrideAndSync"
},
"computed": false,
"leadingComments": null
},
"arguments": [
{
"type": "Identifier",
"start": 2970,
"end": 2975,
"loc": {
"start": {
"line": 134,
"column": 35
},
"end": {
"line": 134,
"column": 40
},
"identifierName": "state"
},
"name": "state"
}
],
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " override current state with persisted one and sync features",
"start": 2872,
"end": 2934,
"loc": {
"start": {
"line": 133,
"column": 8
},
"end": {
"line": 133,
"column": 70
}
}
}
]
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Applies persisted state to features\n ",
"start": 2707,
"end": 2761,
"loc": {
"start": {
"line": 125,
"column": 4
},
"end": {
"line": 127,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Returns the storage key\n *\n * @returns {String} Key\n ",
"start": 2989,
"end": 3067,
"loc": {
"start": {
"line": 137,
"column": 4
},
"end": {
"line": 141,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 3072,
"end": 3220,
"loc": {
"start": {
"line": 142,
"column": 4
},
"end": {
"line": 147,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 3072,
"end": 3078,
"loc": {
"start": {
"line": 142,
"column": 4
},
"end": {
"line": 142,
"column": 10
},
"identifierName": "getKey"
},
"name": "getKey",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 3081,
"end": 3220,
"loc": {
"start": {
"line": 142,
"column": 13
},
"end": {
"line": 147,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 3091,
"end": 3214,
"loc": {
"start": {
"line": 143,
"column": 8
},
"end": {
"line": 146,
"column": 11
}
},
"argument": {
"type": "CallExpression",
"start": 3098,
"end": 3213,
"loc": {
"start": {
"line": 143,
"column": 15
},
"end": {
"line": 146,
"column": 10
}
},
"callee": {
"type": "MemberExpression",
"start": 3098,
"end": 3112,
"loc": {
"start": {
"line": 143,
"column": 15
},
"end": {
"line": 143,
"column": 29
}
},
"object": {
"type": "Identifier",
"start": 3098,
"end": 3102,
"loc": {
"start": {
"line": 143,
"column": 15
},
"end": {
"line": 143,
"column": 19
},
"identifierName": "JSON"
},
"name": "JSON"
},
"property": {
"type": "Identifier",
"start": 3103,
"end": 3112,
"loc": {
"start": {
"line": 143,
"column": 20
},
"end": {
"line": 143,
"column": 29
},
"identifierName": "stringify"
},
"name": "stringify"
},
"computed": false
},
"arguments": [
{
"type": "ObjectExpression",
"start": 3113,
"end": 3212,
"loc": {
"start": {
"line": 143,
"column": 30
},
"end": {
"line": 146,
"column": 9
}
},
"properties": [
{
"type": "ObjectProperty",
"start": 3127,
"end": 3165,
"loc": {
"start": {
"line": 144,
"column": 12
},
"end": {
"line": 144,
"column": 50
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 3127,
"end": 3130,
"loc": {
"start": {
"line": 144,
"column": 12
},
"end": {
"line": 144,
"column": 15
},
"identifierName": "key"
},
"name": "key"
},
"value": {
"type": "TemplateLiteral",
"start": 3132,
"end": 3165,
"loc": {
"start": {
"line": 144,
"column": 17
},
"end": {
"line": 144,
"column": 50
}
},
"expressions": [
{
"type": "MemberExpression",
"start": 3135,
"end": 3149,
"loc": {
"start": {
"line": 144,
"column": 20
},
"end": {
"line": 144,
"column": 34
}
},
"object": {
"type": "MemberExpression",
"start": 3135,
"end": 3142,
"loc": {
"start": {
"line": 144,
"column": 20
},
"end": {
"line": 144,
"column": 27
}
},
"object": {
"type": "ThisExpression",
"start": 3135,
"end": 3139,
"loc": {
"start": {
"line": 144,
"column": 20
},
"end": {
"line": 144,
"column": 24
}
}
},
"property": {
"type": "Identifier",
"start": 3140,
"end": 3142,
"loc": {
"start": {
"line": 144,
"column": 25
},
"end": {
"line": 144,
"column": 27
},
"identifierName": "tf"
},
"name": "tf"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 3143,
"end": 3149,
"loc": {
"start": {
"line": 144,
"column": 28
},
"end": {
"line": 144,
"column": 34
},
"identifierName": "prfxTf"
},
"name": "prfxTf"
},
"computed": false
},
{
"type": "MemberExpression",
"start": 3153,
"end": 3163,
"loc": {
"start": {
"line": 144,
"column": 38
},
"end": {
"line": 144,
"column": 48
}
},
"object": {
"type": "MemberExpression",
"start": 3153,
"end": 3160,
"loc": {
"start": {
"line": 144,
"column": 38
},
"end": {
"line": 144,
"column": 45
}
},
"object": {
"type": "ThisExpression",
"start": 3153,
"end": 3157,
"loc": {
"start": {
"line": 144,
"column": 38
},
"end": {
"line": 144,
"column": 42
}
}
},
"property": {
"type": "Identifier",
"start": 3158,
"end": 3160,
"loc": {
"start": {
"line": 144,
"column": 43
},
"end": {
"line": 144,
"column": 45
},
"identifierName": "tf"
},
"name": "tf"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 3161,
"end": 3163,
"loc": {
"start": {
"line": 144,
"column": 46
},
"end": {
"line": 144,
"column": 48
},
"identifierName": "id"
},
"name": "id"
},
"computed": false
}
],
"quasis": [
{
"type": "TemplateElement",
"start": 3133,
"end": 3133,
"loc": {
"start": {
"line": 144,
"column": 18
},
"end": {
"line": 144,
"column": 18
}
},
"value": {
"raw": "",
"cooked": ""
},
"tail": false
},
{
"type": "TemplateElement",
"start": 3150,
"end": 3151,
"loc": {
"start": {
"line": 144,
"column": 35
},
"end": {
"line": 144,
"column": 36
}
},
"value": {
"raw": "_",
"cooked": "_"
},
"tail": false
},
{
"type": "TemplateElement",
"start": 3164,
"end": 3164,
"loc": {
"start": {
"line": 144,
"column": 49
},
"end": {
"line": 144,
"column": 49
}
},
"value": {
"raw": "",
"cooked": ""
},
"tail": true
}
]
}
},
{
"type": "ObjectProperty",
"start": 3179,
"end": 3202,
"loc": {
"start": {
"line": 145,
"column": 12
},
"end": {
"line": 145,
"column": 35
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 3179,
"end": 3183,
"loc": {
"start": {
"line": 145,
"column": 12
},
"end": {
"line": 145,
"column": 16
},
"identifierName": "path"
},
"name": "path"
},
"value": {
"type": "MemberExpression",
"start": 3185,
"end": 3202,
"loc": {
"start": {
"line": 145,
"column": 18
},
"end": {
"line": 145,
"column": 35
}
},
"object": {
"type": "Identifier",
"start": 3185,
"end": 3193,
"loc": {
"start": {
"line": 145,
"column": 18
},
"end": {
"line": 145,
"column": 26
},
"identifierName": "location"
},
"name": "location"
},
"property": {
"type": "Identifier",
"start": 3194,
"end": 3202,
"loc": {
"start": {
"line": 145,
"column": 27
},
"end": {
"line": 145,
"column": 35
},
"identifierName": "pathname"
},
"name": "pathname"
},
"computed": false
}
}
]
}
]
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Returns the storage key\n *\n * @returns {String} Key\n ",
"start": 2989,
"end": 3067,
"loc": {
"start": {
"line": 137,
"column": 4
},
"end": {
"line": 141,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Release Storage event subscriptions and clear fields\n ",
"start": 3226,
"end": 3297,
"loc": {
"start": {
"line": 149,
"column": 4
},
"end": {
"line": 151,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 3302,
"end": 3540,
"loc": {
"start": {
"line": 152,
"column": 4
},
"end": {
"line": 160,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 3302,
"end": 3309,
"loc": {
"start": {
"line": 152,
"column": 4
},
"end": {
"line": 152,
"column": 11
},
"identifierName": "destroy"
},
"name": "destroy",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 3312,
"end": 3540,
"loc": {
"start": {
"line": 152,
"column": 14
},
"end": {
"line": 160,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 3322,
"end": 3391,
"loc": {
"start": {
"line": 153,
"column": 8
},
"end": {
"line": 153,
"column": 77
}
},
"expression": {
"type": "CallExpression",
"start": 3322,
"end": 3390,
"loc": {
"start": {
"line": 153,
"column": 8
},
"end": {
"line": 153,
"column": 76
}
},
"callee": {
"type": "MemberExpression",
"start": 3322,
"end": 3338,
"loc": {
"start": {
"line": 153,
"column": 8
},
"end": {
"line": 153,
"column": 24
}
},
"object": {
"type": "MemberExpression",
"start": 3322,
"end": 3334,
"loc": {
"start": {
"line": 153,
"column": 8
},
"end": {
"line": 153,
"column": 20
}
},
"object": {
"type": "ThisExpression",
"start": 3322,
"end": 3326,
"loc": {
"start": {
"line": 153,
"column": 8
},
"end": {
"line": 153,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 3327,
"end": 3334,
"loc": {
"start": {
"line": 153,
"column": 13
},
"end": {
"line": 153,
"column": 20
},
"identifierName": "emitter"
},
"name": "emitter"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 3335,
"end": 3338,
"loc": {
"start": {
"line": 153,
"column": 21
},
"end": {
"line": 153,
"column": 24
},
"identifierName": "off"
},
"name": "off"
},
"computed": false
},
"arguments": [
{
"type": "ArrayExpression",
"start": 3339,
"end": 3356,
"loc": {
"start": {
"line": 153,
"column": 25
},
"end": {
"line": 153,
"column": 42
}
},
"elements": [
{
"type": "StringLiteral",
"start": 3340,
"end": 3355,
"loc": {
"start": {
"line": 153,
"column": 26
},
"end": {
"line": 153,
"column": 41
}
},
"extra": {
"rawValue": "state-changed",
"raw": "'state-changed'"
},
"value": "state-changed"
}
]
},
{
"type": "ArrowFunctionExpression",
"start": 3358,
"end": 3389,
"loc": {
"start": {
"line": 153,
"column": 44
},
"end": {
"line": 153,
"column": 75
}
},
"id": null,
"generator": false,
"expression": true,
"async": false,
"params": [
{
"type": "Identifier",
"start": 3359,
"end": 3361,
"loc": {
"start": {
"line": 153,
"column": 45
},
"end": {
"line": 153,
"column": 47
},
"identifierName": "tf"
},
"name": "tf"
},
{
"type": "Identifier",
"start": 3363,
"end": 3368,
"loc": {
"start": {
"line": 153,
"column": 49
},
"end": {
"line": 153,
"column": 54
},
"identifierName": "state"
},
"name": "state"
}
],
"body": {
"type": "CallExpression",
"start": 3373,
"end": 3389,
"loc": {
"start": {
"line": 153,
"column": 59
},
"end": {
"line": 153,
"column": 75
}
},
"callee": {
"type": "MemberExpression",
"start": 3373,
"end": 3382,
"loc": {
"start": {
"line": 153,
"column": 59
},
"end": {
"line": 153,
"column": 68
}
},
"object": {
"type": "ThisExpression",
"start": 3373,
"end": 3377,
"loc": {
"start": {
"line": 153,
"column": 59
},
"end": {
"line": 153,
"column": 63
}
}
},
"property": {
"type": "Identifier",
"start": 3378,
"end": 3382,
"loc": {
"start": {
"line": 153,
"column": 64
},
"end": {
"line": 153,
"column": 68
},
"identifierName": "save"
},
"name": "save"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 3383,
"end": 3388,
"loc": {
"start": {
"line": 153,
"column": 69
},
"end": {
"line": 153,
"column": 74
},
"identifierName": "state"
},
"name": "state"
}
]
}
}
]
}
},
{
"type": "ExpressionStatement",
"start": 3400,
"end": 3453,
"loc": {
"start": {
"line": 154,
"column": 8
},
"end": {
"line": 154,
"column": 61
}
},
"expression": {
"type": "CallExpression",
"start": 3400,
"end": 3452,
"loc": {
"start": {
"line": 154,
"column": 8
},
"end": {
"line": 154,
"column": 60
}
},
"callee": {
"type": "MemberExpression",
"start": 3400,
"end": 3416,
"loc": {
"start": {
"line": 154,
"column": 8
},
"end": {
"line": 154,
"column": 24
}
},
"object": {
"type": "MemberExpression",
"start": 3400,
"end": 3412,
"loc": {
"start": {
"line": 154,
"column": 8
},
"end": {
"line": 154,
"column": 20
}
},
"object": {
"type": "ThisExpression",
"start": 3400,
"end": 3404,
"loc": {
"start": {
"line": 154,
"column": 8
},
"end": {
"line": 154,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 3405,
"end": 3412,
"loc": {
"start": {
"line": 154,
"column": 13
},
"end": {
"line": 154,
"column": 20
},
"identifierName": "emitter"
},
"name": "emitter"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 3413,
"end": 3416,
"loc": {
"start": {
"line": 154,
"column": 21
},
"end": {
"line": 154,
"column": 24
},
"identifierName": "off"
},
"name": "off"
},
"computed": false
},
"arguments": [
{
"type": "ArrayExpression",
"start": 3417,
"end": 3432,
"loc": {
"start": {
"line": 154,
"column": 25
},
"end": {
"line": 154,
"column": 40
}
},
"elements": [
{
"type": "StringLiteral",
"start": 3418,
"end": 3431,
"loc": {
"start": {
"line": 154,
"column": 26
},
"end": {
"line": 154,
"column": 39
}
},
"extra": {
"rawValue": "initialized",
"raw": "'initialized'"
},
"value": "initialized"
}
]
},
{
"type": "ArrowFunctionExpression",
"start": 3434,
"end": 3451,
"loc": {
"start": {
"line": 154,
"column": 42
},
"end": {
"line": 154,
"column": 59
}
},
"id": null,
"generator": false,
"expression": true,
"async": false,
"params": [],
"body": {
"type": "CallExpression",
"start": 3440,
"end": 3451,
"loc": {
"start": {
"line": 154,
"column": 48
},
"end": {
"line": 154,
"column": 59
}
},
"callee": {
"type": "MemberExpression",
"start": 3440,
"end": 3449,
"loc": {
"start": {
"line": 154,
"column": 48
},
"end": {
"line": 154,
"column": 57
}
},
"object": {
"type": "ThisExpression",
"start": 3440,
"end": 3444,
"loc": {
"start": {
"line": 154,
"column": 48
},
"end": {
"line": 154,
"column": 52
}
}
},
"property": {
"type": "Identifier",
"start": 3445,
"end": 3449,
"loc": {
"start": {
"line": 154,
"column": 53
},
"end": {
"line": 154,
"column": 57
},
"identifierName": "sync"
},
"name": "sync"
},
"computed": false
},
"arguments": []
}
}
]
}
},
{
"type": "ExpressionStatement",
"start": 3463,
"end": 3477,
"loc": {
"start": {
"line": 156,
"column": 8
},
"end": {
"line": 156,
"column": 22
}
},
"expression": {
"type": "CallExpression",
"start": 3463,
"end": 3476,
"loc": {
"start": {
"line": 156,
"column": 8
},
"end": {
"line": 156,
"column": 21
}
},
"callee": {
"type": "MemberExpression",
"start": 3463,
"end": 3474,
"loc": {
"start": {
"line": 156,
"column": 8
},
"end": {
"line": 156,
"column": 19
}
},
"object": {
"type": "ThisExpression",
"start": 3463,
"end": 3467,
"loc": {
"start": {
"line": 156,
"column": 8
},
"end": {
"line": 156,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 3468,
"end": 3474,
"loc": {
"start": {
"line": 156,
"column": 13
},
"end": {
"line": 156,
"column": 19
},
"identifierName": "remove"
},
"name": "remove"
},
"computed": false
},
"arguments": []
}
},
{
"type": "ExpressionStatement",
"start": 3487,
"end": 3505,
"loc": {
"start": {
"line": 158,
"column": 8
},
"end": {
"line": 158,
"column": 26
}
},
"expression": {
"type": "AssignmentExpression",
"start": 3487,
"end": 3504,
"loc": {
"start": {
"line": 158,
"column": 8
},
"end": {
"line": 158,
"column": 25
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 3487,
"end": 3497,
"loc": {
"start": {
"line": 158,
"column": 8
},
"end": {
"line": 158,
"column": 18
}
},
"object": {
"type": "ThisExpression",
"start": 3487,
"end": 3491,
"loc": {
"start": {
"line": 158,
"column": 8
},
"end": {
"line": 158,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 3492,
"end": 3497,
"loc": {
"start": {
"line": 158,
"column": 13
},
"end": {
"line": 158,
"column": 18
},
"identifierName": "state"
},
"name": "state"
},
"computed": false
},
"right": {
"type": "NullLiteral",
"start": 3500,
"end": 3504,
"loc": {
"start": {
"line": 158,
"column": 21
},
"end": {
"line": 158,
"column": 25
}
}
}
}
},
{
"type": "ExpressionStatement",
"start": 3514,
"end": 3534,
"loc": {
"start": {
"line": 159,
"column": 8
},
"end": {
"line": 159,
"column": 28
}
},
"expression": {
"type": "AssignmentExpression",
"start": 3514,
"end": 3533,
"loc": {
"start": {
"line": 159,
"column": 8
},
"end": {
"line": 159,
"column": 27
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 3514,
"end": 3526,
"loc": {
"start": {
"line": 159,
"column": 8
},
"end": {
"line": 159,
"column": 20
}
},
"object": {
"type": "ThisExpression",
"start": 3514,
"end": 3518,
"loc": {
"start": {
"line": 159,
"column": 8
},
"end": {
"line": 159,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 3519,
"end": 3526,
"loc": {
"start": {
"line": 159,
"column": 13
},
"end": {
"line": 159,
"column": 20
},
"identifierName": "emitter"
},
"name": "emitter"
},
"computed": false
},
"right": {
"type": "NullLiteral",
"start": 3529,
"end": 3533,
"loc": {
"start": {
"line": 159,
"column": 23
},
"end": {
"line": 159,
"column": 27
}
}
}
}
}
],
"directives": []
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Release Storage event subscriptions and clear fields\n ",
"start": 3226,
"end": 3297,
"loc": {
"start": {
"line": 149,
"column": 4
},
"end": {
"line": 151,
"column": 7
}
}
}
]
}
]
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Stores the features state in browser's local storage or cookie\n *\n * @export\n * @class Storage\n ",
"start": 277,
"end": 382,
"loc": {
"start": {
"line": 15,
"column": 0
},
"end": {
"line": 20,
"column": 3
}
}
}
],
"trailingComments": []
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Stores the features state in browser's local storage or cookie\n *\n * @export\n * @class Storage\n ",
"start": 277,
"end": 382,
"loc": {
"start": {
"line": 15,
"column": 0
},
"end": {
"line": 20,
"column": 3
}
}
}
]
}
],
"directives": []
},
"comments": [
{
"type": "CommentBlock",
"value": "*\n * Checks if browser has Storage feature\n ",
"start": 160,
"end": 208,
"loc": {
"start": {
"line": 8,
"column": 0
},
"end": {
"line": 10,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Stores the features state in browser's local storage or cookie\n *\n * @export\n * @class Storage\n ",
"start": 277,
"end": 382,
"loc": {
"start": {
"line": 15,
"column": 0
},
"end": {
"line": 20,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Creates an instance of Storage\n *\n * @param {State} state Instance of State\n ",
"start": 411,
"end": 513,
"loc": {
"start": {
"line": 23,
"column": 4
},
"end": {
"line": 27,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\n * State object\n * @type {State}\n * @private\n ",
"start": 548,
"end": 632,
"loc": {
"start": {
"line": 30,
"column": 8
},
"end": {
"line": 34,
"column": 11
}
}
},
{
"type": "CommentBlock",
"value": "*\n * TableFilter object\n * @type {TableFilter}\n * @private\n ",
"start": 670,
"end": 766,
"loc": {
"start": {
"line": 37,
"column": 8
},
"end": {
"line": 41,
"column": 11
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Persist with local storage\n * @type {Boolean}\n * @private\n ",
"start": 804,
"end": 904,
"loc": {
"start": {
"line": 44,
"column": 8
},
"end": {
"line": 48,
"column": 11
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Persist with cookie\n * @type {Boolean}\n * @private\n ",
"start": 990,
"end": 1083,
"loc": {
"start": {
"line": 51,
"column": 8
},
"end": {
"line": 55,
"column": 11
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Emitter object\n * @type {Emitter}\n * @private\n ",
"start": 1169,
"end": 1257,
"loc": {
"start": {
"line": 58,
"column": 8
},
"end": {
"line": 62,
"column": 11
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Cookie duration in hours from state object\n * @type {Number}\n * @private\n ",
"start": 1305,
"end": 1420,
"loc": {
"start": {
"line": 65,
"column": 8
},
"end": {
"line": 69,
"column": 11
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Initializes the Storage object\n ",
"start": 1479,
"end": 1528,
"loc": {
"start": {
"line": 74,
"column": 4
},
"end": {
"line": 76,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Persists the features state on state changes\n *\n * @param {State} state Instance of State\n ",
"start": 1691,
"end": 1807,
"loc": {
"start": {
"line": 82,
"column": 4
},
"end": {
"line": 86,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Turns stored string into a State JSON object\n *\n * @returns {Object} JSON object\n ",
"start": 2047,
"end": 2155,
"loc": {
"start": {
"line": 95,
"column": 4
},
"end": {
"line": 99,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Removes persisted state from storage\n ",
"start": 2465,
"end": 2520,
"loc": {
"start": {
"line": 114,
"column": 4
},
"end": {
"line": 116,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Applies persisted state to features\n ",
"start": 2707,
"end": 2761,
"loc": {
"start": {
"line": 125,
"column": 4
},
"end": {
"line": 127,
"column": 7
}
}
},
{
"type": "CommentLine",
"value": " override current state with persisted one and sync features",
"start": 2872,
"end": 2934,
"loc": {
"start": {
"line": 133,
"column": 8
},
"end": {
"line": 133,
"column": 70
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Returns the storage key\n *\n * @returns {String} Key\n ",
"start": 2989,
"end": 3067,
"loc": {
"start": {
"line": 137,
"column": 4
},
"end": {
"line": 141,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Release Storage event subscriptions and clear fields\n ",
"start": 3226,
"end": 3297,
"loc": {
"start": {
"line": 149,
"column": 4
},
"end": {
"line": 151,
"column": 7
}
}
}
],
"tokens": [
{
"type": {
"label": "import",
"keyword": "import",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "import",
"start": 0,
"end": 6,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 6
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Cookie",
"start": 7,
"end": 13,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 14,
"end": 18,
"loc": {
"start": {
"line": 1,
"column": 14
},
"end": {
"line": 1,
"column": 18
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "../cookie",
"start": 19,
"end": 30,
"loc": {
"start": {
"line": 1,
"column": 19
},
"end": {
"line": 1,
"column": 30
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 30,
"end": 31,
"loc": {
"start": {
"line": 1,
"column": 30
},
"end": {
"line": 1,
"column": 31
}
}
},
{
"type": {
"label": "import",
"keyword": "import",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "import",
"start": 32,
"end": 38,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 6
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 39,
"end": 40,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "root",
"start": 40,
"end": 44,
"loc": {
"start": {
"line": 2,
"column": 8
},
"end": {
"line": 2,
"column": 12
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 44,
"end": 45,
"loc": {
"start": {
"line": 2,
"column": 12
},
"end": {
"line": 2,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 46,
"end": 50,
"loc": {
"start": {
"line": 2,
"column": 14
},
"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": "../root",
"start": 51,
"end": 60,
"loc": {
"start": {
"line": 2,
"column": 19
},
"end": {
"line": 2,
"column": 28
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 60,
"end": 61,
"loc": {
"start": {
"line": 2,
"column": 28
},
"end": {
"line": 2,
"column": 29
}
}
},
{
"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": 63,
"end": 68,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "JSON",
"start": 69,
"end": 73,
"loc": {
"start": {
"line": 4,
"column": 6
},
"end": {
"line": 4,
"column": 10
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 74,
"end": 75,
"loc": {
"start": {
"line": 4,
"column": 11
},
"end": {
"line": 4,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "root",
"start": 76,
"end": 80,
"loc": {
"start": {
"line": 4,
"column": 13
},
"end": {
"line": 4,
"column": 17
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 80,
"end": 81,
"loc": {
"start": {
"line": 4,
"column": 17
},
"end": {
"line": 4,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "JSON",
"start": 81,
"end": 85,
"loc": {
"start": {
"line": 4,
"column": 18
},
"end": {
"line": 4,
"column": 22
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 85,
"end": 86,
"loc": {
"start": {
"line": 4,
"column": 22
},
"end": {
"line": 4,
"column": 23
}
}
},
{
"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": 87,
"end": 92,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 5,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "localStorage",
"start": 93,
"end": 105,
"loc": {
"start": {
"line": 5,
"column": 6
},
"end": {
"line": 5,
"column": 18
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 106,
"end": 107,
"loc": {
"start": {
"line": 5,
"column": 19
},
"end": {
"line": 5,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "root",
"start": 108,
"end": 112,
"loc": {
"start": {
"line": 5,
"column": 21
},
"end": {
"line": 5,
"column": 25
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 112,
"end": 113,
"loc": {
"start": {
"line": 5,
"column": 25
},
"end": {
"line": 5,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "localStorage",
"start": 113,
"end": 125,
"loc": {
"start": {
"line": 5,
"column": 26
},
"end": {
"line": 5,
"column": 38
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 125,
"end": 126,
"loc": {
"start": {
"line": 5,
"column": 38
},
"end": {
"line": 5,
"column": 39
}
}
},
{
"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": 127,
"end": 132,
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 6,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "location",
"start": 133,
"end": 141,
"loc": {
"start": {
"line": 6,
"column": 6
},
"end": {
"line": 6,
"column": 14
}
}
},
{
"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": 15
},
"end": {
"line": 6,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "root",
"start": 144,
"end": 148,
"loc": {
"start": {
"line": 6,
"column": 17
},
"end": {
"line": 6,
"column": 21
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 148,
"end": 149,
"loc": {
"start": {
"line": 6,
"column": 21
},
"end": {
"line": 6,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "location",
"start": 149,
"end": 157,
"loc": {
"start": {
"line": 6,
"column": 22
},
"end": {
"line": 6,
"column": 30
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 157,
"end": 158,
"loc": {
"start": {
"line": 6,
"column": 30
},
"end": {
"line": 6,
"column": 31
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Checks if browser has Storage feature\n ",
"start": 160,
"end": 208,
"loc": {
"start": {
"line": 8,
"column": 0
},
"end": {
"line": 10,
"column": 3
}
}
},
{
"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": 209,
"end": 215,
"loc": {
"start": {
"line": 11,
"column": 0
},
"end": {
"line": 11,
"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": 216,
"end": 221,
"loc": {
"start": {
"line": 11,
"column": 7
},
"end": {
"line": 11,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "hasStorage",
"start": 222,
"end": 232,
"loc": {
"start": {
"line": 11,
"column": 13
},
"end": {
"line": 11,
"column": 23
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 233,
"end": 234,
"loc": {
"start": {
"line": 11,
"column": 24
},
"end": {
"line": 11,
"column": 25
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 235,
"end": 236,
"loc": {
"start": {
"line": 11,
"column": 26
},
"end": {
"line": 11,
"column": 27
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 236,
"end": 237,
"loc": {
"start": {
"line": 11,
"column": 27
},
"end": {
"line": 11,
"column": 28
}
}
},
{
"type": {
"label": "=>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 238,
"end": 240,
"loc": {
"start": {
"line": 11,
"column": 29
},
"end": {
"line": 11,
"column": 31
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 241,
"end": 242,
"loc": {
"start": {
"line": 11,
"column": 32
},
"end": {
"line": 11,
"column": 33
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 247,
"end": 253,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 10
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "Storage",
"start": 254,
"end": 263,
"loc": {
"start": {
"line": 12,
"column": 11
},
"end": {
"line": 12,
"column": 20
}
}
},
{
"type": {
"label": "in",
"keyword": "in",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": "in",
"start": 264,
"end": 266,
"loc": {
"start": {
"line": 12,
"column": 21
},
"end": {
"line": 12,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "root",
"start": 267,
"end": 271,
"loc": {
"start": {
"line": 12,
"column": 24
},
"end": {
"line": 12,
"column": 28
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 271,
"end": 272,
"loc": {
"start": {
"line": 12,
"column": 28
},
"end": {
"line": 12,
"column": 29
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 273,
"end": 274,
"loc": {
"start": {
"line": 13,
"column": 0
},
"end": {
"line": 13,
"column": 1
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 274,
"end": 275,
"loc": {
"start": {
"line": 13,
"column": 1
},
"end": {
"line": 13,
"column": 2
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Stores the features state in browser's local storage or cookie\n *\n * @export\n * @class Storage\n ",
"start": 277,
"end": 382,
"loc": {
"start": {
"line": 15,
"column": 0
},
"end": {
"line": 20,
"column": 3
}
}
},
{
"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": 383,
"end": 389,
"loc": {
"start": {
"line": 21,
"column": 0
},
"end": {
"line": 21,
"column": 6
}
}
},
{
"type": {
"label": "class",
"keyword": "class",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "class",
"start": 390,
"end": 395,
"loc": {
"start": {
"line": 21,
"column": 7
},
"end": {
"line": 21,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Storage",
"start": 396,
"end": 403,
"loc": {
"start": {
"line": 21,
"column": 13
},
"end": {
"line": 21,
"column": 20
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 404,
"end": 405,
"loc": {
"start": {
"line": 21,
"column": 21
},
"end": {
"line": 21,
"column": 22
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Creates an instance of Storage\n *\n * @param {State} state Instance of State\n ",
"start": 411,
"end": 513,
"loc": {
"start": {
"line": 23,
"column": 4
},
"end": {
"line": 27,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "constructor",
"start": 518,
"end": 529,
"loc": {
"start": {
"line": 28,
"column": 4
},
"end": {
"line": 28,
"column": 15
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 529,
"end": 530,
"loc": {
"start": {
"line": 28,
"column": 15
},
"end": {
"line": 28,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "state",
"start": 530,
"end": 535,
"loc": {
"start": {
"line": 28,
"column": 16
},
"end": {
"line": 28,
"column": 21
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 535,
"end": 536,
"loc": {
"start": {
"line": 28,
"column": 21
},
"end": {
"line": 28,
"column": 22
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 537,
"end": 538,
"loc": {
"start": {
"line": 28,
"column": 23
},
"end": {
"line": 28,
"column": 24
}
}
},
{
"type": "CommentBlock",
"value": "*\n * State object\n * @type {State}\n * @private\n ",
"start": 548,
"end": 632,
"loc": {
"start": {
"line": 30,
"column": 8
},
"end": {
"line": 34,
"column": 11
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 641,
"end": 645,
"loc": {
"start": {
"line": 35,
"column": 8
},
"end": {
"line": 35,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 645,
"end": 646,
"loc": {
"start": {
"line": 35,
"column": 12
},
"end": {
"line": 35,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "state",
"start": 646,
"end": 651,
"loc": {
"start": {
"line": 35,
"column": 13
},
"end": {
"line": 35,
"column": 18
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 652,
"end": 653,
"loc": {
"start": {
"line": 35,
"column": 19
},
"end": {
"line": 35,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "state",
"start": 654,
"end": 659,
"loc": {
"start": {
"line": 35,
"column": 21
},
"end": {
"line": 35,
"column": 26
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 659,
"end": 660,
"loc": {
"start": {
"line": 35,
"column": 26
},
"end": {
"line": 35,
"column": 27
}
}
},
{
"type": "CommentBlock",
"value": "*\n * TableFilter object\n * @type {TableFilter}\n * @private\n ",
"start": 670,
"end": 766,
"loc": {
"start": {
"line": 37,
"column": 8
},
"end": {
"line": 41,
"column": 11
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 775,
"end": 779,
"loc": {
"start": {
"line": 42,
"column": 8
},
"end": {
"line": 42,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 779,
"end": 780,
"loc": {
"start": {
"line": 42,
"column": 12
},
"end": {
"line": 42,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "tf",
"start": 780,
"end": 782,
"loc": {
"start": {
"line": 42,
"column": 13
},
"end": {
"line": 42,
"column": 15
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 783,
"end": 784,
"loc": {
"start": {
"line": 42,
"column": 16
},
"end": {
"line": 42,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "state",
"start": 785,
"end": 790,
"loc": {
"start": {
"line": 42,
"column": 18
},
"end": {
"line": 42,
"column": 23
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 790,
"end": 791,
"loc": {
"start": {
"line": 42,
"column": 23
},
"end": {
"line": 42,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "tf",
"start": 791,
"end": 793,
"loc": {
"start": {
"line": 42,
"column": 24
},
"end": {
"line": 42,
"column": 26
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 793,
"end": 794,
"loc": {
"start": {
"line": 42,
"column": 26
},
"end": {
"line": 42,
"column": 27
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Persist with local storage\n * @type {Boolean}\n * @private\n ",
"start": 804,
"end": 904,
"loc": {
"start": {
"line": 44,
"column": 8
},
"end": {
"line": 48,
"column": 11
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 913,
"end": 917,
"loc": {
"start": {
"line": 49,
"column": 8
},
"end": {
"line": 49,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 917,
"end": 918,
"loc": {
"start": {
"line": 49,
"column": 12
},
"end": {
"line": 49,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "enableLocalStorage",
"start": 918,
"end": 936,
"loc": {
"start": {
"line": 49,
"column": 13
},
"end": {
"line": 49,
"column": 31
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 937,
"end": 938,
"loc": {
"start": {
"line": 49,
"column": 32
},
"end": {
"line": 49,
"column": 33
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "state",
"start": 939,
"end": 944,
"loc": {
"start": {
"line": 49,
"column": 34
},
"end": {
"line": 49,
"column": 39
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 944,
"end": 945,
"loc": {
"start": {
"line": 49,
"column": 39
},
"end": {
"line": 49,
"column": 40
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "enableLocalStorage",
"start": 945,
"end": 963,
"loc": {
"start": {
"line": 49,
"column": 40
},
"end": {
"line": 49,
"column": 58
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 964,
"end": 966,
"loc": {
"start": {
"line": 49,
"column": 59
},
"end": {
"line": 49,
"column": 61
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "hasStorage",
"start": 967,
"end": 977,
"loc": {
"start": {
"line": 49,
"column": 62
},
"end": {
"line": 49,
"column": 72
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 977,
"end": 978,
"loc": {
"start": {
"line": 49,
"column": 72
},
"end": {
"line": 49,
"column": 73
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 978,
"end": 979,
"loc": {
"start": {
"line": 49,
"column": 73
},
"end": {
"line": 49,
"column": 74
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 979,
"end": 980,
"loc": {
"start": {
"line": 49,
"column": 74
},
"end": {
"line": 49,
"column": 75
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Persist with cookie\n * @type {Boolean}\n * @private\n ",
"start": 990,
"end": 1083,
"loc": {
"start": {
"line": 51,
"column": 8
},
"end": {
"line": 55,
"column": 11
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 1092,
"end": 1096,
"loc": {
"start": {
"line": 56,
"column": 8
},
"end": {
"line": 56,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1096,
"end": 1097,
"loc": {
"start": {
"line": 56,
"column": 12
},
"end": {
"line": 56,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "enableCookie",
"start": 1097,
"end": 1109,
"loc": {
"start": {
"line": 56,
"column": 13
},
"end": {
"line": 56,
"column": 25
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1110,
"end": 1111,
"loc": {
"start": {
"line": 56,
"column": 26
},
"end": {
"line": 56,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "state",
"start": 1112,
"end": 1117,
"loc": {
"start": {
"line": 56,
"column": 28
},
"end": {
"line": 56,
"column": 33
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1117,
"end": 1118,
"loc": {
"start": {
"line": 56,
"column": 33
},
"end": {
"line": 56,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "enableCookie",
"start": 1118,
"end": 1130,
"loc": {
"start": {
"line": 56,
"column": 34
},
"end": {
"line": 56,
"column": 46
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 1131,
"end": 1133,
"loc": {
"start": {
"line": 56,
"column": 47
},
"end": {
"line": 56,
"column": 49
}
}
},
{
"type": {
"label": "prefix",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "!",
"start": 1134,
"end": 1135,
"loc": {
"start": {
"line": 56,
"column": 50
},
"end": {
"line": 56,
"column": 51
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 1135,
"end": 1139,
"loc": {
"start": {
"line": 56,
"column": 51
},
"end": {
"line": 56,
"column": 55
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1139,
"end": 1140,
"loc": {
"start": {
"line": 56,
"column": 55
},
"end": {
"line": 56,
"column": 56
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "enableLocalStorage",
"start": 1140,
"end": 1158,
"loc": {
"start": {
"line": 56,
"column": 56
},
"end": {
"line": 56,
"column": 74
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1158,
"end": 1159,
"loc": {
"start": {
"line": 56,
"column": 74
},
"end": {
"line": 56,
"column": 75
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Emitter object\n * @type {Emitter}\n * @private\n ",
"start": 1169,
"end": 1257,
"loc": {
"start": {
"line": 58,
"column": 8
},
"end": {
"line": 62,
"column": 11
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 1266,
"end": 1270,
"loc": {
"start": {
"line": 63,
"column": 8
},
"end": {
"line": 63,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1270,
"end": 1271,
"loc": {
"start": {
"line": 63,
"column": 12
},
"end": {
"line": 63,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "emitter",
"start": 1271,
"end": 1278,
"loc": {
"start": {
"line": 63,
"column": 13
},
"end": {
"line": 63,
"column": 20
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1279,
"end": 1280,
"loc": {
"start": {
"line": 63,
"column": 21
},
"end": {
"line": 63,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "state",
"start": 1281,
"end": 1286,
"loc": {
"start": {
"line": 63,
"column": 23
},
"end": {
"line": 63,
"column": 28
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1286,
"end": 1287,
"loc": {
"start": {
"line": 63,
"column": 28
},
"end": {
"line": 63,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "emitter",
"start": 1287,
"end": 1294,
"loc": {
"start": {
"line": 63,
"column": 29
},
"end": {
"line": 63,
"column": 36
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1294,
"end": 1295,
"loc": {
"start": {
"line": 63,
"column": 36
},
"end": {
"line": 63,
"column": 37
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Cookie duration in hours from state object\n * @type {Number}\n * @private\n ",
"start": 1305,
"end": 1420,
"loc": {
"start": {
"line": 65,
"column": 8
},
"end": {
"line": 69,
"column": 11
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 1429,
"end": 1433,
"loc": {
"start": {
"line": 70,
"column": 8
},
"end": {
"line": 70,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1433,
"end": 1434,
"loc": {
"start": {
"line": 70,
"column": 12
},
"end": {
"line": 70,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "duration",
"start": 1434,
"end": 1442,
"loc": {
"start": {
"line": 70,
"column": 13
},
"end": {
"line": 70,
"column": 21
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1443,
"end": 1444,
"loc": {
"start": {
"line": 70,
"column": 22
},
"end": {
"line": 70,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "state",
"start": 1445,
"end": 1450,
"loc": {
"start": {
"line": 70,
"column": 24
},
"end": {
"line": 70,
"column": 29
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1450,
"end": 1451,
"loc": {
"start": {
"line": 70,
"column": 29
},
"end": {
"line": 70,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "cookieDuration",
"start": 1451,
"end": 1465,
"loc": {
"start": {
"line": 70,
"column": 30
},
"end": {
"line": 70,
"column": 44
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1465,
"end": 1466,
"loc": {
"start": {
"line": 70,
"column": 44
},
"end": {
"line": 70,
"column": 45
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1471,
"end": 1472,
"loc": {
"start": {
"line": 71,
"column": 4
},
"end": {
"line": 71,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Initializes the Storage object\n ",
"start": 1479,
"end": 1528,
"loc": {
"start": {
"line": 74,
"column": 4
},
"end": {
"line": 76,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "init",
"start": 1533,
"end": 1537,
"loc": {
"start": {
"line": 77,
"column": 4
},
"end": {
"line": 77,
"column": 8
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1537,
"end": 1538,
"loc": {
"start": {
"line": 77,
"column": 8
},
"end": {
"line": 77,
"column": 9
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1538,
"end": 1539,
"loc": {
"start": {
"line": 77,
"column": 9
},
"end": {
"line": 77,
"column": 10
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1540,
"end": 1541,
"loc": {
"start": {
"line": 77,
"column": 11
},
"end": {
"line": 77,
"column": 12
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 1550,
"end": 1554,
"loc": {
"start": {
"line": 78,
"column": 8
},
"end": {
"line": 78,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1554,
"end": 1555,
"loc": {
"start": {
"line": 78,
"column": 12
},
"end": {
"line": 78,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "emitter",
"start": 1555,
"end": 1562,
"loc": {
"start": {
"line": 78,
"column": 13
},
"end": {
"line": 78,
"column": 20
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1562,
"end": 1563,
"loc": {
"start": {
"line": 78,
"column": 20
},
"end": {
"line": 78,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "on",
"start": 1563,
"end": 1565,
"loc": {
"start": {
"line": 78,
"column": 21
},
"end": {
"line": 78,
"column": 23
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1565,
"end": 1566,
"loc": {
"start": {
"line": 78,
"column": 23
},
"end": {
"line": 78,
"column": 24
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1566,
"end": 1567,
"loc": {
"start": {
"line": 78,
"column": 24
},
"end": {
"line": 78,
"column": 25
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "state-changed",
"start": 1567,
"end": 1582,
"loc": {
"start": {
"line": 78,
"column": 25
},
"end": {
"line": 78,
"column": 40
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1582,
"end": 1583,
"loc": {
"start": {
"line": 78,
"column": 40
},
"end": {
"line": 78,
"column": 41
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1583,
"end": 1584,
"loc": {
"start": {
"line": 78,
"column": 41
},
"end": {
"line": 78,
"column": 42
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1585,
"end": 1586,
"loc": {
"start": {
"line": 78,
"column": 43
},
"end": {
"line": 78,
"column": 44
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "tf",
"start": 1586,
"end": 1588,
"loc": {
"start": {
"line": 78,
"column": 44
},
"end": {
"line": 78,
"column": 46
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1588,
"end": 1589,
"loc": {
"start": {
"line": 78,
"column": 46
},
"end": {
"line": 78,
"column": 47
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "state",
"start": 1590,
"end": 1595,
"loc": {
"start": {
"line": 78,
"column": 48
},
"end": {
"line": 78,
"column": 53
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1595,
"end": 1596,
"loc": {
"start": {
"line": 78,
"column": 53
},
"end": {
"line": 78,
"column": 54
}
}
},
{
"type": {
"label": "=>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1597,
"end": 1599,
"loc": {
"start": {
"line": 78,
"column": 55
},
"end": {
"line": 78,
"column": 57
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 1600,
"end": 1604,
"loc": {
"start": {
"line": 78,
"column": 58
},
"end": {
"line": 78,
"column": 62
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1604,
"end": 1605,
"loc": {
"start": {
"line": 78,
"column": 62
},
"end": {
"line": 78,
"column": 63
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "save",
"start": 1605,
"end": 1609,
"loc": {
"start": {
"line": 78,
"column": 63
},
"end": {
"line": 78,
"column": 67
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1609,
"end": 1610,
"loc": {
"start": {
"line": 78,
"column": 67
},
"end": {
"line": 78,
"column": 68
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "state",
"start": 1610,
"end": 1615,
"loc": {
"start": {
"line": 78,
"column": 68
},
"end": {
"line": 78,
"column": 73
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1615,
"end": 1616,
"loc": {
"start": {
"line": 78,
"column": 73
},
"end": {
"line": 78,
"column": 74
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1616,
"end": 1617,
"loc": {
"start": {
"line": 78,
"column": 74
},
"end": {
"line": 78,
"column": 75
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1617,
"end": 1618,
"loc": {
"start": {
"line": 78,
"column": 75
},
"end": {
"line": 78,
"column": 76
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 1627,
"end": 1631,
"loc": {
"start": {
"line": 79,
"column": 8
},
"end": {
"line": 79,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1631,
"end": 1632,
"loc": {
"start": {
"line": 79,
"column": 12
},
"end": {
"line": 79,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "emitter",
"start": 1632,
"end": 1639,
"loc": {
"start": {
"line": 79,
"column": 13
},
"end": {
"line": 79,
"column": 20
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1639,
"end": 1640,
"loc": {
"start": {
"line": 79,
"column": 20
},
"end": {
"line": 79,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "on",
"start": 1640,
"end": 1642,
"loc": {
"start": {
"line": 79,
"column": 21
},
"end": {
"line": 79,
"column": 23
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1642,
"end": 1643,
"loc": {
"start": {
"line": 79,
"column": 23
},
"end": {
"line": 79,
"column": 24
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1643,
"end": 1644,
"loc": {
"start": {
"line": 79,
"column": 24
},
"end": {
"line": 79,
"column": 25
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "initialized",
"start": 1644,
"end": 1657,
"loc": {
"start": {
"line": 79,
"column": 25
},
"end": {
"line": 79,
"column": 38
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1657,
"end": 1658,
"loc": {
"start": {
"line": 79,
"column": 38
},
"end": {
"line": 79,
"column": 39
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1658,
"end": 1659,
"loc": {
"start": {
"line": 79,
"column": 39
},
"end": {
"line": 79,
"column": 40
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1660,
"end": 1661,
"loc": {
"start": {
"line": 79,
"column": 41
},
"end": {
"line": 79,
"column": 42
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1661,
"end": 1662,
"loc": {
"start": {
"line": 79,
"column": 42
},
"end": {
"line": 79,
"column": 43
}
}
},
{
"type": {
"label": "=>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1663,
"end": 1665,
"loc": {
"start": {
"line": 79,
"column": 44
},
"end": {
"line": 79,
"column": 46
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 1666,
"end": 1670,
"loc": {
"start": {
"line": 79,
"column": 47
},
"end": {
"line": 79,
"column": 51
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1670,
"end": 1671,
"loc": {
"start": {
"line": 79,
"column": 51
},
"end": {
"line": 79,
"column": 52
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "sync",
"start": 1671,
"end": 1675,
"loc": {
"start": {
"line": 79,
"column": 52
},
"end": {
"line": 79,
"column": 56
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1675,
"end": 1676,
"loc": {
"start": {
"line": 79,
"column": 56
},
"end": {
"line": 79,
"column": 57
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1676,
"end": 1677,
"loc": {
"start": {
"line": 79,
"column": 57
},
"end": {
"line": 79,
"column": 58
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1677,
"end": 1678,
"loc": {
"start": {
"line": 79,
"column": 58
},
"end": {
"line": 79,
"column": 59
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1678,
"end": 1679,
"loc": {
"start": {
"line": 79,
"column": 59
},
"end": {
"line": 79,
"column": 60
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1684,
"end": 1685,
"loc": {
"start": {
"line": 80,
"column": 4
},
"end": {
"line": 80,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Persists the features state on state changes\n *\n * @param {State} state Instance of State\n ",
"start": 1691,
"end": 1807,
"loc": {
"start": {
"line": 82,
"column": 4
},
"end": {
"line": 86,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "save",
"start": 1812,
"end": 1816,
"loc": {
"start": {
"line": 87,
"column": 4
},
"end": {
"line": 87,
"column": 8
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1816,
"end": 1817,
"loc": {
"start": {
"line": 87,
"column": 8
},
"end": {
"line": 87,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "state",
"start": 1817,
"end": 1822,
"loc": {
"start": {
"line": 87,
"column": 9
},
"end": {
"line": 87,
"column": 14
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1822,
"end": 1823,
"loc": {
"start": {
"line": 87,
"column": 14
},
"end": {
"line": 87,
"column": 15
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1824,
"end": 1825,
"loc": {
"start": {
"line": 87,
"column": 16
},
"end": {
"line": 87,
"column": 17
}
}
},
{
"type": {
"label": "if",
"keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "if",
"start": 1834,
"end": 1836,
"loc": {
"start": {
"line": 88,
"column": 8
},
"end": {
"line": 88,
"column": 10
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1837,
"end": 1838,
"loc": {
"start": {
"line": 88,
"column": 11
},
"end": {
"line": 88,
"column": 12
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 1838,
"end": 1842,
"loc": {
"start": {
"line": 88,
"column": 12
},
"end": {
"line": 88,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1842,
"end": 1843,
"loc": {
"start": {
"line": 88,
"column": 16
},
"end": {
"line": 88,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "enableLocalStorage",
"start": 1843,
"end": 1861,
"loc": {
"start": {
"line": 88,
"column": 17
},
"end": {
"line": 88,
"column": 35
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1861,
"end": 1862,
"loc": {
"start": {
"line": 88,
"column": 35
},
"end": {
"line": 88,
"column": 36
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1863,
"end": 1864,
"loc": {
"start": {
"line": 88,
"column": 37
},
"end": {
"line": 88,
"column": 38
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "localStorage",
"start": 1877,
"end": 1889,
"loc": {
"start": {
"line": 89,
"column": 12
},
"end": {
"line": 89,
"column": 24
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1889,
"end": 1890,
"loc": {
"start": {
"line": 89,
"column": 24
},
"end": {
"line": 89,
"column": 25
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 1890,
"end": 1894,
"loc": {
"start": {
"line": 89,
"column": 25
},
"end": {
"line": 89,
"column": 29
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1894,
"end": 1895,
"loc": {
"start": {
"line": 89,
"column": 29
},
"end": {
"line": 89,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getKey",
"start": 1895,
"end": 1901,
"loc": {
"start": {
"line": 89,
"column": 30
},
"end": {
"line": 89,
"column": 36
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1901,
"end": 1902,
"loc": {
"start": {
"line": 89,
"column": 36
},
"end": {
"line": 89,
"column": 37
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1902,
"end": 1903,
"loc": {
"start": {
"line": 89,
"column": 37
},
"end": {
"line": 89,
"column": 38
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1903,
"end": 1904,
"loc": {
"start": {
"line": 89,
"column": 38
},
"end": {
"line": 89,
"column": 39
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1905,
"end": 1906,
"loc": {
"start": {
"line": 89,
"column": 40
},
"end": {
"line": 89,
"column": 41
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "JSON",
"start": 1907,
"end": 1911,
"loc": {
"start": {
"line": 89,
"column": 42
},
"end": {
"line": 89,
"column": 46
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1911,
"end": 1912,
"loc": {
"start": {
"line": 89,
"column": 46
},
"end": {
"line": 89,
"column": 47
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "stringify",
"start": 1912,
"end": 1921,
"loc": {
"start": {
"line": 89,
"column": 47
},
"end": {
"line": 89,
"column": 56
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1921,
"end": 1922,
"loc": {
"start": {
"line": 89,
"column": 56
},
"end": {
"line": 89,
"column": 57
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "state",
"start": 1922,
"end": 1927,
"loc": {
"start": {
"line": 89,
"column": 57
},
"end": {
"line": 89,
"column": 62
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1927,
"end": 1928,
"loc": {
"start": {
"line": 89,
"column": 62
},
"end": {
"line": 89,
"column": 63
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1928,
"end": 1929,
"loc": {
"start": {
"line": 89,
"column": 63
},
"end": {
"line": 89,
"column": 64
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1938,
"end": 1939,
"loc": {
"start": {
"line": 90,
"column": 8
},
"end": {
"line": 90,
"column": 9
}
}
},
{
"type": {
"label": "else",
"keyword": "else",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "else",
"start": 1940,
"end": 1944,
"loc": {
"start": {
"line": 90,
"column": 10
},
"end": {
"line": 90,
"column": 14
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1945,
"end": 1946,
"loc": {
"start": {
"line": 90,
"column": 15
},
"end": {
"line": 90,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Cookie",
"start": 1959,
"end": 1965,
"loc": {
"start": {
"line": 91,
"column": 12
},
"end": {
"line": 91,
"column": 18
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1965,
"end": 1966,
"loc": {
"start": {
"line": 91,
"column": 18
},
"end": {
"line": 91,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "write",
"start": 1966,
"end": 1971,
"loc": {
"start": {
"line": 91,
"column": 19
},
"end": {
"line": 91,
"column": 24
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1971,
"end": 1972,
"loc": {
"start": {
"line": 91,
"column": 24
},
"end": {
"line": 91,
"column": 25
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 1972,
"end": 1976,
"loc": {
"start": {
"line": 91,
"column": 25
},
"end": {
"line": 91,
"column": 29
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1976,
"end": 1977,
"loc": {
"start": {
"line": 91,
"column": 29
},
"end": {
"line": 91,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getKey",
"start": 1977,
"end": 1983,
"loc": {
"start": {
"line": 91,
"column": 30
},
"end": {
"line": 91,
"column": 36
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1983,
"end": 1984,
"loc": {
"start": {
"line": 91,
"column": 36
},
"end": {
"line": 91,
"column": 37
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1984,
"end": 1985,
"loc": {
"start": {
"line": 91,
"column": 37
},
"end": {
"line": 91,
"column": 38
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1985,
"end": 1986,
"loc": {
"start": {
"line": 91,
"column": 38
},
"end": {
"line": 91,
"column": 39
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "JSON",
"start": 1987,
"end": 1991,
"loc": {
"start": {
"line": 91,
"column": 40
},
"end": {
"line": 91,
"column": 44
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1991,
"end": 1992,
"loc": {
"start": {
"line": 91,
"column": 44
},
"end": {
"line": 91,
"column": 45
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "stringify",
"start": 1992,
"end": 2001,
"loc": {
"start": {
"line": 91,
"column": 45
},
"end": {
"line": 91,
"column": 54
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2001,
"end": 2002,
"loc": {
"start": {
"line": 91,
"column": 54
},
"end": {
"line": 91,
"column": 55
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "state",
"start": 2002,
"end": 2007,
"loc": {
"start": {
"line": 91,
"column": 55
},
"end": {
"line": 91,
"column": 60
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2007,
"end": 2008,
"loc": {
"start": {
"line": 91,
"column": 60
},
"end": {
"line": 91,
"column": 61
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2008,
"end": 2009,
"loc": {
"start": {
"line": 91,
"column": 61
},
"end": {
"line": 91,
"column": 62
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 2010,
"end": 2014,
"loc": {
"start": {
"line": 91,
"column": 63
},
"end": {
"line": 91,
"column": 67
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2014,
"end": 2015,
"loc": {
"start": {
"line": 91,
"column": 67
},
"end": {
"line": 91,
"column": 68
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "duration",
"start": 2015,
"end": 2023,
"loc": {
"start": {
"line": 91,
"column": 68
},
"end": {
"line": 91,
"column": 76
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2023,
"end": 2024,
"loc": {
"start": {
"line": 91,
"column": 76
},
"end": {
"line": 91,
"column": 77
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2024,
"end": 2025,
"loc": {
"start": {
"line": 91,
"column": 77
},
"end": {
"line": 91,
"column": 78
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2034,
"end": 2035,
"loc": {
"start": {
"line": 92,
"column": 8
},
"end": {
"line": 92,
"column": 9
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2040,
"end": 2041,
"loc": {
"start": {
"line": 93,
"column": 4
},
"end": {
"line": 93,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Turns stored string into a State JSON object\n *\n * @returns {Object} JSON object\n ",
"start": 2047,
"end": 2155,
"loc": {
"start": {
"line": 95,
"column": 4
},
"end": {
"line": 99,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "retrieve",
"start": 2160,
"end": 2168,
"loc": {
"start": {
"line": 100,
"column": 4
},
"end": {
"line": 100,
"column": 12
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2168,
"end": 2169,
"loc": {
"start": {
"line": 100,
"column": 12
},
"end": {
"line": 100,
"column": 13
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2169,
"end": 2170,
"loc": {
"start": {
"line": 100,
"column": 13
},
"end": {
"line": 100,
"column": 14
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2171,
"end": 2172,
"loc": {
"start": {
"line": 100,
"column": 15
},
"end": {
"line": 100,
"column": 16
}
}
},
{
"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": 2181,
"end": 2184,
"loc": {
"start": {
"line": 101,
"column": 8
},
"end": {
"line": 101,
"column": 11
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "state",
"start": 2185,
"end": 2190,
"loc": {
"start": {
"line": 101,
"column": 12
},
"end": {
"line": 101,
"column": 17
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2191,
"end": 2192,
"loc": {
"start": {
"line": 101,
"column": 18
},
"end": {
"line": 101,
"column": 19
}
}
},
{
"type": {
"label": "null",
"keyword": "null",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "null",
"start": 2193,
"end": 2197,
"loc": {
"start": {
"line": 101,
"column": 20
},
"end": {
"line": 101,
"column": 24
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2197,
"end": 2198,
"loc": {
"start": {
"line": 101,
"column": 24
},
"end": {
"line": 101,
"column": 25
}
}
},
{
"type": {
"label": "if",
"keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "if",
"start": 2207,
"end": 2209,
"loc": {
"start": {
"line": 102,
"column": 8
},
"end": {
"line": 102,
"column": 10
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2210,
"end": 2211,
"loc": {
"start": {
"line": 102,
"column": 11
},
"end": {
"line": 102,
"column": 12
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 2211,
"end": 2215,
"loc": {
"start": {
"line": 102,
"column": 12
},
"end": {
"line": 102,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2215,
"end": 2216,
"loc": {
"start": {
"line": 102,
"column": 16
},
"end": {
"line": 102,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "enableLocalStorage",
"start": 2216,
"end": 2234,
"loc": {
"start": {
"line": 102,
"column": 17
},
"end": {
"line": 102,
"column": 35
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2234,
"end": 2235,
"loc": {
"start": {
"line": 102,
"column": 35
},
"end": {
"line": 102,
"column": 36
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2236,
"end": 2237,
"loc": {
"start": {
"line": 102,
"column": 37
},
"end": {
"line": 102,
"column": 38
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "state",
"start": 2250,
"end": 2255,
"loc": {
"start": {
"line": 103,
"column": 12
},
"end": {
"line": 103,
"column": 17
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2256,
"end": 2257,
"loc": {
"start": {
"line": 103,
"column": 18
},
"end": {
"line": 103,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "localStorage",
"start": 2258,
"end": 2270,
"loc": {
"start": {
"line": 103,
"column": 20
},
"end": {
"line": 103,
"column": 32
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2270,
"end": 2271,
"loc": {
"start": {
"line": 103,
"column": 32
},
"end": {
"line": 103,
"column": 33
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 2271,
"end": 2275,
"loc": {
"start": {
"line": 103,
"column": 33
},
"end": {
"line": 103,
"column": 37
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2275,
"end": 2276,
"loc": {
"start": {
"line": 103,
"column": 37
},
"end": {
"line": 103,
"column": 38
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getKey",
"start": 2276,
"end": 2282,
"loc": {
"start": {
"line": 103,
"column": 38
},
"end": {
"line": 103,
"column": 44
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2282,
"end": 2283,
"loc": {
"start": {
"line": 103,
"column": 44
},
"end": {
"line": 103,
"column": 45
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2283,
"end": 2284,
"loc": {
"start": {
"line": 103,
"column": 45
},
"end": {
"line": 103,
"column": 46
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2284,
"end": 2285,
"loc": {
"start": {
"line": 103,
"column": 46
},
"end": {
"line": 103,
"column": 47
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2285,
"end": 2286,
"loc": {
"start": {
"line": 103,
"column": 47
},
"end": {
"line": 103,
"column": 48
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2295,
"end": 2296,
"loc": {
"start": {
"line": 104,
"column": 8
},
"end": {
"line": 104,
"column": 9
}
}
},
{
"type": {
"label": "else",
"keyword": "else",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "else",
"start": 2297,
"end": 2301,
"loc": {
"start": {
"line": 104,
"column": 10
},
"end": {
"line": 104,
"column": 14
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2302,
"end": 2303,
"loc": {
"start": {
"line": 104,
"column": 15
},
"end": {
"line": 104,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "state",
"start": 2316,
"end": 2321,
"loc": {
"start": {
"line": 105,
"column": 12
},
"end": {
"line": 105,
"column": 17
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2322,
"end": 2323,
"loc": {
"start": {
"line": 105,
"column": 18
},
"end": {
"line": 105,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Cookie",
"start": 2324,
"end": 2330,
"loc": {
"start": {
"line": 105,
"column": 20
},
"end": {
"line": 105,
"column": 26
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2330,
"end": 2331,
"loc": {
"start": {
"line": 105,
"column": 26
},
"end": {
"line": 105,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "read",
"start": 2331,
"end": 2335,
"loc": {
"start": {
"line": 105,
"column": 27
},
"end": {
"line": 105,
"column": 31
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2335,
"end": 2336,
"loc": {
"start": {
"line": 105,
"column": 31
},
"end": {
"line": 105,
"column": 32
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 2336,
"end": 2340,
"loc": {
"start": {
"line": 105,
"column": 32
},
"end": {
"line": 105,
"column": 36
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2340,
"end": 2341,
"loc": {
"start": {
"line": 105,
"column": 36
},
"end": {
"line": 105,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getKey",
"start": 2341,
"end": 2347,
"loc": {
"start": {
"line": 105,
"column": 37
},
"end": {
"line": 105,
"column": 43
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2347,
"end": 2348,
"loc": {
"start": {
"line": 105,
"column": 43
},
"end": {
"line": 105,
"column": 44
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2348,
"end": 2349,
"loc": {
"start": {
"line": 105,
"column": 44
},
"end": {
"line": 105,
"column": 45
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2349,
"end": 2350,
"loc": {
"start": {
"line": 105,
"column": 45
},
"end": {
"line": 105,
"column": 46
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2350,
"end": 2351,
"loc": {
"start": {
"line": 105,
"column": 46
},
"end": {
"line": 105,
"column": 47
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2360,
"end": 2361,
"loc": {
"start": {
"line": 106,
"column": 8
},
"end": {
"line": 106,
"column": 9
}
}
},
{
"type": {
"label": "if",
"keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "if",
"start": 2371,
"end": 2373,
"loc": {
"start": {
"line": 108,
"column": 8
},
"end": {
"line": 108,
"column": 10
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2374,
"end": 2375,
"loc": {
"start": {
"line": 108,
"column": 11
},
"end": {
"line": 108,
"column": 12
}
}
},
{
"type": {
"label": "prefix",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "!",
"start": 2375,
"end": 2376,
"loc": {
"start": {
"line": 108,
"column": 12
},
"end": {
"line": 108,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "state",
"start": 2376,
"end": 2381,
"loc": {
"start": {
"line": 108,
"column": 13
},
"end": {
"line": 108,
"column": 18
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2381,
"end": 2382,
"loc": {
"start": {
"line": 108,
"column": 18
},
"end": {
"line": 108,
"column": 19
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2383,
"end": 2384,
"loc": {
"start": {
"line": 108,
"column": 20
},
"end": {
"line": 108,
"column": 21
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 2397,
"end": 2403,
"loc": {
"start": {
"line": 109,
"column": 12
},
"end": {
"line": 109,
"column": 18
}
}
},
{
"type": {
"label": "null",
"keyword": "null",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "null",
"start": 2404,
"end": 2408,
"loc": {
"start": {
"line": 109,
"column": 19
},
"end": {
"line": 109,
"column": 23
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2408,
"end": 2409,
"loc": {
"start": {
"line": 109,
"column": 23
},
"end": {
"line": 109,
"column": 24
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2418,
"end": 2419,
"loc": {
"start": {
"line": 110,
"column": 8
},
"end": {
"line": 110,
"column": 9
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 2428,
"end": 2434,
"loc": {
"start": {
"line": 111,
"column": 8
},
"end": {
"line": 111,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "JSON",
"start": 2435,
"end": 2439,
"loc": {
"start": {
"line": 111,
"column": 15
},
"end": {
"line": 111,
"column": 19
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2439,
"end": 2440,
"loc": {
"start": {
"line": 111,
"column": 19
},
"end": {
"line": 111,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parse",
"start": 2440,
"end": 2445,
"loc": {
"start": {
"line": 111,
"column": 20
},
"end": {
"line": 111,
"column": 25
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2445,
"end": 2446,
"loc": {
"start": {
"line": 111,
"column": 25
},
"end": {
"line": 111,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "state",
"start": 2446,
"end": 2451,
"loc": {
"start": {
"line": 111,
"column": 26
},
"end": {
"line": 111,
"column": 31
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2451,
"end": 2452,
"loc": {
"start": {
"line": 111,
"column": 31
},
"end": {
"line": 111,
"column": 32
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2452,
"end": 2453,
"loc": {
"start": {
"line": 111,
"column": 32
},
"end": {
"line": 111,
"column": 33
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2458,
"end": 2459,
"loc": {
"start": {
"line": 112,
"column": 4
},
"end": {
"line": 112,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Removes persisted state from storage\n ",
"start": 2465,
"end": 2520,
"loc": {
"start": {
"line": 114,
"column": 4
},
"end": {
"line": 116,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "remove",
"start": 2525,
"end": 2531,
"loc": {
"start": {
"line": 117,
"column": 4
},
"end": {
"line": 117,
"column": 10
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2531,
"end": 2532,
"loc": {
"start": {
"line": 117,
"column": 10
},
"end": {
"line": 117,
"column": 11
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2532,
"end": 2533,
"loc": {
"start": {
"line": 117,
"column": 11
},
"end": {
"line": 117,
"column": 12
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2534,
"end": 2535,
"loc": {
"start": {
"line": 117,
"column": 13
},
"end": {
"line": 117,
"column": 14
}
}
},
{
"type": {
"label": "if",
"keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "if",
"start": 2544,
"end": 2546,
"loc": {
"start": {
"line": 118,
"column": 8
},
"end": {
"line": 118,
"column": 10
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2547,
"end": 2548,
"loc": {
"start": {
"line": 118,
"column": 11
},
"end": {
"line": 118,
"column": 12
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 2548,
"end": 2552,
"loc": {
"start": {
"line": 118,
"column": 12
},
"end": {
"line": 118,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2552,
"end": 2553,
"loc": {
"start": {
"line": 118,
"column": 16
},
"end": {
"line": 118,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "enableLocalStorage",
"start": 2553,
"end": 2571,
"loc": {
"start": {
"line": 118,
"column": 17
},
"end": {
"line": 118,
"column": 35
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2571,
"end": 2572,
"loc": {
"start": {
"line": 118,
"column": 35
},
"end": {
"line": 118,
"column": 36
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2573,
"end": 2574,
"loc": {
"start": {
"line": 118,
"column": 37
},
"end": {
"line": 118,
"column": 38
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "localStorage",
"start": 2587,
"end": 2599,
"loc": {
"start": {
"line": 119,
"column": 12
},
"end": {
"line": 119,
"column": 24
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2599,
"end": 2600,
"loc": {
"start": {
"line": 119,
"column": 24
},
"end": {
"line": 119,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "removeItem",
"start": 2600,
"end": 2610,
"loc": {
"start": {
"line": 119,
"column": 25
},
"end": {
"line": 119,
"column": 35
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2610,
"end": 2611,
"loc": {
"start": {
"line": 119,
"column": 35
},
"end": {
"line": 119,
"column": 36
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 2611,
"end": 2615,
"loc": {
"start": {
"line": 119,
"column": 36
},
"end": {
"line": 119,
"column": 40
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2615,
"end": 2616,
"loc": {
"start": {
"line": 119,
"column": 40
},
"end": {
"line": 119,
"column": 41
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getKey",
"start": 2616,
"end": 2622,
"loc": {
"start": {
"line": 119,
"column": 41
},
"end": {
"line": 119,
"column": 47
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2622,
"end": 2623,
"loc": {
"start": {
"line": 119,
"column": 47
},
"end": {
"line": 119,
"column": 48
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2623,
"end": 2624,
"loc": {
"start": {
"line": 119,
"column": 48
},
"end": {
"line": 119,
"column": 49
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2624,
"end": 2625,
"loc": {
"start": {
"line": 119,
"column": 49
},
"end": {
"line": 119,
"column": 50
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2625,
"end": 2626,
"loc": {
"start": {
"line": 119,
"column": 50
},
"end": {
"line": 119,
"column": 51
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2635,
"end": 2636,
"loc": {
"start": {
"line": 120,
"column": 8
},
"end": {
"line": 120,
"column": 9
}
}
},
{
"type": {
"label": "else",
"keyword": "else",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "else",
"start": 2637,
"end": 2641,
"loc": {
"start": {
"line": 120,
"column": 10
},
"end": {
"line": 120,
"column": 14
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2642,
"end": 2643,
"loc": {
"start": {
"line": 120,
"column": 15
},
"end": {
"line": 120,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Cookie",
"start": 2656,
"end": 2662,
"loc": {
"start": {
"line": 121,
"column": 12
},
"end": {
"line": 121,
"column": 18
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2662,
"end": 2663,
"loc": {
"start": {
"line": 121,
"column": 18
},
"end": {
"line": 121,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "remove",
"start": 2663,
"end": 2669,
"loc": {
"start": {
"line": 121,
"column": 19
},
"end": {
"line": 121,
"column": 25
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2669,
"end": 2670,
"loc": {
"start": {
"line": 121,
"column": 25
},
"end": {
"line": 121,
"column": 26
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 2670,
"end": 2674,
"loc": {
"start": {
"line": 121,
"column": 26
},
"end": {
"line": 121,
"column": 30
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2674,
"end": 2675,
"loc": {
"start": {
"line": 121,
"column": 30
},
"end": {
"line": 121,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getKey",
"start": 2675,
"end": 2681,
"loc": {
"start": {
"line": 121,
"column": 31
},
"end": {
"line": 121,
"column": 37
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2681,
"end": 2682,
"loc": {
"start": {
"line": 121,
"column": 37
},
"end": {
"line": 121,
"column": 38
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2682,
"end": 2683,
"loc": {
"start": {
"line": 121,
"column": 38
},
"end": {
"line": 121,
"column": 39
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2683,
"end": 2684,
"loc": {
"start": {
"line": 121,
"column": 39
},
"end": {
"line": 121,
"column": 40
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2684,
"end": 2685,
"loc": {
"start": {
"line": 121,
"column": 40
},
"end": {
"line": 121,
"column": 41
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2694,
"end": 2695,
"loc": {
"start": {
"line": 122,
"column": 8
},
"end": {
"line": 122,
"column": 9
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2700,
"end": 2701,
"loc": {
"start": {
"line": 123,
"column": 4
},
"end": {
"line": 123,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Applies persisted state to features\n ",
"start": 2707,
"end": 2761,
"loc": {
"start": {
"line": 125,
"column": 4
},
"end": {
"line": 127,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "sync",
"start": 2766,
"end": 2770,
"loc": {
"start": {
"line": 128,
"column": 4
},
"end": {
"line": 128,
"column": 8
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2770,
"end": 2771,
"loc": {
"start": {
"line": 128,
"column": 8
},
"end": {
"line": 128,
"column": 9
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2771,
"end": 2772,
"loc": {
"start": {
"line": 128,
"column": 9
},
"end": {
"line": 128,
"column": 10
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2773,
"end": 2774,
"loc": {
"start": {
"line": 128,
"column": 11
},
"end": {
"line": 128,
"column": 12
}
}
},
{
"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": 2783,
"end": 2786,
"loc": {
"start": {
"line": 129,
"column": 8
},
"end": {
"line": 129,
"column": 11
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "state",
"start": 2787,
"end": 2792,
"loc": {
"start": {
"line": 129,
"column": 12
},
"end": {
"line": 129,
"column": 17
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2793,
"end": 2794,
"loc": {
"start": {
"line": 129,
"column": 18
},
"end": {
"line": 129,
"column": 19
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 2795,
"end": 2799,
"loc": {
"start": {
"line": 129,
"column": 20
},
"end": {
"line": 129,
"column": 24
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2799,
"end": 2800,
"loc": {
"start": {
"line": 129,
"column": 24
},
"end": {
"line": 129,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "retrieve",
"start": 2800,
"end": 2808,
"loc": {
"start": {
"line": 129,
"column": 25
},
"end": {
"line": 129,
"column": 33
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2808,
"end": 2809,
"loc": {
"start": {
"line": 129,
"column": 33
},
"end": {
"line": 129,
"column": 34
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2809,
"end": 2810,
"loc": {
"start": {
"line": 129,
"column": 34
},
"end": {
"line": 129,
"column": 35
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2810,
"end": 2811,
"loc": {
"start": {
"line": 129,
"column": 35
},
"end": {
"line": 129,
"column": 36
}
}
},
{
"type": {
"label": "if",
"keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "if",
"start": 2820,
"end": 2822,
"loc": {
"start": {
"line": 130,
"column": 8
},
"end": {
"line": 130,
"column": 10
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2823,
"end": 2824,
"loc": {
"start": {
"line": 130,
"column": 11
},
"end": {
"line": 130,
"column": 12
}
}
},
{
"type": {
"label": "prefix",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "!",
"start": 2824,
"end": 2825,
"loc": {
"start": {
"line": 130,
"column": 12
},
"end": {
"line": 130,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "state",
"start": 2825,
"end": 2830,
"loc": {
"start": {
"line": 130,
"column": 13
},
"end": {
"line": 130,
"column": 18
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2830,
"end": 2831,
"loc": {
"start": {
"line": 130,
"column": 18
},
"end": {
"line": 130,
"column": 19
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2832,
"end": 2833,
"loc": {
"start": {
"line": 130,
"column": 20
},
"end": {
"line": 130,
"column": 21
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 2846,
"end": 2852,
"loc": {
"start": {
"line": 131,
"column": 12
},
"end": {
"line": 131,
"column": 18
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2852,
"end": 2853,
"loc": {
"start": {
"line": 131,
"column": 18
},
"end": {
"line": 131,
"column": 19
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2862,
"end": 2863,
"loc": {
"start": {
"line": 132,
"column": 8
},
"end": {
"line": 132,
"column": 9
}
}
},
{
"type": "CommentLine",
"value": " override current state with persisted one and sync features",
"start": 2872,
"end": 2934,
"loc": {
"start": {
"line": 133,
"column": 8
},
"end": {
"line": 133,
"column": 70
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 2943,
"end": 2947,
"loc": {
"start": {
"line": 134,
"column": 8
},
"end": {
"line": 134,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2947,
"end": 2948,
"loc": {
"start": {
"line": 134,
"column": 12
},
"end": {
"line": 134,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "state",
"start": 2948,
"end": 2953,
"loc": {
"start": {
"line": 134,
"column": 13
},
"end": {
"line": 134,
"column": 18
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2953,
"end": 2954,
"loc": {
"start": {
"line": 134,
"column": 18
},
"end": {
"line": 134,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "overrideAndSync",
"start": 2954,
"end": 2969,
"loc": {
"start": {
"line": 134,
"column": 19
},
"end": {
"line": 134,
"column": 34
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2969,
"end": 2970,
"loc": {
"start": {
"line": 134,
"column": 34
},
"end": {
"line": 134,
"column": 35
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "state",
"start": 2970,
"end": 2975,
"loc": {
"start": {
"line": 134,
"column": 35
},
"end": {
"line": 134,
"column": 40
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2975,
"end": 2976,
"loc": {
"start": {
"line": 134,
"column": 40
},
"end": {
"line": 134,
"column": 41
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2976,
"end": 2977,
"loc": {
"start": {
"line": 134,
"column": 41
},
"end": {
"line": 134,
"column": 42
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2982,
"end": 2983,
"loc": {
"start": {
"line": 135,
"column": 4
},
"end": {
"line": 135,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Returns the storage key\n *\n * @returns {String} Key\n ",
"start": 2989,
"end": 3067,
"loc": {
"start": {
"line": 137,
"column": 4
},
"end": {
"line": 141,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getKey",
"start": 3072,
"end": 3078,
"loc": {
"start": {
"line": 142,
"column": 4
},
"end": {
"line": 142,
"column": 10
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3078,
"end": 3079,
"loc": {
"start": {
"line": 142,
"column": 10
},
"end": {
"line": 142,
"column": 11
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3079,
"end": 3080,
"loc": {
"start": {
"line": 142,
"column": 11
},
"end": {
"line": 142,
"column": 12
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3081,
"end": 3082,
"loc": {
"start": {
"line": 142,
"column": 13
},
"end": {
"line": 142,
"column": 14
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 3091,
"end": 3097,
"loc": {
"start": {
"line": 143,
"column": 8
},
"end": {
"line": 143,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "JSON",
"start": 3098,
"end": 3102,
"loc": {
"start": {
"line": 143,
"column": 15
},
"end": {
"line": 143,
"column": 19
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3102,
"end": 3103,
"loc": {
"start": {
"line": 143,
"column": 19
},
"end": {
"line": 143,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "stringify",
"start": 3103,
"end": 3112,
"loc": {
"start": {
"line": 143,
"column": 20
},
"end": {
"line": 143,
"column": 29
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3112,
"end": 3113,
"loc": {
"start": {
"line": 143,
"column": 29
},
"end": {
"line": 143,
"column": 30
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3113,
"end": 3114,
"loc": {
"start": {
"line": 143,
"column": 30
},
"end": {
"line": 143,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "key",
"start": 3127,
"end": 3130,
"loc": {
"start": {
"line": 144,
"column": 12
},
"end": {
"line": 144,
"column": 15
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3130,
"end": 3131,
"loc": {
"start": {
"line": 144,
"column": 15
},
"end": {
"line": 144,
"column": 16
}
}
},
{
"type": {
"label": "`",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3132,
"end": 3133,
"loc": {
"start": {
"line": 144,
"column": 17
},
"end": {
"line": 144,
"column": 18
}
}
},
{
"type": {
"label": "template",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "",
"start": 3133,
"end": 3133,
"loc": {
"start": {
"line": 144,
"column": 18
},
"end": {
"line": 144,
"column": 18
}
}
},
{
"type": {
"label": "${",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3133,
"end": 3135,
"loc": {
"start": {
"line": 144,
"column": 18
},
"end": {
"line": 144,
"column": 20
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 3135,
"end": 3139,
"loc": {
"start": {
"line": 144,
"column": 20
},
"end": {
"line": 144,
"column": 24
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3139,
"end": 3140,
"loc": {
"start": {
"line": 144,
"column": 24
},
"end": {
"line": 144,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "tf",
"start": 3140,
"end": 3142,
"loc": {
"start": {
"line": 144,
"column": 25
},
"end": {
"line": 144,
"column": 27
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3142,
"end": 3143,
"loc": {
"start": {
"line": 144,
"column": 27
},
"end": {
"line": 144,
"column": 28
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "prfxTf",
"start": 3143,
"end": 3149,
"loc": {
"start": {
"line": 144,
"column": 28
},
"end": {
"line": 144,
"column": 34
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3149,
"end": 3150,
"loc": {
"start": {
"line": 144,
"column": 34
},
"end": {
"line": 144,
"column": 35
}
}
},
{
"type": {
"label": "template",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "_",
"start": 3150,
"end": 3151,
"loc": {
"start": {
"line": 144,
"column": 35
},
"end": {
"line": 144,
"column": 36
}
}
},
{
"type": {
"label": "${",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3151,
"end": 3153,
"loc": {
"start": {
"line": 144,
"column": 36
},
"end": {
"line": 144,
"column": 38
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 3153,
"end": 3157,
"loc": {
"start": {
"line": 144,
"column": 38
},
"end": {
"line": 144,
"column": 42
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3157,
"end": 3158,
"loc": {
"start": {
"line": 144,
"column": 42
},
"end": {
"line": 144,
"column": 43
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "tf",
"start": 3158,
"end": 3160,
"loc": {
"start": {
"line": 144,
"column": 43
},
"end": {
"line": 144,
"column": 45
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3160,
"end": 3161,
"loc": {
"start": {
"line": 144,
"column": 45
},
"end": {
"line": 144,
"column": 46
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "id",
"start": 3161,
"end": 3163,
"loc": {
"start": {
"line": 144,
"column": 46
},
"end": {
"line": 144,
"column": 48
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3163,
"end": 3164,
"loc": {
"start": {
"line": 144,
"column": 48
},
"end": {
"line": 144,
"column": 49
}
}
},
{
"type": {
"label": "template",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "",
"start": 3164,
"end": 3164,
"loc": {
"start": {
"line": 144,
"column": 49
},
"end": {
"line": 144,
"column": 49
}
}
},
{
"type": {
"label": "`",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3164,
"end": 3165,
"loc": {
"start": {
"line": 144,
"column": 49
},
"end": {
"line": 144,
"column": 50
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3165,
"end": 3166,
"loc": {
"start": {
"line": 144,
"column": 50
},
"end": {
"line": 144,
"column": 51
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "path",
"start": 3179,
"end": 3183,
"loc": {
"start": {
"line": 145,
"column": 12
},
"end": {
"line": 145,
"column": 16
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3183,
"end": 3184,
"loc": {
"start": {
"line": 145,
"column": 16
},
"end": {
"line": 145,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "location",
"start": 3185,
"end": 3193,
"loc": {
"start": {
"line": 145,
"column": 18
},
"end": {
"line": 145,
"column": 26
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3193,
"end": 3194,
"loc": {
"start": {
"line": 145,
"column": 26
},
"end": {
"line": 145,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "pathname",
"start": 3194,
"end": 3202,
"loc": {
"start": {
"line": 145,
"column": 27
},
"end": {
"line": 145,
"column": 35
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3211,
"end": 3212,
"loc": {
"start": {
"line": 146,
"column": 8
},
"end": {
"line": 146,
"column": 9
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3212,
"end": 3213,
"loc": {
"start": {
"line": 146,
"column": 9
},
"end": {
"line": 146,
"column": 10
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3213,
"end": 3214,
"loc": {
"start": {
"line": 146,
"column": 10
},
"end": {
"line": 146,
"column": 11
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3219,
"end": 3220,
"loc": {
"start": {
"line": 147,
"column": 4
},
"end": {
"line": 147,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Release Storage event subscriptions and clear fields\n ",
"start": 3226,
"end": 3297,
"loc": {
"start": {
"line": 149,
"column": 4
},
"end": {
"line": 151,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "destroy",
"start": 3302,
"end": 3309,
"loc": {
"start": {
"line": 152,
"column": 4
},
"end": {
"line": 152,
"column": 11
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3309,
"end": 3310,
"loc": {
"start": {
"line": 152,
"column": 11
},
"end": {
"line": 152,
"column": 12
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3310,
"end": 3311,
"loc": {
"start": {
"line": 152,
"column": 12
},
"end": {
"line": 152,
"column": 13
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3312,
"end": 3313,
"loc": {
"start": {
"line": 152,
"column": 14
},
"end": {
"line": 152,
"column": 15
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 3322,
"end": 3326,
"loc": {
"start": {
"line": 153,
"column": 8
},
"end": {
"line": 153,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3326,
"end": 3327,
"loc": {
"start": {
"line": 153,
"column": 12
},
"end": {
"line": 153,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "emitter",
"start": 3327,
"end": 3334,
"loc": {
"start": {
"line": 153,
"column": 13
},
"end": {
"line": 153,
"column": 20
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3334,
"end": 3335,
"loc": {
"start": {
"line": 153,
"column": 20
},
"end": {
"line": 153,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "off",
"start": 3335,
"end": 3338,
"loc": {
"start": {
"line": 153,
"column": 21
},
"end": {
"line": 153,
"column": 24
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3338,
"end": 3339,
"loc": {
"start": {
"line": 153,
"column": 24
},
"end": {
"line": 153,
"column": 25
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3339,
"end": 3340,
"loc": {
"start": {
"line": 153,
"column": 25
},
"end": {
"line": 153,
"column": 26
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "state-changed",
"start": 3340,
"end": 3355,
"loc": {
"start": {
"line": 153,
"column": 26
},
"end": {
"line": 153,
"column": 41
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3355,
"end": 3356,
"loc": {
"start": {
"line": 153,
"column": 41
},
"end": {
"line": 153,
"column": 42
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3356,
"end": 3357,
"loc": {
"start": {
"line": 153,
"column": 42
},
"end": {
"line": 153,
"column": 43
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3358,
"end": 3359,
"loc": {
"start": {
"line": 153,
"column": 44
},
"end": {
"line": 153,
"column": 45
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "tf",
"start": 3359,
"end": 3361,
"loc": {
"start": {
"line": 153,
"column": 45
},
"end": {
"line": 153,
"column": 47
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3361,
"end": 3362,
"loc": {
"start": {
"line": 153,
"column": 47
},
"end": {
"line": 153,
"column": 48
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "state",
"start": 3363,
"end": 3368,
"loc": {
"start": {
"line": 153,
"column": 49
},
"end": {
"line": 153,
"column": 54
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3368,
"end": 3369,
"loc": {
"start": {
"line": 153,
"column": 54
},
"end": {
"line": 153,
"column": 55
}
}
},
{
"type": {
"label": "=>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3370,
"end": 3372,
"loc": {
"start": {
"line": 153,
"column": 56
},
"end": {
"line": 153,
"column": 58
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 3373,
"end": 3377,
"loc": {
"start": {
"line": 153,
"column": 59
},
"end": {
"line": 153,
"column": 63
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3377,
"end": 3378,
"loc": {
"start": {
"line": 153,
"column": 63
},
"end": {
"line": 153,
"column": 64
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "save",
"start": 3378,
"end": 3382,
"loc": {
"start": {
"line": 153,
"column": 64
},
"end": {
"line": 153,
"column": 68
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3382,
"end": 3383,
"loc": {
"start": {
"line": 153,
"column": 68
},
"end": {
"line": 153,
"column": 69
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "state",
"start": 3383,
"end": 3388,
"loc": {
"start": {
"line": 153,
"column": 69
},
"end": {
"line": 153,
"column": 74
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3388,
"end": 3389,
"loc": {
"start": {
"line": 153,
"column": 74
},
"end": {
"line": 153,
"column": 75
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3389,
"end": 3390,
"loc": {
"start": {
"line": 153,
"column": 75
},
"end": {
"line": 153,
"column": 76
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3390,
"end": 3391,
"loc": {
"start": {
"line": 153,
"column": 76
},
"end": {
"line": 153,
"column": 77
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 3400,
"end": 3404,
"loc": {
"start": {
"line": 154,
"column": 8
},
"end": {
"line": 154,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3404,
"end": 3405,
"loc": {
"start": {
"line": 154,
"column": 12
},
"end": {
"line": 154,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "emitter",
"start": 3405,
"end": 3412,
"loc": {
"start": {
"line": 154,
"column": 13
},
"end": {
"line": 154,
"column": 20
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3412,
"end": 3413,
"loc": {
"start": {
"line": 154,
"column": 20
},
"end": {
"line": 154,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "off",
"start": 3413,
"end": 3416,
"loc": {
"start": {
"line": 154,
"column": 21
},
"end": {
"line": 154,
"column": 24
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3416,
"end": 3417,
"loc": {
"start": {
"line": 154,
"column": 24
},
"end": {
"line": 154,
"column": 25
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3417,
"end": 3418,
"loc": {
"start": {
"line": 154,
"column": 25
},
"end": {
"line": 154,
"column": 26
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "initialized",
"start": 3418,
"end": 3431,
"loc": {
"start": {
"line": 154,
"column": 26
},
"end": {
"line": 154,
"column": 39
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3431,
"end": 3432,
"loc": {
"start": {
"line": 154,
"column": 39
},
"end": {
"line": 154,
"column": 40
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3432,
"end": 3433,
"loc": {
"start": {
"line": 154,
"column": 40
},
"end": {
"line": 154,
"column": 41
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3434,
"end": 3435,
"loc": {
"start": {
"line": 154,
"column": 42
},
"end": {
"line": 154,
"column": 43
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3435,
"end": 3436,
"loc": {
"start": {
"line": 154,
"column": 43
},
"end": {
"line": 154,
"column": 44
}
}
},
{
"type": {
"label": "=>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3437,
"end": 3439,
"loc": {
"start": {
"line": 154,
"column": 45
},
"end": {
"line": 154,
"column": 47
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 3440,
"end": 3444,
"loc": {
"start": {
"line": 154,
"column": 48
},
"end": {
"line": 154,
"column": 52
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3444,
"end": 3445,
"loc": {
"start": {
"line": 154,
"column": 52
},
"end": {
"line": 154,
"column": 53
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "sync",
"start": 3445,
"end": 3449,
"loc": {
"start": {
"line": 154,
"column": 53
},
"end": {
"line": 154,
"column": 57
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3449,
"end": 3450,
"loc": {
"start": {
"line": 154,
"column": 57
},
"end": {
"line": 154,
"column": 58
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3450,
"end": 3451,
"loc": {
"start": {
"line": 154,
"column": 58
},
"end": {
"line": 154,
"column": 59
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3451,
"end": 3452,
"loc": {
"start": {
"line": 154,
"column": 59
},
"end": {
"line": 154,
"column": 60
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3452,
"end": 3453,
"loc": {
"start": {
"line": 154,
"column": 60
},
"end": {
"line": 154,
"column": 61
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 3463,
"end": 3467,
"loc": {
"start": {
"line": 156,
"column": 8
},
"end": {
"line": 156,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3467,
"end": 3468,
"loc": {
"start": {
"line": 156,
"column": 12
},
"end": {
"line": 156,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "remove",
"start": 3468,
"end": 3474,
"loc": {
"start": {
"line": 156,
"column": 13
},
"end": {
"line": 156,
"column": 19
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3474,
"end": 3475,
"loc": {
"start": {
"line": 156,
"column": 19
},
"end": {
"line": 156,
"column": 20
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3475,
"end": 3476,
"loc": {
"start": {
"line": 156,
"column": 20
},
"end": {
"line": 156,
"column": 21
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3476,
"end": 3477,
"loc": {
"start": {
"line": 156,
"column": 21
},
"end": {
"line": 156,
"column": 22
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 3487,
"end": 3491,
"loc": {
"start": {
"line": 158,
"column": 8
},
"end": {
"line": 158,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3491,
"end": 3492,
"loc": {
"start": {
"line": 158,
"column": 12
},
"end": {
"line": 158,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "state",
"start": 3492,
"end": 3497,
"loc": {
"start": {
"line": 158,
"column": 13
},
"end": {
"line": 158,
"column": 18
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 3498,
"end": 3499,
"loc": {
"start": {
"line": 158,
"column": 19
},
"end": {
"line": 158,
"column": 20
}
}
},
{
"type": {
"label": "null",
"keyword": "null",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "null",
"start": 3500,
"end": 3504,
"loc": {
"start": {
"line": 158,
"column": 21
},
"end": {
"line": 158,
"column": 25
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3504,
"end": 3505,
"loc": {
"start": {
"line": 158,
"column": 25
},
"end": {
"line": 158,
"column": 26
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 3514,
"end": 3518,
"loc": {
"start": {
"line": 159,
"column": 8
},
"end": {
"line": 159,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3518,
"end": 3519,
"loc": {
"start": {
"line": 159,
"column": 12
},
"end": {
"line": 159,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "emitter",
"start": 3519,
"end": 3526,
"loc": {
"start": {
"line": 159,
"column": 13
},
"end": {
"line": 159,
"column": 20
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 3527,
"end": 3528,
"loc": {
"start": {
"line": 159,
"column": 21
},
"end": {
"line": 159,
"column": 22
}
}
},
{
"type": {
"label": "null",
"keyword": "null",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "null",
"start": 3529,
"end": 3533,
"loc": {
"start": {
"line": 159,
"column": 23
},
"end": {
"line": 159,
"column": 27
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3533,
"end": 3534,
"loc": {
"start": {
"line": 159,
"column": 27
},
"end": {
"line": 159,
"column": 28
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3539,
"end": 3540,
"loc": {
"start": {
"line": 160,
"column": 4
},
"end": {
"line": 160,
"column": 5
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3541,
"end": 3542,
"loc": {
"start": {
"line": 161,
"column": 0
},
"end": {
"line": 161,
"column": 1
}
}
},
{
"type": {
"label": "eof",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3543,
"end": 3543,
"loc": {
"start": {
"line": 162,
"column": 0
},
"end": {
"line": 162,
"column": 0
}
}
}
]
}