1
0
Fork 0
mirror of https://github.com/koalyptus/TableFilter.git synced 2024-06-04 15:03:01 +02:00
TableFilter/doc/ast/source/src/date.js.json

15123 lines
556 KiB
JSON
Raw Normal View History

{
"type": "Program",
"body": [
{
"type": "ExportDefaultDeclaration",
"declaration": {
"type": "ObjectExpression",
"properties": [
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "isValid",
"range": [
2015-08-06 07:27:09 +02:00
53,
60
],
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 11
}
}
},
"value": {
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "dateStr",
"range": [
2015-08-06 07:27:09 +02:00
61,
68
],
"loc": {
"start": {
"line": 6,
"column": 12
},
"end": {
"line": 6,
"column": 19
}
}
},
{
"type": "Identifier",
"name": "format",
"range": [
2015-08-06 07:27:09 +02:00
70,
76
],
"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": [
2015-08-06 07:27:09 +02:00
92,
98
],
"loc": {
"start": {
"line": 7,
"column": 12
},
"end": {
"line": 7,
"column": 18
}
}
},
"prefix": true,
"range": [
2015-08-06 07:27:09 +02:00
91,
98
],
"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": [
2015-08-06 07:27:09 +02:00
115,
121
],
"loc": {
"start": {
"line": 8,
"column": 12
},
"end": {
"line": 8,
"column": 18
}
}
},
"right": {
"type": "Literal",
"value": "DMY",
"raw": "'DMY'",
"range": [
2015-08-06 07:27:09 +02:00
124,
129
],
"loc": {
"start": {
"line": 8,
"column": 21
},
"end": {
"line": 8,
"column": 26
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
115,
129
],
"loc": {
"start": {
"line": 8,
"column": 12
},
"end": {
"line": 8,
"column": 26
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
115,
130
],
"loc": {
"start": {
"line": 8,
"column": 12
},
"end": {
"line": 8,
"column": 27
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
100,
141
],
"loc": {
"start": {
"line": 7,
"column": 20
},
"end": {
"line": 9,
"column": 9
}
}
},
"alternate": null,
"range": [
2015-08-06 07:27:09 +02:00
88,
141
],
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 9,
"column": 9
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "Identifier",
"name": "format",
"range": [
2015-08-06 07:27:09 +02:00
151,
157
],
"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": [
2015-08-06 07:27:09 +02:00
160,
166
],
"loc": {
"start": {
"line": 10,
"column": 17
},
"end": {
"line": 10,
"column": 23
}
}
},
"property": {
"type": "Identifier",
"name": "toUpperCase",
"range": [
2015-08-06 07:27:09 +02:00
167,
178
],
"loc": {
"start": {
"line": 10,
"column": 24
},
"end": {
"line": 10,
"column": 35
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
160,
178
],
"loc": {
"start": {
"line": 10,
"column": 17
},
"end": {
"line": 10,
"column": 35
}
}
},
"arguments": [],
"range": [
2015-08-06 07:27:09 +02:00
160,
180
],
"loc": {
"start": {
"line": 10,
"column": 17
},
"end": {
"line": 10,
"column": 37
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
151,
180
],
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 37
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
151,
181
],
"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": [
2015-08-06 07:27:09 +02:00
194,
200
],
"loc": {
"start": {
"line": 11,
"column": 11
},
"end": {
"line": 11,
"column": 17
}
}
},
"property": {
"type": "Identifier",
"name": "length",
"range": [
2015-08-06 07:27:09 +02:00
201,
207
],
"loc": {
"start": {
"line": 11,
"column": 18
},
"end": {
"line": 11,
"column": 24
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
194,
207
],
"loc": {
"start": {
"line": 11,
"column": 11
},
"end": {
"line": 11,
"column": 24
}
}
},
"right": {
"type": "Literal",
"value": 3,
"raw": "3",
"range": [
2015-08-06 07:27:09 +02:00
211,
212
],
"loc": {
"start": {
"line": 11,
"column": 28
},
"end": {
"line": 11,
"column": 29
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
194,
212
],
"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": [
2015-08-06 07:27:09 +02:00
232,
238
],
"loc": {
"start": {
"line": 12,
"column": 15
},
"end": {
"line": 12,
"column": 21
}
}
},
"right": {
"type": "Literal",
"value": "DDMMMYYYY",
"raw": "'DDMMMYYYY'",
"range": [
2015-08-06 07:27:09 +02:00
241,
252
],
"loc": {
"start": {
"line": 12,
"column": 24
},
"end": {
"line": 12,
"column": 35
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
232,
252
],
"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": [
2015-08-06 07:27:09 +02:00
276,
277
],
"loc": {
"start": {
"line": 13,
"column": 20
},
"end": {
"line": 13,
"column": 21
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
2015-08-06 07:27:09 +02:00
280,
284
],
"loc": {
"start": {
"line": 13,
"column": 24
},
"end": {
"line": 13,
"column": 28
}
}
},
"property": {
"type": "Identifier",
"name": "format",
"range": [
2015-08-06 07:27:09 +02:00
285,
291
],
"loc": {
"start": {
"line": 13,
"column": 29
},
"end": {
"line": 13,
"column": 35
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
280,
291
],
"loc": {
"start": {
"line": 13,
"column": 24
},
"end": {
"line": 13,
"column": 35
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "dateStr",
"range": [
2015-08-06 07:27:09 +02:00
292,
299
],
"loc": {
"start": {
"line": 13,
"column": 36
},
"end": {
"line": 13,
"column": 43
}
}
},
{
"type": "Identifier",
"name": "format",
"range": [
2015-08-06 07:27:09 +02:00
301,
307
],
"loc": {
"start": {
"line": 13,
"column": 45
},
"end": {
"line": 13,
"column": 51
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
280,
308
],
"loc": {
"start": {
"line": 13,
"column": 24
},
"end": {
"line": 13,
"column": 52
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
276,
308
],
"loc": {
"start": {
"line": 13,
"column": 20
},
"end": {
"line": 13,
"column": 52
}
}
}
],
"kind": "let",
"range": [
2015-08-06 07:27:09 +02:00
272,
309
],
"loc": {
"start": {
"line": 13,
"column": 16
},
"end": {
"line": 13,
"column": 53
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "Identifier",
"name": "dateStr",
"range": [
2015-08-06 07:27:09 +02:00
327,
334
],
"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": [
2015-08-06 07:27:09 +02:00
337,
338
],
"loc": {
"start": {
"line": 14,
"column": 26
},
"end": {
"line": 14,
"column": 27
}
}
},
"property": {
"type": "Identifier",
"name": "getDate",
"range": [
2015-08-06 07:27:09 +02:00
339,
346
],
"loc": {
"start": {
"line": 14,
"column": 28
},
"end": {
"line": 14,
"column": 35
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
337,
346
],
"loc": {
"start": {
"line": 14,
"column": 26
},
"end": {
"line": 14,
"column": 35
}
}
},
"arguments": [],
"range": [
2015-08-06 07:27:09 +02:00
337,
348
],
"loc": {
"start": {
"line": 14,
"column": 26
},
"end": {
"line": 14,
"column": 37
}
}
},
"right": {
"type": "Literal",
"value": "/",
"raw": "'/'",
"range": [
2015-08-06 07:27:09 +02:00
350,
353
],
"loc": {
"start": {
"line": 14,
"column": 39
},
"end": {
"line": 14,
"column": 42
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
337,
353
],
"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": [
2015-08-06 07:27:09 +02:00
356,
357
],
"loc": {
"start": {
"line": 14,
"column": 45
},
"end": {
"line": 14,
"column": 46
}
}
},
"property": {
"type": "Identifier",
"name": "getMonth",
"range": [
2015-08-06 07:27:09 +02:00
358,
366
],
"loc": {
"start": {
"line": 14,
"column": 47
},
"end": {
"line": 14,
"column": 55
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
356,
366
],
"loc": {
"start": {
"line": 14,
"column": 45
},
"end": {
"line": 14,
"column": 55
}
}
},
"arguments": [],
"range": [
2015-08-06 07:27:09 +02:00
356,
368
],
"loc": {
"start": {
"line": 14,
"column": 45
},
"end": {
"line": 14,
"column": 57
}
}
},
"right": {
"type": "Literal",
"value": 1,
"raw": "1",
"range": [
2015-08-06 07:27:09 +02:00
369,
370
],
"loc": {
"start": {
"line": 14,
"column": 58
},
"end": {
"line": 14,
"column": 59
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
356,
370
],
"loc": {
"start": {
"line": 14,
"column": 45
},
"end": {
"line": 14,
"column": 59
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
337,
371
],
"loc": {
"start": {
"line": 14,
"column": 26
},
"end": {
"line": 14,
"column": 60
}
}
},
"right": {
"type": "Literal",
"value": "/",
"raw": "'/'",
"range": [
2015-08-06 07:27:09 +02:00
373,
376
],
"loc": {
"start": {
"line": 14,
"column": 62
},
"end": {
"line": 14,
"column": 65
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
337,
376
],
"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": [
2015-08-06 07:27:09 +02:00
399,
400
],
"loc": {
"start": {
"line": 15,
"column": 20
},
"end": {
"line": 15,
"column": 21
}
}
},
"property": {
"type": "Identifier",
"name": "getFullYear",
"range": [
2015-08-06 07:27:09 +02:00
401,
412
],
"loc": {
"start": {
"line": 15,
"column": 22
},
"end": {
"line": 15,
"column": 33
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
399,
412
],
"loc": {
"start": {
"line": 15,
"column": 20
},
"end": {
"line": 15,
"column": 33
}
}
},
"arguments": [],
"range": [
2015-08-06 07:27:09 +02:00
399,
414
],
"loc": {
"start": {
"line": 15,
"column": 20
},
"end": {
"line": 15,
"column": 35
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
337,
414
],
"loc": {
"start": {
"line": 14,
"column": 26
},
"end": {
"line": 15,
"column": 35
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
327,
414
],
"loc": {
"start": {
"line": 14,
"column": 16
},
"end": {
"line": 15,
"column": 35
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
327,
415
],
"loc": {
"start": {
"line": 14,
"column": 16
},
"end": {
"line": 15,
"column": 36
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "Identifier",
"name": "format",
"range": [
2015-08-06 07:27:09 +02:00
433,
439
],
"loc": {
"start": {
"line": 16,
"column": 16
},
"end": {
"line": 16,
"column": 22
}
}
},
"right": {
"type": "Literal",
"value": "DMY",
"raw": "'DMY'",
"range": [
2015-08-06 07:27:09 +02:00
442,
447
],
"loc": {
"start": {
"line": 16,
"column": 25
},
"end": {
"line": 16,
"column": 30
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
433,
447
],
"loc": {
"start": {
"line": 16,
"column": 16
},
"end": {
"line": 16,
"column": 30
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
433,
448
],
"loc": {
"start": {
"line": 16,
"column": 16
},
"end": {
"line": 16,
"column": 31
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
253,
463
],
"loc": {
"start": {
"line": 12,
"column": 36
},
"end": {
"line": 17,
"column": 13
}
}
},
"alternate": null,
"range": [
2015-08-06 07:27:09 +02:00
229,
463
],
"loc": {
"start": {
"line": 12,
"column": 12
},
"end": {
"line": 17,
"column": 13
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
214,
474
],
"loc": {
"start": {
"line": 11,
"column": 31
},
"end": {
"line": 18,
"column": 9
}
}
},
"alternate": null,
"range": [
2015-08-06 07:27:09 +02:00
191,
474
],
"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": [
2015-08-06 07:27:09 +02:00
488,
494
],
"loc": {
"start": {
"line": 19,
"column": 12
},
"end": {
"line": 19,
"column": 18
}
}
},
"property": {
"type": "Identifier",
"name": "indexOf",
"range": [
2015-08-06 07:27:09 +02:00
495,
502
],
"loc": {
"start": {
"line": 19,
"column": 19
},
"end": {
"line": 19,
"column": 26
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
488,
502
],
"loc": {
"start": {
"line": 19,
"column": 12
},
"end": {
"line": 19,
"column": 26
}
}
},
"arguments": [
{
"type": "Literal",
"value": "M",
"raw": "'M'",
"range": [
2015-08-06 07:27:09 +02:00
503,
506
],
"loc": {
"start": {
"line": 19,
"column": 27
},
"end": {
"line": 19,
"column": 30
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
488,
507
],
"loc": {
"start": {
"line": 19,
"column": 12
},
"end": {
"line": 19,
"column": 31
}
}
},
"right": {
"type": "UnaryExpression",
"operator": "-",
"argument": {
"type": "Literal",
"value": 1,
"raw": "1",
"range": [
2015-08-06 07:27:09 +02:00
513,
514
],
"loc": {
"start": {
"line": 19,
"column": 37
},
"end": {
"line": 19,
"column": 38
}
}
},
"prefix": true,
"range": [
2015-08-06 07:27:09 +02:00
512,
514
],
"loc": {
"start": {
"line": 19,
"column": 36
},
"end": {
"line": 19,
"column": 38
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
488,
514
],
"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": [
2015-08-06 07:27:09 +02:00
520,
526
],
"loc": {
"start": {
"line": 19,
"column": 44
},
"end": {
"line": 19,
"column": 50
}
}
},
"property": {
"type": "Identifier",
"name": "indexOf",
"range": [
2015-08-06 07:27:09 +02:00
527,
534
],
"loc": {
"start": {
"line": 19,
"column": 51
},
"end": {
"line": 19,
"column": 58
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
520,
534
],
"loc": {
"start": {
"line": 19,
"column": 44
},
"end": {
"line": 19,
"column": 58
}
}
},
"arguments": [
{
"type": "Literal",
"value": "D",
"raw": "'D'",
"range": [
2015-08-06 07:27:09 +02:00
535,
538
],
"loc": {
"start": {
"line": 19,
"column": 59
},
"end": {
"line": 19,
"column": 62
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
520,
539
],
"loc": {
"start": {
"line": 19,
"column": 44
},
"end": {
"line": 19,
"column": 63
}
}
},
"right": {
"type": "UnaryExpression",
"operator": "-",
"argument": {
"type": "Literal",
"value": 1,
"raw": "1",
"range": [
2015-08-06 07:27:09 +02:00
545,
546
],
"loc": {
"start": {
"line": 19,
"column": 69
},
"end": {
"line": 19,
"column": 70
}
}
},
"prefix": true,
"range": [
2015-08-06 07:27:09 +02:00
544,
546
],
"loc": {
"start": {
"line": 19,
"column": 68
},
"end": {
"line": 19,
"column": 70
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
520,
546
],
"loc": {
"start": {
"line": 19,
"column": 44
},
"end": {
"line": 19,
"column": 70
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
487,
547
],
"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": [
2015-08-06 07:27:09 +02:00
565,
571
],
"loc": {
"start": {
"line": 20,
"column": 13
},
"end": {
"line": 20,
"column": 19
}
}
},
"property": {
"type": "Identifier",
"name": "indexOf",
"range": [
2015-08-06 07:27:09 +02:00
572,
579
],
"loc": {
"start": {
"line": 20,
"column": 20
},
"end": {
"line": 20,
"column": 27
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
565,
579
],
"loc": {
"start": {
"line": 20,
"column": 13
},
"end": {
"line": 20,
"column": 27
}
}
},
"arguments": [
{
"type": "Literal",
"value": "Y",
"raw": "'Y'",
"range": [
2015-08-06 07:27:09 +02:00
580,
583
],
"loc": {
"start": {
"line": 20,
"column": 28
},
"end": {
"line": 20,
"column": 31
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
565,
584
],
"loc": {
"start": {
"line": 20,
"column": 13
},
"end": {
"line": 20,
"column": 32
}
}
},
"right": {
"type": "UnaryExpression",
"operator": "-",
"argument": {
"type": "Literal",
"value": 1,
"raw": "1",
"range": [
2015-08-06 07:27:09 +02:00
590,
591
],
"loc": {
"start": {
"line": 20,
"column": 38
},
"end": {
"line": 20,
"column": 39
}
}
},
"prefix": true,
"range": [
2015-08-06 07:27:09 +02:00
589,
591
],
"loc": {
"start": {
"line": 20,
"column": 37
},
"end": {
"line": 20,
"column": 39
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
565,
591
],
"loc": {
"start": {
"line": 20,
"column": 13
},
"end": {
"line": 20,
"column": 39
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
487,
592
],
"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": [
2015-08-06 07:27:09 +02:00
608,
614
],
"loc": {
"start": {
"line": 21,
"column": 12
},
"end": {
"line": 21,
"column": 18
}
}
},
"right": {
"type": "Literal",
"value": "DMY",
"raw": "'DMY'",
"range": [
2015-08-06 07:27:09 +02:00
617,
622
],
"loc": {
"start": {
"line": 21,
"column": 21
},
"end": {
"line": 21,
"column": 26
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
608,
622
],
"loc": {
"start": {
"line": 21,
"column": 12
},
"end": {
"line": 21,
"column": 26
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
608,
623
],
"loc": {
"start": {
"line": 21,
"column": 12
},
"end": {
"line": 21,
"column": 27
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
593,
634
],
"loc": {
"start": {
"line": 20,
"column": 41
},
"end": {
"line": 22,
"column": 9
}
}
},
"alternate": null,
"range": [
2015-08-06 07:27:09 +02:00
484,
634
],
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 22,
"column": 9
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "reg1",
"range": [
2015-08-06 07:27:09 +02:00
648,
652
],
"loc": {
"start": {
"line": 23,
"column": 12
},
"end": {
"line": 23,
"column": 16
}
}
},
"init": null,
"range": [
2015-08-06 07:27:09 +02:00
648,
652
],
"loc": {
"start": {
"line": 23,
"column": 12
},
"end": {
"line": 23,
"column": 16
}
}
},
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "reg2",
"range": [
2015-08-06 07:27:09 +02:00
654,
658
],
"loc": {
"start": {
"line": 23,
"column": 18
},
"end": {
"line": 23,
"column": 22
}
}
},
"init": null,
"range": [
2015-08-06 07:27:09 +02:00
654,
658
],
"loc": {
"start": {
"line": 23,
"column": 18
},
"end": {
"line": 23,
"column": 22
}
}
}
],
"kind": "let",
"range": [
2015-08-06 07:27:09 +02:00
644,
659
],
"loc": {
"start": {
"line": 23,
"column": 8
},
"end": {
"line": 23,
"column": 23
}
},
"trailingComments": [
{
"type": "Line",
"value": " If the year is first",
"range": [
2015-08-06 07:27:09 +02:00
669,
692
],
"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": [
2015-08-06 07:27:09 +02:00
705,
711
],
"loc": {
"start": {
"line": 25,
"column": 11
},
"end": {
"line": 25,
"column": 17
}
}
},
"property": {
"type": "Identifier",
"name": "substring",
"range": [
2015-08-06 07:27:09 +02:00
712,
721
],
"loc": {
"start": {
"line": 25,
"column": 18
},
"end": {
"line": 25,
"column": 27
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
705,
721
],
"loc": {
"start": {
"line": 25,
"column": 11
},
"end": {
"line": 25,
"column": 27
}
}
},
"arguments": [
{
"type": "Literal",
"value": 0,
"raw": "0",
"range": [
2015-08-06 07:27:09 +02:00
722,
723
],
"loc": {
"start": {
"line": 25,
"column": 28
},
"end": {
"line": 25,
"column": 29
}
}
},
{
"type": "Literal",
"value": 1,
"raw": "1",
"range": [
2015-08-06 07:27:09 +02:00
725,
726
],
"loc": {
"start": {
"line": 25,
"column": 31
},
"end": {
"line": 25,
"column": 32
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
705,
727
],
"loc": {
"start": {
"line": 25,
"column": 11
},
"end": {
"line": 25,
"column": 33
}
}
},
"right": {
"type": "Literal",
"value": "Y",
"raw": "'Y'",
"range": [
2015-08-06 07:27:09 +02:00
731,
734
],
"loc": {
"start": {
"line": 25,
"column": 37
},
"end": {
"line": 25,
"column": 40
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
705,
734
],
"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": [
2015-08-06 07:27:09 +02:00
753,
757
],
"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": [
2015-08-06 07:27:09 +02:00
760,
795
],
"loc": {
"start": {
"line": 26,
"column": 21
},
"end": {
"line": 26,
"column": 56
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
753,
795
],
"loc": {
"start": {
"line": 26,
"column": 14
},
"end": {
"line": 26,
"column": 56
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
753,
796
],
"loc": {
"start": {
"line": 26,
"column": 14
},
"end": {
"line": 26,
"column": 57
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "Identifier",
"name": "reg2",
"range": [
2015-08-06 07:27:09 +02:00
812,
816
],
"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": [
2015-08-06 07:27:09 +02:00
819,
854
],
"loc": {
"start": {
"line": 27,
"column": 21
},
"end": {
"line": 27,
"column": 56
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
812,
854
],
"loc": {
"start": {
"line": 27,
"column": 14
},
"end": {
"line": 27,
"column": 56
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
812,
855
],
"loc": {
"start": {
"line": 27,
"column": 14
},
"end": {
"line": 27,
"column": 57
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
736,
866
],
"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": [
2015-08-06 07:27:09 +02:00
875,
881
],
"loc": {
"start": {
"line": 28,
"column": 18
},
"end": {
"line": 28,
"column": 24
}
}
},
"property": {
"type": "Identifier",
"name": "substring",
"range": [
2015-08-06 07:27:09 +02:00
882,
891
],
"loc": {
"start": {
"line": 28,
"column": 25
},
"end": {
"line": 28,
"column": 34
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
875,
891
],
"loc": {
"start": {
"line": 28,
"column": 18
},
"end": {
"line": 28,
"column": 34
}
}
},
"arguments": [
{
"type": "Literal",
"value": 1,
"raw": "1",
"range": [
2015-08-06 07:27:09 +02:00
892,
893
],
"loc": {
"start": {
"line": 28,
"column": 35
},
"end": {
"line": 28,
"column": 36
}
}
},
{
"type": "Literal",
"value": 2,
"raw": "2",
"range": [
2015-08-06 07:27:09 +02:00
895,
896
],
"loc": {
"start": {
"line": 28,
"column": 38
},
"end": {
"line": 28,
"column": 39
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
875,
897
],
"loc": {
"start": {
"line": 28,
"column": 18
},
"end": {
"line": 28,
"column": 40
}
}
},
"right": {
"type": "Literal",
"value": "Y",
"raw": "'Y'",
"range": [
2015-08-06 07:27:09 +02:00
901,
904
],
"loc": {
"start": {
"line": 28,
"column": 44
},
"end": {
"line": 28,
"column": 47
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
875,
904
],
"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": [
2015-08-06 07:27:09 +02:00
948,
952
],
"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": [
2015-08-06 07:27:09 +02:00
955,
990
],
"loc": {
"start": {
"line": 29,
"column": 21
},
"end": {
"line": 29,
"column": 56
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
948,
990
],
"loc": {
"start": {
"line": 29,
"column": 14
},
"end": {
"line": 29,
"column": 56
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
948,
991
],
"loc": {
"start": {
"line": 29,
"column": 14
},
"end": {
"line": 29,
"column": 57
}
},
"leadingComments": [
{
"type": "Line",
"value": " If the year is second",
"range": [
2015-08-06 07:27:09 +02:00
908,
932
],
"loc": {
"start": {
"line": 28,
"column": 51
},
"end": {
"line": 28,
"column": 75
}
}
}
]
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "Identifier",
"name": "reg2",
"range": [
2015-08-06 07:27:09 +02:00
1007,
1011
],
"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": [
2015-08-06 07:27:09 +02:00
1014,
1049
],
"loc": {
"start": {
"line": 30,
"column": 21
},
"end": {
"line": 30,
"column": 56
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1007,
1049
],
"loc": {
"start": {
"line": 30,
"column": 14
},
"end": {
"line": 30,
"column": 56
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1007,
1050
],
"loc": {
"start": {
"line": 30,
"column": 14
},
"end": {
"line": 30,
"column": 57
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
906,
1061
],
"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": [
2015-08-06 07:27:09 +02:00
1110,
1114
],
"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": [
2015-08-06 07:27:09 +02:00
1117,
1152
],
"loc": {
"start": {
"line": 32,
"column": 21
},
"end": {
"line": 32,
"column": 56
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1110,
1152
],
"loc": {
"start": {
"line": 32,
"column": 14
},
"end": {
"line": 32,
"column": 56
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1110,
1153
],
"loc": {
"start": {
"line": 32,
"column": 14
},
"end": {
"line": 32,
"column": 57
}
},
"leadingComments": [
{
"type": "Line",
"value": " The year must be third",
"range": [
2015-08-06 07:27:09 +02:00
1069,
1094
],
"loc": {
"start": {
"line": 31,
"column": 17
},
"end": {
"line": 31,
"column": 42
}
}
}
]
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "Identifier",
"name": "reg2",
"range": [
2015-08-06 07:27:09 +02:00
1169,
1173
],
"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": [
2015-08-06 07:27:09 +02:00
1176,
1211
],
"loc": {
"start": {
"line": 33,
"column": 21
},
"end": {
"line": 33,
"column": 56
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1169,
1211
],
"loc": {
"start": {
"line": 33,
"column": 14
},
"end": {
"line": 33,
"column": 56
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1169,
1212
],
"loc": {
"start": {
"line": 33,
"column": 14
},
"end": {
"line": 33,
"column": 57
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
1067,
1223
],
"loc": {
"start": {
"line": 31,
"column": 15
},
"end": {
"line": 34,
"column": 9
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
872,
1223
],
"loc": {
"start": {
"line": 28,
"column": 15
},
"end": {
"line": 34,
"column": 9
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
702,
1223
],
"loc": {
"start": {
"line": 25,
"column": 8
},
"end": {
"line": 34,
"column": 9
}
},
"leadingComments": [
{
"type": "Line",
"value": " If the year is first",
"range": [
2015-08-06 07:27:09 +02:00
669,
692
],
"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": [
2015-08-06 07:27:09 +02:00
1233,
1305
],
"loc": {
"start": {
"line": 35,
"column": 8
},
"end": {
"line": 35,
"column": 80
}
}
},
{
"type": "Line",
"value": " or 4 digit year), fail",
"range": [
2015-08-06 07:27:09 +02:00
1315,
1340
],
"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": [
2015-08-06 07:27:09 +02:00
1353,
1357
],
"loc": {
"start": {
"line": 37,
"column": 11
},
"end": {
"line": 37,
"column": 15
}
}
},
"property": {
"type": "Identifier",
"name": "test",
"range": [
2015-08-06 07:27:09 +02:00
1358,
1362
],
"loc": {
"start": {
"line": 37,
"column": 16
},
"end": {
"line": 37,
"column": 20
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1353,
1362
],
"loc": {
"start": {
"line": 37,
"column": 11
},
"end": {
"line": 37,
"column": 20
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "dateStr",
"range": [
2015-08-06 07:27:09 +02:00
1363,
1370
],
"loc": {
"start": {
"line": 37,
"column": 21
},
"end": {
"line": 37,
"column": 28
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
1353,
1371
],
"loc": {
"start": {
"line": 37,
"column": 11
},
"end": {
"line": 37,
"column": 29
}
}
},
"right": {
"type": "Literal",
"value": false,
"raw": "false",
"range": [
2015-08-06 07:27:09 +02:00
1376,
1381
],
"loc": {
"start": {
"line": 37,
"column": 34
},
"end": {
"line": 37,
"column": 39
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1353,
1381
],
"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": [
2015-08-06 07:27:09 +02:00
1385,
1389
],
"loc": {
"start": {
"line": 37,
"column": 43
},
"end": {
"line": 37,
"column": 47
}
}
},
"property": {
"type": "Identifier",
"name": "test",
"range": [
2015-08-06 07:27:09 +02:00
1390,
1394
],
"loc": {
"start": {
"line": 37,
"column": 48
},
"end": {
"line": 37,
"column": 52
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1385,
1394
],
"loc": {
"start": {
"line": 37,
"column": 43
},
"end": {
"line": 37,
"column": 52
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "dateStr",
"range": [
2015-08-06 07:27:09 +02:00
1395,
1402
],
"loc": {
"start": {
"line": 37,
"column": 53
},
"end": {
"line": 37,
"column": 60
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
1385,
1403
],
"loc": {
"start": {
"line": 37,
"column": 43
},
"end": {
"line": 37,
"column": 61
}
}
},
"right": {
"type": "Literal",
"value": false,
"raw": "false",
"range": [
2015-08-06 07:27:09 +02:00
1408,
1413
],
"loc": {
"start": {
"line": 37,
"column": 66
},
"end": {
"line": 37,
"column": 71
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1385,
1413
],
"loc": {
"start": {
"line": 37,
"column": 43
},
"end": {
"line": 37,
"column": 71
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1353,
1413
],
"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": [
2015-08-06 07:27:09 +02:00
1437,
1442
],
"loc": {
"start": {
"line": 38,
"column": 19
},
"end": {
"line": 38,
"column": 24
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1430,
1443
],
"loc": {
"start": {
"line": 38,
"column": 12
},
"end": {
"line": 38,
"column": 25
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
1415,
1454
],
"loc": {
"start": {
"line": 37,
"column": 73
},
"end": {
"line": 39,
"column": 9
}
}
},
"alternate": null,
"range": [
2015-08-06 07:27:09 +02:00
1350,
1454
],
"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": [
2015-08-06 07:27:09 +02:00
1233,
1305
],
"loc": {
"start": {
"line": 35,
"column": 8
},
"end": {
"line": 35,
"column": 80
}
}
},
{
"type": "Line",
"value": " or 4 digit year), fail",
"range": [
2015-08-06 07:27:09 +02:00
1315,
1340
],
"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": [
2015-08-06 07:27:09 +02:00
1464,
1515
],
"loc": {
"start": {
"line": 40,
"column": 8
},
"end": {
"line": 40,
"column": 59
}
}
}
]
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "parts",
"range": [
2015-08-06 07:27:09 +02:00
1529,
1534
],
"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": [
2015-08-06 07:27:09 +02:00
1537,
1544
],
"loc": {
"start": {
"line": 41,
"column": 20
},
"end": {
"line": 41,
"column": 27
}
}
},
"property": {
"type": "Identifier",
"name": "split",
"range": [
2015-08-06 07:27:09 +02:00
1545,
1550
],
"loc": {
"start": {
"line": 41,
"column": 28
},
"end": {
"line": 41,
"column": 33
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1537,
1550
],
"loc": {
"start": {
"line": 41,
"column": 20
},
"end": {
"line": 41,
"column": 33
}
}
},
"arguments": [
{
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "RegExp",
"range": [
2015-08-06 07:27:09 +02:00
1551,
1557
],
"loc": {
"start": {
"line": 41,
"column": 34
},
"end": {
"line": 41,
"column": 40
}
}
},
"property": {
"type": "Identifier",
"name": "$1",
"range": [
2015-08-06 07:27:09 +02:00
1558,
1560
],
"loc": {
"start": {
"line": 41,
"column": 41
},
"end": {
"line": 41,
"column": 43
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1551,
1560
],
"loc": {
"start": {
"line": 41,
"column": 34
},
"end": {
"line": 41,
"column": 43
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
1537,
1561
],
"loc": {
"start": {
"line": 41,
"column": 20
},
"end": {
"line": 41,
"column": 44
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1529,
1561
],
"loc": {
"start": {
"line": 41,
"column": 12
},
"end": {
"line": 41,
"column": 44
}
}
}
],
"kind": "let",
"range": [
2015-08-06 07:27:09 +02:00
1525,
1562
],
"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": [
2015-08-06 07:27:09 +02:00
1464,
1515
],
"loc": {
"start": {
"line": 40,
"column": 8
},
"end": {
"line": 40,
"column": 59
}
}
}
]
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "mm",
"range": [
2015-08-06 07:27:09 +02:00
1576,
1578
],
"loc": {
"start": {
"line": 42,
"column": 12
},
"end": {
"line": 42,
"column": 14
}
}
},
"init": null,
"range": [
2015-08-06 07:27:09 +02:00
1576,
1578
],
"loc": {
"start": {
"line": 42,
"column": 12
},
"end": {
"line": 42,
"column": 14
}
}
},
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "dd",
"range": [
2015-08-06 07:27:09 +02:00
1580,
1582
],
"loc": {
"start": {
"line": 42,
"column": 16
},
"end": {
"line": 42,
"column": 18
}
}
},
"init": null,
"range": [
2015-08-06 07:27:09 +02:00
1580,
1582
],
"loc": {
"start": {
"line": 42,
"column": 16
},
"end": {
"line": 42,
"column": 18
}
}
},
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "yy",
"range": [
2015-08-06 07:27:09 +02:00
1584,
1586
],
"loc": {
"start": {
"line": 42,
"column": 20
},
"end": {
"line": 42,
"column": 22
}
}
},
"init": null,
"range": [
2015-08-06 07:27:09 +02:00
1584,
1586
],
"loc": {
"start": {
"line": 42,
"column": 20
},
"end": {
"line": 42,
"column": 22
}
}
}
],
"kind": "let",
"range": [
2015-08-06 07:27:09 +02:00
1572,
1587
],
"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": [
2015-08-06 07:27:09 +02:00
1597,
1654
],
"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": [
2015-08-06 07:27:09 +02:00
1667,
1673
],
"loc": {
"start": {
"line": 44,
"column": 11
},
"end": {
"line": 44,
"column": 17
}
}
},
"property": {
"type": "Identifier",
"name": "substring",
"range": [
2015-08-06 07:27:09 +02:00
1674,
1683
],
"loc": {
"start": {
"line": 44,
"column": 18
},
"end": {
"line": 44,
"column": 27
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1667,
1683
],
"loc": {
"start": {
"line": 44,
"column": 11
},
"end": {
"line": 44,
"column": 27
}
}
},
"arguments": [
{
"type": "Literal",
"value": 0,
"raw": "0",
"range": [
2015-08-06 07:27:09 +02:00
1684,
1685
],
"loc": {
"start": {
"line": 44,
"column": 28
},
"end": {
"line": 44,
"column": 29
}
}
},
{
"type": "Literal",
"value": 1,
"raw": "1",
"range": [
2015-08-06 07:27:09 +02:00
1687,
1688
],
"loc": {
"start": {
"line": 44,
"column": 31
},
"end": {
"line": 44,
"column": 32
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
1667,
1689
],
"loc": {
"start": {
"line": 44,
"column": 11
},
"end": {
"line": 44,
"column": 33
}
}
},
"right": {
"type": "Literal",
"value": "M",
"raw": "'M'",
"range": [
2015-08-06 07:27:09 +02:00
1694,
1697
],
"loc": {
"start": {
"line": 44,
"column": 38
},
"end": {
"line": 44,
"column": 41
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1667,
1697
],
"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": [
2015-08-06 07:27:09 +02:00
1713,
1715
],
"loc": {
"start": {
"line": 45,
"column": 12
},
"end": {
"line": 45,
"column": 14
}
}
},
"right": {
"type": "MemberExpression",
"computed": true,
"object": {
"type": "Identifier",
"name": "parts",
"range": [
2015-08-06 07:27:09 +02:00
1718,
1723
],
"loc": {
"start": {
"line": 45,
"column": 17
},
"end": {
"line": 45,
"column": 22
}
}
},
"property": {
"type": "Literal",
"value": 0,
"raw": "0",
"range": [
2015-08-06 07:27:09 +02:00
1724,
1725
],
"loc": {
"start": {
"line": 45,
"column": 23
},
"end": {
"line": 45,
"column": 24
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1718,
1726
],
"loc": {
"start": {
"line": 45,
"column": 17
},
"end": {
"line": 45,
"column": 25
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1713,
1726
],
"loc": {
"start": {
"line": 45,
"column": 12
},
"end": {
"line": 45,
"column": 25
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1713,
1727
],
"loc": {
"start": {
"line": 45,
"column": 12
},
"end": {
"line": 45,
"column": 26
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
1698,
1738
],
"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": [
2015-08-06 07:27:09 +02:00
1747,
1753
],
"loc": {
"start": {
"line": 46,
"column": 18
},
"end": {
"line": 46,
"column": 24
}
}
},
"property": {
"type": "Identifier",
"name": "substring",
"range": [
2015-08-06 07:27:09 +02:00
1754,
1763
],
"loc": {
"start": {
"line": 46,
"column": 25
},
"end": {
"line": 46,
"column": 34
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1747,
1763
],
"loc": {
"start": {
"line": 46,
"column": 18
},
"end": {
"line": 46,
"column": 34
}
}
},
"arguments": [
{
"type": "Literal",
"value": 1,
"raw": "1",
"range": [
2015-08-06 07:27:09 +02:00
1764,
1765
],
"loc": {
"start": {
"line": 46,
"column": 35
},
"end": {
"line": 46,
"column": 36
}
}
},
{
"type": "Literal",
"value": 2,
"raw": "2",
"range": [
2015-08-06 07:27:09 +02:00
1767,
1768
],
"loc": {
"start": {
"line": 46,
"column": 38
},
"end": {
"line": 46,
"column": 39
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
1747,
1769
],
"loc": {
"start": {
"line": 46,
"column": 18
},
"end": {
"line": 46,
"column": 40
}
}
},
"right": {
"type": "Literal",
"value": "M",
"raw": "'M'",
"range": [
2015-08-06 07:27:09 +02:00
1774,
1777
],
"loc": {
"start": {
"line": 46,
"column": 45
},
"end": {
"line": 46,
"column": 48
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1747,
1777
],
"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": [
2015-08-06 07:27:09 +02:00
1793,
1795
],
"loc": {
"start": {
"line": 47,
"column": 12
},
"end": {
"line": 47,
"column": 14
}
}
},
"right": {
"type": "MemberExpression",
"computed": true,
"object": {
"type": "Identifier",
"name": "parts",
"range": [
2015-08-06 07:27:09 +02:00
1798,
1803
],
"loc": {
"start": {
"line": 47,
"column": 17
},
"end": {
"line": 47,
"column": 22
}
}
},
"property": {
"type": "Literal",
"value": 1,
"raw": "1",
"range": [
2015-08-06 07:27:09 +02:00
1804,
1805
],
"loc": {
"start": {
"line": 47,
"column": 23
},
"end": {
"line": 47,
"column": 24
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1798,
1806
],
"loc": {
"start": {
"line": 47,
"column": 17
},
"end": {
"line": 47,
"column": 25
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1793,
1806
],
"loc": {
"start": {
"line": 47,
"column": 12
},
"end": {
"line": 47,
"column": 25
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1793,
1807
],
"loc": {
"start": {
"line": 47,
"column": 12
},
"end": {
"line": 47,
"column": 26
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
1778,
1818
],
"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": [
2015-08-06 07:27:09 +02:00
1839,
1841
],
"loc": {
"start": {
"line": 49,
"column": 12
},
"end": {
"line": 49,
"column": 14
}
}
},
"right": {
"type": "MemberExpression",
"computed": true,
"object": {
"type": "Identifier",
"name": "parts",
"range": [
2015-08-06 07:27:09 +02:00
1844,
1849
],
"loc": {
"start": {
"line": 49,
"column": 17
},
"end": {
"line": 49,
"column": 22
}
}
},
"property": {
"type": "Literal",
"value": 2,
"raw": "2",
"range": [
2015-08-06 07:27:09 +02:00
1850,
1851
],
"loc": {
"start": {
"line": 49,
"column": 23
},
"end": {
"line": 49,
"column": 24
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1844,
1852
],
"loc": {
"start": {
"line": 49,
"column": 17
},
"end": {
"line": 49,
"column": 25
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1839,
1852
],
"loc": {
"start": {
"line": 49,
"column": 12
},
"end": {
"line": 49,
"column": 25
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1839,
1853
],
"loc": {
"start": {
"line": 49,
"column": 12
},
"end": {
"line": 49,
"column": 26
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
1824,
1864
],
"loc": {
"start": {
"line": 48,
"column": 15
},
"end": {
"line": 50,
"column": 9
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1744,
1864
],
"loc": {
"start": {
"line": 46,
"column": 15
},
"end": {
"line": 50,
"column": 9
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1664,
1864
],
"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": [
2015-08-06 07:27:09 +02:00
1597,
1654
],
"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": [
2015-08-06 07:27:09 +02:00
1877,
1883
],
"loc": {
"start": {
"line": 51,
"column": 11
},
"end": {
"line": 51,
"column": 17
}
}
},
"property": {
"type": "Identifier",
"name": "substring",
"range": [
2015-08-06 07:27:09 +02:00
1884,
1893
],
"loc": {
"start": {
"line": 51,
"column": 18
},
"end": {
"line": 51,
"column": 27
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1877,
1893
],
"loc": {
"start": {
"line": 51,
"column": 11
},
"end": {
"line": 51,
"column": 27
}
}
},
"arguments": [
{
"type": "Literal",
"value": 0,
"raw": "0",
"range": [
2015-08-06 07:27:09 +02:00
1894,
1895
],
"loc": {
"start": {
"line": 51,
"column": 28
},
"end": {
"line": 51,
"column": 29
}
}
},
{
"type": "Literal",
"value": 1,
"raw": "1",
"range": [
2015-08-06 07:27:09 +02:00
1897,
1898
],
"loc": {
"start": {
"line": 51,
"column": 31
},
"end": {
"line": 51,
"column": 32
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
1877,
1899
],
"loc": {
"start": {
"line": 51,
"column": 11
},
"end": {
"line": 51,
"column": 33
}
}
},
"right": {
"type": "Literal",
"value": "D",
"raw": "'D'",
"range": [
2015-08-06 07:27:09 +02:00
1904,
1907
],
"loc": {
"start": {
"line": 51,
"column": 38
},
"end": {
"line": 51,
"column": 41
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1877,
1907
],
"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": [
2015-08-06 07:27:09 +02:00
1923,
1925
],
"loc": {
"start": {
"line": 52,
"column": 12
},
"end": {
"line": 52,
"column": 14
}
}
},
"right": {
"type": "MemberExpression",
"computed": true,
"object": {
"type": "Identifier",
"name": "parts",
"range": [
2015-08-06 07:27:09 +02:00
1928,
1933
],
"loc": {
"start": {
"line": 52,
"column": 17
},
"end": {
"line": 52,
"column": 22
}
}
},
"property": {
"type": "Literal",
"value": 0,
"raw": "0",
"range": [
2015-08-06 07:27:09 +02:00
1934,
1935
],
"loc": {
"start": {
"line": 52,
"column": 23
},
"end": {
"line": 52,
"column": 24
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1928,
1936
],
"loc": {
"start": {
"line": 52,
"column": 17
},
"end": {
"line": 52,
"column": 25
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1923,
1936
],
"loc": {
"start": {
"line": 52,
"column": 12
},
"end": {
"line": 52,
"column": 25
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1923,
1937
],
"loc": {
"start": {
"line": 52,
"column": 12
},
"end": {
"line": 52,
"column": 26
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
1908,
1948
],
"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": [
2015-08-06 07:27:09 +02:00
1957,
1963
],
"loc": {
"start": {
"line": 53,
"column": 18
},
"end": {
"line": 53,
"column": 24
}
}
},
"property": {
"type": "Identifier",
"name": "substring",
"range": [
2015-08-06 07:27:09 +02:00
1964,
1973
],
"loc": {
"start": {
"line": 53,
"column": 25
},
"end": {
"line": 53,
"column": 34
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1957,
1973
],
"loc": {
"start": {
"line": 53,
"column": 18
},
"end": {
"line": 53,
"column": 34
}
}
},
"arguments": [
{
"type": "Literal",
"value": 1,
"raw": "1",
"range": [
2015-08-06 07:27:09 +02:00
1974,
1975
],
"loc": {
"start": {
"line": 53,
"column": 35
},
"end": {
"line": 53,
"column": 36
}
}
},
{
"type": "Literal",
"value": 2,
"raw": "2",
"range": [
2015-08-06 07:27:09 +02:00
1977,
1978
],
"loc": {
"start": {
"line": 53,
"column": 38
},
"end": {
"line": 53,
"column": 39
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
1957,
1979
],
"loc": {
"start": {
"line": 53,
"column": 18
},
"end": {
"line": 53,
"column": 40
}
}
},
"right": {
"type": "Literal",
"value": "D",
"raw": "'D'",
"range": [
2015-08-06 07:27:09 +02:00
1984,
1987
],
"loc": {
"start": {
"line": 53,
"column": 45
},
"end": {
"line": 53,
"column": 48
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1957,
1987
],
"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": [
2015-08-06 07:27:09 +02:00
2003,
2005
],
"loc": {
"start": {
"line": 54,
"column": 12
},
"end": {
"line": 54,
"column": 14
}
}
},
"right": {
"type": "MemberExpression",
"computed": true,
"object": {
"type": "Identifier",
"name": "parts",
"range": [
2015-08-06 07:27:09 +02:00
2008,
2013
],
"loc": {
"start": {
"line": 54,
"column": 17
},
"end": {
"line": 54,
"column": 22
}
}
},
"property": {
"type": "Literal",
"value": 1,
"raw": "1",
"range": [
2015-08-06 07:27:09 +02:00
2014,
2015
],
"loc": {
"start": {
"line": 54,
"column": 23
},
"end": {
"line": 54,
"column": 24
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
2008,
2016
],
"loc": {
"start": {
"line": 54,
"column": 17
},
"end": {
"line": 54,
"column": 25
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
2003,
2016
],
"loc": {
"start": {
"line": 54,
"column": 12
},
"end": {
"line": 54,
"column": 25
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
2003,
2017
],
"loc": {
"start": {
"line": 54,
"column": 12
},
"end": {
"line": 54,
"column": 26
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
1988,
2028
],
"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": [
2015-08-06 07:27:09 +02:00
2049,
2051
],
"loc": {
"start": {
"line": 56,
"column": 12
},
"end": {
"line": 56,
"column": 14
}
}
},
"right": {
"type": "MemberExpression",
"computed": true,
"object": {
"type": "Identifier",
"name": "parts",
"range": [
2015-08-06 07:27:09 +02:00
2054,
2059
],
"loc": {
"start": {
"line": 56,
"column": 17
},
"end": {
"line": 56,
"column": 22
}
}
},
"property": {
"type": "Literal",
"value": 2,
"raw": "2",
"range": [
2015-08-06 07:27:09 +02:00
2060,
2061
],
"loc": {
"start": {
"line": 56,
"column": 23
},
"end": {
"line": 56,
"column": 24
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
2054,
2062
],
"loc": {
"start": {
"line": 56,
"column": 17
},
"end": {
"line": 56,
"column": 25
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
2049,
2062
],
"loc": {
"start": {
"line": 56,
"column": 12
},
"end": {
"line": 56,
"column": 25
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
2049,
2063
],
"loc": {
"start": {
"line": 56,
"column": 12
},
"end": {
"line": 56,
"column": 26
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
2034,
2074
],
"loc": {
"start": {
"line": 55,
"column": 15
},
"end": {
"line": 57,
"column": 9
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1954,
2074
],
"loc": {
"start": {
"line": 53,
"column": 15
},
"end": {
"line": 57,
"column": 9
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1874,
2074
],
"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": [
2015-08-06 07:27:09 +02:00
2087,
2093
],
"loc": {
"start": {
"line": 58,
"column": 11
},
"end": {
"line": 58,
"column": 17
}
}
},
"property": {
"type": "Identifier",
"name": "substring",
"range": [
2015-08-06 07:27:09 +02:00
2094,
2103
],
"loc": {
"start": {
"line": 58,
"column": 18
},
"end": {
"line": 58,
"column": 27
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
2087,
2103
],
"loc": {
"start": {
"line": 58,
"column": 11
},
"end": {
"line": 58,
"column": 27
}
}
},
"arguments": [
{
"type": "Literal",
"value": 0,
"raw": "0",
"range": [
2015-08-06 07:27:09 +02:00
2104,
2105
],
"loc": {
"start": {
"line": 58,
"column": 28
},
"end": {
"line": 58,
"column": 29
}
}
},
{
"type": "Literal",
"value": 1,
"raw": "1",
"range": [
2015-08-06 07:27:09 +02:00
2107,
2108
],
"loc": {
"start": {
"line": 58,
"column": 31
},
"end": {
"line": 58,
"column": 32
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
2087,
2109
],
"loc": {
"start": {
"line": 58,
"column": 11
},
"end": {
"line": 58,
"column": 33
}
}
},
"right": {
"type": "Literal",
"value": "Y",
"raw": "'Y'",
"range": [
2015-08-06 07:27:09 +02:00
2114,
2117
],
"loc": {
"start": {
"line": 58,
"column": 38
},
"end": {
"line": 58,
"column": 41
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
2087,
2117
],
"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": [
2015-08-06 07:27:09 +02:00
2133,
2135
],
"loc": {
"start": {
"line": 59,
"column": 12
},
"end": {
"line": 59,
"column": 14
}
}
},
"right": {
"type": "MemberExpression",
"computed": true,
"object": {
"type": "Identifier",
"name": "parts",
"range": [
2015-08-06 07:27:09 +02:00
2138,
2143
],
"loc": {
"start": {
"line": 59,
"column": 17
},
"end": {
"line": 59,
"column": 22
}
}
},
"property": {
"type": "Literal",
"value": 0,
"raw": "0",
"range": [
2015-08-06 07:27:09 +02:00
2144,
2145
],
"loc": {
"start": {
"line": 59,
"column": 23
},
"end": {
"line": 59,
"column": 24
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
2138,
2146
],
"loc": {
"start": {
"line": 59,
"column": 17
},
"end": {
"line": 59,
"column": 25
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
2133,
2146
],
"loc": {
"start": {
"line": 59,
"column": 12
},
"end": {
"line": 59,
"column": 25
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
2133,
2147
],
"loc": {
"start": {
"line": 59,
"column": 12
},
"end": {
"line": 59,
"column": 26
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
2118,
2158
],
"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": [
2015-08-06 07:27:09 +02:00
2167,
2173
],
"loc": {
"start": {
"line": 60,
"column": 18
},
"end": {
"line": 60,
"column": 24
}
}
},
"property": {
"type": "Identifier",
"name": "substring",
"range": [
2015-08-06 07:27:09 +02:00
2174,
2183
],
"loc": {
"start": {
"line": 60,
"column": 25
},
"end": {
"line": 60,
"column": 34
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
2167,
2183
],
"loc": {
"start": {
"line": 60,
"column": 18
},
"end": {
"line": 60,
"column": 34
}
}
},
"arguments": [
{
"type": "Literal",
"value": 1,
"raw": "1",
"range": [
2015-08-06 07:27:09 +02:00
2184,
2185
],
"loc": {
"start": {
"line": 60,
"column": 35
},
"end": {
"line": 60,
"column": 36
}
}
},
{
"type": "Literal",
"value": 2,
"raw": "2",
"range": [
2015-08-06 07:27:09 +02:00
2187,
2188
],
"loc": {
"start": {
"line": 60,
"column": 38
},
"end": {
"line": 60,
"column": 39
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
2167,
2189
],
"loc": {
"start": {
"line": 60,
"column": 18
},
"end": {
"line": 60,
"column": 40
}
}
},
"right": {
"type": "Literal",
"value": "Y",
"raw": "'Y'",
"range": [
2015-08-06 07:27:09 +02:00
2194,
2197
],
"loc": {
"start": {
"line": 60,
"column": 45
},
"end": {
"line": 60,
"column": 48
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
2167,
2197
],
"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": [
2015-08-06 07:27:09 +02:00
2213,
2215
],
"loc": {
"start": {
"line": 61,
"column": 12
},
"end": {
"line": 61,
"column": 14
}
}
},
"right": {
"type": "MemberExpression",
"computed": true,
"object": {
"type": "Identifier",
"name": "parts",
"range": [
2015-08-06 07:27:09 +02:00
2218,
2223
],
"loc": {
"start": {
"line": 61,
"column": 17
},
"end": {
"line": 61,
"column": 22
}
}
},
"property": {
"type": "Literal",
"value": 1,
"raw": "1",
"range": [
2015-08-06 07:27:09 +02:00
2224,
2225
],
"loc": {
"start": {
"line": 61,
"column": 23
},
"end": {
"line": 61,
"column": 24
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
2218,
2226
],
"loc": {
"start": {
"line": 61,
"column": 17
},
"end": {
"line": 61,
"column": 25
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
2213,
2226
],
"loc": {
"start": {
"line": 61,
"column": 12
},
"end": {
"line": 61,
"column": 25
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
2213,
2227
],
"loc": {
"start": {
"line": 61,
"column": 12
},
"end": {
"line": 61,
"column": 26
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
2198,
2238
],
"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": [
2015-08-06 07:27:09 +02:00
2259,
2261
],
"loc": {
"start": {
"line": 63,
"column": 12
},
"end": {
"line": 63,
"column": 14
}
}
},
"right": {
"type": "MemberExpression",
"computed": true,
"object": {
"type": "Identifier",
"name": "parts",
"range": [
2015-08-06 07:27:09 +02:00
2264,
2269
],
"loc": {
"start": {
"line": 63,
"column": 17
},
"end": {
"line": 63,
"column": 22
}
}
},
"property": {
"type": "Literal",
"value": 2,
"raw": "2",
"range": [
2015-08-06 07:27:09 +02:00
2270,
2271
],
"loc": {
"start": {
"line": 63,
"column": 23
},
"end": {
"line": 63,
"column": 24
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
2264,
2272
],
"loc": {
"start": {
"line": 63,
"column": 17
},
"end": {
"line": 63,
"column": 25
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
2259,
2272
],
"loc": {
"start": {
"line": 63,
"column": 12
},
"end": {
"line": 63,
"column": 25
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
2259,
2273
],
"loc": {
"start": {
"line": 63,
"column": 12
},
"end": {
"line": 63,
"column": 26
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
2244,
2284
],
"loc": {
"start": {
"line": 62,
"column": 15
},
"end": {
"line": 64,
"column": 9
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
2164,
2284
],
"loc": {
"start": {
"line": 60,
"column": 15
},
"end": {
"line": 64,
"column": 9
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
2084,
2284
],
"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": [
2015-08-06 07:27:09 +02:00
2297,
2305
],
"loc": {
"start": {
"line": 65,
"column": 11
},
"end": {
"line": 65,
"column": 19
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "yy",
"range": [
2015-08-06 07:27:09 +02:00
2306,
2308
],
"loc": {
"start": {
"line": 65,
"column": 20
},
"end": {
"line": 65,
"column": 22
}
}
},
{
"type": "Literal",
"value": 10,
"raw": "10",
"range": [
2015-08-06 07:27:09 +02:00
2310,
2312
],
"loc": {
"start": {
"line": 65,
"column": 24
},
"end": {
"line": 65,
"column": 26
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
2297,
2313
],
"loc": {
"start": {
"line": 65,
"column": 11
},
"end": {
"line": 65,
"column": 27
}
}
},
"right": {
"type": "Literal",
"value": 50,
"raw": "50",
"range": [
2015-08-06 07:27:09 +02:00
2317,
2319
],
"loc": {
"start": {
"line": 65,
"column": 31
},
"end": {
"line": 65,
"column": 33
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
2297,
2319
],
"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": [
2015-08-06 07:27:09 +02:00
2335,
2337
],
"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": [
2015-08-06 07:27:09 +02:00
2341,
2349
],
"loc": {
"start": {
"line": 66,
"column": 18
},
"end": {
"line": 66,
"column": 26
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "yy",
"range": [
2015-08-06 07:27:09 +02:00
2350,
2352
],
"loc": {
"start": {
"line": 66,
"column": 27
},
"end": {
"line": 66,
"column": 29
}
}
},
{
"type": "Literal",
"value": 10,
"raw": "10",
"range": [
2015-08-06 07:27:09 +02:00
2354,
2356
],
"loc": {
"start": {
"line": 66,
"column": 31
},
"end": {
"line": 66,
"column": 33
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
2341,
2357
],
"loc": {
"start": {
"line": 66,
"column": 18
},
"end": {
"line": 66,
"column": 34
}
}
},
"right": {
"type": "Literal",
"value": 2000,
"raw": "2000",
"range": [
2015-08-06 07:27:09 +02:00
2360,
2364
],
"loc": {
"start": {
"line": 66,
"column": 37
},
"end": {
"line": 66,
"column": 41
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
2341,
2364
],
"loc": {
"start": {
"line": 66,
"column": 18
},
"end": {
"line": 66,
"column": 41
}
}
},
"property": {
"type": "Identifier",
"name": "toString",
"range": [
2015-08-06 07:27:09 +02:00
2366,
2374
],
"loc": {
"start": {
"line": 66,
"column": 43
},
"end": {
"line": 66,
"column": 51
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
2340,
2374
],
"loc": {
"start": {
"line": 66,
"column": 17
},
"end": {
"line": 66,
"column": 51
}
}
},
"arguments": [],
"range": [
2015-08-06 07:27:09 +02:00
2340,
2376
],
"loc": {
"start": {
"line": 66,
"column": 17
},
"end": {
"line": 66,
"column": 53
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
2335,
2376
],
"loc": {
"start": {
"line": 66,
"column": 12
},
"end": {
"line": 66,
"column": 53
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
2335,
2377
],
"loc": {
"start": {
"line": 66,
"column": 12
},
"end": {
"line": 66,
"column": 54
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
2320,
2388
],
"loc": {
"start": {
"line": 65,
"column": 34
},
"end": {
"line": 67,
"column": 9
}
}
},
"alternate": null,
"range": [
2015-08-06 07:27:09 +02:00
2294,
2388
],
"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": [
2015-08-06 07:27:09 +02:00
2401,
2409
],
"loc": {
"start": {
"line": 68,
"column": 11
},
"end": {
"line": 68,
"column": 19
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "yy",
"range": [
2015-08-06 07:27:09 +02:00
2410,
2412
],
"loc": {
"start": {
"line": 68,
"column": 20
},
"end": {
"line": 68,
"column": 22
}
}
},
{
"type": "Literal",
"value": 10,
"raw": "10",
"range": [
2015-08-06 07:27:09 +02:00
2414,
2416
],
"loc": {
"start": {
"line": 68,
"column": 24
},
"end": {
"line": 68,
"column": 26
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
2401,
2417
],
"loc": {
"start": {
"line": 68,
"column": 11
},
"end": {
"line": 68,
"column": 27
}
}
},
"right": {
"type": "Literal",
"value": 99,
"raw": "99",
"range": [
2015-08-06 07:27:09 +02:00
2421,
2423
],
"loc": {
"start": {
"line": 68,
"column": 31
},
"end": {
"line": 68,
"column": 33
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
2401,
2423
],
"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": [
2015-08-06 07:27:09 +02:00
2439,
2441
],
"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": [
2015-08-06 07:27:09 +02:00
2445,
2453
],
"loc": {
"start": {
"line": 69,
"column": 18
},
"end": {
"line": 69,
"column": 26
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "yy",
"range": [
2015-08-06 07:27:09 +02:00
2454,
2456
],
"loc": {
"start": {
"line": 69,
"column": 27
},
"end": {
"line": 69,
"column": 29
}
}
},
{
"type": "Literal",
"value": 10,
"raw": "10",
"range": [
2015-08-06 07:27:09 +02:00
2458,
2460
],
"loc": {
"start": {
"line": 69,
"column": 31
},
"end": {
"line": 69,
"column": 33
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
2445,
2461
],
"loc": {
"start": {
"line": 69,
"column": 18
},
"end": {
"line": 69,
"column": 34
}
}
},
"right": {
"type": "Literal",
"value": 1900,
"raw": "1900",
"range": [
2015-08-06 07:27:09 +02:00
2464,
2468
],
"loc": {
"start": {
"line": 69,
"column": 37
},
"end": {
"line": 69,
"column": 41
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
2445,
2468
],
"loc": {
"start": {
"line": 69,
"column": 18
},
"end": {
"line": 69,
"column": 41
}
}
},
"property": {
"type": "Identifier",
"name": "toString",
"range": [
2015-08-06 07:27:09 +02:00
2470,
2478
],
"loc": {
"start": {
"line": 69,
"column": 43
},
"end": {
"line": 69,
"column": 51
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
2444,
2478
],
"loc": {
"start": {
"line": 69,
"column": 17
},
"end": {
"line": 69,
"column": 51
}
}
},
"arguments": [],
"range": [
2015-08-06 07:27:09 +02:00
2444,
2480
],
"loc": {
"start": {
"line": 69,
"column": 17
},
"end": {
"line": 69,
"column": 53
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
2439,
2480
],
"loc": {
"start": {
"line": 69,
"column": 12
},
"end": {
"line": 69,
"column": 53
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
2439,
2481
],
"loc": {
"start": {
"line": 69,
"column": 12
},
"end": {
"line": 69,
"column": 54
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
2424,
2492
],
"loc": {
"start": {
"line": 68,
"column": 34
},
"end": {
"line": 70,
"column": 9
}
}
},
"alternate": null,
"range": [
2015-08-06 07:27:09 +02:00
2398,
2492
],
"loc": {
"start": {
"line": 68,
"column": 8
},
"end": {
"line": 70,
"column": 9
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "dt",
"range": [
2015-08-06 07:27:09 +02:00
2506,
2508
],
"loc": {
"start": {
"line": 71,
"column": 12
},
"end": {
"line": 71,
"column": 14
}
}
},
"init": {
"type": "NewExpression",
"callee": {
"type": "Identifier",
"name": "Date",
"range": [
2015-08-06 07:27:09 +02:00
2515,
2519
],
"loc": {
"start": {
"line": 71,
"column": 21
},
"end": {
"line": 71,
"column": 25
}
}
},
"arguments": [
{
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "parseInt",
"range": [
2015-08-06 07:27:09 +02:00
2534,
2542
],
"loc": {
"start": {
"line": 72,
"column": 12
},
"end": {
"line": 72,
"column": 20
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "yy",
"range": [
2015-08-06 07:27:09 +02:00
2543,
2545
],
"loc": {
"start": {
"line": 72,
"column": 21
},
"end": {
"line": 72,
"column": 23
}
}
},
{
"type": "Literal",
"value": 10,
"raw": "10",
"range": [
2015-08-06 07:27:09 +02:00
2547,
2549
],
"loc": {
"start": {
"line": 72,
"column": 25
},
"end": {
"line": 72,
"column": 27
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
2534,
2550
],
"loc": {
"start": {
"line": 72,
"column": 12
},
"end": {
"line": 72,
"column": 28
}
}
},
{
"type": "BinaryExpression",
"operator": "-",
"left": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "parseInt",
"range": [
2015-08-06 07:27:09 +02:00
2552,
2560
],
"loc": {
"start": {
"line": 72,
"column": 30
},
"end": {
"line": 72,
"column": 38
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "mm",
"range": [
2015-08-06 07:27:09 +02:00
2561,
2563
],
"loc": {
"start": {
"line": 72,
"column": 39
},
"end": {
"line": 72,
"column": 41
}
}
},
{
"type": "Literal",
"value": 10,
"raw": "10",
"range": [
2015-08-06 07:27:09 +02:00
2565,
2567
],
"loc": {
"start": {
"line": 72,
"column": 43
},
"end": {
"line": 72,
"column": 45
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
2552,
2568
],
"loc": {
"start": {
"line": 72,
"column": 30
},
"end": {
"line": 72,
"column": 46
}
}
},
"right": {
"type": "Literal",
"value": 1,
"raw": "1",
"range": [
2015-08-06 07:27:09 +02:00
2569,
2570
],
"loc": {
"start": {
"line": 72,
"column": 47
},
"end": {
"line": 72,
"column": 48
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
2552,
2570
],
"loc": {
"start": {
"line": 72,
"column": 30
},
"end": {
"line": 72,
"column": 48
}
}
},
{
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "parseInt",
"range": [
2015-08-06 07:27:09 +02:00
2572,
2580
],
"loc": {
"start": {
"line": 72,
"column": 50
},
"end": {
"line": 72,
"column": 58
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "dd",
"range": [
2015-08-06 07:27:09 +02:00
2581,
2583
],
"loc": {
"start": {
"line": 72,
"column": 59
},
"end": {
"line": 72,
"column": 61
}
}
},
{
"type": "Literal",
"value": 10,
"raw": "10",
"range": [
2015-08-06 07:27:09 +02:00
2585,
2587
],
"loc": {
"start": {
"line": 72,
"column": 63
},
"end": {
"line": 72,
"column": 65
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
2572,
2588
],
"loc": {
"start": {
"line": 72,
"column": 50
},
"end": {
"line": 72,
"column": 66
}
}
},
{
"type": "Literal",
"value": 0,
"raw": "0",
"range": [
2015-08-06 07:27:09 +02:00
2603,
2604
],
"loc": {
"start": {
"line": 73,
"column": 12
},
"end": {
"line": 73,
"column": 13
}
}
},
{
"type": "Literal",
"value": 0,
"raw": "0",
"range": [
2015-08-06 07:27:09 +02:00
2606,
2607
],
"loc": {
"start": {
"line": 73,
"column": 15
},
"end": {
"line": 73,
"column": 16
}
}
},
{
"type": "Literal",
"value": 0,
"raw": "0",
"range": [
2015-08-06 07:27:09 +02:00
2609,
2610
],
"loc": {
"start": {
"line": 73,
"column": 18
},
"end": {
"line": 73,
"column": 19
}
}
},
{
"type": "Literal",
"value": 0,
"raw": "0",
"range": [
2015-08-06 07:27:09 +02:00
2612,
2613
],
"loc": {
"start": {
"line": 73,
"column": 21
},
"end": {
"line": 73,
"column": 22
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
2511,
2614
],
"loc": {
"start": {
"line": 71,
"column": 17
},
"end": {
"line": 73,
"column": 23
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
2506,
2614
],
"loc": {
"start": {
"line": 71,
"column": 12
},
"end": {
"line": 73,
"column": 23
}
}
}
],
"kind": "let",
"range": [
2015-08-06 07:27:09 +02:00
2502,
2615
],
"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": [
2015-08-06 07:27:09 +02:00
2628,
2636
],
"loc": {
"start": {
"line": 74,
"column": 11
},
"end": {
"line": 74,
"column": 19
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "dd",
"range": [
2015-08-06 07:27:09 +02:00
2637,
2639
],
"loc": {
"start": {
"line": 74,
"column": 20
},
"end": {
"line": 74,
"column": 22
}
}
},
{
"type": "Literal",
"value": 10,
"raw": "10",
"range": [
2015-08-06 07:27:09 +02:00
2641,
2643
],
"loc": {
"start": {
"line": 74,
"column": 24
},
"end": {
"line": 74,
"column": 26
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
2628,
2644
],
"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": [
2015-08-06 07:27:09 +02:00
2648,
2650
],
"loc": {
"start": {
"line": 74,
"column": 31
},
"end": {
"line": 74,
"column": 33
}
}
},
"property": {
"type": "Identifier",
"name": "getDate",
"range": [
2015-08-06 07:27:09 +02:00
2651,
2658
],
"loc": {
"start": {
"line": 74,
"column": 34
},
"end": {
"line": 74,
"column": 41
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
2648,
2658
],
"loc": {
"start": {
"line": 74,
"column": 31
},
"end": {
"line": 74,
"column": 41
}
}
},
"arguments": [],
"range": [
2015-08-06 07:27:09 +02:00
2648,
2660
],
"loc": {
"start": {
"line": 74,
"column": 31
},
"end": {
"line": 74,
"column": 43
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
2628,
2660
],
"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": [
2015-08-06 07:27:09 +02:00
2683,
2688
],
"loc": {
"start": {
"line": 75,
"column": 19
},
"end": {
"line": 75,
"column": 24
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
2676,
2689
],
"loc": {
"start": {
"line": 75,
"column": 12
},
"end": {
"line": 75,
"column": 25
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
2661,
2700
],
"loc": {
"start": {
"line": 74,
"column": 44
},
"end": {
"line": 76,
"column": 9
}
}
},
"alternate": null,
"range": [
2015-08-06 07:27:09 +02:00
2625,
2700
],
"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": [
2015-08-06 07:27:09 +02:00
2713,
2721
],
"loc": {
"start": {
"line": 77,
"column": 11
},
"end": {
"line": 77,
"column": 19
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "mm",
"range": [
2015-08-06 07:27:09 +02:00
2722,
2724
],
"loc": {
"start": {
"line": 77,
"column": 20
},
"end": {
"line": 77,
"column": 22
}
}
},
{
"type": "Literal",
"value": 10,
"raw": "10",
"range": [
2015-08-06 07:27:09 +02:00
2726,
2728
],
"loc": {
"start": {
"line": 77,
"column": 24
},
"end": {
"line": 77,
"column": 26
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
2713,
2729
],
"loc": {
"start": {
"line": 77,
"column": 11
},
"end": {
"line": 77,
"column": 27
}
}
},
"right": {
"type": "Literal",
"value": 1,
"raw": "1",
"range": [
2015-08-06 07:27:09 +02:00
2730,
2731
],
"loc": {
"start": {
"line": 77,
"column": 28
},
"end": {
"line": 77,
"column": 29
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
2713,
2731
],
"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": [
2015-08-06 07:27:09 +02:00
2735,
2737
],
"loc": {
"start": {
"line": 77,
"column": 33
},
"end": {
"line": 77,
"column": 35
}
}
},
"property": {
"type": "Identifier",
"name": "getMonth",
"range": [
2015-08-06 07:27:09 +02:00
2738,
2746
],
"loc": {
"start": {
"line": 77,
"column": 36
},
"end": {
"line": 77,
"column": 44
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
2735,
2746
],
"loc": {
"start": {
"line": 77,
"column": 33
},
"end": {
"line": 77,
"column": 44
}
}
},
"arguments": [],
"range": [
2015-08-06 07:27:09 +02:00
2735,
2748
],
"loc": {
"start": {
"line": 77,
"column": 33
},
"end": {
"line": 77,
"column": 46
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
2713,
2748
],
"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": [
2015-08-06 07:27:09 +02:00
2771,
2776
],
"loc": {
"start": {
"line": 78,
"column": 19
},
"end": {
"line": 78,
"column": 24
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
2764,
2777
],
"loc": {
"start": {
"line": 78,
"column": 12
},
"end": {
"line": 78,
"column": 25
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
2749,
2788
],
"loc": {
"start": {
"line": 77,
"column": 47
},
"end": {
"line": 79,
"column": 9
}
}
},
"alternate": null,
"range": [
2015-08-06 07:27:09 +02:00
2710,
2788
],
"loc": {
"start": {
"line": 77,
"column": 8
},
"end": {
"line": 79,
"column": 9
}
}
},
{
"type": "ReturnStatement",
"argument": {
"type": "Literal",
"value": true,
"raw": "true",
"range": [
2015-08-06 07:27:09 +02:00
2805,
2809
],
"loc": {
"start": {
"line": 80,
"column": 15
},
"end": {
"line": 80,
"column": 19
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
2798,
2810
],
"loc": {
"start": {
"line": 80,
"column": 8
},
"end": {
"line": 80,
"column": 20
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
77,
2817
],
"loc": {
"start": {
"line": 6,
"column": 28
},
"end": {
"line": 81,
"column": 5
}
}
},
"generator": false,
"expression": false,
"range": [
2015-08-06 07:27:09 +02:00
60,
2817
],
"loc": {
"start": {
"line": 6,
"column": 11
},
"end": {
"line": 81,
"column": 5
}
}
},
"kind": "init",
"method": true,
"shorthand": false,
"computed": false,
"range": [
2015-08-06 07:27:09 +02:00
53,
2817
],
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 81,
"column": 5
}
}
},
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "format",
"range": [
2015-08-06 07:27:09 +02:00
2824,
2830
],
"loc": {
"start": {
"line": 82,
"column": 4
},
"end": {
"line": 82,
"column": 10
}
}
},
"value": {
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "dateStr",
"range": [
2015-08-06 07:27:09 +02:00
2831,
2838
],
"loc": {
"start": {
"line": 82,
"column": 11
},
"end": {
"line": 82,
"column": 18
}
}
},
{
"type": "Identifier",
"name": "formatStr",
"range": [
2015-08-06 07:27:09 +02:00
2840,
2849
],
"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": [
2015-08-06 07:27:09 +02:00
2866,
2875
],
"loc": {
"start": {
"line": 83,
"column": 12
},
"end": {
"line": 83,
"column": 21
}
}
},
"prefix": true,
"range": [
2015-08-06 07:27:09 +02:00
2865,
2875
],
"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": [
2015-08-06 07:27:09 +02:00
2891,
2900
],
"loc": {
"start": {
"line": 84,
"column": 12
},
"end": {
"line": 84,
"column": 21
}
}
},
"right": {
"type": "Literal",
"value": "DMY",
"raw": "'DMY'",
"range": [
2015-08-06 07:27:09 +02:00
2903,
2908
],
"loc": {
"start": {
"line": 84,
"column": 24
},
"end": {
"line": 84,
"column": 29
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
2891,
2908
],
"loc": {
"start": {
"line": 84,
"column": 12
},
"end": {
"line": 84,
"column": 29
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
2891,
2909
],
"loc": {
"start": {
"line": 84,
"column": 12
},
"end": {
"line": 84,
"column": 30
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
2876,
2920
],
"loc": {
"start": {
"line": 83,
"column": 22
},
"end": {
"line": 85,
"column": 9
}
}
},
"alternate": null,
"range": [
2015-08-06 07:27:09 +02:00
2862,
2920
],
"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": [
2015-08-06 07:27:09 +02:00
2934,
2941
],
"loc": {
"start": {
"line": 86,
"column": 12
},
"end": {
"line": 86,
"column": 19
}
}
},
"prefix": true,
"range": [
2015-08-06 07:27:09 +02:00
2933,
2941
],
"loc": {
"start": {
"line": 86,
"column": 11
},
"end": {
"line": 86,
"column": 19
}
}
},
"right": {
"type": "BinaryExpression",
"operator": "===",
"left": {
"type": "Identifier",
"name": "dateStr",
"range": [
2015-08-06 07:27:09 +02:00
2945,
2952
],
"loc": {
"start": {
"line": 86,
"column": 23
},
"end": {
"line": 86,
"column": 30
}
}
},
"right": {
"type": "Literal",
"value": "",
"raw": "''",
"range": [
2015-08-06 07:27:09 +02:00
2957,
2959
],
"loc": {
"start": {
"line": 86,
"column": 35
},
"end": {
"line": 86,
"column": 37
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
2945,
2959
],
"loc": {
"start": {
"line": 86,
"column": 23
},
"end": {
"line": 86,
"column": 37
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
2933,
2959
],
"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": [
2015-08-06 07:27:09 +02:00
2986,
2990
],
"loc": {
"start": {
"line": 87,
"column": 23
},
"end": {
"line": 87,
"column": 27
}
}
},
"arguments": [
{
"type": "Literal",
"value": 1001,
"raw": "1001",
"range": [
2015-08-06 07:27:09 +02:00
2991,
2995
],
"loc": {
"start": {
"line": 87,
"column": 28
},
"end": {
"line": 87,
"column": 32
}
}
},
{
"type": "Literal",
"value": 0,
"raw": "0",
"range": [
2015-08-06 07:27:09 +02:00
2997,
2998
],
"loc": {
"start": {
"line": 87,
"column": 34
},
"end": {
"line": 87,
"column": 35
}
}
},
{
"type": "Literal",
"value": 1,
"raw": "1",
"range": [
2015-08-06 07:27:09 +02:00
3000,
3001
],
"loc": {
"start": {
"line": 87,
"column": 37
},
"end": {
"line": 87,
"column": 38
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
2982,
3002
],
"loc": {
"start": {
"line": 87,
"column": 19
},
"end": {
"line": 87,
"column": 39
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
2975,
3003
],
"loc": {
"start": {
"line": 87,
"column": 12
},
"end": {
"line": 87,
"column": 40
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
2960,
3014
],
"loc": {
"start": {
"line": 86,
"column": 38
},
"end": {
"line": 88,
"column": 9
}
}
},
"alternate": null,
"range": [
2015-08-06 07:27:09 +02:00
2930,
3014
],
"loc": {
"start": {
"line": 86,
"column": 8
},
"end": {
"line": 88,
"column": 9
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "oDate",
"range": [
2015-08-06 07:27:09 +02:00
3028,
3033
],
"loc": {
"start": {
"line": 89,
"column": 12
},
"end": {
"line": 89,
"column": 17
}
}
},
"init": null,
"range": [
2015-08-06 07:27:09 +02:00
3028,
3033
],
"loc": {
"start": {
"line": 89,
"column": 12
},
"end": {
"line": 89,
"column": 17
}
}
}
],
"kind": "let",
"range": [
2015-08-06 07:27:09 +02:00
3024,
3034
],
"loc": {
"start": {
"line": 89,
"column": 8
},
"end": {
"line": 89,
"column": 18
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "parts",
"range": [
2015-08-06 07:27:09 +02:00
3048,
3053
],
"loc": {
"start": {
"line": 90,
"column": 12
},
"end": {
"line": 90,
"column": 17
}
}
},
"init": null,
"range": [
2015-08-06 07:27:09 +02:00
3048,
3053
],
"loc": {
"start": {
"line": 90,
"column": 12
},
"end": {
"line": 90,
"column": 17
}
}
}
],
"kind": "let",
"range": [
2015-08-06 07:27:09 +02:00
3044,
3054
],
"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": [
2015-08-06 07:27:09 +02:00
3073,
3082
],
"loc": {
"start": {
"line": 92,
"column": 15
},
"end": {
"line": 92,
"column": 24
}
}
},
"property": {
"type": "Identifier",
"name": "toUpperCase",
"range": [
2015-08-06 07:27:09 +02:00
3083,
3094
],
"loc": {
"start": {
"line": 92,
"column": 25
},
"end": {
"line": 92,
"column": 36
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
3073,
3094
],
"loc": {
"start": {
"line": 92,
"column": 15
},
"end": {
"line": 92,
"column": 36
}
}
},
"arguments": [],
"range": [
2015-08-06 07:27:09 +02:00
3073,
3096
],
"loc": {
"start": {
"line": 92,
"column": 15
},
"end": {
"line": 92,
"column": 38
}
}
},
"cases": [
{
"type": "SwitchCase",
"test": {
"type": "Literal",
"value": "DDMMMYYYY",
"raw": "'DDMMMYYYY'",
"range": [
2015-08-06 07:27:09 +02:00
3117,
3128
],
"loc": {
"start": {
"line": 93,
"column": 17
},
"end": {
"line": 93,
"column": 28
}
}
},
"consequent": [
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "Identifier",
"name": "parts",
"range": [
2015-08-06 07:27:09 +02:00
3147,
3152
],
"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": [
2015-08-06 07:27:09 +02:00
3155,
3162
],
"loc": {
"start": {
"line": 94,
"column": 24
},
"end": {
"line": 94,
"column": 31
}
}
},
"property": {
"type": "Identifier",
"name": "replace",
"range": [
2015-08-06 07:27:09 +02:00
3163,
3170
],
"loc": {
"start": {
"line": 94,
"column": 32
},
"end": {
"line": 94,
"column": 39
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
3155,
3170
],
"loc": {
"start": {
"line": 94,
"column": 24
},
"end": {
"line": 94,
"column": 39
}
}
},
"arguments": [
{
"type": "Literal",
"value": {},
"raw": "/[- \\/.]/g",
"regex": {
"pattern": "[- \\/.]",
"flags": "g"
},
"range": [
2015-08-06 07:27:09 +02:00
3171,
3181
],
"loc": {
"start": {
"line": 94,
"column": 40
},
"end": {
"line": 94,
"column": 50
}
}
},
{
"type": "Literal",
"value": " ",
"raw": "' '",
"range": [
2015-08-06 07:27:09 +02:00
3182,
3185
],
"loc": {
"start": {
"line": 94,
"column": 51
},
"end": {
"line": 94,
"column": 54
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
3155,
3186
],
"loc": {
"start": {
"line": 94,
"column": 24
},
"end": {
"line": 94,
"column": 55
}
}
},
"property": {
"type": "Identifier",
"name": "split",
"range": [
2015-08-06 07:27:09 +02:00
3187,
3192
],
"loc": {
"start": {
"line": 94,
"column": 56
},
"end": {
"line": 94,
"column": 61
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
3155,
3192
],
"loc": {
"start": {
"line": 94,
"column": 24
},
"end": {
"line": 94,
"column": 61
}
}
},
"arguments": [
{
"type": "Literal",
"value": " ",
"raw": "' '",
"range": [
2015-08-06 07:27:09 +02:00
3193,
3196
],
"loc": {
"start": {
"line": 94,
"column": 62
},
"end": {
"line": 94,
"column": 65
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
3155,
3197
],
"loc": {
"start": {
"line": 94,
"column": 24
},
"end": {
"line": 94,
"column": 66
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
3147,
3197
],
"loc": {
"start": {
"line": 94,
"column": 16
},
"end": {
"line": 94,
"column": 66
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
3147,
3198
],
"loc": {
"start": {
"line": 94,
"column": 16
},
"end": {
"line": 94,
"column": 67
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "Identifier",
"name": "oDate",
"range": [
2015-08-06 07:27:09 +02:00
3216,
3221
],
"loc": {
"start": {
"line": 95,
"column": 16
},
"end": {
"line": 95,
"column": 21
}
}
},
"right": {
"type": "NewExpression",
"callee": {
"type": "Identifier",
"name": "Date",
"range": [
2015-08-06 07:27:09 +02:00
3228,
3232
],
"loc": {
"start": {
"line": 95,
"column": 28
},
"end": {
"line": 95,
"column": 32
}
}
},
"arguments": [
{
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "y2kDate",
"range": [
2015-08-06 07:27:09 +02:00
3233,
3240
],
"loc": {
"start": {
"line": 95,
"column": 33
},
"end": {
"line": 95,
"column": 40
}
}
},
"arguments": [
{
"type": "MemberExpression",
"computed": true,
"object": {
"type": "Identifier",
"name": "parts",
"range": [
2015-08-06 07:27:09 +02:00
3241,
3246
],
"loc": {
"start": {
"line": 95,
"column": 41
},
"end": {
"line": 95,
"column": 46
}
}
},
"property": {
"type": "Literal",
"value": 2,
"raw": "2",
"range": [
2015-08-06 07:27:09 +02:00
3247,
3248
],
"loc": {
"start": {
"line": 95,
"column": 47
},
"end": {
"line": 95,
"column": 48
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
3241,
3249
],
"loc": {
"start": {
"line": 95,
"column": 41
},
"end": {
"line": 95,
"column": 49
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
3233,
3250
],
"loc": {
"start": {
"line": 95,
"column": 33
},
"end": {
"line": 95,
"column": 50
}
}
},
{
"type": "BinaryExpression",
"operator": "-",
"left": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "mmm2mm",
"range": [
2015-08-06 07:27:09 +02:00
3251,
3257
],
"loc": {
"start": {
"line": 95,
"column": 51
},
"end": {
"line": 95,
"column": 57
}
}
},
"arguments": [
{
"type": "MemberExpression",
"computed": true,
"object": {
"type": "Identifier",
"name": "parts",
"range": [
2015-08-06 07:27:09 +02:00
3258,
3263
],
"loc": {
"start": {
"line": 95,
"column": 58
},
"end": {
"line": 95,
"column": 63
}
}
},
"property": {
"type": "Literal",
"value": 1,
"raw": "1",
"range": [
2015-08-06 07:27:09 +02:00
3264,
3265
],
"loc": {
"start": {
"line": 95,
"column": 64
},
"end": {
"line": 95,
"column": 65
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
3258,
3266
],
"loc": {
"start": {
"line": 95,
"column": 58
},
"end": {
"line": 95,
"column": 66
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
3251,
3267
],
"loc": {
"start": {
"line": 95,
"column": 51
},
"end": {
"line": 95,
"column": 67
}
}
},
"right": {
"type": "Literal",
"value": 1,
"raw": "1",
"range": [
2015-08-06 07:27:09 +02:00
3268,
3269
],
"loc": {
"start": {
"line": 95,
"column": 68
},
"end": {
"line": 95,
"column": 69
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
3251,
3269
],
"loc": {
"start": {
"line": 95,
"column": 51
},
"end": {
"line": 95,
"column": 69
}
}
},
{
"type": "MemberExpression",
"computed": true,
"object": {
"type": "Identifier",
"name": "parts",
"range": [
2015-08-06 07:27:09 +02:00
3270,
3275
],
"loc": {
"start": {
"line": 95,
"column": 70
},
"end": {
"line": 95,
"column": 75
}
}
},
"property": {
"type": "Literal",
"value": 0,
"raw": "0",
"range": [
2015-08-06 07:27:09 +02:00
3276,
3277
],
"loc": {
"start": {
"line": 95,
"column": 76
},
"end": {
"line": 95,
"column": 77
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
3270,
3278
],
"loc": {
"start": {
"line": 95,
"column": 70
},
"end": {
"line": 95,
"column": 78
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
3224,
3279
],
"loc": {
"start": {
"line": 95,
"column": 24
},
"end": {
"line": 95,
"column": 79
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
3216,
3279
],
"loc": {
"start": {
"line": 95,
"column": 16
},
"end": {
"line": 95,
"column": 79
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
3216,
3280
],
"loc": {
"start": {
"line": 95,
"column": 16
},
"end": {
"line": 95,
"column": 80
}
}
},
{
"type": "BreakStatement",
"label": null,
"range": [
2015-08-06 07:27:09 +02:00
3294,
3300
],
"loc": {
"start": {
"line": 96,
"column": 12
},
"end": {
"line": 96,
"column": 18
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
3112,
3300
],
"loc": {
"start": {
"line": 93,
"column": 12
},
"end": {
"line": 96,
"column": 18
}
}
},
{
"type": "SwitchCase",
"test": {
"type": "Literal",
"value": "DMY",
"raw": "'DMY'",
"range": [
2015-08-06 07:27:09 +02:00
3319,
3324
],
"loc": {
"start": {
"line": 97,
"column": 17
},
"end": {
"line": 97,
"column": 22
}
}
},
"consequent": [
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "Identifier",
"name": "parts",
"range": [
2015-08-06 07:27:09 +02:00
3386,
3391
],
"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": [
2015-08-06 07:27:09 +02:00
3394,
3401
],
"loc": {
"start": {
"line": 99,
"column": 24
},
"end": {
"line": 99,
"column": 31
}
}
},
"property": {
"type": "Identifier",
"name": "replace",
"range": [
2015-08-06 07:27:09 +02:00
3402,
3409
],
"loc": {
"start": {
"line": 99,
"column": 32
},
"end": {
"line": 99,
"column": 39
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
3394,
3409
],
"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": [
2015-08-06 07:27:09 +02:00
3432,
3508
],
"loc": {
"start": {
"line": 100,
"column": 20
},
"end": {
"line": 100,
"column": 96
}
}
},
{
"type": "Literal",
"value": "$1 $3 $5",
"raw": "'$1 $3 $5'",
"range": [
2015-08-06 07:27:09 +02:00
3509,
3519
],
"loc": {
"start": {
"line": 100,
"column": 97
},
"end": {
"line": 100,
"column": 107
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
3394,
3520
],
"loc": {
"start": {
"line": 99,
"column": 24
},
"end": {
"line": 100,
"column": 108
}
}
},
"property": {
"type": "Identifier",
"name": "split",
"range": [
2015-08-06 07:27:09 +02:00
3521,
3526
],
"loc": {
"start": {
"line": 100,
"column": 109
},
"end": {
"line": 100,
"column": 114
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
3394,
3526
],
"loc": {
"start": {
"line": 99,
"column": 24
},
"end": {
"line": 100,
"column": 114
}
}
},
"arguments": [
{
"type": "Literal",
"value": " ",
"raw": "' '",
"range": [
2015-08-06 07:27:09 +02:00
3527,
3530
],
"loc": {
"start": {
"line": 100,
"column": 115
},
"end": {
"line": 100,
"column": 118
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
3394,
3531
],
"loc": {
"start": {
"line": 99,
"column": 24
},
"end": {
"line": 100,
"column": 119
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
3386,
3531
],
"loc": {
"start": {
"line": 99,
"column": 16
},
"end": {
"line": 100,
"column": 119
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
3386,
3532
],
"loc": {
"start": {
"line": 99,
"column": 16
},
"end": {
"line": 100,
"column": 120
}
},
"leadingComments": [
{
"type": "Block",
"value": " jshint ignore:start ",
"range": [
2015-08-06 07:27:09 +02:00
3343,
3368
],
"loc": {
"start": {
"line": 98,
"column": 16
},
"end": {
"line": 98,
"column": 41
}
}
}
]
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "Identifier",
"name": "oDate",
"range": [
2015-08-06 07:27:09 +02:00
3550,
3555
],
"loc": {
"start": {
"line": 101,
"column": 16
},
"end": {
"line": 101,
"column": 21
}
}
},
"right": {
"type": "NewExpression",
"callee": {
"type": "Identifier",
"name": "Date",
"range": [
2015-08-06 07:27:09 +02:00
3562,
3566
],
"loc": {
"start": {
"line": 101,
"column": 28
},
"end": {
"line": 101,
"column": 32
}
}
},
"arguments": [
{
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "y2kDate",
"range": [
2015-08-06 07:27:09 +02:00
3567,
3574
],
"loc": {
"start": {
"line": 101,
"column": 33
},
"end": {
"line": 101,
"column": 40
}
}
},
"arguments": [
{
"type": "MemberExpression",
"computed": true,
"object": {
"type": "Identifier",
"name": "parts",
"range": [
2015-08-06 07:27:09 +02:00
3575,
3580
],
"loc": {
"start": {
"line": 101,
"column": 41
},
"end": {
"line": 101,
"column": 46
}
}
},
"property": {
"type": "Literal",
"value": 2,
"raw": "2",
"range": [
2015-08-06 07:27:09 +02:00
3581,
3582
],
"loc": {
"start": {
"line": 101,
"column": 47
},
"end": {
"line": 101,
"column": 48
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
3575,
3583
],
"loc": {
"start": {
"line": 101,
"column": 41
},
"end": {
"line": 101,
"column": 49
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
3567,
3584
],
"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": [
2015-08-06 07:27:09 +02:00
3585,
3590
],
"loc": {
"start": {
"line": 101,
"column": 51
},
"end": {
"line": 101,
"column": 56
}
}
},
"property": {
"type": "Literal",
"value": 1,
"raw": "1",
"range": [
2015-08-06 07:27:09 +02:00
3591,
3592
],
"loc": {
"start": {
"line": 101,
"column": 57
},
"end": {
"line": 101,
"column": 58
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
3585,
3593
],
"loc": {
"start": {
"line": 101,
"column": 51
},
"end": {
"line": 101,
"column": 59
}
}
},
"right": {
"type": "Literal",
"value": 1,
"raw": "1",
"range": [
2015-08-06 07:27:09 +02:00
3594,
3595
],
"loc": {
"start": {
"line": 101,
"column": 60
},
"end": {
"line": 101,
"column": 61
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
3585,
3595
],
"loc": {
"start": {
"line": 101,
"column": 51
},
"end": {
"line": 101,
"column": 61
}
}
},
{
"type": "MemberExpression",
"computed": true,
"object": {
"type": "Identifier",
"name": "parts",
"range": [
2015-08-06 07:27:09 +02:00
3596,
3601
],
"loc": {
"start": {
"line": 101,
"column": 62
},
"end": {
"line": 101,
"column": 67
}
}
},
"property": {
"type": "Literal",
"value": 0,
"raw": "0",
"range": [
2015-08-06 07:27:09 +02:00
3602,
3603
],
"loc": {
"start": {
"line": 101,
"column": 68
},
"end": {
"line": 101,
"column": 69
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
3596,
3604
],
"loc": {
"start": {
"line": 101,
"column": 62
},
"end": {
"line": 101,
"column": 70
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
3558,
3605
],
"loc": {
"start": {
"line": 101,
"column": 24
},
"end": {
"line": 101,
"column": 71
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
3550,
3605
],
"loc": {
"start": {
"line": 101,
"column": 16
},
"end": {
"line": 101,
"column": 71
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
3550,
3606
],
"loc": {
"start": {
"line": 101,
"column": 16
},
"end": {
"line": 101,
"column": 72
}
},
"trailingComments": [
{
"type": "Block",
"value": " jshint ignore:end ",
"range": [
2015-08-06 07:27:09 +02:00
3624,
3647
],
"loc": {
"start": {
"line": 102,
"column": 16
},
"end": {
"line": 102,
"column": 39
}
}
}
]
},
{
"type": "BreakStatement",
"label": null,
"range": [
2015-08-06 07:27:09 +02:00
3661,
3667
],
"loc": {
"start": {
"line": 103,
"column": 12
},
"end": {
"line": 103,
"column": 18
}
},
"leadingComments": [
{
"type": "Block",
"value": " jshint ignore:end ",
"range": [
2015-08-06 07:27:09 +02:00
3624,
3647
],
"loc": {
"start": {
"line": 102,
"column": 16
},
"end": {
"line": 102,
"column": 39
}
}
}
]
}
],
"range": [
2015-08-06 07:27:09 +02:00
3314,
3667
],
"loc": {
"start": {
"line": 97,
"column": 12
},
"end": {
"line": 103,
"column": 18
}
}
},
{
"type": "SwitchCase",
"test": {
"type": "Literal",
"value": "MDY",
"raw": "'MDY'",
"range": [
2015-08-06 07:27:09 +02:00
3686,
3691
],
"loc": {
"start": {
"line": 104,
"column": 17
},
"end": {
"line": 104,
"column": 22
}
}
},
"consequent": [
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "Identifier",
"name": "parts",
"range": [
2015-08-06 07:27:09 +02:00
3753,
3758
],
"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": [
2015-08-06 07:27:09 +02:00
3761,
3768
],
"loc": {
"start": {
"line": 106,
"column": 24
},
"end": {
"line": 106,
"column": 31
}
}
},
"property": {
"type": "Identifier",
"name": "replace",
"range": [
2015-08-06 07:27:09 +02:00
3769,
3776
],
"loc": {
"start": {
"line": 106,
"column": 32
},
"end": {
"line": 106,
"column": 39
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
3761,
3776
],
"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": [
2015-08-06 07:27:09 +02:00
3799,
3875
],
"loc": {
"start": {
"line": 107,
"column": 20
},
"end": {
"line": 107,
"column": 96
}
}
},
{
"type": "Literal",
"value": "$1 $3 $5",
"raw": "'$1 $3 $5'",
"range": [
2015-08-06 07:27:09 +02:00
3876,
3886
],
"loc": {
"start": {
"line": 107,
"column": 97
},
"end": {
"line": 107,
"column": 107
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
3761,
3887
],
"loc": {
"start": {
"line": 106,
"column": 24
},
"end": {
"line": 107,
"column": 108
}
}
},
"property": {
"type": "Identifier",
"name": "split",
"range": [
2015-08-06 07:27:09 +02:00
3888,
3893
],
"loc": {
"start": {
"line": 107,
"column": 109
},
"end": {
"line": 107,
"column": 114
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
3761,
3893
],
"loc": {
"start": {
"line": 106,
"column": 24
},
"end": {
"line": 107,
"column": 114
}
}
},
"arguments": [
{
"type": "Literal",
"value": " ",
"raw": "' '",
"range": [
2015-08-06 07:27:09 +02:00
3894,
3897
],
"loc": {
"start": {
"line": 107,
"column": 115
},
"end": {
"line": 107,
"column": 118
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
3761,
3898
],
"loc": {
"start": {
"line": 106,
"column": 24
},
"end": {
"line": 107,
"column": 119
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
3753,
3898
],
"loc": {
"start": {
"line": 106,
"column": 16
},
"end": {
"line": 107,
"column": 119
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
3753,
3899
],
"loc": {
"start": {
"line": 106,
"column": 16
},
"end": {
"line": 107,
"column": 120
}
},
"leadingComments": [
{
"type": "Block",
"value": " jshint ignore:start ",
"range": [
2015-08-06 07:27:09 +02:00
3710,
3735
],
"loc": {
"start": {
"line": 105,
"column": 16
},
"end": {
"line": 105,
"column": 41
}
}
}
]
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "Identifier",
"name": "oDate",
"range": [
2015-08-06 07:27:09 +02:00
3917,
3922
],
"loc": {
"start": {
"line": 108,
"column": 16
},
"end": {
"line": 108,
"column": 21
}
}
},
"right": {
"type": "NewExpression",
"callee": {
"type": "Identifier",
"name": "Date",
"range": [
2015-08-06 07:27:09 +02:00
3929,
3933
],
"loc": {
"start": {
"line": 108,
"column": 28
},
"end": {
"line": 108,
"column": 32
}
}
},
"arguments": [
{
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "y2kDate",
"range": [
2015-08-06 07:27:09 +02:00
3934,
3941
],
"loc": {
"start": {
"line": 108,
"column": 33
},
"end": {
"line": 108,
"column": 40
}
}
},
"arguments": [
{
"type": "MemberExpression",
"computed": true,
"object": {
"type": "Identifier",
"name": "parts",
"range": [
2015-08-06 07:27:09 +02:00
3942,
3947
],
"loc": {
"start": {
"line": 108,
"column": 41
},
"end": {
"line": 108,
"column": 46
}
}
},
"property": {
"type": "Literal",
"value": 2,
"raw": "2",
"range": [
2015-08-06 07:27:09 +02:00
3948,
3949
],
"loc": {
"start": {
"line": 108,
"column": 47
},
"end": {
"line": 108,
"column": 48
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
3942,
3950
],
"loc": {
"start": {
"line": 108,
"column": 41
},
"end": {
"line": 108,
"column": 49
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
3934,
3951
],
"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": [
2015-08-06 07:27:09 +02:00
3952,
3957
],
"loc": {
"start": {
"line": 108,
"column": 51
},
"end": {
"line": 108,
"column": 56
}
}
},
"property": {
"type": "Literal",
"value": 0,
"raw": "0",
"range": [
2015-08-06 07:27:09 +02:00
3958,
3959
],
"loc": {
"start": {
"line": 108,
"column": 57
},
"end": {
"line": 108,
"column": 58
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
3952,
3960
],
"loc": {
"start": {
"line": 108,
"column": 51
},
"end": {
"line": 108,
"column": 59
}
}
},
"right": {
"type": "Literal",
"value": 1,
"raw": "1",
"range": [
2015-08-06 07:27:09 +02:00
3961,
3962
],
"loc": {
"start": {
"line": 108,
"column": 60
},
"end": {
"line": 108,
"column": 61
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
3952,
3962
],
"loc": {
"start": {
"line": 108,
"column": 51
},
"end": {
"line": 108,
"column": 61
}
}
},
{
"type": "MemberExpression",
"computed": true,
"object": {
"type": "Identifier",
"name": "parts",
"range": [
2015-08-06 07:27:09 +02:00
3963,
3968
],
"loc": {
"start": {
"line": 108,
"column": 62
},
"end": {
"line": 108,
"column": 67
}
}
},
"property": {
"type": "Literal",
"value": 1,
"raw": "1",
"range": [
2015-08-06 07:27:09 +02:00
3969,
3970
],
"loc": {
"start": {
"line": 108,
"column": 68
},
"end": {
"line": 108,
"column": 69
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
3963,
3971
],
"loc": {
"start": {
"line": 108,
"column": 62
},
"end": {
"line": 108,
"column": 70
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
3925,
3972
],
"loc": {
"start": {
"line": 108,
"column": 24
},
"end": {
"line": 108,
"column": 71
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
3917,
3972
],
"loc": {
"start": {
"line": 108,
"column": 16
},
"end": {
"line": 108,
"column": 71
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
3917,
3973
],
"loc": {
"start": {
"line": 108,
"column": 16
},
"end": {
"line": 108,
"column": 72
}
},
"trailingComments": [
{
"type": "Block",
"value": " jshint ignore:end ",
"range": [
2015-08-06 07:27:09 +02:00
3991,
4014
],
"loc": {
"start": {
"line": 109,
"column": 16
},
"end": {
"line": 109,
"column": 39
}
}
}
]
},
{
"type": "BreakStatement",
"label": null,
"range": [
2015-08-06 07:27:09 +02:00
4028,
4034
],
"loc": {
"start": {
"line": 110,
"column": 12
},
"end": {
"line": 110,
"column": 18
}
},
"leadingComments": [
{
"type": "Block",
"value": " jshint ignore:end ",
"range": [
2015-08-06 07:27:09 +02:00
3991,
4014
],
"loc": {
"start": {
"line": 109,
"column": 16
},
"end": {
"line": 109,
"column": 39
}
}
}
]
}
],
"range": [
2015-08-06 07:27:09 +02:00
3681,
4034
],
"loc": {
"start": {
"line": 104,
"column": 12
},
"end": {
"line": 110,
"column": 18
}
}
},
{
"type": "SwitchCase",
"test": {
"type": "Literal",
"value": "YMD",
"raw": "'YMD'",
"range": [
2015-08-06 07:27:09 +02:00
4053,
4058
],
"loc": {
"start": {
"line": 111,
"column": 17
},
"end": {
"line": 111,
"column": 22
}
}
},
"consequent": [
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "Identifier",
"name": "parts",
"range": [
2015-08-06 07:27:09 +02:00
4120,
4125
],
"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": [
2015-08-06 07:27:09 +02:00
4128,
4135
],
"loc": {
"start": {
"line": 113,
"column": 24
},
"end": {
"line": 113,
"column": 31
}
}
},
"property": {
"type": "Identifier",
"name": "replace",
"range": [
2015-08-06 07:27:09 +02:00
4136,
4143
],
"loc": {
"start": {
"line": 113,
"column": 32
},
"end": {
"line": 113,
"column": 39
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
4128,
4143
],
"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": [
2015-08-06 07:27:09 +02:00
4144,
4220
],
"loc": {
"start": {
"line": 113,
"column": 40
},
"end": {
"line": 113,
"column": 116
}
}
},
{
"type": "Literal",
"value": "$1 $4 $6",
"raw": "'$1 $4 $6'",
"range": [
2015-08-06 07:27:09 +02:00
4221,
4231
],
"loc": {
"start": {
"line": 113,
"column": 117
},
"end": {
"line": 113,
"column": 127
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
4128,
4232
],
"loc": {
"start": {
"line": 113,
"column": 24
},
"end": {
"line": 113,
"column": 128
}
}
},
"property": {
"type": "Identifier",
"name": "split",
"range": [
2015-08-06 07:27:09 +02:00
4233,
4238
],
"loc": {
"start": {
"line": 113,
"column": 129
},
"end": {
"line": 113,
"column": 134
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
4128,
4238
],
"loc": {
"start": {
"line": 113,
"column": 24
},
"end": {
"line": 113,
"column": 134
}
}
},
"arguments": [
{
"type": "Literal",
"value": " ",
"raw": "' '",
"range": [
2015-08-06 07:27:09 +02:00
4239,
4242
],
"loc": {
"start": {
"line": 113,
"column": 135
},
"end": {
"line": 113,
"column": 138
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
4128,
4243
],
"loc": {
"start": {
"line": 113,
"column": 24
},
"end": {
"line": 113,
"column": 139
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
4120,
4243
],
"loc": {
"start": {
"line": 113,
"column": 16
},
"end": {
"line": 113,
"column": 139
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
4120,
4244
],
"loc": {
"start": {
"line": 113,
"column": 16
},
"end": {
"line": 113,
"column": 140
}
},
"leadingComments": [
{
"type": "Block",
"value": " jshint ignore:start ",
"range": [
2015-08-06 07:27:09 +02:00
4077,
4102
],
"loc": {
"start": {
"line": 112,
"column": 16
},
"end": {
"line": 112,
"column": 41
}
}
}
]
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "Identifier",
"name": "oDate",
"range": [
2015-08-06 07:27:09 +02:00
4262,
4267
],
"loc": {
"start": {
"line": 114,
"column": 16
},
"end": {
"line": 114,
"column": 21
}
}
},
"right": {
"type": "NewExpression",
"callee": {
"type": "Identifier",
"name": "Date",
"range": [
2015-08-06 07:27:09 +02:00
4274,
4278
],
"loc": {
"start": {
"line": 114,
"column": 28
},
"end": {
"line": 114,
"column": 32
}
}
},
"arguments": [
{
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "y2kDate",
"range": [
2015-08-06 07:27:09 +02:00
4279,
4286
],
"loc": {
"start": {
"line": 114,
"column": 33
},
"end": {
"line": 114,
"column": 40
}
}
},
"arguments": [
{
"type": "MemberExpression",
"computed": true,
"object": {
"type": "Identifier",
"name": "parts",
"range": [
2015-08-06 07:27:09 +02:00
4287,
4292
],
"loc": {
"start": {
"line": 114,
"column": 41
},
"end": {
"line": 114,
"column": 46
}
}
},
"property": {
"type": "Literal",
"value": 0,
"raw": "0",
"range": [
2015-08-06 07:27:09 +02:00
4293,
4294
],
"loc": {
"start": {
"line": 114,
"column": 47
},
"end": {
"line": 114,
"column": 48
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
4287,
4295
],
"loc": {
"start": {
"line": 114,
"column": 41
},
"end": {
"line": 114,
"column": 49
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
4279,
4296
],
"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": [
2015-08-06 07:27:09 +02:00
4297,
4302
],
"loc": {
"start": {
"line": 114,
"column": 51
},
"end": {
"line": 114,
"column": 56
}
}
},
"property": {
"type": "Literal",
"value": 1,
"raw": "1",
"range": [
2015-08-06 07:27:09 +02:00
4303,
4304
],
"loc": {
"start": {
"line": 114,
"column": 57
},
"end": {
"line": 114,
"column": 58
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
4297,
4305
],
"loc": {
"start": {
"line": 114,
"column": 51
},
"end": {
"line": 114,
"column": 59
}
}
},
"right": {
"type": "Literal",
"value": 1,
"raw": "1",
"range": [
2015-08-06 07:27:09 +02:00
4306,
4307
],
"loc": {
"start": {
"line": 114,
"column": 60
},
"end": {
"line": 114,
"column": 61
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
4297,
4307
],
"loc": {
"start": {
"line": 114,
"column": 51
},
"end": {
"line": 114,
"column": 61
}
}
},
{
"type": "MemberExpression",
"computed": true,
"object": {
"type": "Identifier",
"name": "parts",
"range": [
2015-08-06 07:27:09 +02:00
4308,
4313
],
"loc": {
"start": {
"line": 114,
"column": 62
},
"end": {
"line": 114,
"column": 67
}
}
},
"property": {
"type": "Literal",
"value": 2,
"raw": "2",
"range": [
2015-08-06 07:27:09 +02:00
4314,
4315
],
"loc": {
"start": {
"line": 114,
"column": 68
},
"end": {
"line": 114,
"column": 69
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
4308,
4316
],
"loc": {
"start": {
"line": 114,
"column": 62
},
"end": {
"line": 114,
"column": 70
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
4270,
4317
],
"loc": {
"start": {
"line": 114,
"column": 24
},
"end": {
"line": 114,
"column": 71
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
4262,
4317
],
"loc": {
"start": {
"line": 114,
"column": 16
},
"end": {
"line": 114,
"column": 71
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
4262,
4318
],
"loc": {
"start": {
"line": 114,
"column": 16
},
"end": {
"line": 114,
"column": 72
}
},
"trailingComments": [
{
"type": "Block",
"value": " jshint ignore:end ",
"range": [
2015-08-06 07:27:09 +02:00
4336,
4359
],
"loc": {
"start": {
"line": 115,
"column": 16
},
"end": {
"line": 115,
"column": 39
}
}
}
]
},
{
"type": "BreakStatement",
"label": null,
"range": [
2015-08-06 07:27:09 +02:00
4373,
4379
],
"loc": {
"start": {
"line": 116,
"column": 12
},
"end": {
"line": 116,
"column": 18
}
},
"leadingComments": [
{
"type": "Block",
"value": " jshint ignore:end ",
"range": [
2015-08-06 07:27:09 +02:00
4336,
4359
],
"loc": {
"start": {
"line": 115,
"column": 16
},
"end": {
"line": 115,
"column": 39
}
}
}
]
}
],
"range": [
2015-08-06 07:27:09 +02:00
4048,
4379
],
"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": [
2015-08-06 07:27:09 +02:00
4494,
4499
],
"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": [
2015-08-06 07:27:09 +02:00
4502,
4509
],
"loc": {
"start": {
"line": 119,
"column": 24
},
"end": {
"line": 119,
"column": 31
}
}
},
"property": {
"type": "Identifier",
"name": "replace",
"range": [
2015-08-06 07:27:09 +02:00
4510,
4517
],
"loc": {
"start": {
"line": 119,
"column": 32
},
"end": {
"line": 119,
"column": 39
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
4502,
4517
],
"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": [
2015-08-06 07:27:09 +02:00
4518,
4594
],
"loc": {
"start": {
"line": 119,
"column": 40
},
"end": {
"line": 119,
"column": 116
}
}
},
{
"type": "Literal",
"value": "$1 $3 $5",
"raw": "'$1 $3 $5'",
"range": [
2015-08-06 07:27:09 +02:00
4595,
4605
],
"loc": {
"start": {
"line": 119,
"column": 117
},
"end": {
"line": 119,
"column": 127
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
4502,
4606
],
"loc": {
"start": {
"line": 119,
"column": 24
},
"end": {
"line": 119,
"column": 128
}
}
},
"property": {
"type": "Identifier",
"name": "split",
"range": [
2015-08-06 07:27:09 +02:00
4607,
4612
],
"loc": {
"start": {
"line": 119,
"column": 129
},
"end": {
"line": 119,
"column": 134
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
4502,
4612
],
"loc": {
"start": {
"line": 119,
"column": 24
},
"end": {
"line": 119,
"column": 134
}
}
},
"arguments": [
{
"type": "Literal",
"value": " ",
"raw": "' '",
"range": [
2015-08-06 07:27:09 +02:00
4613,
4616
],
"loc": {
"start": {
"line": 119,
"column": 135
},
"end": {
"line": 119,
"column": 138
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
4502,
4617
],
"loc": {
"start": {
"line": 119,
"column": 24
},
"end": {
"line": 119,
"column": 139
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
4494,
4617
],
"loc": {
"start": {
"line": 119,
"column": 16
},
"end": {
"line": 119,
"column": 139
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
4494,
4618
],
"loc": {
"start": {
"line": 119,
"column": 16
},
"end": {
"line": 119,
"column": 140
}
},
"leadingComments": [
{
"type": "Line",
"value": "in case format is not correct",
"range": [
2015-08-06 07:27:09 +02:00
4402,
4433
],
"loc": {
"start": {
"line": 117,
"column": 21
},
"end": {
"line": 117,
"column": 52
}
}
},
{
"type": "Block",
"value": " jshint ignore:start ",
"range": [
2015-08-06 07:27:09 +02:00
4451,
4476
],
"loc": {
"start": {
"line": 118,
"column": 16
},
"end": {
"line": 118,
"column": 41
}
}
}
]
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "Identifier",
"name": "oDate",
"range": [
2015-08-06 07:27:09 +02:00
4636,
4641
],
"loc": {
"start": {
"line": 120,
"column": 16
},
"end": {
"line": 120,
"column": 21
}
}
},
"right": {
"type": "NewExpression",
"callee": {
"type": "Identifier",
"name": "Date",
"range": [
2015-08-06 07:27:09 +02:00
4648,
4652
],
"loc": {
"start": {
"line": 120,
"column": 28
},
"end": {
"line": 120,
"column": 32
}
}
},
"arguments": [
{
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "y2kDate",
"range": [
2015-08-06 07:27:09 +02:00
4653,
4660
],
"loc": {
"start": {
"line": 120,
"column": 33
},
"end": {
"line": 120,
"column": 40
}
}
},
"arguments": [
{
"type": "MemberExpression",
"computed": true,
"object": {
"type": "Identifier",
"name": "parts",
"range": [
2015-08-06 07:27:09 +02:00
4661,
4666
],
"loc": {
"start": {
"line": 120,
"column": 41
},
"end": {
"line": 120,
"column": 46
}
}
},
"property": {
"type": "Literal",
"value": 2,
"raw": "2",
"range": [
2015-08-06 07:27:09 +02:00
4667,
4668
],
"loc": {
"start": {
"line": 120,
"column": 47
},
"end": {
"line": 120,
"column": 48
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
4661,
4669
],
"loc": {
"start": {
"line": 120,
"column": 41
},
"end": {
"line": 120,
"column": 49
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
4653,
4670
],
"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": [
2015-08-06 07:27:09 +02:00
4671,
4676
],
"loc": {
"start": {
"line": 120,
"column": 51
},
"end": {
"line": 120,
"column": 56
}
}
},
"property": {
"type": "Literal",
"value": 1,
"raw": "1",
"range": [
2015-08-06 07:27:09 +02:00
4677,
4678
],
"loc": {
"start": {
"line": 120,
"column": 57
},
"end": {
"line": 120,
"column": 58
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
4671,
4679
],
"loc": {
"start": {
"line": 120,
"column": 51
},
"end": {
"line": 120,
"column": 59
}
}
},
"right": {
"type": "Literal",
"value": 1,
"raw": "1",
"range": [
2015-08-06 07:27:09 +02:00
4680,
4681
],
"loc": {
"start": {
"line": 120,
"column": 60
},
"end": {
"line": 120,
"column": 61
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
4671,
4681
],
"loc": {
"start": {
"line": 120,
"column": 51
},
"end": {
"line": 120,
"column": 61
}
}
},
{
"type": "MemberExpression",
"computed": true,
"object": {
"type": "Identifier",
"name": "parts",
"range": [
2015-08-06 07:27:09 +02:00
4682,
4687
],
"loc": {
"start": {
"line": 120,
"column": 62
},
"end": {
"line": 120,
"column": 67
}
}
},
"property": {
"type": "Literal",
"value": 0,
"raw": "0",
"range": [
2015-08-06 07:27:09 +02:00
4688,
4689
],
"loc": {
"start": {
"line": 120,
"column": 68
},
"end": {
"line": 120,
"column": 69
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
4682,
4690
],
"loc": {
"start": {
"line": 120,
"column": 62
},
"end": {
"line": 120,
"column": 70
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
4644,
4691
],
"loc": {
"start": {
"line": 120,
"column": 24
},
"end": {
"line": 120,
"column": 71
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
4636,
4691
],
"loc": {
"start": {
"line": 120,
"column": 16
},
"end": {
"line": 120,
"column": 71
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
4636,
4692
],
"loc": {
"start": {
"line": 120,
"column": 16
},
"end": {
"line": 120,
"column": 72
}
},
"trailingComments": [
{
"type": "Block",
"value": " jshint ignore:end ",
"range": [
2015-08-06 07:27:09 +02:00
4710,
4733
],
"loc": {
"start": {
"line": 121,
"column": 16
},
"end": {
"line": 121,
"column": 39
}
}
}
]
},
{
"type": "BreakStatement",
"label": null,
"range": [
2015-08-06 07:27:09 +02:00
4747,
4753
],
"loc": {
"start": {
"line": 122,
"column": 12
},
"end": {
"line": 122,
"column": 18
}
},
"leadingComments": [
{
"type": "Block",
"value": " jshint ignore:end ",
"range": [
2015-08-06 07:27:09 +02:00
4710,
4733
],
"loc": {
"start": {
"line": 121,
"column": 16
},
"end": {
"line": 121,
"column": 39
}
}
}
]
}
],
"range": [
2015-08-06 07:27:09 +02:00
4393,
4753
],
"loc": {
"start": {
"line": 117,
"column": 12
},
"end": {
"line": 122,
"column": 18
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
3066,
4764
],
"loc": {
"start": {
"line": 92,
"column": 8
},
"end": {
"line": 123,
"column": 9
}
}
},
{
"type": "ReturnStatement",
"argument": {
"type": "Identifier",
"name": "oDate",
"range": [
2015-08-06 07:27:09 +02:00
4781,
4786
],
"loc": {
"start": {
"line": 124,
"column": 15
},
"end": {
"line": 124,
"column": 20
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
4774,
4787
],
"loc": {
"start": {
"line": 124,
"column": 8
},
"end": {
"line": 124,
"column": 21
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
2851,
4794
],
"loc": {
"start": {
"line": 82,
"column": 31
},
"end": {
"line": 125,
"column": 5
}
}
},
"generator": false,
"expression": false,
"range": [
2015-08-06 07:27:09 +02:00
2830,
4794
],
"loc": {
"start": {
"line": 82,
"column": 10
},
"end": {
"line": 125,
"column": 5
}
}
},
"kind": "init",
"method": true,
"shorthand": false,
"computed": false,
"range": [
2015-08-06 07:27:09 +02:00
2824,
4794
],
"loc": {
"start": {
"line": 82,
"column": 4
},
"end": {
"line": 125,
"column": 5
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
46,
4797
],
"loc": {
"start": {
"line": 5,
"column": 15
},
"end": {
"line": 126,
"column": 1
}
},
"leadingComments": [
{
"type": "Block",
2015-08-06 07:27:09 +02:00
"value": "*\r\n * Date utilities\r\n ",
"range": [
0,
2015-08-06 07:27:09 +02:00
27
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 3,
"column": 3
}
}
}
],
"trailingComments": []
},
"range": [
2015-08-06 07:27:09 +02:00
31,
4798
],
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 126,
"column": 2
}
},
"leadingComments": [
{
"type": "Block",
2015-08-06 07:27:09 +02:00
"value": "*\r\n * Date utilities\r\n ",
"range": [
0,
2015-08-06 07:27:09 +02:00
27
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 3,
"column": 3
}
}
}
]
},
{
"type": "FunctionDeclaration",
"id": {
"type": "Identifier",
"name": "y2kDate",
"range": [
2015-08-06 07:27:09 +02:00
4811,
4818
],
"loc": {
"start": {
"line": 128,
"column": 9
},
"end": {
"line": 128,
"column": 16
}
}
},
"params": [
{
"type": "Identifier",
"name": "yr",
"range": [
2015-08-06 07:27:09 +02:00
4819,
4821
],
"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": [
2015-08-06 07:27:09 +02:00
4832,
4834
],
"loc": {
"start": {
"line": 129,
"column": 7
},
"end": {
"line": 129,
"column": 9
}
}
},
"right": {
"type": "Identifier",
"name": "undefined",
"range": [
2015-08-06 07:27:09 +02:00
4839,
4848
],
"loc": {
"start": {
"line": 129,
"column": 14
},
"end": {
"line": 129,
"column": 23
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
4832,
4848
],
"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": [
2015-08-06 07:27:09 +02:00
4867,
4868
],
"loc": {
"start": {
"line": 130,
"column": 15
},
"end": {
"line": 130,
"column": 16
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
4860,
4869
],
"loc": {
"start": {
"line": 130,
"column": 8
},
"end": {
"line": 130,
"column": 17
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
4849,
4876
],
"loc": {
"start": {
"line": 129,
"column": 24
},
"end": {
"line": 131,
"column": 5
}
}
},
"alternate": null,
"range": [
2015-08-06 07:27:09 +02:00
4829,
4876
],
"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": [
2015-08-06 07:27:09 +02:00
4885,
4887
],
"loc": {
"start": {
"line": 132,
"column": 7
},
"end": {
"line": 132,
"column": 9
}
}
},
"property": {
"type": "Identifier",
"name": "length",
"range": [
2015-08-06 07:27:09 +02:00
4888,
4894
],
"loc": {
"start": {
"line": 132,
"column": 10
},
"end": {
"line": 132,
"column": 16
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
4885,
4894
],
"loc": {
"start": {
"line": 132,
"column": 7
},
"end": {
"line": 132,
"column": 16
}
}
},
"right": {
"type": "Literal",
"value": 2,
"raw": "2",
"range": [
2015-08-06 07:27:09 +02:00
4895,
4896
],
"loc": {
"start": {
"line": 132,
"column": 17
},
"end": {
"line": 132,
"column": 18
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
4885,
4896
],
"loc": {
"start": {
"line": 132,
"column": 7
},
"end": {
"line": 132,
"column": 18
}
}
},
"consequent": {
"type": "BlockStatement",
"body": [
{
"type": "ReturnStatement",
"argument": {
"type": "Identifier",
"name": "yr",
"range": [
2015-08-06 07:27:09 +02:00
4915,
4917
],
"loc": {
"start": {
"line": 133,
"column": 15
},
"end": {
"line": 133,
"column": 17
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
4908,
4918
],
"loc": {
"start": {
"line": 133,
"column": 8
},
"end": {
"line": 133,
"column": 18
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
4897,
4925
],
"loc": {
"start": {
"line": 132,
"column": 19
},
"end": {
"line": 134,
"column": 5
}
}
},
"alternate": null,
"range": [
2015-08-06 07:27:09 +02:00
4882,
4925
],
"loc": {
"start": {
"line": 132,
"column": 4
},
"end": {
"line": 134,
"column": 5
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "y",
"range": [
2015-08-06 07:27:09 +02:00
4935,
4936
],
"loc": {
"start": {
"line": 135,
"column": 8
},
"end": {
"line": 135,
"column": 9
}
}
},
"init": null,
"range": [
2015-08-06 07:27:09 +02:00
4935,
4936
],
"loc": {
"start": {
"line": 135,
"column": 8
},
"end": {
"line": 135,
"column": 9
}
}
}
],
"kind": "let",
"range": [
2015-08-06 07:27:09 +02:00
4931,
4937
],
"loc": {
"start": {
"line": 135,
"column": 4
},
"end": {
"line": 135,
"column": 10
}
},
"trailingComments": [
{
"type": "Line",
"value": ">50 belong to 1900",
"range": [
2015-08-06 07:27:09 +02:00
4943,
4963
],
"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": [
2015-08-06 07:27:09 +02:00
4972,
4974
],
"loc": {
"start": {
"line": 137,
"column": 7
},
"end": {
"line": 137,
"column": 9
}
}
},
"right": {
"type": "Literal",
"value": 99,
"raw": "99",
"range": [
2015-08-06 07:27:09 +02:00
4978,
4980
],
"loc": {
"start": {
"line": 137,
"column": 13
},
"end": {
"line": 137,
"column": 15
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
4972,
4980
],
"loc": {
"start": {
"line": 137,
"column": 7
},
"end": {
"line": 137,
"column": 15
}
}
},
"right": {
"type": "BinaryExpression",
"operator": ">",
"left": {
"type": "Identifier",
"name": "yr",
"range": [
2015-08-06 07:27:09 +02:00
4984,
4986
],
"loc": {
"start": {
"line": 137,
"column": 19
},
"end": {
"line": 137,
"column": 21
}
}
},
"right": {
"type": "Literal",
"value": 50,
"raw": "50",
"range": [
2015-08-06 07:27:09 +02:00
4987,
4989
],
"loc": {
"start": {
"line": 137,
"column": 22
},
"end": {
"line": 137,
"column": 24
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
4984,
4989
],
"loc": {
"start": {
"line": 137,
"column": 19
},
"end": {
"line": 137,
"column": 24
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
4972,
4989
],
"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": [
2015-08-06 07:27:09 +02:00
5001,
5002
],
"loc": {
"start": {
"line": 138,
"column": 8
},
"end": {
"line": 138,
"column": 9
}
}
},
"right": {
"type": "BinaryExpression",
"operator": "+",
"left": {
"type": "Literal",
"value": "19",
"raw": "'19'",
"range": [
2015-08-06 07:27:09 +02:00
5005,
5009
],
"loc": {
"start": {
"line": 138,
"column": 12
},
"end": {
"line": 138,
"column": 16
}
}
},
"right": {
"type": "Identifier",
"name": "yr",
"range": [
2015-08-06 07:27:09 +02:00
5012,
5014
],
"loc": {
"start": {
"line": 138,
"column": 19
},
"end": {
"line": 138,
"column": 21
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
5005,
5014
],
"loc": {
"start": {
"line": 138,
"column": 12
},
"end": {
"line": 138,
"column": 21
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
5001,
5014
],
"loc": {
"start": {
"line": 138,
"column": 8
},
"end": {
"line": 138,
"column": 21
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
5001,
5015
],
"loc": {
"start": {
"line": 138,
"column": 8
},
"end": {
"line": 138,
"column": 22
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
4990,
5022
],
"loc": {
"start": {
"line": 137,
"column": 25
},
"end": {
"line": 139,
"column": 5
}
}
},
"alternate": null,
"range": [
2015-08-06 07:27:09 +02:00
4969,
5022
],
"loc": {
"start": {
"line": 137,
"column": 4
},
"end": {
"line": 139,
"column": 5
}
},
"leadingComments": [
{
"type": "Line",
"value": ">50 belong to 1900",
"range": [
2015-08-06 07:27:09 +02:00
4943,
4963
],
"loc": {
"start": {
"line": 136,
"column": 4
},
"end": {
"line": 136,
"column": 24
}
}
}
],
"trailingComments": [
{
"type": "Line",
"value": "<50 belong to 2000",
"range": [
2015-08-06 07:27:09 +02:00
5028,
5048
],
"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": [
2015-08-06 07:27:09 +02:00
5057,
5059
],
"loc": {
"start": {
"line": 141,
"column": 7
},
"end": {
"line": 141,
"column": 9
}
}
},
"right": {
"type": "Literal",
"value": 50,
"raw": "50",
"range": [
2015-08-06 07:27:09 +02:00
5060,
5062
],
"loc": {
"start": {
"line": 141,
"column": 10
},
"end": {
"line": 141,
"column": 12
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
5057,
5062
],
"loc": {
"start": {
"line": 141,
"column": 7
},
"end": {
"line": 141,
"column": 12
}
}
},
"right": {
"type": "BinaryExpression",
"operator": "===",
"left": {
"type": "Identifier",
"name": "yr",
"range": [
2015-08-06 07:27:09 +02:00
5066,
5068
],
"loc": {
"start": {
"line": 141,
"column": 16
},
"end": {
"line": 141,
"column": 18
}
}
},
"right": {
"type": "Literal",
"value": "00",
"raw": "'00'",
"range": [
2015-08-06 07:27:09 +02:00
5073,
5077
],
"loc": {
"start": {
"line": 141,
"column": 23
},
"end": {
"line": 141,
"column": 27
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
5066,
5077
],
"loc": {
"start": {
"line": 141,
"column": 16
},
"end": {
"line": 141,
"column": 27
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
5057,
5077
],
"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": [
2015-08-06 07:27:09 +02:00
5089,
5090
],
"loc": {
"start": {
"line": 142,
"column": 8
},
"end": {
"line": 142,
"column": 9
}
}
},
"right": {
"type": "BinaryExpression",
"operator": "+",
"left": {
"type": "Literal",
"value": "20",
"raw": "'20'",
"range": [
2015-08-06 07:27:09 +02:00
5093,
5097
],
"loc": {
"start": {
"line": 142,
"column": 12
},
"end": {
"line": 142,
"column": 16
}
}
},
"right": {
"type": "Identifier",
"name": "yr",
"range": [
2015-08-06 07:27:09 +02:00
5100,
5102
],
"loc": {
"start": {
"line": 142,
"column": 19
},
"end": {
"line": 142,
"column": 21
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
5093,
5102
],
"loc": {
"start": {
"line": 142,
"column": 12
},
"end": {
"line": 142,
"column": 21
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
5089,
5102
],
"loc": {
"start": {
"line": 142,
"column": 8
},
"end": {
"line": 142,
"column": 21
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
5089,
5103
],
"loc": {
"start": {
"line": 142,
"column": 8
},
"end": {
"line": 142,
"column": 22
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
5078,
5110
],
"loc": {
"start": {
"line": 141,
"column": 28
},
"end": {
"line": 143,
"column": 5
}
}
},
"alternate": null,
"range": [
2015-08-06 07:27:09 +02:00
5054,
5110
],
"loc": {
"start": {
"line": 141,
"column": 4
},
"end": {
"line": 143,
"column": 5
}
},
"leadingComments": [
{
"type": "Line",
"value": "<50 belong to 2000",
"range": [
2015-08-06 07:27:09 +02:00
5028,
5048
],
"loc": {
"start": {
"line": 140,
"column": 4
},
"end": {
"line": 140,
"column": 24
}
}
}
]
},
{
"type": "ReturnStatement",
"argument": {
"type": "Identifier",
"name": "y",
"range": [
2015-08-06 07:27:09 +02:00
5123,
5124
],
"loc": {
"start": {
"line": 144,
"column": 11
},
"end": {
"line": 144,
"column": 12
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
5116,
5125
],
"loc": {
"start": {
"line": 144,
"column": 4
},
"end": {
"line": 144,
"column": 13
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
4822,
5128
],
"loc": {
"start": {
"line": 128,
"column": 20
},
"end": {
"line": 145,
"column": 1
}
}
},
"generator": false,
"expression": false,
"range": [
2015-08-06 07:27:09 +02:00
4802,
5128
],
"loc": {
"start": {
"line": 128,
"column": 0
},
"end": {
"line": 145,
"column": 1
}
}
},
{
"type": "FunctionDeclaration",
"id": {
"type": "Identifier",
"name": "mmm2mm",
"range": [
2015-08-06 07:27:09 +02:00
5141,
5147
],
"loc": {
"start": {
"line": 147,
"column": 9
},
"end": {
"line": 147,
"column": 15
}
}
},
"params": [
{
"type": "Identifier",
"name": "mmm",
"range": [
2015-08-06 07:27:09 +02:00
5148,
5151
],
"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": [
2015-08-06 07:27:09 +02:00
5162,
5165
],
"loc": {
"start": {
"line": 148,
"column": 7
},
"end": {
"line": 148,
"column": 10
}
}
},
"right": {
"type": "Identifier",
"name": "undefined",
"range": [
2015-08-06 07:27:09 +02:00
5170,
5179
],
"loc": {
"start": {
"line": 148,
"column": 15
},
"end": {
"line": 148,
"column": 24
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
5162,
5179
],
"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": [
2015-08-06 07:27:09 +02:00
5198,
5199
],
"loc": {
"start": {
"line": 149,
"column": 15
},
"end": {
"line": 149,
"column": 16
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
5191,
5200
],
"loc": {
"start": {
"line": 149,
"column": 8
},
"end": {
"line": 149,
"column": 17
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
5180,
5207
],
"loc": {
"start": {
"line": 148,
"column": 25
},
"end": {
"line": 150,
"column": 5
}
}
},
"alternate": null,
"range": [
2015-08-06 07:27:09 +02:00
5159,
5207
],
"loc": {
"start": {
"line": 148,
"column": 4
},
"end": {
"line": 150,
"column": 5
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "mondigit",
"range": [
2015-08-06 07:27:09 +02:00
5217,
5225
],
"loc": {
"start": {
"line": 151,
"column": 8
},
"end": {
"line": 151,
"column": 16
}
}
},
"init": null,
"range": [
2015-08-06 07:27:09 +02:00
5217,
5225
],
"loc": {
"start": {
"line": 151,
"column": 8
},
"end": {
"line": 151,
"column": 16
}
}
}
],
"kind": "let",
"range": [
2015-08-06 07:27:09 +02:00
5213,
5226
],
"loc": {
"start": {
"line": 151,
"column": 4
},
"end": {
"line": 151,
"column": 17
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "MONTH_NAMES",
"range": [
2015-08-06 07:27:09 +02:00
5236,
5247
],
"loc": {
"start": {
"line": 152,
"column": 8
},
"end": {
"line": 152,
"column": 19
}
}
},
"init": {
"type": "ArrayExpression",
"elements": [
{
"type": "Literal",
"value": "january",
"raw": "'january'",
"range": [
2015-08-06 07:27:09 +02:00
5261,
5270
],
"loc": {
"start": {
"line": 153,
"column": 8
},
"end": {
"line": 153,
"column": 17
}
}
},
{
"type": "Literal",
"value": "february",
"raw": "'february'",
"range": [
2015-08-06 07:27:09 +02:00
5271,
5281
],
"loc": {
"start": {
"line": 153,
"column": 18
},
"end": {
"line": 153,
"column": 28
}
}
},
{
"type": "Literal",
"value": "march",
"raw": "'march'",
"range": [
2015-08-06 07:27:09 +02:00
5282,
5289
],
"loc": {
"start": {
"line": 153,
"column": 29
},
"end": {
"line": 153,
"column": 36
}
}
},
{
"type": "Literal",
"value": "april",
"raw": "'april'",
"range": [
2015-08-06 07:27:09 +02:00
5290,
5297
],
"loc": {
"start": {
"line": 153,
"column": 37
},
"end": {
"line": 153,
"column": 44
}
}
},
{
"type": "Literal",
"value": "may",
"raw": "'may'",
"range": [
2015-08-06 07:27:09 +02:00
5298,
5303
],
"loc": {
"start": {
"line": 153,
"column": 45
},
"end": {
"line": 153,
"column": 50
}
}
},
{
"type": "Literal",
"value": "june",
"raw": "'june'",
"range": [
2015-08-06 07:27:09 +02:00
5304,
5310
],
"loc": {
"start": {
"line": 153,
"column": 51
},
"end": {
"line": 153,
"column": 57
}
}
},
{
"type": "Literal",
"value": "july",
"raw": "'july'",
"range": [
2015-08-06 07:27:09 +02:00
5311,
5317
],
"loc": {
"start": {
"line": 153,
"column": 58
},
"end": {
"line": 153,
"column": 64
}
}
},
{
"type": "Literal",
"value": "august",
"raw": "'august'",
"range": [
2015-08-06 07:27:09 +02:00
5328,
5336
],
"loc": {
"start": {
"line": 154,
"column": 8
},
"end": {
"line": 154,
"column": 16
}
}
},
{
"type": "Literal",
"value": "september",
"raw": "'september'",
"range": [
2015-08-06 07:27:09 +02:00
5337,
5348
],
"loc": {
"start": {
"line": 154,
"column": 17
},
"end": {
"line": 154,
"column": 28
}
}
},
{
"type": "Literal",
"value": "october",
"raw": "'october'",
"range": [
2015-08-06 07:27:09 +02:00
5349,
5358
],
"loc": {
"start": {
"line": 154,
"column": 29
},
"end": {
"line": 154,
"column": 38
}
}
},
{
"type": "Literal",
"value": "november",
"raw": "'november'",
"range": [
2015-08-06 07:27:09 +02:00
5359,
5369
],
"loc": {
"start": {
"line": 154,
"column": 39
},
"end": {
"line": 154,
"column": 49
}
}
},
{
"type": "Literal",
"value": "december",
"raw": "'december'",
"range": [
2015-08-06 07:27:09 +02:00
5370,
5380
],
"loc": {
"start": {
"line": 154,
"column": 50
},
"end": {
"line": 154,
"column": 60
}
}
},
{
"type": "Literal",
"value": "jan",
"raw": "'jan'",
"range": [
2015-08-06 07:27:09 +02:00
5391,
5396
],
"loc": {
"start": {
"line": 155,
"column": 8
},
"end": {
"line": 155,
"column": 13
}
}
},
{
"type": "Literal",
"value": "feb",
"raw": "'feb'",
"range": [
2015-08-06 07:27:09 +02:00
5397,
5402
],
"loc": {
"start": {
"line": 155,
"column": 14
},
"end": {
"line": 155,
"column": 19
}
}
},
{
"type": "Literal",
"value": "mar",
"raw": "'mar'",
"range": [
2015-08-06 07:27:09 +02:00
5403,
5408
],
"loc": {
"start": {
"line": 155,
"column": 20
},
"end": {
"line": 155,
"column": 25
}
}
},
{
"type": "Literal",
"value": "apr",
"raw": "'apr'",
"range": [
2015-08-06 07:27:09 +02:00
5409,
5414
],
"loc": {
"start": {
"line": 155,
"column": 26
},
"end": {
"line": 155,
"column": 31
}
}
},
{
"type": "Literal",
"value": "may",
"raw": "'may'",
"range": [
2015-08-06 07:27:09 +02:00
5415,
5420
],
"loc": {
"start": {
"line": 155,
"column": 32
},
"end": {
"line": 155,
"column": 37
}
}
},
{
"type": "Literal",
"value": "jun",
"raw": "'jun'",
"range": [
2015-08-06 07:27:09 +02:00
5421,
5426
],
"loc": {
"start": {
"line": 155,
"column": 38
},
"end": {
"line": 155,
"column": 43
}
}
},
{
"type": "Literal",
"value": "jul",
"raw": "'jul'",
"range": [
2015-08-06 07:27:09 +02:00
5427,
5432
],
"loc": {
"start": {
"line": 155,
"column": 44
},
"end": {
"line": 155,
"column": 49
}
}
},
{
"type": "Literal",
"value": "aug",
"raw": "'aug'",
"range": [
2015-08-06 07:27:09 +02:00
5433,
5438
],
"loc": {
"start": {
"line": 155,
"column": 50
},
"end": {
"line": 155,
"column": 55
}
}
},
{
"type": "Literal",
"value": "sep",
"raw": "'sep'",
"range": [
2015-08-06 07:27:09 +02:00
5439,
5444
],
"loc": {
"start": {
"line": 155,
"column": 56
},
"end": {
"line": 155,
"column": 61
}
}
},
{
"type": "Literal",
"value": "oct",
"raw": "'oct'",
"range": [
2015-08-06 07:27:09 +02:00
5445,
5450
],
"loc": {
"start": {
"line": 155,
"column": 62
},
"end": {
"line": 155,
"column": 67
}
}
},
{
"type": "Literal",
"value": "nov",
"raw": "'nov'",
"range": [
2015-08-06 07:27:09 +02:00
5461,
5466
],
"loc": {
"start": {
"line": 156,
"column": 8
},
"end": {
"line": 156,
"column": 13
}
}
},
{
"type": "Literal",
"value": "dec",
"raw": "'dec'",
"range": [
2015-08-06 07:27:09 +02:00
5467,
5472
],
"loc": {
"start": {
"line": 156,
"column": 14
},
"end": {
"line": 156,
"column": 19
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
5250,
5479
],
"loc": {
"start": {
"line": 152,
"column": 22
},
"end": {
"line": 157,
"column": 5
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
5236,
5479
],
"loc": {
"start": {
"line": 152,
"column": 8
},
"end": {
"line": 157,
"column": 5
}
}
}
],
"kind": "let",
"range": [
2015-08-06 07:27:09 +02:00
5232,
5480
],
"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": [
2015-08-06 07:27:09 +02:00
5494,
5497
],
"loc": {
"start": {
"line": 158,
"column": 12
},
"end": {
"line": 158,
"column": 15
}
}
},
"init": {
"type": "Literal",
"value": 0,
"raw": "0",
"range": [
2015-08-06 07:27:09 +02:00
5498,
5499
],
"loc": {
"start": {
"line": 158,
"column": 16
},
"end": {
"line": 158,
"column": 17
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
5494,
5499
],
"loc": {
"start": {
"line": 158,
"column": 12
},
"end": {
"line": 158,
"column": 17
}
}
}
],
"kind": "let",
"range": [
2015-08-06 07:27:09 +02:00
5490,
5499
],
"loc": {
"start": {
"line": 158,
"column": 8
},
"end": {
"line": 158,
"column": 17
}
}
},
"test": {
"type": "BinaryExpression",
"operator": "<",
"left": {
"type": "Identifier",
"name": "m_i",
"range": [
2015-08-06 07:27:09 +02:00
5501,
5504
],
"loc": {
"start": {
"line": 158,
"column": 19
},
"end": {
"line": 158,
"column": 22
}
}
},
"right": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "MONTH_NAMES",
"range": [
2015-08-06 07:27:09 +02:00
5507,
5518
],
"loc": {
"start": {
"line": 158,
"column": 25
},
"end": {
"line": 158,
"column": 36
}
}
},
"property": {
"type": "Identifier",
"name": "length",
"range": [
2015-08-06 07:27:09 +02:00
5519,
5525
],
"loc": {
"start": {
"line": 158,
"column": 37
},
"end": {
"line": 158,
"column": 43
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
5507,
5525
],
"loc": {
"start": {
"line": 158,
"column": 25
},
"end": {
"line": 158,
"column": 43
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
5501,
5525
],
"loc": {
"start": {
"line": 158,
"column": 19
},
"end": {
"line": 158,
"column": 43
}
}
},
"update": {
"type": "UpdateExpression",
"operator": "++",
"argument": {
"type": "Identifier",
"name": "m_i",
"range": [
2015-08-06 07:27:09 +02:00
5527,
5530
],
"loc": {
"start": {
"line": 158,
"column": 45
},
"end": {
"line": 158,
"column": 48
}
}
},
"prefix": false,
"range": [
2015-08-06 07:27:09 +02:00
5527,
5532
],
"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": [
2015-08-06 07:27:09 +02:00
5552,
5562
],
"loc": {
"start": {
"line": 159,
"column": 16
},
"end": {
"line": 159,
"column": 26
}
}
},
"init": {
"type": "MemberExpression",
"computed": true,
"object": {
"type": "Identifier",
"name": "MONTH_NAMES",
"range": [
2015-08-06 07:27:09 +02:00
5565,
5576
],
"loc": {
"start": {
"line": 159,
"column": 29
},
"end": {
"line": 159,
"column": 40
}
}
},
"property": {
"type": "Identifier",
"name": "m_i",
"range": [
2015-08-06 07:27:09 +02:00
5577,
5580
],
"loc": {
"start": {
"line": 159,
"column": 41
},
"end": {
"line": 159,
"column": 44
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
5565,
5581
],
"loc": {
"start": {
"line": 159,
"column": 29
},
"end": {
"line": 159,
"column": 45
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
5552,
5581
],
"loc": {
"start": {
"line": 159,
"column": 16
},
"end": {
"line": 159,
"column": 45
}
}
}
],
"kind": "let",
"range": [
2015-08-06 07:27:09 +02:00
5548,
5582
],
"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": [
2015-08-06 07:27:09 +02:00
5600,
5603
],
"loc": {
"start": {
"line": 160,
"column": 16
},
"end": {
"line": 160,
"column": 19
}
}
},
"property": {
"type": "Identifier",
"name": "toLowerCase",
"range": [
2015-08-06 07:27:09 +02:00
5604,
5615
],
"loc": {
"start": {
"line": 160,
"column": 20
},
"end": {
"line": 160,
"column": 31
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
5600,
5615
],
"loc": {
"start": {
"line": 160,
"column": 16
},
"end": {
"line": 160,
"column": 31
}
}
},
"arguments": [],
"range": [
2015-08-06 07:27:09 +02:00
5600,
5617
],
"loc": {
"start": {
"line": 160,
"column": 16
},
"end": {
"line": 160,
"column": 33
}
}
},
"right": {
"type": "Identifier",
"name": "month_name",
"range": [
2015-08-06 07:27:09 +02:00
5622,
5632
],
"loc": {
"start": {
"line": 160,
"column": 38
},
"end": {
"line": 160,
"column": 48
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
5600,
5632
],
"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": [
2015-08-06 07:27:09 +02:00
5652,
5660
],
"loc": {
"start": {
"line": 161,
"column": 16
},
"end": {
"line": 161,
"column": 24
}
}
},
"right": {
"type": "BinaryExpression",
"operator": "+",
"left": {
"type": "Identifier",
"name": "m_i",
"range": [
2015-08-06 07:27:09 +02:00
5663,
5666
],
"loc": {
"start": {
"line": 161,
"column": 27
},
"end": {
"line": 161,
"column": 30
}
}
},
"right": {
"type": "Literal",
"value": 1,
"raw": "1",
"range": [
2015-08-06 07:27:09 +02:00
5667,
5668
],
"loc": {
"start": {
"line": 161,
"column": 31
},
"end": {
"line": 161,
"column": 32
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
5663,
5668
],
"loc": {
"start": {
"line": 161,
"column": 27
},
"end": {
"line": 161,
"column": 32
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
5652,
5668
],
"loc": {
"start": {
"line": 161,
"column": 16
},
"end": {
"line": 161,
"column": 32
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
5652,
5669
],
"loc": {
"start": {
"line": 161,
"column": 16
},
"end": {
"line": 161,
"column": 33
}
}
},
{
"type": "BreakStatement",
"label": null,
"range": [
2015-08-06 07:27:09 +02:00
5687,
5693
],
"loc": {
"start": {
"line": 162,
"column": 16
},
"end": {
"line": 162,
"column": 22
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
5633,
5708
],
"loc": {
"start": {
"line": 160,
"column": 49
},
"end": {
"line": 163,
"column": 13
}
}
},
"alternate": null,
"range": [
2015-08-06 07:27:09 +02:00
5596,
5708
],
"loc": {
"start": {
"line": 160,
"column": 12
},
"end": {
"line": 163,
"column": 13
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
5533,
5715
],
"loc": {
"start": {
"line": 158,
"column": 51
},
"end": {
"line": 164,
"column": 5
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
5486,
5715
],
"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": [
2015-08-06 07:27:09 +02:00
5724,
5732
],
"loc": {
"start": {
"line": 165,
"column": 7
},
"end": {
"line": 165,
"column": 15
}
}
},
"right": {
"type": "Literal",
"value": 11,
"raw": "11",
"range": [
2015-08-06 07:27:09 +02:00
5735,
5737
],
"loc": {
"start": {
"line": 165,
"column": 18
},
"end": {
"line": 165,
"column": 20
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
5724,
5737
],
"loc": {
"start": {
"line": 165,
"column": 7
},
"end": {
"line": 165,
"column": 20
}
}
},
"right": {
"type": "BinaryExpression",
"operator": "<",
"left": {
"type": "Identifier",
"name": "mondigit",
"range": [
2015-08-06 07:27:09 +02:00
5741,
5749
],
"loc": {
"start": {
"line": 165,
"column": 24
},
"end": {
"line": 165,
"column": 32
}
}
},
"right": {
"type": "Literal",
"value": 23,
"raw": "23",
"range": [
2015-08-06 07:27:09 +02:00
5752,
5754
],
"loc": {
"start": {
"line": 165,
"column": 35
},
"end": {
"line": 165,
"column": 37
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
5741,
5754
],
"loc": {
"start": {
"line": 165,
"column": 24
},
"end": {
"line": 165,
"column": 37
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
5724,
5754
],
"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": [
2015-08-06 07:27:09 +02:00
5766,
5774
],
"loc": {
"start": {
"line": 166,
"column": 8
},
"end": {
"line": 166,
"column": 16
}
}
},
"right": {
"type": "BinaryExpression",
"operator": "-",
"left": {
"type": "Identifier",
"name": "mondigit",
"range": [
2015-08-06 07:27:09 +02:00
5777,
5785
],
"loc": {
"start": {
"line": 166,
"column": 19
},
"end": {
"line": 166,
"column": 27
}
}
},
"right": {
"type": "Literal",
"value": 12,
"raw": "12",
"range": [
2015-08-06 07:27:09 +02:00
5788,
5790
],
"loc": {
"start": {
"line": 166,
"column": 30
},
"end": {
"line": 166,
"column": 32
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
5777,
5790
],
"loc": {
"start": {
"line": 166,
"column": 19
},
"end": {
"line": 166,
"column": 32
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
5766,
5790
],
"loc": {
"start": {
"line": 166,
"column": 8
},
"end": {
"line": 166,
"column": 32
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
5766,
5791
],
"loc": {
"start": {
"line": 166,
"column": 8
},
"end": {
"line": 166,
"column": 33
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
5755,
5798
],
"loc": {
"start": {
"line": 165,
"column": 38
},
"end": {
"line": 167,
"column": 5
}
}
},
"alternate": null,
"range": [
2015-08-06 07:27:09 +02:00
5721,
5798
],
"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": [
2015-08-06 07:27:09 +02:00
5807,
5815
],
"loc": {
"start": {
"line": 168,
"column": 7
},
"end": {
"line": 168,
"column": 15
}
}
},
"right": {
"type": "Literal",
"value": 1,
"raw": "1",
"range": [
2015-08-06 07:27:09 +02:00
5818,
5819
],
"loc": {
"start": {
"line": 168,
"column": 18
},
"end": {
"line": 168,
"column": 19
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
5807,
5819
],
"loc": {
"start": {
"line": 168,
"column": 7
},
"end": {
"line": 168,
"column": 19
}
}
},
"right": {
"type": "BinaryExpression",
"operator": ">",
"left": {
"type": "Identifier",
"name": "mondigit",
"range": [
2015-08-06 07:27:09 +02:00
5823,
5831
],
"loc": {
"start": {
"line": 168,
"column": 23
},
"end": {
"line": 168,
"column": 31
}
}
},
"right": {
"type": "Literal",
"value": 12,
"raw": "12",
"range": [
2015-08-06 07:27:09 +02:00
5834,
5836
],
"loc": {
"start": {
"line": 168,
"column": 34
},
"end": {
"line": 168,
"column": 36
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
5823,
5836
],
"loc": {
"start": {
"line": 168,
"column": 23
},
"end": {
"line": 168,
"column": 36
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
5807,
5836
],
"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": [
2015-08-06 07:27:09 +02:00
5855,
5856
],
"loc": {
"start": {
"line": 169,
"column": 15
},
"end": {
"line": 169,
"column": 16
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
5848,
5857
],
"loc": {
"start": {
"line": 169,
"column": 8
},
"end": {
"line": 169,
"column": 17
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
5837,
5864
],
"loc": {
"start": {
"line": 168,
"column": 37
},
"end": {
"line": 170,
"column": 5
}
}
},
"alternate": null,
"range": [
2015-08-06 07:27:09 +02:00
5804,
5864
],
"loc": {
"start": {
"line": 168,
"column": 4
},
"end": {
"line": 170,
"column": 5
}
}
},
{
"type": "ReturnStatement",
"argument": {
"type": "Identifier",
"name": "mondigit",
"range": [
2015-08-06 07:27:09 +02:00
5877,
5885
],
"loc": {
"start": {
"line": 171,
"column": 11
},
"end": {
"line": 171,
"column": 19
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
5870,
5886
],
"loc": {
"start": {
"line": 171,
"column": 4
},
"end": {
"line": 171,
"column": 20
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
5152,
5889
],
"loc": {
"start": {
"line": 147,
"column": 20
},
"end": {
"line": 172,
"column": 1
}
}
},
"generator": false,
"expression": false,
"range": [
2015-08-06 07:27:09 +02:00
5132,
5889
],
"loc": {
"start": {
"line": 147,
"column": 0
},
"end": {
"line": 172,
"column": 1
}
}
}
],
"sourceType": "module",
"range": [
2015-08-06 07:27:09 +02:00
31,
5889
],
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 172,
"column": 1
}
},
"comments": [
{
"type": "Block",
2015-08-06 07:27:09 +02:00
"value": "*\r\n * Date utilities\r\n ",
"range": [
0,
2015-08-06 07:27:09 +02:00
27
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 3,
"column": 3
}
}
},
{
"type": "Line",
"value": " If the year is first",
"range": [
2015-08-06 07:27:09 +02:00
669,
692
],
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 31
}
}
},
{
"type": "Line",
"value": " If the year is second",
"range": [
2015-08-06 07:27:09 +02:00
908,
932
],
"loc": {
"start": {
"line": 28,
"column": 51
},
"end": {
"line": 28,
"column": 75
}
}
},
{
"type": "Line",
"value": " The year must be third",
"range": [
2015-08-06 07:27:09 +02:00
1069,
1094
],
"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": [
2015-08-06 07:27:09 +02:00
1233,
1305
],
"loc": {
"start": {
"line": 35,
"column": 8
},
"end": {
"line": 35,
"column": 80
}
}
},
{
"type": "Line",
"value": " or 4 digit year), fail",
"range": [
2015-08-06 07:27:09 +02:00
1315,
1340
],
"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": [
2015-08-06 07:27:09 +02:00
1464,
1515
],
"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": [
2015-08-06 07:27:09 +02:00
1597,
1654
],
"loc": {
"start": {
"line": 43,
"column": 8
},
"end": {
"line": 43,
"column": 65
}
}
},
{
"type": "Block",
"value": " jshint ignore:start ",
"range": [
2015-08-06 07:27:09 +02:00
3343,
3368
],
"loc": {
"start": {
"line": 98,
"column": 16
},
"end": {
"line": 98,
"column": 41
}
}
},
{
"type": "Block",
"value": " jshint ignore:end ",
"range": [
2015-08-06 07:27:09 +02:00
3624,
3647
],
"loc": {
"start": {
"line": 102,
"column": 16
},
"end": {
"line": 102,
"column": 39
}
}
},
{
"type": "Block",
"value": " jshint ignore:start ",
"range": [
2015-08-06 07:27:09 +02:00
3710,
3735
],
"loc": {
"start": {
"line": 105,
"column": 16
},
"end": {
"line": 105,
"column": 41
}
}
},
{
"type": "Block",
"value": " jshint ignore:end ",
"range": [
2015-08-06 07:27:09 +02:00
3991,
4014
],
"loc": {
"start": {
"line": 109,
"column": 16
},
"end": {
"line": 109,
"column": 39
}
}
},
{
"type": "Block",
"value": " jshint ignore:start ",
"range": [
2015-08-06 07:27:09 +02:00
4077,
4102
],
"loc": {
"start": {
"line": 112,
"column": 16
},
"end": {
"line": 112,
"column": 41
}
}
},
{
"type": "Block",
"value": " jshint ignore:end ",
"range": [
2015-08-06 07:27:09 +02:00
4336,
4359
],
"loc": {
"start": {
"line": 115,
"column": 16
},
"end": {
"line": 115,
"column": 39
}
}
},
{
"type": "Line",
"value": "in case format is not correct",
"range": [
2015-08-06 07:27:09 +02:00
4402,
4433
],
"loc": {
"start": {
"line": 117,
"column": 21
},
"end": {
"line": 117,
"column": 52
}
}
},
{
"type": "Block",
"value": " jshint ignore:start ",
"range": [
2015-08-06 07:27:09 +02:00
4451,
4476
],
"loc": {
"start": {
"line": 118,
"column": 16
},
"end": {
"line": 118,
"column": 41
}
}
},
{
"type": "Block",
"value": " jshint ignore:end ",
"range": [
2015-08-06 07:27:09 +02:00
4710,
4733
],
"loc": {
"start": {
"line": 121,
"column": 16
},
"end": {
"line": 121,
"column": 39
}
}
},
{
"type": "Line",
"value": ">50 belong to 1900",
"range": [
2015-08-06 07:27:09 +02:00
4943,
4963
],
"loc": {
"start": {
"line": 136,
"column": 4
},
"end": {
"line": 136,
"column": 24
}
}
},
{
"type": "Line",
"value": "<50 belong to 2000",
"range": [
2015-08-06 07:27:09 +02:00
5028,
5048
],
"loc": {
"start": {
"line": 140,
"column": 4
},
"end": {
"line": 140,
"column": 24
}
}
}
]
}