UNPKG

awv3

Version:
1,488 lines (1,487 loc) 592 kB
{ "type": "File", "start": 0, "end": 2500, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 98, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 2500, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 98, "column": 0 } }, "sourceType": "module", "body": [ { "type": "ExportNamedDeclaration", "start": 0, "end": 330, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 9, "column": 1 } }, "specifiers": [], "source": null, "declaration": { "type": "FunctionDeclaration", "start": 7, "end": 330, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 9, "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": 330, "loc": { "start": { "line": 1, "column": 27 }, "end": { "line": 9, "column": 1 } }, "body": [ { "type": "VariableDeclaration", "start": 33, "end": 121, "loc": { "start": { "line": 2, "column": 4 }, "end": { "line": 2, "column": 92 } }, "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": 85, "end": 120, "loc": { "start": { "line": 2, "column": 56 }, "end": { "line": 2, "column": 91 } }, "id": { "type": "Identifier", "start": 85, "end": 98, "loc": { "start": { "line": 2, "column": 56 }, "end": { "line": 2, "column": 69 }, "identifierName": "sURLVariables" }, "name": "sURLVariables" }, "init": { "type": "CallExpression", "start": 101, "end": 120, "loc": { "start": { "line": 2, "column": 72 }, "end": { "line": 2, "column": 91 } }, "callee": { "type": "MemberExpression", "start": 101, "end": 115, "loc": { "start": { "line": 2, "column": 72 }, "end": { "line": 2, "column": 86 } }, "object": { "type": "Identifier", "start": 101, "end": 109, "loc": { "start": { "line": 2, "column": 72 }, "end": { "line": 2, "column": 80 }, "identifierName": "sPageURL" }, "name": "sPageURL" }, "property": { "type": "Identifier", "start": 110, "end": 115, "loc": { "start": { "line": 2, "column": 81 }, "end": { "line": 2, "column": 86 }, "identifierName": "split" }, "name": "split" }, "computed": false }, "arguments": [ { "type": "StringLiteral", "start": 116, "end": 119, "loc": { "start": { "line": 2, "column": 87 }, "end": { "line": 2, "column": 90 } }, "extra": { "rawValue": "&", "raw": "'&'" }, "value": "&" } ] } } ], "kind": "var" }, { "type": "ForStatement", "start": 126, "end": 328, "loc": { "start": { "line": 3, "column": 4 }, "end": { "line": 8, "column": 5 } }, "init": { "type": "VariableDeclaration", "start": 131, "end": 140, "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 18 } }, "declarations": [ { "type": "VariableDeclarator", "start": 135, "end": 140, "loc": { "start": { "line": 3, "column": 13 }, "end": { "line": 3, "column": 18 } }, "id": { "type": "Identifier", "start": 135, "end": 136, "loc": { "start": { "line": 3, "column": 13 }, "end": { "line": 3, "column": 14 }, "identifierName": "i" }, "name": "i" }, "init": { "type": "NumericLiteral", "start": 139, "end": 140, "loc": { "start": { "line": 3, "column": 17 }, "end": { "line": 3, "column": 18 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } } ], "kind": "var" }, "test": { "type": "BinaryExpression", "start": 142, "end": 166, "loc": { "start": { "line": 3, "column": 20 }, "end": { "line": 3, "column": 44 } }, "left": { "type": "Identifier", "start": 142, "end": 143, "loc": { "start": { "line": 3, "column": 20 }, "end": { "line": 3, "column": 21 }, "identifierName": "i" }, "name": "i" }, "operator": "<", "right": { "type": "MemberExpression", "start": 146, "end": 166, "loc": { "start": { "line": 3, "column": 24 }, "end": { "line": 3, "column": 44 } }, "object": { "type": "Identifier", "start": 146, "end": 159, "loc": { "start": { "line": 3, "column": 24 }, "end": { "line": 3, "column": 37 }, "identifierName": "sURLVariables" }, "name": "sURLVariables" }, "property": { "type": "Identifier", "start": 160, "end": 166, "loc": { "start": { "line": 3, "column": 38 }, "end": { "line": 3, "column": 44 }, "identifierName": "length" }, "name": "length" }, "computed": false } }, "update": { "type": "UpdateExpression", "start": 168, "end": 171, "loc": { "start": { "line": 3, "column": 46 }, "end": { "line": 3, "column": 49 } }, "operator": "++", "prefix": false, "argument": { "type": "Identifier", "start": 168, "end": 169, "loc": { "start": { "line": 3, "column": 46 }, "end": { "line": 3, "column": 47 }, "identifierName": "i" }, "name": "i" } }, "body": { "type": "BlockStatement", "start": 173, "end": 328, "loc": { "start": { "line": 3, "column": 51 }, "end": { "line": 8, "column": 5 } }, "body": [ { "type": "VariableDeclaration", "start": 183, "end": 232, "loc": { "start": { "line": 4, "column": 8 }, "end": { "line": 4, "column": 57 } }, "declarations": [ { "type": "VariableDeclarator", "start": 187, "end": 231, "loc": { "start": { "line": 4, "column": 12 }, "end": { "line": 4, "column": 56 } }, "id": { "type": "Identifier", "start": 187, "end": 201, "loc": { "start": { "line": 4, "column": 12 }, "end": { "line": 4, "column": 26 }, "identifierName": "sParameterName" }, "name": "sParameterName" }, "init": { "type": "CallExpression", "start": 204, "end": 231, "loc": { "start": { "line": 4, "column": 29 }, "end": { "line": 4, "column": 56 } }, "callee": { "type": "MemberExpression", "start": 204, "end": 226, "loc": { "start": { "line": 4, "column": 29 }, "end": { "line": 4, "column": 51 } }, "object": { "type": "MemberExpression", "start": 204, "end": 220, "loc": { "start": { "line": 4, "column": 29 }, "end": { "line": 4, "column": 45 } }, "object": { "type": "Identifier", "start": 204, "end": 217, "loc": { "start": { "line": 4, "column": 29 }, "end": { "line": 4, "column": 42 }, "identifierName": "sURLVariables" }, "name": "sURLVariables" }, "property": { "type": "Identifier", "start": 218, "end": 219, "loc": { "start": { "line": 4, "column": 43 }, "end": { "line": 4, "column": 44 }, "identifierName": "i" }, "name": "i" }, "computed": true }, "property": { "type": "Identifier", "start": 221, "end": 226, "loc": { "start": { "line": 4, "column": 46 }, "end": { "line": 4, "column": 51 }, "identifierName": "split" }, "name": "split" }, "computed": false }, "arguments": [ { "type": "StringLiteral", "start": 227, "end": 230, "loc": { "start": { "line": 4, "column": 52 }, "end": { "line": 4, "column": 55 } }, "extra": { "rawValue": "=", "raw": "'='" }, "value": "=" } ] } } ], "kind": "var" }, { "type": "IfStatement", "start": 241, "end": 322, "loc": { "start": { "line": 5, "column": 8 }, "end": { "line": 7, "column": 9 } }, "test": { "type": "BinaryExpression", "start": 245, "end": 271, "loc": { "start": { "line": 5, "column": 12 }, "end": { "line": 5, "column": 38 } }, "left": { "type": "MemberExpression", "start": 245, "end": 262, "loc": { "start": { "line": 5, "column": 12 }, "end": { "line": 5, "column": 29 } }, "object": { "type": "Identifier", "start": 245, "end": 259, "loc": { "start": { "line": 5, "column": 12 }, "end": { "line": 5, "column": 26 }, "identifierName": "sParameterName" }, "name": "sParameterName" }, "property": { "type": "NumericLiteral", "start": 260, "end": 261, "loc": { "start": { "line": 5, "column": 27 }, "end": { "line": 5, "column": 28 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 }, "computed": true }, "operator": "==", "right": { "type": "Identifier", "start": 266, "end": 271, "loc": { "start": { "line": 5, "column": 33 }, "end": { "line": 5, "column": 38 }, "identifierName": "param" }, "name": "param" } }, "consequent": { "type": "BlockStatement", "start": 273, "end": 322, "loc": { "start": { "line": 5, "column": 40 }, "end": { "line": 7, "column": 9 } }, "body": [ { "type": "ReturnStatement", "start": 287, "end": 312, "loc": { "start": { "line": 6, "column": 12 }, "end": { "line": 6, "column": 37 } }, "argument": { "type": "MemberExpression", "start": 294, "end": 311, "loc": { "start": { "line": 6, "column": 19 }, "end": { "line": 6, "column": 36 } }, "object": { "type": "Identifier", "start": 294, "end": 308, "loc": { "start": { "line": 6, "column": 19 }, "end": { "line": 6, "column": 33 }, "identifierName": "sParameterName" }, "name": "sParameterName" }, "property": { "type": "NumericLiteral", "start": 309, "end": 310, "loc": { "start": { "line": 6, "column": 34 }, "end": { "line": 6, "column": 35 } }, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 }, "computed": true } } ], "directives": [] }, "alternate": null } ], "directives": [] } } ], "directives": [] }, "leadingComments": [], "trailingComments": [] } }, { "type": "ExportNamedDeclaration", "start": 332, "end": 480, "loc": { "start": { "line": 11, "column": 0 }, "end": { "line": 14, "column": 1 } }, "specifiers": [], "source": null, "declaration": { "type": "FunctionDeclaration", "start": 339, "end": 480, "loc": { "start": { "line": 11, "column": 7 }, "end": { "line": 14, "column": 1 } }, "id": { "type": "Identifier", "start": 348, "end": 356, "loc": { "start": { "line": 11, "column": 16 }, "end": { "line": 11, "column": 24 }, "identifierName": "queryDom" }, "name": "queryDom" }, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 357, "end": 361, "loc": { "start": { "line": 11, "column": 25 }, "end": { "line": 11, "column": 29 }, "identifierName": "item" }, "name": "item" } ], "body": { "type": "BlockStatement", "start": 363, "end": 480, "loc": { "start": { "line": 11, "column": 31 }, "end": { "line": 14, "column": 1 } }, "body": [ { "type": "IfStatement", "start": 369, "end": 461, "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 12, "column": 96 } }, "test": { "type": "LogicalExpression", "start": 373, "end": 423, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 58 } }, "left": { "type": "BinaryExpression", "start": 373, "end": 397, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 32 } }, "left": { "type": "UnaryExpression", "start": 373, "end": 384, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 19 } }, "operator": "typeof", "prefix": true, "argument": { "type": "Identifier", "start": 380, "end": 384, "loc": { "start": { "line": 12, "column": 15 }, "end": { "line": 12, "column": 19 }, "identifierName": "item" }, "name": "item" }, "extra": { "parenthesizedArgument": false } }, "operator": "===", "right": { "type": "StringLiteral", "start": 389, "end": 397, "loc": { "start": { "line": 12, "column": 24 }, "end": { "line": 12, "column": 32 } }, "extra": { "rawValue": "string", "raw": "'string'" }, "value": "string" } }, "operator": "||", "right": { "type": "BinaryExpression", "start": 401, "end": 423, "loc": { "start": { "line": 12, "column": 36 }, "end": { "line": 12, "column": 58 } }, "left": { "type": "Identifier", "start": 401, "end": 405, "loc": { "start": { "line": 12, "column": 36 }, "end": { "line": 12, "column": 40 }, "identifierName": "item" }, "name": "item" }, "operator": "instanceof", "right": { "type": "Identifier", "start": 417, "end": 423, "loc": { "start": { "line": 12, "column": 52 }, "end": { "line": 12, "column": 58 }, "identifierName": "String" }, "name": "String" } } }, "consequent": { "type": "ExpressionStatement", "start": 425, "end": 461, "loc": { "start": { "line": 12, "column": 60 }, "end": { "line": 12, "column": 96 } }, "expression": { "type": "AssignmentExpression", "start": 425, "end": 460, "loc": { "start": { "line": 12, "column": 60 }, "end": { "line": 12, "column": 95 } }, "operator": "=", "left": { "type": "Identifier", "start": 425, "end": 429, "loc": { "start": { "line": 12, "column": 60 }, "end": { "line": 12, "column": 64 }, "identifierName": "item" }, "name": "item" }, "right": { "type": "CallExpression", "start": 432, "end": 460, "loc": { "start": { "line": 12, "column": 67 }, "end": { "line": 12, "column": 95 } }, "callee": { "type": "MemberExpression", "start": 432, "end": 454, "loc": { "start": { "line": 12, "column": 67 }, "end": { "line": 12, "column": 89 } }, "object": { "type": "Identifier", "start": 432, "end": 440, "loc": { "start": { "line": 12, "column": 67 }, "end": { "line": 12, "column": 75 }, "identifierName": "document" }, "name": "document" }, "property": { "type": "Identifier", "start": 441, "end": 454, "loc": { "start": { "line": 12, "column": 76 }, "end": { "line": 12, "column": 89 }, "identifierName": "querySelector" }, "name": "querySelector" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 455, "end": 459, "loc": { "start": { "line": 12, "column": 90 }, "end": { "line": 12, "column": 94 }, "identifierName": "item" }, "name": "item" } ] } } }, "alternate": null }, { "type": "ReturnStatement", "start": 466, "end": 478, "loc": { "start": { "line": 13, "column": 4 }, "end": { "line": 13, "column": 16 } }, "argument": { "type": "Identifier", "start": 473, "end": 477, "loc": { "start": { "line": 13, "column": 11 }, "end": { "line": 13, "column": 15 }, "identifierName": "item" }, "name": "item" } } ], "directives": [] }, "leadingComments": [], "trailingComments": [] } }, { "type": "ExportNamedDeclaration", "start": 482, "end": 1112, "loc": { "start": { "line": 16, "column": 0 }, "end": { "line": 41, "column": 1 } }, "specifiers": [], "source": null, "declaration": { "type": "FunctionDeclaration", "start": 489, "end": 1112, "loc": { "start": { "line": 16, "column": 7 }, "end": { "line": 41, "column": 1 } }, "id": { "type": "Identifier", "start": 498, "end": 514, "loc": { "start": { "line": 16, "column": 16 }, "end": { "line": 16, "column": 32 }, "identifierName": "setPrefixedValue" }, "name": "setPrefixedValue" }, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 515, "end": 518, "loc": {