mirror of
https://github.com/koalyptus/TableFilter.git
synced 2024-06-09 09:22:28 +02:00
15123 lines
556 KiB
JSON
15123 lines
556 KiB
JSON
{
|
|
"type": "Program",
|
|
"body": [
|
|
{
|
|
"type": "ExportDefaultDeclaration",
|
|
"declaration": {
|
|
"type": "ObjectExpression",
|
|
"properties": [
|
|
{
|
|
"type": "Property",
|
|
"key": {
|
|
"type": "Identifier",
|
|
"name": "isValid",
|
|
"range": [
|
|
48,
|
|
55
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 11
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"type": "FunctionExpression",
|
|
"id": null,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "dateStr",
|
|
"range": [
|
|
56,
|
|
63
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"name": "format",
|
|
"range": [
|
|
65,
|
|
71
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 27
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "UnaryExpression",
|
|
"operator": "!",
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"name": "format",
|
|
"range": [
|
|
86,
|
|
92
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 7,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
"prefix": true,
|
|
"range": [
|
|
85,
|
|
92
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 7,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "format",
|
|
"range": [
|
|
108,
|
|
114
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 8,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 8,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": "DMY",
|
|
"raw": "'DMY'",
|
|
"range": [
|
|
117,
|
|
122
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 8,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 8,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
108,
|
|
122
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 8,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 8,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
108,
|
|
123
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 8,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 8,
|
|
"column": 27
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
94,
|
|
133
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 7,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 9,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"alternate": null,
|
|
"range": [
|
|
82,
|
|
133
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 7,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 9,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "format",
|
|
"range": [
|
|
142,
|
|
148
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 10,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 10,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "format",
|
|
"range": [
|
|
151,
|
|
157
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 10,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 10,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "toUpperCase",
|
|
"range": [
|
|
158,
|
|
169
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 10,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 10,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
151,
|
|
169
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 10,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 10,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
"arguments": [],
|
|
"range": [
|
|
151,
|
|
171
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 10,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 10,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
142,
|
|
171
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 10,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 10,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
142,
|
|
172
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 10,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 10,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "BinaryExpression",
|
|
"operator": "!=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "format",
|
|
"range": [
|
|
184,
|
|
190
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 11,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 11,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "length",
|
|
"range": [
|
|
191,
|
|
197
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 11,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 11,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
184,
|
|
197
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 11,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 11,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": 3,
|
|
"raw": "3",
|
|
"range": [
|
|
201,
|
|
202
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 11,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 11,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
184,
|
|
202
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 11,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 11,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "BinaryExpression",
|
|
"operator": "===",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "format",
|
|
"range": [
|
|
221,
|
|
227
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 12,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": "DDMMMYYYY",
|
|
"raw": "'DDMMMYYYY'",
|
|
"range": [
|
|
230,
|
|
241
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 12,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
221,
|
|
241
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 12,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"id": {
|
|
"type": "Identifier",
|
|
"name": "d",
|
|
"range": [
|
|
264,
|
|
265
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"init": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"range": [
|
|
268,
|
|
272
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "format",
|
|
"range": [
|
|
273,
|
|
279
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
268,
|
|
279
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "dateStr",
|
|
"range": [
|
|
280,
|
|
287
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"name": "format",
|
|
"range": [
|
|
289,
|
|
295
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 51
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
268,
|
|
296
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 52
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
264,
|
|
296
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 52
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"kind": "let",
|
|
"range": [
|
|
260,
|
|
297
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 53
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "dateStr",
|
|
"range": [
|
|
314,
|
|
321
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "BinaryExpression",
|
|
"operator": "+",
|
|
"left": {
|
|
"type": "BinaryExpression",
|
|
"operator": "+",
|
|
"left": {
|
|
"type": "BinaryExpression",
|
|
"operator": "+",
|
|
"left": {
|
|
"type": "BinaryExpression",
|
|
"operator": "+",
|
|
"left": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "d",
|
|
"range": [
|
|
324,
|
|
325
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "getDate",
|
|
"range": [
|
|
326,
|
|
333
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
324,
|
|
333
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
"arguments": [],
|
|
"range": [
|
|
324,
|
|
335
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": "/",
|
|
"raw": "'/'",
|
|
"range": [
|
|
337,
|
|
340
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 42
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
324,
|
|
340
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 42
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "BinaryExpression",
|
|
"operator": "+",
|
|
"left": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "d",
|
|
"range": [
|
|
343,
|
|
344
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 46
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "getMonth",
|
|
"range": [
|
|
345,
|
|
353
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 47
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 55
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
343,
|
|
353
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 55
|
|
}
|
|
}
|
|
},
|
|
"arguments": [],
|
|
"range": [
|
|
343,
|
|
355
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 57
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
356,
|
|
357
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 58
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 59
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
343,
|
|
357
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 59
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
324,
|
|
358
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 60
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": "/",
|
|
"raw": "'/'",
|
|
"range": [
|
|
360,
|
|
363
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 62
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 65
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
324,
|
|
363
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 65
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "d",
|
|
"range": [
|
|
385,
|
|
386
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "getFullYear",
|
|
"range": [
|
|
387,
|
|
398
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
385,
|
|
398
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
"arguments": [],
|
|
"range": [
|
|
385,
|
|
400
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
324,
|
|
400
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
314,
|
|
400
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
314,
|
|
401
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "format",
|
|
"range": [
|
|
418,
|
|
424
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 16,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 16,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": "DMY",
|
|
"raw": "'DMY'",
|
|
"range": [
|
|
427,
|
|
432
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 16,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 16,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
418,
|
|
432
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 16,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 16,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
418,
|
|
433
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 16,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 16,
|
|
"column": 31
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
242,
|
|
447
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
"alternate": null,
|
|
"range": [
|
|
218,
|
|
447
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 13
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
204,
|
|
457
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 11,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 18,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"alternate": null,
|
|
"range": [
|
|
181,
|
|
457
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 11,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 18,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "LogicalExpression",
|
|
"operator": "||",
|
|
"left": {
|
|
"type": "LogicalExpression",
|
|
"operator": "||",
|
|
"left": {
|
|
"type": "BinaryExpression",
|
|
"operator": "===",
|
|
"left": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "format",
|
|
"range": [
|
|
470,
|
|
476
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 19,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 19,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "indexOf",
|
|
"range": [
|
|
477,
|
|
484
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 19,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 19,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
470,
|
|
484
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 19,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 19,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Literal",
|
|
"value": "M",
|
|
"raw": "'M'",
|
|
"range": [
|
|
485,
|
|
488
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 19,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 19,
|
|
"column": 30
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
470,
|
|
489
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 19,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 19,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "UnaryExpression",
|
|
"operator": "-",
|
|
"argument": {
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
495,
|
|
496
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 19,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 19,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
"prefix": true,
|
|
"range": [
|
|
494,
|
|
496
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 19,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 19,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
470,
|
|
496
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 19,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 19,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "BinaryExpression",
|
|
"operator": "===",
|
|
"left": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "format",
|
|
"range": [
|
|
502,
|
|
508
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 19,
|
|
"column": 44
|
|
},
|
|
"end": {
|
|
"line": 19,
|
|
"column": 50
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "indexOf",
|
|
"range": [
|
|
509,
|
|
516
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 19,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 19,
|
|
"column": 58
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
502,
|
|
516
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 19,
|
|
"column": 44
|
|
},
|
|
"end": {
|
|
"line": 19,
|
|
"column": 58
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Literal",
|
|
"value": "D",
|
|
"raw": "'D'",
|
|
"range": [
|
|
517,
|
|
520
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 19,
|
|
"column": 59
|
|
},
|
|
"end": {
|
|
"line": 19,
|
|
"column": 62
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
502,
|
|
521
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 19,
|
|
"column": 44
|
|
},
|
|
"end": {
|
|
"line": 19,
|
|
"column": 63
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "UnaryExpression",
|
|
"operator": "-",
|
|
"argument": {
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
527,
|
|
528
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 19,
|
|
"column": 69
|
|
},
|
|
"end": {
|
|
"line": 19,
|
|
"column": 70
|
|
}
|
|
}
|
|
},
|
|
"prefix": true,
|
|
"range": [
|
|
526,
|
|
528
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 19,
|
|
"column": 68
|
|
},
|
|
"end": {
|
|
"line": 19,
|
|
"column": 70
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
502,
|
|
528
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 19,
|
|
"column": 44
|
|
},
|
|
"end": {
|
|
"line": 19,
|
|
"column": 70
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
469,
|
|
529
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 19,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 19,
|
|
"column": 71
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "BinaryExpression",
|
|
"operator": "===",
|
|
"left": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "format",
|
|
"range": [
|
|
546,
|
|
552
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 20,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 20,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "indexOf",
|
|
"range": [
|
|
553,
|
|
560
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 20,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 20,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
546,
|
|
560
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 20,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 20,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Literal",
|
|
"value": "Y",
|
|
"raw": "'Y'",
|
|
"range": [
|
|
561,
|
|
564
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 20,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 20,
|
|
"column": 31
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
546,
|
|
565
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 20,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 20,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "UnaryExpression",
|
|
"operator": "-",
|
|
"argument": {
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
571,
|
|
572
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 20,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 20,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
"prefix": true,
|
|
"range": [
|
|
570,
|
|
572
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 20,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 20,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
546,
|
|
572
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 20,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 20,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
469,
|
|
573
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 19,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 20,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "format",
|
|
"range": [
|
|
588,
|
|
594
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 21,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 21,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": "DMY",
|
|
"raw": "'DMY'",
|
|
"range": [
|
|
597,
|
|
602
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 21,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 21,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
588,
|
|
602
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 21,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 21,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
588,
|
|
603
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 21,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 21,
|
|
"column": 27
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
574,
|
|
613
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 20,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 22,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"alternate": null,
|
|
"range": [
|
|
466,
|
|
613
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 19,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 22,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"id": {
|
|
"type": "Identifier",
|
|
"name": "reg1",
|
|
"range": [
|
|
626,
|
|
630
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
"init": null,
|
|
"range": [
|
|
626,
|
|
630
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"id": {
|
|
"type": "Identifier",
|
|
"name": "reg2",
|
|
"range": [
|
|
632,
|
|
636
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
"init": null,
|
|
"range": [
|
|
632,
|
|
636
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 22
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"kind": "let",
|
|
"range": [
|
|
622,
|
|
637
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 23
|
|
}
|
|
},
|
|
"trailingComments": [
|
|
{
|
|
"type": "Line",
|
|
"value": " If the year is first",
|
|
"range": [
|
|
646,
|
|
669
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 24,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 24,
|
|
"column": 31
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "BinaryExpression",
|
|
"operator": "==",
|
|
"left": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "format",
|
|
"range": [
|
|
681,
|
|
687
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 25,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 25,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "substring",
|
|
"range": [
|
|
688,
|
|
697
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 25,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 25,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
681,
|
|
697
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 25,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 25,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Literal",
|
|
"value": 0,
|
|
"raw": "0",
|
|
"range": [
|
|
698,
|
|
699
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 25,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 25,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
701,
|
|
702
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 25,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 25,
|
|
"column": 32
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
681,
|
|
703
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 25,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 25,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": "Y",
|
|
"raw": "'Y'",
|
|
"range": [
|
|
707,
|
|
710
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 25,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 25,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
681,
|
|
710
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 25,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 25,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "reg1",
|
|
"range": [
|
|
728,
|
|
732
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 26,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 26,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": {},
|
|
"raw": "/^\\d{2}(\\-|\\/|\\.)\\d{1,2}\\1\\d{1,2}$/",
|
|
"regex": {
|
|
"pattern": "^\\d{2}(\\-|\\/|\\.)\\d{1,2}\\1\\d{1,2}$",
|
|
"flags": ""
|
|
},
|
|
"range": [
|
|
735,
|
|
770
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 26,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 26,
|
|
"column": 56
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
728,
|
|
770
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 26,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 26,
|
|
"column": 56
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
728,
|
|
771
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 26,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 26,
|
|
"column": 57
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "reg2",
|
|
"range": [
|
|
786,
|
|
790
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 27,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 27,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": {},
|
|
"raw": "/^\\d{4}(\\-|\\/|\\.)\\d{1,2}\\1\\d{1,2}$/",
|
|
"regex": {
|
|
"pattern": "^\\d{4}(\\-|\\/|\\.)\\d{1,2}\\1\\d{1,2}$",
|
|
"flags": ""
|
|
},
|
|
"range": [
|
|
793,
|
|
828
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 27,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 27,
|
|
"column": 56
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
786,
|
|
828
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 27,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 27,
|
|
"column": 56
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
786,
|
|
829
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 27,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 27,
|
|
"column": 57
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
712,
|
|
839
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 25,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 28,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"alternate": {
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "BinaryExpression",
|
|
"operator": "==",
|
|
"left": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "format",
|
|
"range": [
|
|
848,
|
|
854
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 28,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 28,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "substring",
|
|
"range": [
|
|
855,
|
|
864
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 28,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 28,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
848,
|
|
864
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 28,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 28,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
865,
|
|
866
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 28,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 28,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": 2,
|
|
"raw": "2",
|
|
"range": [
|
|
868,
|
|
869
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 28,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 28,
|
|
"column": 39
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
848,
|
|
870
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 28,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 28,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": "Y",
|
|
"raw": "'Y'",
|
|
"range": [
|
|
874,
|
|
877
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 28,
|
|
"column": 44
|
|
},
|
|
"end": {
|
|
"line": 28,
|
|
"column": 47
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
848,
|
|
877
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 28,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 28,
|
|
"column": 47
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "reg1",
|
|
"range": [
|
|
920,
|
|
924
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 29,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 29,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": {},
|
|
"raw": "/^\\d{1,2}(\\-|\\/|\\.)\\d{2}\\1\\d{1,2}$/",
|
|
"regex": {
|
|
"pattern": "^\\d{1,2}(\\-|\\/|\\.)\\d{2}\\1\\d{1,2}$",
|
|
"flags": ""
|
|
},
|
|
"range": [
|
|
927,
|
|
962
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 29,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 29,
|
|
"column": 56
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
920,
|
|
962
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 29,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 29,
|
|
"column": 56
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
920,
|
|
963
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 29,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 29,
|
|
"column": 57
|
|
}
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "Line",
|
|
"value": " If the year is second",
|
|
"range": [
|
|
881,
|
|
905
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 28,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 28,
|
|
"column": 75
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "reg2",
|
|
"range": [
|
|
978,
|
|
982
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 30,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 30,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": {},
|
|
"raw": "/^\\d{1,2}(\\-|\\/|\\.)\\d{4}\\1\\d{1,2}$/",
|
|
"regex": {
|
|
"pattern": "^\\d{1,2}(\\-|\\/|\\.)\\d{4}\\1\\d{1,2}$",
|
|
"flags": ""
|
|
},
|
|
"range": [
|
|
985,
|
|
1020
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 30,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 30,
|
|
"column": 56
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
978,
|
|
1020
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 30,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 30,
|
|
"column": 56
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
978,
|
|
1021
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 30,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 30,
|
|
"column": 57
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
879,
|
|
1031
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 28,
|
|
"column": 49
|
|
},
|
|
"end": {
|
|
"line": 31,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"alternate": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "reg1",
|
|
"range": [
|
|
1079,
|
|
1083
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 32,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 32,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": {},
|
|
"raw": "/^\\d{1,2}(\\-|\\/|\\.)\\d{1,2}\\1\\d{2}$/",
|
|
"regex": {
|
|
"pattern": "^\\d{1,2}(\\-|\\/|\\.)\\d{1,2}\\1\\d{2}$",
|
|
"flags": ""
|
|
},
|
|
"range": [
|
|
1086,
|
|
1121
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 32,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 32,
|
|
"column": 56
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1079,
|
|
1121
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 32,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 32,
|
|
"column": 56
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1079,
|
|
1122
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 32,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 32,
|
|
"column": 57
|
|
}
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "Line",
|
|
"value": " The year must be third",
|
|
"range": [
|
|
1039,
|
|
1064
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 31,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 31,
|
|
"column": 42
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "reg2",
|
|
"range": [
|
|
1137,
|
|
1141
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": {},
|
|
"raw": "/^\\d{1,2}(\\-|\\/|\\.)\\d{1,2}\\1\\d{4}$/",
|
|
"regex": {
|
|
"pattern": "^\\d{1,2}(\\-|\\/|\\.)\\d{1,2}\\1\\d{4}$",
|
|
"flags": ""
|
|
},
|
|
"range": [
|
|
1144,
|
|
1179
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 56
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1137,
|
|
1179
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 56
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1137,
|
|
1180
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 57
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
1037,
|
|
1190
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 31,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
845,
|
|
1190
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 28,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
678,
|
|
1190
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 25,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 9
|
|
}
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "Line",
|
|
"value": " If the year is first",
|
|
"range": [
|
|
646,
|
|
669
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 24,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 24,
|
|
"column": 31
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "Line",
|
|
"value": " If it doesn't conform to the right format (with either a 2 digit year",
|
|
"range": [
|
|
1199,
|
|
1271
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 35,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 35,
|
|
"column": 80
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Line",
|
|
"value": " or 4 digit year), fail",
|
|
"range": [
|
|
1280,
|
|
1305
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 36,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 36,
|
|
"column": 33
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "LogicalExpression",
|
|
"operator": "&&",
|
|
"left": {
|
|
"type": "BinaryExpression",
|
|
"operator": "===",
|
|
"left": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "reg1",
|
|
"range": [
|
|
1317,
|
|
1321
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 37,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "test",
|
|
"range": [
|
|
1322,
|
|
1326
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 37,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1317,
|
|
1326
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 37,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "dateStr",
|
|
"range": [
|
|
1327,
|
|
1334
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 37,
|
|
"column": 28
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
1317,
|
|
1335
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 37,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": false,
|
|
"raw": "false",
|
|
"range": [
|
|
1340,
|
|
1345
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 37,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1317,
|
|
1345
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 37,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "BinaryExpression",
|
|
"operator": "===",
|
|
"left": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "reg2",
|
|
"range": [
|
|
1349,
|
|
1353
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 43
|
|
},
|
|
"end": {
|
|
"line": 37,
|
|
"column": 47
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "test",
|
|
"range": [
|
|
1354,
|
|
1358
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 48
|
|
},
|
|
"end": {
|
|
"line": 37,
|
|
"column": 52
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1349,
|
|
1358
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 43
|
|
},
|
|
"end": {
|
|
"line": 37,
|
|
"column": 52
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "dateStr",
|
|
"range": [
|
|
1359,
|
|
1366
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 53
|
|
},
|
|
"end": {
|
|
"line": 37,
|
|
"column": 60
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
1349,
|
|
1367
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 43
|
|
},
|
|
"end": {
|
|
"line": 37,
|
|
"column": 61
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": false,
|
|
"raw": "false",
|
|
"range": [
|
|
1372,
|
|
1377
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 66
|
|
},
|
|
"end": {
|
|
"line": 37,
|
|
"column": 71
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1349,
|
|
1377
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 43
|
|
},
|
|
"end": {
|
|
"line": 37,
|
|
"column": 71
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1317,
|
|
1377
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 37,
|
|
"column": 71
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"argument": {
|
|
"type": "Literal",
|
|
"value": false,
|
|
"raw": "false",
|
|
"range": [
|
|
1400,
|
|
1405
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 38,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 38,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1393,
|
|
1406
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 38,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 38,
|
|
"column": 25
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
1379,
|
|
1416
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 73
|
|
},
|
|
"end": {
|
|
"line": 39,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"alternate": null,
|
|
"range": [
|
|
1314,
|
|
1416
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 39,
|
|
"column": 9
|
|
}
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "Line",
|
|
"value": " If it doesn't conform to the right format (with either a 2 digit year",
|
|
"range": [
|
|
1199,
|
|
1271
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 35,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 35,
|
|
"column": 80
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Line",
|
|
"value": " or 4 digit year), fail",
|
|
"range": [
|
|
1280,
|
|
1305
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 36,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 36,
|
|
"column": 33
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "Line",
|
|
"value": " Split into 3 parts based on what the divider was",
|
|
"range": [
|
|
1425,
|
|
1476
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 40,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 40,
|
|
"column": 59
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"id": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
1489,
|
|
1494
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 41,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 41,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
"init": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "dateStr",
|
|
"range": [
|
|
1497,
|
|
1504
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 41,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 41,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "split",
|
|
"range": [
|
|
1505,
|
|
1510
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 41,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 41,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1497,
|
|
1510
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 41,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 41,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "RegExp",
|
|
"range": [
|
|
1511,
|
|
1517
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 41,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 41,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "$1",
|
|
"range": [
|
|
1518,
|
|
1520
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 41,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 41,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1511,
|
|
1520
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 41,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 41,
|
|
"column": 43
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
1497,
|
|
1521
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 41,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 41,
|
|
"column": 44
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1489,
|
|
1521
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 41,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 41,
|
|
"column": 44
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"kind": "let",
|
|
"range": [
|
|
1485,
|
|
1522
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 41,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 41,
|
|
"column": 45
|
|
}
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "Line",
|
|
"value": " Split into 3 parts based on what the divider was",
|
|
"range": [
|
|
1425,
|
|
1476
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 40,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 40,
|
|
"column": 59
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"id": {
|
|
"type": "Identifier",
|
|
"name": "mm",
|
|
"range": [
|
|
1535,
|
|
1537
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 42,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 42,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
"init": null,
|
|
"range": [
|
|
1535,
|
|
1537
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 42,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 42,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"id": {
|
|
"type": "Identifier",
|
|
"name": "dd",
|
|
"range": [
|
|
1539,
|
|
1541
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 42,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 42,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
"init": null,
|
|
"range": [
|
|
1539,
|
|
1541
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 42,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 42,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"id": {
|
|
"type": "Identifier",
|
|
"name": "yy",
|
|
"range": [
|
|
1543,
|
|
1545
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 42,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 42,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
"init": null,
|
|
"range": [
|
|
1543,
|
|
1545
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 42,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 42,
|
|
"column": 22
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"kind": "let",
|
|
"range": [
|
|
1531,
|
|
1546
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 42,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 42,
|
|
"column": 23
|
|
}
|
|
},
|
|
"trailingComments": [
|
|
{
|
|
"type": "Line",
|
|
"value": " Check to see if the 3 parts end up making a valid date",
|
|
"range": [
|
|
1555,
|
|
1612
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 65
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "BinaryExpression",
|
|
"operator": "===",
|
|
"left": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "format",
|
|
"range": [
|
|
1624,
|
|
1630
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 44,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 44,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "substring",
|
|
"range": [
|
|
1631,
|
|
1640
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 44,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 44,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1624,
|
|
1640
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 44,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 44,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Literal",
|
|
"value": 0,
|
|
"raw": "0",
|
|
"range": [
|
|
1641,
|
|
1642
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 44,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 44,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
1644,
|
|
1645
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 44,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 44,
|
|
"column": 32
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
1624,
|
|
1646
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 44,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 44,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": "M",
|
|
"raw": "'M'",
|
|
"range": [
|
|
1651,
|
|
1654
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 44,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 44,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1624,
|
|
1654
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 44,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 44,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "mm",
|
|
"range": [
|
|
1669,
|
|
1671
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 45,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 45,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
1674,
|
|
1679
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 45,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 45,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Literal",
|
|
"value": 0,
|
|
"raw": "0",
|
|
"range": [
|
|
1680,
|
|
1681
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 45,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 45,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1674,
|
|
1682
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 45,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 45,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1669,
|
|
1682
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 45,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 45,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1669,
|
|
1683
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 45,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 45,
|
|
"column": 26
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
1655,
|
|
1693
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 44,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 46,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"alternate": {
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "BinaryExpression",
|
|
"operator": "===",
|
|
"left": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "format",
|
|
"range": [
|
|
1702,
|
|
1708
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 46,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 46,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "substring",
|
|
"range": [
|
|
1709,
|
|
1718
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 46,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 46,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1702,
|
|
1718
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 46,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 46,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
1719,
|
|
1720
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 46,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 46,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": 2,
|
|
"raw": "2",
|
|
"range": [
|
|
1722,
|
|
1723
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 46,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 46,
|
|
"column": 39
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
1702,
|
|
1724
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 46,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 46,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": "M",
|
|
"raw": "'M'",
|
|
"range": [
|
|
1729,
|
|
1732
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 46,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 46,
|
|
"column": 48
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1702,
|
|
1732
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 46,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 46,
|
|
"column": 48
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "mm",
|
|
"range": [
|
|
1747,
|
|
1749
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 47,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 47,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
1752,
|
|
1757
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 47,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 47,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
1758,
|
|
1759
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 47,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 47,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1752,
|
|
1760
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 47,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 47,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1747,
|
|
1760
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 47,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 47,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1747,
|
|
1761
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 47,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 47,
|
|
"column": 26
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
1733,
|
|
1771
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 46,
|
|
"column": 49
|
|
},
|
|
"end": {
|
|
"line": 48,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"alternate": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "mm",
|
|
"range": [
|
|
1791,
|
|
1793
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 49,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 49,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
1796,
|
|
1801
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 49,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 49,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Literal",
|
|
"value": 2,
|
|
"raw": "2",
|
|
"range": [
|
|
1802,
|
|
1803
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 49,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 49,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1796,
|
|
1804
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 49,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 49,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1791,
|
|
1804
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 49,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 49,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1791,
|
|
1805
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 49,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 49,
|
|
"column": 26
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
1777,
|
|
1815
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 48,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 50,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1699,
|
|
1815
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 46,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 50,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1621,
|
|
1815
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 44,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 50,
|
|
"column": 9
|
|
}
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "Line",
|
|
"value": " Check to see if the 3 parts end up making a valid date",
|
|
"range": [
|
|
1555,
|
|
1612
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 65
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "BinaryExpression",
|
|
"operator": "===",
|
|
"left": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "format",
|
|
"range": [
|
|
1827,
|
|
1833
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 51,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 51,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "substring",
|
|
"range": [
|
|
1834,
|
|
1843
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 51,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 51,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1827,
|
|
1843
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 51,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 51,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Literal",
|
|
"value": 0,
|
|
"raw": "0",
|
|
"range": [
|
|
1844,
|
|
1845
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 51,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 51,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
1847,
|
|
1848
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 51,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 51,
|
|
"column": 32
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
1827,
|
|
1849
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 51,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 51,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": "D",
|
|
"raw": "'D'",
|
|
"range": [
|
|
1854,
|
|
1857
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 51,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 51,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1827,
|
|
1857
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 51,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 51,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "dd",
|
|
"range": [
|
|
1872,
|
|
1874
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
1877,
|
|
1882
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Literal",
|
|
"value": 0,
|
|
"raw": "0",
|
|
"range": [
|
|
1883,
|
|
1884
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1877,
|
|
1885
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1872,
|
|
1885
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1872,
|
|
1886
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 26
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
1858,
|
|
1896
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 51,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"alternate": {
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "BinaryExpression",
|
|
"operator": "===",
|
|
"left": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "format",
|
|
"range": [
|
|
1905,
|
|
1911
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "substring",
|
|
"range": [
|
|
1912,
|
|
1921
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1905,
|
|
1921
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
1922,
|
|
1923
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": 2,
|
|
"raw": "2",
|
|
"range": [
|
|
1925,
|
|
1926
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 39
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
1905,
|
|
1927
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": "D",
|
|
"raw": "'D'",
|
|
"range": [
|
|
1932,
|
|
1935
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 48
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1905,
|
|
1935
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 48
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "dd",
|
|
"range": [
|
|
1950,
|
|
1952
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 54,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 54,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
1955,
|
|
1960
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 54,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 54,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
1961,
|
|
1962
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 54,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 54,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1955,
|
|
1963
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 54,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 54,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1950,
|
|
1963
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 54,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 54,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1950,
|
|
1964
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 54,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 54,
|
|
"column": 26
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
1936,
|
|
1974
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 49
|
|
},
|
|
"end": {
|
|
"line": 55,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"alternate": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "dd",
|
|
"range": [
|
|
1994,
|
|
1996
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 56,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 56,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
1999,
|
|
2004
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 56,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 56,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Literal",
|
|
"value": 2,
|
|
"raw": "2",
|
|
"range": [
|
|
2005,
|
|
2006
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 56,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 56,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1999,
|
|
2007
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 56,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 56,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1994,
|
|
2007
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 56,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 56,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1994,
|
|
2008
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 56,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 56,
|
|
"column": 26
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
1980,
|
|
2018
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 55,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 57,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1902,
|
|
2018
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 57,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
1824,
|
|
2018
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 51,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 57,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "BinaryExpression",
|
|
"operator": "===",
|
|
"left": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "format",
|
|
"range": [
|
|
2030,
|
|
2036
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 58,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 58,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "substring",
|
|
"range": [
|
|
2037,
|
|
2046
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 58,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 58,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2030,
|
|
2046
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 58,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 58,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Literal",
|
|
"value": 0,
|
|
"raw": "0",
|
|
"range": [
|
|
2047,
|
|
2048
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 58,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 58,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
2050,
|
|
2051
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 58,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 58,
|
|
"column": 32
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2030,
|
|
2052
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 58,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 58,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": "Y",
|
|
"raw": "'Y'",
|
|
"range": [
|
|
2057,
|
|
2060
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 58,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 58,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2030,
|
|
2060
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 58,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 58,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "yy",
|
|
"range": [
|
|
2075,
|
|
2077
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 59,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 59,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
2080,
|
|
2085
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 59,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 59,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Literal",
|
|
"value": 0,
|
|
"raw": "0",
|
|
"range": [
|
|
2086,
|
|
2087
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 59,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 59,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2080,
|
|
2088
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 59,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 59,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2075,
|
|
2088
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 59,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 59,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2075,
|
|
2089
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 59,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 59,
|
|
"column": 26
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2061,
|
|
2099
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 58,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 60,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"alternate": {
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "BinaryExpression",
|
|
"operator": "===",
|
|
"left": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "format",
|
|
"range": [
|
|
2108,
|
|
2114
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 60,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 60,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "substring",
|
|
"range": [
|
|
2115,
|
|
2124
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 60,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 60,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2108,
|
|
2124
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 60,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 60,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
2125,
|
|
2126
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 60,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 60,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": 2,
|
|
"raw": "2",
|
|
"range": [
|
|
2128,
|
|
2129
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 60,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 60,
|
|
"column": 39
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2108,
|
|
2130
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 60,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 60,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": "Y",
|
|
"raw": "'Y'",
|
|
"range": [
|
|
2135,
|
|
2138
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 60,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 60,
|
|
"column": 48
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2108,
|
|
2138
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 60,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 60,
|
|
"column": 48
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "yy",
|
|
"range": [
|
|
2153,
|
|
2155
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 61,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 61,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
2158,
|
|
2163
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 61,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 61,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
2164,
|
|
2165
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 61,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 61,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2158,
|
|
2166
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 61,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 61,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2153,
|
|
2166
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 61,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 61,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2153,
|
|
2167
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 61,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 61,
|
|
"column": 26
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2139,
|
|
2177
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 60,
|
|
"column": 49
|
|
},
|
|
"end": {
|
|
"line": 62,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"alternate": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "yy",
|
|
"range": [
|
|
2197,
|
|
2199
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
2202,
|
|
2207
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Literal",
|
|
"value": 2,
|
|
"raw": "2",
|
|
"range": [
|
|
2208,
|
|
2209
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2202,
|
|
2210
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2197,
|
|
2210
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2197,
|
|
2211
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 26
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2183,
|
|
2221
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 62,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 64,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2105,
|
|
2221
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 60,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 64,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2027,
|
|
2221
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 58,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 64,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "BinaryExpression",
|
|
"operator": "<=",
|
|
"left": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "parseInt",
|
|
"range": [
|
|
2233,
|
|
2241
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 65,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "yy",
|
|
"range": [
|
|
2242,
|
|
2244
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 65,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": 10,
|
|
"raw": "10",
|
|
"range": [
|
|
2246,
|
|
2248
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 65,
|
|
"column": 26
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2233,
|
|
2249
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 65,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": 50,
|
|
"raw": "50",
|
|
"range": [
|
|
2253,
|
|
2255
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 65,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2233,
|
|
2255
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 65,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "yy",
|
|
"range": [
|
|
2270,
|
|
2272
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 66,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 66,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "BinaryExpression",
|
|
"operator": "+",
|
|
"left": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "parseInt",
|
|
"range": [
|
|
2276,
|
|
2284
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 66,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 66,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "yy",
|
|
"range": [
|
|
2285,
|
|
2287
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 66,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 66,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": 10,
|
|
"raw": "10",
|
|
"range": [
|
|
2289,
|
|
2291
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 66,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 66,
|
|
"column": 33
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2276,
|
|
2292
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 66,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 66,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": 2000,
|
|
"raw": "2000",
|
|
"range": [
|
|
2295,
|
|
2299
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 66,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 66,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2276,
|
|
2299
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 66,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 66,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "toString",
|
|
"range": [
|
|
2301,
|
|
2309
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 66,
|
|
"column": 43
|
|
},
|
|
"end": {
|
|
"line": 66,
|
|
"column": 51
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2275,
|
|
2309
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 66,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 66,
|
|
"column": 51
|
|
}
|
|
}
|
|
},
|
|
"arguments": [],
|
|
"range": [
|
|
2275,
|
|
2311
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 66,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 66,
|
|
"column": 53
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2270,
|
|
2311
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 66,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 66,
|
|
"column": 53
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2270,
|
|
2312
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 66,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 66,
|
|
"column": 54
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2256,
|
|
2322
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 67,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"alternate": null,
|
|
"range": [
|
|
2230,
|
|
2322
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 67,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "BinaryExpression",
|
|
"operator": "<=",
|
|
"left": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "parseInt",
|
|
"range": [
|
|
2334,
|
|
2342
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 68,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 68,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "yy",
|
|
"range": [
|
|
2343,
|
|
2345
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 68,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 68,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": 10,
|
|
"raw": "10",
|
|
"range": [
|
|
2347,
|
|
2349
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 68,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 68,
|
|
"column": 26
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2334,
|
|
2350
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 68,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 68,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": 99,
|
|
"raw": "99",
|
|
"range": [
|
|
2354,
|
|
2356
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 68,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 68,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2334,
|
|
2356
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 68,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 68,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "yy",
|
|
"range": [
|
|
2371,
|
|
2373
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 69,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 69,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "BinaryExpression",
|
|
"operator": "+",
|
|
"left": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "parseInt",
|
|
"range": [
|
|
2377,
|
|
2385
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 69,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 69,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "yy",
|
|
"range": [
|
|
2386,
|
|
2388
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 69,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 69,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": 10,
|
|
"raw": "10",
|
|
"range": [
|
|
2390,
|
|
2392
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 69,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 69,
|
|
"column": 33
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2377,
|
|
2393
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 69,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 69,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": 1900,
|
|
"raw": "1900",
|
|
"range": [
|
|
2396,
|
|
2400
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 69,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 69,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2377,
|
|
2400
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 69,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 69,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "toString",
|
|
"range": [
|
|
2402,
|
|
2410
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 69,
|
|
"column": 43
|
|
},
|
|
"end": {
|
|
"line": 69,
|
|
"column": 51
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2376,
|
|
2410
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 69,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 69,
|
|
"column": 51
|
|
}
|
|
}
|
|
},
|
|
"arguments": [],
|
|
"range": [
|
|
2376,
|
|
2412
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 69,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 69,
|
|
"column": 53
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2371,
|
|
2412
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 69,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 69,
|
|
"column": 53
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2371,
|
|
2413
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 69,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 69,
|
|
"column": 54
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2357,
|
|
2423
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 68,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 70,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"alternate": null,
|
|
"range": [
|
|
2331,
|
|
2423
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 68,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 70,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"id": {
|
|
"type": "Identifier",
|
|
"name": "dt",
|
|
"range": [
|
|
2436,
|
|
2438
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 71,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 71,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
"init": {
|
|
"type": "NewExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "Date",
|
|
"range": [
|
|
2445,
|
|
2449
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 71,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 71,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "parseInt",
|
|
"range": [
|
|
2463,
|
|
2471
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 72,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 72,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "yy",
|
|
"range": [
|
|
2472,
|
|
2474
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 72,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 72,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": 10,
|
|
"raw": "10",
|
|
"range": [
|
|
2476,
|
|
2478
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 72,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 72,
|
|
"column": 27
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2463,
|
|
2479
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 72,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 72,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "BinaryExpression",
|
|
"operator": "-",
|
|
"left": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "parseInt",
|
|
"range": [
|
|
2481,
|
|
2489
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 72,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 72,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "mm",
|
|
"range": [
|
|
2490,
|
|
2492
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 72,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 72,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": 10,
|
|
"raw": "10",
|
|
"range": [
|
|
2494,
|
|
2496
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 72,
|
|
"column": 43
|
|
},
|
|
"end": {
|
|
"line": 72,
|
|
"column": 45
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2481,
|
|
2497
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 72,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 72,
|
|
"column": 46
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
2498,
|
|
2499
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 72,
|
|
"column": 47
|
|
},
|
|
"end": {
|
|
"line": 72,
|
|
"column": 48
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2481,
|
|
2499
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 72,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 72,
|
|
"column": 48
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "parseInt",
|
|
"range": [
|
|
2501,
|
|
2509
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 72,
|
|
"column": 50
|
|
},
|
|
"end": {
|
|
"line": 72,
|
|
"column": 58
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "dd",
|
|
"range": [
|
|
2510,
|
|
2512
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 72,
|
|
"column": 59
|
|
},
|
|
"end": {
|
|
"line": 72,
|
|
"column": 61
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": 10,
|
|
"raw": "10",
|
|
"range": [
|
|
2514,
|
|
2516
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 72,
|
|
"column": 63
|
|
},
|
|
"end": {
|
|
"line": 72,
|
|
"column": 65
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2501,
|
|
2517
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 72,
|
|
"column": 50
|
|
},
|
|
"end": {
|
|
"line": 72,
|
|
"column": 66
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": 0,
|
|
"raw": "0",
|
|
"range": [
|
|
2531,
|
|
2532
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 73,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 73,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": 0,
|
|
"raw": "0",
|
|
"range": [
|
|
2534,
|
|
2535
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 73,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 73,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": 0,
|
|
"raw": "0",
|
|
"range": [
|
|
2537,
|
|
2538
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 73,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 73,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": 0,
|
|
"raw": "0",
|
|
"range": [
|
|
2540,
|
|
2541
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 73,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 73,
|
|
"column": 22
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2441,
|
|
2542
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 71,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 73,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2436,
|
|
2542
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 71,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 73,
|
|
"column": 23
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"kind": "let",
|
|
"range": [
|
|
2432,
|
|
2543
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 71,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 73,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "BinaryExpression",
|
|
"operator": "!=",
|
|
"left": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "parseInt",
|
|
"range": [
|
|
2555,
|
|
2563
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 74,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 74,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "dd",
|
|
"range": [
|
|
2564,
|
|
2566
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 74,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 74,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": 10,
|
|
"raw": "10",
|
|
"range": [
|
|
2568,
|
|
2570
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 74,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 74,
|
|
"column": 26
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2555,
|
|
2571
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 74,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 74,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "dt",
|
|
"range": [
|
|
2575,
|
|
2577
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 74,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 74,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "getDate",
|
|
"range": [
|
|
2578,
|
|
2585
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 74,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 74,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2575,
|
|
2585
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 74,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 74,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
"arguments": [],
|
|
"range": [
|
|
2575,
|
|
2587
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 74,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 74,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2555,
|
|
2587
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 74,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 74,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"argument": {
|
|
"type": "Literal",
|
|
"value": false,
|
|
"raw": "false",
|
|
"range": [
|
|
2609,
|
|
2614
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 75,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 75,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2602,
|
|
2615
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 75,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 75,
|
|
"column": 25
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2588,
|
|
2625
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 74,
|
|
"column": 44
|
|
},
|
|
"end": {
|
|
"line": 76,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"alternate": null,
|
|
"range": [
|
|
2552,
|
|
2625
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 74,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 76,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "BinaryExpression",
|
|
"operator": "!=",
|
|
"left": {
|
|
"type": "BinaryExpression",
|
|
"operator": "-",
|
|
"left": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "parseInt",
|
|
"range": [
|
|
2637,
|
|
2645
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "mm",
|
|
"range": [
|
|
2646,
|
|
2648
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": 10,
|
|
"raw": "10",
|
|
"range": [
|
|
2650,
|
|
2652
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 26
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2637,
|
|
2653
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
2654,
|
|
2655
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2637,
|
|
2655
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "dt",
|
|
"range": [
|
|
2659,
|
|
2661
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "getMonth",
|
|
"range": [
|
|
2662,
|
|
2670
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 44
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2659,
|
|
2670
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 44
|
|
}
|
|
}
|
|
},
|
|
"arguments": [],
|
|
"range": [
|
|
2659,
|
|
2672
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 46
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2637,
|
|
2672
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 46
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"argument": {
|
|
"type": "Literal",
|
|
"value": false,
|
|
"raw": "false",
|
|
"range": [
|
|
2694,
|
|
2699
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 78,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2687,
|
|
2700
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 78,
|
|
"column": 25
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2673,
|
|
2710
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 47
|
|
},
|
|
"end": {
|
|
"line": 79,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"alternate": null,
|
|
"range": [
|
|
2634,
|
|
2710
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 79,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ReturnStatement",
|
|
"argument": {
|
|
"type": "Literal",
|
|
"value": true,
|
|
"raw": "true",
|
|
"range": [
|
|
2726,
|
|
2730
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 80,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 80,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2719,
|
|
2731
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 80,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 80,
|
|
"column": 20
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
72,
|
|
2737
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 81,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"generator": false,
|
|
"expression": false,
|
|
"range": [
|
|
55,
|
|
2737
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 81,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"kind": "init",
|
|
"method": true,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"range": [
|
|
48,
|
|
2737
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 81,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Property",
|
|
"key": {
|
|
"type": "Identifier",
|
|
"name": "format",
|
|
"range": [
|
|
2743,
|
|
2749
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 82,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 82,
|
|
"column": 10
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"type": "FunctionExpression",
|
|
"id": null,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "dateStr",
|
|
"range": [
|
|
2750,
|
|
2757
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 82,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 82,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"name": "formatStr",
|
|
"range": [
|
|
2759,
|
|
2768
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 82,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 82,
|
|
"column": 29
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "UnaryExpression",
|
|
"operator": "!",
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"name": "formatStr",
|
|
"range": [
|
|
2784,
|
|
2793
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 83,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 83,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"prefix": true,
|
|
"range": [
|
|
2783,
|
|
2793
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 83,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 83,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "formatStr",
|
|
"range": [
|
|
2808,
|
|
2817
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 84,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 84,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": "DMY",
|
|
"raw": "'DMY'",
|
|
"range": [
|
|
2820,
|
|
2825
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 84,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 84,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2808,
|
|
2825
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 84,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 84,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2808,
|
|
2826
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 84,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 84,
|
|
"column": 30
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2794,
|
|
2836
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 83,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 85,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"alternate": null,
|
|
"range": [
|
|
2780,
|
|
2836
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 83,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 85,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "LogicalExpression",
|
|
"operator": "||",
|
|
"left": {
|
|
"type": "UnaryExpression",
|
|
"operator": "!",
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"name": "dateStr",
|
|
"range": [
|
|
2849,
|
|
2856
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 86,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 86,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
"prefix": true,
|
|
"range": [
|
|
2848,
|
|
2856
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 86,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 86,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "BinaryExpression",
|
|
"operator": "===",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "dateStr",
|
|
"range": [
|
|
2860,
|
|
2867
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 86,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 86,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": "",
|
|
"raw": "''",
|
|
"range": [
|
|
2872,
|
|
2874
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 86,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 86,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2860,
|
|
2874
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 86,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 86,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2848,
|
|
2874
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 86,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 86,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"argument": {
|
|
"type": "NewExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "Date",
|
|
"range": [
|
|
2900,
|
|
2904
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 87,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 87,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Literal",
|
|
"value": 1001,
|
|
"raw": "1001",
|
|
"range": [
|
|
2905,
|
|
2909
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 87,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 87,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": 0,
|
|
"raw": "0",
|
|
"range": [
|
|
2911,
|
|
2912
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 87,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 87,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
2914,
|
|
2915
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 87,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 87,
|
|
"column": 38
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2896,
|
|
2916
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 87,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 87,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2889,
|
|
2917
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 87,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 87,
|
|
"column": 40
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2875,
|
|
2927
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 86,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 88,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"alternate": null,
|
|
"range": [
|
|
2845,
|
|
2927
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 86,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 88,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"id": {
|
|
"type": "Identifier",
|
|
"name": "oDate",
|
|
"range": [
|
|
2940,
|
|
2945
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 89,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 89,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
"init": null,
|
|
"range": [
|
|
2940,
|
|
2945
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 89,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 89,
|
|
"column": 17
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"kind": "let",
|
|
"range": [
|
|
2936,
|
|
2946
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 89,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 89,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"id": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
2959,
|
|
2964
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 90,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 90,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
"init": null,
|
|
"range": [
|
|
2959,
|
|
2964
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 90,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 90,
|
|
"column": 17
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"kind": "let",
|
|
"range": [
|
|
2955,
|
|
2965
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 90,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 90,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "SwitchStatement",
|
|
"discriminant": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "formatStr",
|
|
"range": [
|
|
2982,
|
|
2991
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 92,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 92,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "toUpperCase",
|
|
"range": [
|
|
2992,
|
|
3003
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 92,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 92,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
2982,
|
|
3003
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 92,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 92,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
"arguments": [],
|
|
"range": [
|
|
2982,
|
|
3005
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 92,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 92,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
"cases": [
|
|
{
|
|
"type": "SwitchCase",
|
|
"test": {
|
|
"type": "Literal",
|
|
"value": "DDMMMYYYY",
|
|
"raw": "'DDMMMYYYY'",
|
|
"range": [
|
|
3025,
|
|
3036
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 93,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 93,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
"consequent": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
3054,
|
|
3059
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 94,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 94,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "dateStr",
|
|
"range": [
|
|
3062,
|
|
3069
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 94,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 94,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "replace",
|
|
"range": [
|
|
3070,
|
|
3077
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 94,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 94,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3062,
|
|
3077
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 94,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 94,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Literal",
|
|
"value": {},
|
|
"raw": "/[- \\/.]/g",
|
|
"regex": {
|
|
"pattern": "[- \\/.]",
|
|
"flags": "g"
|
|
},
|
|
"range": [
|
|
3078,
|
|
3088
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 94,
|
|
"column": 40
|
|
},
|
|
"end": {
|
|
"line": 94,
|
|
"column": 50
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": " ",
|
|
"raw": "' '",
|
|
"range": [
|
|
3089,
|
|
3092
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 94,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 94,
|
|
"column": 54
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
3062,
|
|
3093
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 94,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 94,
|
|
"column": 55
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "split",
|
|
"range": [
|
|
3094,
|
|
3099
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 94,
|
|
"column": 56
|
|
},
|
|
"end": {
|
|
"line": 94,
|
|
"column": 61
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3062,
|
|
3099
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 94,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 94,
|
|
"column": 61
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Literal",
|
|
"value": " ",
|
|
"raw": "' '",
|
|
"range": [
|
|
3100,
|
|
3103
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 94,
|
|
"column": 62
|
|
},
|
|
"end": {
|
|
"line": 94,
|
|
"column": 65
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
3062,
|
|
3104
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 94,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 94,
|
|
"column": 66
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3054,
|
|
3104
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 94,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 94,
|
|
"column": 66
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3054,
|
|
3105
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 94,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 94,
|
|
"column": 67
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "oDate",
|
|
"range": [
|
|
3122,
|
|
3127
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 95,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 95,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "NewExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "Date",
|
|
"range": [
|
|
3134,
|
|
3138
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 95,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 95,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "y2kDate",
|
|
"range": [
|
|
3139,
|
|
3146
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 95,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 95,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
3147,
|
|
3152
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 95,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 95,
|
|
"column": 46
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Literal",
|
|
"value": 2,
|
|
"raw": "2",
|
|
"range": [
|
|
3153,
|
|
3154
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 95,
|
|
"column": 47
|
|
},
|
|
"end": {
|
|
"line": 95,
|
|
"column": 48
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3147,
|
|
3155
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 95,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 95,
|
|
"column": 49
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
3139,
|
|
3156
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 95,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 95,
|
|
"column": 50
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "BinaryExpression",
|
|
"operator": "-",
|
|
"left": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "mmm2mm",
|
|
"range": [
|
|
3157,
|
|
3163
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 95,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 95,
|
|
"column": 57
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
3164,
|
|
3169
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 95,
|
|
"column": 58
|
|
},
|
|
"end": {
|
|
"line": 95,
|
|
"column": 63
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
3170,
|
|
3171
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 95,
|
|
"column": 64
|
|
},
|
|
"end": {
|
|
"line": 95,
|
|
"column": 65
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3164,
|
|
3172
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 95,
|
|
"column": 58
|
|
},
|
|
"end": {
|
|
"line": 95,
|
|
"column": 66
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
3157,
|
|
3173
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 95,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 95,
|
|
"column": 67
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
3174,
|
|
3175
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 95,
|
|
"column": 68
|
|
},
|
|
"end": {
|
|
"line": 95,
|
|
"column": 69
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3157,
|
|
3175
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 95,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 95,
|
|
"column": 69
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
3176,
|
|
3181
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 95,
|
|
"column": 70
|
|
},
|
|
"end": {
|
|
"line": 95,
|
|
"column": 75
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Literal",
|
|
"value": 0,
|
|
"raw": "0",
|
|
"range": [
|
|
3182,
|
|
3183
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 95,
|
|
"column": 76
|
|
},
|
|
"end": {
|
|
"line": 95,
|
|
"column": 77
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3176,
|
|
3184
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 95,
|
|
"column": 70
|
|
},
|
|
"end": {
|
|
"line": 95,
|
|
"column": 78
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
3130,
|
|
3185
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 95,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 95,
|
|
"column": 79
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3122,
|
|
3185
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 95,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 95,
|
|
"column": 79
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3122,
|
|
3186
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 95,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 95,
|
|
"column": 80
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "BreakStatement",
|
|
"label": null,
|
|
"range": [
|
|
3199,
|
|
3205
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 96,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 96,
|
|
"column": 18
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
3020,
|
|
3205
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 93,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 96,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "SwitchCase",
|
|
"test": {
|
|
"type": "Literal",
|
|
"value": "DMY",
|
|
"raw": "'DMY'",
|
|
"range": [
|
|
3223,
|
|
3228
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 97,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 97,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
"consequent": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
3288,
|
|
3293
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 99,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 99,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "dateStr",
|
|
"range": [
|
|
3296,
|
|
3303
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 99,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 99,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "replace",
|
|
"range": [
|
|
3304,
|
|
3311
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 99,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 99,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3296,
|
|
3311
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 99,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 99,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Literal",
|
|
"value": {},
|
|
"raw": "/^(0?[1-9]|[12][0-9]|3[01])([- \\/.])(0?[1-9]|1[012])([- \\/.])((\\d\\d)?\\d\\d)$/",
|
|
"regex": {
|
|
"pattern": "^(0?[1-9]|[12][0-9]|3[01])([- \\/.])(0?[1-9]|1[012])([- \\/.])((\\d\\d)?\\d\\d)$",
|
|
"flags": ""
|
|
},
|
|
"range": [
|
|
3333,
|
|
3409
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 100,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 100,
|
|
"column": 96
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "$1 $3 $5",
|
|
"raw": "'$1 $3 $5'",
|
|
"range": [
|
|
3410,
|
|
3420
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 100,
|
|
"column": 97
|
|
},
|
|
"end": {
|
|
"line": 100,
|
|
"column": 107
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
3296,
|
|
3421
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 99,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 100,
|
|
"column": 108
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "split",
|
|
"range": [
|
|
3422,
|
|
3427
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 100,
|
|
"column": 109
|
|
},
|
|
"end": {
|
|
"line": 100,
|
|
"column": 114
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3296,
|
|
3427
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 99,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 100,
|
|
"column": 114
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Literal",
|
|
"value": " ",
|
|
"raw": "' '",
|
|
"range": [
|
|
3428,
|
|
3431
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 100,
|
|
"column": 115
|
|
},
|
|
"end": {
|
|
"line": 100,
|
|
"column": 118
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
3296,
|
|
3432
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 99,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 100,
|
|
"column": 119
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3288,
|
|
3432
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 99,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 100,
|
|
"column": 119
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3288,
|
|
3433
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 99,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 100,
|
|
"column": 120
|
|
}
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "Block",
|
|
"value": " jshint ignore:start ",
|
|
"range": [
|
|
3246,
|
|
3271
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 98,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 98,
|
|
"column": 41
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "oDate",
|
|
"range": [
|
|
3450,
|
|
3455
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "NewExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "Date",
|
|
"range": [
|
|
3462,
|
|
3466
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "y2kDate",
|
|
"range": [
|
|
3467,
|
|
3474
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
3475,
|
|
3480
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 46
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Literal",
|
|
"value": 2,
|
|
"raw": "2",
|
|
"range": [
|
|
3481,
|
|
3482
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 47
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 48
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3475,
|
|
3483
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 49
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
3467,
|
|
3484
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 50
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "BinaryExpression",
|
|
"operator": "-",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
3485,
|
|
3490
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 56
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
3491,
|
|
3492
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 57
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 58
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3485,
|
|
3493
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 59
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
3494,
|
|
3495
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 60
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 61
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3485,
|
|
3495
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 61
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
3496,
|
|
3501
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 62
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 67
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Literal",
|
|
"value": 0,
|
|
"raw": "0",
|
|
"range": [
|
|
3502,
|
|
3503
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 68
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 69
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3496,
|
|
3504
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 62
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 70
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
3458,
|
|
3505
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 71
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3450,
|
|
3505
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 71
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3450,
|
|
3506
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 72
|
|
}
|
|
},
|
|
"trailingComments": [
|
|
{
|
|
"type": "Block",
|
|
"value": " jshint ignore:end ",
|
|
"range": [
|
|
3523,
|
|
3546
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 102,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 102,
|
|
"column": 39
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "BreakStatement",
|
|
"label": null,
|
|
"range": [
|
|
3559,
|
|
3565
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 103,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 103,
|
|
"column": 18
|
|
}
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "Block",
|
|
"value": " jshint ignore:end ",
|
|
"range": [
|
|
3523,
|
|
3546
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 102,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 102,
|
|
"column": 39
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
3218,
|
|
3565
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 97,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 103,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "SwitchCase",
|
|
"test": {
|
|
"type": "Literal",
|
|
"value": "MDY",
|
|
"raw": "'MDY'",
|
|
"range": [
|
|
3583,
|
|
3588
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 104,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 104,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
"consequent": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
3648,
|
|
3653
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 106,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 106,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "dateStr",
|
|
"range": [
|
|
3656,
|
|
3663
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 106,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 106,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "replace",
|
|
"range": [
|
|
3664,
|
|
3671
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 106,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 106,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3656,
|
|
3671
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 106,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 106,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Literal",
|
|
"value": {},
|
|
"raw": "/^(0?[1-9]|1[012])([- \\/.])(0?[1-9]|[12][0-9]|3[01])([- \\/.])((\\d\\d)?\\d\\d)$/",
|
|
"regex": {
|
|
"pattern": "^(0?[1-9]|1[012])([- \\/.])(0?[1-9]|[12][0-9]|3[01])([- \\/.])((\\d\\d)?\\d\\d)$",
|
|
"flags": ""
|
|
},
|
|
"range": [
|
|
3693,
|
|
3769
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 107,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 107,
|
|
"column": 96
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "$1 $3 $5",
|
|
"raw": "'$1 $3 $5'",
|
|
"range": [
|
|
3770,
|
|
3780
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 107,
|
|
"column": 97
|
|
},
|
|
"end": {
|
|
"line": 107,
|
|
"column": 107
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
3656,
|
|
3781
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 106,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 107,
|
|
"column": 108
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "split",
|
|
"range": [
|
|
3782,
|
|
3787
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 107,
|
|
"column": 109
|
|
},
|
|
"end": {
|
|
"line": 107,
|
|
"column": 114
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3656,
|
|
3787
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 106,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 107,
|
|
"column": 114
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Literal",
|
|
"value": " ",
|
|
"raw": "' '",
|
|
"range": [
|
|
3788,
|
|
3791
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 107,
|
|
"column": 115
|
|
},
|
|
"end": {
|
|
"line": 107,
|
|
"column": 118
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
3656,
|
|
3792
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 106,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 107,
|
|
"column": 119
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3648,
|
|
3792
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 106,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 107,
|
|
"column": 119
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3648,
|
|
3793
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 106,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 107,
|
|
"column": 120
|
|
}
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "Block",
|
|
"value": " jshint ignore:start ",
|
|
"range": [
|
|
3606,
|
|
3631
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 105,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 105,
|
|
"column": 41
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "oDate",
|
|
"range": [
|
|
3810,
|
|
3815
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "NewExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "Date",
|
|
"range": [
|
|
3822,
|
|
3826
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "y2kDate",
|
|
"range": [
|
|
3827,
|
|
3834
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
3835,
|
|
3840
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 46
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Literal",
|
|
"value": 2,
|
|
"raw": "2",
|
|
"range": [
|
|
3841,
|
|
3842
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 47
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 48
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3835,
|
|
3843
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 49
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
3827,
|
|
3844
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 50
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "BinaryExpression",
|
|
"operator": "-",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
3845,
|
|
3850
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 56
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Literal",
|
|
"value": 0,
|
|
"raw": "0",
|
|
"range": [
|
|
3851,
|
|
3852
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 57
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 58
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3845,
|
|
3853
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 59
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
3854,
|
|
3855
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 60
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 61
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3845,
|
|
3855
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 61
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
3856,
|
|
3861
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 62
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 67
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
3862,
|
|
3863
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 68
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 69
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3856,
|
|
3864
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 62
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 70
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
3818,
|
|
3865
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 71
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3810,
|
|
3865
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 71
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3810,
|
|
3866
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 72
|
|
}
|
|
},
|
|
"trailingComments": [
|
|
{
|
|
"type": "Block",
|
|
"value": " jshint ignore:end ",
|
|
"range": [
|
|
3883,
|
|
3906
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 109,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 109,
|
|
"column": 39
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "BreakStatement",
|
|
"label": null,
|
|
"range": [
|
|
3919,
|
|
3925
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 110,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 110,
|
|
"column": 18
|
|
}
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "Block",
|
|
"value": " jshint ignore:end ",
|
|
"range": [
|
|
3883,
|
|
3906
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 109,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 109,
|
|
"column": 39
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
3578,
|
|
3925
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 104,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 110,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "SwitchCase",
|
|
"test": {
|
|
"type": "Literal",
|
|
"value": "YMD",
|
|
"raw": "'YMD'",
|
|
"range": [
|
|
3943,
|
|
3948
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 111,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 111,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
"consequent": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
4008,
|
|
4013
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 113,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 113,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "dateStr",
|
|
"range": [
|
|
4016,
|
|
4023
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 113,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 113,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "replace",
|
|
"range": [
|
|
4024,
|
|
4031
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 113,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 113,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4016,
|
|
4031
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 113,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 113,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Literal",
|
|
"value": {},
|
|
"raw": "/^((\\d\\d)?\\d\\d)([- \\/.])(0?[1-9]|1[012])([- \\/.])(0?[1-9]|[12][0-9]|3[01])$/",
|
|
"regex": {
|
|
"pattern": "^((\\d\\d)?\\d\\d)([- \\/.])(0?[1-9]|1[012])([- \\/.])(0?[1-9]|[12][0-9]|3[01])$",
|
|
"flags": ""
|
|
},
|
|
"range": [
|
|
4032,
|
|
4108
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 113,
|
|
"column": 40
|
|
},
|
|
"end": {
|
|
"line": 113,
|
|
"column": 116
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "$1 $4 $6",
|
|
"raw": "'$1 $4 $6'",
|
|
"range": [
|
|
4109,
|
|
4119
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 113,
|
|
"column": 117
|
|
},
|
|
"end": {
|
|
"line": 113,
|
|
"column": 127
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
4016,
|
|
4120
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 113,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 113,
|
|
"column": 128
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "split",
|
|
"range": [
|
|
4121,
|
|
4126
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 113,
|
|
"column": 129
|
|
},
|
|
"end": {
|
|
"line": 113,
|
|
"column": 134
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4016,
|
|
4126
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 113,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 113,
|
|
"column": 134
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Literal",
|
|
"value": " ",
|
|
"raw": "' '",
|
|
"range": [
|
|
4127,
|
|
4130
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 113,
|
|
"column": 135
|
|
},
|
|
"end": {
|
|
"line": 113,
|
|
"column": 138
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
4016,
|
|
4131
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 113,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 113,
|
|
"column": 139
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4008,
|
|
4131
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 113,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 113,
|
|
"column": 139
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4008,
|
|
4132
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 113,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 113,
|
|
"column": 140
|
|
}
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "Block",
|
|
"value": " jshint ignore:start ",
|
|
"range": [
|
|
3966,
|
|
3991
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 112,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 112,
|
|
"column": 41
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "oDate",
|
|
"range": [
|
|
4149,
|
|
4154
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 114,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 114,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "NewExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "Date",
|
|
"range": [
|
|
4161,
|
|
4165
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 114,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 114,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "y2kDate",
|
|
"range": [
|
|
4166,
|
|
4173
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 114,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 114,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
4174,
|
|
4179
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 114,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 114,
|
|
"column": 46
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Literal",
|
|
"value": 0,
|
|
"raw": "0",
|
|
"range": [
|
|
4180,
|
|
4181
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 114,
|
|
"column": 47
|
|
},
|
|
"end": {
|
|
"line": 114,
|
|
"column": 48
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4174,
|
|
4182
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 114,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 114,
|
|
"column": 49
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
4166,
|
|
4183
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 114,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 114,
|
|
"column": 50
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "BinaryExpression",
|
|
"operator": "-",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
4184,
|
|
4189
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 114,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 114,
|
|
"column": 56
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
4190,
|
|
4191
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 114,
|
|
"column": 57
|
|
},
|
|
"end": {
|
|
"line": 114,
|
|
"column": 58
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4184,
|
|
4192
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 114,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 114,
|
|
"column": 59
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
4193,
|
|
4194
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 114,
|
|
"column": 60
|
|
},
|
|
"end": {
|
|
"line": 114,
|
|
"column": 61
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4184,
|
|
4194
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 114,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 114,
|
|
"column": 61
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
4195,
|
|
4200
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 114,
|
|
"column": 62
|
|
},
|
|
"end": {
|
|
"line": 114,
|
|
"column": 67
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Literal",
|
|
"value": 2,
|
|
"raw": "2",
|
|
"range": [
|
|
4201,
|
|
4202
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 114,
|
|
"column": 68
|
|
},
|
|
"end": {
|
|
"line": 114,
|
|
"column": 69
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4195,
|
|
4203
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 114,
|
|
"column": 62
|
|
},
|
|
"end": {
|
|
"line": 114,
|
|
"column": 70
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
4157,
|
|
4204
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 114,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 114,
|
|
"column": 71
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4149,
|
|
4204
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 114,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 114,
|
|
"column": 71
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4149,
|
|
4205
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 114,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 114,
|
|
"column": 72
|
|
}
|
|
},
|
|
"trailingComments": [
|
|
{
|
|
"type": "Block",
|
|
"value": " jshint ignore:end ",
|
|
"range": [
|
|
4222,
|
|
4245
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 115,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 115,
|
|
"column": 39
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "BreakStatement",
|
|
"label": null,
|
|
"range": [
|
|
4258,
|
|
4264
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 116,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 116,
|
|
"column": 18
|
|
}
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "Block",
|
|
"value": " jshint ignore:end ",
|
|
"range": [
|
|
4222,
|
|
4245
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 115,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 115,
|
|
"column": 39
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
3938,
|
|
4264
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 111,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 116,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "SwitchCase",
|
|
"test": null,
|
|
"consequent": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
4376,
|
|
4381
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 119,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 119,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "dateStr",
|
|
"range": [
|
|
4384,
|
|
4391
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 119,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 119,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "replace",
|
|
"range": [
|
|
4392,
|
|
4399
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 119,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 119,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4384,
|
|
4399
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 119,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 119,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Literal",
|
|
"value": {},
|
|
"raw": "/^(0?[1-9]|[12][0-9]|3[01])([- \\/.])(0?[1-9]|1[012])([- \\/.])((\\d\\d)?\\d\\d)$/",
|
|
"regex": {
|
|
"pattern": "^(0?[1-9]|[12][0-9]|3[01])([- \\/.])(0?[1-9]|1[012])([- \\/.])((\\d\\d)?\\d\\d)$",
|
|
"flags": ""
|
|
},
|
|
"range": [
|
|
4400,
|
|
4476
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 119,
|
|
"column": 40
|
|
},
|
|
"end": {
|
|
"line": 119,
|
|
"column": 116
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "$1 $3 $5",
|
|
"raw": "'$1 $3 $5'",
|
|
"range": [
|
|
4477,
|
|
4487
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 119,
|
|
"column": 117
|
|
},
|
|
"end": {
|
|
"line": 119,
|
|
"column": 127
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
4384,
|
|
4488
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 119,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 119,
|
|
"column": 128
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "split",
|
|
"range": [
|
|
4489,
|
|
4494
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 119,
|
|
"column": 129
|
|
},
|
|
"end": {
|
|
"line": 119,
|
|
"column": 134
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4384,
|
|
4494
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 119,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 119,
|
|
"column": 134
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Literal",
|
|
"value": " ",
|
|
"raw": "' '",
|
|
"range": [
|
|
4495,
|
|
4498
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 119,
|
|
"column": 135
|
|
},
|
|
"end": {
|
|
"line": 119,
|
|
"column": 138
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
4384,
|
|
4499
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 119,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 119,
|
|
"column": 139
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4376,
|
|
4499
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 119,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 119,
|
|
"column": 139
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4376,
|
|
4500
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 119,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 119,
|
|
"column": 140
|
|
}
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "Line",
|
|
"value": "in case format is not correct",
|
|
"range": [
|
|
4286,
|
|
4317
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 117,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 117,
|
|
"column": 52
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Block",
|
|
"value": " jshint ignore:start ",
|
|
"range": [
|
|
4334,
|
|
4359
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 118,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 118,
|
|
"column": 41
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "oDate",
|
|
"range": [
|
|
4517,
|
|
4522
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 120,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 120,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "NewExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "Date",
|
|
"range": [
|
|
4529,
|
|
4533
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 120,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 120,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "y2kDate",
|
|
"range": [
|
|
4534,
|
|
4541
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 120,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 120,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
4542,
|
|
4547
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 120,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 120,
|
|
"column": 46
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Literal",
|
|
"value": 2,
|
|
"raw": "2",
|
|
"range": [
|
|
4548,
|
|
4549
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 120,
|
|
"column": 47
|
|
},
|
|
"end": {
|
|
"line": 120,
|
|
"column": 48
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4542,
|
|
4550
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 120,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 120,
|
|
"column": 49
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
4534,
|
|
4551
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 120,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 120,
|
|
"column": 50
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "BinaryExpression",
|
|
"operator": "-",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
4552,
|
|
4557
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 120,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 120,
|
|
"column": 56
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
4558,
|
|
4559
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 120,
|
|
"column": 57
|
|
},
|
|
"end": {
|
|
"line": 120,
|
|
"column": 58
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4552,
|
|
4560
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 120,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 120,
|
|
"column": 59
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
4561,
|
|
4562
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 120,
|
|
"column": 60
|
|
},
|
|
"end": {
|
|
"line": 120,
|
|
"column": 61
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4552,
|
|
4562
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 120,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 120,
|
|
"column": 61
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "parts",
|
|
"range": [
|
|
4563,
|
|
4568
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 120,
|
|
"column": 62
|
|
},
|
|
"end": {
|
|
"line": 120,
|
|
"column": 67
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Literal",
|
|
"value": 0,
|
|
"raw": "0",
|
|
"range": [
|
|
4569,
|
|
4570
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 120,
|
|
"column": 68
|
|
},
|
|
"end": {
|
|
"line": 120,
|
|
"column": 69
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4563,
|
|
4571
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 120,
|
|
"column": 62
|
|
},
|
|
"end": {
|
|
"line": 120,
|
|
"column": 70
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
4525,
|
|
4572
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 120,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 120,
|
|
"column": 71
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4517,
|
|
4572
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 120,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 120,
|
|
"column": 71
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4517,
|
|
4573
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 120,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 120,
|
|
"column": 72
|
|
}
|
|
},
|
|
"trailingComments": [
|
|
{
|
|
"type": "Block",
|
|
"value": " jshint ignore:end ",
|
|
"range": [
|
|
4590,
|
|
4613
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 121,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 121,
|
|
"column": 39
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "BreakStatement",
|
|
"label": null,
|
|
"range": [
|
|
4626,
|
|
4632
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 122,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 122,
|
|
"column": 18
|
|
}
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "Block",
|
|
"value": " jshint ignore:end ",
|
|
"range": [
|
|
4590,
|
|
4613
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 121,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 121,
|
|
"column": 39
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
4277,
|
|
4632
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 117,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 122,
|
|
"column": 18
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2975,
|
|
4642
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 92,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 123,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ReturnStatement",
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"name": "oDate",
|
|
"range": [
|
|
4658,
|
|
4663
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 124,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 124,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4651,
|
|
4664
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 124,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 124,
|
|
"column": 21
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
2770,
|
|
4670
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 82,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 125,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"generator": false,
|
|
"expression": false,
|
|
"range": [
|
|
2749,
|
|
4670
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 82,
|
|
"column": 10
|
|
},
|
|
"end": {
|
|
"line": 125,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"kind": "init",
|
|
"method": true,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"range": [
|
|
2743,
|
|
4670
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 82,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 125,
|
|
"column": 5
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
42,
|
|
4672
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 5,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 126,
|
|
"column": 1
|
|
}
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "Block",
|
|
"value": "*\n * Date utilities\n ",
|
|
"range": [
|
|
0,
|
|
25
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": []
|
|
},
|
|
"range": [
|
|
27,
|
|
4673
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 5,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 126,
|
|
"column": 2
|
|
}
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "Block",
|
|
"value": "*\n * Date utilities\n ",
|
|
"range": [
|
|
0,
|
|
25
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "FunctionDeclaration",
|
|
"id": {
|
|
"type": "Identifier",
|
|
"name": "y2kDate",
|
|
"range": [
|
|
4684,
|
|
4691
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 128,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 128,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "yr",
|
|
"range": [
|
|
4692,
|
|
4694
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 128,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 128,
|
|
"column": 19
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "BinaryExpression",
|
|
"operator": "===",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "yr",
|
|
"range": [
|
|
4704,
|
|
4706
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 129,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 129,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Identifier",
|
|
"name": "undefined",
|
|
"range": [
|
|
4711,
|
|
4720
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 129,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 129,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4704,
|
|
4720
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 129,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 129,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"argument": {
|
|
"type": "Literal",
|
|
"value": 0,
|
|
"raw": "0",
|
|
"range": [
|
|
4738,
|
|
4739
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 130,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 130,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4731,
|
|
4740
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 130,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 130,
|
|
"column": 17
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
4721,
|
|
4746
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 129,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"alternate": null,
|
|
"range": [
|
|
4701,
|
|
4746
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 129,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "BinaryExpression",
|
|
"operator": ">",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "yr",
|
|
"range": [
|
|
4754,
|
|
4756
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 132,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 132,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "length",
|
|
"range": [
|
|
4757,
|
|
4763
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 132,
|
|
"column": 10
|
|
},
|
|
"end": {
|
|
"line": 132,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4754,
|
|
4763
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 132,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 132,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": 2,
|
|
"raw": "2",
|
|
"range": [
|
|
4764,
|
|
4765
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 132,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 132,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4754,
|
|
4765
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 132,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 132,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"name": "yr",
|
|
"range": [
|
|
4783,
|
|
4785
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 133,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 133,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4776,
|
|
4786
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 133,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 133,
|
|
"column": 18
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
4766,
|
|
4792
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 132,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 134,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"alternate": null,
|
|
"range": [
|
|
4751,
|
|
4792
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 132,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 134,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"id": {
|
|
"type": "Identifier",
|
|
"name": "y",
|
|
"range": [
|
|
4801,
|
|
4802
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 135,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 135,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"init": null,
|
|
"range": [
|
|
4801,
|
|
4802
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 135,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 135,
|
|
"column": 9
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"kind": "let",
|
|
"range": [
|
|
4797,
|
|
4803
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 135,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 135,
|
|
"column": 10
|
|
}
|
|
},
|
|
"trailingComments": [
|
|
{
|
|
"type": "Line",
|
|
"value": ">50 belong to 1900",
|
|
"range": [
|
|
4808,
|
|
4828
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 136,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 136,
|
|
"column": 24
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "LogicalExpression",
|
|
"operator": "&&",
|
|
"left": {
|
|
"type": "BinaryExpression",
|
|
"operator": "<=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "yr",
|
|
"range": [
|
|
4836,
|
|
4838
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 137,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 137,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": 99,
|
|
"raw": "99",
|
|
"range": [
|
|
4842,
|
|
4844
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 137,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 137,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4836,
|
|
4844
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 137,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 137,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "BinaryExpression",
|
|
"operator": ">",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "yr",
|
|
"range": [
|
|
4848,
|
|
4850
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 137,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 137,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": 50,
|
|
"raw": "50",
|
|
"range": [
|
|
4851,
|
|
4853
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 137,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 137,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4848,
|
|
4853
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 137,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 137,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4836,
|
|
4853
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 137,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 137,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "y",
|
|
"range": [
|
|
4864,
|
|
4865
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 138,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 138,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "BinaryExpression",
|
|
"operator": "+",
|
|
"left": {
|
|
"type": "Literal",
|
|
"value": "19",
|
|
"raw": "'19'",
|
|
"range": [
|
|
4868,
|
|
4872
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 138,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 138,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Identifier",
|
|
"name": "yr",
|
|
"range": [
|
|
4875,
|
|
4877
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 138,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 138,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4868,
|
|
4877
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 138,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 138,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4864,
|
|
4877
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 138,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 138,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4864,
|
|
4878
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 138,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 138,
|
|
"column": 22
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
4854,
|
|
4884
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 137,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 139,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"alternate": null,
|
|
"range": [
|
|
4833,
|
|
4884
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 137,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 139,
|
|
"column": 5
|
|
}
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "Line",
|
|
"value": ">50 belong to 1900",
|
|
"range": [
|
|
4808,
|
|
4828
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 136,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 136,
|
|
"column": 24
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "Line",
|
|
"value": "<50 belong to 2000",
|
|
"range": [
|
|
4889,
|
|
4909
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 140,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 140,
|
|
"column": 24
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "LogicalExpression",
|
|
"operator": "||",
|
|
"left": {
|
|
"type": "BinaryExpression",
|
|
"operator": "<",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "yr",
|
|
"range": [
|
|
4917,
|
|
4919
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 141,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 141,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": 50,
|
|
"raw": "50",
|
|
"range": [
|
|
4920,
|
|
4922
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 141,
|
|
"column": 10
|
|
},
|
|
"end": {
|
|
"line": 141,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4917,
|
|
4922
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 141,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 141,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "BinaryExpression",
|
|
"operator": "===",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "yr",
|
|
"range": [
|
|
4926,
|
|
4928
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 141,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 141,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": "00",
|
|
"raw": "'00'",
|
|
"range": [
|
|
4933,
|
|
4937
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 141,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 141,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4926,
|
|
4937
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 141,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 141,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4917,
|
|
4937
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 141,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 141,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "y",
|
|
"range": [
|
|
4948,
|
|
4949
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 142,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 142,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "BinaryExpression",
|
|
"operator": "+",
|
|
"left": {
|
|
"type": "Literal",
|
|
"value": "20",
|
|
"raw": "'20'",
|
|
"range": [
|
|
4952,
|
|
4956
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 142,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 142,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Identifier",
|
|
"name": "yr",
|
|
"range": [
|
|
4959,
|
|
4961
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 142,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 142,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4952,
|
|
4961
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 142,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 142,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4948,
|
|
4961
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 142,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 142,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4948,
|
|
4962
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 142,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 142,
|
|
"column": 22
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
4938,
|
|
4968
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 141,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 143,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"alternate": null,
|
|
"range": [
|
|
4914,
|
|
4968
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 141,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 143,
|
|
"column": 5
|
|
}
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "Line",
|
|
"value": "<50 belong to 2000",
|
|
"range": [
|
|
4889,
|
|
4909
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 140,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 140,
|
|
"column": 24
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ReturnStatement",
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"name": "y",
|
|
"range": [
|
|
4980,
|
|
4981
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 144,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 144,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
4973,
|
|
4982
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 144,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 144,
|
|
"column": 13
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
4695,
|
|
4984
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 128,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 145,
|
|
"column": 1
|
|
}
|
|
}
|
|
},
|
|
"generator": false,
|
|
"expression": false,
|
|
"range": [
|
|
4675,
|
|
4984
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 128,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 145,
|
|
"column": 1
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "FunctionDeclaration",
|
|
"id": {
|
|
"type": "Identifier",
|
|
"name": "mmm2mm",
|
|
"range": [
|
|
4995,
|
|
5001
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 147,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 147,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "mmm",
|
|
"range": [
|
|
5002,
|
|
5005
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 147,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 147,
|
|
"column": 19
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "BinaryExpression",
|
|
"operator": "===",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "mmm",
|
|
"range": [
|
|
5015,
|
|
5018
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 148,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 148,
|
|
"column": 10
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Identifier",
|
|
"name": "undefined",
|
|
"range": [
|
|
5023,
|
|
5032
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 148,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 148,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5015,
|
|
5032
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 148,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 148,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"argument": {
|
|
"type": "Literal",
|
|
"value": 0,
|
|
"raw": "0",
|
|
"range": [
|
|
5050,
|
|
5051
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 149,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 149,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5043,
|
|
5052
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 149,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 149,
|
|
"column": 17
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
5033,
|
|
5058
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 148,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 150,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"alternate": null,
|
|
"range": [
|
|
5012,
|
|
5058
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 148,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 150,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"id": {
|
|
"type": "Identifier",
|
|
"name": "mondigit",
|
|
"range": [
|
|
5067,
|
|
5075
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 151,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 151,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
"init": null,
|
|
"range": [
|
|
5067,
|
|
5075
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 151,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 151,
|
|
"column": 16
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"kind": "let",
|
|
"range": [
|
|
5063,
|
|
5076
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 151,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 151,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"id": {
|
|
"type": "Identifier",
|
|
"name": "MONTH_NAMES",
|
|
"range": [
|
|
5085,
|
|
5096
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 152,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 152,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
"init": {
|
|
"type": "ArrayExpression",
|
|
"elements": [
|
|
{
|
|
"type": "Literal",
|
|
"value": "january",
|
|
"raw": "'january'",
|
|
"range": [
|
|
5109,
|
|
5118
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 153,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 153,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "february",
|
|
"raw": "'february'",
|
|
"range": [
|
|
5119,
|
|
5129
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 153,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 153,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "march",
|
|
"raw": "'march'",
|
|
"range": [
|
|
5130,
|
|
5137
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 153,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 153,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "april",
|
|
"raw": "'april'",
|
|
"range": [
|
|
5138,
|
|
5145
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 153,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 153,
|
|
"column": 44
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "may",
|
|
"raw": "'may'",
|
|
"range": [
|
|
5146,
|
|
5151
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 153,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 153,
|
|
"column": 50
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "june",
|
|
"raw": "'june'",
|
|
"range": [
|
|
5152,
|
|
5158
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 153,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 153,
|
|
"column": 57
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "july",
|
|
"raw": "'july'",
|
|
"range": [
|
|
5159,
|
|
5165
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 153,
|
|
"column": 58
|
|
},
|
|
"end": {
|
|
"line": 153,
|
|
"column": 64
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "august",
|
|
"raw": "'august'",
|
|
"range": [
|
|
5175,
|
|
5183
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 154,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 154,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "september",
|
|
"raw": "'september'",
|
|
"range": [
|
|
5184,
|
|
5195
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 154,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 154,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "october",
|
|
"raw": "'october'",
|
|
"range": [
|
|
5196,
|
|
5205
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 154,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 154,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "november",
|
|
"raw": "'november'",
|
|
"range": [
|
|
5206,
|
|
5216
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 154,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 154,
|
|
"column": 49
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "december",
|
|
"raw": "'december'",
|
|
"range": [
|
|
5217,
|
|
5227
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 154,
|
|
"column": 50
|
|
},
|
|
"end": {
|
|
"line": 154,
|
|
"column": 60
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "jan",
|
|
"raw": "'jan'",
|
|
"range": [
|
|
5237,
|
|
5242
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "feb",
|
|
"raw": "'feb'",
|
|
"range": [
|
|
5243,
|
|
5248
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "mar",
|
|
"raw": "'mar'",
|
|
"range": [
|
|
5249,
|
|
5254
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "apr",
|
|
"raw": "'apr'",
|
|
"range": [
|
|
5255,
|
|
5260
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "may",
|
|
"raw": "'may'",
|
|
"range": [
|
|
5261,
|
|
5266
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "jun",
|
|
"raw": "'jun'",
|
|
"range": [
|
|
5267,
|
|
5272
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "jul",
|
|
"raw": "'jul'",
|
|
"range": [
|
|
5273,
|
|
5278
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 44
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 49
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "aug",
|
|
"raw": "'aug'",
|
|
"range": [
|
|
5279,
|
|
5284
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 50
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 55
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "sep",
|
|
"raw": "'sep'",
|
|
"range": [
|
|
5285,
|
|
5290
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 56
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 61
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "oct",
|
|
"raw": "'oct'",
|
|
"range": [
|
|
5291,
|
|
5296
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 62
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 67
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "nov",
|
|
"raw": "'nov'",
|
|
"range": [
|
|
5306,
|
|
5311
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 156,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 156,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": "dec",
|
|
"raw": "'dec'",
|
|
"range": [
|
|
5312,
|
|
5317
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 156,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 156,
|
|
"column": 19
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
5099,
|
|
5323
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 152,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 157,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5085,
|
|
5323
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 152,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 157,
|
|
"column": 5
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"kind": "let",
|
|
"range": [
|
|
5081,
|
|
5324
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 152,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 157,
|
|
"column": 6
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ForStatement",
|
|
"init": {
|
|
"type": "VariableDeclaration",
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"id": {
|
|
"type": "Identifier",
|
|
"name": "m_i",
|
|
"range": [
|
|
5337,
|
|
5340
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 158,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 158,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
"init": {
|
|
"type": "Literal",
|
|
"value": 0,
|
|
"raw": "0",
|
|
"range": [
|
|
5341,
|
|
5342
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 158,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 158,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5337,
|
|
5342
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 158,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 158,
|
|
"column": 17
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"kind": "let",
|
|
"range": [
|
|
5333,
|
|
5342
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 158,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 158,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
"test": {
|
|
"type": "BinaryExpression",
|
|
"operator": "<",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "m_i",
|
|
"range": [
|
|
5344,
|
|
5347
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 158,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 158,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "MONTH_NAMES",
|
|
"range": [
|
|
5350,
|
|
5361
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 158,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 158,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "length",
|
|
"range": [
|
|
5362,
|
|
5368
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 158,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 158,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5350,
|
|
5368
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 158,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 158,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5344,
|
|
5368
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 158,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 158,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
"update": {
|
|
"type": "UpdateExpression",
|
|
"operator": "++",
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"name": "m_i",
|
|
"range": [
|
|
5370,
|
|
5373
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 158,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 158,
|
|
"column": 48
|
|
}
|
|
}
|
|
},
|
|
"prefix": false,
|
|
"range": [
|
|
5370,
|
|
5375
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 158,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 158,
|
|
"column": 50
|
|
}
|
|
}
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"id": {
|
|
"type": "Identifier",
|
|
"name": "month_name",
|
|
"range": [
|
|
5394,
|
|
5404
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
"init": {
|
|
"type": "MemberExpression",
|
|
"computed": true,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "MONTH_NAMES",
|
|
"range": [
|
|
5407,
|
|
5418
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "m_i",
|
|
"range": [
|
|
5419,
|
|
5422
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 44
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5407,
|
|
5423
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 45
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5394,
|
|
5423
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 45
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"kind": "let",
|
|
"range": [
|
|
5390,
|
|
5424
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 46
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "BinaryExpression",
|
|
"operator": "===",
|
|
"left": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"computed": false,
|
|
"object": {
|
|
"type": "Identifier",
|
|
"name": "mmm",
|
|
"range": [
|
|
5441,
|
|
5444
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 160,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 160,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"name": "toLowerCase",
|
|
"range": [
|
|
5445,
|
|
5456
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 160,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 160,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5441,
|
|
5456
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 160,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 160,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
"arguments": [],
|
|
"range": [
|
|
5441,
|
|
5458
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 160,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 160,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Identifier",
|
|
"name": "month_name",
|
|
"range": [
|
|
5463,
|
|
5473
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 160,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 160,
|
|
"column": 48
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5441,
|
|
5473
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 160,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 160,
|
|
"column": 48
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "mondigit",
|
|
"range": [
|
|
5492,
|
|
5500
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 161,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 161,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "BinaryExpression",
|
|
"operator": "+",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "m_i",
|
|
"range": [
|
|
5503,
|
|
5506
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 161,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 161,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
5507,
|
|
5508
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 161,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 161,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5503,
|
|
5508
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 161,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 161,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5492,
|
|
5508
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 161,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 161,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5492,
|
|
5509
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 161,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 161,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "BreakStatement",
|
|
"label": null,
|
|
"range": [
|
|
5526,
|
|
5532
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 162,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 162,
|
|
"column": 22
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
5474,
|
|
5546
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 160,
|
|
"column": 49
|
|
},
|
|
"end": {
|
|
"line": 163,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
"alternate": null,
|
|
"range": [
|
|
5437,
|
|
5546
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 160,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 163,
|
|
"column": 13
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
5376,
|
|
5552
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 158,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 164,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5329,
|
|
5552
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 158,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 164,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "LogicalExpression",
|
|
"operator": "||",
|
|
"left": {
|
|
"type": "BinaryExpression",
|
|
"operator": ">",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "mondigit",
|
|
"range": [
|
|
5560,
|
|
5568
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 165,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 165,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": 11,
|
|
"raw": "11",
|
|
"range": [
|
|
5571,
|
|
5573
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 165,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 165,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5560,
|
|
5573
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 165,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 165,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "BinaryExpression",
|
|
"operator": "<",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "mondigit",
|
|
"range": [
|
|
5577,
|
|
5585
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 165,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 165,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": 23,
|
|
"raw": "23",
|
|
"range": [
|
|
5588,
|
|
5590
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 165,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 165,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5577,
|
|
5590
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 165,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 165,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5560,
|
|
5590
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 165,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 165,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "mondigit",
|
|
"range": [
|
|
5601,
|
|
5609
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 166,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 166,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "BinaryExpression",
|
|
"operator": "-",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "mondigit",
|
|
"range": [
|
|
5612,
|
|
5620
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 166,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 166,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": 12,
|
|
"raw": "12",
|
|
"range": [
|
|
5623,
|
|
5625
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 166,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 166,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5612,
|
|
5625
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 166,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 166,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5601,
|
|
5625
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 166,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 166,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5601,
|
|
5626
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 166,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 166,
|
|
"column": 33
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
5591,
|
|
5632
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 165,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 167,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"alternate": null,
|
|
"range": [
|
|
5557,
|
|
5632
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 165,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 167,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "IfStatement",
|
|
"test": {
|
|
"type": "LogicalExpression",
|
|
"operator": "||",
|
|
"left": {
|
|
"type": "BinaryExpression",
|
|
"operator": "<",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "mondigit",
|
|
"range": [
|
|
5640,
|
|
5648
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 168,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 168,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": 1,
|
|
"raw": "1",
|
|
"range": [
|
|
5651,
|
|
5652
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 168,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 168,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5640,
|
|
5652
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 168,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 168,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "BinaryExpression",
|
|
"operator": ">",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "mondigit",
|
|
"range": [
|
|
5656,
|
|
5664
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 168,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 168,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "Literal",
|
|
"value": 12,
|
|
"raw": "12",
|
|
"range": [
|
|
5667,
|
|
5669
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 168,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 168,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5656,
|
|
5669
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 168,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 168,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5640,
|
|
5669
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 168,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 168,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"argument": {
|
|
"type": "Literal",
|
|
"value": 0,
|
|
"raw": "0",
|
|
"range": [
|
|
5687,
|
|
5688
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 169,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 169,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5680,
|
|
5689
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 169,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 169,
|
|
"column": 17
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
5670,
|
|
5695
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 168,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 170,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"alternate": null,
|
|
"range": [
|
|
5637,
|
|
5695
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 168,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 170,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ReturnStatement",
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"name": "mondigit",
|
|
"range": [
|
|
5707,
|
|
5715
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 171,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 171,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5700,
|
|
5716
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 171,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 171,
|
|
"column": 20
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
5006,
|
|
5718
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 147,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 172,
|
|
"column": 1
|
|
}
|
|
}
|
|
},
|
|
"generator": false,
|
|
"expression": false,
|
|
"range": [
|
|
4986,
|
|
5718
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 147,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 172,
|
|
"column": 1
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"sourceType": "module",
|
|
"range": [
|
|
27,
|
|
5718
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 5,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 172,
|
|
"column": 1
|
|
}
|
|
},
|
|
"comments": [
|
|
{
|
|
"type": "Block",
|
|
"value": "*\n * Date utilities\n ",
|
|
"range": [
|
|
0,
|
|
25
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 3
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Line",
|
|
"value": " If the year is first",
|
|
"range": [
|
|
646,
|
|
669
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 24,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 24,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Line",
|
|
"value": " If the year is second",
|
|
"range": [
|
|
881,
|
|
905
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 28,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 28,
|
|
"column": 75
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Line",
|
|
"value": " The year must be third",
|
|
"range": [
|
|
1039,
|
|
1064
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 31,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 31,
|
|
"column": 42
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Line",
|
|
"value": " If it doesn't conform to the right format (with either a 2 digit year",
|
|
"range": [
|
|
1199,
|
|
1271
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 35,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 35,
|
|
"column": 80
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Line",
|
|
"value": " or 4 digit year), fail",
|
|
"range": [
|
|
1280,
|
|
1305
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 36,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 36,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Line",
|
|
"value": " Split into 3 parts based on what the divider was",
|
|
"range": [
|
|
1425,
|
|
1476
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 40,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 40,
|
|
"column": 59
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Line",
|
|
"value": " Check to see if the 3 parts end up making a valid date",
|
|
"range": [
|
|
1555,
|
|
1612
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 65
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Block",
|
|
"value": " jshint ignore:start ",
|
|
"range": [
|
|
3246,
|
|
3271
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 98,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 98,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Block",
|
|
"value": " jshint ignore:end ",
|
|
"range": [
|
|
3523,
|
|
3546
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 102,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 102,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Block",
|
|
"value": " jshint ignore:start ",
|
|
"range": [
|
|
3606,
|
|
3631
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 105,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 105,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Block",
|
|
"value": " jshint ignore:end ",
|
|
"range": [
|
|
3883,
|
|
3906
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 109,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 109,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Block",
|
|
"value": " jshint ignore:start ",
|
|
"range": [
|
|
3966,
|
|
3991
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 112,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 112,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Block",
|
|
"value": " jshint ignore:end ",
|
|
"range": [
|
|
4222,
|
|
4245
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 115,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 115,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Line",
|
|
"value": "in case format is not correct",
|
|
"range": [
|
|
4286,
|
|
4317
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 117,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 117,
|
|
"column": 52
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Block",
|
|
"value": " jshint ignore:start ",
|
|
"range": [
|
|
4334,
|
|
4359
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 118,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 118,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Block",
|
|
"value": " jshint ignore:end ",
|
|
"range": [
|
|
4590,
|
|
4613
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 121,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 121,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Line",
|
|
"value": ">50 belong to 1900",
|
|
"range": [
|
|
4808,
|
|
4828
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 136,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 136,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Line",
|
|
"value": "<50 belong to 2000",
|
|
"range": [
|
|
4889,
|
|
4909
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 140,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 140,
|
|
"column": 24
|
|
}
|
|
}
|
|
}
|
|
]
|
|
} |