UNPKG

awv3

Version:
1,289 lines (1,288 loc) 66.1 kB
{ "type": "Program", "start": 0, "end": 812, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 35, "column": 0 } }, "sourceType": "module", "body": [ { "type": "ExportDefaultDeclaration", "start": 0, "end": 581, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 23, "column": 1 } }, "declaration": { "type": "ClassDeclaration", "start": 15, "end": 581, "loc": { "start": { "line": 1, "column": 15 }, "end": { "line": 23, "column": 1 } }, "id": { "type": "Identifier", "start": 21, "end": 28, "loc": { "start": { "line": 1, "column": 21 }, "end": { "line": 1, "column": 28 } }, "name": "Element" }, "superClass": null, "body": { "type": "ClassBody", "start": 29, "end": 581, "loc": { "start": { "line": 1, "column": 29 }, "end": { "line": 23, "column": 1 } }, "body": [ { "type": "MethodDefinition", "start": 36, "end": 476, "loc": { "start": { "line": 2, "column": 4 }, "end": { "line": 18, "column": 5 } }, "computed": false, "key": { "type": "Identifier", "start": 36, "end": 47, "loc": { "start": { "line": 2, "column": 4 }, "end": { "line": 2, "column": 15 } }, "name": "constructor" }, "static": false, "kind": "constructor", "value": { "type": "FunctionExpression", "start": 47, "end": 476, "loc": { "start": { "line": 2, "column": 15 }, "end": { "line": 18, "column": 5 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 48, "end": 55, "loc": { "start": { "line": 2, "column": 16 }, "end": { "line": 2, "column": 23 } }, "name": "options" } ], "body": { "type": "BlockStatement", "start": 57, "end": 476, "loc": { "start": { "line": 2, "column": 25 }, "end": { "line": 18, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 78, "end": 395, "loc": { "start": { "line": 4, "column": 8 }, "end": { "line": 15, "column": 10 } }, "expression": { "type": "AssignmentExpression", "start": 78, "end": 394, "loc": { "start": { "line": 4, "column": 8 }, "end": { "line": 15, "column": 9 } }, "operator": "=", "left": { "type": "Identifier", "start": 78, "end": 85, "loc": { "start": { "line": 4, "column": 8 }, "end": { "line": 4, "column": 15 } }, "name": "options" }, "right": { "type": "ObjectExpression", "start": 88, "end": 394, "loc": { "start": { "line": 4, "column": 18 }, "end": { "line": 15, "column": 9 } }, "properties": [ { "type": "Property", "start": 103, "end": 118, "loc": { "start": { "line": 5, "column": 12 }, "end": { "line": 5, "column": 27 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 103, "end": 107, "loc": { "start": { "line": 5, "column": 12 }, "end": { "line": 5, "column": 16 } }, "name": "type" }, "value": { "type": "Identifier", "start": 109, "end": 118, "loc": { "start": { "line": 5, "column": 18 }, "end": { "line": 5, "column": 27 } }, "name": "undefined" }, "kind": "init" }, { "type": "Property", "start": 133, "end": 151, "loc": { "start": { "line": 6, "column": 12 }, "end": { "line": 6, "column": 30 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 133, "end": 140, "loc": { "start": { "line": 6, "column": 12 }, "end": { "line": 6, "column": 19 } }, "name": "tooltip" }, "value": { "type": "Identifier", "start": 142, "end": 151, "loc": { "start": { "line": 6, "column": 21 }, "end": { "line": 6, "column": 30 } }, "name": "undefined" }, "kind": "init" }, { "type": "Property", "start": 166, "end": 182, "loc": { "start": { "line": 7, "column": 12 }, "end": { "line": 7, "column": 28 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 166, "end": 171, "loc": { "start": { "line": 7, "column": 12 }, "end": { "line": 7, "column": 17 } }, "name": "error" }, "value": { "type": "Identifier", "start": 173, "end": 182, "loc": { "start": { "line": 7, "column": 19 }, "end": { "line": 7, "column": 28 } }, "name": "undefined" }, "kind": "init" }, { "type": "Property", "start": 197, "end": 216, "loc": { "start": { "line": 8, "column": 12 }, "end": { "line": 8, "column": 31 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 197, "end": 205, "loc": { "start": { "line": 8, "column": 12 }, "end": { "line": 8, "column": 20 } }, "name": "callback" }, "value": { "type": "Identifier", "start": 207, "end": 216, "loc": { "start": { "line": 8, "column": 22 }, "end": { "line": 8, "column": 31 } }, "name": "undefined" }, "kind": "init" }, { "type": "Property", "start": 231, "end": 244, "loc": { "start": { "line": 9, "column": 12 }, "end": { "line": 9, "column": 25 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 231, "end": 235, "loc": { "start": { "line": 9, "column": 12 }, "end": { "line": 9, "column": 16 } }, "name": "name" }, "value": { "type": "Literal", "start": 237, "end": 244, "loc": { "start": { "line": 9, "column": 18 }, "end": { "line": 9, "column": 25 } }, "value": "Value", "rawValue": "Value", "raw": "'Value'" }, "kind": "init" }, { "type": "Property", "start": 259, "end": 272, "loc": { "start": { "line": 10, "column": 12 }, "end": { "line": 10, "column": 25 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 259, "end": 266, "loc": { "start": { "line": 10, "column": 12 }, "end": { "line": 10, "column": 19 } }, "name": "visible" }, "value": { "type": "Literal", "start": 268, "end": 272, "loc": { "start": { "line": 10, "column": 21 }, "end": { "line": 10, "column": 25 } }, "value": true, "rawValue": true, "raw": "true" }, "kind": "init" }, { "type": "Property", "start": 287, "end": 300, "loc": { "start": { "line": 11, "column": 12 }, "end": { "line": 11, "column": 25 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 287, "end": 294, "loc": { "start": { "line": 11, "column": 12 }, "end": { "line": 11, "column": 19 } }, "name": "enabled" }, "value": { "type": "Literal", "start": 296, "end": 300, "loc": { "start": { "line": 11, "column": 21 }, "end": { "line": 11, "column": 25 } }, "value": true, "rawValue": true, "raw": "true" }, "kind": "init" }, { "type": "Property", "start": 315, "end": 330, "loc": { "start": { "line": 12, "column": 12 }, "end": { "line": 12, "column": 27 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 315, "end": 323, "loc": { "start": { "line": 12, "column": 12 }, "end": { "line": 12, "column": 20 } }, "name": "optional" }, "value": { "type": "Literal", "start": 325, "end": 330, "loc": { "start": { "line": 12, "column": 22 }, "end": { "line": 12, "column": 27 } }, "value": false, "rawValue": false, "raw": "false" }, "kind": "init" }, { "type": "Property", "start": 345, "end": 358, "loc": { "start": { "line": 13, "column": 12 }, "end": { "line": 13, "column": 25 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 345, "end": 351, "loc": { "start": { "line": 13, "column": 12 }, "end": { "line": 13, "column": 18 } }, "name": "active" }, "value": { "type": "Literal", "start": 353, "end": 358, "loc": { "start": { "line": 13, "column": 20 }, "end": { "line": 13, "column": 25 } }, "value": false, "rawValue": false, "raw": "false" }, "kind": "init" }, { "type": "SpreadProperty", "start": 373, "end": 383, "loc": { "start": { "line": 14, "column": 12 }, "end": { "line": 14, "column": 22 } }, "argument": { "type": "Identifier", "start": 376, "end": 383, "loc": { "start": { "line": 14, "column": 15 }, "end": { "line": 14, "column": 22 } }, "name": "options" } } ] } } }, { "type": "ExpressionStatement", "start": 407, "end": 469, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 70 } }, "expression": { "type": "CallExpression", "start": 407, "end": 468, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 69 } }, "callee": { "type": "MemberExpression", "start": 407, "end": 435, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 36 } }, "object": { "type": "CallExpression", "start": 407, "end": 427, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 28 } }, "callee": { "type": "MemberExpression", "start": 407, "end": 418, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 19 } }, "object": { "type": "Identifier", "start": 407, "end": 413, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 14 } }, "name": "Object" }, "property": { "type": "Identifier", "start": 414, "end": 418, "loc": { "start": { "line": 17, "column": 15 }, "end": { "line": 17, "column": 19 } }, "name": "keys" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 419, "end": 426, "loc": { "start": { "line": 17, "column": 20 }, "end": { "line": 17, "column": 27 } }, "name": "options" } ] }, "property": { "type": "Identifier", "start": 428, "end": 435, "loc": { "start": { "line": 17, "column": 29 }, "end": { "line": 17, "column": 36 } }, "name": "forEach" }, "computed": false }, "arguments": [ { "type": "ArrowFunctionExpression", "start": 436, "end": 467, "loc": { "start": { "line": 17, "column": 37 }, "end": { "line": 17, "column": 68 } }, "id": null, "generator": false, "expression": true, "async": false, "params": [ { "type": "Identifier", "start": 436, "end": 439, "loc": { "start": { "line": 17, "column": 37 }, "end": { "line": 17, "column": 40 } }, "name": "key" } ], "body": { "type": "AssignmentExpression", "start": 443, "end": 467, "loc": { "start": { "line": 17, "column": 44 }, "end": { "line": 17, "column": 68 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 443, "end": 452, "loc": { "start": { "line": 17, "column": 44 }, "end": { "line": 17, "column": 53 } }, "object": { "type": "ThisExpression", "start": 443, "end": 447, "loc": { "start": { "line": 17, "column": 44 }, "end": { "line": 17, "column": 48 } } }, "property": { "type": "Identifier", "start": 448, "end": 451, "loc": { "start": { "line": 17, "column": 49 }, "end": { "line": 17, "column": 52 } }, "name": "key" }, "computed": true }, "right": { "type": "MemberExpression", "start": 455, "end": 467, "loc": { "start": { "line": 17, "column": 56 }, "end": { "line": 17, "column": 68 } }, "object": { "type": "Identifier", "start": 455, "end": 462, "loc": { "start": { "line": 17, "column": 56 }, "end": { "line": 17, "column": 63 } }, "name": "options" }, "property": { "type": "Identifier", "start": 463, "end": 466, "loc": { "start": { "line": 17, "column": 64 }, "end": { "line": 17, "column": 67 } }, "name": "key" }, "computed": true } } } ] } } ] } } }, { "type": "MethodDefinition", "start": 484, "end": 578, "loc": { "start": { "line": 20, "column": 4 }, "end": { "line": 22, "column": 5 } }, "computed": false, "key": { "type": "Identifier", "start": 488, "end": 497, "loc": { "start": { "line": 20, "column": 8 }, "end": { "line": 20, "column": 17 } }, "name": "fulfilled" }, "static": false, "kind": "get", "value": { "type": "FunctionExpression", "start": 497, "end": 578, "loc": { "start": { "line": 20, "column": 17 }, "end": { "line": 22, "column": 5 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 500, "end": 578, "loc": { "start": { "line": 20, "column": 20 }, "end": { "line": 22, "column": 5 } }, "body": [ { "type": "ReturnStatement", "start": 511, "end": 571, "loc": { "start": { "line": 21, "column": 8 }, "end": { "line": 21, "column": 68 } }, "argument": { "type": "LogicalExpression", "start": 518, "end": 570, "loc": { "start": { "line": 21, "column": 15 }, "end": { "line": 21, "column": 67 } }, "left": { "type": "MemberExpression", "start": 518, "end": 531, "loc": { "start": { "line": 21, "column": 15 }, "end": { "line": 21, "column": 28 } }, "object": { "type": "ThisExpression", "start": 518, "end": 522, "loc": { "start": { "line": 21, "column": 15 }, "end": { "line": 21, "column": 19 } } }, "property": { "type": "Identifier", "start": 523, "end": 531, "loc": { "start": { "line": 21, "column": 20 }, "end": { "line": 21, "column": 28 } }, "name": "optional" }, "computed": false }, "operator": "||", "right": { "type": "LogicalExpression", "start": 535, "end": 570, "loc": { "start": { "line": 21, "column": 32 }, "end": { "line": 21, "column": 67 } }, "left": { "type": "MemberExpression", "start": 535, "end": 545, "loc": { "start": { "line": 21, "column": 32 }, "end": { "line": 21, "column": 42 } }, "object": { "type": "ThisExpression", "start": 535, "end": 539, "loc": { "start": { "line": 21, "column": 32 }, "end": { "line": 21, "column": 36 } } }, "property": { "type": "Identifier", "start": 540, "end": 545, "loc": { "start": { "line": 21, "column": 37 }, "end": { "line": 21, "column": 42 } }, "name": "value" }, "computed": false }, "operator": "&&", "right": { "type": "BinaryExpression", "start": 549, "end": 570, "loc": { "start": { "line": 21, "column": 46 }, "end": { "line": 21, "column": 67 } }, "left": { "type": "MemberExpression", "start": 549, "end": 566, "loc": { "start": { "line": 21, "column": 46 }, "end": { "line": 21, "column": 63 } }, "object": { "type": "MemberExpression", "start": 549, "end": 559, "loc": { "start": { "line": 21, "column": 46 }, "end": { "line": 21, "column": 56 } }, "object": { "type": "ThisExpression", "start": 549, "end": 553, "loc": { "start": { "line": 21, "column": 46 }, "end": { "line": 21, "column": 50 } } }, "property": { "type": "Identifier", "start": 554, "end": 559, "loc": {