UNPKG

skypager-project

Version:
1,581 lines (1,559 loc) 477 kB
module.exports = /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ return installedModules[moduleId].exports; /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ // Flag the module as loaded /******/ module.l = true; /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ // identity function for calling harmory imports with the correct context /******/ __webpack_require__.i = function(value) { return value; }; /******/ // define getter function for harmory exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ Object.defineProperty(exports, name, { /******/ configurable: false, /******/ enumerable: true, /******/ get: getter /******/ }); /******/ }; /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ // __webpack_public_path__ /******/ __webpack_require__.p = "/"; /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 146); /******/ }) /************************************************************************/ /******/ ({ /***/ 146: /***/ function(module, exports, __webpack_require__) { module.exports = __webpack_require__(55); /***/ }, /***/ 55: /***/ function(module, exports) { module.exports = { "path": "/Users/jonathan/Skypager/packages/skypager-project/src/helpers/document-type.js", "ast": { "type": "File", "start": 0, "end": 2366, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 85, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 2366, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 85, "column": 0 } }, "sourceType": "module", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "Object" }, "property": { "type": "Identifier", "name": "defineProperty" }, "computed": false }, "arguments": [ { "type": "Identifier", "name": "exports" }, { "type": "StringLiteral", "extra": { "rawValue": "__esModule", "raw": "\"__esModule\"" }, "value": "__esModule" }, { "type": "ObjectExpression", "properties": [ { "type": "ObjectProperty", "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "name": "value" }, "value": { "type": "BooleanLiteral", "value": true } } ] } ] } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "exports" }, "property": { "type": "Identifier", "name": "DocumentType", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "computed": false }, "right": { "type": "Identifier", "name": "undefined", "trailingComments": [], "leadingComments": [], "innerComments": [] } } }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_extends2" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require" }, "arguments": [ { "type": "StringLiteral", "value": "babel-runtime/helpers/extends", "trailingComments": [], "leadingComments": [], "innerComments": [] } ] } } ] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_extends3" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "_interopRequireDefault" }, "arguments": [ { "type": "Identifier", "name": "_extends2" } ] } } ] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_getPrototypeOf" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require" }, "arguments": [ { "type": "StringLiteral", "value": "babel-runtime/core-js/object/get-prototype-of", "trailingComments": [], "leadingComments": [], "innerComments": [] } ] } } ] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_getPrototypeOf2" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "_interopRequireDefault" }, "arguments": [ { "type": "Identifier", "name": "_getPrototypeOf" } ] } } ] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_classCallCheck2" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require" }, "arguments": [ { "type": "StringLiteral", "value": "babel-runtime/helpers/classCallCheck", "trailingComments": [], "leadingComments": [], "innerComments": [] } ] } } ] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_classCallCheck3" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "_interopRequireDefault" }, "arguments": [ { "type": "Identifier", "name": "_classCallCheck2" } ] } } ] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_createClass2" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require" }, "arguments": [ { "type": "StringLiteral", "value": "babel-runtime/helpers/createClass", "trailingComments": [], "leadingComments": [], "innerComments": [] } ] } } ] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_createClass3" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "_interopRequireDefault" }, "arguments": [ { "type": "Identifier", "name": "_createClass2" } ] } } ] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_possibleConstructorReturn2" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require" }, "arguments": [ { "type": "StringLiteral", "value": "babel-runtime/helpers/possibleConstructorReturn", "trailingComments": [], "leadingComments": [], "innerComments": [] } ] } } ] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_possibleConstructorReturn3" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "_interopRequireDefault" }, "arguments": [ { "type": "Identifier", "name": "_possibleConstructorReturn2" } ] } } ] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_inherits2" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require" }, "arguments": [ { "type": "StringLiteral", "value": "babel-runtime/helpers/inherits", "trailingComments": [], "leadingComments": [], "innerComments": [] } ] } } ] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_inherits3" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "_interopRequireDefault" }, "arguments": [ { "type": "Identifier", "name": "_inherits2" } ] } } ] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_class" }, "init": null }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_temp" }, "init": null } ] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_skypagerRegistry" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require" }, "arguments": [ { "type": "StringLiteral", "value": "skypager-registry", "trailingComments": [], "leadingComments": [], "innerComments": [] } ] } } ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 43 } } }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_helper" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require" }, "arguments": [ { "type": "StringLiteral", "value": "../helper", "trailingComments": [], "leadingComments": [], "innerComments": [] } ] } } ], "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 30 } } }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_helper2" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "_interopRequireDefault" }, "arguments": [ { "type": "Identifier", "name": "_helper" } ] } } ] }, { "type": "FunctionDeclaration", "id": { "type": "Identifier", "name": "_interopRequireDefault" }, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "name": "obj" } ], "body": { "type": "BlockStatement", "body": [ { "type": "ReturnStatement", "argument": { "type": "ConditionalExpression", "test": { "type": "LogicalExpression", "left": { "type": "Identifier", "name": "obj" }, "operator": "&&", "right": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "obj" }, "property": { "type": "Identifier", "name": "__esModule" }, "computed": false } }, "consequent": { "type": "Identifier", "name": "obj" }, "alternate": { "type": "ObjectExpression", "properties": [ { "type": "ObjectProperty", "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "name": "default" }, "value": { "type": "Identifier", "name": "obj" } } ] } } } ], "directives": [] }, "extra": { "parenthesized": true, "parenStart": 3 } }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "start": 89, "end": 101, "loc": { "start": { "line": 4, "column": 13 }, "end": { "line": 4, "column": 25 }, "identifierName": "DocumentType" }, "name": "DocumentType", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "init": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "exports" }, "property": { "type": "Identifier", "start": 89, "end": 101, "loc": { "start": { "line": 4, "column": 13 }, "end": { "line": 4, "column": 25 }, "identifierName": "DocumentType" }, "name": "DocumentType", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "computed": false }, "right": { "type": "SequenceExpression", "expressions": [ { "type": "AssignmentExpression", "operator": "=", "left": { "type": "Identifier", "name": "_temp" }, "right": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "Identifier", "name": "_class" }, "right": { "type": "CallExpression", "callee": { "type": "FunctionExpression", "id": null, "params": [ { "type": "Identifier", "name": "_Helper" } ], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "SequenceExpression", "expressions": [ { "type": "NumericLiteral", "value": 0 }, { "type": "MemberExpression", "object": { "type": "Identifier", "name": "_inherits3" }, "property": { "type": "Identifier", "name": "default" }, "computed": false } ], "trailingComments": [], "leadingComments": [], "innerComments": [] }, "arguments": [ { "type": "Identifier", "name": "DocumentType" }, { "type": "Identifier", "name": "_Helper" } ] } }, { "type": "FunctionDeclaration", "id": { "type": "Identifier", "name": "DocumentType" }, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "SequenceExpression", "expressions": [ { "type": "NumericLiteral", "value": 0 }, { "type": "MemberExpression", "object": { "type": "Identifier", "name": "_classCallCheck3" }, "property": { "type": "Identifier", "name": "default" }, "computed": false } ], "trailingComments": [], "leadingComments": [], "innerComments": [] }, "arguments": [ { "type": "ThisExpression" }, { "type": "Identifier", "name": "DocumentType" } ] } }, { "type": "ReturnStatement", "argument": { "type": "CallExpression", "callee": { "type": "SequenceExpression", "expressions": [ { "type": "NumericLiteral", "value": 0 }, { "type": "MemberExpression", "object": { "type": "Identifier", "name": "_possibleConstructorReturn3" }, "property": { "type": "Identifier", "name": "default" }, "computed": false } ], "trailingComments": [], "leadingComments": [], "innerComments": [] }, "arguments": [ { "type": "ThisExpression" }, { "type": "CallExpression", "callee": { "type": "MemberExpression", "object": { "type": "LogicalExpression", "operator": "||", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "DocumentType" }, "property": { "type": "Identifier", "name": "__proto__" }, "computed": false }, "right": { "type": "CallExpression", "callee": { "type": "SequenceExpression", "expressions": [ { "type": "NumericLiteral", "value": 0 }, { "type": "MemberExpression", "object": { "type": "Identifier", "name": "_getPrototypeOf2" }, "property": { "type": "Identifier", "name": "default" }, "computed": false } ], "trailingComments": [], "leadingComments": [], "innerComments": [] }, "arguments": [ { "type": "Identifier", "name": "DocumentType" } ] } }, "property": { "type": "Identifier", "name": "apply" }, "computed": false }, "arguments": [ { "type": "ThisExpression" }, { "type": "Identifier", "name": "arguments" } ] } ] }, "trailingComments": [], "leadingComments": [], "innerComments": [] } ], "directives": [], "trailingComments": [], "leadingComments": [], "innerComments": [] }, "generator": false, "async": false, "trailingComments": [], "leadingComments": [], "innerComments": [] }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "SequenceExpression", "expressions": [ { "type": "NumericLiteral", "value": 0 }, { "type": "MemberExpression", "object": { "type": "Identifier", "name": "_createClass3" }, "property": { "type": "Identifier", "name": "default" }, "computed": false } ], "trailingComments": [], "leadingComments": [], "innerComments": [] }, "arguments": [ { "type": "Identifier", "name": "DocumentType" }, { "type": "ArrayExpression", "elements": [ { "type": "ObjectExpression", "properties": [ { "type": "ObjectProperty", "key": { "type": "Identifier", "name": "key" }, "value": { "type": "StringLiteral", "value": "loadMatchingDocuments" }, "computed": false, "shorthand": false, "decorators": null }, { "type": "ObjectProperty", "key": { "type": "Identifier", "name": "value" }, "value": { "type": "FunctionExpression", "id": { "type": "Identifier", "name": "loadMatchingDocuments" }, "params": [], "body": { "type": "BlockStatement", "start": 936, "end": 1150, "loc": { "start": { "line": 34, "column": 38 }, "end": { "line": 44, "column": 3 } }, "body": [ { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_this2", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "init": { "type": "ThisExpression" } } ] }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "start": 922, "end": 929, "loc": { "start": { "line": 34, "column": 24 }, "end": { "line": 34, "column": 31 }, "identifierName": "options" }, "name": "options", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "init": { "type": "ConditionalExpression", "test": { "type": "LogicalExpression", "left": { "type": "BinaryExpression", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "arguments", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "property": { "type": "Identifier", "name": "length" }, "computed": false }, "operator": ">", "right": { "type": "NumericLiteral", "value": 0, "trailingComments": [], "leadingComments": [], "innerComments": [] } }, "operator": "&&", "right": { "type": "BinaryExpression", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "arguments", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "property": { "type": "NumericLiteral", "value": 0, "trailingComments": [], "leadingComments": [], "innerComments": [] }, "computed": true }, "operator": "!==", "right": { "type": "Identifier", "name": "undefined" } } }, "consequent": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "arguments", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "property": { "type": "NumericLiteral", "value": 0, "trailingComments": [], "leadingComments": [], "innerComments": [] }, "computed": true }, "alternate": { "type": "ObjectExpression", "start": 932, "end": 934, "loc": { "start": { "line": 34, "column": 34 }, "end": { "line": 34, "column": 36 } }, "properties": [], "trailingComments": [], "leadingComments": [], "innerComments": [] } } } ], "kind": "var" }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_options$ready" }, "init": { "type": "MemberExpression", "object": { "type": "Identifier", "start": 999, "end": 1006, "loc": { "start": { "line": 38, "column": 8 }, "end": { "line": 38, "column": 15 }, "identifierName": "options" }, "name": "options" }, "property": { "type": "Identifier", "start": 957, "end": 962, "loc": { "start": { "line": 36, "column": 6 }, "end": { "line": 36, "column": 11 }, "identifierName": "ready" }, "name": "ready" }, "computed": false } } ], "leadingComments": [] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "start": 957, "end": 962, "loc": { "start": { "line": 36, "column": 6 }, "end": { "line": 36, "column": 11 }, "identifierName": "ready" }, "name": "ready" }, "init": { "type": "ConditionalExpression", "test": { "type": "BinaryExpression", "operator": "===", "left": { "type": "Identifier", "name": "_options$ready" }, "right": { "type": "Identifier", "name": "undefined" } }, "consequent": { "type": "BooleanLiteral", "start": 965, "end": 969, "loc": { "start": { "line": 36, "column": 14 }, "end": { "line": 36, "column": 18 } }, "value": true }, "alternate": { "type": "Identifier", "name": "_options$ready" } } } ] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_options$pattern" }, "init": { "type": "MemberExpression", "object": { "type": "Identifier", "start": 999, "end": 1006, "loc": { "start": { "line": 38, "column": 8 }, "end": { "line": 38, "column": 15 }, "identifierName": "options" }, "name": "options" }, "property": { "type": "Identifier", "start": 977, "end": 984, "loc": { "start": { "line": 37, "column": 6 }, "end": { "line": 37, "column": 13 }, "identifierName": "pattern" }, "name": "pattern" }, "computed": false } } ] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "start": 977, "end": 984, "loc": { "start": { "line": 37, "column": 6 }, "end": { "line": 37, "column": 13 }, "identifierName": "pattern" }, "name": "pattern" }, "init": { "type": "ConditionalExpression", "test": { "type": "BinaryExpression", "operator": "===", "left": { "type": "Identifier", "name": "_options$pattern" }, "right": { "type": "Identifier", "name": "undefined" } }, "consequent": { "type": "StringLiteral", "start": 987, "end": 990, "loc": { "start": { "line": 37, "column": 16 }, "end": { "line": 37, "column": 19 } }, "extra": { "rawValue": "*", "raw": "'*'" }, "value": "*" }, "alternate": { "type": "Identifier", "name": "_options$pattern" } } } ], "trailingComments": [] }, { "type": "ReturnStatement", "start": 1012, "end": 1146, "loc": { "start": { "line": 40, "column": 4 }, "end": { "line": 43, "column": 47 } }, "argument": { "type": "CallExpression", "start": 1019, "end": 1146, "loc": { "start": { "line": 40, "column": 11 }, "end": { "line": 43, "column": 47 } }, "callee": { "type": "MemberExpression", "start": 1019, "end": 1109, "loc": { "start": { "line": 40, "column": 11 }, "end": { "line": 43, "column": 10 } }, "object": { "type": "CallExpression", "start": 1019, "end": 1098, "loc": { "start": { "line": 40, "column": 11 }, "end": { "line": 42, "column": 44 } }, "callee": { "type": "MemberExpression", "start": 1019, "end": 1067, "loc": { "start": { "line": 40, "column": 11 }, "end": { "line": 42, "column": 13 } }, "object": { "type": "CallExpression", "start": 1019, "end": 1053, "loc": { "start": { "line": 40, "column": 11 }, "end": { "line": 41, "column": 21 } }, "callee": { "type": "MemberExpression", "start": 1019, "end": 1044, "loc": { "start": { "line": 40, "column": 11 }, "end": { "line": 41, "column": 12 } }, "object": { "type": "MemberExpression", "start": 1019, "end": 1031, "loc": { "start": { "line": 40, "column": 11