@brightcove/player-loader
Version:
An asynchronous script loader for the Brightcove Player.
2,575 lines (2,521 loc) • 182 kB
JavaScript
/*! @name @brightcove/player-loader @version 1.8.0 @license Apache-2.0 */
(function (QUnit) {
'use strict';
QUnit = QUnit && QUnit.hasOwnProperty('default') ? QUnit['default'] : QUnit;
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
var minDoc = {};
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 _extends() {
_extends = Object.assign || function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
for (var key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
target[key] = source[key];
}
}
}
return target;
};
return _extends.apply(this, arguments);
}
/*! @name @brightcove/player-url @version 1.2.0 @license Apache-2.0 */
var version = "1.2.0";
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
return typeof obj;
} : function (obj) {
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
};
// The parameters that may include JSON.
var JSON_ALLOWED_PARAMS = ['catalogSearch', 'catalogSequence'];
// The parameters that may be set as query string parameters for iframes.
var IFRAME_ALLOWED_QUERY_PARAMS = ['adConfigId', 'applicationId', 'catalogSearch', 'catalogSequence', 'playlistId', 'playlistVideoId', 'videoId'];
/**
* Gets the value of a parameter and encodes it as a string.
*
* For certain keys, JSON is allowed and will be encoded.
*
* @private
* @param {Object} params
* A parameters object. See README for details.
*
* @param {string} key
* The key in the params object.
*
* @return {string|undefined}
* The encoded value - or `undefined` if none.
*/
var getQueryParamValue = function getQueryParamValue(params, key) {
if (!params || params[key] === undefined) {
return;
}
// If it's not a string, such as with a catalog search or sequence, we
// try to encode it as JSON.
if (typeof params[key] !== 'string' && JSON_ALLOWED_PARAMS.indexOf(key) !== -1) {
try {
return encodeURIComponent(JSON.stringify(params[key]));
} catch (x) {
// If it's not a string and we can't encode as JSON, it's ignored entirely.
return;
}
}
return encodeURIComponent(String(params[key]).trim()) || undefined;
};
/**
* In some cases, we need to add query string parameters to an iframe URL.
*
* @private
* @param {Object} params
* An object of query parameters.
*
* @return {string}
* A query string starting with `?`. If no valid parameters are given,
* returns an empty string.
*/
var getQueryString = function getQueryString(params) {
return Object.keys(params).filter(function (k) {
return IFRAME_ALLOWED_QUERY_PARAMS.indexOf(k) !== -1;
}).reduce(function (qs, k) {
var value = getQueryParamValue(params, k);
if (value !== undefined) {
qs += qs ? '&' : '?';
qs += encodeURIComponent(k) + '=' + value;
}
return qs;
}, '');
};
/**
* Generate a URL to a Brightcove Player.
*
* @param {Object} params
* A set of parameters describing the player URL to create.
*
* @param {string} params.accountId
* A Brightcove account ID.
*
* @param {string} [params.playerId="default"]
* A Brightcove player ID.
*
* @param {string} [params.embedId="default"]
* A Brightcove player embed ID.
*
* @param {boolean} [params.iframe=false]
* Whether to return a URL for an HTML document to be embedded in
* an iframe.
*
* @param {boolean} [params.minified=true]
* When the `iframe` argument is `false`, this can be used to control
* whether the minified or unminified JavaScript URL is returned.
*
* @param {string} [params.base="https://players.brightcove.net"]
* A base CDN protocol and hostname. Mainly used for testing.
*
* @return {string}
* A URL to a Brightcove Player.
*/
var brightcovePlayerUrl = function brightcovePlayerUrl(_ref) {
var accountId = _ref.accountId,
_ref$base = _ref.base,
base = _ref$base === undefined ? 'https://players.brightcove.net' : _ref$base,
_ref$playerId = _ref.playerId,
playerId = _ref$playerId === undefined ? 'default' : _ref$playerId,
_ref$embedId = _ref.embedId,
embedId = _ref$embedId === undefined ? 'default' : _ref$embedId,
_ref$iframe = _ref.iframe,
iframe = _ref$iframe === undefined ? false : _ref$iframe,
_ref$minified = _ref.minified,
minified = _ref$minified === undefined ? true : _ref$minified,
_ref$queryParams = _ref.queryParams,
queryParams = _ref$queryParams === undefined ? null : _ref$queryParams;
var ext = '';
if (iframe) {
ext += 'html';
} else {
if (minified) {
ext += 'min.';
}
ext += 'js';
}
if (base.charAt(base.length - 1) === '/') {
base = base.substring(0, base.length - 1);
}
var qs = '';
if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof(queryParams)) === 'object') {
qs = getQueryString(queryParams);
}
accountId = encodeURIComponent(accountId);
playerId = encodeURIComponent(playerId);
embedId = encodeURIComponent(embedId);
return base + '/' + accountId + '/' + playerId + '_' + embedId + '/index.' + ext + qs;
};
/**
* The version of this module.
*
* @type {string}
*/
brightcovePlayerUrl.VERSION = version;
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 cov_2iqe71ebne = function () {
var path = '/Users/poneill/dev/player-loader/src/constants.js',
hash = '1dff08da71b9e2ba10f7386f54bbdfb5e9eee293',
Function = function () {}.constructor,
global = new Function('return this')(),
gcv = '__coverage__',
coverageData = {
path: '/Users/poneill/dev/player-loader/src/constants.js',
statementMap: {
'0': {
start: {
line: 3,
column: 17
},
end: {
line: 9,
column: 1
}
},
'1': {
start: {
line: 11,
column: 29
},
end: {
line: 11,
column: 35
}
},
'2': {
start: {
line: 12,
column: 43
},
end: {
line: 12,
column: 48
}
},
'3': {
start: {
line: 13,
column: 26
},
end: {
line: 13,
column: 32
}
},
'4': {
start: {
line: 15,
column: 29
},
end: {
line: 15,
column: 36
}
},
'5': {
start: {
line: 16,
column: 31
},
end: {
line: 16,
column: 41
}
},
'6': {
start: {
line: 18,
column: 27
},
end: {
line: 18,
column: 36
}
},
'7': {
start: {
line: 19,
column: 26
},
end: {
line: 19,
column: 34
}
},
'8': {
start: {
line: 21,
column: 31
},
end: {
line: 21,
column: 39
}
},
'9': {
start: {
line: 22,
column: 32
},
end: {
line: 22,
column: 41
}
},
'10': {
start: {
line: 23,
column: 31
},
end: {
line: 23,
column: 39
}
},
'11': {
start: {
line: 24,
column: 30
},
end: {
line: 24,
column: 37
}
},
'12': {
start: {
line: 25,
column: 32
},
end: {
line: 25,
column: 41
}
},
'13': {
start: {
line: 27,
column: 27
},
end: {
line: 27,
column: 63
}
}
},
fnMap: {},
branchMap: {},
s: {
'0': 0,
'1': 0,
'2': 0,
'3': 0,
'4': 0,
'5': 0,
'6': 0,
'7': 0,
'8': 0,
'9': 0,
'10': 0,
'11': 0,
'12': 0,
'13': 0
},
f: {},
b: {},
_coverageSchema: '332fd63041d2c1bcb487cc26dd0d5f7d97098a6c'
},
coverage = global[gcv] || (global[gcv] = {});
if (coverage[path] && coverage[path].hash === hash) {
return coverage[path];
}
coverageData.hash = hash;
return coverage[path] = coverageData;
}();
var DEFAULTS = (cov_2iqe71ebne.s[0]++, {
embedId: 'default',
embedType: 'in-page',
playerId: 'default',
Promise: window_1.Promise,
refNodeInsert: 'append'
});
var DEFAULT_ASPECT_RATIO = (cov_2iqe71ebne.s[1]++, '16:9');
var DEFAULT_IFRAME_HORIZONTAL_PLAYLIST = (cov_2iqe71ebne.s[2]++, false);
var DEFAULT_MAX_WIDTH = (cov_2iqe71ebne.s[3]++, '100%');
var EMBED_TAG_NAME_VIDEO = (cov_2iqe71ebne.s[4]++, 'video');
var EMBED_TAG_NAME_VIDEOJS = (cov_2iqe71ebne.s[5]++, 'video-js');
var EMBED_TYPE_IN_PAGE = (cov_2iqe71ebne.s[6]++, 'in-page');
var EMBED_TYPE_IFRAME = (cov_2iqe71ebne.s[7]++, 'iframe');
var REF_NODE_INSERT_APPEND = (cov_2iqe71ebne.s[8]++, 'append');
var REF_NODE_INSERT_PREPEND = (cov_2iqe71ebne.s[9]++, 'prepend');
var REF_NODE_INSERT_BEFORE = (cov_2iqe71ebne.s[10]++, 'before');
var REF_NODE_INSERT_AFTER = (cov_2iqe71ebne.s[11]++, 'after');
var REF_NODE_INSERT_REPLACE = (cov_2iqe71ebne.s[12]++, 'replace');
var JSON_ALLOWED_ATTRS = (cov_2iqe71ebne.s[13]++, ['catalogSearch', 'catalogSequence']);
var cov_2m5pdyp79v = function () {
var path = '/Users/poneill/dev/player-loader/src/urls.js',
hash = 'bed0fbde72a8278c733c22db52a13de35bf7ec22',
Function = function () {}.constructor,
global = new Function('return this')(),
gcv = '__coverage__',
coverageData = {
path: '/Users/poneill/dev/player-loader/src/urls.js',
statementMap: {
'0': {
start: {
line: 4,
column: 15
},
end: {
line: 4,
column: 48
}
},
'1': {
start: {
line: 16,
column: 15
},
end: {
line: 41,
column: 1
}
},
'2': {
start: {
line: 18,
column: 2
},
end: {
line: 20,
column: 3
}
},
'3': {
start: {
line: 19,
column: 4
},
end: {
line: 19,
column: 28
}
},
'4': {
start: {
line: 22,
column: 55
},
end: {
line: 22,
column: 61
}
},
'5': {
start: {
line: 23,
column: 17
},
end: {
line: 23,
column: 55
}
},
'6': {
start: {
line: 25,
column: 2
},
end: {
line: 40,
column: 5
}
},
'7': {
start: {
line: 50,
column: 19
},
end: {
line: 50,
column: 33
}
},
'8': {
start: {
line: 50,
column: 25
},
end: {
line: 50,
column: 33
}
},
'9': {
start: {
line: 59,
column: 19
},
end: {
line: 61,
column: 1
}
},
'10': {
start: {
line: 60,
column: 2
},
end: {
line: 60,
column: 21
}
}
},
fnMap: {
'0': {
name: '(anonymous_0)',
decl: {
start: {
line: 16,
column: 15
},
end: {
line: 16,
column: 16
}
},
loc: {
start: {
line: 16,
column: 27
},
end: {
line: 41,
column: 1
}
},
line: 16
},
'1': {
name: '(anonymous_1)',
decl: {
start: {
line: 50,
column: 19
},
end: {
line: 50,
column: 20
}
},
loc: {
start: {
line: 50,
column: 25
},
end: {
line: 50,
column: 33
}
},
line: 50
},
'2': {
name: '(anonymous_2)',
decl: {
start: {
line: 59,
column: 19
},
end: {
line: 59,
column: 20
}
},
loc: {
start: {
line: 59,
column: 32
},
end: {
line: 61,
column: 1
}
},
line: 59
}
},
branchMap: {
'0': {
loc: {
start: {
line: 18,
column: 2
},
end: {
line: 20,
column: 3
}
},
type: 'if',
locations: [{
start: {
line: 18,
column: 2
},
end: {
line: 20,
column: 3
}
}, {
start: {
line: 18,
column: 2
},
end: {
line: 20,
column: 3
}
}],
line: 18
},
'1': {
loc: {
start: {
line: 34,
column: 14
},
end: {
line: 34,
column: 60
}
},
type: 'cond-expr',
locations: [{
start: {
line: 34,
column: 29
},
end: {
line: 34,
column: 53
}
}, {
start: {
line: 34,
column: 56
},
end: {
line: 34,
column: 60
}
}],
line: 34
}
},
s: {
'0': 0,
'1': 0,
'2': 0,
'3': 0,
'4': 0,
'5': 0,
'6': 0,
'7': 0,
'8': 0,
'9': 0,
'10': 0
},
f: {
'0': 0,
'1': 0,
'2': 0
},
b: {
'0': [0, 0],
'1': [0, 0]
},
_coverageSchema: '332fd63041d2c1bcb487cc26dd0d5f7d97098a6c'
},
coverage = global[gcv] || (global[gcv] = {});
if (coverage[path] && coverage[path].hash === hash) {
return coverage[path];
}
coverageData.hash = hash;
return coverage[path] = coverageData;
}();
var BASE_URL = (cov_2m5pdyp79v.s[0]++, 'https://players.brightcove.net/');
cov_2m5pdyp79v.s[1]++;
var getUrl = function getUrl(params) {
cov_2m5pdyp79v.f[0]++;
cov_2m5pdyp79v.s[2]++;
if (params.playerUrl) {
cov_2m5pdyp79v.b[0][0]++;
cov_2m5pdyp79v.s[3]++;
return params.playerUrl;
} else {
cov_2m5pdyp79v.b[0][1]++;
}
var _ref = (cov_2m5pdyp79v.s[4]++, params),
accountId = _ref.accountId,
playerId = _ref.playerId,
embedId = _ref.embedId,
embedOptions = _ref.embedOptions;
var iframe = (cov_2m5pdyp79v.s[5]++, params.embedType === EMBED_TYPE_IFRAME);
cov_2m5pdyp79v.s[6]++;
return brightcovePlayerUrl({
accountId: accountId,
playerId: playerId,
embedId: embedId,
iframe: iframe,
base: BASE_URL,
minified: embedOptions ? (cov_2m5pdyp79v.b[1][0]++, !embedOptions.unminified) : (cov_2m5pdyp79v.b[1][1]++, true),
queryParams: params
});
};
cov_2m5pdyp79v.s[7]++;
var getBaseUrl = function getBaseUrl() {
cov_2m5pdyp79v.f[1]++;
cov_2m5pdyp79v.s[8]++;
return BASE_URL;
};
cov_2m5pdyp79v.s[9]++;
var setBaseUrl = function setBaseUrl(baseUrl) {
cov_2m5pdyp79v.f[2]++;
cov_2m5pdyp79v.s[10]++;
BASE_URL = baseUrl;
};
var urls = {
getUrl: getUrl,
getBaseUrl: getBaseUrl,
setBaseUrl: setBaseUrl
};
var cov_20bjz8jx2s = function () {
var path = '/Users/poneill/dev/player-loader/src/create-embed.js',
hash = 'a44fc58e9031afad90b3faa7d4c5b3c874bc4a50',
Function = function () {}.constructor,
global = new Function('return this')(),
gcv = '__coverage__',
coverageData = {
path: '/Users/poneill/dev/player-loader/src/create-embed.js',
statementMap: {
'0': {
start: {
line: 26,
column: 13
},
end: {
line: 26,
column: 53
}
},
'1': {
start: {
line: 26,
column: 21
},
end: {
line: 26,
column: 53
}
},
'2': {
start: {
line: 37,
column: 18
},
end: {
line: 37,
column: 60
}
},
'3': {
start: {
line: 37,
column: 26
},
end: {
line: 37,
column: 60
}
},
'4': {
start: {
line: 49,
column: 26
},
end: {
line: 57,
column: 1
}
},
'5': {
start: {
line: 50,
column: 13
},
end: {
line: 50,
column: 45
}
},
'6': {
start: {
line: 52,
column: 2
},
end: {
line: 52,
column: 66
}
},
'7': {
start: {
line: 53,
column: 2
},
end: {
line: 53,
column: 56
}
},
'8': {
start: {
line: 54,
column: 2
},
end: {
line: 54,
column: 31
}
},
'9': {
start: {
line: 56,
column: 2
},
end: {
line: 56,
column: 12
}
},
'10': {
start: {
line: 69,
column: 26
},
end: {
line: 115,
column: 1
}
},
'11': {
start: {
line: 70,
column: 25
},
end: {
line: 70,
column: 31
}
},
'12': {
start: {
line: 74,
column: 24
},
end: {
line: 84,
column: 3
}
},
'13': {
start: {
line: 86,
column: 18
},
end: {
line: 86,
column: 80
}
},
'14': {
start: {
line: 87,
column: 13
},
end: {
line: 87,
column: 44
}
},
'15': {
start: {
line: 89,
column: 2
},
end: {
line: 109,
column: 7
}
},
'16': {
start: {
line: 90,
column: 19
},
end: {
line: 90,
column: 30
}
},
'17': {
start: {
line: 96,
column: 6
},
end: {
line: 106,
column: 7
}
},
'18': {
start: {
line: 97,
column: 8
},
end: {
line: 103,
column: 9
}
},
'19': {
start: {
line: 98,
column: 10
},
end: {
line: 98,
column: 46
}
},
'20': {
start: {
line: 102,
column: 10
},
end: {
line: 102,
column: 17
}
},
'21': {
start: {
line: 105,
column: 8
},
end: {
line: 105,
column: 43
}
},
'22': {
start: {
line: 108,
column: 6
},
end: {
line: 108,
column: 49
}
},
'23': {
start: {
line: 111,
column: 2
},
end: {
line: 111,
column: 42
}
},
'24': {
start: {
line: 112,
column: 2
},
end: {
line: 112,
column: 31
}
},
'25': {
start: {
line: 114,
column: 2
},
end: {
line: 114,
column: 12
}
},
'26': {
start: {
line: 133,
column: 23
},
end: {
line: 176,
column: 1
}
},
'27': {
start: {
line: 134,
column: 2
},
end: {
line: 136,
column: 3
}
},
'28': {
start: {
line: 135,
column: 4
},
end: {
line: 135,
column: 14
}
},
'29': {
start: {
line: 138,
column: 2
},
end: {
line: 138,
column: 33
}
},
'30': {
start: {
line: 139,
column: 2
},
end: {
line: 139,
column: 23
}
},
'31': {
start: {
line: 140,
column: 2
},
end: {
line: 140,
column: 25
}
},
'32': {
start: {
line: 141,
column: 2
},
end: {
line: 141,
column: 26
}
},
'33': {
start: {
line: 142,
column: 2
},
end: {
line: 142,
column: 24
}
},
'34': {
start: {
line: 143,
column: 2
},
end: {
line: 143,
column: 26
}
},
'35': {
start: {
line: 144,
column: 2
},
end: {
line: 144,
column: 27
}
},
'36': {
start: {
line: 146,
column: 21
},
end: {
line: 150,
column: 29
}
},
'37': {
start: {
line: 154,
column: 22
},
end: {
line: 154,
column: 67
}
},
'38': {
start: {
line: 155,
column: 16
},
end: {
line: 155,
column: 45
}
},
'39': {
start: {
line: 156,
column: 20
},
end: {
line: 156,
column: 57
}
},
'40': {
start: {
line: 161,
column: 2
},
end: {
line: 163,
column: 3
}
},
'41': {
start: {
line: 162,
column: 4
},
end: {
line: 162,
column: 23
}
},
'42': {
start: {
line: 165,
column: 2
},
end: {
line: 165,
column: 44
}
},
'43': {
start: {
line: 166,
column: 2
},
end: {
line: 166,
column: 24
}
},
'44': {
start: {
line: 168,
column: 16
},
end: {
line: 168,
column: 45
}
},
'45': {
start: {
line: 170,
column: 2
},
end: {
line: 170,
column: 36
}
},
'46': {
start: {
line: 171,
column: 2
},
end: {
line: 171,
column: 32
}
},
'47': {
start: {
line: 172,
column: 2
},
end: {
line: 172,
column: 45
}
},
'48': {
start: {
line: 173,
column: 2
},
end: {
line: 173,
column: 27
}
},
'49': {
start: {
line: 175,
column: 2
},
end: {
line: 175,
column: 15
}
},
'50': {
start: {
line: 191,
column: 16
},
end: {
line: 202,
column: 1
}
},
'51': {
start: {
line: 192,
column: 2
},
end: {
line: 194,
column: 3
}
},
'52': {
start: {
line: 193,
column: 4
},
end: {
line: 193,
column: 14
}
},
'53': {
start: {
line: 196,
column: 14
},
end: {
line: 196,
column: 43
}
},
'54': {
start: {
line: 198,
column: 2
},
end: {
line: 198,
column: 41
}
},
'55': {
start: {
line: 199,
column: 2
},
end: {
line: 199,
column: 22
}
},
'56': {
start: {
line: 201,
column: 2
},
end: {
line: 201,
column: 13
}
},
'57': {
start: {
line: 221,
column: 18
},
end: {
line: 227,
column: 1
}
},
'58': {
start: {
line: 222,
column: 2
},
end: {
line: 224,
column: 3
}
},
'59': {
start: {
line: 223,
column: 4
},
end: {
line: 223,
column: 17
}
},
'60': {
start: {
line: 226,
column: 2
},
end: {
line: 226,
column: 79
}
},
'61': {
start: {
line: 242,
column: 20
},
end: {
line: 283,
column: 1
}
},
'62': {
start: {
line: 243,
column: 35
},
end: {
line: 243,
column: 41
}
},
'63': {
start: {
line: 244,
column: 24
},
end: {
line: 244,
column: 42
}
},
'64': {
start: {
line: 248,
column: 18
},
end: {
line: 248,
column: 73
}
},
'65': {
start: {
line: 251,
column: 2
},
end: {
line: 263,
column: 3
}
},
'66': {
start: {
line: 252,
column: 4
},
end: {
line: 252,
column: 49
}
},
'67': {
start: {
line: 253,
column: 9
},
end: {
line: 263,
column: 3
}
},
'68': {
start: {
line: 254,
column: 4
},
end: {
line: 254,
column: 76
}
},
'69': {
start: {
line: 255,
column: 9
},
end: {
line: 263,
column: 3
}
},
'70': {
start: {
line: 256,
column: 4
},
end: {
line: 256,
column: 49
}
},
'71': {
start: {
line: 257,
column: 9
},
end: {
line: 263,
column: 3
}
},
'72': {
start: {
line: 258,
column: 4
},
end: {
line: 258,
column: 62
}
},
'73': {
start: {
line: 262,
column: 4
},
end: {
line: 262,
column: 33
}
},
'74': {
start: {
line: 268,
column: 2
},
end: {
line: 274,
column: 3
}
},
'75': {
start: {
line: 269,
column: 28
},
end: {
line: 269,
column: 78
}
},
'76': {
start: {
line: 270,
column: 21
},
end: {
line: 270,
column: 60
}
},
'77': {
start: {
line: 272,
column: 4
},
end: {
line: 272,
column: 43
}
},
'78': {
start: {
line: 273,
column: 4
},
end: {
line: 273,
column: 78
}
},
'79': {
start: {
line: 279,
column: 2
},
end: {
line: 279,
column: 24
}
},
'80': {
start: {
line: 282,
column: 2
},
end: {
line: 282,
column: 15
}
},
'81': {
start: {
line: 298,
column: 23
},
end: {
line: 310,
column: 1
}
},
'82': {
start: {
line: 299,
column: 2
},
end: {
line: 301,
column: 3
}
},
'83': {
start: {
line: 300,
column: 4
},
end: {
line: 300,
column: 17
}
},
'84': {
start: {
line: 303,
column: 17
},
end: {
line: 303,
column: 45
}
},
'85': {
start: {
line: 305,
column: 2
},
end: {
line: 307,
column: 3
}
},
'86': {
start: {
line: 306,
column: 4
},
end: {
line: 306,
column: 18
}
},
'87': {
start: {
line: 309,
column: 2
},
end: {
line: 309,
column: 15
}
},
'88': {
start: {
line: 324,
column: 20
},
end: {
line: 330,
column: 1
}
},
'89': {
start: {
line: 325,
column: 16
},
end: {
line: 327,
column: 29
}
},
'90': {
start: {
line: 329,
column: 2
},
end: {
line: 329,
column: 60
}
}
},
fnMap: {
'0': {
name: '(anonymous_0)',
decl: {
start: {
line: 26,
column: 13
},
end: {
line: 26,
column: 14
}
},
loc: {
start: {
line: 26,
column: 21
},
end: {
line: 26,
column: 53
}
},
line: 26
},
'1': {
name: '(anonymous_1)',
decl: {
start: {
line: 37,
column: 18
},
end: {
line: 37,
column: 19
}
},
loc: {
start: {
line: 37,
column: 26
},
end: {
line: 37,
column: 60
}
},
line: 37
},
'2': {
name: '(anonymous_2)',
decl: {
start: {
line: 49,
column: 26
},
end: {
line: 49,
column: 27
}
},
loc: {
start: {
line: 49,
column: 38
},
end: {
line: 57,
column: 1
}
},
line: 49
},
'3': {
name: '(anonymous_3)',
decl: {
start: {
line: 69,
column: 26
},
end: {
line: 69,
column: 27
}
},
loc: {
start: {
line: 69,
column: 38
},
end: {
line: 115,
column: 1
}
},
line: 69
},
'4': {
name: '(anonymous_4)',
decl: {
start: {
line: 90,
column: 12
},
end: {
line: 90,
column: 13
}
},
loc: {
start: {
line: 90,
column: 19
},
end: {
line: 90,
column: 30
}
},
line: 90
},
'5': {
name: '(anonymous_5)',
decl: {
start: {
line: 91,
column: 13
},
end: {
line: 91,
column: 14
}
},
loc: {
start: {
line: 91,
column: 20
},
end: {
line: 109,
column: 5
}
},
line: 91
},
'6': {
name: '(anonymous_6)',
decl: {
start: {
line: 133,
column: 23
},
end: {
line: 133,
column: 24
}
},
loc: {
start: {
line: 133,
column: 56
},
end: {
line: 176,
column: 1
}
},
line: 133
},
'7': {
name: '(anonymous_7)',
decl: {
start: {
line: 191,
column: 16
},
end: {
line: 191,
column: 17
}
},
loc: {
start: {
line: 191,
column: 38
},
end: {
line: 202,
column: 1
}
},
line: 191
},
'8': {
name: '(anonymous_8)',
decl: {
start: {
line: 221,
column: 18
},
end: {
line: 221,
column: 19
}
},
loc: {
start: {
line: 221,
column: 54
},
end: {
line: 227,
column: 1
}
},
line: 221
},
'9': {
name: '(anonymous_9)',
decl: {
start: {
line: 242,
column: 20
},
end: {
line: 242,
column: 21
}
},
loc: {
start: {
line: 242,
column: 39
},
end: {
line: 283,
column: 1
}
},
line: 242
},
'10': {
name: '(anonymous_10)',
decl: {
start: {
line: 298,
column: 23
},
end: {
line: 298,
column: 24
}
},
loc: {
start: {
line: 298,
column: 42
},
end: {
line: 310,
column: 1
}
},
line: 298
},
'11': {
name: '(anonymous_11)',
decl: {
start: {
line: 324,
column: 20
},
end: {
line: 324,
column: 21
}
},
loc: {
start: {
line: 324,
column: 32
},
end: {
line: 330,
column: 1
}
},
line: 324
}
},
branchMap: {
'0': {
loc: {
start: {
line: 26,
column: 29
},
end: {
line: 26,
column: 52
}
},
type: 'binary-expr',
locations: [{
start: {
line: 26,
column: 29
},
end: {
line: 26,
column: 31
}
}, {
start: {
line: 26,
column: 35
},
end: {
line: 26,
column: 52
}
}],
line: 26
},
'1': {
loc: {
start: {
line: 37,
column: 34
},
end: {
line: 37,
column: 59
}
},
type: 'binary-expr',
locations: [{
start: {
line: 37,
column: 34
},
end: {
line: 37,
column: 42
}
}, {
start: {
line: 37,
column: 46
},
end: {
line: 37,
column: 59
}
}],
line: 37
},
'2': {
loc: {
start: {
line: 86,
column: 18
},
end: {
line: 86,
column: 80
}
},
type: 'binary-expr',
locations: [{
start: {
line: 86,
column: 18
},
end: {
line: 86,
column: 30
}
}, {
start: {
line: 86,
column: 34
},
end: {
line: 86,
column: 54
}
}, {
start: {
line: 86,
column: 58
},
end: {
line: 86,
column: 80
}
}],
line: 86
},
'3': {
loc: {
start: {
line: 96,
column: 6
},
end: {
line: 106,
column: 7
}
},
type: 'if',
locations: [{
start: {
line: 96,
column: 6
},
end: {
line: 106,
column: 7
}
}, {
start: {
line: 96,
column: 6
},
end: {
line: 106,
column: 7
}
}],
line: 96
},
'4': {
loc: {
start: {
line: 96,
column: 10
},
end: {
line: 96,
column: 83
}
},
type: 'binary-expr',
locations: [{
start: {
line: 96,
column: 10
},
end: {
line: 96,
column: 41
}
}, {
start: {
line: 96,
column: 45
},
end: {
line: 96,
column: 83
}
}],
line: 96
},
'5': {
loc: {
start: {
line: 134,
column: 2
},
end: {
line: 136,
column: 3
}
},
type: 'if',
locations: [{
start: {
line: 134,
column: 2
},
end: {
line: 136,
column: 3
}
}, {
start: {
line: 134,
column: 2
},
end: {
line: 136,
column: 3
}
}],
line: 134
},
'6': {
loc: {
start: {
line: 161,
column: 2
},
end: {
line: 163,
column: 3
}
},
type: 'if',
locations: [{
start: {
line: 161,
column: 2
},
end: {
line: 163,
column: 3
}
}, {
start: {
line: 161,
column: 2
},
end: {
line: 163,
column: 3
}
}],
line: 161
},
'7': {
loc: {
start: {
line: 161,
column: 6
},
end: {
line: 161,
column: 76
}
},
type: 'binary-expr',
locations: [{
start: {
line: 161,
column: 6
},
end: {
line: 161,
column: 37
}
}, {
start: {
line: 161,
column: 41
},
end: {
line: 161,
column: 76
}
}],
line: 161
},
'8': {
loc: {
start: {
line: 192,
column: 2
},
end: {
line: 194,
column: 3
}
},
type: 'if',
locations: [{
start: {
line: 192,
column: 2
},
end: {
line: 194,
column: 3
}
}, {
start: {
line: 192,
column: 2
},
end: {
line: 194,
column: 3
}
}],
line: 192
},
'9': {
loc: {
start: {
line: 222,
column: 2
},
end: {
line: 224,
column: 3
}
},
type: 'if',
locations: [{
start: {
line: 222,
column: 2
},
end: {
line: 224,
column: 3
}
}, {
start: {
line: 222,
column: 2
},
end: {
line: 224,
column: 3
}
}],
line: 222
},
'10': {
loc: {
start: {
line: 251,
column: 2
},
end: {
line: 263,
column: 3
}
},
type: 'if',
locations: [{
start: {
line: 251,
column: 2
},
end: {
line: 263,
column: 3
}
}, {
start: {
line: 251,
column: 2
},
end: {
line: 263,
column: 3
}
}],
line: 251
},
'11': {
loc: {
start: {
line: 253,
column: 9
},
end: {
line: 263,
column: 3
}
},
type: 'if',
locations: [{
start: {
line: 253,
column: 9
},
end: {
line: 263,
column: 3
}
}, {
start: {
line: 253,
column: 9
},
end: {
line: 263,
column: 3
}
}],
line: 253
},
'12': {
loc: {
start: {
line: 254,
column: 40
},
end: {
line: 254,
column: 74
}
},
type: 'binary-expr',
locations: [{
start: {
line: 254,
column: 40
},
end: {
line: 254,
column: 66
}
}, {
start: {
line: 254,
column: 70
},
end: {
line: 254,
column: 74
}
}],
line: 254
},
'13': {
loc: {
start: {
line: 255,
column: 9
},
end: {
line: 263,
column: 3
}
},
type: 'if',
locations: [{
start: {
line: 255,
column: 9
},
end: {
line: 263,
column: 3
}
}, {
start: {
line: 255,
column: 9
},
end: {
line: 263,
column: 3
}
}],
line: 255
},
'14': {
loc: {
start: {
line: 257,
column: 9
},
end: {
line: 263,
column: 3
}
},
type: 'if',
locations: [{
start: {
line: 257,
column: 9
},
end: {
line: 263,
column: 3
}
}, {
start: {
line: 257,
column: 9
},
end: {
line: 263,
column: 3
}
}],
line: 257
},
'15': {
loc: {
start: {
line: 258,
column: 34
},
end: {
line: 258,
column: 60
}
},
type: 'binary-expr',
locations: [{
start: {
line: 258,
column: 34
},
end: {
line: 258,
column: 52
}
}, {
start: {
line: 258,
column: 56
},
end: {
line: 258,
column: 60
}
}],
line: 258
},
'16': {
loc: {
start: {
line: 268,
column: 2
},
end: {
line: 274,
column: 3
}
},
type: 'if',
locations: [{
start: {
line: 268,
column: 2
},
end: {
line: 274,
column: 3
}
}, {
start: {
line: 268,
column: 2
},
end: {
line: 274,
column: 3
}
}],
line: 268
},
'17': {
loc: {
start: {
line: 268,
column: 6
},
end: {
line: 268,
column: 57
}
},
type: 'binary-expr',
locations: [{
start: {
line: 268,
column: 6
},
end: {
line: 268,
column: 25
}
}, {
start: {
line: 268,