1
0
Fork 0
mirror of https://github.com/koalyptus/TableFilter.git synced 2024-05-15 21:06:44 +02:00
TableFilter/doc/ast/source/src/cookie.js.json
2015-08-06 15:27:09 +10:00

4082 lines
147 KiB
JSON

{
"type": "Program",
"body": [
{
"type": "ExportDefaultDeclaration",
"declaration": {
"type": "ObjectExpression",
"properties": [
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "write",
"range": [
57,
62
],
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 9
}
}
},
"value": {
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "name",
"range": [
63,
67
],
"loc": {
"start": {
"line": 7,
"column": 10
},
"end": {
"line": 7,
"column": 14
}
}
},
{
"type": "Identifier",
"name": "value",
"range": [
69,
74
],
"loc": {
"start": {
"line": 7,
"column": 16
},
"end": {
"line": 7,
"column": 21
}
}
},
{
"type": "Identifier",
"name": "hours",
"range": [
76,
81
],
"loc": {
"start": {
"line": 7,
"column": 23
},
"end": {
"line": 7,
"column": 28
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "expire",
"range": [
97,
103
],
"loc": {
"start": {
"line": 8,
"column": 12
},
"end": {
"line": 8,
"column": 18
}
}
},
"init": {
"type": "Literal",
"value": "",
"raw": "''",
"range": [
106,
108
],
"loc": {
"start": {
"line": 8,
"column": 21
},
"end": {
"line": 8,
"column": 23
}
}
},
"range": [
97,
108
],
"loc": {
"start": {
"line": 8,
"column": 12
},
"end": {
"line": 8,
"column": 23
}
}
}
],
"kind": "let",
"range": [
93,
109
],
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 24
}
}
},
{
"type": "IfStatement",
"test": {
"type": "Identifier",
"name": "hours",
"range": [
122,
127
],
"loc": {
"start": {
"line": 9,
"column": 11
},
"end": {
"line": 9,
"column": 16
}
}
},
"consequent": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "Identifier",
"name": "expire",
"range": [
143,
149
],
"loc": {
"start": {
"line": 10,
"column": 12
},
"end": {
"line": 10,
"column": 18
}
}
},
"right": {
"type": "NewExpression",
"callee": {
"type": "Identifier",
"name": "Date",
"range": [
156,
160
],
"loc": {
"start": {
"line": 10,
"column": 25
},
"end": {
"line": 10,
"column": 29
}
}
},
"arguments": [
{
"type": "BinaryExpression",
"operator": "+",
"left": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "NewExpression",
"callee": {
"type": "Identifier",
"name": "Date",
"range": [
166,
170
],
"loc": {
"start": {
"line": 10,
"column": 35
},
"end": {
"line": 10,
"column": 39
}
}
},
"arguments": [],
"range": [
162,
172
],
"loc": {
"start": {
"line": 10,
"column": 31
},
"end": {
"line": 10,
"column": 41
}
}
},
"property": {
"type": "Identifier",
"name": "getTime",
"range": [
174,
181
],
"loc": {
"start": {
"line": 10,
"column": 43
},
"end": {
"line": 10,
"column": 50
}
}
},
"range": [
161,
181
],
"loc": {
"start": {
"line": 10,
"column": 30
},
"end": {
"line": 10,
"column": 50
}
}
},
"arguments": [],
"range": [
161,
183
],
"loc": {
"start": {
"line": 10,
"column": 30
},
"end": {
"line": 10,
"column": 52
}
}
},
"right": {
"type": "BinaryExpression",
"operator": "*",
"left": {
"type": "Identifier",
"name": "hours",
"range": [
186,
191
],
"loc": {
"start": {
"line": 10,
"column": 55
},
"end": {
"line": 10,
"column": 60
}
}
},
"right": {
"type": "Literal",
"value": 3600000,
"raw": "3600000",
"range": [
194,
201
],
"loc": {
"start": {
"line": 10,
"column": 63
},
"end": {
"line": 10,
"column": 70
}
}
},
"range": [
186,
201
],
"loc": {
"start": {
"line": 10,
"column": 55
},
"end": {
"line": 10,
"column": 70
}
}
},
"range": [
161,
201
],
"loc": {
"start": {
"line": 10,
"column": 30
},
"end": {
"line": 10,
"column": 70
}
}
}
],
"range": [
152,
202
],
"loc": {
"start": {
"line": 10,
"column": 21
},
"end": {
"line": 10,
"column": 71
}
}
},
"range": [
143,
202
],
"loc": {
"start": {
"line": 10,
"column": 12
},
"end": {
"line": 10,
"column": 71
}
}
},
"range": [
143,
203
],
"loc": {
"start": {
"line": 10,
"column": 12
},
"end": {
"line": 10,
"column": 72
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "Identifier",
"name": "expire",
"range": [
217,
223
],
"loc": {
"start": {
"line": 11,
"column": 12
},
"end": {
"line": 11,
"column": 18
}
}
},
"right": {
"type": "BinaryExpression",
"operator": "+",
"left": {
"type": "Literal",
"value": "; expires=",
"raw": "'; expires='",
"range": [
226,
238
],
"loc": {
"start": {
"line": 11,
"column": 21
},
"end": {
"line": 11,
"column": 33
}
}
},
"right": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "expire",
"range": [
241,
247
],
"loc": {
"start": {
"line": 11,
"column": 36
},
"end": {
"line": 11,
"column": 42
}
}
},
"property": {
"type": "Identifier",
"name": "toGMTString",
"range": [
248,
259
],
"loc": {
"start": {
"line": 11,
"column": 43
},
"end": {
"line": 11,
"column": 54
}
}
},
"range": [
241,
259
],
"loc": {
"start": {
"line": 11,
"column": 36
},
"end": {
"line": 11,
"column": 54
}
}
},
"arguments": [],
"range": [
241,
261
],
"loc": {
"start": {
"line": 11,
"column": 36
},
"end": {
"line": 11,
"column": 56
}
}
},
"range": [
226,
261
],
"loc": {
"start": {
"line": 11,
"column": 21
},
"end": {
"line": 11,
"column": 56
}
}
},
"range": [
217,
261
],
"loc": {
"start": {
"line": 11,
"column": 12
},
"end": {
"line": 11,
"column": 56
}
}
},
"range": [
217,
262
],
"loc": {
"start": {
"line": 11,
"column": 12
},
"end": {
"line": 11,
"column": 57
}
}
}
],
"range": [
128,
273
],
"loc": {
"start": {
"line": 9,
"column": 17
},
"end": {
"line": 12,
"column": 9
}
}
},
"alternate": null,
"range": [
119,
273
],
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 12,
"column": 9
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "document",
"range": [
283,
291
],
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"name": "cookie",
"range": [
292,
298
],
"loc": {
"start": {
"line": 13,
"column": 17
},
"end": {
"line": 13,
"column": 23
}
}
},
"range": [
283,
298
],
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 23
}
}
},
"right": {
"type": "BinaryExpression",
"operator": "+",
"left": {
"type": "BinaryExpression",
"operator": "+",
"left": {
"type": "BinaryExpression",
"operator": "+",
"left": {
"type": "Identifier",
"name": "name",
"range": [
301,
305
],
"loc": {
"start": {
"line": 13,
"column": 26
},
"end": {
"line": 13,
"column": 30
}
}
},
"right": {
"type": "Literal",
"value": "=",
"raw": "'='",
"range": [
308,
311
],
"loc": {
"start": {
"line": 13,
"column": 33
},
"end": {
"line": 13,
"column": 36
}
}
},
"range": [
301,
311
],
"loc": {
"start": {
"line": 13,
"column": 26
},
"end": {
"line": 13,
"column": 36
}
}
},
"right": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "escape",
"range": [
314,
320
],
"loc": {
"start": {
"line": 13,
"column": 39
},
"end": {
"line": 13,
"column": 45
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "value",
"range": [
321,
326
],
"loc": {
"start": {
"line": 13,
"column": 46
},
"end": {
"line": 13,
"column": 51
}
}
}
],
"range": [
314,
327
],
"loc": {
"start": {
"line": 13,
"column": 39
},
"end": {
"line": 13,
"column": 52
}
}
},
"range": [
301,
327
],
"loc": {
"start": {
"line": 13,
"column": 26
},
"end": {
"line": 13,
"column": 52
}
}
},
"right": {
"type": "Identifier",
"name": "expire",
"range": [
330,
336
],
"loc": {
"start": {
"line": 13,
"column": 55
},
"end": {
"line": 13,
"column": 61
}
}
},
"range": [
301,
336
],
"loc": {
"start": {
"line": 13,
"column": 26
},
"end": {
"line": 13,
"column": 61
}
}
},
"range": [
283,
336
],
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 61
}
}
},
"range": [
283,
337
],
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 62
}
}
}
],
"range": [
82,
344
],
"loc": {
"start": {
"line": 7,
"column": 29
},
"end": {
"line": 14,
"column": 5
}
}
},
"generator": false,
"expression": false,
"range": [
62,
344
],
"loc": {
"start": {
"line": 7,
"column": 9
},
"end": {
"line": 14,
"column": 5
}
}
},
"kind": "init",
"method": true,
"shorthand": false,
"computed": false,
"range": [
57,
344
],
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 14,
"column": 5
}
}
},
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "read",
"range": [
353,
357
],
"loc": {
"start": {
"line": 16,
"column": 4
},
"end": {
"line": 16,
"column": 8
}
}
},
"value": {
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "name",
"range": [
358,
362
],
"loc": {
"start": {
"line": 16,
"column": 9
},
"end": {
"line": 16,
"column": 13
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "cookieValue",
"range": [
378,
389
],
"loc": {
"start": {
"line": 17,
"column": 12
},
"end": {
"line": 17,
"column": 23
}
}
},
"init": {
"type": "Literal",
"value": "",
"raw": "''",
"range": [
392,
394
],
"loc": {
"start": {
"line": 17,
"column": 26
},
"end": {
"line": 17,
"column": 28
}
}
},
"range": [
378,
394
],
"loc": {
"start": {
"line": 17,
"column": 12
},
"end": {
"line": 17,
"column": 28
}
}
},
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "search",
"range": [
409,
415
],
"loc": {
"start": {
"line": 18,
"column": 12
},
"end": {
"line": 18,
"column": 18
}
}
},
"init": {
"type": "BinaryExpression",
"operator": "+",
"left": {
"type": "Identifier",
"name": "name",
"range": [
418,
422
],
"loc": {
"start": {
"line": 18,
"column": 21
},
"end": {
"line": 18,
"column": 25
}
}
},
"right": {
"type": "Literal",
"value": "=",
"raw": "'='",
"range": [
425,
428
],
"loc": {
"start": {
"line": 18,
"column": 28
},
"end": {
"line": 18,
"column": 31
}
}
},
"range": [
418,
428
],
"loc": {
"start": {
"line": 18,
"column": 21
},
"end": {
"line": 18,
"column": 31
}
}
},
"range": [
409,
428
],
"loc": {
"start": {
"line": 18,
"column": 12
},
"end": {
"line": 18,
"column": 31
}
}
}
],
"kind": "let",
"range": [
374,
429
],
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 18,
"column": 32
}
}
},
{
"type": "IfStatement",
"test": {
"type": "BinaryExpression",
"operator": ">",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "document",
"range": [
442,
450
],
"loc": {
"start": {
"line": 19,
"column": 11
},
"end": {
"line": 19,
"column": 19
}
}
},
"property": {
"type": "Identifier",
"name": "cookie",
"range": [
451,
457
],
"loc": {
"start": {
"line": 19,
"column": 20
},
"end": {
"line": 19,
"column": 26
}
}
},
"range": [
442,
457
],
"loc": {
"start": {
"line": 19,
"column": 11
},
"end": {
"line": 19,
"column": 26
}
}
},
"property": {
"type": "Identifier",
"name": "length",
"range": [
458,
464
],
"loc": {
"start": {
"line": 19,
"column": 27
},
"end": {
"line": 19,
"column": 33
}
}
},
"range": [
442,
464
],
"loc": {
"start": {
"line": 19,
"column": 11
},
"end": {
"line": 19,
"column": 33
}
}
},
"right": {
"type": "Literal",
"value": 0,
"raw": "0",
"range": [
467,
468
],
"loc": {
"start": {
"line": 19,
"column": 36
},
"end": {
"line": 19,
"column": 37
}
}
},
"range": [
442,
468
],
"loc": {
"start": {
"line": 19,
"column": 11
},
"end": {
"line": 19,
"column": 37
}
}
},
"consequent": {
"type": "BlockStatement",
"body": [
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "cookie",
"range": [
488,
494
],
"loc": {
"start": {
"line": 20,
"column": 16
},
"end": {
"line": 20,
"column": 22
}
}
},
"init": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "document",
"range": [
497,
505
],
"loc": {
"start": {
"line": 20,
"column": 25
},
"end": {
"line": 20,
"column": 33
}
}
},
"property": {
"type": "Identifier",
"name": "cookie",
"range": [
506,
512
],
"loc": {
"start": {
"line": 20,
"column": 34
},
"end": {
"line": 20,
"column": 40
}
}
},
"range": [
497,
512
],
"loc": {
"start": {
"line": 20,
"column": 25
},
"end": {
"line": 20,
"column": 40
}
}
},
"range": [
488,
512
],
"loc": {
"start": {
"line": 20,
"column": 16
},
"end": {
"line": 20,
"column": 40
}
}
},
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "offset",
"range": [
531,
537
],
"loc": {
"start": {
"line": 21,
"column": 16
},
"end": {
"line": 21,
"column": 22
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "cookie",
"range": [
540,
546
],
"loc": {
"start": {
"line": 21,
"column": 25
},
"end": {
"line": 21,
"column": 31
}
}
},
"property": {
"type": "Identifier",
"name": "indexOf",
"range": [
547,
554
],
"loc": {
"start": {
"line": 21,
"column": 32
},
"end": {
"line": 21,
"column": 39
}
}
},
"range": [
540,
554
],
"loc": {
"start": {
"line": 21,
"column": 25
},
"end": {
"line": 21,
"column": 39
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "search",
"range": [
555,
561
],
"loc": {
"start": {
"line": 21,
"column": 40
},
"end": {
"line": 21,
"column": 46
}
}
}
],
"range": [
540,
562
],
"loc": {
"start": {
"line": 21,
"column": 25
},
"end": {
"line": 21,
"column": 47
}
}
},
"range": [
531,
562
],
"loc": {
"start": {
"line": 21,
"column": 16
},
"end": {
"line": 21,
"column": 47
}
}
}
],
"kind": "let",
"range": [
484,
563
],
"loc": {
"start": {
"line": 20,
"column": 12
},
"end": {
"line": 21,
"column": 48
}
}
},
{
"type": "IfStatement",
"test": {
"type": "BinaryExpression",
"operator": "!==",
"left": {
"type": "Identifier",
"name": "offset",
"range": [
580,
586
],
"loc": {
"start": {
"line": 22,
"column": 15
},
"end": {
"line": 22,
"column": 21
}
}
},
"right": {
"type": "UnaryExpression",
"operator": "-",
"argument": {
"type": "Literal",
"value": 1,
"raw": "1",
"range": [
592,
593
],
"loc": {
"start": {
"line": 22,
"column": 27
},
"end": {
"line": 22,
"column": 28
}
}
},
"prefix": true,
"range": [
591,
593
],
"loc": {
"start": {
"line": 22,
"column": 26
},
"end": {
"line": 22,
"column": 28
}
}
},
"range": [
580,
593
],
"loc": {
"start": {
"line": 22,
"column": 15
},
"end": {
"line": 22,
"column": 28
}
}
},
"consequent": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "+=",
"left": {
"type": "Identifier",
"name": "offset",
"range": [
613,
619
],
"loc": {
"start": {
"line": 23,
"column": 16
},
"end": {
"line": 23,
"column": 22
}
}
},
"right": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "search",
"range": [
623,
629
],
"loc": {
"start": {
"line": 23,
"column": 26
},
"end": {
"line": 23,
"column": 32
}
}
},
"property": {
"type": "Identifier",
"name": "length",
"range": [
630,
636
],
"loc": {
"start": {
"line": 23,
"column": 33
},
"end": {
"line": 23,
"column": 39
}
}
},
"range": [
623,
636
],
"loc": {
"start": {
"line": 23,
"column": 26
},
"end": {
"line": 23,
"column": 39
}
}
},
"range": [
613,
636
],
"loc": {
"start": {
"line": 23,
"column": 16
},
"end": {
"line": 23,
"column": 39
}
}
},
"range": [
613,
637
],
"loc": {
"start": {
"line": 23,
"column": 16
},
"end": {
"line": 23,
"column": 40
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "end",
"range": [
659,
662
],
"loc": {
"start": {
"line": 24,
"column": 20
},
"end": {
"line": 24,
"column": 23
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "cookie",
"range": [
665,
671
],
"loc": {
"start": {
"line": 24,
"column": 26
},
"end": {
"line": 24,
"column": 32
}
}
},
"property": {
"type": "Identifier",
"name": "indexOf",
"range": [
672,
679
],
"loc": {
"start": {
"line": 24,
"column": 33
},
"end": {
"line": 24,
"column": 40
}
}
},
"range": [
665,
679
],
"loc": {
"start": {
"line": 24,
"column": 26
},
"end": {
"line": 24,
"column": 40
}
}
},
"arguments": [
{
"type": "Literal",
"value": ";",
"raw": "';'",
"range": [
680,
683
],
"loc": {
"start": {
"line": 24,
"column": 41
},
"end": {
"line": 24,
"column": 44
}
}
},
{
"type": "Identifier",
"name": "offset",
"range": [
685,
691
],
"loc": {
"start": {
"line": 24,
"column": 46
},
"end": {
"line": 24,
"column": 52
}
}
}
],
"range": [
665,
692
],
"loc": {
"start": {
"line": 24,
"column": 26
},
"end": {
"line": 24,
"column": 53
}
}
},
"range": [
659,
692
],
"loc": {
"start": {
"line": 24,
"column": 20
},
"end": {
"line": 24,
"column": 53
}
}
}
],
"kind": "let",
"range": [
655,
693
],
"loc": {
"start": {
"line": 24,
"column": 16
},
"end": {
"line": 24,
"column": 54
}
}
},
{
"type": "IfStatement",
"test": {
"type": "BinaryExpression",
"operator": "===",
"left": {
"type": "Identifier",
"name": "end",
"range": [
714,
717
],
"loc": {
"start": {
"line": 25,
"column": 19
},
"end": {
"line": 25,
"column": 22
}
}
},
"right": {
"type": "UnaryExpression",
"operator": "-",
"argument": {
"type": "Literal",
"value": 1,
"raw": "1",
"range": [
723,
724
],
"loc": {
"start": {
"line": 25,
"column": 28
},
"end": {
"line": 25,
"column": 29
}
}
},
"prefix": true,
"range": [
722,
724
],
"loc": {
"start": {
"line": 25,
"column": 27
},
"end": {
"line": 25,
"column": 29
}
}
},
"range": [
714,
724
],
"loc": {
"start": {
"line": 25,
"column": 19
},
"end": {
"line": 25,
"column": 29
}
}
},
"consequent": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "Identifier",
"name": "end",
"range": [
748,
751
],
"loc": {
"start": {
"line": 26,
"column": 20
},
"end": {
"line": 26,
"column": 23
}
}
},
"right": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "cookie",
"range": [
754,
760
],
"loc": {
"start": {
"line": 26,
"column": 26
},
"end": {
"line": 26,
"column": 32
}
}
},
"property": {
"type": "Identifier",
"name": "length",
"range": [
761,
767
],
"loc": {
"start": {
"line": 26,
"column": 33
},
"end": {
"line": 26,
"column": 39
}
}
},
"range": [
754,
767
],
"loc": {
"start": {
"line": 26,
"column": 26
},
"end": {
"line": 26,
"column": 39
}
}
},
"range": [
748,
767
],
"loc": {
"start": {
"line": 26,
"column": 20
},
"end": {
"line": 26,
"column": 39
}
}
},
"range": [
748,
768
],
"loc": {
"start": {
"line": 26,
"column": 20
},
"end": {
"line": 26,
"column": 40
}
}
}
],
"range": [
725,
787
],
"loc": {
"start": {
"line": 25,
"column": 30
},
"end": {
"line": 27,
"column": 17
}
}
},
"alternate": null,
"range": [
711,
787
],
"loc": {
"start": {
"line": 25,
"column": 16
},
"end": {
"line": 27,
"column": 17
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "Identifier",
"name": "cookieValue",
"range": [
805,
816
],
"loc": {
"start": {
"line": 28,
"column": 16
},
"end": {
"line": 28,
"column": 27
}
}
},
"right": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "unescape",
"range": [
819,
827
],
"loc": {
"start": {
"line": 28,
"column": 30
},
"end": {
"line": 28,
"column": 38
}
}
},
"arguments": [
{
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "cookie",
"range": [
828,
834
],
"loc": {
"start": {
"line": 28,
"column": 39
},
"end": {
"line": 28,
"column": 45
}
}
},
"property": {
"type": "Identifier",
"name": "substring",
"range": [
835,
844
],
"loc": {
"start": {
"line": 28,
"column": 46
},
"end": {
"line": 28,
"column": 55
}
}
},
"range": [
828,
844
],
"loc": {
"start": {
"line": 28,
"column": 39
},
"end": {
"line": 28,
"column": 55
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "offset",
"range": [
845,
851
],
"loc": {
"start": {
"line": 28,
"column": 56
},
"end": {
"line": 28,
"column": 62
}
}
},
{
"type": "Identifier",
"name": "end",
"range": [
853,
856
],
"loc": {
"start": {
"line": 28,
"column": 64
},
"end": {
"line": 28,
"column": 67
}
}
}
],
"range": [
828,
857
],
"loc": {
"start": {
"line": 28,
"column": 39
},
"end": {
"line": 28,
"column": 68
}
}
}
],
"range": [
819,
858
],
"loc": {
"start": {
"line": 28,
"column": 30
},
"end": {
"line": 28,
"column": 69
}
}
},
"range": [
805,
858
],
"loc": {
"start": {
"line": 28,
"column": 16
},
"end": {
"line": 28,
"column": 69
}
}
},
"range": [
805,
859
],
"loc": {
"start": {
"line": 28,
"column": 16
},
"end": {
"line": 28,
"column": 70
}
}
}
],
"range": [
594,
874
],
"loc": {
"start": {
"line": 22,
"column": 29
},
"end": {
"line": 29,
"column": 13
}
}
},
"alternate": null,
"range": [
577,
874
],
"loc": {
"start": {
"line": 22,
"column": 12
},
"end": {
"line": 29,
"column": 13
}
}
}
],
"range": [
469,
885
],
"loc": {
"start": {
"line": 19,
"column": 38
},
"end": {
"line": 30,
"column": 9
}
}
},
"alternate": null,
"range": [
439,
885
],
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 30,
"column": 9
}
}
},
{
"type": "ReturnStatement",
"argument": {
"type": "Identifier",
"name": "cookieValue",
"range": [
902,
913
],
"loc": {
"start": {
"line": 31,
"column": 15
},
"end": {
"line": 31,
"column": 26
}
}
},
"range": [
895,
914
],
"loc": {
"start": {
"line": 31,
"column": 8
},
"end": {
"line": 31,
"column": 27
}
}
}
],
"range": [
363,
921
],
"loc": {
"start": {
"line": 16,
"column": 14
},
"end": {
"line": 32,
"column": 5
}
}
},
"generator": false,
"expression": false,
"range": [
357,
921
],
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 32,
"column": 5
}
}
},
"kind": "init",
"method": true,
"shorthand": false,
"computed": false,
"range": [
353,
921
],
"loc": {
"start": {
"line": 16,
"column": 4
},
"end": {
"line": 32,
"column": 5
}
}
},
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "remove",
"range": [
930,
936
],
"loc": {
"start": {
"line": 34,
"column": 4
},
"end": {
"line": 34,
"column": 10
}
}
},
"value": {
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "name",
"range": [
937,
941
],
"loc": {
"start": {
"line": 34,
"column": 11
},
"end": {
"line": 34,
"column": 15
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
953,
957
],
"loc": {
"start": {
"line": 35,
"column": 8
},
"end": {
"line": 35,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"name": "write",
"range": [
958,
963
],
"loc": {
"start": {
"line": 35,
"column": 13
},
"end": {
"line": 35,
"column": 18
}
}
},
"range": [
953,
963
],
"loc": {
"start": {
"line": 35,
"column": 8
},
"end": {
"line": 35,
"column": 18
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "name",
"range": [
964,
968
],
"loc": {
"start": {
"line": 35,
"column": 19
},
"end": {
"line": 35,
"column": 23
}
}
},
{
"type": "Literal",
"value": "",
"raw": "''",
"range": [
970,
972
],
"loc": {
"start": {
"line": 35,
"column": 25
},
"end": {
"line": 35,
"column": 27
}
}
},
{
"type": "UnaryExpression",
"operator": "-",
"argument": {
"type": "Literal",
"value": 1,
"raw": "1",
"range": [
975,
976
],
"loc": {
"start": {
"line": 35,
"column": 30
},
"end": {
"line": 35,
"column": 31
}
}
},
"prefix": true,
"range": [
974,
976
],
"loc": {
"start": {
"line": 35,
"column": 29
},
"end": {
"line": 35,
"column": 31
}
}
}
],
"range": [
953,
977
],
"loc": {
"start": {
"line": 35,
"column": 8
},
"end": {
"line": 35,
"column": 32
}
}
},
"range": [
953,
978
],
"loc": {
"start": {
"line": 35,
"column": 8
},
"end": {
"line": 35,
"column": 33
}
}
}
],
"range": [
942,
985
],
"loc": {
"start": {
"line": 34,
"column": 16
},
"end": {
"line": 36,
"column": 5
}
}
},
"generator": false,
"expression": false,
"range": [
936,
985
],
"loc": {
"start": {
"line": 34,
"column": 10
},
"end": {
"line": 36,
"column": 5
}
}
},
"kind": "init",
"method": true,
"shorthand": false,
"computed": false,
"range": [
930,
985
],
"loc": {
"start": {
"line": 34,
"column": 4
},
"end": {
"line": 36,
"column": 5
}
}
},
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "valueToArray",
"range": [
994,
1006
],
"loc": {
"start": {
"line": 38,
"column": 4
},
"end": {
"line": 38,
"column": 16
}
}
},
"value": {
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "name",
"range": [
1007,
1011
],
"loc": {
"start": {
"line": 38,
"column": 17
},
"end": {
"line": 38,
"column": 21
}
}
},
{
"type": "Identifier",
"name": "separator",
"range": [
1013,
1022
],
"loc": {
"start": {
"line": 38,
"column": 23
},
"end": {
"line": 38,
"column": 32
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "IfStatement",
"test": {
"type": "UnaryExpression",
"operator": "!",
"argument": {
"type": "Identifier",
"name": "separator",
"range": [
1038,
1047
],
"loc": {
"start": {
"line": 39,
"column": 12
},
"end": {
"line": 39,
"column": 21
}
}
},
"prefix": true,
"range": [
1037,
1047
],
"loc": {
"start": {
"line": 39,
"column": 11
},
"end": {
"line": 39,
"column": 21
}
}
},
"consequent": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "Identifier",
"name": "separator",
"range": [
1063,
1072
],
"loc": {
"start": {
"line": 40,
"column": 12
},
"end": {
"line": 40,
"column": 21
}
}
},
"right": {
"type": "Literal",
"value": ",",
"raw": "','",
"range": [
1075,
1078
],
"loc": {
"start": {
"line": 40,
"column": 24
},
"end": {
"line": 40,
"column": 27
}
}
},
"range": [
1063,
1078
],
"loc": {
"start": {
"line": 40,
"column": 12
},
"end": {
"line": 40,
"column": 27
}
}
},
"range": [
1063,
1079
],
"loc": {
"start": {
"line": 40,
"column": 12
},
"end": {
"line": 40,
"column": 28
}
}
}
],
"range": [
1048,
1090
],
"loc": {
"start": {
"line": 39,
"column": 22
},
"end": {
"line": 41,
"column": 9
}
}
},
"alternate": null,
"range": [
1034,
1090
],
"loc": {
"start": {
"line": 39,
"column": 8
},
"end": {
"line": 41,
"column": 9
}
},
"trailingComments": [
{
"type": "Line",
"value": "reads the cookie",
"range": [
1100,
1118
],
"loc": {
"start": {
"line": 42,
"column": 8
},
"end": {
"line": 42,
"column": 26
}
}
}
]
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "val",
"range": [
1132,
1135
],
"loc": {
"start": {
"line": 43,
"column": 12
},
"end": {
"line": 43,
"column": 15
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
1138,
1142
],
"loc": {
"start": {
"line": 43,
"column": 18
},
"end": {
"line": 43,
"column": 22
}
}
},
"property": {
"type": "Identifier",
"name": "read",
"range": [
1143,
1147
],
"loc": {
"start": {
"line": 43,
"column": 23
},
"end": {
"line": 43,
"column": 27
}
}
},
"range": [
1138,
1147
],
"loc": {
"start": {
"line": 43,
"column": 18
},
"end": {
"line": 43,
"column": 27
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "name",
"range": [
1148,
1152
],
"loc": {
"start": {
"line": 43,
"column": 28
},
"end": {
"line": 43,
"column": 32
}
}
}
],
"range": [
1138,
1153
],
"loc": {
"start": {
"line": 43,
"column": 18
},
"end": {
"line": 43,
"column": 33
}
}
},
"range": [
1132,
1153
],
"loc": {
"start": {
"line": 43,
"column": 12
},
"end": {
"line": 43,
"column": 33
}
}
}
],
"kind": "let",
"range": [
1128,
1154
],
"loc": {
"start": {
"line": 43,
"column": 8
},
"end": {
"line": 43,
"column": 34
}
},
"leadingComments": [
{
"type": "Line",
"value": "reads the cookie",
"range": [
1100,
1118
],
"loc": {
"start": {
"line": 42,
"column": 8
},
"end": {
"line": 42,
"column": 26
}
}
}
],
"trailingComments": [
{
"type": "Line",
"value": "creates an array with filters' values",
"range": [
1164,
1203
],
"loc": {
"start": {
"line": 44,
"column": 8
},
"end": {
"line": 44,
"column": 47
}
}
}
]
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "arr",
"range": [
1217,
1220
],
"loc": {
"start": {
"line": 45,
"column": 12
},
"end": {
"line": 45,
"column": 15
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "val",
"range": [
1223,
1226
],
"loc": {
"start": {
"line": 45,
"column": 18
},
"end": {
"line": 45,
"column": 21
}
}
},
"property": {
"type": "Identifier",
"name": "split",
"range": [
1227,
1232
],
"loc": {
"start": {
"line": 45,
"column": 22
},
"end": {
"line": 45,
"column": 27
}
}
},
"range": [
1223,
1232
],
"loc": {
"start": {
"line": 45,
"column": 18
},
"end": {
"line": 45,
"column": 27
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "separator",
"range": [
1233,
1242
],
"loc": {
"start": {
"line": 45,
"column": 28
},
"end": {
"line": 45,
"column": 37
}
}
}
],
"range": [
1223,
1243
],
"loc": {
"start": {
"line": 45,
"column": 18
},
"end": {
"line": 45,
"column": 38
}
}
},
"range": [
1217,
1243
],
"loc": {
"start": {
"line": 45,
"column": 12
},
"end": {
"line": 45,
"column": 38
}
}
}
],
"kind": "let",
"range": [
1213,
1244
],
"loc": {
"start": {
"line": 45,
"column": 8
},
"end": {
"line": 45,
"column": 39
}
},
"leadingComments": [
{
"type": "Line",
"value": "creates an array with filters' values",
"range": [
1164,
1203
],
"loc": {
"start": {
"line": 44,
"column": 8
},
"end": {
"line": 44,
"column": 47
}
}
}
]
},
{
"type": "ReturnStatement",
"argument": {
"type": "Identifier",
"name": "arr",
"range": [
1261,
1264
],
"loc": {
"start": {
"line": 46,
"column": 15
},
"end": {
"line": 46,
"column": 18
}
}
},
"range": [
1254,
1265
],
"loc": {
"start": {
"line": 46,
"column": 8
},
"end": {
"line": 46,
"column": 19
}
}
}
],
"range": [
1023,
1272
],
"loc": {
"start": {
"line": 38,
"column": 33
},
"end": {
"line": 47,
"column": 5
}
}
},
"generator": false,
"expression": false,
"range": [
1006,
1272
],
"loc": {
"start": {
"line": 38,
"column": 16
},
"end": {
"line": 47,
"column": 5
}
}
},
"kind": "init",
"method": true,
"shorthand": false,
"computed": false,
"range": [
994,
1272
],
"loc": {
"start": {
"line": 38,
"column": 4
},
"end": {
"line": 47,
"column": 5
}
}
},
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "getValueByIndex",
"range": [
1281,
1296
],
"loc": {
"start": {
"line": 49,
"column": 4
},
"end": {
"line": 49,
"column": 19
}
}
},
"value": {
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "name",
"range": [
1297,
1301
],
"loc": {
"start": {
"line": 49,
"column": 20
},
"end": {
"line": 49,
"column": 24
}
}
},
{
"type": "Identifier",
"name": "index",
"range": [
1303,
1308
],
"loc": {
"start": {
"line": 49,
"column": 26
},
"end": {
"line": 49,
"column": 31
}
}
},
{
"type": "Identifier",
"name": "separator",
"range": [
1310,
1319
],
"loc": {
"start": {
"line": 49,
"column": 33
},
"end": {
"line": 49,
"column": 42
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "IfStatement",
"test": {
"type": "UnaryExpression",
"operator": "!",
"argument": {
"type": "Identifier",
"name": "separator",
"range": [
1335,
1344
],
"loc": {
"start": {
"line": 50,
"column": 12
},
"end": {
"line": 50,
"column": 21
}
}
},
"prefix": true,
"range": [
1334,
1344
],
"loc": {
"start": {
"line": 50,
"column": 11
},
"end": {
"line": 50,
"column": 21
}
}
},
"consequent": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "Identifier",
"name": "separator",
"range": [
1360,
1369
],
"loc": {
"start": {
"line": 51,
"column": 12
},
"end": {
"line": 51,
"column": 21
}
}
},
"right": {
"type": "Literal",
"value": ",",
"raw": "','",
"range": [
1372,
1375
],
"loc": {
"start": {
"line": 51,
"column": 24
},
"end": {
"line": 51,
"column": 27
}
}
},
"range": [
1360,
1375
],
"loc": {
"start": {
"line": 51,
"column": 12
},
"end": {
"line": 51,
"column": 27
}
}
},
"range": [
1360,
1376
],
"loc": {
"start": {
"line": 51,
"column": 12
},
"end": {
"line": 51,
"column": 28
}
}
}
],
"range": [
1345,
1387
],
"loc": {
"start": {
"line": 50,
"column": 22
},
"end": {
"line": 52,
"column": 9
}
}
},
"alternate": null,
"range": [
1331,
1387
],
"loc": {
"start": {
"line": 50,
"column": 8
},
"end": {
"line": 52,
"column": 9
}
},
"trailingComments": [
{
"type": "Line",
"value": "reads the cookie",
"range": [
1397,
1415
],
"loc": {
"start": {
"line": 53,
"column": 8
},
"end": {
"line": 53,
"column": 26
}
}
}
]
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "val",
"range": [
1429,
1432
],
"loc": {
"start": {
"line": 54,
"column": 12
},
"end": {
"line": 54,
"column": 15
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
1435,
1439
],
"loc": {
"start": {
"line": 54,
"column": 18
},
"end": {
"line": 54,
"column": 22
}
}
},
"property": {
"type": "Identifier",
"name": "valueToArray",
"range": [
1440,
1452
],
"loc": {
"start": {
"line": 54,
"column": 23
},
"end": {
"line": 54,
"column": 35
}
}
},
"range": [
1435,
1452
],
"loc": {
"start": {
"line": 54,
"column": 18
},
"end": {
"line": 54,
"column": 35
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "name",
"range": [
1453,
1457
],
"loc": {
"start": {
"line": 54,
"column": 36
},
"end": {
"line": 54,
"column": 40
}
}
},
{
"type": "Identifier",
"name": "separator",
"range": [
1459,
1468
],
"loc": {
"start": {
"line": 54,
"column": 42
},
"end": {
"line": 54,
"column": 51
}
}
}
],
"range": [
1435,
1469
],
"loc": {
"start": {
"line": 54,
"column": 18
},
"end": {
"line": 54,
"column": 52
}
}
},
"range": [
1429,
1469
],
"loc": {
"start": {
"line": 54,
"column": 12
},
"end": {
"line": 54,
"column": 52
}
}
}
],
"kind": "let",
"range": [
1425,
1470
],
"loc": {
"start": {
"line": 54,
"column": 8
},
"end": {
"line": 54,
"column": 53
}
},
"leadingComments": [
{
"type": "Line",
"value": "reads the cookie",
"range": [
1397,
1415
],
"loc": {
"start": {
"line": 53,
"column": 8
},
"end": {
"line": 53,
"column": 26
}
}
}
]
},
{
"type": "ReturnStatement",
"argument": {
"type": "MemberExpression",
"computed": true,
"object": {
"type": "Identifier",
"name": "val",
"range": [
1487,
1490
],
"loc": {
"start": {
"line": 55,
"column": 15
},
"end": {
"line": 55,
"column": 18
}
}
},
"property": {
"type": "Identifier",
"name": "index",
"range": [
1491,
1496
],
"loc": {
"start": {
"line": 55,
"column": 19
},
"end": {
"line": 55,
"column": 24
}
}
},
"range": [
1487,
1497
],
"loc": {
"start": {
"line": 55,
"column": 15
},
"end": {
"line": 55,
"column": 25
}
}
},
"range": [
1480,
1498
],
"loc": {
"start": {
"line": 55,
"column": 8
},
"end": {
"line": 55,
"column": 26
}
}
}
],
"range": [
1320,
1505
],
"loc": {
"start": {
"line": 49,
"column": 43
},
"end": {
"line": 56,
"column": 5
}
}
},
"generator": false,
"expression": false,
"range": [
1296,
1505
],
"loc": {
"start": {
"line": 49,
"column": 19
},
"end": {
"line": 56,
"column": 5
}
}
},
"kind": "init",
"method": true,
"shorthand": false,
"computed": false,
"range": [
1281,
1505
],
"loc": {
"start": {
"line": 49,
"column": 4
},
"end": {
"line": 56,
"column": 5
}
}
}
],
"range": [
48,
1510
],
"loc": {
"start": {
"line": 5,
"column": 15
},
"end": {
"line": 58,
"column": 1
}
},
"leadingComments": [
{
"type": "Block",
"value": "*\r\n * Cookie utilities\r\n ",
"range": [
0,
29
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 3,
"column": 3
}
}
}
],
"trailingComments": []
},
"range": [
33,
1511
],
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 58,
"column": 2
}
},
"leadingComments": [
{
"type": "Block",
"value": "*\r\n * Cookie utilities\r\n ",
"range": [
0,
29
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 3,
"column": 3
}
}
}
]
}
],
"sourceType": "module",
"range": [
33,
1511
],
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 58,
"column": 2
}
},
"comments": [
{
"type": "Block",
"value": "*\r\n * Cookie utilities\r\n ",
"range": [
0,
29
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 3,
"column": 3
}
}
},
{
"type": "Line",
"value": "reads the cookie",
"range": [
1100,
1118
],
"loc": {
"start": {
"line": 42,
"column": 8
},
"end": {
"line": 42,
"column": 26
}
}
},
{
"type": "Line",
"value": "creates an array with filters' values",
"range": [
1164,
1203
],
"loc": {
"start": {
"line": 44,
"column": 8
},
"end": {
"line": 44,
"column": 47
}
}
},
{
"type": "Line",
"value": "reads the cookie",
"range": [
1397,
1415
],
"loc": {
"start": {
"line": 53,
"column": 8
},
"end": {
"line": 53,
"column": 26
}
}
}
]
}