Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

systemjs

Package Overview
Dependencies
Maintainers
1
Versions
236
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

systemjs - npm Package Compare versions

Comparing version 0.6.7 to 0.6.8

test/perf.html

4

bower.json
{
"name": "system.js",
"version": "0.6.7",
"version": "0.6.8",
"dependencies": {
"es6-module-loader": "~0.7.1"
"es6-module-loader": "~0.7.2"
},

@@ -7,0 +7,0 @@ "devDependencies": {

@@ -8,6 +8,6 @@ /*

(function(__$global) {
(function($__global) {
__$global.upgradeSystemLoader = function() {
__$global.upgradeSystemLoader = undefined;
$__global.upgradeSystemLoader = function() {
$__global.upgradeSystemLoader = undefined;

@@ -64,11 +64,14 @@ // indexOf polyfill for IE

// clone the original System loader
var originalSystem = __$global.System;
var System = __$global.System = new LoaderPolyfill(originalSystem);
System.baseURL = originalSystem.baseURL;
System.paths = { '*': '*.js' };
System.originalSystem = originalSystem;
var System;
(function() {
var originalSystem = $__global.System;
System = $__global.System = new LoaderPolyfill(originalSystem);
System.baseURL = originalSystem.baseURL;
System.paths = { '*': '*.js' };
System.originalSystem = originalSystem;
})();
System.noConflict = function() {
__$global.SystemJS = System;
__$global.System = System.originalSystem;
$__global.SystemJS = System;
$__global.System = System.originalSystem;
}

@@ -113,6 +116,9 @@

if (s.attachEvent)
if (s.attachEvent) {
s.attachEvent('onreadystatechange', complete);
s.addEventListener('load', complete, false);
s.addEventListener('error', error, false);
}
else {
s.addEventListener('load', complete, false);
s.addEventListener('error', error, false);
}

@@ -219,3 +225,3 @@ s.src = load.address;

load.metadata[metaName].push(metaValue);
else
else if (!load.metadata[metaName])
load.metadata[metaName] = metaValue;

@@ -273,3 +279,3 @@ }

__eval(load.source, loader.global, load.address, sourceMappingURL);
__eval(load.source, load.address, sourceMappingURL);

@@ -286,3 +292,3 @@ // traceur overwrites System and Module - write them back

var newDeps = [];
for (var i = 0; i < deps.length; i++)
for (var i = 0, l = deps.length; i < l; i++)
if (indexOf.call(newDeps, deps[i]) == -1)

@@ -293,12 +299,14 @@ newDeps.push(deps[i])

// There are two variations of System.register:
// 1. System.register for ES6 conversion (2-3 params) - System.register([name, ]deps, declare)
// see https://github.com/ModuleLoader/es6-module-loader/wiki/System.register-Explained
//
// 2. System.register for dynamic modules (3-4 params) - System.register([name, ]deps, executingRequire, execute)
// the true or false statement
// this extension implements the linking algorithm for the two variations identical to the spec
// allowing compiled ES6 circular references to work alongside AMD and CJS circular references.
/*
* There are two variations of System.register:
* 1. System.register for ES6 conversion (2-3 params) - System.register([name, ]deps, declare)
* see https://github.com/ModuleLoader/es6-module-loader/wiki/System.register-Explained
*
* 2. System.register for dynamic modules (3-4 params) - System.register([name, ]deps, executingRequire, execute)
* the true or false statement
*
* this extension implements the linking algorithm for the two variations identical to the spec
* allowing compiled ES6 circular references to work alongside AMD and CJS circular references.
*
*/
// loader.register sets loader.defined for declarative modules

@@ -341,2 +349,3 @@ var anonRegister;

if (name) {
register.name = name;
// we never overwrite an existing define

@@ -353,21 +362,33 @@ if (!loader.defined[name])

}
/*
* Registry side table - loader.defined
* Registry Entry Contains:
* - name
* - deps
* - declare for declarative modules
* - execute for dynamic modules, different to declarative execute on module
* - executingRequire indicates require drives execution for circularity of dynamic modules
* - declarative optional boolean indicating which of the above
*
* Can preload modules directly on System.defined['my/module'] = { deps, execute, executingRequire }
*
* Then the entry gets populated with derived information during processing:
* - normalizedDeps derived from deps, created in instantiate
* - groupIndex used by group linking algorithm
* - evaluated indicating whether evaluation has happend
* - module the module record object, containing:
* - exports actual module exports
*
* Then for declarative only we track dynamic bindings with the records:
* - name
* - setters declarative setter functions
* - exports actual module values
* - dependencies, module records of dependencies
* - importers, module records of dependents
*
* After linked and evaluated, entries are removed, declarative module records remain in separate
* module binding table
*
*/
// Registry side table - loader.defined
// Registry Entry Contains:
// - deps
// - declare for register modules
// - execute for dynamic modules, also after declare for declarative modules
// - executingRequire indicates require drives execution for circularity of dynamic modules
// - declarative optional boolean indicating which of the above
//
// Can preload modules directly on System.defined['my/module'] = { deps, execute, executingRequire }
//
// Then the entry gets populated with derived information during processing:
// - normalizedDeps derived from deps, created in instantiate
// - depMap array derived from deps, populated gradually in link
// - groupIndex used by group linking algorithm
// - module a raw module exports object with no wrapper
// - evaluated indiciating whether evaluation has happend for declarative modules
// After linked and evaluated, entries are removed
function defineRegister(loader) {

@@ -407,3 +428,3 @@ if (loader.register)

for (var i = 0; i < entry.normalizedDeps.length; i++) {
for (var i = 0, l = entry.normalizedDeps.length; i < l; i++) {
var depName = entry.normalizedDeps[i];

@@ -424,3 +445,3 @@ var depEntry = loader.defined[depName];

if (depEntry.groupIndex) {
groups[depEntry.groupIndex].splice(groups[depEntry.groupIndex].indexOf(depEntry), 1);
groups[depEntry.groupIndex].splice(indexOf.call(groups[depEntry.groupIndex], depEntry), 1);

@@ -464,2 +485,13 @@ // if the old group is empty, then we have a mixed depndency cycle

// module binding records
var moduleRecords = {};
function getOrCreateModuleRecord(name) {
return moduleRecords[name] || (moduleRecords[name] = {
name: name,
dependencies: [],
exports: {}, // start from an empty module and extend
importers: []
})
}
function linkDeclarativeModule(entry, loader) {

@@ -470,52 +502,60 @@ // only link if already not already started linking (stops at circular)

// declare the module with an empty depMap
var depMap = [];
var module = entry.module = getOrCreateModuleRecord(entry.name);
var exports = entry.module.exports;
var declaration = entry.declare.call(loader.global, depMap);
var declaration = entry.declare.call(loader.global, function(name, value) {
module.locked = true;
exports[name] = value;
for (var i = 0, l = module.importers.length; i < l; i++) {
var importerModule = module.importers[i];
if (!importerModule.locked) {
var importerIndex = indexOf.call(importerModule.dependencies, module);
importerModule.setters[importerIndex](exports);
}
}
module.locked = false;
return value;
});
entry.module = declaration.exports;
entry.exportStar = declaration.exportStar;
entry.execute = declaration.execute;
module.setters = declaration.setters;
module.execute = declaration.execute;
var module = entry.module;
if (!module.setters || !module.execute) {
throw "Invalid System.register form for " + entry.name;
}
// now link all the module dependencies
// amending the depMap as we go
for (var i = 0; i < entry.normalizedDeps.length; i++) {
for (var i = 0, l = entry.normalizedDeps.length; i < l; i++) {
var depName = entry.normalizedDeps[i];
var depEntry = loader.defined[depName];
// part of another linking group - use loader.get
if (!depEntry) {
depModule = loader.get(depName);
var depModule = moduleRecords[depName];
// work out how to set depExports based on scenarios...
var depExports;
if (depModule) {
depExports = depModule.exports;
}
// if dependency already linked, use that
else if (depEntry.module) {
depModule = depEntry.module;
// in the loader registry
else if (!depEntry) {
depExports = loader.get(depName);
}
// otherwise we need to link the dependency
// we have an entry -> link
else {
linkDeclarativeModule(depEntry, loader);
depModule = depEntry.module;
depExports = depModule.exports;
}
if (entry.exportStar && indexOf.call(entry.exportStar, entry.normalizedDeps[i]) != -1) {
// we are exporting * from this dependency
(function(depModule) {
for (var p in depModule) (function(p) {
// if the property is already defined throw?
Object.defineProperty(module, p, {
enumerable: true,
get: function() {
return depModule[p];
},
set: function(value) {
depModule[p] = value;
}
});
})(p);
})(depModule);
// only declarative modules have dynamic bindings
if (depModule && depModule.importers) {
depModule.importers.push(module);
module.dependencies.push(depModule);
}
depMap[i] = depModule;
// run the setter for this dependency
if (module.setters[i])
module.setters[i](depExports);
}

@@ -526,9 +566,11 @@ }

function getModule(name, loader) {
var module;
var exports;
var entry = loader.defined[name];
if (!entry) {
module = loader.get(name);
if (!module)
exports = loader.get(name);
if (!exports)
throw "System Register: The module requested " + name + " but this was not declared as a dependency";
if (exports.__useDefault)
exports = exports['default'];
}

@@ -543,9 +585,6 @@

module = entry.module;
exports = entry.module.exports;
}
if (!module)
return '';
return module.__useDefault ? module['default'] : module;
return exports;
}

@@ -557,7 +596,9 @@

entry.module = { 'default': {}, __useDefault: true };
var exports = {};
var module = entry.module = { exports: exports, id: entry.name };
// AMD requires execute the tree first
if (!entry.executingRequire) {
for (var i = 0; i < entry.normalizedDeps.length; i++) {
for (var i = 0, l = entry.normalizedDeps.length; i < l; i++) {
var depName = entry.normalizedDeps[i];

@@ -570,15 +611,6 @@ var depEntry = loader.defined[depName];

// lookup the module name if it is in the registry
var moduleName;
for (var d in loader.defined) {
if (loader.defined[d] != entry)
continue;
moduleName = d;
break;
}
// now execute
entry.evaluated = true;
var output = entry.execute.call(loader.global, function(name) {
for (var i = 0; i < entry.deps.length; i++) {
for (var i = 0, l = entry.deps.length; i < l; i++) {
if (entry.deps[i] != name)

@@ -588,14 +620,17 @@ continue;

}
}, entry.module['default'], moduleName);
}, exports, module);
if (output)
entry.module['default'] = output;
module.exports = output;
}
// given a module, and the list of modules for this current branch,
// ensure that each of the dependencies of this module is evaluated
// (unless one is a circular dependency already in the list of seen
// modules, in which case we execute it)
// then evaluate the module itself
// depth-first left to right execution to match ES6 modules
/*
* Given a module, and the list of modules for this current branch,
* ensure that each of the dependencies of this module is evaluated
* (unless one is a circular dependency already in the list of seen
* modules, in which case we execute it)
*
* Then we evaluate the module itself depth-first left to right
* execution to match ES6 modules
*/
function ensureEvaluated(moduleName, seen, loader) {

@@ -608,5 +643,7 @@ var entry = loader.defined[moduleName];

// this only applies to declarative modules which late-execute
seen.push(moduleName);
for (var i = 0; i < entry.normalizedDeps.length; i++) {
for (var i = 0, l = entry.normalizedDeps.length; i < l; i++) {
var depName = entry.normalizedDeps[i];

@@ -625,3 +662,3 @@ if (indexOf.call(seen, depName) == -1) {

entry.evaluated = true;
entry.execute.call(loader.global);
entry.module.execute.call(loader.global);
}

@@ -733,6 +770,7 @@

entry.deps = dedupe(entry.deps);
entry.name = load.name;
// first, normalize all dependencies
var normalizePromises = [];
for (var i = 0; i < entry.deps.length; i++)
for (var i = 0, l = entry.deps.length; i < l; i++)
normalizePromises.push(Promise.resolve(loader.normalize(entry.deps[i], load.name)));

@@ -744,14 +782,5 @@

// create the empty dep map - this is our key deferred dependency binding object passed into declare
entry.depMap = [];
return {
deps: entry.deps,
execute: function() {
// this avoids double duplication allowing a bundle to equal its last defined module
if (entry.esmodule) {
loader.defined[load.name] = undefined;
return entry.esmodule;
}
// recursively ensure that the module and all its

@@ -767,14 +796,5 @@ // dependencies are linked (with dependency group handling)

var module = loader.newModule(entry.module);
var module = loader.newModule(entry.declarative ? entry.module.exports : { 'default': entry.module.exports, '__useDefault': true });
entry.module.module = module;
// if the entry is an alias, set the alias too
for (var name in loader.defined) {
if (!loader.defined[name])
continue;
if (entry.declarative && loader.defined[name].execute != entry.execute)
continue;
if (!entry.declarative && loader.defined[name].declare != entry.declare);
continue;
loader.defined[name].esmodule = module;
}
// return the defined module object

@@ -840,3 +860,3 @@ return module;

var v = cfg[c];
if (typeof v == 'object') {
if (typeof v == 'object' && !(v instanceof Array)) {
this[c] = this[c] || {};

@@ -963,4 +983,5 @@ for (var p in v)

curGlobalObj = {};
ignoredGlobalProps = ['indexedDB', 'sessionStorage', 'localStorage', 'clipboardData', 'frames'];
for (var g in loader.global)
ignoredGlobalProps = ['indexedDB', 'sessionStorage', 'localStorage', 'clipboardData', 'frames', 'webkitStorageInfo'];
for (var g in loader.global) {
if (indexOf.call(ignoredGlobalProps, g) != -1) { continue; }
if (!hasOwnProperty || loader.global.hasOwnProperty(g)) {

@@ -973,5 +994,7 @@ try {

}
}
},
retrieveGlobal: function(moduleName, exportName, init) {
var singleGlobal;
var multipleExports;
var exports = {};

@@ -990,3 +1013,3 @@

// if one global, then that is the module directly
if (exportName && !singleGlobal) {
else if (exportName) {
var firstPart = exportName.split('.')[0];

@@ -999,3 +1022,3 @@ singleGlobal = eval.call(loader.global, exportName);

for (var g in loader.global) {
if (~ignoredGlobalProps.indexOf(g))
if (indexOf.call(ignoredGlobalProps, g) != -1)
continue;

@@ -1006,3 +1029,3 @@ if ((!hasOwnProperty || loader.global.hasOwnProperty(g)) && g != loader.global && curGlobalObj[g] != loader.global[g]) {

if (singleGlobal !== loader.global[g])
singleGlobal = undefined;
multipleExports = true;
}

@@ -1018,3 +1041,3 @@ else if (singleGlobal !== false) {

return typeof singleGlobal != 'undefined' ? singleGlobal : exports;
return multipleExports ? exports : singleGlobal;
}

@@ -1039,5 +1062,5 @@ }));

if (load.metadata.format == 'global') {
load.metadata.execute = function(require, exports, moduleName) {
load.metadata.execute = function(require, exports, module) {
loader.get('@@global-helpers').prepareGlobal(moduleName, load.metadata.deps);
loader.get('@@global-helpers').prepareGlobal(module.id, load.metadata.deps);

@@ -1059,3 +1082,3 @@ if (exportName)

return loader.get('@@global-helpers').retrieveGlobal(moduleName, exportName, load.metadata.init);
return loader.get('@@global-helpers').retrieveGlobal(module.id, exportName, load.metadata.init);
}

@@ -1109,4 +1132,2 @@ }

loader._getCJSDeps = getCJSDeps;
if (!loader.has('@@nodeProcess'))

@@ -1120,4 +1141,2 @@ loader.set('@@nodeProcess', loader.newModule({ 'default': nodeProcess, __useDefault: true }));

loader.set('@@nodeProcess', loader.newModule({ 'default': nodeProcess, __useDefault: true }));
if (!loader._getCJSDeps)
loader._getCJSDeps = getCJSDeps;
return loaderTranslate.call(loader, load);

@@ -1141,4 +1160,4 @@ }

load.metadata.execute = function(require, exports, moduleName) {
var dirname = load.address.split('/');
load.metadata.execute = function(require, exports, module) {
var dirname = (load.address || '').split('/');
dirname.pop();

@@ -1150,3 +1169,3 @@ dirname = dirname.join('/');

exports: exports,
module: { exports: exports },
module: module,
process: nodeProcess,

@@ -1162,3 +1181,3 @@ require: require,

load.source = glString + '(function() { ' + load.source + '\n}).call(exports)';
load.source = '(function() { ' + glString + '(function() { ' + load.source + '\n}).call(exports); })();';

@@ -1174,4 +1193,2 @@ // disable AMD detection

loader.global._g = undefined;
return globals.module.exports;
}

@@ -1189,2 +1206,3 @@ }

// by default we only enforce AMD noConflict mode in Node
var isNode = typeof module != 'undefined' && module.exports;

@@ -1195,7 +1213,40 @@

// define(varName); || define(function(require, exports) {}); || define({})
var amdRegEx = /(?:^\s*|[}{\(\);,\n\?\&]\s*)define\s*\(\s*("[^"]+"\s*,\s*|'[^']+'\s*,\s*)?\s*(\[(\s*("[^"]+"|'[^']+')\s*,)*(\s*("[^"]+"|'[^']+')\s*,?\s*)?\]|function\s*|{|[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*\))/;
var amdRegEx = /(?:^\s*|[}{\(\);,\n\?\&]\s*)define\s*\(\s*("[^"]+"\s*,\s*|'[^']+'\s*,\s*)?\s*(\[(\s*(("[^"]+"|'[^']+')\s*,|\/\/.*\r?\n|\/\*(.|\s)*?\*\/))*(\s*("[^"]+"|'[^']+')\s*,?\s*)?(\s*(\/\/.*\r?\n|\/\*(.|\s)*?\*\/)\s*)*\]|function\s*|{|[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*\))/;
var commentRegEx = /(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg;
var cjsRequirePre = "(?:^\\s*|[}{\\(\\);,\\n=:\\?\\&]\\s*)";
var cjsRequirePost = "\\s*\\(\\s*(\"([^\"]+)\"|'([^']+)')\\s*\\)";
var fnBracketRegEx = /\(([^\)]*)\)/;
var wsRegEx = /^\s+|\s+$/g;
var requireRegExs = {};
function getCJSDeps(source, requireIndex) {
// remove comments
source = source.replace(commentRegEx, '');
// determine the require alias
var params = source.match(fnBracketRegEx);
var requireAlias = (params[1].split(',')[requireIndex] || 'require').replace(wsRegEx, '');
// find or generate the regex for this requireAlias
var requireRegEx = requireRegExs[requireAlias] || (requireRegExs[requireAlias] = new RegExp(cjsRequirePre + requireAlias + cjsRequirePost, 'g'));
requireRegEx.lastIndex = 0;
var deps = [];
var match;
while (match = requireRegEx.exec(source))
deps.push(match[2] || match[3]);
return deps;
}
/*
AMD-compatible require
To copy RequireJS, set window.require = window.requirejs = loader.require
To copy RequireJS, set window.require = window.requirejs = loader.amdRequire
*/

@@ -1227,3 +1278,3 @@ function require(names, callback, errback, referer) {

};
loader.require = require;
loader.amdRequire = require;

@@ -1238,16 +1289,4 @@ function makeRequire(parentName, staticRequire, loader) {

var anonDefine;
// set to true of the current module turns out to be a named define bundle
var defineBundle;
function createDefine(loader) {
anonDefine = null;
defineBundle = null;
// ensure no NodeJS environment detection
loader.global.module = undefined;
loader.global.exports = undefined;
if (loader.global.define && loader.global.define.loader == loader)
return;
// run once per loader
function generateDefine(loader) {
// script injection mode calls this function synchronously on load

@@ -1274,6 +1313,3 @@ var onScriptLoad = loader.onScriptLoad;

factory = deps;
// CommonJS AMD form
if (!loader._getCJSDeps)
throw "AMD extension needs CJS extension for AMD CJS support";
deps = ['require', 'exports', 'module'].concat(loader._getCJSDeps(factory.toString()));
deps = ['require', 'exports', 'module'];
}

@@ -1286,7 +1322,19 @@

// in IE8, a trailing comma becomes a trailing undefined entry
if (deps[deps.length - 1] === undefined)
deps.pop();
// remove system dependencies
var requireIndex, exportsIndex, moduleIndex
if ((requireIndex = indexOf.call(deps, 'require')) != -1)
var requireIndex, exportsIndex, moduleIndex;
if ((requireIndex = indexOf.call(deps, 'require')) != -1) {
deps.splice(requireIndex, 1);
var factoryText = factory.toString();
deps = deps.concat(getCJSDeps(factoryText, requireIndex));
}
if ((exportsIndex = indexOf.call(deps, 'exports')) != -1)

@@ -1300,3 +1348,3 @@ deps.splice(exportsIndex, 1);

deps: deps,
execute: function(require, exports, moduleName) {
execute: function(require, exports, module) {

@@ -1307,7 +1355,9 @@ var depValues = [];

var module;
module.uri = loader.baseURL + module.id;
module.config = function() {};
// add back in system dependencies
if (moduleIndex != -1)
depValues.splice(moduleIndex, 0, exports, module = { id: moduleName, uri: loader.baseURL + moduleName, config: function() { return {}; }, exports: exports });
depValues.splice(moduleIndex, 0, module);

@@ -1318,5 +1368,5 @@ if (exportsIndex != -1)

if (requireIndex != -1)
depValues.splice(requireIndex, 0, makeRequire(moduleName, require, loader));
depValues.splice(requireIndex, 0, makeRequire(module.id, require, loader));
var output = factory.apply(loader.global, depValues);
var output = factory.apply(global, depValues);

@@ -1361,10 +1411,44 @@ if (typeof output == 'undefined' && module)

};
define.amd = {};
loader.amdDefine = define;
loader.global.define = define;
loader.global.define.amd = {};
loader.global.define.loader = loader;
}
if (!isNode && loader.amdDefine !== false)
var anonDefine;
// set to true if the current module turns out to be a named define bundle
var defineBundle;
var oldModule, oldExports, oldDefine;
// adds define as a global (potentially just temporarily)
function createDefine(loader) {
if (!loader.amdDefine)
generateDefine(loader);
anonDefine = null;
defineBundle = null;
// ensure no NodeJS environment detection
var global = loader.global;
oldModule = global.module;
oldExports = global.exports;
oldDefine = global.define;
global.module = undefined;
global.exports = undefined;
if (global.define && global.define === loader.amdDefine)
return;
global.define = loader.amdDefine;
}
function removeDefine(loader) {
var global = loader.global;
global.define = oldDefine;
global.module = oldModule;
global.exports = oldExports;
}
if (loader.amdDefine !== false)
createDefine(loader);

@@ -1380,3 +1464,2 @@

}

@@ -1395,3 +1478,3 @@ var loaderInstantiate = loader.instantiate;

}
catch (e) {
catch(e) {
if (loader.execute === false && isNode) {

@@ -1414,5 +1497,2 @@ // use a regular expression to pull out deps

if (isNode)
loader.global.define = undefined;
if (!anonDefine && !defineBundle && !isNode)

@@ -1429,3 +1509,4 @@ throw "AMD module " + load.name + " did not define";

}
}/*
}
/*
SystemJS map support

@@ -1931,8 +2012,6 @@

depCache(System);
if (!System.paths['@traceur'])
System.paths['@traceur'] = __$curScript && __$curScript.getAttribute('data-traceur-src')
|| (__$curScript && __$curScript.src
? __$curScript.src.substr(0, __$curScript.src.lastIndexOf('/') + 1)
System.paths['@traceur'] = $__curScript && $__curScript.getAttribute('data-traceur-src')
|| ($__curScript && $__curScript.src
? $__curScript.src.substr(0, $__curScript.src.lastIndexOf('/') + 1)
: System.baseURL + (System.baseURL.lastIndexOf('/') == System.baseURL.length - 1 ? '' : '/')

@@ -1942,28 +2021,47 @@ ) + 'traceur.js';

function __eval(__source, __global, __address, __sourceMap) {
try {
__source = (__global != __$global ? 'with(__global) { (function() { ' + __source + ' \n }).call(__global); }' : __source)
+ '\n//# sourceURL=' + __address
+ (__sourceMap ? '\n//# sourceMappingURL=' + __sourceMap : '');
eval(__source);
}
catch(e) {
if (e.name == 'SyntaxError')
e.message = 'Evaluating ' + __address + '\n\t' + e.message;
if (System.trace && System.execute == false)
e = 'Execution error for ' + __address + ': ' + e.stack || e;
throw e;
}
}
var $__curScript, __eval;
var __$curScript;
(function() {
(function(global) {
var doEval;
__eval = function(source, address, sourceMap) {
source += '\n//# sourceURL=' + address + (sourceMap ? '\n//# sourceMappingURL=' + sourceMap : '');
try {
doEval(source);
}
catch(e) {
throw 'Error evaluating ' + address;
}
};
if (typeof window != 'undefined') {
var head;
var scripts = document.getElementsByTagName('script');
__$curScript = scripts[scripts.length - 1];
$__curScript = scripts[scripts.length - 1];
if (!global.System || !global.LoaderPolyfill) {
// globally scoped eval for the browser
doEval = function(source) {
if (!head)
head = document.head || document.body || document.documentElement;
var script = document.createElement('script');
script.text = source;
var onerror = window.onerror;
var e;
window.onerror = function(_e) {
e = _e;
}
head.appendChild(script);
head.removeChild(script);
window.onerror = onerror;
if (e)
throw e;
}
if (!$__global.System || !$__global.LoaderPolyfill) {
// determine the current script path as the base path
var curPath = __$curScript.src;
var curPath = $__curScript.src;
var basePath = curPath.substr(0, curPath.lastIndexOf('/') + 1);

@@ -1975,3 +2073,3 @@ document.write(

else {
global.upgradeSystemLoader();
$__global.upgradeSystemLoader();
}

@@ -1981,9 +2079,17 @@ }

var es6ModuleLoader = require('es6-module-loader');
global.System = es6ModuleLoader.System;
global.Loader = es6ModuleLoader.Loader;
global.upgradeSystemLoader();
module.exports = global.System;
$__global.System = es6ModuleLoader.System;
$__global.Loader = es6ModuleLoader.Loader;
$__global.upgradeSystemLoader();
module.exports = $__global.System;
// global scoped eval for node
var vm = require('vm');
doEval = function(source, address, sourceMap) {
vm.runInThisContext(source);
}
}
})(__$global);
})();
})(typeof window != 'undefined' ? window : global);

@@ -8,2 +8,2 @@ /*

!function(__$global){function __eval(__source,__global,__address,__sourceMap){try{__source=(__global!=__$global?"with(__global) { (function() { "+__source+" \n }).call(__global); }":__source)+"\n//# sourceURL="+__address+(__sourceMap?"\n//# sourceMappingURL="+__sourceMap:""),eval(__source)}catch(e){throw"SyntaxError"==e.name&&(e.message="Evaluating "+__address+"\n "+e.message),System.trace&&0==System.execute&&(e="Execution error for "+__address+": "+e.stack||e),e}}__$global.upgradeSystemLoader=function(){function parseURI(e){var t=String(e).replace(/^\s+|\s+$/g,"").match(/^([^:\/?#]+:)?(\/\/(?:[^:@]*(?::[^:@]*)?@)?(([^:\/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/);return t?{href:t[0]||"",protocol:t[1]||"",authority:t[2]||"",host:t[3]||"",hostname:t[4]||"",port:t[5]||"",pathname:t[6]||"",search:t[7]||"",hash:t[8]||""}:null}function toAbsoluteURL(e,t){function a(e){var t=[];return e.replace(/^(\.\.?(\/|$))+/,"").replace(/\/(\.(\/|$))+/g,"/").replace(/\/\.\.$/,"/../").replace(/\/?[^\/]*/g,function(e){"/.."===e?t.pop():t.push(e)}),t.join("").replace(/^\//,"/"===e.charAt(0)?"/":"")}return t=parseURI(t||""),e=parseURI(e||""),t&&e?(t.protocol||e.protocol)+(t.protocol||t.authority?t.authority:e.authority)+a(t.protocol||t.authority||"/"===t.pathname.charAt(0)?t.pathname:t.pathname?(e.authority&&!e.pathname?"/":"")+e.pathname.slice(0,e.pathname.lastIndexOf("/")+1)+t.pathname:e.pathname)+(t.protocol||t.authority||t.pathname?t.search:t.search||e.search)+t.hash:null}function scriptLoader(e){"undefined"==typeof indexOf&&(indexOf=Array.prototype.indexOf);var t=document.getElementsByTagName("head")[0];e.onScriptLoad=function(){},e.fetch=function(a){return new Promise(function(r,n){function o(){l.readyState&&"loaded"!=l.readyState&&"complete"!=l.readyState||(s(),e.onScriptLoad(a),r(""))}function i(e){s(),n(e)}function s(){l.detachEvent?l.detachEvent("onreadystatechange",o):(l.removeEventListener("load",o,!1),l.removeEventListener("error",i,!1)),t.removeChild(l)}var l=document.createElement("script");l.async=!0,l.attachEvent&&l.attachEvent("onreadystatechange",o),l.addEventListener("load",o,!1),l.addEventListener("error",i,!1),l.src=a.address,t.appendChild(l)})},e.scriptLoader=!0}function meta(e){function t(e,t){var a=e.meta&&e.meta[t.name];if(a)for(var r in a)t.metadata[r]=t.metadata[r]||a[r]}var a=/^(\s*\/\*.*\*\/|\s*\/\/[^\n]*|\s*"[^"]+"\s*;?|\s*'[^']+'\s*;?)+/,r=/\/\*.*\*\/|\/\/[^\n]*|"[^"]+"\s*;?|'[^']+'\s*;?/g;e.meta={};var n=e.locate;e.locate=function(e){return t(this,e),n.call(this,e)};var o=e.translate;e.translate=function(e){var n=e.source.match(a);if(n)for(var i=n[0].match(r),s=0;s<i.length;s++){var l=i[s].length,d=i[s].substr(0,1);if(";"==i[s].substr(l-1,1)&&l--,'"'==d||"'"==d){var u=i[s].substr(1,i[s].length-3),f=u.substr(0,u.indexOf(" "));if(f){var c=u.substr(f.length+1,u.length-f.length-1);e.metadata[f]instanceof Array?e.metadata[f].push(c):e.metadata[f]=c}}}return t(this,e),o.call(this,e)}}function register(e){function t(e){var t=this;"@traceur"==e.name&&(f=System);var a,r=e.source.lastIndexOf("\n");-1!=r&&"//# sourceMappingURL="==e.source.substr(r+1,21)&&(a=e.source.substr(r+22,e.source.length-r-22),"undefined"!=typeof toAbsoluteURL&&(a=toAbsoluteURL(e.address,a))),__eval(e.source,t.global,e.address,a),"@traceur"==e.name&&(t.global.traceurSystem=t.global.System,t.global.System=f)}function a(e){for(var t=[],a=0;a<e.length;a++)-1==indexOf.call(t,e[a])&&t.push(e[a]);return t}function r(t,a,r,n){"string"!=typeof t&&(n=r,r=a,a=t,t=null),m=!0;var o;if("boolean"==typeof r)o={declarative:!1,deps:a,execute:n,executingRequire:r};else{if(a.length>0&&1!=r.length)throw"Invalid System.register form for "+t+". Declare function must take one argument.";o={declarative:!0,deps:a,declare:r}}if(t)e.defined[t]||(e.defined[t]=o);else if(o.declarative){if(c)throw"Multiple anonymous System.register calls in the same module file.";c=o}}function n(e){if(!e.register){e.register=r,e.defined||(e.defined={});var t=e.onScriptLoad;e.onScriptLoad=function(e){t(e),c&&(e.metadata.entry=c),(c||m)&&(e.metadata.format=e.metadata.format||"register"),m&&(e.metadata.registered=!0)}}}function o(e,t,a){if(a[e.groupIndex]=a[e.groupIndex]||[],-1==indexOf.call(a[e.groupIndex],e)){a[e.groupIndex].push(e);for(var r=0;r<e.normalizedDeps.length;r++){var n=e.normalizedDeps[r],i=t.defined[n];if(i&&!i.evaluated){var s=e.groupIndex+(i.declarative!=e.declarative);if(void 0===i.groupIndex||i.groupIndex<s){if(i.groupIndex&&(a[i.groupIndex].splice(a[i.groupIndex].indexOf(i),1),0==a[i.groupIndex].length))throw new TypeError("Mixed dependency cycle detected");i.groupIndex=s}o(i,t,a)}}}}function i(e,t){var a=t.defined[e];a.groupIndex=0;var r=[];o(a,t,r);for(var n=!!a.declarative==r.length%2,i=r.length-1;i>=0;i--){for(var l=r[i],u=0;u<l.length;u++){var f=l[u];n?s(f,t):d(f,t)}n=!n}}function s(e,t){if(!e.module){var a=[],r=e.declare.call(t.global,a);e.module=r.exports,e.exportStar=r.exportStar,e.execute=r.execute;for(var n=e.module,o=0;o<e.normalizedDeps.length;o++){var i=e.normalizedDeps[o],l=t.defined[i];l?l.module?depModule=l.module:(s(l,t),depModule=l.module):depModule=t.get(i),e.exportStar&&-1!=indexOf.call(e.exportStar,e.normalizedDeps[o])&&!function(e){for(var t in e)(function(t){Object.defineProperty(n,t,{enumerable:!0,get:function(){return e[t]},set:function(a){e[t]=a}})})(t)}(depModule),a[o]=depModule}}}function l(e,t){var a,r=t.defined[e];if(r)r.declarative?u(e,[],t):r.evaluated||d(r,t),a=r.module;else if(a=t.get(e),!a)throw"System Register: The module requested "+e+" but this was not declared as a dependency";return a?a.__useDefault?a["default"]:a:""}function d(e,t){if(!e.module){if(e.module={"default":{},__useDefault:!0},!e.executingRequire)for(var a=0;a<e.normalizedDeps.length;a++){var r=e.normalizedDeps[a],n=t.defined[r];n&&d(n,t)}var o;for(var i in t.defined)if(t.defined[i]==e){o=i;break}e.evaluated=!0;var s=e.execute.call(t.global,function(a){for(var r=0;r<e.deps.length;r++)if(e.deps[r]==a)return l(e.normalizedDeps[r],t)},e.module["default"],o);s&&(e.module["default"]=s)}}function u(e,t,a){var r=a.defined[e];if(!r.evaluated&&r.declarative){t.push(e);for(var n=0;n<r.normalizedDeps.length;n++){var o=r.normalizedDeps[n];-1==indexOf.call(t,o)&&(a.defined[o]?u(o,t,a):a.get(o))}r.evaluated||(r.evaluated=!0,r.execute.call(a.global))}}"undefined"==typeof indexOf&&(indexOf=Array.prototype.indexOf),"undefined"==typeof __eval&&(__eval=0||eval);var f;e.__exec=t;var c,m;n(e);var p=/System\.register/,g=e.fetch;e.fetch=function(e){var t=this;return n(t),t.defined[e.name]?(e.metadata.format="defined",""):(c=null,m=!1,g.call(t,e))};var h=e.translate;e.translate=function(e){return this.register=r,this.__exec=t,e.metadata.deps=e.metadata.deps||[],Promise.resolve(h.call(this,e)).then(function(t){return(e.metadata.init||e.metadata.exports)&&(e.metadata.format=e.metadata.format||"global"),("register"==e.metadata.format||!e.metadata.format&&e.source.match(p))&&(e.metadata.format="register"),t})};var v=e.instantiate;e.instantiate=function(e){var t,n=this;if(n.defined[e.name])t=n.defined[e.name];else if(e.metadata.entry)t=e.metadata.entry;else if(e.metadata.execute)t={declarative:!1,deps:e.metadata.deps||[],execute:e.metadata.execute,executingRequire:e.metadata.executingRequire};else if("register"==e.metadata.format){c=null,m=!1;var o=n.global.System=n.global.System||n,s=o.register;if(o.register=r,n.__exec(e),o.register=s,c&&(t=c),!m&&!e.metadata.registered)throw e.name+" detected as System.register but didn't execute."}if(!t&&"es6"!=e.metadata.format)return{deps:[],execute:function(){return n.newModule({})}};if(!t)return v.call(this,e);n.defined[e.name]=t,t.deps=a(t.deps);for(var l=[],d=0;d<t.deps.length;d++)l.push(Promise.resolve(n.normalize(t.deps[d],e.name)));return Promise.all(l).then(function(a){return t.normalizedDeps=a,t.depMap=[],{deps:t.deps,execute:function(){if(t.esmodule)return n.defined[e.name]=void 0,t.esmodule;i(e.name,n),u(e.name,[],n),n.defined[e.name]=void 0;var a=n.newModule(t.module);for(var r in n.defined)n.defined[r]&&(t.declarative&&n.defined[r].execute!=t.execute||!t.declarative&&n.defined[r].declare!=t.declare);return a}}})}}function core(e){var t=e["import"];e["import"]=function(e,a){return t.call(this,e,a).then(function(e){return e.__useDefault?e["default"]:e})},e.set("@empty",e.newModule({})),e.config=function(e){for(var t in e){var a=e[t];if("object"==typeof a){this[t]=this[t]||{};for(var r in a)this[t][r]=a[r]}else this[t]=a}};var a;if("undefined"==typeof window)a=process.cwd()+"/";else if(a=document.baseURI,!a){var r=document.getElementsByTagName("base");a=r[0]&&r[0].href||window.location.href}var n,o=e.locate;e.locate=function(e){return this.baseURL!=n&&(n=toAbsoluteURL(a,this.baseURL),"/"!=n.substr(n.length-1,1)&&(n+="/"),this.baseURL=n),Promise.resolve(o.call(this,e))};var i=/^\s*export\s*\*\s*from\s*(?:'([^']+)'|"([^"]+)")/,s=/(?:^\s*|[}{\(\);,\n]\s*)(import\s+['"]|(import|module)\s+[^"'\(\)\n;]+\s+from\s+['"]|export\s+(\*|\{|default|function|var|const|let|[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*))/,l=e.translate;e.translate=function(e){var t=this;if("@traceur"==e.name)return l.call(t,e);var a;if("es6"!=e.metadata.format&&e.metadata.format||!(a=e.source.match(i))){if(("es6"==e.metadata.format||!e.metadata.format&&e.source.match(s))&&(e.metadata.format="es6",!t.global.traceur))return t["import"]("@traceur").then(function(){return l.call(t,e)})}else e.metadata.format="cjs",e.source='module.exports = require("'+(a[1]||a[2])+'");\n';return l.call(t,e)};var d=e.instantiate;e.instantiate=function(e){var t=this;return"@traceur"==e.name?(t.__exec(e),{deps:[],execute:function(){return t.newModule({})}}):d.call(t,e)}}function global(e){function t(e){if(!e.has("@@global-helpers")){var t,a,r=e.global.hasOwnProperty,n={};e.set("@@global-helpers",e.newModule({prepareGlobal:function(o,i){for(var s=0;s<i.length;s++){var l=n[i[s]];if(l)for(var d in l)e.global[d]=l[d]}t={},a=["indexedDB","sessionStorage","localStorage","clipboardData","frames"];for(var u in e.global)if(!r||e.global.hasOwnProperty(u))try{t[u]=e.global[u]}catch(f){a.push(u)}},retrieveGlobal:function(o,i,s){var l,d={};if(s){for(var u=[],f=0;f<deps.length;f++)u.push(require(deps[f]));l=s.apply(e.global,u)}if(i&&!l){var c=i.split(".")[0];l=eval.call(e.global,i),d[c]=e.global[c]}else for(var m in e.global)~a.indexOf(m)||r&&!e.global.hasOwnProperty(m)||m==e.global||t[m]==e.global[m]||(d[m]=e.global[m],l?l!==e.global[m]&&(l=void 0):l!==!1&&(l=e.global[m]));return n[o]=d,"undefined"!=typeof l?l:d}}))}}t(e);var a=e.instantiate;e.instantiate=function(e){var r=this;t(r);var n=e.metadata.exports;return e.metadata.format||(e.metadata.format="global"),"global"==e.metadata.format&&(e.metadata.execute=function(t,a,o){r.get("@@global-helpers").prepareGlobal(o,e.metadata.deps),n&&(e.source+='\nthis["'+n+'"] = '+n+";");var i=r.global.define;return r.global.define=void 0,r.global.module=void 0,r.global.exports=void 0,r.__exec(e),r.global.define=i,r.get("@@global-helpers").retrieveGlobal(o,n,e.metadata.init)}),a.call(r,e)}}function cjs(e){function t(e){a.lastIndex=0,r.lastIndex=0;for(var t,o=[],e=e.replace(n,"");t=r.exec(e);)o.push(t[2]||t[3]);return o}var a=/(?:^\s*|[}{\(\);,\n=:\?\&]\s*|module\.)(exports\s*\[\s*('[^']+'|"[^"]+")\s*\]|\exports\s*\.\s*[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*|exports\s*\=)/,r=/(?:^\s*|[}{\(\);,\n=:\?\&]\s*)require\s*\(\s*("([^"]+)"|'([^']+)')\s*\)/g,n=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/gm,o=function(){},i={nextTick:function(e){setTimeout(e,7)},browser:"undefined"!=typeof window,env:{},argv:[],on:o,once:o,off:o,emit:o,cwd:function(){return"/"}};e._getCJSDeps=t,e.has("@@nodeProcess")||e.set("@@nodeProcess",e.newModule({"default":i,__useDefault:!0}));var s=e.translate;e.translate=function(e){var a=this;return a.has("@@nodeProcess")||a.set("@@nodeProcess",a.newModule({"default":i,__useDefault:!0})),a._getCJSDeps||(a._getCJSDeps=t),s.call(a,e)};var l=e.instantiate;e.instantiate=function(n){return n.metadata.format||(a.lastIndex=0,r.lastIndex=0,(r.exec(n.source)||a.exec(n.source))&&(n.metadata.format="cjs")),"cjs"==n.metadata.format&&(n.metadata.deps=n.metadata.deps?n.metadata.deps.concat(t(n.source)):n.metadata.deps,n.metadata.executingRequire=!0,n.metadata.execute=function(t,a){var r=n.address.split("/");r.pop(),r=r.join("/");var o=e.global._g={global:e.global,exports:a,module:{exports:a},process:i,require:t,__filename:n.address,__dirname:r},s="";for(var l in o)s+="var "+l+" = _g."+l+";";n.source=s+"(function() { "+n.source+"\n}).call(exports)";var d=e.global.define;return e.global.define=void 0,e.__exec(n),e.global.define=d,e.global._g=void 0,o.module.exports}),l.call(this,n)}}function amd(loader){function require(e,t,a,r){var n=this;if("object"==typeof e&&!(e instanceof Array))return require.apply(null,Array.prototype.splice.call(arguments,1,arguments.length-1));if(!(e instanceof Array)){if("string"==typeof e){var o=n.get(e);return o.__useDefault?o["default"]:o}throw"Invalid require"}Promise.all(e.map(function(e){return n["import"](e,r)})).then(function(e){t.apply(null,e)},a)}function makeRequire(e,t,a){return function(r,n,o){return"string"==typeof r?t(r):require.call(a,r,n,o,{name:e})}}function createDefine(e){function t(t,a,r){if("string"!=typeof t&&(r=a,a=t,t=null),!(a instanceof Array)){if(r=a,!e._getCJSDeps)throw"AMD extension needs CJS extension for AMD CJS support";a=["require","exports","module"].concat(e._getCJSDeps(r.toString()))}"function"!=typeof r&&(r=function(e){return function(){return e}}(r));var n,o,i;-1!=(n=indexOf.call(a,"require"))&&a.splice(n,1),-1!=(o=indexOf.call(a,"exports"))&&a.splice(o,1),-1!=(i=indexOf.call(a,"module"))&&a.splice(i,1);var s={deps:a,execute:function(t,s,l){for(var d=[],u=0;u<a.length;u++)d.push(t(a[u]));var f;-1!=i&&d.splice(i,0,s,f={id:l,uri:e.baseURL+l,config:function(){return{}},exports:s}),-1!=o&&d.splice(o,0,s),-1!=n&&d.splice(n,0,makeRequire(l,t,e));var c=r.apply(e.global,d);return"undefined"==typeof c&&f&&(c=f.exports),"undefined"!=typeof c?c:void 0}};if(t)anonDefine=0!=a.length||anonDefine||defineBundle?null:s,defineBundle=!0,e.register(t,s.deps,!1,s.execute);else{if(anonDefine)throw"Multiple defines for anonymous module";anonDefine=s}}if(anonDefine=null,defineBundle=null,e.global.module=void 0,e.global.exports=void 0,!e.global.define||e.global.define.loader!=e){var a=e.onScriptLoad;e.onScriptLoad=function(e){a(e),(anonDefine||defineBundle)&&(e.metadata.format="defined"),anonDefine&&(e.metadata.deps=e.metadata.deps?e.metadata.deps.concat(anonDefine.deps):anonDefine.deps,e.metadata.execute=anonDefine.execute)},e.amdDefine=t,e.global.define=t,e.global.define.amd={},e.global.define.loader=e}}var isNode="undefined"!=typeof module&&module.exports,amdRegEx=/(?:^\s*|[}{\(\);,\n\?\&]\s*)define\s*\(\s*("[^"]+"\s*,\s*|'[^']+'\s*,\s*)?\s*(\[(\s*("[^"]+"|'[^']+')\s*,)*(\s*("[^"]+"|'[^']+')\s*,?\s*)?\]|function\s*|{|[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*\))/;loader.require=require;var anonDefine,defineBundle;if(isNode||loader.amdDefine===!1||createDefine(loader),loader.scriptLoader){var loaderFetch=loader.fetch;loader.fetch=function(e){return loader.amdDefine!==!1&&createDefine(this),loaderFetch.call(this,e)}}var loaderInstantiate=loader.instantiate;loader.instantiate=function(load){var loader=this;if("amd"==load.metadata.format||!load.metadata.format&&load.source.match(amdRegEx)){load.metadata.format="amd",createDefine(loader);try{loader.__exec(load)}catch(e){if(loader.execute!==!1||!isNode)throw e;var match=load.source.match(amdRegEx);match&&(match[1]&&"["==match[1][0]?define(match[1].substr(match[1].length-2),eval(match[2]),function(){}):match[2]&&"["==match[2][0]?define(eval(match[2]),function(){}):define(function(){}))}if(isNode&&(loader.global.define=void 0),!anonDefine&&!defineBundle&&!isNode)throw"AMD module "+load.name+" did not define";anonDefine&&(load.metadata.deps=load.metadata.deps?load.metadata.deps.concat(anonDefine.deps):anonDefine.deps,load.metadata.execute=anonDefine.execute)}return loaderInstantiate.call(loader,load)}}function map(e){function t(e,t){return e.length<t.length?!1:e.substr(0,t.length)!=t?!1:e[t.length]&&"/"!=e[t.length]?!1:!0}function a(e){for(var t=1,a=0,r=e.length;r>a;a++)"/"===e[a]&&t++;return t}function r(e,t,a){return a+e.substr(t)}function n(e,n,o){var i,s,l,d,u=0,f=0;if(n)for(var c in o.map){var m=o.map[c];if("object"==typeof m&&t(n,c)&&(l=a(c),!(f>=l)))for(var p in m)t(e,p)&&(d=a(p),u>=d||(i=p,u=d,s=c,f=l))}if(i)return r(e,i.length,o.map[s][i]);for(var c in o.map){var m=o.map[c];if("string"==typeof m&&t(e,c)){var d=a(c);u>=d||(i=c,u=d)}}return i?r(e,i.length,o.map[i]):e}e.map=e.map||{};var o=e.normalize;e.normalize=function(e,t,a){var r=this;r.map||(r.map={});var i=!1;return"/"==e.substr(e.length-1,1)&&(i=!0,e+="#"),Promise.resolve(o.call(r,e,t,a)).then(function(e){if(e=n(e,t,r),i){var a=e.split("/");a.pop();var o=a.pop();a.push(o),a.push(o),e=a.join("/")}return e})}}function bundles(e){"undefined"==typeof indexOf&&(indexOf=Array.prototype.indexOf),e.bundles=e.bundles||{};var t=e.fetch;e.fetch=function(e){var a=this;if(a.trace)return t.call(this,e);a.bundles||(a.bundles={});for(var r in a.bundles)if(-1!=indexOf.call(a.bundles[r],e.name))return Promise.resolve(a.normalize(r)).then(function(e){return a.bundles[e]=a.bundles[e]||a.bundles[r],a.meta=a.meta||{},a.meta[e]=a.meta[e]||{},a.meta[e].bundle=!0,a.load(e)}).then(function(){return""});return t.call(this,e)}}function versions(e){"undefined"==typeof indexOf&&(indexOf=Array.prototype.indexOf);var t=/^(\d+)(?:\.(\d+)(?:\.(\d+)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?)?)?$/,a=function(e,t){var a,r=e.split("."),n=t.split(".");r[2]&&-1!=(a=indexOf.call(r[2],"-"))&&r.splice(2,1,r[2].substr(0,a),r[2].substr(a+1)),n[2]&&-1!=(a=indexOf.call(n[2],"-"))&&n.splice(2,1,n[2].substr(0,a),n[2].substr(a+1));for(var o=0;o<Math.max(r.length,n.length);o++){if(!r[o])return 1;if(!n[o])return-1;if(r[o]!=n[o])return parseInt(r[o])>parseInt(n[o])?1:-1}return 0};e.versions=e.versions||{};var r=e.normalize;e.normalize=function(n,o,i){e.versions||(e.versions={});var s,l,d=this.versions;if(n.indexOf("@")>0){var u=n.lastIndexOf("@"),f=n.substr(u+1,n.length-u-1).split("/");s=f[0],l=f.length,n=n.substr(0,u)+n.substr(u+s.length+1,n.length-u-s.length-1)}return Promise.resolve(r.call(this,n,o,i)).then(function(e){var r,n,o,i,u=e.indexOf("@");if(s&&(-1==u||0==u)){var f=e.split("/");f[f.length-l]+="@"+s,e=f.join("/"),u=e.indexOf("@")}if(-1==u||0==u){for(var c in d)if(i=d[c],e.substr(0,c.length)==c&&(o=e.substr(c.length,1),!o||"/"==o))return c+"@"+("string"==typeof i?i:i[i.length-1])+e.substr(c.length);return e}r=e.substr(u+1).split("/")[0];var m,p=r.length;if("^"==r.substr(0,1)&&(r=r.substr(1),m=!0),n=r.match(t),!n)return e;m&&(n[2]||(m=!1),n[3]||(n[2]>0?n[3]="0":m=!1)),m&&(n[1]>0?(n[2]||(r=n[1]+".0.0"),n[3]||(r=n[1]+".0"),m=r,n=[n[1]]):n[2]>0?(m=r,n=[0,n[2]]):(m=!1,n=[0,0,n[3]]),r=n.join("."));var g=e.substr(0,u);if(i=d[g]||[],"string"==typeof i&&(i=[i]),!n[3]||m)for(var h=i.length-1;h>=0;h--){var v=i[h];if(v.substr(0,r.length)==r&&v.substr(r.length,1).match(/^[\.\-]?$/)&&(!m||m&&-1!=a(v,m)))return g+"@"+v+e.substr(g.length+p+1)}return-1==indexOf.call(i,r)&&(i.push(r),i.sort(a),e=g+"@"+r+e.substr(g.length+p+1),n[3]&&-1!=(u=indexOf.call(i,n[1]+"."+n[2]))&&i.splice(u,1),n[2]&&-1!=(u=indexOf.call(i,n[1]))&&i.splice(u,1),d[g]=1==i.length?i[0]:i),e})}}function depCache(e){e.depCache=e.depCache||{},loaderLocate=e.locate,e.locate=function(e){var t=this;t.depCache||(t.depCache={});var a=t.depCache[e.name];if(a)for(var r=0;r<a.length;r++)t.load(a[r]);return loaderLocate.call(t,e)}}__$global.upgradeSystemLoader=void 0;var indexOf=Array.prototype.indexOf||function(e){for(var t=0,a=this.length;a>t;t++)if(this[t]===e)return t;return-1},originalSystem=__$global.System,System=__$global.System=new LoaderPolyfill(originalSystem);System.baseURL=originalSystem.baseURL,System.paths={"*":"*.js"},System.originalSystem=originalSystem,System.noConflict=function(){__$global.SystemJS=System,__$global.System=System.originalSystem},scriptLoader(System),meta(System),register(System),core(System),global(System),cjs(System),amd(System),map(System),bundles(System),versions(System),depCache(System),System.paths["@traceur"]||(System.paths["@traceur"]=__$curScript&&__$curScript.getAttribute("data-traceur-src")||(__$curScript&&__$curScript.src?__$curScript.src.substr(0,__$curScript.src.lastIndexOf("/")+1):System.baseURL+(System.baseURL.lastIndexOf("/")==System.baseURL.length-1?"":"/"))+"traceur.js")};var __$curScript;!function(e){if("undefined"!=typeof window){var t=document.getElementsByTagName("script");if(__$curScript=t[t.length-1],e.System&&e.LoaderPolyfill)e.upgradeSystemLoader();else{var a=__$curScript.src,r=a.substr(0,a.lastIndexOf("/")+1);document.write('<script type="text/javascript" src="'+r+'es6-module-loader.js" data-init="upgradeSystemLoader">'+"<"+"/script>")}}else{var n=require("es6-module-loader");e.System=n.System,e.Loader=n.Loader,e.upgradeSystemLoader(),module.exports=e.System}}(__$global)}("undefined"!=typeof window?window:global);
!function($__global){$__global.upgradeSystemLoader=function(){function parseURI(e){var t=String(e).replace(/^\s+|\s+$/g,"").match(/^([^:\/?#]+:)?(\/\/(?:[^:@]*(?::[^:@]*)?@)?(([^:\/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/);return t?{href:t[0]||"",protocol:t[1]||"",authority:t[2]||"",host:t[3]||"",hostname:t[4]||"",port:t[5]||"",pathname:t[6]||"",search:t[7]||"",hash:t[8]||""}:null}function toAbsoluteURL(e,t){function a(e){var t=[];return e.replace(/^(\.\.?(\/|$))+/,"").replace(/\/(\.(\/|$))+/g,"/").replace(/\/\.\.$/,"/../").replace(/\/?[^\/]*/g,function(e){"/.."===e?t.pop():t.push(e)}),t.join("").replace(/^\//,"/"===e.charAt(0)?"/":"")}return t=parseURI(t||""),e=parseURI(e||""),t&&e?(t.protocol||e.protocol)+(t.protocol||t.authority?t.authority:e.authority)+a(t.protocol||t.authority||"/"===t.pathname.charAt(0)?t.pathname:t.pathname?(e.authority&&!e.pathname?"/":"")+e.pathname.slice(0,e.pathname.lastIndexOf("/")+1)+t.pathname:e.pathname)+(t.protocol||t.authority||t.pathname?t.search:t.search||e.search)+t.hash:null}function scriptLoader(e){"undefined"==typeof indexOf&&(indexOf=Array.prototype.indexOf);var t=document.getElementsByTagName("head")[0];e.onScriptLoad=function(){},e.fetch=function(a){return new Promise(function(r,n){function o(){l.readyState&&"loaded"!=l.readyState&&"complete"!=l.readyState||(s(),e.onScriptLoad(a),r(""))}function i(e){s(),n(e)}function s(){l.detachEvent?l.detachEvent("onreadystatechange",o):(l.removeEventListener("load",o,!1),l.removeEventListener("error",i,!1)),t.removeChild(l)}var l=document.createElement("script");l.async=!0,l.attachEvent?l.attachEvent("onreadystatechange",o):(l.addEventListener("load",o,!1),l.addEventListener("error",i,!1)),l.src=a.address,t.appendChild(l)})},e.scriptLoader=!0}function meta(e){function t(e,t){var a=e.meta&&e.meta[t.name];if(a)for(var r in a)t.metadata[r]=t.metadata[r]||a[r]}var a=/^(\s*\/\*.*\*\/|\s*\/\/[^\n]*|\s*"[^"]+"\s*;?|\s*'[^']+'\s*;?)+/,r=/\/\*.*\*\/|\/\/[^\n]*|"[^"]+"\s*;?|'[^']+'\s*;?/g;e.meta={};var n=e.locate;e.locate=function(e){return t(this,e),n.call(this,e)};var o=e.translate;e.translate=function(e){var n=e.source.match(a);if(n)for(var i=n[0].match(r),s=0;s<i.length;s++){var l=i[s].length,d=i[s].substr(0,1);if(";"==i[s].substr(l-1,1)&&l--,'"'==d||"'"==d){var u=i[s].substr(1,i[s].length-3),c=u.substr(0,u.indexOf(" "));if(c){var f=u.substr(c.length+1,u.length-c.length-1);e.metadata[c]instanceof Array?e.metadata[c].push(f):e.metadata[c]||(e.metadata[c]=f)}}}return t(this,e),o.call(this,e)}}function register(e){function t(e){var t=this;"@traceur"==e.name&&(f=System);var a,r=e.source.lastIndexOf("\n");-1!=r&&"//# sourceMappingURL="==e.source.substr(r+1,21)&&(a=e.source.substr(r+22,e.source.length-r-22),"undefined"!=typeof toAbsoluteURL&&(a=toAbsoluteURL(e.address,a))),__eval(e.source,e.address,a),"@traceur"==e.name&&(t.global.traceurSystem=t.global.System,t.global.System=f)}function a(e){for(var t=[],a=0,r=e.length;r>a;a++)-1==indexOf.call(t,e[a])&&t.push(e[a]);return t}function r(t,a,r,n){"string"!=typeof t&&(n=r,r=a,a=t,t=null),p=!0;var o;if("boolean"==typeof r)o={declarative:!1,deps:a,execute:n,executingRequire:r};else{if(a.length>0&&1!=r.length)throw"Invalid System.register form for "+t+". Declare function must take one argument.";o={declarative:!0,deps:a,declare:r}}if(t)o.name=t,e.defined[t]||(e.defined[t]=o);else if(o.declarative){if(m)throw"Multiple anonymous System.register calls in the same module file.";m=o}}function n(e){if(!e.register){e.register=r,e.defined||(e.defined={});var t=e.onScriptLoad;e.onScriptLoad=function(e){t(e),m&&(e.metadata.entry=m),(m||p)&&(e.metadata.format=e.metadata.format||"register"),p&&(e.metadata.registered=!0)}}}function o(e,t,a){if(a[e.groupIndex]=a[e.groupIndex]||[],-1==indexOf.call(a[e.groupIndex],e)){a[e.groupIndex].push(e);for(var r=0,n=e.normalizedDeps.length;n>r;r++){var i=e.normalizedDeps[r],s=t.defined[i];if(s&&!s.evaluated){var l=e.groupIndex+(s.declarative!=e.declarative);if(void 0===s.groupIndex||s.groupIndex<l){if(s.groupIndex&&(a[s.groupIndex].splice(indexOf.call(a[s.groupIndex],s),1),0==a[s.groupIndex].length))throw new TypeError("Mixed dependency cycle detected");s.groupIndex=l}o(s,t,a)}}}}function i(e,t){var a=t.defined[e];a.groupIndex=0;var r=[];o(a,t,r);for(var n=!!a.declarative==r.length%2,i=r.length-1;i>=0;i--){for(var s=r[i],d=0;d<s.length;d++){var c=s[d];n?l(c,t):u(c,t)}n=!n}}function s(e){return h[e]||(h[e]={name:e,dependencies:[],exports:{},importers:[]})}function l(e,t){if(!e.module){var a=e.module=s(e.name),r=e.module.exports,n=e.declare.call(t.global,function(e,t){a.locked=!0,r[e]=t;for(var n=0,o=a.importers.length;o>n;n++){var i=a.importers[n];if(!i.locked){var s=indexOf.call(i.dependencies,a);i.setters[s](r)}}return a.locked=!1,t});if(a.setters=n.setters,a.execute=n.execute,!a.setters||!a.execute)throw"Invalid System.register form for "+e.name;for(var o=0,i=e.normalizedDeps.length;i>o;o++){var d,u=e.normalizedDeps[o],c=t.defined[u],f=h[u];f?d=f.exports:c?(l(c,t),f=c.module,d=f.exports):d=t.get(u),f&&f.importers&&(f.importers.push(a),a.dependencies.push(f)),a.setters[o]&&a.setters[o](d)}}}function d(e,t){var a,r=t.defined[e];if(r)r.declarative?c(e,[],t):r.evaluated||u(r,t),a=r.module.exports;else{if(a=t.get(e),!a)throw"System Register: The module requested "+e+" but this was not declared as a dependency";a.__useDefault&&(a=a["default"])}return a}function u(e,t){if(!e.module){var a={},r=e.module={exports:a,id:e.name};if(!e.executingRequire)for(var n=0,o=e.normalizedDeps.length;o>n;n++){var i=e.normalizedDeps[n],s=t.defined[i];s&&u(s,t)}e.evaluated=!0;var l=e.execute.call(t.global,function(a){for(var r=0,n=e.deps.length;n>r;r++)if(e.deps[r]==a)return d(e.normalizedDeps[r],t)},a,r);l&&(r.exports=l)}}function c(e,t,a){var r=a.defined[e];if(!r.evaluated&&r.declarative){t.push(e);for(var n=0,o=r.normalizedDeps.length;o>n;n++){var i=r.normalizedDeps[n];-1==indexOf.call(t,i)&&(a.defined[i]?c(i,t,a):a.get(i))}r.evaluated||(r.evaluated=!0,r.module.execute.call(a.global))}}"undefined"==typeof indexOf&&(indexOf=Array.prototype.indexOf),"undefined"==typeof __eval&&(__eval=0||eval);var f;e.__exec=t;var m,p;n(e);var h={},g=/System\.register/,v=e.fetch;e.fetch=function(e){var t=this;return n(t),t.defined[e.name]?(e.metadata.format="defined",""):(m=null,p=!1,v.call(t,e))};var x=e.translate;e.translate=function(e){return this.register=r,this.__exec=t,e.metadata.deps=e.metadata.deps||[],Promise.resolve(x.call(this,e)).then(function(t){return(e.metadata.init||e.metadata.exports)&&(e.metadata.format=e.metadata.format||"global"),("register"==e.metadata.format||!e.metadata.format&&e.source.match(g))&&(e.metadata.format="register"),t})};var b=e.instantiate;e.instantiate=function(e){var t,n=this;if(n.defined[e.name])t=n.defined[e.name];else if(e.metadata.entry)t=e.metadata.entry;else if(e.metadata.execute)t={declarative:!1,deps:e.metadata.deps||[],execute:e.metadata.execute,executingRequire:e.metadata.executingRequire};else if("register"==e.metadata.format){m=null,p=!1;var o=n.global.System=n.global.System||n,s=o.register;if(o.register=r,n.__exec(e),o.register=s,m&&(t=m),!p&&!e.metadata.registered)throw e.name+" detected as System.register but didn't execute."}if(!t&&"es6"!=e.metadata.format)return{deps:[],execute:function(){return n.newModule({})}};if(!t)return b.call(this,e);n.defined[e.name]=t,t.deps=a(t.deps),t.name=e.name;for(var l=[],d=0,u=t.deps.length;u>d;d++)l.push(Promise.resolve(n.normalize(t.deps[d],e.name)));return Promise.all(l).then(function(a){return t.normalizedDeps=a,{deps:t.deps,execute:function(){i(e.name,n),c(e.name,[],n),n.defined[e.name]=void 0;var a=n.newModule(t.declarative?t.module.exports:{"default":t.module.exports,__useDefault:!0});return t.module.module=a,a}}})}}function core(e){var t=e["import"];e["import"]=function(e,a){return t.call(this,e,a).then(function(e){return e.__useDefault?e["default"]:e})},e.set("@empty",e.newModule({})),e.config=function(e){for(var t in e){var a=e[t];if("object"!=typeof a||a instanceof Array)this[t]=a;else{this[t]=this[t]||{};for(var r in a)this[t][r]=a[r]}}};var a;if("undefined"==typeof window)a=process.cwd()+"/";else if(a=document.baseURI,!a){var r=document.getElementsByTagName("base");a=r[0]&&r[0].href||window.location.href}var n,o=e.locate;e.locate=function(e){return this.baseURL!=n&&(n=toAbsoluteURL(a,this.baseURL),"/"!=n.substr(n.length-1,1)&&(n+="/"),this.baseURL=n),Promise.resolve(o.call(this,e))};var i=/^\s*export\s*\*\s*from\s*(?:'([^']+)'|"([^"]+)")/,s=/(?:^\s*|[}{\(\);,\n]\s*)(import\s+['"]|(import|module)\s+[^"'\(\)\n;]+\s+from\s+['"]|export\s+(\*|\{|default|function|var|const|let|[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*))/,l=e.translate;e.translate=function(e){var t=this;if("@traceur"==e.name)return l.call(t,e);var a;if("es6"!=e.metadata.format&&e.metadata.format||!(a=e.source.match(i))){if(("es6"==e.metadata.format||!e.metadata.format&&e.source.match(s))&&(e.metadata.format="es6",!t.global.traceur))return t["import"]("@traceur").then(function(){return l.call(t,e)})}else e.metadata.format="cjs",e.source='module.exports = require("'+(a[1]||a[2])+'");\n';return l.call(t,e)};var d=e.instantiate;e.instantiate=function(e){var t=this;return"@traceur"==e.name?(t.__exec(e),{deps:[],execute:function(){return t.newModule({})}}):d.call(t,e)}}function global(e){function t(e){if(!e.has("@@global-helpers")){var t,a,r=e.global.hasOwnProperty,n={};e.set("@@global-helpers",e.newModule({prepareGlobal:function(o,i){for(var s=0;s<i.length;s++){var l=n[i[s]];if(l)for(var d in l)e.global[d]=l[d]}t={},a=["indexedDB","sessionStorage","localStorage","clipboardData","frames","webkitStorageInfo"];for(var u in e.global)if(-1==indexOf.call(a,u)&&(!r||e.global.hasOwnProperty(u)))try{t[u]=e.global[u]}catch(c){a.push(u)}},retrieveGlobal:function(o,i,s){var l,d,u={};if(s){for(var c=[],f=0;f<deps.length;f++)c.push(require(deps[f]));l=s.apply(e.global,c)}else if(i){var m=i.split(".")[0];l=eval.call(e.global,i),u[m]=e.global[m]}else for(var p in e.global)-1==indexOf.call(a,p)&&(r&&!e.global.hasOwnProperty(p)||p==e.global||t[p]==e.global[p]||(u[p]=e.global[p],l?l!==e.global[p]&&(d=!0):l!==!1&&(l=e.global[p])));return n[o]=u,d?u:l}}))}}t(e);var a=e.instantiate;e.instantiate=function(e){var r=this;t(r);var n=e.metadata.exports;return e.metadata.format||(e.metadata.format="global"),"global"==e.metadata.format&&(e.metadata.execute=function(t,a,o){r.get("@@global-helpers").prepareGlobal(o.id,e.metadata.deps),n&&(e.source+='\nthis["'+n+'"] = '+n+";");var i=r.global.define;return r.global.define=void 0,r.global.module=void 0,r.global.exports=void 0,r.__exec(e),r.global.define=i,r.get("@@global-helpers").retrieveGlobal(o.id,n,e.metadata.init)}),a.call(r,e)}}function cjs(e){function t(e){a.lastIndex=0,r.lastIndex=0;for(var t,o=[],e=e.replace(n,"");t=r.exec(e);)o.push(t[2]||t[3]);return o}var a=/(?:^\s*|[}{\(\);,\n=:\?\&]\s*|module\.)(exports\s*\[\s*('[^']+'|"[^"]+")\s*\]|\exports\s*\.\s*[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*|exports\s*\=)/,r=/(?:^\s*|[}{\(\);,\n=:\?\&]\s*)require\s*\(\s*("([^"]+)"|'([^']+)')\s*\)/g,n=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/gm,o=function(){},i={nextTick:function(e){setTimeout(e,7)},browser:"undefined"!=typeof window,env:{},argv:[],on:o,once:o,off:o,emit:o,cwd:function(){return"/"}};e.has("@@nodeProcess")||e.set("@@nodeProcess",e.newModule({"default":i,__useDefault:!0}));var s=e.translate;e.translate=function(e){var t=this;return t.has("@@nodeProcess")||t.set("@@nodeProcess",t.newModule({"default":i,__useDefault:!0})),s.call(t,e)};var l=e.instantiate;e.instantiate=function(n){return n.metadata.format||(a.lastIndex=0,r.lastIndex=0,(r.exec(n.source)||a.exec(n.source))&&(n.metadata.format="cjs")),"cjs"==n.metadata.format&&(n.metadata.deps=n.metadata.deps?n.metadata.deps.concat(t(n.source)):n.metadata.deps,n.metadata.executingRequire=!0,n.metadata.execute=function(t,a,r){var o=(n.address||"").split("/");o.pop(),o=o.join("/");var s=e.global._g={global:e.global,exports:a,module:r,process:i,require:t,__filename:n.address,__dirname:o},l="";for(var d in s)l+="var "+d+" = _g."+d+";";n.source="(function() { "+l+"(function() { "+n.source+"\n}).call(exports); })();";var u=e.global.define;e.global.define=void 0,e.__exec(n),e.global.define=u,e.global._g=void 0}),l.call(this,n)}}function amd(loader){function getCJSDeps(e,t){e=e.replace(commentRegEx,"");var a=e.match(fnBracketRegEx),r=(a[1].split(",")[t]||"require").replace(wsRegEx,""),n=requireRegExs[r]||(requireRegExs[r]=new RegExp(cjsRequirePre+r+cjsRequirePost,"g"));n.lastIndex=0;for(var o,i=[];o=n.exec(e);)i.push(o[2]||o[3]);return i}function require(e,t,a,r){var n=this;if("object"==typeof e&&!(e instanceof Array))return require.apply(null,Array.prototype.splice.call(arguments,1,arguments.length-1));if(!(e instanceof Array)){if("string"==typeof e){var o=n.get(e);return o.__useDefault?o["default"]:o}throw"Invalid require"}Promise.all(e.map(function(e){return n["import"](e,r)})).then(function(e){t.apply(null,e)},a)}function makeRequire(e,t,a){return function(r,n,o){return"string"==typeof r?t(r):require.call(a,r,n,o,{name:e})}}function generateDefine(e){function t(t,a,r){"string"!=typeof t&&(r=a,a=t,t=null),a instanceof Array||(r=a,a=["require","exports","module"]),"function"!=typeof r&&(r=function(e){return function(){return e}}(r)),void 0===a[a.length-1]&&a.pop();var n,o,i;if(-1!=(n=indexOf.call(a,"require"))){a.splice(n,1);var s=r.toString();a=a.concat(getCJSDeps(s,n))}-1!=(o=indexOf.call(a,"exports"))&&a.splice(o,1),-1!=(i=indexOf.call(a,"module"))&&a.splice(i,1);var l={deps:a,execute:function(t,s,l){for(var d=[],u=0;u<a.length;u++)d.push(t(a[u]));l.uri=e.baseURL+l.id,l.config=function(){},-1!=i&&d.splice(i,0,l),-1!=o&&d.splice(o,0,s),-1!=n&&d.splice(n,0,makeRequire(l.id,t,e));var c=r.apply(global,d);return"undefined"==typeof c&&l&&(c=l.exports),"undefined"!=typeof c?c:void 0}};if(t)anonDefine=0!=a.length||anonDefine||defineBundle?null:l,defineBundle=!0,e.register(t,l.deps,!1,l.execute);else{if(anonDefine)throw"Multiple defines for anonymous module";anonDefine=l}}var a=e.onScriptLoad;e.onScriptLoad=function(e){a(e),(anonDefine||defineBundle)&&(e.metadata.format="defined"),anonDefine&&(e.metadata.deps=e.metadata.deps?e.metadata.deps.concat(anonDefine.deps):anonDefine.deps,e.metadata.execute=anonDefine.execute)},t.amd={},e.amdDefine=t}function createDefine(e){e.amdDefine||generateDefine(e),anonDefine=null,defineBundle=null;var t=e.global;oldModule=t.module,oldExports=t.exports,oldDefine=t.define,t.module=void 0,t.exports=void 0,t.define&&t.define===e.amdDefine||(t.define=e.amdDefine)}function removeDefine(e){var t=e.global;t.define=oldDefine,t.module=oldModule,t.exports=oldExports}var isNode="undefined"!=typeof module&&module.exports,amdRegEx=/(?:^\s*|[}{\(\);,\n\?\&]\s*)define\s*\(\s*("[^"]+"\s*,\s*|'[^']+'\s*,\s*)?\s*(\[(\s*(("[^"]+"|'[^']+')\s*,|\/\/.*\r?\n|\/\*(.|\s)*?\*\/))*(\s*("[^"]+"|'[^']+')\s*,?\s*)?(\s*(\/\/.*\r?\n|\/\*(.|\s)*?\*\/)\s*)*\]|function\s*|{|[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*\))/,commentRegEx=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/gm,cjsRequirePre="(?:^\\s*|[}{\\(\\);,\\n=:\\?\\&]\\s*)",cjsRequirePost="\\s*\\(\\s*(\"([^\"]+)\"|'([^']+)')\\s*\\)",fnBracketRegEx=/\(([^\)]*)\)/,wsRegEx=/^\s+|\s+$/g,requireRegExs={};loader.amdRequire=require;var anonDefine,defineBundle,oldModule,oldExports,oldDefine;if(loader.amdDefine!==!1&&createDefine(loader),loader.scriptLoader){var loaderFetch=loader.fetch;loader.fetch=function(e){return loader.amdDefine!==!1&&createDefine(this),loaderFetch.call(this,e)}}var loaderInstantiate=loader.instantiate;loader.instantiate=function(load){var loader=this;if("amd"==load.metadata.format||!load.metadata.format&&load.source.match(amdRegEx)){load.metadata.format="amd",createDefine(loader);try{loader.__exec(load)}catch(e){if(loader.execute!==!1||!isNode)throw e;var match=load.source.match(amdRegEx);match&&(match[1]&&"["==match[1][0]?define(match[1].substr(match[1].length-2),eval(match[2]),function(){}):match[2]&&"["==match[2][0]?define(eval(match[2]),function(){}):define(function(){}))}if(!anonDefine&&!defineBundle&&!isNode)throw"AMD module "+load.name+" did not define";anonDefine&&(load.metadata.deps=load.metadata.deps?load.metadata.deps.concat(anonDefine.deps):anonDefine.deps,load.metadata.execute=anonDefine.execute)}return loaderInstantiate.call(loader,load)}}function map(e){function t(e,t){return e.length<t.length?!1:e.substr(0,t.length)!=t?!1:e[t.length]&&"/"!=e[t.length]?!1:!0}function a(e){for(var t=1,a=0,r=e.length;r>a;a++)"/"===e[a]&&t++;return t}function r(e,t,a){return a+e.substr(t)}function n(e,n,o){var i,s,l,d,u=0,c=0;if(n)for(var f in o.map){var m=o.map[f];if("object"==typeof m&&t(n,f)&&(l=a(f),!(c>=l)))for(var p in m)t(e,p)&&(d=a(p),u>=d||(i=p,u=d,s=f,c=l))}if(i)return r(e,i.length,o.map[s][i]);for(var f in o.map){var m=o.map[f];if("string"==typeof m&&t(e,f)){var d=a(f);u>=d||(i=f,u=d)}}return i?r(e,i.length,o.map[i]):e}e.map=e.map||{};var o=e.normalize;e.normalize=function(e,t,a){var r=this;r.map||(r.map={});var i=!1;return"/"==e.substr(e.length-1,1)&&(i=!0,e+="#"),Promise.resolve(o.call(r,e,t,a)).then(function(e){if(e=n(e,t,r),i){var a=e.split("/");a.pop();var o=a.pop();a.push(o),a.push(o),e=a.join("/")}return e})}}function bundles(e){"undefined"==typeof indexOf&&(indexOf=Array.prototype.indexOf),e.bundles=e.bundles||{};var t=e.fetch;e.fetch=function(e){var a=this;if(a.trace)return t.call(this,e);a.bundles||(a.bundles={});for(var r in a.bundles)if(-1!=indexOf.call(a.bundles[r],e.name))return Promise.resolve(a.normalize(r)).then(function(e){return a.bundles[e]=a.bundles[e]||a.bundles[r],a.meta=a.meta||{},a.meta[e]=a.meta[e]||{},a.meta[e].bundle=!0,a.load(e)}).then(function(){return""});return t.call(this,e)}}function versions(e){"undefined"==typeof indexOf&&(indexOf=Array.prototype.indexOf);var t=/^(\d+)(?:\.(\d+)(?:\.(\d+)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?)?)?$/,a=function(e,t){var a,r=e.split("."),n=t.split(".");r[2]&&-1!=(a=indexOf.call(r[2],"-"))&&r.splice(2,1,r[2].substr(0,a),r[2].substr(a+1)),n[2]&&-1!=(a=indexOf.call(n[2],"-"))&&n.splice(2,1,n[2].substr(0,a),n[2].substr(a+1));for(var o=0;o<Math.max(r.length,n.length);o++){if(!r[o])return 1;if(!n[o])return-1;if(r[o]!=n[o])return parseInt(r[o])>parseInt(n[o])?1:-1}return 0};e.versions=e.versions||{};var r=e.normalize;e.normalize=function(n,o,i){e.versions||(e.versions={});var s,l,d=this.versions;if(n.indexOf("@")>0){var u=n.lastIndexOf("@"),c=n.substr(u+1,n.length-u-1).split("/");s=c[0],l=c.length,n=n.substr(0,u)+n.substr(u+s.length+1,n.length-u-s.length-1)}return Promise.resolve(r.call(this,n,o,i)).then(function(e){var r,n,o,i,u=e.indexOf("@");if(s&&(-1==u||0==u)){var c=e.split("/");c[c.length-l]+="@"+s,e=c.join("/"),u=e.indexOf("@")}if(-1==u||0==u){for(var f in d)if(i=d[f],e.substr(0,f.length)==f&&(o=e.substr(f.length,1),!o||"/"==o))return f+"@"+("string"==typeof i?i:i[i.length-1])+e.substr(f.length);return e}r=e.substr(u+1).split("/")[0];var m,p=r.length;if("^"==r.substr(0,1)&&(r=r.substr(1),m=!0),n=r.match(t),!n)return e;m&&(n[2]||(m=!1),n[3]||(n[2]>0?n[3]="0":m=!1)),m&&(n[1]>0?(n[2]||(r=n[1]+".0.0"),n[3]||(r=n[1]+".0"),m=r,n=[n[1]]):n[2]>0?(m=r,n=[0,n[2]]):(m=!1,n=[0,0,n[3]]),r=n.join("."));var h=e.substr(0,u);if(i=d[h]||[],"string"==typeof i&&(i=[i]),!n[3]||m)for(var g=i.length-1;g>=0;g--){var v=i[g];if(v.substr(0,r.length)==r&&v.substr(r.length,1).match(/^[\.\-]?$/)&&(!m||m&&-1!=a(v,m)))return h+"@"+v+e.substr(h.length+p+1)}return-1==indexOf.call(i,r)&&(i.push(r),i.sort(a),e=h+"@"+r+e.substr(h.length+p+1),n[3]&&-1!=(u=indexOf.call(i,n[1]+"."+n[2]))&&i.splice(u,1),n[2]&&-1!=(u=indexOf.call(i,n[1]))&&i.splice(u,1),d[h]=1==i.length?i[0]:i),e})}}function depCache(e){e.depCache=e.depCache||{},loaderLocate=e.locate,e.locate=function(e){var t=this;t.depCache||(t.depCache={});var a=t.depCache[e.name];if(a)for(var r=0;r<a.length;r++)t.load(a[r]);return loaderLocate.call(t,e)}}$__global.upgradeSystemLoader=void 0;var indexOf=Array.prototype.indexOf||function(e){for(var t=0,a=this.length;a>t;t++)if(this[t]===e)return t;return-1},System;!function(){var e=$__global.System;System=$__global.System=new LoaderPolyfill(e),System.baseURL=e.baseURL,System.paths={"*":"*.js"},System.originalSystem=e}(),System.noConflict=function(){$__global.SystemJS=System,$__global.System=System.originalSystem},scriptLoader(System),meta(System),register(System),core(System),global(System),cjs(System),amd(System),map(System),bundles(System),versions(System),depCache(System),System.paths["@traceur"]||(System.paths["@traceur"]=$__curScript&&$__curScript.getAttribute("data-traceur-src")||($__curScript&&$__curScript.src?$__curScript.src.substr(0,$__curScript.src.lastIndexOf("/")+1):System.baseURL+(System.baseURL.lastIndexOf("/")==System.baseURL.length-1?"":"/"))+"traceur.js")};var $__curScript,__eval;!function(){var e;if(__eval=function(t,a,r){t+="\n//# sourceURL="+a+(r?"\n//# sourceMappingURL="+r:"");try{e(t)}catch(n){throw"Error evaluating "+a}},"undefined"!=typeof window){var t,a=document.getElementsByTagName("script");if($__curScript=a[a.length-1],e=function(e){t||(t=document.head||document.body||document.documentElement);var a=document.createElement("script");a.text=e;var r,n=window.onerror;if(window.onerror=function(e){r=e},t.appendChild(a),t.removeChild(a),window.onerror=n,r)throw r},$__global.System&&$__global.LoaderPolyfill)$__global.upgradeSystemLoader();else{var r=$__curScript.src,n=r.substr(0,r.lastIndexOf("/")+1);document.write('<script type="text/javascript" src="'+n+'es6-module-loader.js" data-init="upgradeSystemLoader">'+"<"+"/script>")}}else{var o=require("es6-module-loader");$__global.System=o.System,$__global.Loader=o.Loader,$__global.upgradeSystemLoader(),module.exports=$__global.System;var i=require("vm");e=function(e){i.runInThisContext(e)}}}()}("undefined"!=typeof window?window:global);

@@ -8,2 +8,2 @@ /*

!function(__$global){function __eval(__source,__global,__address,__sourceMap){try{__source=(__global!=__$global?"with(__global) { (function() { "+__source+" \n }).call(__global); }":__source)+"\n//# sourceURL="+__address+(__sourceMap?"\n//# sourceMappingURL="+__sourceMap:""),eval(__source)}catch(e){throw"SyntaxError"==e.name&&(e.message="Evaluating "+__address+"\n "+e.message),System.trace&&0==System.execute&&(e="Execution error for "+__address+": "+e.stack||e),e}}__$global.upgradeSystemLoader=function(){function parseURI(e){var t=String(e).replace(/^\s+|\s+$/g,"").match(/^([^:\/?#]+:)?(\/\/(?:[^:@]*(?::[^:@]*)?@)?(([^:\/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/);return t?{href:t[0]||"",protocol:t[1]||"",authority:t[2]||"",host:t[3]||"",hostname:t[4]||"",port:t[5]||"",pathname:t[6]||"",search:t[7]||"",hash:t[8]||""}:null}function toAbsoluteURL(e,t){function a(e){var t=[];return e.replace(/^(\.\.?(\/|$))+/,"").replace(/\/(\.(\/|$))+/g,"/").replace(/\/\.\.$/,"/../").replace(/\/?[^\/]*/g,function(e){"/.."===e?t.pop():t.push(e)}),t.join("").replace(/^\//,"/"===e.charAt(0)?"/":"")}return t=parseURI(t||""),e=parseURI(e||""),t&&e?(t.protocol||e.protocol)+(t.protocol||t.authority?t.authority:e.authority)+a(t.protocol||t.authority||"/"===t.pathname.charAt(0)?t.pathname:t.pathname?(e.authority&&!e.pathname?"/":"")+e.pathname.slice(0,e.pathname.lastIndexOf("/")+1)+t.pathname:e.pathname)+(t.protocol||t.authority||t.pathname?t.search:t.search||e.search)+t.hash:null}function meta(e){function t(e,t){var a=e.meta&&e.meta[t.name];if(a)for(var r in a)t.metadata[r]=t.metadata[r]||a[r]}var a=/^(\s*\/\*.*\*\/|\s*\/\/[^\n]*|\s*"[^"]+"\s*;?|\s*'[^']+'\s*;?)+/,r=/\/\*.*\*\/|\/\/[^\n]*|"[^"]+"\s*;?|'[^']+'\s*;?/g;e.meta={};var n=e.locate;e.locate=function(e){return t(this,e),n.call(this,e)};var o=e.translate;e.translate=function(e){var n=e.source.match(a);if(n)for(var l=n[0].match(r),i=0;i<l.length;i++){var s=l[i].length,d=l[i].substr(0,1);if(";"==l[i].substr(s-1,1)&&s--,'"'==d||"'"==d){var u=l[i].substr(1,l[i].length-3),f=u.substr(0,u.indexOf(" "));if(f){var c=u.substr(f.length+1,u.length-f.length-1);e.metadata[f]instanceof Array?e.metadata[f].push(c):e.metadata[f]=c}}}return t(this,e),o.call(this,e)}}function register(e){function t(e){var t=this;"@traceur"==e.name&&(f=System);var a,r=e.source.lastIndexOf("\n");-1!=r&&"//# sourceMappingURL="==e.source.substr(r+1,21)&&(a=e.source.substr(r+22,e.source.length-r-22),"undefined"!=typeof toAbsoluteURL&&(a=toAbsoluteURL(e.address,a))),__eval(e.source,t.global,e.address,a),"@traceur"==e.name&&(t.global.traceurSystem=t.global.System,t.global.System=f)}function a(e){for(var t=[],a=0;a<e.length;a++)-1==indexOf.call(t,e[a])&&t.push(e[a]);return t}function r(t,a,r,n){"string"!=typeof t&&(n=r,r=a,a=t,t=null),m=!0;var o;if("boolean"==typeof r)o={declarative:!1,deps:a,execute:n,executingRequire:r};else{if(a.length>0&&1!=r.length)throw"Invalid System.register form for "+t+". Declare function must take one argument.";o={declarative:!0,deps:a,declare:r}}if(t)e.defined[t]||(e.defined[t]=o);else if(o.declarative){if(c)throw"Multiple anonymous System.register calls in the same module file.";c=o}}function n(e){if(!e.register){e.register=r,e.defined||(e.defined={});var t=e.onScriptLoad;e.onScriptLoad=function(e){t(e),c&&(e.metadata.entry=c),(c||m)&&(e.metadata.format=e.metadata.format||"register"),m&&(e.metadata.registered=!0)}}}function o(e,t,a){if(a[e.groupIndex]=a[e.groupIndex]||[],-1==indexOf.call(a[e.groupIndex],e)){a[e.groupIndex].push(e);for(var r=0;r<e.normalizedDeps.length;r++){var n=e.normalizedDeps[r],l=t.defined[n];if(l&&!l.evaluated){var i=e.groupIndex+(l.declarative!=e.declarative);if(void 0===l.groupIndex||l.groupIndex<i){if(l.groupIndex&&(a[l.groupIndex].splice(a[l.groupIndex].indexOf(l),1),0==a[l.groupIndex].length))throw new TypeError("Mixed dependency cycle detected");l.groupIndex=i}o(l,t,a)}}}}function l(e,t){var a=t.defined[e];a.groupIndex=0;var r=[];o(a,t,r);for(var n=!!a.declarative==r.length%2,l=r.length-1;l>=0;l--){for(var s=r[l],u=0;u<s.length;u++){var f=s[u];n?i(f,t):d(f,t)}n=!n}}function i(e,t){if(!e.module){var a=[],r=e.declare.call(t.global,a);e.module=r.exports,e.exportStar=r.exportStar,e.execute=r.execute;for(var n=e.module,o=0;o<e.normalizedDeps.length;o++){var l=e.normalizedDeps[o],s=t.defined[l];s?s.module?depModule=s.module:(i(s,t),depModule=s.module):depModule=t.get(l),e.exportStar&&-1!=indexOf.call(e.exportStar,e.normalizedDeps[o])&&!function(e){for(var t in e)(function(t){Object.defineProperty(n,t,{enumerable:!0,get:function(){return e[t]},set:function(a){e[t]=a}})})(t)}(depModule),a[o]=depModule}}}function s(e,t){var a,r=t.defined[e];if(r)r.declarative?u(e,[],t):r.evaluated||d(r,t),a=r.module;else if(a=t.get(e),!a)throw"System Register: The module requested "+e+" but this was not declared as a dependency";return a?a.__useDefault?a["default"]:a:""}function d(e,t){if(!e.module){if(e.module={"default":{},__useDefault:!0},!e.executingRequire)for(var a=0;a<e.normalizedDeps.length;a++){var r=e.normalizedDeps[a],n=t.defined[r];n&&d(n,t)}var o;for(var l in t.defined)if(t.defined[l]==e){o=l;break}e.evaluated=!0;var i=e.execute.call(t.global,function(a){for(var r=0;r<e.deps.length;r++)if(e.deps[r]==a)return s(e.normalizedDeps[r],t)},e.module["default"],o);i&&(e.module["default"]=i)}}function u(e,t,a){var r=a.defined[e];if(!r.evaluated&&r.declarative){t.push(e);for(var n=0;n<r.normalizedDeps.length;n++){var o=r.normalizedDeps[n];-1==indexOf.call(t,o)&&(a.defined[o]?u(o,t,a):a.get(o))}r.evaluated||(r.evaluated=!0,r.execute.call(a.global))}}"undefined"==typeof indexOf&&(indexOf=Array.prototype.indexOf),"undefined"==typeof __eval&&(__eval=0||eval);var f;e.__exec=t;var c,m;n(e);var p=/System\.register/,g=e.fetch;e.fetch=function(e){var t=this;return n(t),t.defined[e.name]?(e.metadata.format="defined",""):(c=null,m=!1,g.call(t,e))};var h=e.translate;e.translate=function(e){return this.register=r,this.__exec=t,e.metadata.deps=e.metadata.deps||[],Promise.resolve(h.call(this,e)).then(function(t){return(e.metadata.init||e.metadata.exports)&&(e.metadata.format=e.metadata.format||"global"),("register"==e.metadata.format||!e.metadata.format&&e.source.match(p))&&(e.metadata.format="register"),t})};var v=e.instantiate;e.instantiate=function(e){var t,n=this;if(n.defined[e.name])t=n.defined[e.name];else if(e.metadata.entry)t=e.metadata.entry;else if(e.metadata.execute)t={declarative:!1,deps:e.metadata.deps||[],execute:e.metadata.execute,executingRequire:e.metadata.executingRequire};else if("register"==e.metadata.format){c=null,m=!1;var o=n.global.System=n.global.System||n,i=o.register;if(o.register=r,n.__exec(e),o.register=i,c&&(t=c),!m&&!e.metadata.registered)throw e.name+" detected as System.register but didn't execute."}if(!t&&"es6"!=e.metadata.format)return{deps:[],execute:function(){return n.newModule({})}};if(!t)return v.call(this,e);n.defined[e.name]=t,t.deps=a(t.deps);for(var s=[],d=0;d<t.deps.length;d++)s.push(Promise.resolve(n.normalize(t.deps[d],e.name)));return Promise.all(s).then(function(a){return t.normalizedDeps=a,t.depMap=[],{deps:t.deps,execute:function(){if(t.esmodule)return n.defined[e.name]=void 0,t.esmodule;l(e.name,n),u(e.name,[],n),n.defined[e.name]=void 0;var a=n.newModule(t.module);for(var r in n.defined)n.defined[r]&&(t.declarative&&n.defined[r].execute!=t.execute||!t.declarative&&n.defined[r].declare!=t.declare);return a}}})}}function core(e){var t=e["import"];e["import"]=function(e,a){return t.call(this,e,a).then(function(e){return e.__useDefault?e["default"]:e})},e.set("@empty",e.newModule({})),e.config=function(e){for(var t in e){var a=e[t];if("object"==typeof a){this[t]=this[t]||{};for(var r in a)this[t][r]=a[r]}else this[t]=a}};var a;if("undefined"==typeof window)a=process.cwd()+"/";else if(a=document.baseURI,!a){var r=document.getElementsByTagName("base");a=r[0]&&r[0].href||window.location.href}var n,o=e.locate;e.locate=function(e){return this.baseURL!=n&&(n=toAbsoluteURL(a,this.baseURL),"/"!=n.substr(n.length-1,1)&&(n+="/"),this.baseURL=n),Promise.resolve(o.call(this,e))};var l=/^\s*export\s*\*\s*from\s*(?:'([^']+)'|"([^"]+)")/,i=/(?:^\s*|[}{\(\);,\n]\s*)(import\s+['"]|(import|module)\s+[^"'\(\)\n;]+\s+from\s+['"]|export\s+(\*|\{|default|function|var|const|let|[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*))/,s=e.translate;e.translate=function(e){var t=this;if("@traceur"==e.name)return s.call(t,e);var a;if("es6"!=e.metadata.format&&e.metadata.format||!(a=e.source.match(l))){if(("es6"==e.metadata.format||!e.metadata.format&&e.source.match(i))&&(e.metadata.format="es6",!t.global.traceur))return t["import"]("@traceur").then(function(){return s.call(t,e)})}else e.metadata.format="cjs",e.source='module.exports = require("'+(a[1]||a[2])+'");\n';return s.call(t,e)};var d=e.instantiate;e.instantiate=function(e){var t=this;return"@traceur"==e.name?(t.__exec(e),{deps:[],execute:function(){return t.newModule({})}}):d.call(t,e)}}function global(e){function t(e){if(!e.has("@@global-helpers")){var t,a,r=e.global.hasOwnProperty,n={};e.set("@@global-helpers",e.newModule({prepareGlobal:function(o,l){for(var i=0;i<l.length;i++){var s=n[l[i]];if(s)for(var d in s)e.global[d]=s[d]}t={},a=["indexedDB","sessionStorage","localStorage","clipboardData","frames"];for(var u in e.global)if(!r||e.global.hasOwnProperty(u))try{t[u]=e.global[u]}catch(f){a.push(u)}},retrieveGlobal:function(o,l,i){var s,d={};if(i){for(var u=[],f=0;f<deps.length;f++)u.push(require(deps[f]));s=i.apply(e.global,u)}if(l&&!s){var c=l.split(".")[0];s=eval.call(e.global,l),d[c]=e.global[c]}else for(var m in e.global)~a.indexOf(m)||r&&!e.global.hasOwnProperty(m)||m==e.global||t[m]==e.global[m]||(d[m]=e.global[m],s?s!==e.global[m]&&(s=void 0):s!==!1&&(s=e.global[m]));return n[o]=d,"undefined"!=typeof s?s:d}}))}}t(e);var a=e.instantiate;e.instantiate=function(e){var r=this;t(r);var n=e.metadata.exports;return e.metadata.format||(e.metadata.format="global"),"global"==e.metadata.format&&(e.metadata.execute=function(t,a,o){r.get("@@global-helpers").prepareGlobal(o,e.metadata.deps),n&&(e.source+='\nthis["'+n+'"] = '+n+";");var l=r.global.define;return r.global.define=void 0,r.global.module=void 0,r.global.exports=void 0,r.__exec(e),r.global.define=l,r.get("@@global-helpers").retrieveGlobal(o,n,e.metadata.init)}),a.call(r,e)}}function cjs(e){function t(e){a.lastIndex=0,r.lastIndex=0;for(var t,o=[],e=e.replace(n,"");t=r.exec(e);)o.push(t[2]||t[3]);return o}var a=/(?:^\s*|[}{\(\);,\n=:\?\&]\s*|module\.)(exports\s*\[\s*('[^']+'|"[^"]+")\s*\]|\exports\s*\.\s*[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*|exports\s*\=)/,r=/(?:^\s*|[}{\(\);,\n=:\?\&]\s*)require\s*\(\s*("([^"]+)"|'([^']+)')\s*\)/g,n=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/gm,o=function(){},l={nextTick:function(e){setTimeout(e,7)},browser:"undefined"!=typeof window,env:{},argv:[],on:o,once:o,off:o,emit:o,cwd:function(){return"/"}};e._getCJSDeps=t,e.has("@@nodeProcess")||e.set("@@nodeProcess",e.newModule({"default":l,__useDefault:!0}));var i=e.translate;e.translate=function(e){var a=this;return a.has("@@nodeProcess")||a.set("@@nodeProcess",a.newModule({"default":l,__useDefault:!0})),a._getCJSDeps||(a._getCJSDeps=t),i.call(a,e)};var s=e.instantiate;e.instantiate=function(n){return n.metadata.format||(a.lastIndex=0,r.lastIndex=0,(r.exec(n.source)||a.exec(n.source))&&(n.metadata.format="cjs")),"cjs"==n.metadata.format&&(n.metadata.deps=n.metadata.deps?n.metadata.deps.concat(t(n.source)):n.metadata.deps,n.metadata.executingRequire=!0,n.metadata.execute=function(t,a){var r=n.address.split("/");r.pop(),r=r.join("/");var o=e.global._g={global:e.global,exports:a,module:{exports:a},process:l,require:t,__filename:n.address,__dirname:r},i="";for(var s in o)i+="var "+s+" = _g."+s+";";n.source=i+"(function() { "+n.source+"\n}).call(exports)";var d=e.global.define;return e.global.define=void 0,e.__exec(n),e.global.define=d,e.global._g=void 0,o.module.exports}),s.call(this,n)}}function amd(loader){function require(e,t,a,r){var n=this;if("object"==typeof e&&!(e instanceof Array))return require.apply(null,Array.prototype.splice.call(arguments,1,arguments.length-1));if(!(e instanceof Array)){if("string"==typeof e){var o=n.get(e);return o.__useDefault?o["default"]:o}throw"Invalid require"}Promise.all(e.map(function(e){return n["import"](e,r)})).then(function(e){t.apply(null,e)},a)}function makeRequire(e,t,a){return function(r,n,o){return"string"==typeof r?t(r):require.call(a,r,n,o,{name:e})}}function createDefine(e){function t(t,a,r){if("string"!=typeof t&&(r=a,a=t,t=null),!(a instanceof Array)){if(r=a,!e._getCJSDeps)throw"AMD extension needs CJS extension for AMD CJS support";a=["require","exports","module"].concat(e._getCJSDeps(r.toString()))}"function"!=typeof r&&(r=function(e){return function(){return e}}(r));var n,o,l;-1!=(n=indexOf.call(a,"require"))&&a.splice(n,1),-1!=(o=indexOf.call(a,"exports"))&&a.splice(o,1),-1!=(l=indexOf.call(a,"module"))&&a.splice(l,1);var i={deps:a,execute:function(t,i,s){for(var d=[],u=0;u<a.length;u++)d.push(t(a[u]));var f;-1!=l&&d.splice(l,0,i,f={id:s,uri:e.baseURL+s,config:function(){return{}},exports:i}),-1!=o&&d.splice(o,0,i),-1!=n&&d.splice(n,0,makeRequire(s,t,e));var c=r.apply(e.global,d);return"undefined"==typeof c&&f&&(c=f.exports),"undefined"!=typeof c?c:void 0}};if(t)anonDefine=0!=a.length||anonDefine||defineBundle?null:i,defineBundle=!0,e.register(t,i.deps,!1,i.execute);else{if(anonDefine)throw"Multiple defines for anonymous module";anonDefine=i}}if(anonDefine=null,defineBundle=null,e.global.module=void 0,e.global.exports=void 0,!e.global.define||e.global.define.loader!=e){var a=e.onScriptLoad;e.onScriptLoad=function(e){a(e),(anonDefine||defineBundle)&&(e.metadata.format="defined"),anonDefine&&(e.metadata.deps=e.metadata.deps?e.metadata.deps.concat(anonDefine.deps):anonDefine.deps,e.metadata.execute=anonDefine.execute)},e.amdDefine=t,e.global.define=t,e.global.define.amd={},e.global.define.loader=e}}var isNode="undefined"!=typeof module&&module.exports,amdRegEx=/(?:^\s*|[}{\(\);,\n\?\&]\s*)define\s*\(\s*("[^"]+"\s*,\s*|'[^']+'\s*,\s*)?\s*(\[(\s*("[^"]+"|'[^']+')\s*,)*(\s*("[^"]+"|'[^']+')\s*,?\s*)?\]|function\s*|{|[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*\))/;loader.require=require;var anonDefine,defineBundle;if(isNode||loader.amdDefine===!1||createDefine(loader),loader.scriptLoader){var loaderFetch=loader.fetch;loader.fetch=function(e){return loader.amdDefine!==!1&&createDefine(this),loaderFetch.call(this,e)}}var loaderInstantiate=loader.instantiate;loader.instantiate=function(load){var loader=this;if("amd"==load.metadata.format||!load.metadata.format&&load.source.match(amdRegEx)){load.metadata.format="amd",createDefine(loader);try{loader.__exec(load)}catch(e){if(loader.execute!==!1||!isNode)throw e;var match=load.source.match(amdRegEx);match&&(match[1]&&"["==match[1][0]?define(match[1].substr(match[1].length-2),eval(match[2]),function(){}):match[2]&&"["==match[2][0]?define(eval(match[2]),function(){}):define(function(){}))}if(isNode&&(loader.global.define=void 0),!anonDefine&&!defineBundle&&!isNode)throw"AMD module "+load.name+" did not define";anonDefine&&(load.metadata.deps=load.metadata.deps?load.metadata.deps.concat(anonDefine.deps):anonDefine.deps,load.metadata.execute=anonDefine.execute)}return loaderInstantiate.call(loader,load)}}function map(e){function t(e,t){return e.length<t.length?!1:e.substr(0,t.length)!=t?!1:e[t.length]&&"/"!=e[t.length]?!1:!0}function a(e){for(var t=1,a=0,r=e.length;r>a;a++)"/"===e[a]&&t++;return t}function r(e,t,a){return a+e.substr(t)}function n(e,n,o){var l,i,s,d,u=0,f=0;if(n)for(var c in o.map){var m=o.map[c];if("object"==typeof m&&t(n,c)&&(s=a(c),!(f>=s)))for(var p in m)t(e,p)&&(d=a(p),u>=d||(l=p,u=d,i=c,f=s))}if(l)return r(e,l.length,o.map[i][l]);for(var c in o.map){var m=o.map[c];if("string"==typeof m&&t(e,c)){var d=a(c);u>=d||(l=c,u=d)}}return l?r(e,l.length,o.map[l]):e}e.map=e.map||{};var o=e.normalize;e.normalize=function(e,t,a){var r=this;r.map||(r.map={});var l=!1;return"/"==e.substr(e.length-1,1)&&(l=!0,e+="#"),Promise.resolve(o.call(r,e,t,a)).then(function(e){if(e=n(e,t,r),l){var a=e.split("/");a.pop();var o=a.pop();a.push(o),a.push(o),e=a.join("/")}return e})}}function plugins(e){"undefined"==typeof indexOf&&(indexOf=Array.prototype.indexOf);var t=e.normalize;e.normalize=function(e,a,r){var n,o=this;return a&&-1!=(n=a.indexOf("!"))&&(a=a.substr(0,n)),Promise.resolve(t.call(o,e,a,r)).then(function(e){var t=e.lastIndexOf("!");if(-1!=t){var n=e.substr(0,t),l=e.substr(t+1)||n.substr(n.lastIndexOf(".")+1);return new Promise(function(e){e(o.normalize(l,a,r))}).then(function(e){return l=e,o.normalize(n,a,r)}).then(function(e){return e+"!"+l})}return e})};var a=e.locate;e.locate=function(e){var t=this,r=e.name,n=r.lastIndexOf("!");if(-1!=n){var o=r.substr(n+1);e.name=r.substr(0,n);var l=t.pluginLoader||t;return l["import"](o).then(function(){var a=l.get(o);return a=a["default"]||a,a.build===!1&&t.pluginLoader&&(e.metadata.build=!1),e.metadata.plugin=a,e.metadata.pluginName=o,e.metadata.pluginArgument=e.name,a.locate?a.locate.call(t,e):Promise.resolve(t.locate(e)).then(function(e){return e.substr(0,e.length-3)})})}return a.call(this,e)};var r=e.fetch;e.fetch=function(e){var t=this;return e.metadata.build===!1?"":e.metadata.plugin&&e.metadata.plugin.fetch&&!e.metadata.pluginFetchCalled?(e.metadata.pluginFetchCalled=!0,e.metadata.plugin.fetch.call(t,e,r)):r.call(t,e)};var n=e.translate;e.translate=function(e){var t=this;return e.metadata.plugin&&e.metadata.plugin.translate?Promise.resolve(e.metadata.plugin.translate.call(t,e)).then(function(a){return a?a:n.call(t,e)}):n.call(t,e)};var o=e.instantiate;e.instantiate=function(e){var t=this;return e.metadata.plugin&&e.metadata.plugin.instantiate?Promise.resolve(e.metadata.plugin.instantiate.call(t,e)).then(function(a){return e.metadata.format="defined",e.metadata.execute=function(){return a},o.call(t,e)}):e.metadata.plugin&&e.metadata.plugin.build===!1?(e.metadata.format="defined",e.metadata.deps.push(e.metadata.pluginName),e.metadata.execute=function(){return t.newModule({})},o.call(t,e)):o.call(t,e)}}function bundles(e){"undefined"==typeof indexOf&&(indexOf=Array.prototype.indexOf),e.bundles=e.bundles||{};var t=e.fetch;e.fetch=function(e){var a=this;if(a.trace)return t.call(this,e);a.bundles||(a.bundles={});for(var r in a.bundles)if(-1!=indexOf.call(a.bundles[r],e.name))return Promise.resolve(a.normalize(r)).then(function(e){return a.bundles[e]=a.bundles[e]||a.bundles[r],a.meta=a.meta||{},a.meta[e]=a.meta[e]||{},a.meta[e].bundle=!0,a.load(e)}).then(function(){return""});return t.call(this,e)}}function versions(e){"undefined"==typeof indexOf&&(indexOf=Array.prototype.indexOf);var t=/^(\d+)(?:\.(\d+)(?:\.(\d+)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?)?)?$/,a=function(e,t){var a,r=e.split("."),n=t.split(".");r[2]&&-1!=(a=indexOf.call(r[2],"-"))&&r.splice(2,1,r[2].substr(0,a),r[2].substr(a+1)),n[2]&&-1!=(a=indexOf.call(n[2],"-"))&&n.splice(2,1,n[2].substr(0,a),n[2].substr(a+1));for(var o=0;o<Math.max(r.length,n.length);o++){if(!r[o])return 1;if(!n[o])return-1;if(r[o]!=n[o])return parseInt(r[o])>parseInt(n[o])?1:-1}return 0};e.versions=e.versions||{};var r=e.normalize;e.normalize=function(n,o,l){e.versions||(e.versions={});var i,s,d=this.versions;if(n.indexOf("@")>0){var u=n.lastIndexOf("@"),f=n.substr(u+1,n.length-u-1).split("/");i=f[0],s=f.length,n=n.substr(0,u)+n.substr(u+i.length+1,n.length-u-i.length-1)}return Promise.resolve(r.call(this,n,o,l)).then(function(e){var r,n,o,l,u=e.indexOf("@");if(i&&(-1==u||0==u)){var f=e.split("/");f[f.length-s]+="@"+i,e=f.join("/"),u=e.indexOf("@")}if(-1==u||0==u){for(var c in d)if(l=d[c],e.substr(0,c.length)==c&&(o=e.substr(c.length,1),!o||"/"==o))return c+"@"+("string"==typeof l?l:l[l.length-1])+e.substr(c.length);return e}r=e.substr(u+1).split("/")[0];var m,p=r.length;if("^"==r.substr(0,1)&&(r=r.substr(1),m=!0),n=r.match(t),!n)return e;m&&(n[2]||(m=!1),n[3]||(n[2]>0?n[3]="0":m=!1)),m&&(n[1]>0?(n[2]||(r=n[1]+".0.0"),n[3]||(r=n[1]+".0"),m=r,n=[n[1]]):n[2]>0?(m=r,n=[0,n[2]]):(m=!1,n=[0,0,n[3]]),r=n.join("."));var g=e.substr(0,u);if(l=d[g]||[],"string"==typeof l&&(l=[l]),!n[3]||m)for(var h=l.length-1;h>=0;h--){var v=l[h];if(v.substr(0,r.length)==r&&v.substr(r.length,1).match(/^[\.\-]?$/)&&(!m||m&&-1!=a(v,m)))return g+"@"+v+e.substr(g.length+p+1)}return-1==indexOf.call(l,r)&&(l.push(r),l.sort(a),e=g+"@"+r+e.substr(g.length+p+1),n[3]&&-1!=(u=indexOf.call(l,n[1]+"."+n[2]))&&l.splice(u,1),n[2]&&-1!=(u=indexOf.call(l,n[1]))&&l.splice(u,1),d[g]=1==l.length?l[0]:l),e})}}function depCache(e){e.depCache=e.depCache||{},loaderLocate=e.locate,e.locate=function(e){var t=this;t.depCache||(t.depCache={});var a=t.depCache[e.name];if(a)for(var r=0;r<a.length;r++)t.load(a[r]);return loaderLocate.call(t,e)}}__$global.upgradeSystemLoader=void 0;var indexOf=Array.prototype.indexOf||function(e){for(var t=0,a=this.length;a>t;t++)if(this[t]===e)return t;return-1},originalSystem=__$global.System,System=__$global.System=new LoaderPolyfill(originalSystem);System.baseURL=originalSystem.baseURL,System.paths={"*":"*.js"},System.originalSystem=originalSystem,System.noConflict=function(){__$global.SystemJS=System,__$global.System=System.originalSystem},meta(System),register(System),core(System),global(System),cjs(System),amd(System),map(System),plugins(System),bundles(System),versions(System),depCache(System),System.paths["@traceur"]||(System.paths["@traceur"]=__$curScript&&__$curScript.getAttribute("data-traceur-src")||(__$curScript&&__$curScript.src?__$curScript.src.substr(0,__$curScript.src.lastIndexOf("/")+1):System.baseURL+(System.baseURL.lastIndexOf("/")==System.baseURL.length-1?"":"/"))+"traceur.js")};var __$curScript;!function(e){if("undefined"!=typeof window){var t=document.getElementsByTagName("script");if(__$curScript=t[t.length-1],e.System&&e.LoaderPolyfill)e.upgradeSystemLoader();else{var a=__$curScript.src,r=a.substr(0,a.lastIndexOf("/")+1);document.write('<script type="text/javascript" src="'+r+'es6-module-loader.js" data-init="upgradeSystemLoader">'+"<"+"/script>")}}else{var n=require("es6-module-loader");e.System=n.System,e.Loader=n.Loader,e.upgradeSystemLoader(),module.exports=e.System}}(__$global)}("undefined"!=typeof window?window:global);
!function($__global){$__global.upgradeSystemLoader=function(){function parseURI(e){var t=String(e).replace(/^\s+|\s+$/g,"").match(/^([^:\/?#]+:)?(\/\/(?:[^:@]*(?::[^:@]*)?@)?(([^:\/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/);return t?{href:t[0]||"",protocol:t[1]||"",authority:t[2]||"",host:t[3]||"",hostname:t[4]||"",port:t[5]||"",pathname:t[6]||"",search:t[7]||"",hash:t[8]||""}:null}function toAbsoluteURL(e,t){function a(e){var t=[];return e.replace(/^(\.\.?(\/|$))+/,"").replace(/\/(\.(\/|$))+/g,"/").replace(/\/\.\.$/,"/../").replace(/\/?[^\/]*/g,function(e){"/.."===e?t.pop():t.push(e)}),t.join("").replace(/^\//,"/"===e.charAt(0)?"/":"")}return t=parseURI(t||""),e=parseURI(e||""),t&&e?(t.protocol||e.protocol)+(t.protocol||t.authority?t.authority:e.authority)+a(t.protocol||t.authority||"/"===t.pathname.charAt(0)?t.pathname:t.pathname?(e.authority&&!e.pathname?"/":"")+e.pathname.slice(0,e.pathname.lastIndexOf("/")+1)+t.pathname:e.pathname)+(t.protocol||t.authority||t.pathname?t.search:t.search||e.search)+t.hash:null}function meta(e){function t(e,t){var a=e.meta&&e.meta[t.name];if(a)for(var r in a)t.metadata[r]=t.metadata[r]||a[r]}var a=/^(\s*\/\*.*\*\/|\s*\/\/[^\n]*|\s*"[^"]+"\s*;?|\s*'[^']+'\s*;?)+/,r=/\/\*.*\*\/|\/\/[^\n]*|"[^"]+"\s*;?|'[^']+'\s*;?/g;e.meta={};var n=e.locate;e.locate=function(e){return t(this,e),n.call(this,e)};var o=e.translate;e.translate=function(e){var n=e.source.match(a);if(n)for(var i=n[0].match(r),l=0;l<i.length;l++){var s=i[l].length,d=i[l].substr(0,1);if(";"==i[l].substr(s-1,1)&&s--,'"'==d||"'"==d){var u=i[l].substr(1,i[l].length-3),c=u.substr(0,u.indexOf(" "));if(c){var f=u.substr(c.length+1,u.length-c.length-1);e.metadata[c]instanceof Array?e.metadata[c].push(f):e.metadata[c]||(e.metadata[c]=f)}}}return t(this,e),o.call(this,e)}}function register(e){function t(e){var t=this;"@traceur"==e.name&&(f=System);var a,r=e.source.lastIndexOf("\n");-1!=r&&"//# sourceMappingURL="==e.source.substr(r+1,21)&&(a=e.source.substr(r+22,e.source.length-r-22),"undefined"!=typeof toAbsoluteURL&&(a=toAbsoluteURL(e.address,a))),__eval(e.source,e.address,a),"@traceur"==e.name&&(t.global.traceurSystem=t.global.System,t.global.System=f)}function a(e){for(var t=[],a=0,r=e.length;r>a;a++)-1==indexOf.call(t,e[a])&&t.push(e[a]);return t}function r(t,a,r,n){"string"!=typeof t&&(n=r,r=a,a=t,t=null),p=!0;var o;if("boolean"==typeof r)o={declarative:!1,deps:a,execute:n,executingRequire:r};else{if(a.length>0&&1!=r.length)throw"Invalid System.register form for "+t+". Declare function must take one argument.";o={declarative:!0,deps:a,declare:r}}if(t)o.name=t,e.defined[t]||(e.defined[t]=o);else if(o.declarative){if(m)throw"Multiple anonymous System.register calls in the same module file.";m=o}}function n(e){if(!e.register){e.register=r,e.defined||(e.defined={});var t=e.onScriptLoad;e.onScriptLoad=function(e){t(e),m&&(e.metadata.entry=m),(m||p)&&(e.metadata.format=e.metadata.format||"register"),p&&(e.metadata.registered=!0)}}}function o(e,t,a){if(a[e.groupIndex]=a[e.groupIndex]||[],-1==indexOf.call(a[e.groupIndex],e)){a[e.groupIndex].push(e);for(var r=0,n=e.normalizedDeps.length;n>r;r++){var i=e.normalizedDeps[r],l=t.defined[i];if(l&&!l.evaluated){var s=e.groupIndex+(l.declarative!=e.declarative);if(void 0===l.groupIndex||l.groupIndex<s){if(l.groupIndex&&(a[l.groupIndex].splice(indexOf.call(a[l.groupIndex],l),1),0==a[l.groupIndex].length))throw new TypeError("Mixed dependency cycle detected");l.groupIndex=s}o(l,t,a)}}}}function i(e,t){var a=t.defined[e];a.groupIndex=0;var r=[];o(a,t,r);for(var n=!!a.declarative==r.length%2,i=r.length-1;i>=0;i--){for(var l=r[i],d=0;d<l.length;d++){var c=l[d];n?s(c,t):u(c,t)}n=!n}}function l(e){return g[e]||(g[e]={name:e,dependencies:[],exports:{},importers:[]})}function s(e,t){if(!e.module){var a=e.module=l(e.name),r=e.module.exports,n=e.declare.call(t.global,function(e,t){a.locked=!0,r[e]=t;for(var n=0,o=a.importers.length;o>n;n++){var i=a.importers[n];if(!i.locked){var l=indexOf.call(i.dependencies,a);i.setters[l](r)}}return a.locked=!1,t});if(a.setters=n.setters,a.execute=n.execute,!a.setters||!a.execute)throw"Invalid System.register form for "+e.name;for(var o=0,i=e.normalizedDeps.length;i>o;o++){var d,u=e.normalizedDeps[o],c=t.defined[u],f=g[u];f?d=f.exports:c?(s(c,t),f=c.module,d=f.exports):d=t.get(u),f&&f.importers&&(f.importers.push(a),a.dependencies.push(f)),a.setters[o]&&a.setters[o](d)}}}function d(e,t){var a,r=t.defined[e];if(r)r.declarative?c(e,[],t):r.evaluated||u(r,t),a=r.module.exports;else{if(a=t.get(e),!a)throw"System Register: The module requested "+e+" but this was not declared as a dependency";a.__useDefault&&(a=a["default"])}return a}function u(e,t){if(!e.module){var a={},r=e.module={exports:a,id:e.name};if(!e.executingRequire)for(var n=0,o=e.normalizedDeps.length;o>n;n++){var i=e.normalizedDeps[n],l=t.defined[i];l&&u(l,t)}e.evaluated=!0;var s=e.execute.call(t.global,function(a){for(var r=0,n=e.deps.length;n>r;r++)if(e.deps[r]==a)return d(e.normalizedDeps[r],t)},a,r);s&&(r.exports=s)}}function c(e,t,a){var r=a.defined[e];if(!r.evaluated&&r.declarative){t.push(e);for(var n=0,o=r.normalizedDeps.length;o>n;n++){var i=r.normalizedDeps[n];-1==indexOf.call(t,i)&&(a.defined[i]?c(i,t,a):a.get(i))}r.evaluated||(r.evaluated=!0,r.module.execute.call(a.global))}}"undefined"==typeof indexOf&&(indexOf=Array.prototype.indexOf),"undefined"==typeof __eval&&(__eval=0||eval);var f;e.__exec=t;var m,p;n(e);var g={},h=/System\.register/,v=e.fetch;e.fetch=function(e){var t=this;return n(t),t.defined[e.name]?(e.metadata.format="defined",""):(m=null,p=!1,v.call(t,e))};var x=e.translate;e.translate=function(e){return this.register=r,this.__exec=t,e.metadata.deps=e.metadata.deps||[],Promise.resolve(x.call(this,e)).then(function(t){return(e.metadata.init||e.metadata.exports)&&(e.metadata.format=e.metadata.format||"global"),("register"==e.metadata.format||!e.metadata.format&&e.source.match(h))&&(e.metadata.format="register"),t})};var b=e.instantiate;e.instantiate=function(e){var t,n=this;if(n.defined[e.name])t=n.defined[e.name];else if(e.metadata.entry)t=e.metadata.entry;else if(e.metadata.execute)t={declarative:!1,deps:e.metadata.deps||[],execute:e.metadata.execute,executingRequire:e.metadata.executingRequire};else if("register"==e.metadata.format){m=null,p=!1;var o=n.global.System=n.global.System||n,l=o.register;if(o.register=r,n.__exec(e),o.register=l,m&&(t=m),!p&&!e.metadata.registered)throw e.name+" detected as System.register but didn't execute."}if(!t&&"es6"!=e.metadata.format)return{deps:[],execute:function(){return n.newModule({})}};if(!t)return b.call(this,e);n.defined[e.name]=t,t.deps=a(t.deps),t.name=e.name;for(var s=[],d=0,u=t.deps.length;u>d;d++)s.push(Promise.resolve(n.normalize(t.deps[d],e.name)));return Promise.all(s).then(function(a){return t.normalizedDeps=a,{deps:t.deps,execute:function(){i(e.name,n),c(e.name,[],n),n.defined[e.name]=void 0;var a=n.newModule(t.declarative?t.module.exports:{"default":t.module.exports,__useDefault:!0});return t.module.module=a,a}}})}}function core(e){var t=e["import"];e["import"]=function(e,a){return t.call(this,e,a).then(function(e){return e.__useDefault?e["default"]:e})},e.set("@empty",e.newModule({})),e.config=function(e){for(var t in e){var a=e[t];if("object"!=typeof a||a instanceof Array)this[t]=a;else{this[t]=this[t]||{};for(var r in a)this[t][r]=a[r]}}};var a;if("undefined"==typeof window)a=process.cwd()+"/";else if(a=document.baseURI,!a){var r=document.getElementsByTagName("base");a=r[0]&&r[0].href||window.location.href}var n,o=e.locate;e.locate=function(e){return this.baseURL!=n&&(n=toAbsoluteURL(a,this.baseURL),"/"!=n.substr(n.length-1,1)&&(n+="/"),this.baseURL=n),Promise.resolve(o.call(this,e))};var i=/^\s*export\s*\*\s*from\s*(?:'([^']+)'|"([^"]+)")/,l=/(?:^\s*|[}{\(\);,\n]\s*)(import\s+['"]|(import|module)\s+[^"'\(\)\n;]+\s+from\s+['"]|export\s+(\*|\{|default|function|var|const|let|[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*))/,s=e.translate;e.translate=function(e){var t=this;if("@traceur"==e.name)return s.call(t,e);var a;if("es6"!=e.metadata.format&&e.metadata.format||!(a=e.source.match(i))){if(("es6"==e.metadata.format||!e.metadata.format&&e.source.match(l))&&(e.metadata.format="es6",!t.global.traceur))return t["import"]("@traceur").then(function(){return s.call(t,e)})}else e.metadata.format="cjs",e.source='module.exports = require("'+(a[1]||a[2])+'");\n';return s.call(t,e)};var d=e.instantiate;e.instantiate=function(e){var t=this;return"@traceur"==e.name?(t.__exec(e),{deps:[],execute:function(){return t.newModule({})}}):d.call(t,e)}}function global(e){function t(e){if(!e.has("@@global-helpers")){var t,a,r=e.global.hasOwnProperty,n={};e.set("@@global-helpers",e.newModule({prepareGlobal:function(o,i){for(var l=0;l<i.length;l++){var s=n[i[l]];if(s)for(var d in s)e.global[d]=s[d]}t={},a=["indexedDB","sessionStorage","localStorage","clipboardData","frames","webkitStorageInfo"];for(var u in e.global)if(-1==indexOf.call(a,u)&&(!r||e.global.hasOwnProperty(u)))try{t[u]=e.global[u]}catch(c){a.push(u)}},retrieveGlobal:function(o,i,l){var s,d,u={};if(l){for(var c=[],f=0;f<deps.length;f++)c.push(require(deps[f]));s=l.apply(e.global,c)}else if(i){var m=i.split(".")[0];s=eval.call(e.global,i),u[m]=e.global[m]}else for(var p in e.global)-1==indexOf.call(a,p)&&(r&&!e.global.hasOwnProperty(p)||p==e.global||t[p]==e.global[p]||(u[p]=e.global[p],s?s!==e.global[p]&&(d=!0):s!==!1&&(s=e.global[p])));return n[o]=u,d?u:s}}))}}t(e);var a=e.instantiate;e.instantiate=function(e){var r=this;t(r);var n=e.metadata.exports;return e.metadata.format||(e.metadata.format="global"),"global"==e.metadata.format&&(e.metadata.execute=function(t,a,o){r.get("@@global-helpers").prepareGlobal(o.id,e.metadata.deps),n&&(e.source+='\nthis["'+n+'"] = '+n+";");var i=r.global.define;return r.global.define=void 0,r.global.module=void 0,r.global.exports=void 0,r.__exec(e),r.global.define=i,r.get("@@global-helpers").retrieveGlobal(o.id,n,e.metadata.init)}),a.call(r,e)}}function cjs(e){function t(e){a.lastIndex=0,r.lastIndex=0;for(var t,o=[],e=e.replace(n,"");t=r.exec(e);)o.push(t[2]||t[3]);return o}var a=/(?:^\s*|[}{\(\);,\n=:\?\&]\s*|module\.)(exports\s*\[\s*('[^']+'|"[^"]+")\s*\]|\exports\s*\.\s*[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*|exports\s*\=)/,r=/(?:^\s*|[}{\(\);,\n=:\?\&]\s*)require\s*\(\s*("([^"]+)"|'([^']+)')\s*\)/g,n=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/gm,o=function(){},i={nextTick:function(e){setTimeout(e,7)},browser:"undefined"!=typeof window,env:{},argv:[],on:o,once:o,off:o,emit:o,cwd:function(){return"/"}};e.has("@@nodeProcess")||e.set("@@nodeProcess",e.newModule({"default":i,__useDefault:!0}));var l=e.translate;e.translate=function(e){var t=this;return t.has("@@nodeProcess")||t.set("@@nodeProcess",t.newModule({"default":i,__useDefault:!0})),l.call(t,e)};var s=e.instantiate;e.instantiate=function(n){return n.metadata.format||(a.lastIndex=0,r.lastIndex=0,(r.exec(n.source)||a.exec(n.source))&&(n.metadata.format="cjs")),"cjs"==n.metadata.format&&(n.metadata.deps=n.metadata.deps?n.metadata.deps.concat(t(n.source)):n.metadata.deps,n.metadata.executingRequire=!0,n.metadata.execute=function(t,a,r){var o=(n.address||"").split("/");o.pop(),o=o.join("/");var l=e.global._g={global:e.global,exports:a,module:r,process:i,require:t,__filename:n.address,__dirname:o},s="";for(var d in l)s+="var "+d+" = _g."+d+";";n.source="(function() { "+s+"(function() { "+n.source+"\n}).call(exports); })();";var u=e.global.define;e.global.define=void 0,e.__exec(n),e.global.define=u,e.global._g=void 0}),s.call(this,n)}}function amd(loader){function getCJSDeps(e,t){e=e.replace(commentRegEx,"");var a=e.match(fnBracketRegEx),r=(a[1].split(",")[t]||"require").replace(wsRegEx,""),n=requireRegExs[r]||(requireRegExs[r]=new RegExp(cjsRequirePre+r+cjsRequirePost,"g"));n.lastIndex=0;for(var o,i=[];o=n.exec(e);)i.push(o[2]||o[3]);return i}function require(e,t,a,r){var n=this;if("object"==typeof e&&!(e instanceof Array))return require.apply(null,Array.prototype.splice.call(arguments,1,arguments.length-1));if(!(e instanceof Array)){if("string"==typeof e){var o=n.get(e);return o.__useDefault?o["default"]:o}throw"Invalid require"}Promise.all(e.map(function(e){return n["import"](e,r)})).then(function(e){t.apply(null,e)},a)}function makeRequire(e,t,a){return function(r,n,o){return"string"==typeof r?t(r):require.call(a,r,n,o,{name:e})}}function generateDefine(e){function t(t,a,r){"string"!=typeof t&&(r=a,a=t,t=null),a instanceof Array||(r=a,a=["require","exports","module"]),"function"!=typeof r&&(r=function(e){return function(){return e}}(r)),void 0===a[a.length-1]&&a.pop();var n,o,i;if(-1!=(n=indexOf.call(a,"require"))){a.splice(n,1);var l=r.toString();a=a.concat(getCJSDeps(l,n))}-1!=(o=indexOf.call(a,"exports"))&&a.splice(o,1),-1!=(i=indexOf.call(a,"module"))&&a.splice(i,1);var s={deps:a,execute:function(t,l,s){for(var d=[],u=0;u<a.length;u++)d.push(t(a[u]));s.uri=e.baseURL+s.id,s.config=function(){},-1!=i&&d.splice(i,0,s),-1!=o&&d.splice(o,0,l),-1!=n&&d.splice(n,0,makeRequire(s.id,t,e));var c=r.apply(global,d);return"undefined"==typeof c&&s&&(c=s.exports),"undefined"!=typeof c?c:void 0}};if(t)anonDefine=0!=a.length||anonDefine||defineBundle?null:s,defineBundle=!0,e.register(t,s.deps,!1,s.execute);else{if(anonDefine)throw"Multiple defines for anonymous module";anonDefine=s}}var a=e.onScriptLoad;e.onScriptLoad=function(e){a(e),(anonDefine||defineBundle)&&(e.metadata.format="defined"),anonDefine&&(e.metadata.deps=e.metadata.deps?e.metadata.deps.concat(anonDefine.deps):anonDefine.deps,e.metadata.execute=anonDefine.execute)},t.amd={},e.amdDefine=t}function createDefine(e){e.amdDefine||generateDefine(e),anonDefine=null,defineBundle=null;var t=e.global;oldModule=t.module,oldExports=t.exports,oldDefine=t.define,t.module=void 0,t.exports=void 0,t.define&&t.define===e.amdDefine||(t.define=e.amdDefine)}function removeDefine(e){var t=e.global;t.define=oldDefine,t.module=oldModule,t.exports=oldExports}var isNode="undefined"!=typeof module&&module.exports,amdRegEx=/(?:^\s*|[}{\(\);,\n\?\&]\s*)define\s*\(\s*("[^"]+"\s*,\s*|'[^']+'\s*,\s*)?\s*(\[(\s*(("[^"]+"|'[^']+')\s*,|\/\/.*\r?\n|\/\*(.|\s)*?\*\/))*(\s*("[^"]+"|'[^']+')\s*,?\s*)?(\s*(\/\/.*\r?\n|\/\*(.|\s)*?\*\/)\s*)*\]|function\s*|{|[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*\))/,commentRegEx=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/gm,cjsRequirePre="(?:^\\s*|[}{\\(\\);,\\n=:\\?\\&]\\s*)",cjsRequirePost="\\s*\\(\\s*(\"([^\"]+)\"|'([^']+)')\\s*\\)",fnBracketRegEx=/\(([^\)]*)\)/,wsRegEx=/^\s+|\s+$/g,requireRegExs={};loader.amdRequire=require;var anonDefine,defineBundle,oldModule,oldExports,oldDefine;if(loader.amdDefine!==!1&&createDefine(loader),loader.scriptLoader){var loaderFetch=loader.fetch;loader.fetch=function(e){return loader.amdDefine!==!1&&createDefine(this),loaderFetch.call(this,e)}}var loaderInstantiate=loader.instantiate;loader.instantiate=function(load){var loader=this;if("amd"==load.metadata.format||!load.metadata.format&&load.source.match(amdRegEx)){load.metadata.format="amd",createDefine(loader);try{loader.__exec(load)}catch(e){if(loader.execute!==!1||!isNode)throw e;var match=load.source.match(amdRegEx);match&&(match[1]&&"["==match[1][0]?define(match[1].substr(match[1].length-2),eval(match[2]),function(){}):match[2]&&"["==match[2][0]?define(eval(match[2]),function(){}):define(function(){}))}if(!anonDefine&&!defineBundle&&!isNode)throw"AMD module "+load.name+" did not define";anonDefine&&(load.metadata.deps=load.metadata.deps?load.metadata.deps.concat(anonDefine.deps):anonDefine.deps,load.metadata.execute=anonDefine.execute)}return loaderInstantiate.call(loader,load)}}function map(e){function t(e,t){return e.length<t.length?!1:e.substr(0,t.length)!=t?!1:e[t.length]&&"/"!=e[t.length]?!1:!0}function a(e){for(var t=1,a=0,r=e.length;r>a;a++)"/"===e[a]&&t++;return t}function r(e,t,a){return a+e.substr(t)}function n(e,n,o){var i,l,s,d,u=0,c=0;if(n)for(var f in o.map){var m=o.map[f];if("object"==typeof m&&t(n,f)&&(s=a(f),!(c>=s)))for(var p in m)t(e,p)&&(d=a(p),u>=d||(i=p,u=d,l=f,c=s))}if(i)return r(e,i.length,o.map[l][i]);for(var f in o.map){var m=o.map[f];if("string"==typeof m&&t(e,f)){var d=a(f);u>=d||(i=f,u=d)}}return i?r(e,i.length,o.map[i]):e}e.map=e.map||{};var o=e.normalize;e.normalize=function(e,t,a){var r=this;r.map||(r.map={});var i=!1;return"/"==e.substr(e.length-1,1)&&(i=!0,e+="#"),Promise.resolve(o.call(r,e,t,a)).then(function(e){if(e=n(e,t,r),i){var a=e.split("/");a.pop();var o=a.pop();a.push(o),a.push(o),e=a.join("/")}return e})}}function plugins(e){"undefined"==typeof indexOf&&(indexOf=Array.prototype.indexOf);var t=e.normalize;e.normalize=function(e,a,r){var n,o=this;return a&&-1!=(n=a.indexOf("!"))&&(a=a.substr(0,n)),Promise.resolve(t.call(o,e,a,r)).then(function(e){var t=e.lastIndexOf("!");if(-1!=t){var n=e.substr(0,t),i=e.substr(t+1)||n.substr(n.lastIndexOf(".")+1);return new Promise(function(e){e(o.normalize(i,a,r))}).then(function(e){return i=e,o.normalize(n,a,r)}).then(function(e){return e+"!"+i})}return e})};var a=e.locate;e.locate=function(e){var t=this,r=e.name,n=r.lastIndexOf("!");if(-1!=n){var o=r.substr(n+1);e.name=r.substr(0,n);var i=t.pluginLoader||t;return i["import"](o).then(function(){var a=i.get(o);return a=a["default"]||a,a.build===!1&&t.pluginLoader&&(e.metadata.build=!1),e.metadata.plugin=a,e.metadata.pluginName=o,e.metadata.pluginArgument=e.name,a.locate?a.locate.call(t,e):Promise.resolve(t.locate(e)).then(function(e){return e.substr(0,e.length-3)})})}return a.call(this,e)};var r=e.fetch;e.fetch=function(e){var t=this;return e.metadata.build===!1?"":e.metadata.plugin&&e.metadata.plugin.fetch&&!e.metadata.pluginFetchCalled?(e.metadata.pluginFetchCalled=!0,e.metadata.plugin.fetch.call(t,e,r)):r.call(t,e)};var n=e.translate;e.translate=function(e){var t=this;return e.metadata.plugin&&e.metadata.plugin.translate?Promise.resolve(e.metadata.plugin.translate.call(t,e)).then(function(a){return a?a:n.call(t,e)}):n.call(t,e)};var o=e.instantiate;e.instantiate=function(e){var t=this;return e.metadata.plugin&&e.metadata.plugin.instantiate?Promise.resolve(e.metadata.plugin.instantiate.call(t,e)).then(function(a){return e.metadata.format="defined",e.metadata.execute=function(){return a},o.call(t,e)}):e.metadata.plugin&&e.metadata.plugin.build===!1?(e.metadata.format="defined",e.metadata.deps.push(e.metadata.pluginName),e.metadata.execute=function(){return t.newModule({})},o.call(t,e)):o.call(t,e)}}function bundles(e){"undefined"==typeof indexOf&&(indexOf=Array.prototype.indexOf),e.bundles=e.bundles||{};var t=e.fetch;e.fetch=function(e){var a=this;if(a.trace)return t.call(this,e);a.bundles||(a.bundles={});for(var r in a.bundles)if(-1!=indexOf.call(a.bundles[r],e.name))return Promise.resolve(a.normalize(r)).then(function(e){return a.bundles[e]=a.bundles[e]||a.bundles[r],a.meta=a.meta||{},a.meta[e]=a.meta[e]||{},a.meta[e].bundle=!0,a.load(e)}).then(function(){return""});return t.call(this,e)}}function versions(e){"undefined"==typeof indexOf&&(indexOf=Array.prototype.indexOf);var t=/^(\d+)(?:\.(\d+)(?:\.(\d+)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?)?)?$/,a=function(e,t){var a,r=e.split("."),n=t.split(".");r[2]&&-1!=(a=indexOf.call(r[2],"-"))&&r.splice(2,1,r[2].substr(0,a),r[2].substr(a+1)),n[2]&&-1!=(a=indexOf.call(n[2],"-"))&&n.splice(2,1,n[2].substr(0,a),n[2].substr(a+1));for(var o=0;o<Math.max(r.length,n.length);o++){if(!r[o])return 1;if(!n[o])return-1;if(r[o]!=n[o])return parseInt(r[o])>parseInt(n[o])?1:-1}return 0};e.versions=e.versions||{};var r=e.normalize;e.normalize=function(n,o,i){e.versions||(e.versions={});var l,s,d=this.versions;if(n.indexOf("@")>0){var u=n.lastIndexOf("@"),c=n.substr(u+1,n.length-u-1).split("/");l=c[0],s=c.length,n=n.substr(0,u)+n.substr(u+l.length+1,n.length-u-l.length-1)}return Promise.resolve(r.call(this,n,o,i)).then(function(e){var r,n,o,i,u=e.indexOf("@");if(l&&(-1==u||0==u)){var c=e.split("/");c[c.length-s]+="@"+l,e=c.join("/"),u=e.indexOf("@")}if(-1==u||0==u){for(var f in d)if(i=d[f],e.substr(0,f.length)==f&&(o=e.substr(f.length,1),!o||"/"==o))return f+"@"+("string"==typeof i?i:i[i.length-1])+e.substr(f.length);return e}r=e.substr(u+1).split("/")[0];var m,p=r.length;if("^"==r.substr(0,1)&&(r=r.substr(1),m=!0),n=r.match(t),!n)return e;m&&(n[2]||(m=!1),n[3]||(n[2]>0?n[3]="0":m=!1)),m&&(n[1]>0?(n[2]||(r=n[1]+".0.0"),n[3]||(r=n[1]+".0"),m=r,n=[n[1]]):n[2]>0?(m=r,n=[0,n[2]]):(m=!1,n=[0,0,n[3]]),r=n.join("."));var g=e.substr(0,u);if(i=d[g]||[],"string"==typeof i&&(i=[i]),!n[3]||m)for(var h=i.length-1;h>=0;h--){var v=i[h];if(v.substr(0,r.length)==r&&v.substr(r.length,1).match(/^[\.\-]?$/)&&(!m||m&&-1!=a(v,m)))return g+"@"+v+e.substr(g.length+p+1)}return-1==indexOf.call(i,r)&&(i.push(r),i.sort(a),e=g+"@"+r+e.substr(g.length+p+1),n[3]&&-1!=(u=indexOf.call(i,n[1]+"."+n[2]))&&i.splice(u,1),n[2]&&-1!=(u=indexOf.call(i,n[1]))&&i.splice(u,1),d[g]=1==i.length?i[0]:i),e})}}function depCache(e){e.depCache=e.depCache||{},loaderLocate=e.locate,e.locate=function(e){var t=this;t.depCache||(t.depCache={});var a=t.depCache[e.name];if(a)for(var r=0;r<a.length;r++)t.load(a[r]);return loaderLocate.call(t,e)}}$__global.upgradeSystemLoader=void 0;var indexOf=Array.prototype.indexOf||function(e){for(var t=0,a=this.length;a>t;t++)if(this[t]===e)return t;return-1},System;!function(){var e=$__global.System;System=$__global.System=new LoaderPolyfill(e),System.baseURL=e.baseURL,System.paths={"*":"*.js"},System.originalSystem=e}(),System.noConflict=function(){$__global.SystemJS=System,$__global.System=System.originalSystem},meta(System),register(System),core(System),global(System),cjs(System),amd(System),map(System),plugins(System),bundles(System),versions(System),depCache(System),System.paths["@traceur"]||(System.paths["@traceur"]=$__curScript&&$__curScript.getAttribute("data-traceur-src")||($__curScript&&$__curScript.src?$__curScript.src.substr(0,$__curScript.src.lastIndexOf("/")+1):System.baseURL+(System.baseURL.lastIndexOf("/")==System.baseURL.length-1?"":"/"))+"traceur.js")};var $__curScript,__eval;!function(){var e;if(__eval=function(t,a,r){t+="\n//# sourceURL="+a+(r?"\n//# sourceMappingURL="+r:"");try{e(t)}catch(n){throw"Error evaluating "+a}},"undefined"!=typeof window){var t,a=document.getElementsByTagName("script");if($__curScript=a[a.length-1],e=function(e){t||(t=document.head||document.body||document.documentElement);var a=document.createElement("script");a.text=e;var r,n=window.onerror;if(window.onerror=function(e){r=e},t.appendChild(a),t.removeChild(a),window.onerror=n,r)throw r},$__global.System&&$__global.LoaderPolyfill)$__global.upgradeSystemLoader();else{var r=$__curScript.src,n=r.substr(0,r.lastIndexOf("/")+1);document.write('<script type="text/javascript" src="'+n+'es6-module-loader.js" data-init="upgradeSystemLoader">'+"<"+"/script>")}}else{var o=require("es6-module-loader");$__global.System=o.System,$__global.Loader=o.Loader,$__global.upgradeSystemLoader(),module.exports=$__global.System;var i=require("vm");e=function(e){i.runInThisContext(e)}}}()}("undefined"!=typeof window?window:global);

@@ -8,2 +8,3 @@ /*

// by default we only enforce AMD noConflict mode in Node
var isNode = typeof module != 'undefined' && module.exports;

@@ -14,7 +15,40 @@

// define(varName); || define(function(require, exports) {}); || define({})
var amdRegEx = /(?:^\s*|[}{\(\);,\n\?\&]\s*)define\s*\(\s*("[^"]+"\s*,\s*|'[^']+'\s*,\s*)?\s*(\[(\s*("[^"]+"|'[^']+')\s*,)*(\s*("[^"]+"|'[^']+')\s*,?\s*)?\]|function\s*|{|[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*\))/;
var amdRegEx = /(?:^\s*|[}{\(\);,\n\?\&]\s*)define\s*\(\s*("[^"]+"\s*,\s*|'[^']+'\s*,\s*)?\s*(\[(\s*(("[^"]+"|'[^']+')\s*,|\/\/.*\r?\n|\/\*(.|\s)*?\*\/))*(\s*("[^"]+"|'[^']+')\s*,?\s*)?(\s*(\/\/.*\r?\n|\/\*(.|\s)*?\*\/)\s*)*\]|function\s*|{|[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*\))/;
var commentRegEx = /(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg;
var cjsRequirePre = "(?:^\\s*|[}{\\(\\);,\\n=:\\?\\&]\\s*)";
var cjsRequirePost = "\\s*\\(\\s*(\"([^\"]+)\"|'([^']+)')\\s*\\)";
var fnBracketRegEx = /\(([^\)]*)\)/;
var wsRegEx = /^\s+|\s+$/g;
var requireRegExs = {};
function getCJSDeps(source, requireIndex) {
// remove comments
source = source.replace(commentRegEx, '');
// determine the require alias
var params = source.match(fnBracketRegEx);
var requireAlias = (params[1].split(',')[requireIndex] || 'require').replace(wsRegEx, '');
// find or generate the regex for this requireAlias
var requireRegEx = requireRegExs[requireAlias] || (requireRegExs[requireAlias] = new RegExp(cjsRequirePre + requireAlias + cjsRequirePost, 'g'));
requireRegEx.lastIndex = 0;
var deps = [];
var match;
while (match = requireRegEx.exec(source))
deps.push(match[2] || match[3]);
return deps;
}
/*
AMD-compatible require
To copy RequireJS, set window.require = window.requirejs = loader.require
To copy RequireJS, set window.require = window.requirejs = loader.amdRequire
*/

@@ -46,3 +80,3 @@ function require(names, callback, errback, referer) {

};
loader.require = require;
loader.amdRequire = require;

@@ -57,16 +91,4 @@ function makeRequire(parentName, staticRequire, loader) {

var anonDefine;
// set to true of the current module turns out to be a named define bundle
var defineBundle;
function createDefine(loader) {
anonDefine = null;
defineBundle = null;
// ensure no NodeJS environment detection
loader.global.module = undefined;
loader.global.exports = undefined;
if (loader.global.define && loader.global.define.loader == loader)
return;
// run once per loader
function generateDefine(loader) {
// script injection mode calls this function synchronously on load

@@ -93,6 +115,3 @@ var onScriptLoad = loader.onScriptLoad;

factory = deps;
// CommonJS AMD form
if (!loader._getCJSDeps)
throw "AMD extension needs CJS extension for AMD CJS support";
deps = ['require', 'exports', 'module'].concat(loader._getCJSDeps(factory.toString()));
deps = ['require', 'exports', 'module'];
}

@@ -105,7 +124,19 @@

// in IE8, a trailing comma becomes a trailing undefined entry
if (deps[deps.length - 1] === undefined)
deps.pop();
// remove system dependencies
var requireIndex, exportsIndex, moduleIndex
if ((requireIndex = indexOf.call(deps, 'require')) != -1)
var requireIndex, exportsIndex, moduleIndex;
if ((requireIndex = indexOf.call(deps, 'require')) != -1) {
deps.splice(requireIndex, 1);
var factoryText = factory.toString();
deps = deps.concat(getCJSDeps(factoryText, requireIndex));
}
if ((exportsIndex = indexOf.call(deps, 'exports')) != -1)

@@ -119,3 +150,3 @@ deps.splice(exportsIndex, 1);

deps: deps,
execute: function(require, exports, moduleName) {
execute: function(require, exports, module) {

@@ -126,7 +157,9 @@ var depValues = [];

var module;
module.uri = loader.baseURL + module.id;
module.config = function() {};
// add back in system dependencies
if (moduleIndex != -1)
depValues.splice(moduleIndex, 0, exports, module = { id: moduleName, uri: loader.baseURL + moduleName, config: function() { return {}; }, exports: exports });
depValues.splice(moduleIndex, 0, module);

@@ -137,5 +170,5 @@ if (exportsIndex != -1)

if (requireIndex != -1)
depValues.splice(requireIndex, 0, makeRequire(moduleName, require, loader));
depValues.splice(requireIndex, 0, makeRequire(module.id, require, loader));
var output = factory.apply(loader.global, depValues);
var output = factory.apply(global, depValues);

@@ -180,10 +213,44 @@ if (typeof output == 'undefined' && module)

};
define.amd = {};
loader.amdDefine = define;
loader.global.define = define;
loader.global.define.amd = {};
loader.global.define.loader = loader;
}
if (!isNode && loader.amdDefine !== false)
var anonDefine;
// set to true if the current module turns out to be a named define bundle
var defineBundle;
var oldModule, oldExports, oldDefine;
// adds define as a global (potentially just temporarily)
function createDefine(loader) {
if (!loader.amdDefine)
generateDefine(loader);
anonDefine = null;
defineBundle = null;
// ensure no NodeJS environment detection
var global = loader.global;
oldModule = global.module;
oldExports = global.exports;
oldDefine = global.define;
global.module = undefined;
global.exports = undefined;
if (global.define && global.define === loader.amdDefine)
return;
global.define = loader.amdDefine;
}
function removeDefine(loader) {
var global = loader.global;
global.define = oldDefine;
global.module = oldModule;
global.exports = oldExports;
}
if (loader.amdDefine !== false)
createDefine(loader);

@@ -199,3 +266,2 @@

}

@@ -214,3 +280,3 @@ var loaderInstantiate = loader.instantiate;

}
catch (e) {
catch(e) {
if (loader.execute === false && isNode) {

@@ -233,5 +299,2 @@ // use a regular expression to pull out deps

if (isNode)
loader.global.define = undefined;
if (!anonDefine && !defineBundle && !isNode)

@@ -248,2 +311,2 @@ throw "AMD module " + load.name + " did not define";

}
}
}

@@ -44,4 +44,2 @@ /*

loader._getCJSDeps = getCJSDeps;
if (!loader.has('@@nodeProcess'))

@@ -55,4 +53,2 @@ loader.set('@@nodeProcess', loader.newModule({ 'default': nodeProcess, __useDefault: true }));

loader.set('@@nodeProcess', loader.newModule({ 'default': nodeProcess, __useDefault: true }));
if (!loader._getCJSDeps)
loader._getCJSDeps = getCJSDeps;
return loaderTranslate.call(loader, load);

@@ -76,4 +72,4 @@ }

load.metadata.execute = function(require, exports, moduleName) {
var dirname = load.address.split('/');
load.metadata.execute = function(require, exports, module) {
var dirname = (load.address || '').split('/');
dirname.pop();

@@ -85,3 +81,3 @@ dirname = dirname.join('/');

exports: exports,
module: { exports: exports },
module: module,
process: nodeProcess,

@@ -97,3 +93,3 @@ require: require,

load.source = glString + '(function() { ' + load.source + '\n}).call(exports)';
load.source = '(function() { ' + glString + '(function() { ' + load.source + '\n}).call(exports); })();';

@@ -109,4 +105,2 @@ // disable AMD detection

loader.global._g = undefined;
return globals.module.exports;
}

@@ -113,0 +107,0 @@ }

@@ -54,3 +54,3 @@ /*

var v = cfg[c];
if (typeof v == 'object') {
if (typeof v == 'object' && !(v instanceof Array)) {
this[c] = this[c] || {};

@@ -57,0 +57,0 @@ for (var p in v)

@@ -36,4 +36,5 @@ /*

curGlobalObj = {};
ignoredGlobalProps = ['indexedDB', 'sessionStorage', 'localStorage', 'clipboardData', 'frames'];
for (var g in loader.global)
ignoredGlobalProps = ['indexedDB', 'sessionStorage', 'localStorage', 'clipboardData', 'frames', 'webkitStorageInfo'];
for (var g in loader.global) {
if (indexOf.call(ignoredGlobalProps, g) != -1) { continue; }
if (!hasOwnProperty || loader.global.hasOwnProperty(g)) {

@@ -46,5 +47,7 @@ try {

}
}
},
retrieveGlobal: function(moduleName, exportName, init) {
var singleGlobal;
var multipleExports;
var exports = {};

@@ -63,3 +66,3 @@

// if one global, then that is the module directly
if (exportName && !singleGlobal) {
else if (exportName) {
var firstPart = exportName.split('.')[0];

@@ -72,3 +75,3 @@ singleGlobal = eval.call(loader.global, exportName);

for (var g in loader.global) {
if (~ignoredGlobalProps.indexOf(g))
if (indexOf.call(ignoredGlobalProps, g) != -1)
continue;

@@ -79,3 +82,3 @@ if ((!hasOwnProperty || loader.global.hasOwnProperty(g)) && g != loader.global && curGlobalObj[g] != loader.global[g]) {

if (singleGlobal !== loader.global[g])
singleGlobal = undefined;
multipleExports = true;
}

@@ -91,3 +94,3 @@ else if (singleGlobal !== false) {

return typeof singleGlobal != 'undefined' ? singleGlobal : exports;
return multipleExports ? exports : singleGlobal;
}

@@ -112,5 +115,5 @@ }));

if (load.metadata.format == 'global') {
load.metadata.execute = function(require, exports, moduleName) {
load.metadata.execute = function(require, exports, module) {
loader.get('@@global-helpers').prepareGlobal(moduleName, load.metadata.deps);
loader.get('@@global-helpers').prepareGlobal(module.id, load.metadata.deps);

@@ -132,3 +135,3 @@ if (exportName)

return loader.get('@@global-helpers').retrieveGlobal(moduleName, exportName, load.metadata.init);
return loader.get('@@global-helpers').retrieveGlobal(module.id, exportName, load.metadata.init);
}

@@ -135,0 +138,0 @@ }

@@ -84,3 +84,3 @@ /*

load.metadata[metaName].push(metaValue);
else
else if (!load.metadata[metaName])
load.metadata[metaName] = metaValue;

@@ -87,0 +87,0 @@ }

@@ -44,3 +44,3 @@ /*

__eval(load.source, loader.global, load.address, sourceMappingURL);
__eval(load.source, load.address, sourceMappingURL);

@@ -57,3 +57,3 @@ // traceur overwrites System and Module - write them back

var newDeps = [];
for (var i = 0; i < deps.length; i++)
for (var i = 0, l = deps.length; i < l; i++)
if (indexOf.call(newDeps, deps[i]) == -1)

@@ -64,12 +64,14 @@ newDeps.push(deps[i])

// There are two variations of System.register:
// 1. System.register for ES6 conversion (2-3 params) - System.register([name, ]deps, declare)
// see https://github.com/ModuleLoader/es6-module-loader/wiki/System.register-Explained
//
// 2. System.register for dynamic modules (3-4 params) - System.register([name, ]deps, executingRequire, execute)
// the true or false statement
// this extension implements the linking algorithm for the two variations identical to the spec
// allowing compiled ES6 circular references to work alongside AMD and CJS circular references.
/*
* There are two variations of System.register:
* 1. System.register for ES6 conversion (2-3 params) - System.register([name, ]deps, declare)
* see https://github.com/ModuleLoader/es6-module-loader/wiki/System.register-Explained
*
* 2. System.register for dynamic modules (3-4 params) - System.register([name, ]deps, executingRequire, execute)
* the true or false statement
*
* this extension implements the linking algorithm for the two variations identical to the spec
* allowing compiled ES6 circular references to work alongside AMD and CJS circular references.
*
*/
// loader.register sets loader.defined for declarative modules

@@ -112,2 +114,3 @@ var anonRegister;

if (name) {
register.name = name;
// we never overwrite an existing define

@@ -124,21 +127,33 @@ if (!loader.defined[name])

}
/*
* Registry side table - loader.defined
* Registry Entry Contains:
* - name
* - deps
* - declare for declarative modules
* - execute for dynamic modules, different to declarative execute on module
* - executingRequire indicates require drives execution for circularity of dynamic modules
* - declarative optional boolean indicating which of the above
*
* Can preload modules directly on System.defined['my/module'] = { deps, execute, executingRequire }
*
* Then the entry gets populated with derived information during processing:
* - normalizedDeps derived from deps, created in instantiate
* - groupIndex used by group linking algorithm
* - evaluated indicating whether evaluation has happend
* - module the module record object, containing:
* - exports actual module exports
*
* Then for declarative only we track dynamic bindings with the records:
* - name
* - setters declarative setter functions
* - exports actual module values
* - dependencies, module records of dependencies
* - importers, module records of dependents
*
* After linked and evaluated, entries are removed, declarative module records remain in separate
* module binding table
*
*/
// Registry side table - loader.defined
// Registry Entry Contains:
// - deps
// - declare for register modules
// - execute for dynamic modules, also after declare for declarative modules
// - executingRequire indicates require drives execution for circularity of dynamic modules
// - declarative optional boolean indicating which of the above
//
// Can preload modules directly on System.defined['my/module'] = { deps, execute, executingRequire }
//
// Then the entry gets populated with derived information during processing:
// - normalizedDeps derived from deps, created in instantiate
// - depMap array derived from deps, populated gradually in link
// - groupIndex used by group linking algorithm
// - module a raw module exports object with no wrapper
// - evaluated indiciating whether evaluation has happend for declarative modules
// After linked and evaluated, entries are removed
function defineRegister(loader) {

@@ -178,3 +193,3 @@ if (loader.register)

for (var i = 0; i < entry.normalizedDeps.length; i++) {
for (var i = 0, l = entry.normalizedDeps.length; i < l; i++) {
var depName = entry.normalizedDeps[i];

@@ -195,3 +210,3 @@ var depEntry = loader.defined[depName];

if (depEntry.groupIndex) {
groups[depEntry.groupIndex].splice(groups[depEntry.groupIndex].indexOf(depEntry), 1);
groups[depEntry.groupIndex].splice(indexOf.call(groups[depEntry.groupIndex], depEntry), 1);

@@ -235,2 +250,13 @@ // if the old group is empty, then we have a mixed depndency cycle

// module binding records
var moduleRecords = {};
function getOrCreateModuleRecord(name) {
return moduleRecords[name] || (moduleRecords[name] = {
name: name,
dependencies: [],
exports: {}, // start from an empty module and extend
importers: []
})
}
function linkDeclarativeModule(entry, loader) {

@@ -241,52 +267,60 @@ // only link if already not already started linking (stops at circular)

// declare the module with an empty depMap
var depMap = [];
var module = entry.module = getOrCreateModuleRecord(entry.name);
var exports = entry.module.exports;
var declaration = entry.declare.call(loader.global, depMap);
var declaration = entry.declare.call(loader.global, function(name, value) {
module.locked = true;
exports[name] = value;
for (var i = 0, l = module.importers.length; i < l; i++) {
var importerModule = module.importers[i];
if (!importerModule.locked) {
var importerIndex = indexOf.call(importerModule.dependencies, module);
importerModule.setters[importerIndex](exports);
}
}
module.locked = false;
return value;
});
entry.module = declaration.exports;
entry.exportStar = declaration.exportStar;
entry.execute = declaration.execute;
module.setters = declaration.setters;
module.execute = declaration.execute;
var module = entry.module;
if (!module.setters || !module.execute) {
throw "Invalid System.register form for " + entry.name;
}
// now link all the module dependencies
// amending the depMap as we go
for (var i = 0; i < entry.normalizedDeps.length; i++) {
for (var i = 0, l = entry.normalizedDeps.length; i < l; i++) {
var depName = entry.normalizedDeps[i];
var depEntry = loader.defined[depName];
// part of another linking group - use loader.get
if (!depEntry) {
depModule = loader.get(depName);
var depModule = moduleRecords[depName];
// work out how to set depExports based on scenarios...
var depExports;
if (depModule) {
depExports = depModule.exports;
}
// if dependency already linked, use that
else if (depEntry.module) {
depModule = depEntry.module;
// in the loader registry
else if (!depEntry) {
depExports = loader.get(depName);
}
// otherwise we need to link the dependency
// we have an entry -> link
else {
linkDeclarativeModule(depEntry, loader);
depModule = depEntry.module;
depExports = depModule.exports;
}
if (entry.exportStar && indexOf.call(entry.exportStar, entry.normalizedDeps[i]) != -1) {
// we are exporting * from this dependency
(function(depModule) {
for (var p in depModule) (function(p) {
// if the property is already defined throw?
Object.defineProperty(module, p, {
enumerable: true,
get: function() {
return depModule[p];
},
set: function(value) {
depModule[p] = value;
}
});
})(p);
})(depModule);
// only declarative modules have dynamic bindings
if (depModule && depModule.importers) {
depModule.importers.push(module);
module.dependencies.push(depModule);
}
depMap[i] = depModule;
// run the setter for this dependency
if (module.setters[i])
module.setters[i](depExports);
}

@@ -297,9 +331,11 @@ }

function getModule(name, loader) {
var module;
var exports;
var entry = loader.defined[name];
if (!entry) {
module = loader.get(name);
if (!module)
exports = loader.get(name);
if (!exports)
throw "System Register: The module requested " + name + " but this was not declared as a dependency";
if (exports.__useDefault)
exports = exports['default'];
}

@@ -314,9 +350,6 @@

module = entry.module;
exports = entry.module.exports;
}
if (!module)
return '';
return module.__useDefault ? module['default'] : module;
return exports;
}

@@ -328,7 +361,9 @@

entry.module = { 'default': {}, __useDefault: true };
var exports = {};
var module = entry.module = { exports: exports, id: entry.name };
// AMD requires execute the tree first
if (!entry.executingRequire) {
for (var i = 0; i < entry.normalizedDeps.length; i++) {
for (var i = 0, l = entry.normalizedDeps.length; i < l; i++) {
var depName = entry.normalizedDeps[i];

@@ -341,15 +376,6 @@ var depEntry = loader.defined[depName];

// lookup the module name if it is in the registry
var moduleName;
for (var d in loader.defined) {
if (loader.defined[d] != entry)
continue;
moduleName = d;
break;
}
// now execute
entry.evaluated = true;
var output = entry.execute.call(loader.global, function(name) {
for (var i = 0; i < entry.deps.length; i++) {
for (var i = 0, l = entry.deps.length; i < l; i++) {
if (entry.deps[i] != name)

@@ -359,14 +385,17 @@ continue;

}
}, entry.module['default'], moduleName);
}, exports, module);
if (output)
entry.module['default'] = output;
module.exports = output;
}
// given a module, and the list of modules for this current branch,
// ensure that each of the dependencies of this module is evaluated
// (unless one is a circular dependency already in the list of seen
// modules, in which case we execute it)
// then evaluate the module itself
// depth-first left to right execution to match ES6 modules
/*
* Given a module, and the list of modules for this current branch,
* ensure that each of the dependencies of this module is evaluated
* (unless one is a circular dependency already in the list of seen
* modules, in which case we execute it)
*
* Then we evaluate the module itself depth-first left to right
* execution to match ES6 modules
*/
function ensureEvaluated(moduleName, seen, loader) {

@@ -379,5 +408,7 @@ var entry = loader.defined[moduleName];

// this only applies to declarative modules which late-execute
seen.push(moduleName);
for (var i = 0; i < entry.normalizedDeps.length; i++) {
for (var i = 0, l = entry.normalizedDeps.length; i < l; i++) {
var depName = entry.normalizedDeps[i];

@@ -396,3 +427,3 @@ if (indexOf.call(seen, depName) == -1) {

entry.evaluated = true;
entry.execute.call(loader.global);
entry.module.execute.call(loader.global);
}

@@ -504,6 +535,7 @@

entry.deps = dedupe(entry.deps);
entry.name = load.name;
// first, normalize all dependencies
var normalizePromises = [];
for (var i = 0; i < entry.deps.length; i++)
for (var i = 0, l = entry.deps.length; i < l; i++)
normalizePromises.push(Promise.resolve(loader.normalize(entry.deps[i], load.name)));

@@ -515,14 +547,5 @@

// create the empty dep map - this is our key deferred dependency binding object passed into declare
entry.depMap = [];
return {
deps: entry.deps,
execute: function() {
// this avoids double duplication allowing a bundle to equal its last defined module
if (entry.esmodule) {
loader.defined[load.name] = undefined;
return entry.esmodule;
}
// recursively ensure that the module and all its

@@ -538,14 +561,5 @@ // dependencies are linked (with dependency group handling)

var module = loader.newModule(entry.module);
var module = loader.newModule(entry.declarative ? entry.module.exports : { 'default': entry.module.exports, '__useDefault': true });
entry.module.module = module;
// if the entry is an alias, set the alias too
for (var name in loader.defined) {
if (!loader.defined[name])
continue;
if (entry.declarative && loader.defined[name].execute != entry.execute)
continue;
if (!entry.declarative && loader.defined[name].declare != entry.declare);
continue;
loader.defined[name].esmodule = module;
}
// return the defined module object

@@ -552,0 +566,0 @@ return module;

@@ -38,6 +38,9 @@ /*

if (s.attachEvent)
if (s.attachEvent) {
s.attachEvent('onreadystatechange', complete);
s.addEventListener('load', complete, false);
s.addEventListener('error', error, false);
}
else {
s.addEventListener('load', complete, false);
s.addEventListener('error', error, false);
}

@@ -44,0 +47,0 @@ s.src = load.address;

@@ -1,7 +0,5 @@

if (!System.paths['@traceur'])
System.paths['@traceur'] = __$curScript && __$curScript.getAttribute('data-traceur-src')
|| (__$curScript && __$curScript.src
? __$curScript.src.substr(0, __$curScript.src.lastIndexOf('/') + 1)
System.paths['@traceur'] = $__curScript && $__curScript.getAttribute('data-traceur-src')
|| ($__curScript && $__curScript.src
? $__curScript.src.substr(0, $__curScript.src.lastIndexOf('/') + 1)
: System.baseURL + (System.baseURL.lastIndexOf('/') == System.baseURL.length - 1 ? '' : '/')

@@ -11,28 +9,47 @@ ) + 'traceur.js';

function __eval(__source, __global, __address, __sourceMap) {
try {
__source = (__global != __$global ? 'with(__global) { (function() { ' + __source + ' \n }).call(__global); }' : __source)
+ '\n//# sourceURL=' + __address
+ (__sourceMap ? '\n//# sourceMappingURL=' + __sourceMap : '');
eval(__source);
}
catch(e) {
if (e.name == 'SyntaxError')
e.message = 'Evaluating ' + __address + '\n\t' + e.message;
if (System.trace && System.execute == false)
e = 'Execution error for ' + __address + ': ' + e.stack || e;
throw e;
}
}
var $__curScript, __eval;
var __$curScript;
(function() {
(function(global) {
var doEval;
__eval = function(source, address, sourceMap) {
source += '\n//# sourceURL=' + address + (sourceMap ? '\n//# sourceMappingURL=' + sourceMap : '');
try {
doEval(source);
}
catch(e) {
throw 'Error evaluating ' + address;
}
};
if (typeof window != 'undefined') {
var head;
var scripts = document.getElementsByTagName('script');
__$curScript = scripts[scripts.length - 1];
$__curScript = scripts[scripts.length - 1];
if (!global.System || !global.LoaderPolyfill) {
// globally scoped eval for the browser
doEval = function(source) {
if (!head)
head = document.head || document.body || document.documentElement;
var script = document.createElement('script');
script.text = source;
var onerror = window.onerror;
var e;
window.onerror = function(_e) {
e = _e;
}
head.appendChild(script);
head.removeChild(script);
window.onerror = onerror;
if (e)
throw e;
}
if (!$__global.System || !$__global.LoaderPolyfill) {
// determine the current script path as the base path
var curPath = __$curScript.src;
var curPath = $__curScript.src;
var basePath = curPath.substr(0, curPath.lastIndexOf('/') + 1);

@@ -44,3 +61,3 @@ document.write(

else {
global.upgradeSystemLoader();
$__global.upgradeSystemLoader();
}

@@ -50,9 +67,17 @@ }

var es6ModuleLoader = require('es6-module-loader');
global.System = es6ModuleLoader.System;
global.Loader = es6ModuleLoader.Loader;
global.upgradeSystemLoader();
module.exports = global.System;
$__global.System = es6ModuleLoader.System;
$__global.Loader = es6ModuleLoader.Loader;
$__global.upgradeSystemLoader();
module.exports = $__global.System;
// global scoped eval for node
var vm = require('vm');
doEval = function(source, address, sourceMap) {
vm.runInThisContext(source);
}
}
})(__$global);
})();
})(typeof window != 'undefined' ? window : global);

@@ -1,5 +0,5 @@

(function(__$global) {
(function($__global) {
__$global.upgradeSystemLoader = function() {
__$global.upgradeSystemLoader = undefined;
$__global.upgradeSystemLoader = function() {
$__global.upgradeSystemLoader = undefined;

@@ -56,13 +56,16 @@ // indexOf polyfill for IE

// clone the original System loader
var originalSystem = __$global.System;
var System = __$global.System = new LoaderPolyfill(originalSystem);
System.baseURL = originalSystem.baseURL;
System.paths = { '*': '*.js' };
System.originalSystem = originalSystem;
var System;
(function() {
var originalSystem = $__global.System;
System = $__global.System = new LoaderPolyfill(originalSystem);
System.baseURL = originalSystem.baseURL;
System.paths = { '*': '*.js' };
System.originalSystem = originalSystem;
})();
System.noConflict = function() {
__$global.SystemJS = System;
__$global.System = System.originalSystem;
$__global.SystemJS = System;
$__global.System = System.originalSystem;
}
{
"name": "systemjs",
"version": "0.6.7",
"version": "0.6.8",
"description": "System loader extension for flexible AMD & CommonJS support",

@@ -13,3 +13,3 @@ "main": "dist/system.js",

"dependencies": {
"es6-module-loader": "~0.7.1"
"es6-module-loader": "~0.7.2"
},

@@ -16,0 +16,0 @@ "devDependencies": {

@@ -8,3 +8,3 @@ SystemJS

* Loads any module format, by detecting the format automatically. Modules can also [specify their format with meta syntax](#meta-configuration).
* Loads any module format, by detecting the format automatically. Modules can also [specify their format with meta config](#meta-configuration).
* Provides comprehensive and exact replications of AMD, CommonJS and ES6 circular reference handling.

@@ -16,5 +16,5 @@ * Loads [ES6 modules compiled into the `System.register` form for production](#es6-systemregister-compilation), maintaining full circular references support.

Designed to work with the [ES6 Module Loader polyfill](https://github.com/ModuleLoader/es6-module-loader) (9KB) for a combined total footprint of 16KB minified and gzipped. In future, with native implementations, the ES6 Module Loader polyfill should no longer be necessary. As jQuery provides for the DOM, this library can smooth over inconsistiencies and missing practical functionality provided by the native System loader.
Designed to work with the [ES6 Module Loader polyfill](https://github.com/ModuleLoader/es6-module-loader) (8KB) for a combined total footprint of 16KB minified and gzipped. In future, with native implementations, the ES6 Module Loader polyfill should no longer be necessary. As jQuery provides for the DOM, this library can smooth over inconsistiencies and missing practical functionality provided by the native System loader.
Runs in IE8+ and NodeJS. ES6 modules are only supported in IE9+.
Runs in IE8+ and NodeJS.

@@ -28,3 +28,3 @@ For discussion, [see the Google Group](https://groups.google.com/group/systemjs).

Download [`es6-module-loader.js`](https://github.com/ModuleLoader/es6-module-loader/blob/v0.7.1/dist/es6-module-loader.js) and [`traceur.js`](https://raw.githubusercontent.com/jmcriffey/bower-traceur/0.0.49/traceur.js) and locate them in the same folder as `system.js` from this repo.
Download [`es6-module-loader.js`](https://github.com/ModuleLoader/es6-module-loader/blob/v0.7.2/dist/es6-module-loader.js) and [`traceur.js`](https://raw.githubusercontent.com/jmcriffey/bower-traceur/0.0.51/traceur.js) and locate them in the same folder as `system.js` from this repo.

@@ -58,8 +58,4 @@ We then include `dist/system.js` with a script tag in the page.

System.import('app/app')
.catch(function(e) {
// we add this since promises suppress all errors
setTimeout(function() {
throw e;
});
});
// we add this since promises suppress all errors
.catch(console.error.bind(console));
</script>

@@ -238,2 +234,4 @@ ```

IF IE8 support is needed, these exports will need to be declared manually with configuration.
### Versions

@@ -325,3 +323,2 @@

### ES6 System.register Compilation

@@ -343,3 +340,3 @@

Then include [`traceur-runtime.js`](https://raw.githubusercontent.com/jmcriffey/bower-traceur/0.0.49/traceur-runtimr.js) (also found inside traceur's `bin` folder when installed via npm) before es6-module-loader.js:
Then include [`traceur-runtime.js`](https://raw.githubusercontent.com/jmcriffey/bower-traceur/0.0.51/traceur-runtimr.js) (also found inside traceur's `bin` folder when installed via npm) before es6-module-loader.js:

@@ -421,2 +418,13 @@ ```html

### RequireJS Support
To use SystemJS side-by-side in a RequireJS project, make sure to include RequireJS before SystemJS.
Conversely, to have SystemJS provide a RequireJS-like API in an application set:
```javascript
window.define = loader.amdDefine;
window.require = window.requirejs = loader.amdRequire;
```
### NodeJS Usage

@@ -423,0 +431,0 @@

"format global";
(function() {
QUnit.config.testTimeout = 2000;

@@ -21,2 +23,4 @@

var ie8 = typeof navigator != 'undefined' && navigator.appVersion && navigator.appVersion.indexOf('MSIE 8') != -1;
asyncTest('Error handling', function() {

@@ -29,2 +33,3 @@ System['import']('tests/error').then(err, function(e) {

if (!ie8)
asyncTest('Global script loading', function() {

@@ -37,2 +42,10 @@ System['import']('tests/global').then(function(m) {

if (!ie8)
asyncTest('Global script with var syntax', function() {
System['import']('tests/global-single').then(function(m) {
ok(m == 'bar', 'Wrong global value');
start();
}, err);
});
asyncTest('Global script with multiple objects the same', function() {

@@ -45,2 +58,12 @@ System['import']('tests/global-multi').then(function(m) {

if (!ie8)
asyncTest('Global script multiple objects different', function() {
System['import']('tests/global-multi-diff').then(function(m) {
ok(m.foo == 'barz');
ok(m.baz == 'chaz');
ok(m.zed == 'ted');
start();
}, err);
});
asyncTest('Global script loading with inline shim', function() {

@@ -68,2 +91,3 @@ System['import']('tests/global-inline-dep').then(function(m) {

if (!ie8)
asyncTest('Global script with inaccessible properties', function() {

@@ -92,2 +116,11 @@ Object.defineProperty(System.global, 'errorOnAccess', {

if (!ie8)
asyncTest('Meta should override meta syntax', function() {
System.meta['tests/meta-override'] = { format: 'es6' };
System['import']('tests/meta-override').then(function(m) {
ok(m.p == 'value', 'Not ES6');
start();
}, err);
});
asyncTest('Support the empty module', function() {

@@ -185,2 +218,9 @@ System['import']('@empty').then(function(m) {

asyncTest('AMD detection test with comments', function() {
System['import']('tests/amd-module-3').then(function(m) {
ok(m.amd);
start();
}, err);
});
System.bundles['tests/amd-bundle'] = ['bundle-1', 'bundle-2'];

@@ -200,16 +240,2 @@ asyncTest('Loading an AMD bundle', function() {

System.bundles['tests/amd-namespaced-bundle'] = ['bundle-ns-1', 'bundle-ns-2'];
asyncTest('Loading a namespaced AMD bundle', function() {
System['import']('bundle-ns-1').then(function(m) {
ok(m.defined == true);
start();
}, err);
stop();
System['import']('bundle-ns-2').then(function(m) {
ok(m.defined == true);
start();
}, err);
});
asyncTest('Loading an AMD named define', function() {

@@ -248,2 +274,9 @@ System['import']('tests/nameddefine').then(function(m1){

asyncTest('CommonJS setting module.exports', function() {
System['import']('tests/cjs-exports').then(function(m) {
ok(m.e = 'export');
start();
}, err);
});
asyncTest('Loading a UMD module', function() {

@@ -402,2 +435,13 @@ System['import']('tests/umd').then(function(m) {

asyncTest('AMD simplified CommonJS wrapping with an aliased require', function() {
System['import']('tests/amd-simplified-cjs-aliased-require1').then(function(m) {
ok(m.require2,"got dependency from aliased require");
ok(m.require2.amdCJS,"got dependency from aliased require listed as a dependency");
start();
}, err);
});
if (ie8)
return;
asyncTest('Wrapper module support', function() {

@@ -480,7 +524,9 @@ System['import']('tests/wrapper').then(function(m) {

System['import']('tests/reldynamic').then(function(m) {
m.dynamicLoad().then(function(m) {
ok(m.dynamic == 'module', 'Dynamic load failed');
start();
}, err);
}, err);
return m.dynamicLoad();
})
.then(function(m) {
ok(m.dynamic == 'module', 'Dynamic load failed');
start();
})
['catch'](err);
});

@@ -511,1 +557,2 @@

})();

@@ -1,36 +0,17 @@

System.register(["./all-layers3"], function($__0) {
System.register(["./all-layers3"], function($__export) {
"use strict";
var q,
r;
var q, r, c;
function p() {
if (q)
r = $__0[0]["c"];
r = $__export('r', c);
else
q = $__0[0]["c"];
q = $__export('q', c);
}
$__export('p', p);
return {
exports: {
get q() {
return q;
},
get r() {
return r;
},
get p() {
return p;
},
set q(value) {
q = value;
},
set r(value) {
r = value;
},
set p(value) {
p = value;
}
},
setters: [function(m) {
c = m.c;
}],
execute: function() {
;
$__0[0]["c"] = 5;
;
c = 5;
p();

@@ -37,0 +18,0 @@ }

@@ -1,19 +0,17 @@

System.register(["./all-layers2", "./all-layers4"], function($__0) {
System.register(["./all-layers2", "./all-layers4"], function($__export) {
"use strict";
var c;
var c, p;
return {
exports: {
get c() {
return c;
},
set c(value) {
c = value;
setters: [
function(m) {
p = m.p;
},
function(m) {
$__export('c', c = m.c);
}
},
],
execute: function() {
c = $__0[1]["c"];
;
$__0[0]["p"]();
p();
}
};
});
"format register";
System.register("tree/third", [], function(deps) {
System.register("tree/third", [], function($__export) {
var some;
return {
exports: {
some: 'exports'
},
execute: function() {}
setters: [],
execute: function() {
some = $__export('some', 'exports');
}
};

@@ -31,3 +32,3 @@ });

System.register("tree/second", ["./third", "./cjs"], function($__0) {
System.register("tree/second", ["./third", "./cjs"], function($__export) {
"use strict";

@@ -37,14 +38,5 @@ var __moduleName = "tree/second";

return {
exports: {
get q() {
return q;
},
set q(value) {
q = value;
}
},
setters: [function() {}, function() {}],
execute: function() {
;
;
q = 4;
q = $__export('q', 4);
}

@@ -66,3 +58,2 @@ };

System.register("tree/amd", ['./global'], false, function() {
console.log('amd');
return { is: 'amd' };

@@ -72,3 +63,3 @@ });

System.register("tree/first", ["./second", "./amd"], function($__0) {
System.register("tree/first", ["./second", "./amd"], function($__export) {
"use strict";

@@ -78,16 +69,7 @@ var __moduleName = "tree/first";

return {
exports: {
get p() {
return p;
},
set p(value) {
p = value;
}
},
setters: [function() {}, function() {}],
execute: function() {
;
;
p = 5;
p = $__export('p', 5);
}
};
});

@@ -1,1 +0,8 @@

export var p = 5;
System.register([], function($__export) {
return {
setters: [],
execute: function() {
$__export('p', 5);
}
};
});

@@ -1,39 +0,24 @@

System.register(["./register-circular2"], function($__0) {
System.register(["./register-circular2"], function($__export) {
"use strict";
var q,
var c,
q,
r;
function p() {
if (q)
r = $__0[0]["c"];
$__export("r", r = c);
else
q = $__0[0]["c"];
$__export("q", q = c);
}
$__export("p", p);
return {
exports: {
get q() {
return q;
},
get r() {
return r;
},
get p() {
return p;
},
set q(value) {
q = value;
},
set r(value) {
r = value;
},
set p(value) {
p = value;
}
},
setters: [function(m) {
c = m.c;
}],
execute: function() {
;
$__0[0]["c"] = 5;
;
c = 5;
q = $__export("q", q);
r = $__export("r", r);
p();
}
};
});
});

@@ -1,19 +0,14 @@

System.register(["./register-circular1"], function($__0) {
System.register(["./register-circular1"], function($__export) {
"use strict";
var c;
var c,
p;
return {
exports: {
get c() {
return c;
},
set c(value) {
c = value;
}
},
setters: [function(m) {
p = m.p;
}],
execute: function() {
c = 3;
;
$__0[0]["p"]();
c = $__export("c", 3);
p();
}
};
});
});

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc