UNPKG

awv3

Version:
1,487 lines (1,486 loc) 146 kB
{ "type": "Program", "start": 0, "end": 1441, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 51, "column": 0 } }, "sourceType": "module", "body": [ { "type": "ImportDeclaration", "start": 0, "end": 36, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 36 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 7, "end": 13, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 13 } }, "local": { "type": "Identifier", "start": 7, "end": 13, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 13 } }, "name": "Events" } } ], "importKind": "value", "source": { "type": "Literal", "start": 19, "end": 35, "loc": { "start": { "line": 1, "column": 19 }, "end": { "line": 1, "column": 35 } }, "value": "../core/events", "rawValue": "../core/events", "raw": "'../core/events'" } }, { "type": "ImportDeclaration", "start": 38, "end": 77, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 39 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 47, "end": 51, "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 13 } }, "imported": { "type": "Identifier", "start": 47, "end": 51, "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 13 } }, "name": "guid" }, "local": { "type": "Identifier", "start": 47, "end": 51, "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 13 } }, "name": "guid" } } ], "importKind": "value", "source": { "type": "Literal", "start": 59, "end": 76, "loc": { "start": { "line": 2, "column": 21 }, "end": { "line": 2, "column": 38 } }, "value": "../core/helpers", "rawValue": "../core/helpers", "raw": "'../core/helpers'" } }, { "type": "ExportDefaultDeclaration", "start": 81, "end": 1439, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 50, "column": 1 } }, "declaration": { "type": "ClassDeclaration", "start": 96, "end": 1439, "loc": { "start": { "line": 4, "column": 15 }, "end": { "line": 50, "column": 1 } }, "id": null, "superClass": { "type": "Identifier", "start": 110, "end": 116, "loc": { "start": { "line": 4, "column": 29 }, "end": { "line": 4, "column": 35 } }, "name": "Events" }, "body": { "type": "ClassBody", "start": 117, "end": 1439, "loc": { "start": { "line": 4, "column": 36 }, "end": { "line": 50, "column": 1 } }, "body": [ { "type": "MethodDefinition", "start": 126, "end": 365, "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 14, "column": 5 } }, "computed": false, "key": { "type": "Identifier", "start": 126, "end": 137, "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 6, "column": 15 } }, "name": "constructor" }, "static": false, "kind": "constructor", "value": { "type": "FunctionExpression", "start": 137, "end": 365, "loc": { "start": { "line": 6, "column": 15 }, "end": { "line": 14, "column": 5 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "AssignmentPattern", "start": 138, "end": 150, "loc": { "start": { "line": 6, "column": 16 }, "end": { "line": 6, "column": 28 } }, "operator": "=", "left": { "type": "Identifier", "start": 138, "end": 145, "loc": { "start": { "line": 6, "column": 16 }, "end": { "line": 6, "column": 23 } }, "name": "options" }, "right": { "type": "ObjectExpression", "start": 148, "end": 150, "loc": { "start": { "line": 6, "column": 26 }, "end": { "line": 6, "column": 28 } }, "properties": [] } } ], "body": { "type": "BlockStatement", "start": 152, "end": 365, "loc": { "start": { "line": 6, "column": 30 }, "end": { "line": 14, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 163, "end": 171, "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 16 } }, "expression": { "type": "CallExpression", "start": 163, "end": 170, "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 15 } }, "callee": { "type": "Super", "start": 163, "end": 168, "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 13 } } }, "arguments": [] } }, { "type": "ExpressionStatement", "start": 181, "end": 198, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 25 } }, "expression": { "type": "AssignmentExpression", "start": 181, "end": 197, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 24 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 181, "end": 188, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 15 } }, "object": { "type": "ThisExpression", "start": 181, "end": 185, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 12 } } }, "property": { "type": "Identifier", "start": 186, "end": 188, "loc": { "start": { "line": 8, "column": 13 }, "end": { "line": 8, "column": 15 } }, "name": "id" }, "computed": false }, "right": { "type": "CallExpression", "start": 191, "end": 197, "loc": { "start": { "line": 8, "column": 18 }, "end": { "line": 8, "column": 24 } }, "callee": { "type": "Identifier", "start": 191, "end": 195, "loc": { "start": { "line": 8, "column": 18 }, "end": { "line": 8, "column": 22 } }, "name": "guid" }, "arguments": [] } } }, { "type": "ExpressionStatement", "start": 208, "end": 227, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 27 } }, "expression": { "type": "AssignmentExpression", "start": 208, "end": 226, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 26 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 208, "end": 218, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 18 } }, "object": { "type": "ThisExpression", "start": 208, "end": 212, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 12 } } }, "property": { "type": "Identifier", "start": 213, "end": 218, "loc": { "start": { "line": 9, "column": 13 }, "end": { "line": 9, "column": 18 } }, "name": "alive" }, "computed": false }, "right": { "type": "Literal", "start": 221, "end": 226, "loc": { "start": { "line": 9, "column": 21 }, "end": { "line": 9, "column": 26 } }, "value": false, "rawValue": false, "raw": "false" } } }, { "type": "ExpressionStatement", "start": 237, "end": 260, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 31 } }, "expression": { "type": "AssignmentExpression", "start": 237, "end": 259, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 30 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 237, "end": 249, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 20 } }, "object": { "type": "ThisExpression", "start": 237, "end": 241, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 12 } } }, "property": { "type": "Identifier", "start": 242, "end": 249, "loc": { "start": { "line": 10, "column": 13 }, "end": { "line": 10, "column": 20 } }, "name": "options" }, "computed": false }, "right": { "type": "Identifier", "start": 252, "end": 259, "loc": { "start": { "line": 10, "column": 23 }, "end": { "line": 10, "column": 30 } }, "name": "options" } } }, { "type": "ExpressionStatement", "start": 270, "end": 294, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 32 } }, "expression": { "type": "AssignmentExpression", "start": 270, "end": 293, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 31 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 270, "end": 281, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 19 } }, "object": { "type": "ThisExpression", "start": 270, "end": 274, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 12 } } }, "property": { "type": "Identifier", "start": 275, "end": 281, "loc": { "start": { "line": 11, "column": 13 }, "end": { "line": 11, "column": 19 } }, "name": "socket" }, "computed": false }, "right": { "type": "Identifier", "start": 284, "end": 293, "loc": { "start": { "line": 11, "column": 22 }, "end": { "line": 11, "column": 31 } }, "name": "undefined" } } }, { "type": "ExpressionStatement", "start": 304, "end": 327, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 31 } }, "expression": { "type": "AssignmentExpression", "start": 304, "end": 326, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 30 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 304, "end": 314, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 18 } }, "object": { "type": "ThisExpression", "start": 304, "end": 308, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 12 } } }, "property": { "type": "Identifier", "start": 309, "end": 314, "loc": { "start": { "line": 12, "column": 13 }, "end": { "line": 12, "column": 18 } }, "name": "tasks" }, "computed": false }, "right": { "type": "NewExpression", "start": 317, "end": 326, "loc": { "start": { "line": 12, "column": 21 }, "end": { "line": 12, "column": 30 } }, "callee": { "type": "Identifier", "start": 321, "end": 324, "loc": { "start": { "line": 12, "column": 25 }, "end": { "line": 12, "column": 28 } }, "name": "Map" }, "arguments": [] } } }, { "type": "ExpressionStatement", "start": 337, "end": 358, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 29 } }, "expression": { "type": "AssignmentExpression", "start": 337, "end": 357, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 28 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 337, "end": 345, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 16 } }, "object": { "type": "ThisExpression", "start": 337, "end": 341, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 12 } } }, "property": { "type": "Identifier", "start": 342, "end": 345, "loc": { "start": { "line": 13, "column": 13 }, "end": { "line": 13, "column": 16 } }, "name": "url" }, "computed": false }, "right": { "type": "Identifier", "start": 348, "end": 357, "loc": { "start": { "line": 13, "column": 19 }, "end": { "line": 13, "column": 28 } }, "name": "undefined" } } } ] } } }, { "type": "MethodDefinition", "start": 373, "end": 473, "loc": { "start": { "line": 16, "column": 4 }, "end": { "line": 18, "column": 5 } }, "computed": false, "key": { "type": "Identifier", "start": 373, "end": 380, "loc": { "start": { "line": 16, "column": 4 }, "end": { "line": 16, "column": 11 } }, "name": "execute" }, "static": false, "kind": "method", "value": { "type": "FunctionExpression", "start": 380, "end": 473, "loc": { "start": { "line": 16, "column": 11 }, "end": { "line": 18, "column": 5 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 381, "end": 385, "loc": { "start": { "line": 16, "column": 12 }, "end": { "line": 16, "column": 16 } }, "name": "task" }, { "type": "Identifier", "start": 387, "end": 394, "loc": { "start": { "line": 16, "column": 18 }, "end": { "line": 16, "column": 25 } }, "name": "factory" } ], "body": { "type": "BlockStatement", "start": 396, "end": 473, "loc": { "start": { "line": 16, "column": 27 }, "end": { "line": 18, "column": 5 } }, "body": [ { "type": "ReturnStatement", "start": 407, "end": 466, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 67 } }, "argument": { "type": "CallExpression", "start": 414, "end": 465, "loc": { "start": { "line": 17, "column": 15 }, "end": { "line": 17, "column": 66 } }, "callee": { "type": "MemberExpression", "start": 414, "end": 426, "loc": { "start": { "line": 17, "column": 15 }, "end": { "line": 17, "column": 27 } }, "object": { "type": "ThisExpression", "start": 414, "end": 418, "loc": { "start": { "line": 17, "column": 15 }, "end": { "line": 17, "column": 19 } } }, "property": { "type": "Identifier", "start": 419, "end": 426, "loc": { "start": { "line": 17, "column": 20 }, "end": { "line": 17, "column": 27 } }, "name": "request" }, "computed": false }, "arguments": [ { "type": "ObjectExpression", "start": 427, "end": 455, "loc": { "start": { "line": 17, "column": 28 }, "end": { "line": 17, "column": 56 } }, "properties": [ { "type": "Property", "start": 429, "end": 447, "loc": { "start": { "line": 17, "column": 30 }, "end": { "line": 17, "column": 48 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 429, "end": 436, "loc": { "start": { "line": 17, "column": 30 }, "end": { "line": 17, "column": 37 } }, "name": "command" }, "value": { "type": "Literal", "start": 438, "end": 447, "loc": { "start": { "line": 17, "column": 39 }, "end": { "line": 17, "column": 48 } }, "value": "Execute", "rawValue": "Execute", "raw": "'Execute'" }, "kind": "init" }, { "type": "Property", "start": 449, "end": 453, "loc": { "start": { "line": 17, "column": 50 }, "end": { "line": 17, "column": 54 } }, "method": false, "shorthand": true, "computed": false, "key": { "type": "Identifier", "start": 449, "end": 453, "loc": { "start": { "line": 17, "column": 50 }, "end": { "line": 17, "column": 54 } }, "name": "task" }, "kind": "init", "value": { "type": "Identifier", "start": 449, "end": 453, "loc": { "start": { "line": 17, "column": 50 }, "end": { "line": 17, "column": 54 } }, "name": "task" } } ] }, { "type": "Identifier", "start": 457, "end": 464, "loc": { "start": { "line": 17, "column": 58 }, "end": { "line": 17, "column": 65 } }, "name": "factory" } ] } } ] } } }, { "type": "MethodDefinition", "start": 481, "end": 645, "loc": { "start": { "line": 20, "column": 4 }, "end": { "line": 23, "column": 5 } }, "computed": false, "key": { "type": "Identifier", "start": 481, "end": 487, "loc": { "start": { "line": 20, "column": 4 }, "end": { "line": 20, "column": 10 } }, "name": "result" }, "static": false, "kind": "method", "value": { "type": "FunctionExpression", "start": 487, "end": 645, "loc": { "start": { "line": 20, "column": 10 }, "end": { "line": 23, "column": 5 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 488, "end": 492, "loc": { "start": { "line": 20, "column": 11 }, "end": { "line": 20, "column": 15 } }, "name": "task" }, { "type": "Identifier", "start": 494, "end": 501, "loc": { "start": { "line": 20, "column": 17 }, "end": { "line": 20, "column": 24 } }, "name": "factory" } ], "body": { "type": "BlockStatement", "start": 503, "end": 645, "loc": { "start": { "line": 20, "column": 26 }, "end": { "line": 23, "column": 5 } }, "body": [ { "type": "ReturnStatement", "start": 514, "end": 638, "loc": { "start": { "line": 21, "column": 8 }, "end": { "line": 22, "column": 46 } }, "argument": { "type": "CallExpression", "start": 521, "end": 637, "loc": { "start": { "line": 21, "column": 15 }, "end": { "line": 22, "column": 45 } }, "callee": { "type": "MemberExpression", "start": 521, "end": 609, "loc": { "start": { "line": 21, "column": 15 }, "end": { "line": 22, "column": 17 } }, "object": { "type": "CallExpression", "start": 521, "end": 590, "loc": { "start": { "line": 21, "column": 15 }, "end": { "line": 21, "column": 84 } }, "callee": { "type": "MemberExpression", "start": 521, "end": 533, "loc": { "start": { "line": 21, "column": 15 }, "end": { "line": 21, "column": 27 } }, "object": { "type": "ThisExpression", "start": 521, "end": 525, "loc": { "start": {