UNPKG

videojs-overlay

Version:

A plugin to display simple overlays during video playback.

2,743 lines (2,723 loc) 88.8 kB
/*! @name videojs-overlay @version 2.1.4 @license Apache-2.0 */ (function (videojs,QUnit,sinon) { 'use strict'; videojs = videojs && videojs.hasOwnProperty('default') ? videojs['default'] : videojs; QUnit = QUnit && QUnit.hasOwnProperty('default') ? QUnit['default'] : QUnit; sinon = sinon && sinon.hasOwnProperty('default') ? sinon['default'] : sinon; var commonjsGlobal = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}; var empty = {}; var empty$1 = /*#__PURE__*/Object.freeze({ default: empty }); var minDoc = ( empty$1 && empty ) || empty$1; var topLevel = typeof commonjsGlobal !== 'undefined' ? commonjsGlobal : typeof window !== 'undefined' ? window : {}; var doccy; if (typeof document !== 'undefined') { doccy = document; } else { doccy = topLevel['__GLOBAL_DOCUMENT_CACHE@4']; if (!doccy) { doccy = topLevel['__GLOBAL_DOCUMENT_CACHE@4'] = minDoc; } } var document_1 = doccy; function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; } function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } var win; if (typeof window !== "undefined") { win = window; } else if (typeof commonjsGlobal !== "undefined") { win = commonjsGlobal; } else if (typeof self !== "undefined"){ win = self; } else { win = {}; } var window_1 = win; var version = "2.1.4"; var cov_1b8ekuqb3b = function () { var path = '/Users/bcasey/Projects/videojs-overlay/src/plugin.js', hash = 'b3c43471e109ecb3b3c0a5cce94c6af912594920', Function = function () {}.constructor, global = new Function('return this')(), gcv = '__coverage__', coverageData = { path: '/Users/bcasey/Projects/videojs-overlay/src/plugin.js', statementMap: { '0': { start: { line: 5, column: 17 }, end: { line: 16, column: 1 } }, '1': { start: { line: 18, column: 18 }, end: { line: 18, column: 51 } }, '2': { start: { line: 20, column: 12 }, end: { line: 20, column: 34 } }, '3': { start: { line: 21, column: 23 }, end: { line: 21, column: 63 } }, '4': { start: { line: 33, column: 17 }, end: { line: 33, column: 54 } }, '5': { start: { line: 33, column: 22 }, end: { line: 33, column: 54 } }, '6': { start: { line: 42, column: 24 }, end: { line: 42, column: 71 } }, '7': { start: { line: 42, column: 29 }, end: { line: 42, column: 71 } }, '8': { start: { line: 53, column: 4 }, end: { line: 53, column: 27 } }, '9': { start: { line: 55, column: 4 }, end: { line: 67, column: 7 } }, '10': { start: { line: 56, column: 20 }, end: { line: 56, column: 38 } }, '11': { start: { line: 58, column: 6 }, end: { line: 66, column: 7 } }, '12': { start: { line: 59, column: 8 }, end: { line: 59, column: 44 } }, '13': { start: { line: 60, column: 13 }, end: { line: 66, column: 7 } }, '14': { start: { line: 61, column: 8 }, end: { line: 61, column: 37 } }, '15': { start: { line: 64, column: 13 }, end: { line: 66, column: 7 } }, '16': { start: { line: 65, column: 8 }, end: { line: 65, column: 77 } }, '17': { start: { line: 76, column: 4 }, end: { line: 78, column: 7 } }, '18': { start: { line: 77, column: 6 }, end: { line: 77, column: 64 } }, '19': { start: { line: 77, column: 26 }, end: { line: 77, column: 63 } }, '20': { start: { line: 82, column: 4 }, end: { line: 84, column: 5 } }, '21': { start: { line: 83, column: 6 }, end: { line: 83, column: 58 } }, '22': { start: { line: 86, column: 4 }, end: { line: 86, column: 121 } }, '23': { start: { line: 88, column: 4 }, end: { line: 88, column: 16 } }, '24': { start: { line: 92, column: 20 }, end: { line: 92, column: 33 } }, '25': { start: { line: 93, column: 20 }, end: { line: 93, column: 35 } }, '26': { start: { line: 95, column: 23 }, end: { line: 95, column: 102 } }, '27': { start: { line: 96, column: 15 }, end: { line: 104, column: 6 } }, '28': { start: { line: 106, column: 4 }, end: { line: 112, column: 5 } }, '29': { start: { line: 107, column: 6 }, end: { line: 107, column: 29 } }, '30': { start: { line: 108, column: 11 }, end: { line: 112, column: 5 } }, '31': { start: { line: 109, column: 6 }, end: { line: 109, column: 30 } }, '32': { start: { line: 111, column: 6 }, end: { line: 111, column: 37 } }, '33': { start: { line: 114, column: 4 }, end: { line: 114, column: 14 } }, '34': { start: { line: 123, column: 4 }, end: { line: 125, column: 5 } }, '35': { start: { line: 124, column: 6 }, end: { line: 124, column: 13 } }, '36': { start: { line: 127, column: 16 }, end: { line: 127, column: 27 } }, '37': { start: { line: 128, column: 13 }, end: { line: 128, column: 16 } }, '38': { start: { line: 131, column: 4 }, end: { line: 133, column: 5 } }, '39': { start: { line: 132, column: 6 }, end: { line: 132, column: 29 } }, '40': { start: { line: 135, column: 4 }, end: { line: 135, column: 47 } }, '41': { start: { line: 144, column: 4 }, end: { line: 144, column: 17 } }, '42': { start: { line: 146, column: 4 }, end: { line: 146, column: 25 } }, '43': { start: { line: 147, column: 4 }, end: { line: 147, column: 68 } }, '44': { start: { line: 150, column: 4 }, end: { line: 153, column: 5 } }, '45': { start: { line: 151, column: 6 }, end: { line: 151, column: 70 } }, '46': { start: { line: 152, column: 6 }, end: { line: 152, column: 65 } }, '47': { start: { line: 155, column: 4 }, end: { line: 155, column: 66 } }, '48': { start: { line: 157, column: 4 }, end: { line: 157, column: 16 } }, '49': { start: { line: 170, column: 16 }, end: { line: 170, column: 33 } }, '50': { start: { line: 172, column: 4 }, end: { line: 172, column: 56 } }, '51': { start: { line: 181, column: 4 }, end: { line: 181, column: 17 } }, '52': { start: { line: 182, column: 4 }, end: { line: 182, column: 67 } }, '53': { start: { line: 183, column: 4 }, end: { line: 183, column: 24 } }, '54': { start: { line: 184, column: 4 }, end: { line: 184, column: 72 } }, '55': { start: { line: 187, column: 4 }, end: { line: 190, column: 5 } }, '56': { start: { line: 188, column: 6 }, end: { line: 188, column: 66 } }, '57': { start: { line: 189, column: 6 }, end: { line: 189, column: 64 } }, '58': { start: { line: 192, column: 4 }, end: { line: 192, column: 16 } }, '59': { start: { line: 205, column: 18 }, end: { line: 205, column: 37 } }, '60': { start: { line: 206, column: 16 }, end: { line: 206, column: 33 } }, '61': { start: { line: 208, column: 4 }, end: { line: 225, column: 5 } }, '62': { start: { line: 210, column: 6 }, end: { line: 218, column: 7 } }, '63': { start: { line: 211, column: 8 }, end: { line: 211, column: 43 } }, '64': { start: { line: 215, column: 13 }, end: { line: 218, column: 7 } }, '65': { start: { line: 216, column: 8 }, end: { line: 216, column: 39 } }, '66': { start: { line: 217, column: 8 }, end: { line: 217, column: 29 } }, '67': { start: { line: 224, column: 6 }, end: { line: 224, column: 40 } }, '68': { start: { line: 227, column: 4 }, end: { line: 227, column: 26 } }, '69': { start: { line: 236, column: 17 }, end: { line: 236, column: 44 } }, '70': { start: { line: 238, column: 4 }, end: { line: 240, column: 5 } }, '71': { start: { line: 239, column: 6 }, end: { line: 239, column: 18 } }, '72': { start: { line: 249, column: 17 }, end: { line: 249, column: 44 } }, '73': { start: { line: 251, column: 4 }, end: { line: 253, column: 5 } }, '74': { start: { line: 252, column: 6 }, end: { line: 252, column: 18 } }, '75': { start: { line: 263, column: 17 }, end: { line: 263, column: 44 } }, '76': { start: { line: 264, column: 21 }, end: { line: 264, column: 39 } }, '77': { start: { line: 265, column: 18 }, end: { line: 265, column: 37 } }, '78': { start: { line: 266, column: 16 }, end: { line: 266, column: 33 } }, '79': { start: { line: 269, column: 4 }, end: { line: 289, column: 5 } }, '80': { start: { line: 270, column: 6 }, end: { line: 270, column: 36 } }, '81': { start: { line: 275, column: 6 }, end: { line: 288, column: 7 } }, '82': { start: { line: 276, column: 8 }, end: { line: 276, column: 92 } }, '83': { start: { line: 277, column: 8 }, end: { line: 277, column: 40 } }, '84': { start: { line: 278, column: 8 }, end: { line: 278, column: 20 } }, '85': { start: { line: 284, column: 13 }, end: { line: 288, column: 7 } }, '86': { start: { line: 285, column: 8 }, end: { line: 285, column: 111 } }, '87': { start: { line: 286, column: 8 }, end: { line: 286, column: 40 } }, '88': { start: { line: 287, column: 8 }, end: { line: 287, column: 20 } }, '89': { start: { line: 291, column: 4 }, end: { line: 291, column: 30 } }, '90': { start: { line: 295, column: 0 }, end: { line: 295, column: 46 } }, '91': { start: { line: 303, column: 15 }, end: { line: 357, column: 1 } }, '92': { start: { line: 304, column: 19 }, end: { line: 304, column: 58 } }, '93': { start: { line: 307, column: 2 }, end: { line: 315, column: 3 } }, '94': { start: { line: 308, column: 4 }, end: { line: 314, column: 7 } }, '95': { start: { line: 309, column: 6 }, end: { line: 309, column: 32 } }, '96': { start: { line: 310, column: 6 }, end: { line: 312, column: 7 } }, '97': { start: { line: 311, column: 8 }, end: { line: 311, column: 45 } }, '98': { start: { line: 313, column: 6 }, end: { line: 313, column: 24 } }, '99': { start: { line: 317, column: 19 }, end: { line: 317, column: 36 } }, '100': { start: { line: 321, column: 2 }, end: { line: 321, column: 27 } }, '101': { start: { line: 323, column: 2 }, end: { line: 356, column: 5 } }, '102': { start: { line: 324, column: 25 }, end: { line: 324, column: 58 } }, '103': { start: { line: 325, column: 31 }, end: { line: 325, column: 126 } }, '104': { start: { line: 327, column: 4 }, end: { line: 329, column: 5 } }, '105': { start: { line: 328, column: 6 }, end: { line: 328, column: 52 } }, '106': { start: { line: 331, column: 4 }, end: { line: 347, column: 5 } }, '107': { start: { line: 332, column: 27 }, end: { line: 332, column: 56 } }, '108': { start: { line: 334, column: 6 }, end: { line: 336, column: 7 } }, '109': { start: { line: 335, column: 8 }, end: { line: 335, column: 83 } }, '110': { start: { line: 338, column: 6 }, end: { line: 346, column: 7 } }, '111': { start: { line: 339, column: 32 }, end: { line: 339, column: 81 } }, '112': { start: { line: 341, column: 8 }, end: { line: 344, column: 10 } }, '113': { start: { line: 345, column: 8 }, end: { line: 345, column: 31 } }, '114': { start: { line: 349, column: 24 }, end: { line: 349, column: 62 } }, '115': { start: { line: 351, column: 4 }, end: { line: 354, column: 6 } }, '116': { start: { line: 355, column: 4 }, end: { line: 355, column: 23 } }, '117': { start: { line: 359, column: 0 }, end: { line: 359, column: 25 } }, '118': { start: { line: 361, column: 0 }, end: { line: 361, column: 34 } } }, fnMap: { '0': { name: '(anonymous_0)', decl: { start: { line: 33, column: 17 }, end: { line: 33, column: 18 } }, loc: { start: { line: 33, column: 22 }, end: { line: 33, column: 54 } }, line: 33 }, '1': { name: '(anonymous_1)', decl: { start: { line: 42, column: 24 }, end: { line: 42, column: 25 } }, loc: { start: { line: 42, column: 29 }, end: { line: 42, column: 71 } }, line: 42 }, '2': { name: '(anonymous_2)', decl: { start: { line: 52, column: 2 }, end: { line: 52, column: 3 } }, loc: { start: { line: 52, column: 31 }, end: { line: 89, column: 3 } }, line: 52 }, '3': { name: '(anonymous_3)', decl: { start: { line: 55, column: 29 }, end: { line: 55, column: 30 } }, loc: { start: { line: 55, column: 36 }, end: { line: 67, column: 5 } }, line: 55 }, '4': { name: '(anonymous_4)', decl: { start: { line: 76, column: 66 }, end: { line: 76, column: 67 } }, loc: { start: { line: 76, column: 74 }, end: { line: 78, column: 5 } }, line: 76 }, '5': { name: '(anonymous_5)', decl: { start: { line: 77, column: 19 }, end: { line: 77, column: 20 } }, loc: { start: { line: 77, column: 26 }, end: { line: 77, column: 63 } }, line: 77 }, '6': { name: '(anonymous_6)', decl: { start: { line: 91, column: 2 }, end: { line: 91, column: 3 } }, loc: { start: { line: 91, column: 13 }, end: { line: 115, column: 3 } }, line: 91 }, '7': { name: '(anonymous_7)', decl: { start: { line: 122, column: 2 }, end: { line: 122, column: 3 } }, loc: { start: { line: 122, column: 17 }, end: { line: 136, column: 3 } }, line: 122 }, '8': { name: '(anonymous_8)', decl: { start: { line: 143, column: 2 }, end: { line: 143, column: 3 } }, loc: { start: { line: 143, column: 9 }, end: { line: 158, column: 3 } }, line: 143 }, '9': { name: '(anonymous_9)', decl: { start: { line: 169, column: 2 }, end: { line: 169, column: 3 } }, loc: { start: { line: 169, column: 26 }, end: { line: 173, column: 3 } }, line: 169 }, '10': { name: '(anonymous_10)', decl: { start: { line: 180, column: 2 }, end: { line: 180, column: 3 } }, loc: { start: { line: 180, column: 9 }, end: { line: 193, column: 3 } }, line: 180 }, '11': { name: '(anonymous_11)', decl: { start: { line: 204, column: 2 }, end: { line: 204, column: 3 } }, loc: { start: { line: 204, column: 26 }, end: { line: 228, column: 3 } }, line: 204 }, '12': { name: '(anonymous_12)', decl: { start: { line: 235, column: 2 }, end: { line: 235, column: 3 } }, loc: { start: { line: 235, column: 20 }, end: { line: 241, column: 3 } }, line: 235 }, '13': { name: '(anonymous_13)', decl: { start: { line: 248, column: 2 }, end: { line: 248, column: 3 } }, loc: { start: { line: 248, column: 18 }, end: { line: 254, column: 3 } }, line: 248 }, '14': { name: '(anonymous_14)', decl: { start: { line: 262, column: 2 }, end: { line: 262, column: 3 } }, loc: { start: { line: 262, column: 21 }, end: { line: 292, column: 3 } }, line: 262 }, '15': { name: '(anonymous_15)', decl: { start: { line: 303, column: 15 }, end: { line: 303, column: 16 } }, loc: { start: { line: 303, column: 33 }, end: { line: 357, column: 1 } }, line: 303 }, '16': { name: '(anonymous_16)', decl: { start: { line: 308, column: 27 }, end: { line: 308, column: 28 } }, loc: { start: { line: 308, column: 38 }, end: { line: 314, column: 5 } }, line: 308 }, '17': { name: '(anonymous_17)', decl: { start: { line: 323, column: 32 }, end: { line: 323, column: 33 } }, loc: { start: { line: 323, column: 37 }, end: { line: 356, column: 3 } }, line: 323 } }, branchMap: { '0': { loc: { start: { line: 20, column: 12 }, end: { line: 20, column: 34 } }, type: 'binary-expr', locations: [{ start: { line: 20, column: 12 }, end: { line: 20, column: 23 } }, { start: { line: 20, column: 27 }, end: { line: 20, column: 34 } }], line: 20 }, '1': { loc: { start: { line: 21, column: 23 }, end: { line: 21, column: 63 } }, type: 'binary-expr', locations: [{ start: { line: 21, column: 23 }, end: { line: 21, column: 45 } }, { start: { line: 21, column: 49 }, end: { line: 21, column: 63 } }], line: 21 }, '2': { loc: { start: { line: 33, column: 22 }, end: { line: 33, column: 54 } }, type: 'binary-expr', locations: [{ start: { line: 33, column: 22 }, end: { line: 33, column: 43 } }, { start: { line: 33, column: 47 }, end: { line: 33, column: 54 } }], line: 33 }, '3': { loc: { start: { line: 42, column: 29 }, end: { line: 42, column: 71 } }, type: 'binary-expr', locations: [{ start: { line: 42, column: 29 }, end: { line: 42, column: 50 } }, { start: { line: 42, column: 54 }, end: { line: 42, column: 71 } }], line: 42 }, '4': { loc: { start: { line: 58, column: 6 }, end: { line: 66, column: 7 } }, type: 'if', locations: [{ start: { line: 58, column: 6 }, end: { line: 66, column: 7 } }, { start: { line: 58, column: 6 }, end: { line: 66, column: 7 } }], line: 58 }, '5': { loc: { start: { line: 60, column: 13 }, end: { line: 66, column: 7 } }, type: 'if', locations: [{ start: { line: 60, column: 13 }, end: { line: 66, column: 7 } }, { start: { line: 60, column: 13 }, end: { line: 66, column: 7 } }], line: 60 }, '6': { loc: { start: { line: 64, column: 13 }, end: { line: 66, column: 7 } }, type: 'if', locations: [{ start: { line: 64, column: 13 }, end: { line: 66, column: 7 } }, { start: { line: 64, column: 13 }, end: { line: 66, column: 7 } }], line: 64 }, '7': { loc: { start: { line: 82, column: 4 }, end: { line: 84, column: 5 } }, type: 'if', locations: [{ start: { line: 82, column: 4 }, end: { line: 84, column: 5 } }, { start: { line: 82, column: 4 }, end: { line: 84, column: 5 } }], line: 82 }, '8': { loc: { start: { line: 86, column: 79 }, end: { line: 86, column: 106 } }, type: 'binary-expr', locations: [{ start: { line: 86, column: 79 }, end: { line: 86, column: 93 } }, { start: { line: 86, column: 97 }, end: { line: 86, column: 106 } }], line: 86 }, '9': { loc: { start: { line: 95, column: 23 }, end: { line: 95, column: 102 } }, type: 'cond-expr', locations: [{ start: { line: 95, column: 48 }, end: { line: 95, column: 72 } }, { start: { line: 95, column: 75 }, end: { line: 95, column: 102 } }], line: 95 }, '10': { loc: { start: { line: 106, column: 4 }, end: { line: 112, column: 5 } }, type: 'if', locations: [{ start: { line: 106, column: 4 }, end: { line: 112, column: 5 } }, { start: { line: 106, column: 4 }, end: { line: 112, column: 5 } }], line: 106 }, '11': { loc: { start: { line: 108, column: 11 }, end: { line: 112, column: 5 } }, type: 'if', locations: [{ start: { line: 108, column: 11 }, end: { line: 112, column: 5 } }, { start: { line: 108, column: 11 }, end: { line: 112, column: 5 } }], line: 108 }, '12': { loc: { start: { line: 123, column: 4 }, end: { line: 125, column: 5 } }, type: 'if', locations: [{ start: { line: 123, column: 4 }, end: { line: 125, column: 5 } }, { start: { line: 123, column: 4 }, end: { line: 125, column: 5 } }], line: 123 }, '13': { loc: { start: { line: 131, column: 4 }, end: { line: 133, column: 5 } }, type: 'if', locations: [{ start: { line: 131, column: 4 }, end: { line: 133, column: 5 } }, { start: { line: 131, column: 4 }, end: { line: 133, column: 5 } }], line: 131 }, '14': { loc: { start: { line: 131, column: 8 }, end: { line: 131, column: 73 } }, type: 'binary-expr', locations: [{ start: { line: 131, column: 8 }, end: { line: 131, column: 35 } }, { start: { line: 131, column: 39 }, end: { line: 131, column: 73 } }], line: 131 }, '15': { loc: { start: { line: 150, column: 4 }, end: { line: 153, column: 5 } }, type: 'if', locations: [{ start: { line: 150, column: 4 }, end: { line: 153, column: 5 } }, { start: { line: 150, column: 4 }, end: { line: 153, column: 5 } }], line: 150 }, '16': { loc: { start: { line: 172, column: 11 }, end: { line: 172, column: 55 } }, type: 'cond-expr', locations: [{ start: { line: 172, column: 28 }, end: { line: 172, column: 39 } }, { start: { line: 172, column: 43 }, end: { line: 172, column: 55 } }], line: 172 }, '17': { loc: { start: { line: 187, column: 4 }, end: { line: 190, column: 5 } }, type: 'if', locations: [{ start: { line: 187, column: 4 }, end: { line: 190, column: 5 } }, { start: { line: 187, column: 4 }, end: { line: 190, column: 5 } }], line: 187 }, '18': { loc: { start: { line: 208, column: 4 }, end: { line: 225, column: 5 } }, type: 'if', locations: [{ start: { line: 208, column: 4 }, end: { line: 225, column: 5 } }, { start: { line: 208, column: 4 }, end: { line: 225, column: 5 } }], line: 208 }, '19': { loc: { start: { line: 210, column: 6 }, end: { line: 218, column: 7 } }, type: 'if', locations: [{ start: { line: 210, column: 6 }, end: { line: 218, column: 7 } }, { start: { line: 210, column: 6 }, end: { line: 218, column: 7 } }], line: 210 }, '20': { loc: { start: { line: 211, column: 15 }, end: { line: 211, column: 42 } }, type: 'binary-expr', locations: [{ start: { line: 211, column: 15 }, end: { line: 211, column: 28 } }, { start: { line: 211, column: 32 }, end: { line: 211, column: 42 } }], line: 211 }, '21': { loc: { start: { line: 215, column: 13 }, end: { line: 218, column: 7 } }, type: 'if', locations: [{ start: { line: 215, column: 13 }, end: { line: 218, column: 7 } }, { start: { line: 215, column: 13 }, end: { line: 218, column: 7 } }], line: 215 }, '22': { loc: { start: { line: 238, column: 4 }, end: { line: 240, column: 5 } }, type: 'if', locations: [{ start: { line: 238, column: 4 }, end: { line: 240, column: 5 } }, { start: { line: 238, column: 4 }, end: { line: 240, column: 5 } }], line: 238 }, '23': { loc: { start: { line: 251, column: 4 }, end: { line: 253, column: 5 } }, type: 'if', locations: [{ start: { line: 251, column: 4 }, end: { line: 253, column: 5 } }, { start: { line: 251, column: 4 }, end: { line: 253, column: 5 } }], line: 251 }, '24': { loc: { start: { line: 269, column: 4 }, end: { line: 289, column: 5 } }, type: 'if', locations: [{ start: { line: 269, column: 4 }, end: { line: 289, column: 5 } }, { start: { line: 269, column: 4 }, end: { line: 289, column: 5 } }], line: 269 }, '25': { loc: { start: { line: 275, column: 6 }, end: { line: 288, column: 7 } }, type: 'if', locations: [{ start: { line: 275, column: 6 }, end: { line: 288, column: 7 } }, { start: { line: 275, column: 6 }, end: { line: 288, column: 7 } }], line: 275 }, '26': { loc: { start: { line: 275, column: 10 }, end: { line: 275, column: 50 } }, type: 'binary-expr', locations: [{ start: { line: 275, column: 10 }, end: { line: 275, column: 23 } }, { start: { line: 275, column: 27 }, end: { line: 275, column: 50 } }], line: 275 }, '27': { loc: { start: { line: 284, column: 13 }, end: { line: 288, column: 7 } }, type: 'if', locations: [{ start: { line: 284, column: 13 }, end: { line: 288, column: 7 } }, { start: { line: 284, column: 13 }, end: { line: 288, column: 7 } }], line: 284 }, '28': { loc: { start: { line: 284, column: 17 }, end: { line: 284, column: 53 } }, type: 'binary-expr', locations: [{ start: { line: 284, column: 17 }, end: { line: 284, column: 37 } }, { start: { line: 284, column: 41 }, end: { line: 284, column: 53 } }], line: 284 }, '29': { loc: { start: { line: 307, column: 2 }, end: { line: 315, column: 3 } }, type: 'if', locations: [{ start: { line: 307, column: 2 }, end: { line: 315, column: 3 } }, { start: { line: 307, column: 2 }, end: { line: 315, column: 3 } }], line: 307 }, '30': { loc: { start: { line: 310, column: 6 }, end: { line: 312, column: 7 } }, type: 'if', locations: [{ start: { line: 310, column: 6 }, end: { line: 312, column: 7 } }, { start: { line: 310, column: 6 }, end: { line: 312, column: 7 } }], line: 310 }, '31': { loc: { start: { line: 325, column: 31 }, end: { line: 325, column: 126 } }, type: 'binary-expr', locations: [{ start: { line: 325, column: 31 }, end: {