awv3
Version:
⚡ AWV3 embedded CAD
1,488 lines (1,487 loc) • 592 kB
JSON
{
"type": "File",
"start": 0,
"end": 2570,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 103,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 2570,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 103,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ExportNamedDeclaration",
"start": 0,
"end": 338,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 10,
"column": 1
}
},
"specifiers": [],
"source": null,
"declaration": {
"type": "FunctionDeclaration",
"start": 7,
"end": 338,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 10,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 16,
"end": 19,
"loc": {
"start": {
"line": 1,
"column": 16
},
"end": {
"line": 1,
"column": 19
},
"identifierName": "url"
},
"name": "url"
},
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 20,
"end": 25,
"loc": {
"start": {
"line": 1,
"column": 20
},
"end": {
"line": 1,
"column": 25
},
"identifierName": "param"
},
"name": "param"
}
],
"body": {
"type": "BlockStatement",
"start": 27,
"end": 338,
"loc": {
"start": {
"line": 1,
"column": 27
},
"end": {
"line": 10,
"column": 1
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 33,
"end": 129,
"loc": {
"start": {
"line": 2,
"column": 4
},
"end": {
"line": 3,
"column": 44
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 37,
"end": 83,
"loc": {
"start": {
"line": 2,
"column": 8
},
"end": {
"line": 2,
"column": 54
}
},
"id": {
"type": "Identifier",
"start": 37,
"end": 45,
"loc": {
"start": {
"line": 2,
"column": 8
},
"end": {
"line": 2,
"column": 16
},
"identifierName": "sPageURL"
},
"name": "sPageURL"
},
"init": {
"type": "CallExpression",
"start": 48,
"end": 83,
"loc": {
"start": {
"line": 2,
"column": 19
},
"end": {
"line": 2,
"column": 54
}
},
"callee": {
"type": "MemberExpression",
"start": 48,
"end": 80,
"loc": {
"start": {
"line": 2,
"column": 19
},
"end": {
"line": 2,
"column": 51
}
},
"object": {
"type": "MemberExpression",
"start": 48,
"end": 70,
"loc": {
"start": {
"line": 2,
"column": 19
},
"end": {
"line": 2,
"column": 41
}
},
"object": {
"type": "MemberExpression",
"start": 48,
"end": 63,
"loc": {
"start": {
"line": 2,
"column": 19
},
"end": {
"line": 2,
"column": 34
}
},
"object": {
"type": "Identifier",
"start": 48,
"end": 54,
"loc": {
"start": {
"line": 2,
"column": 19
},
"end": {
"line": 2,
"column": 25
},
"identifierName": "window"
},
"name": "window"
},
"property": {
"type": "Identifier",
"start": 55,
"end": 63,
"loc": {
"start": {
"line": 2,
"column": 26
},
"end": {
"line": 2,
"column": 34
},
"identifierName": "location"
},
"name": "location"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 64,
"end": 70,
"loc": {
"start": {
"line": 2,
"column": 35
},
"end": {
"line": 2,
"column": 41
},
"identifierName": "search"
},
"name": "search"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 71,
"end": 80,
"loc": {
"start": {
"line": 2,
"column": 42
},
"end": {
"line": 2,
"column": 51
},
"identifierName": "substring"
},
"name": "substring"
},
"computed": false
},
"arguments": [
{
"type": "NumericLiteral",
"start": 81,
"end": 82,
"loc": {
"start": {
"line": 2,
"column": 52
},
"end": {
"line": 2,
"column": 53
}
},
"extra": {
"rawValue": 1,
"raw": "1"
},
"value": 1
}
]
}
},
{
"type": "VariableDeclarator",
"start": 93,
"end": 128,
"loc": {
"start": {
"line": 3,
"column": 8
},
"end": {
"line": 3,
"column": 43
}
},
"id": {
"type": "Identifier",
"start": 93,
"end": 106,
"loc": {
"start": {
"line": 3,
"column": 8
},
"end": {
"line": 3,
"column": 21
},
"identifierName": "sURLVariables"
},
"name": "sURLVariables"
},
"init": {
"type": "CallExpression",
"start": 109,
"end": 128,
"loc": {
"start": {
"line": 3,
"column": 24
},
"end": {
"line": 3,
"column": 43
}
},
"callee": {
"type": "MemberExpression",
"start": 109,
"end": 123,
"loc": {
"start": {
"line": 3,
"column": 24
},
"end": {
"line": 3,
"column": 38
}
},
"object": {
"type": "Identifier",
"start": 109,
"end": 117,
"loc": {
"start": {
"line": 3,
"column": 24
},
"end": {
"line": 3,
"column": 32
},
"identifierName": "sPageURL"
},
"name": "sPageURL"
},
"property": {
"type": "Identifier",
"start": 118,
"end": 123,
"loc": {
"start": {
"line": 3,
"column": 33
},
"end": {
"line": 3,
"column": 38
},
"identifierName": "split"
},
"name": "split"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 124,
"end": 127,
"loc": {
"start": {
"line": 3,
"column": 39
},
"end": {
"line": 3,
"column": 42
}
},
"extra": {
"rawValue": "&",
"raw": "'&'"
},
"value": "&"
}
]
}
}
],
"kind": "var"
},
{
"type": "ForStatement",
"start": 134,
"end": 336,
"loc": {
"start": {
"line": 4,
"column": 4
},
"end": {
"line": 9,
"column": 5
}
},
"init": {
"type": "VariableDeclaration",
"start": 139,
"end": 148,
"loc": {
"start": {
"line": 4,
"column": 9
},
"end": {
"line": 4,
"column": 18
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 143,
"end": 148,
"loc": {
"start": {
"line": 4,
"column": 13
},
"end": {
"line": 4,
"column": 18
}
},
"id": {
"type": "Identifier",
"start": 143,
"end": 144,
"loc": {
"start": {
"line": 4,
"column": 13
},
"end": {
"line": 4,
"column": 14
},
"identifierName": "i"
},
"name": "i"
},
"init": {
"type": "NumericLiteral",
"start": 147,
"end": 148,
"loc": {
"start": {
"line": 4,
"column": 17
},
"end": {
"line": 4,
"column": 18
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
}
],
"kind": "var"
},
"test": {
"type": "BinaryExpression",
"start": 150,
"end": 174,
"loc": {
"start": {
"line": 4,
"column": 20
},
"end": {
"line": 4,
"column": 44
}
},
"left": {
"type": "Identifier",
"start": 150,
"end": 151,
"loc": {
"start": {
"line": 4,
"column": 20
},
"end": {
"line": 4,
"column": 21
},
"identifierName": "i"
},
"name": "i"
},
"operator": "<",
"right": {
"type": "MemberExpression",
"start": 154,
"end": 174,
"loc": {
"start": {
"line": 4,
"column": 24
},
"end": {
"line": 4,
"column": 44
}
},
"object": {
"type": "Identifier",
"start": 154,
"end": 167,
"loc": {
"start": {
"line": 4,
"column": 24
},
"end": {
"line": 4,
"column": 37
},
"identifierName": "sURLVariables"
},
"name": "sURLVariables"
},
"property": {
"type": "Identifier",
"start": 168,
"end": 174,
"loc": {
"start": {
"line": 4,
"column": 38
},
"end": {
"line": 4,
"column": 44
},
"identifierName": "length"
},
"name": "length"
},
"computed": false
}
},
"update": {
"type": "UpdateExpression",
"start": 176,
"end": 179,
"loc": {
"start": {
"line": 4,
"column": 46
},
"end": {
"line": 4,
"column": 49
}
},
"operator": "++",
"prefix": false,
"argument": {
"type": "Identifier",
"start": 176,
"end": 177,
"loc": {
"start": {
"line": 4,
"column": 46
},
"end": {
"line": 4,
"column": 47
},
"identifierName": "i"
},
"name": "i"
}
},
"body": {
"type": "BlockStatement",
"start": 181,
"end": 336,
"loc": {
"start": {
"line": 4,
"column": 51
},
"end": {
"line": 9,
"column": 5
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 191,
"end": 240,
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 5,
"column": 57
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 195,
"end": 239,
"loc": {
"start": {
"line": 5,
"column": 12
},
"end": {
"line": 5,
"column": 56
}
},
"id": {
"type": "Identifier",
"start": 195,
"end": 209,
"loc": {
"start": {
"line": 5,
"column": 12
},
"end": {
"line": 5,
"column": 26
},
"identifierName": "sParameterName"
},
"name": "sParameterName"
},
"init": {
"type": "CallExpression",
"start": 212,
"end": 239,
"loc": {
"start": {
"line": 5,
"column": 29
},
"end": {
"line": 5,
"column": 56
}
},
"callee": {
"type": "MemberExpression",
"start": 212,
"end": 234,
"loc": {
"start": {
"line": 5,
"column": 29
},
"end": {
"line": 5,
"column": 51
}
},
"object": {
"type": "MemberExpression",
"start": 212,
"end": 228,
"loc": {
"start": {
"line": 5,
"column": 29
},
"end": {
"line": 5,
"column": 45
}
},
"object": {
"type": "Identifier",
"start": 212,
"end": 225,
"loc": {
"start": {
"line": 5,
"column": 29
},
"end": {
"line": 5,
"column": 42
},
"identifierName": "sURLVariables"
},
"name": "sURLVariables"
},
"property": {
"type": "Identifier",
"start": 226,
"end": 227,
"loc": {
"start": {
"line": 5,
"column": 43
},
"end": {
"line": 5,
"column": 44
},
"identifierName": "i"
},
"name": "i"
},
"computed": true
},
"property": {
"type": "Identifier",
"start": 229,
"end": 234,
"loc": {
"start": {
"line": 5,
"column": 46
},
"end": {
"line": 5,
"column": 51
},
"identifierName": "split"
},
"name": "split"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 235,
"end": 238,
"loc": {
"start": {
"line": 5,
"column": 52
},
"end": {
"line": 5,
"column": 55
}
},
"extra": {
"rawValue": "=",
"raw": "'='"
},
"value": "="
}
]
}
}
],
"kind": "var"
},
{
"type": "IfStatement",
"start": 249,
"end": 330,
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 8,
"column": 9
}
},
"test": {
"type": "BinaryExpression",
"start": 253,
"end": 279,
"loc": {
"start": {
"line": 6,
"column": 12
},
"end": {
"line": 6,
"column": 38
}
},
"left": {
"type": "MemberExpression",
"start": 253,
"end": 270,
"loc": {
"start": {
"line": 6,
"column": 12
},
"end": {
"line": 6,
"column": 29
}
},
"object": {
"type": "Identifier",
"start": 253,
"end": 267,
"loc": {
"start": {
"line": 6,
"column": 12
},
"end": {
"line": 6,
"column": 26
},
"identifierName": "sParameterName"
},
"name": "sParameterName"
},
"property": {
"type": "NumericLiteral",
"start": 268,
"end": 269,
"loc": {
"start": {
"line": 6,
"column": 27
},
"end": {
"line": 6,
"column": 28
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
},
"computed": true
},
"operator": "==",
"right": {
"type": "Identifier",
"start": 274,
"end": 279,
"loc": {
"start": {
"line": 6,
"column": 33
},
"end": {
"line": 6,
"column": 38
},
"identifierName": "param"
},
"name": "param"
}
},
"consequent": {
"type": "BlockStatement",
"start": 281,
"end": 330,
"loc": {
"start": {
"line": 6,
"column": 40
},
"end": {
"line": 8,
"column": 9
}
},
"body": [
{
"type": "ReturnStatement",
"start": 295,
"end": 320,
"loc": {
"start": {
"line": 7,
"column": 12
},
"end": {
"line": 7,
"column": 37
}
},
"argument": {
"type": "MemberExpression",
"start": 302,
"end": 319,
"loc": {
"start": {
"line": 7,
"column": 19
},
"end": {
"line": 7,
"column": 36
}
},
"object": {
"type": "Identifier",
"start": 302,
"end": 316,
"loc": {
"start": {
"line": 7,
"column": 19
},
"end": {
"line": 7,
"column": 33
},
"identifierName": "sParameterName"
},
"name": "sParameterName"
},
"property": {
"type": "NumericLiteral",
"start": 317,
"end": 318,
"loc": {
"start": {
"line": 7,
"column": 34
},
"end": {
"line": 7,
"column": 35
}
},
"extra": {
"rawValue": 1,
"raw": "1"
},
"value": 1
},
"computed": true
}
}
],
"directives": []
},
"alternate": null
}
],
"directives": []
}
}
],
"directives": []
},
"leadingComments": [],
"trailingComments": []
}
},
{
"type": "ExportNamedDeclaration",
"start": 340,
"end": 496,
"loc": {
"start": {
"line": 12,
"column": 0
},
"end": {
"line": 16,
"column": 1
}
},
"specifiers": [],
"source": null,
"declaration": {
"type": "FunctionDeclaration",
"start": 347,
"end": 496,
"loc": {
"start": {
"line": 12,
"column": 7
},
"end": {
"line": 16,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 356,
"end": 364,
"loc": {
"start": {
"line": 12,
"column": 16
},
"end": {
"line": 12,
"column": 24
},
"identifierName": "queryDom"
},
"name": "queryDom"
},
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 365,
"end": 369,
"loc": {
"start": {
"line": 12,
"column": 25
},
"end": {
"line": 12,
"column": 29
},
"identifierName": "item"
},
"name": "item"
}
],
"body": {
"type": "BlockStatement",
"start": 371,
"end": 496,
"loc": {
"start": {
"line": 12,
"column": 31
},
"end": {
"line": 16,
"column": 1
}
},
"body": [
{
"type": "IfStatement",
"start": 377,
"end": 477,
"loc": {
"start": {
"line": 13,
"column": 4
},
"end": {
"line": 14,
"column": 44
}
},
"test": {
"type": "LogicalExpression",
"start": 381,
"end": 431,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 58
}
},
"left": {
"type": "BinaryExpression",
"start": 381,
"end": 405,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 32
}
},
"left": {
"type": "UnaryExpression",
"start": 381,
"end": 392,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 19
}
},
"operator": "typeof",
"prefix": true,
"argument": {
"type": "Identifier",
"start": 388,
"end": 392,
"loc": {
"start": {
"line": 13,
"column": 15
},
"end": {
"line": 13,
"column": 19
},
"identifierName": "item"
},
"name": "item"
},
"extra": {
"parenthesizedArgument": false
}
},
"operator": "===",
"right": {
"type": "StringLiteral",
"start": 397,
"end": 405,
"loc": {
"start": {
"line": 13,
"column": 24
},
"end": {
"line": 13,
"column": 32
}
},
"extra": {
"rawValue": "string",
"raw": "'string'"
},
"value": "string"
}
},
"operator": "||",
"right": {
"type": "BinaryExpression",
"start": 409,
"end": 431,
"loc": {
"start": {
"line": 13,
"column": 36
},
"end": {
"line": 13,
"column": 58
}
},
"left": {
"type": "Identifier",
"start": 409,
"end": 413,
"loc": {
"start": {
"line": 13,
"column": 36
},
"end": {
"line": 13,
"column": 40
},
"identifierName": "item"
},
"name": "item"
},
"operator": "instanceof",
"right": {
"type": "Identifier",
"start": 425,
"end": 431,
"loc": {
"start": {
"line": 13,
"column": 52
},
"end": {
"line": 13,
"column": 58
},
"identifierName": "String"
},
"name": "String"
}
}
},
"consequent": {
"type": "ExpressionStatement",
"start": 441,
"end": 477,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 44
}
},
"expression": {
"type": "AssignmentExpression",
"start": 441,
"end": 476,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 43
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 441,
"end": 445,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 12
},
"identifierName": "item"
},
"name": "item"
},
"right": {
"type": "CallExpression",
"start": 448,
"end": 476,
"loc": {
"start": {
"line": 14,
"column": 15
},
"end": {
"line": 14,
"column": 43
}
},
"callee": {
"type": "MemberExpression",
"start": 448,
"end": 470,
"loc": {
"start": {
"line": 14,
"column": 15
},
"end": {
"line": 14,
"column": 37
}
},
"object": {
"type": "Identifier",
"start": 448,
"end": 456,
"loc": {
"start": {
"line": 14,
"column": 15
},
"end": {
"line": 14,
"column": 23
},
"identifierName": "document"
},
"name": "document"
},
"property": {
"type": "Identifier",
"start": 457,
"end": 470,
"loc": {
"start": {
"line": 14,
"column": 24
},
"end": {
"line": 14,
"column": 37
},
"identifierName": "querySelector"
},
"name": "querySelector"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 471,
"end": 475,
"loc": {
"start": {
"line": 14,
"column": 38
},
"end": {
"line": 14,
"column": 42
},
"identifierName": "item"
},
"name": "item"
}
]
}
}
},
"alternate": null
},
{
"type": "ReturnStatement",
"start": 482,
"end": 494,
"loc": {
"start": {
"line": 15,
"column": 4
},
"end": {
"line": 15,
"column": 16
}
},
"argument": {
"type": "Identifier",
"start": 489,
"end": 493,
"loc": {
"start": {
"line": 15,
"column": 11
},
"end": {
"line": 15,
"column": 15
},
"identifierName": "item"
},
"name": "item"
}
}
],
"directives": []
},
"leadingComments": [],
"trailingComments": []
}
},
{
"type": "ExportNamedDeclaration",
"start": 498,
"end": 1122,
"loc": {
"start": {
"line": 18,
"column": 0
},
"end": {
"line": 42,
"column": 1
}
},
"specifiers": [],
"source": null,
"declaration": {
"type": "FunctionDeclaration",
"start": 505,
"end": 1122,
"loc": {
"start": {
"line": 18,
"column": 7
},
"end": {
"line": 42,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 514,
"end": 530,
"loc": {
"start": {
"line": 18,
"column": 16
},
"end": {
"line": 18,
"column": 32
},
"identifierName": "setPrefixedValue"
},
"name": "setPrefixedValue"
},
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 531,
"end": 534,
"loc": {