From 3218b296d85e82a2722ef6439321701c4cf99c92 Mon Sep 17 00:00:00 2001 From: Matthew Phillips Date: Fri, 9 Dec 2016 09:23:41 -0500 Subject: [PATCH] Remove console shim We no longer need to shim the `console` as we are properly checking that it exists throughout Steal. --- Gruntfile.js | 1 - src/console.js | 4 ---- steal.js | 5 ----- steal.production.js | 6 +++--- 4 files changed, 3 insertions(+), 13 deletions(-) delete mode 100644 src/console.js diff --git a/Gruntfile.js b/Gruntfile.js index b1577dbac..5d1839e81 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -16,7 +16,6 @@ module.exports = function (grunt) { concat: { dist: { src: [ - "src/console.js", "node_modules/steal-es6-module-loader/dist/es6-module-loader.src.js", "node_modules/steal-systemjs/dist/system.src.js", "src/start.js", diff --git a/src/console.js b/src/console.js deleted file mode 100644 index e0eac92c5..000000000 --- a/src/console.js +++ /dev/null @@ -1,4 +0,0 @@ -if(typeof console === "undefined") { - console = {}; - console.log = console.error = console.warn = console.info = console.clear = function(){}; -} diff --git a/steal.js b/steal.js index c78792c1f..bb1050c46 100644 --- a/steal.js +++ b/steal.js @@ -1,8 +1,3 @@ -if(typeof console === "undefined") { - console = {}; - console.log = console.error = console.warn = console.info = console.clear = function(){}; -} - !function(e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define(e):"undefined"!=typeof window?window.Promise=e():"undefined"!=typeof global?global.Promise=e():"undefined"!=typeof self&&(self.Promise=e())}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o=0&&(n.splice(b,1),l("Handled previous rejection ["+a.id+"] "+e.formatObject(a.value)))}function h(a,b){m.push(a,b),null===o&&(o=d(i,0))}function i(){for(o=null;m.length>0;)m.shift()(m.shift())}var j,k=c,l=c;"undefined"!=typeof console&&(j=console,k="undefined"!=typeof j.error?function(a){j.error(a)}:function(a){j.log(a)},l="undefined"!=typeof j.info?function(a){j.info(a)}:function(a){j.log(a)}),a.onPotentiallyUnhandledRejection=function(a){h(f,a)},a.onPotentiallyUnhandledRejectionHandled=function(a){h(g,a)},a.onFatalRejection=function(a){h(b,a.value)};var m=[],n=[],o=null;return a}})}("function"==typeof a&&a.amd?a:function(a){c.exports=a(b)})},{"../env":5,"../format":6}],5:[function(b,c,d){!function(a){"use strict";a(function(a){function b(){return"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)}function c(){return"function"==typeof MutationObserver&&MutationObserver||"function"==typeof WebKitMutationObserver&&WebKitMutationObserver}function d(a){function b(){var a=c;c=void 0,a()}var c,d=document.createTextNode(""),e=new a(b);e.observe(d,{characterData:!0});var f=0;return function(a){c=a,d.data=f^=1}}var e,f="undefined"!=typeof setTimeout&&setTimeout,g=function(a,b){return setTimeout(a,b)},h=function(a){return clearTimeout(a)},i=function(a){return f(a,0)};if(b())i=function(a){return process.nextTick(a)};else if(e=c())i=d(e);else if(!f){var j=a,k=j("vertx");g=function(a,b){return k.setTimer(b,a)},h=k.cancelTimer,i=k.runOnLoop||k.runOnContext}return{setTimer:g,clearTimer:h,asap:i}})}("function"==typeof a&&a.amd?a:function(a){c.exports=a(b)})},{}],6:[function(b,c,d){!function(a){"use strict";a(function(){function a(a){var c="object"==typeof a&&null!==a&&(a.stack||a.message)?a.stack||a.message:b(a);return a instanceof Error?c:c+" (WARNING: non-Error used)"}function b(a){var b=String(a);return"[object Object]"===b&&"undefined"!=typeof JSON&&(b=c(a,b)),b}function c(a,b){try{return JSON.stringify(a)}catch(c){return b}}return{formatError:a,formatObject:b,tryStringify:c}})}("function"==typeof a&&a.amd?a:function(a){c.exports=a()})},{}],7:[function(b,c,d){!function(a){"use strict";a(function(){return function(a){function b(a,b){this._handler=a===t?b:c(a)}function c(a){function b(a){e.resolve(a)}function c(a){e.reject(a)}function d(a){e.notify(a)}var e=new v;try{a(b,c,d)}catch(f){c(f)}return e}function d(a){return I(a)?a:new b(t,new w(q(a)))}function e(a){return new b(t,new w(new z(a)))}function f(){return _}function g(){return new b(t,new v)}function h(a,b){var c=new v(a.receiver,a.join().context);return new b(t,c)}function i(a){return k(S,null,a)}function j(a,b){return k(N,a,b)}function k(a,c,d){function e(b,e,g){g.resolved||l(d,f,b,a(c,e,b),g)}function f(a,b,c){k[a]=b,0===--j&&c.become(new y(k))}for(var g,h="function"==typeof c?e:f,i=new v,j=d.length>>>0,k=new Array(j),m=0;m0?b(c,f.value,e):(e.become(f),m(a,c+1,f))}else b(c,d,e)}function m(a,b,c){for(var d=b;dc&&a._unreport()}}function o(a){return"object"!=typeof a||null===a?e(new TypeError("non-iterable passed to race()")):0===a.length?f():1===a.length?d(a[0]):p(a)}function p(a){var c,d,e,f=new v;for(c=0;c0||"function"!=typeof b&&0>e)return new this.constructor(t,d);var f=this._beget(),g=f._handler;return d.chain(g,d.receiver,a,b,c),f},b.prototype["catch"]=function(a){return this.then(void 0,a)},b.prototype._beget=function(){return h(this._handler,this.constructor)},b.all=i,b.race=o,b._traverse=j,b._visitRemaining=m,t.prototype.when=t.prototype.become=t.prototype.notify=t.prototype.fail=t.prototype._unreport=t.prototype._report=T,t.prototype._state=0,t.prototype.state=function(){return this._state},t.prototype.join=function(){for(var a=this;void 0!==a.handler;)a=a.handler;return a},t.prototype.chain=function(a,b,c,d,e){this.when({resolver:a,receiver:b,fulfilled:c,rejected:d,progress:e})},t.prototype.visit=function(a,b,c,d){this.chain(Y,a,b,c,d)},t.prototype.fold=function(a,b,c,d){this.when(new H(a,b,c,d))},R(t,u),u.prototype.become=function(a){a.fail()};var Y=new u;R(t,v),v.prototype._state=0,v.prototype.resolve=function(a){this.become(q(a))},v.prototype.reject=function(a){this.resolved||this.become(new z(a))},v.prototype.join=function(){if(!this.resolved)return this;for(var a=this;void 0!==a.handler;)if(a=a.handler,a===this)return this.handler=C();return a},v.prototype.run=function(){var a=this.consumers,b=this.handler;this.handler=this.handler.join(),this.consumers=void 0;for(var c=0;cf;f++)if(e=b.loads[f],e.name==c)return A.assert("loading"==e.status||"loaded"==e.status,"loading or loaded"),e;return e=a(c),b.loads.push(e),d(b,e),e})}function d(a,b){e(a,b,B.resolve().then(function(){return a.loaderObj.locate({name:b.name,metadata:b.metadata})}))}function e(a,b,c){f(a,b,c.then(function(c){return"loading"==b.status?(b.address=c,a.loaderObj.fetch({name:b.name,metadata:b.metadata,address:c})):void 0}))}function f(a,b,d){d.then(function(d){return"loading"==b.status?B.resolve(a.loaderObj.translate({name:b.name,metadata:b.metadata,address:b.address,source:d})).then(function(c){return"loading"==b.status?(b.source=c,a.loaderObj.instantiate({name:b.name,metadata:b.metadata,address:b.address,source:c})):void 0}).then(function(c){if("loading"==b.status){if(void 0===c)return b.address=b.address||"",b.isDeclarative=!0,a.loaderObj.transpile(b).then(function(a){var c=__global.System,d=c.register;c.register=function(a,c,d){"string"!=typeof a&&(d=c,c=a),b.declare=d,b.depsList=c},__eval(a,__global,b),c.register=d});if("object"!=typeof c)throw TypeError("Invalid instantiate return value");b.depsList=c.deps||[],b.execute=c.execute,b.isDeclarative=!1}}).then(function(){if("loading"==b.status){b.dependencies=[];for(var d=b.depsList,e=[],f=0,g=d.length;g>f;f++)(function(d,f){e.push(c(a,d,b.name,b.address).then(function(a){if(b.dependencies[f]={key:d,value:a.name},"linked"!=a.status)for(var c=b.linkSets.concat([]),e=0,g=c.length;g>e;e++)i(c[e],a)}))})(d[f],f);return B.all(e)}}).then(function(){if("loading"==b.status){A.assert("loading"==b.status,"is loading"),b.status="loaded";for(var a=b.linkSets.concat([]),c=0,d=a.length;d>c;c++)k(a[c],b)}}):void 0})["catch"](function(a){b.status="failed",b.exception=a;for(var c=b.linkSets.concat([]),d=0,e=c.length;e>d;d++)l(c[d],b,a);A.assert(0==b.linkSets.length,"linkSets not removed")})}function g(b){return function(c,g){var i=b.loader,j=b.moduleName,k=b.step;if(i.modules[j])throw new TypeError('"'+j+'" already exists in the module table');for(var l,m=0,n=i.loads.length;n>m;m++)if(i.loads[m].name==j)return l=i.loads[m],"translate"!=k||l.source||(l.address=b.moduleAddress,f(i,l,B.resolve(b.moduleSource))),l.linkSets[0].done.then(function(){c(l)});var o=a(j);o.metadata=b.moduleMetadata;var p=h(i,o);i.loads.push(o),c(p.done),"locate"==k?d(i,o):"fetch"==k?e(i,o,B.resolve(b.moduleAddress)):(A.assert("translate"==k,"translate step"),o.address=b.moduleAddress,f(i,o,B.resolve(b.moduleSource)))}}function h(a,b){var c={loader:a,loads:[],startingLoad:b,loadingCount:0};return c.done=new B(function(a,b){c.resolve=a,c.reject=b}),i(c,b),c}function i(a,b){A.assert("loading"==b.status||"loaded"==b.status,"loading or loaded on link set");for(var c=0,d=a.loads.length;d>c;c++)if(a.loads[c]==b)return;a.loads.push(b),b.linkSets.push(a),"loaded"!=b.status&&a.loadingCount++;for(var e=a.loader,c=0,d=b.dependencies.length;d>c;c++){var f=b.dependencies[c].value;if(!e.modules[f])for(var g=0,h=e.loads.length;h>g;g++)if(e.loads[g].name==f){i(a,e.loads[g]);break}}}function j(a){var b=!1;try{p(a,function(c,d){l(a,c,d),b=!0})}catch(c){l(a,null,c),b=!0}return b}function k(a,b){if(A.assert("loaded"==b.status||"linked"==b.status,"loaded or linked"),a.loadingCount--,!(a.loadingCount>0)){var c=a.startingLoad;if(a.loader.loaderObj.execute===!1){for(var d=[].concat(a.loads),e=0,f=d.length;f>e;e++){var b=d[e];b.module=b.isDeclarative?{name:b.name,module:F({}),evaluated:!0}:{module:F({})},b.status="linked",m(a.loader,b)}return a.resolve(c)}var g=j(a);g||(A.assert(0==a.loads.length,"loads cleared"),a.resolve(c))}}function l(a,b,c){var d=a.loader;a.loads[0].name!=b.name&&(c=w(c,'Error loading "'+b.name+'" from "'+a.loads[0].name+'" at '+(a.loads[0].address||"")+"\n")),c=w(c,'Error loading "'+b.name+'" at '+(b.address||"")+"\n");for(var e=a.loads.concat([]),f=0,g=e.length;g>f;f++){var b=e[f];d.loaderObj.failed=d.loaderObj.failed||[],-1==C.call(d.loaderObj.failed,b)&&d.loaderObj.failed.push(b);var h=C.call(b.linkSets,a);if(A.assert(-1!=h,"link not present"),b.linkSets.splice(h,1),0==b.linkSets.length){var i=C.call(a.loader.loads,b);-1!=i&&a.loader.loads.splice(i,1)}}a.reject(c)}function m(a,b){if(a.loaderObj.trace){a.loaderObj.loads||(a.loaderObj.loads={});var c={};b.dependencies.forEach(function(a){c[a.key]=a.value}),a.loaderObj.loads[b.name]={name:b.name,deps:b.dependencies.map(function(a){return a.key}),depMap:c,address:b.address,metadata:b.metadata,source:b.source,kind:b.isDeclarative?"declarative":"dynamic"}}b.name&&(A.assert(!a.modules[b.name],"load not in module table"),a.modules[b.name]=b.module);var d=C.call(a.loads,b);-1!=d&&a.loads.splice(d,1);for(var e=0,f=b.linkSets.length;f>e;e++)d=C.call(b.linkSets[e].loads,b),-1!=d&&b.linkSets[e].loads.splice(d,1);b.linkSets.splice(0,b.linkSets.length)}function n(a,b,c){if(c[a.groupIndex]=c[a.groupIndex]||[],-1==C.call(c[a.groupIndex],a)){c[a.groupIndex].push(a);for(var d=0,e=b.length;e>d;d++)for(var f=b[d],g=0;g=0;g--){for(var h=d[g],i=0;if;f++){var h=d.importers[f];if(!h.locked){var i=C.call(h.dependencies,d);h.setters[i](e)}}return d.locked=!1,b});d.setters=f.setters,d.execute=f.execute;for(var g=0,h=a.dependencies.length;h>g;g++){var i=a.dependencies[g].value,j=c.modules[i];if(!j)for(var k=0;kf;f++){var h=e[f];if(h&&-1==C.call(b,h)&&(d=v(h,b,c)))return d=w(d,"Error evaluating "+h.name+"\n")}if(a.failed)return new Error("Module failed execution.");if(!a.evaluated)return a.evaluated=!0,d=t(a),d?a.failed=!0:Object.preventExtensions&&Object.preventExtensions(a.module),a.execute=void 0,d}}function w(a,b){return a instanceof Error?a.message=b+a.message:a=b+a,a}function x(a){if("object"!=typeof a)throw new TypeError("Options must be an object");a.normalize&&(this.normalize=a.normalize),a.locate&&(this.locate=a.locate),a.fetch&&(this.fetch=a.fetch),a.translate&&(this.translate=a.translate),a.instantiate&&(this.instantiate=a.instantiate),this._loader={loaderObj:this,loads:[],modules:{},importPromises:{},moduleRecords:{}},D(this,"global",{get:function(){return __global}})}function y(){}function z(a,b,c){var d=a._loader.importPromises;return d[b]=c.then(function(a){return d[b]=void 0,a},function(a){throw d[b]=void 0,a})}var A,B=__global.Promise||require("when/es6-shim/Promise");__global.console?(A=__global.console,A.assert=A.assert||function(){}):A={assert:function(){}};var C=Array.prototype.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1},D=$__Object$defineProperty,E=0;x.prototype={constructor:x,define:function(a,b,c){if(this._loader.importPromises[a])throw new TypeError("Module is already loading.");return z(this,a,new B(g({step:"translate",loader:this._loader,moduleName:a,moduleMetadata:c&&c.metadata||{},moduleSource:b,moduleAddress:c&&c.address})))},"delete":function(a){var b=this._loader;return delete b.importPromises[a],delete b.moduleRecords[a],b.modules[a]?delete b.modules[a]:!1},get:function(a){return this._loader.modules[a]?(u(this._loader.modules[a],[],this),this._loader.modules[a].module):void 0},has:function(a){return!!this._loader.modules[a]},"import":function(a,c){var d=this;return B.resolve(d.normalize(a,c&&c.name,c&&c.address)).then(function(a){var e=d._loader;return e.modules[a]?(u(e.modules[a],[],e._loader),e.modules[a].module):e.importPromises[a]||z(d,a,b(e,a,c||{}).then(function(b){return delete e.importPromises[a],s(e,b)}))})},load:function(a,c){return this._loader.modules[a]?(u(this._loader.modules[a],[],this._loader),B.resolve(this._loader.modules[a].module)):this._loader.importPromises[a]||z(this,a,b(this._loader,a,{}))},module:function(b,c){var d=a();d.address=c&&c.address;var e=h(this._loader,d),g=B.resolve(b),i=this._loader,j=e.done.then(function(){return s(i,d)});return f(i,d,g),j},newModule:function(a){if("object"!=typeof a)throw new TypeError("Expected object");var b,c=new y;if(Object.getOwnPropertyNames&&null!=a)b=Object.getOwnPropertyNames(a);else{b=[];for(var d in a)b.push(d)}for(var e=0;e=6?(delete c.optional,delete c.whitelist,delete c.blacklist,c.presets||c.plugins||(c.presets=["es2015-no-commonjs","react","stage-0"],c.plugins=["transform-es2015-modules-systemjs"])):(c.modules="system",c.blacklist||(c.blacklist=["react"]));var e=b.transform(a.source,c).code;return e+"\n//# sourceURL="+a.address+"!eval"}var f=__global;a.prototype.transpiler="babel",a.prototype.transpile=function(a){var d=this;return d.transpilerHasRun||(f.traceur&&!d.has("traceur")&&d.set("traceur",b(d,"traceur")),f.babel&&!d.has("babel")&&d.set("babel",b(d,"babel")),d.transpilerHasRun=!0),d["import"](d.transpiler).then(function(b){return b.__useDefault&&(b=b["default"]),'var __moduleAddress = "'+a.address+'";'+(b.Compiler?c:e).call(d,a,b)})},a.prototype.instantiate=function(a){var c=this;return Promise.resolve(c.normalize(c.transpiler)).then(function(d){return a.name===d?{deps:[],execute:function(){var d=f.System,e=f.Reflect.Loader;return __eval("(function(require,exports,module){"+a.source+"})();",f,a),f.System=d,f.Reflect.Loader=e,b(c,a.name)}}:void 0})}}(__global.LoaderPolyfill),function(){function a(a){var b=String(a).replace(/^\s+|\s+$/g,"").match(/^([^:\/?#]+:)?(\/\/(?:[^:@\/?#]*(?::[^:@\/?#]*)?@)?(([^:\/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/);return b?{href:b[0]||"",protocol:b[1]||"",authority:b[2]||"",host:b[3]||"",hostname:b[4]||"",port:b[5]||"",pathname:b[6]||"",search:b[7]||"",hash:b[8]||""}:null}function b(a){var b=[];return a.replace(/^(\.\.?(\/|$))+/,"").replace(/\/(\.(\/|$))+/g,"/").replace(/\/\.\.$/,"/../").replace(/\/?[^\/]*/g,function(a){"/.."===a?b.pop():b.push(a)}),b.join("").replace(/^\//,"/"===a.charAt(0)?"/":"")}function c(c,d){return g&&(d=d.replace(/\\/g,"/")),d=a(d||""),c=a(c||""),d&&c?(d.protocol||c.protocol)+(d.protocol||d.authority?d.authority:c.authority)+b(d.protocol||d.authority||"/"===d.pathname.charAt(0)?d.pathname:d.pathname?(c.authority&&!c.pathname?"/":"")+c.pathname.slice(0,c.pathname.lastIndexOf("/")+1)+d.pathname:c.pathname)+(d.protocol||d.authority||d.pathname?d.search:d.search||c.search)+d.hash:null}var d,e="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,f="undefined"!=typeof window&&!e,g="undefined"!=typeof process&&!!process.platform.match(/^win/),h=__global.Promise||require("when/es6-shim/Promise");if("undefined"!=typeof XMLHttpRequest)d=function(a,b,c){function d(){b(f.responseText)}function e(){c(f.statusText+": "+a||"XHR error")}var f=new XMLHttpRequest,g=!0,h=!1;if(!("withCredentials"in f)){var i=/^(\w+:)?\/\/([^\/]+)/.exec(a);i&&(g=i[2]===window.location.host,i[1]&&(g&=i[1]===window.location.protocol))}g||"undefined"==typeof XDomainRequest||(f=new XDomainRequest,f.onload=d,f.onerror=e,f.ontimeout=e,f.onprogress=function(){},f.timeout=0,h=!0),f.onreadystatechange=function(){4===f.readyState&&(200===f.status||0==f.status&&f.responseText?d():e())},f.open("GET",a,!0),h&&setTimeout(function(){f.send()},0),f.send(null)};else if("undefined"!=typeof require){var i;d=function(a,b,c){if("file:"!=a.substr(0,5))throw"Only file URLs of the form file: allowed running in Node.";return i=i||require("fs"),a=a.substr(5),g&&(a=a.replace(/\//g,"\\")),i.readFile(a,function(a,d){return a?c(a):void b(d+"")})}}else{if("function"!=typeof fetch)throw new TypeError("No environment fetch API available.");d=function(a,b,c){fetch(a).then(function(a){return a.text()}).then(function(a){b(a)}).then(null,function(a){c(a)})}}var j=function(a){function b(b){if(a.call(this,b||{}),"undefined"!=typeof location&&location.href){var c=__global.location.href.split("#")[0].split("?")[0];this.baseURL=c.substring(0,c.lastIndexOf("/")+1)}else{if("undefined"==typeof process||!process.cwd)throw new TypeError("No environment baseURL");this.baseURL="file:"+process.cwd()+"/",g&&(this.baseURL=this.baseURL.replace(/\\/g,"/"))}this.paths={"*":"*.js"}}return b.__proto__=null!==a?a:Function.prototype,b.prototype=$__Object$create(null!==a?a.prototype:null),$__Object$defineProperty(b.prototype,"constructor",{value:b}),$__Object$defineProperty(b.prototype,"global",{get:function(){return f?window:e?self:__global},enumerable:!1}),$__Object$defineProperty(b.prototype,"strict",{get:function(){return!0},enumerable:!1}),$__Object$defineProperty(b.prototype,"normalize",{value:function(a,b,c){if("string"!=typeof a)throw new TypeError("Module name must be a string");var d=a.split("/");if(0==d.length)throw new TypeError("No module name provided");var e=0,f=!1,g=0;if("."==d[0]){if(e++,e==d.length)throw new TypeError('Illegal module name "'+a+'"');f=!0}else{for(;".."==d[e];)if(e++,e==d.length)throw new TypeError('Illegal module name "'+a+'"');e&&(f=!0),g=e}for(var h=e;h2)throw new TypeError("Only one wildcard in a path is permitted");if(1==h.length){if(d==g&&g.length>e.length){e=g;break}}else d.substr(0,h[0].length)==h[0]&&d.substr(d.length-h[1].length)==h[1]&&(e=g,b=d.substr(h[0].length,d.length-h[1].length-h[0].length))}var i=this.paths[e];return b&&(i=i.replace("*",b)),f&&(i=i.replace(/#/g,"%23")),c(this.baseURL,i)},enumerable:!1,writable:!0}),$__Object$defineProperty(b.prototype,"fetch",{value:function(a){var b=this;return new h(function(e,f){d(c(b.baseURL,a.address),function(a){e(a)},f)})},enumerable:!1,writable:!0}),b}(__global.LoaderPolyfill),k=new j;"object"==typeof exports&&(module.exports=k),__global.System=k}()}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope?self:global),function(a){a.upgradeSystemLoader=function(){function b(a){var b=String(a).replace(/^\s+|\s+$/g,"").match(/^([^:\/?#]+:)?(\/\/(?:[^:@\/?#]*(?::[^:@\/?#]*)?@)?(([^:\/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/);return b?{href:b[0]||"",protocol:b[1]||"",authority:b[2]||"",host:b[3]||"",hostname:b[4]||"",port:b[5]||"",pathname:b[6]||"",search:b[7]||"",hash:b[8]||""}:null}function d(a,c){function d(a){var b=[];return a.replace(/^(\.\.?(\/|$))+/,"").replace(/\/(\.(\/|$))+/g,"/").replace(/\/\.\.$/,"/../").replace(/\/?[^\/]*/g,function(a){"/.."===a?b.pop():b.push(a)}),b.join("").replace(/^\//,"/"===a.charAt(0)?"/":"")}return u&&(c=c.replace(/\\/g,"/")),c=b(c||""),a=b(a||""),c&&a?(c.protocol||a.protocol)+(c.protocol||c.authority?c.authority:a.authority)+d(c.protocol||c.authority||"/"===c.pathname.charAt(0)?c.pathname:c.pathname?(a.authority&&!a.pathname?"/":"")+a.pathname.slice(0,a.pathname.lastIndexOf("/")+1)+c.pathname:a.pathname)+(c.protocol||c.authority||c.pathname?c.search:c.search||a.search)+c.hash:null}function e(b){var c={};if(("object"==typeof b||"function"==typeof b)&&b!==a)if(v)for(var d in b)"default"!==d&&f(c,b,d);else g(c,b);return c["default"]=b,x(c,"__useDefault",{ -value:!0}),c}function f(a,b,c){try{var d;(d=Object.getOwnPropertyDescriptor(b,c))&&x(a,c,d)}catch(e){return a[c]=b[c],!1}}function g(a,b,c){var d=b&&b.hasOwnProperty;for(var e in b)(!d||b.hasOwnProperty(e))&&(c&&e in a||(a[e]=b[e]));return a}function h(a){function b(a,b){b._extensions=[];for(var c=0,d=a.length;d>c;c++)a[c](b)}var c=a["import"];a["import"]=function(a,b){return c.call(this,a,b).then(function(a){return a.__useDefault?a["default"]:a})},a.set("@empty",a.newModule({})),"undefined"!=typeof require&&(a._nodeRequire=require),a.config=function(a){for(var b in a){var c=a[b];if("object"!=typeof c||c instanceof Array)this[b]=c;else{this[b]=this[b]||{};for(var d in c)this[b][d]=c[d]}}};var e;if("undefined"==typeof window&&"undefined"==typeof WorkerGlobalScope)e="file:"+process.cwd()+"/",u&&(e=e.replace(/\\/g,"/"));else if("undefined"==typeof window)e=a.global.location.href;else if(e=document.baseURI,!e){var f=document.getElementsByTagName("base");e=f[0]&&f[0].href||window.location.href}var g,i=a.locate;a.locate=function(a){return this.baseURL!=g&&(g=d(e,this.baseURL),"/"!=g.substr(g.length-1,1)&&(g+="/"),this.baseURL=g),Promise.resolve(i.call(this,a))},a._extensions=a._extensions||[],a._extensions.push(h),a.clone=function(){var a=this,c=new LoaderPolyfill(y);return c.baseURL=a.baseURL,c.paths={"*":"*.js"},b(a._extensions,c),c}}function i(a){function b(a,b){var c=a.meta&&a.meta[b.name];if(c)for(var d in c)b.metadata[d]=b.metadata[d]||c[d]}var c=/^(\s*\/\*.*\*\/|\s*\/\/[^\n]*|\s*"[^"]+"\s*;?|\s*'[^']+'\s*;?)+/,d=/\/\*.*\*\/|\/\/[^\n]*|"[^"]+"\s*;?|'[^']+'\s*;?/g;a.meta={},a._extensions=a._extensions||[],a._extensions.push(i);var e=a.locate;a.locate=function(a){return b(this,a),e.call(this,a)};var f=a.translate;a.translate=function(a){var e=a.source.match(c);if(e)for(var g=e[0].match(d),h=0;hc;c++)-1==t.call(b,a[c])&&b.push(a[c]);return b}function g(b,c,d,e){"string"!=typeof b&&(e=d,d=c,c=b,b=null),r=!0;var f;if(f="boolean"==typeof d?{declarative:!1,deps:c,execute:e,executingRequire:d}:{declarative:!0,deps:c,declare:d},b)f.name=b,b in a.defined||(a.defined[b]=f);else if(f.declarative){if(q)throw new TypeError("Multiple anonymous System.register calls in the same module file.");q=f}}function h(a){if(!a.register){a.register=g,a.defined||(a.defined={});var b=a.onScriptLoad;a.onScriptLoad=function(a){b(a),q&&(a.metadata.entry=q),r&&(a.metadata.format=a.metadata.format||"register",a.metadata.registered=!0)}}}function i(a,b,c){if(c[a.groupIndex]=c[a.groupIndex]||[],-1==t.call(c[a.groupIndex],a)){c[a.groupIndex].push(a);for(var d=0,e=a.normalizedDeps.length;e>d;d++){var f=a.normalizedDeps[d],g=b.defined[f];if(g&&!g.evaluated){var h=a.groupIndex+(g.declarative!=a.declarative);if(void 0===g.groupIndex||g.groupIndex=0;f--){for(var g=d[f],h=0;he;e++){var g=c.importers[e];if(!g.locked){var h=t.call(g.dependencies,c);g.setters[h](d)}}return c.locked=!1,b});if(c.setters=e.setters,c.execute=e.execute,!c.setters||!c.execute)throw new TypeError("Invalid System.register form for "+a.name);for(var f=0,g=a.normalizedDeps.length;g>f;f++){var h,i=a.normalizedDeps[f],j=b.defined[i],k=u[i];k?h=k.exports:j&&!j.declarative?h=j.module.exports&&j.module.exports.__esModule?j.module.exports:j.esModule:j?(m(j,b),k=j.module,h=k.exports):h=b.get(i),k&&k.importers?(k.importers.push(c),c.dependencies.push(k)):c.dependencies.push(null),c.setters[f]&&c.setters[f](h)}}}function n(a,b){var c,d=b.defined[a];if(d)d.declarative?p(a,[],b):d.evaluated||o(d,b),c=d.module.exports;else if(c=b.get(a),!c)throw new Error("Unable to load dependency "+a+".");return(!d||d.declarative)&&c&&c.__useDefault?c["default"]:c}function o(a,b){if(!a.module){var c={},d=a.module={exports:c,id:a.name};if(!a.executingRequire)for(var f=0,g=a.normalizedDeps.length;g>f;f++){var h=a.normalizedDeps[f],i=b.defined[h];i&&o(i,b)}a.evaluated=!0;var j=a.execute.call(b.global,function(c){for(var d=0,e=a.deps.length;e>d;d++)if(a.deps[d]==c)return n(a.normalizedDeps[d],b);throw new TypeError("Module "+c+" not declared as a dependency.")},c,d);j&&(d.exports=j),c=d.exports,c&&(c.__esModule||c instanceof v)?a.esModule=c:a.esmExports&&c!==b.global?a.esModule=e(c):a.esModule={"default":c}}}function p(a,b,c){var d=c.defined[a];if(d&&!d.evaluated&&d.declarative){b.push(a);for(var e=0,f=d.normalizedDeps.length;f>e;e++){var g=d.normalizedDeps[e];-1==t.call(b,g)&&(c.defined[g]?p(g,b,c):c.get(g))}d.evaluated||(d.evaluated=!0,d.module.execute.call(c.global))}}"undefined"==typeof t&&(t=Array.prototype.indexOf),("undefined"==typeof c||"undefined"!=typeof document&&!document.addEventListener)&&(c=eval),a._extensions=a._extensions||[],a._extensions.push(j);a.__exec=b;var q,r;h(a);var u={},v=a.newModule({}).constructor,w=/System\.register/,x=a.fetch;a.fetch=function(a){var b=this;return h(b),b.defined[a.name]?(a.metadata.format="defined",""):(q=null,r=!1,x.call(b,a))};var y=a.translate;a.translate=function(a){return this.register=g,this.__exec=b,a.metadata.deps=a.metadata.deps||[],Promise.resolve(y.call(this,a)).then(function(b){return(a.metadata.init||a.metadata.exports)&&(a.metadata.format=a.metadata.format||"global"),("register"==a.metadata.format||!a.metadata.format&&a.source.match(w))&&(a.metadata.format="register"),b})};var z=a.instantiate;a.instantiate=function(a){var b,c=this;if(c.defined[a.name])b=c.defined[a.name],b.deps=b.deps.concat(a.metadata.deps);else if(a.metadata.entry)b=a.metadata.entry;else if(a.metadata.execute)b={declarative:!1,deps:a.metadata.deps||[],esModule:null,execute:a.metadata.execute,executingRequire:a.metadata.executingRequire};else if("register"==a.metadata.format){q=null,r=!1;var d=c.global.System;if(c.global.System=c,c.__exec(a),c.global.System=d,q&&(b=q),!b&&s.defined[a.name]&&(b=s.defined[a.name]),!r&&!a.metadata.registered)throw new TypeError(a.name+" detected as System.register but didn't execute.")}if(!b&&"es6"!=a.metadata.format)return{deps:a.metadata.deps,execute:function(){return c.newModule({})}};if(!b)return z.call(this,a);c.defined[a.name]=b,b.deps=f(b.deps),b.name=a.name,b.esmExports=a.metadata.esmExports!==!1;for(var e=[],g=0,h=b.deps.length;h>g;g++)e.push(Promise.resolve(c.normalize(b.deps[g],a.name)));return Promise.all(e).then(function(d){return b.normalizedDeps=d,{deps:b.deps,execute:function(){k(a.name,c),p(a.name,[],c),c.defined[a.name]=void 0;var d=b.module.exports;return b.declarative||(d=b.esModule),c.newModule(d)}}})}}function k(a){function b(a,b,c){if(a.meta[b]={format:"global"},i&&!a.paths[b])try{a.paths[b]=require.resolve(c||b)}catch(d){}}a._extensions.push(k);var c,d,e=/(^\s*|[}\);\n]\s*)(import\s+(['"]|(\*\s+as\s+)?[^"'\(\)\n;]+\s+from\s+['"]|\{)|export\s+\*\s+from\s+["']|export\s+(\{|default|function|class|var|const|let|async\s+function))/,f=/\$traceurRuntime\s*\./,g=/babelHelpers\s*\./,h=!0,i="undefined"!=typeof process&&"undefined"!=typeof require&&require.resolve,j=a.locate;a.locate=function(a){var c=this;return h&&("traceur"==c.transpiler?(b(c,"traceur","traceur/bin/traceur.js"),c.meta.traceur.exports="traceur",b(c,"traceur-runtime","traceur/bin/traceur-runtime.js")):"babel"==c.transpiler&&(b(c,"babel","babel-core/browser.js"),b(c,"babel-runtime","babel-core/external-helpers.js")),h=!1),j.call(c,a)};var l=a.translate;a.translate=function(a){var b=this;return l.call(b,a).then(function(h){if("es6"==a.metadata.format||!a.metadata.format&&h.match(e))return a.metadata.format="es6",h;if("register"==a.metadata.format){if(!b.global.$traceurRuntime&&a.source.match(f))return b["import"]("traceur-runtime").then(function(){return h});if(!b.global.babelHelpers&&a.source.match(g))return b["import"]("babel/external-helpers").then(function(){return h})}return"traceur"==b.transpiler?Promise.all([c||(c=b.normalize(b.transpiler)),d||(d=b.normalize(b.transpiler+"-runtime"))]).then(function(b){return a.name==b[0]||a.name==b[1]?"(function() { var curSystem = System; "+h+"\nSystem = curSystem; })();":h}):h})}}function l(a){function b(a,b){for(var c=a.split(".");c.length;)b=b[c.shift()];return b}function c(a){function c(a){for(var b={},c=0,d=a.length;d>c;c++)b[a[c]]=!0;return b}if(!a.has("@@global-helpers")){var d,e,f=a.global.hasOwnProperty,g={};a.set("@@global-helpers",a.newModule({prepareGlobal:function(b,h,i){for(var j=0;jb.index)return!0;return!1}d.lastIndex=e.lastIndex=f.lastIndex=0;var c,g=[],h=[],i=[];if(a.length/a.split("\n").length<200){for(;c=f.exec(a);)h.push([c.index,c.index+c[0].length]);for(;c=e.exec(a);)b(h,c)||i.push([c.index,c.index+c[0].length])}for(;c=d.exec(a);)if(!b(h,c)&&!b(i,c)){var j=c[1].substr(1,c[1].length-2);if(j.match(/"|'/))continue;g.push(j)}return g}a._extensions.push(m);var c=/(?:^\uFEFF?|[^$_a-zA-Z\xA0-\uFFFF.])(exports\s*(\[['"]|\.)|module(\.exports|\['exports'\]|\["exports"\])\s*(\[['"]|[=,\.]))/,d=/(?:^\uFEFF?|[^$_a-zA-Z\xA0-\uFFFF."'])require\s*\(\s*("[^"\\]*(?:\\.[^"\\]*)*"|'[^'\\]*(?:\\.[^'\\]*)*')\s*\)/g,e=/(^|[^\\])(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/gm,f=/("[^"\\\n\r]*(\\.[^"\\\n\r]*)*"|'[^'\\\n\r]*(\\.[^'\\\n\r]*)*')/g,g=a.instantiate;a.instantiate=function(e){return e.metadata.format||(c.lastIndex=0,d.lastIndex=0,(d.exec(e.source)||c.exec(e.source))&&(e.metadata.format="cjs")),"cjs"==e.metadata.format&&(e.metadata.deps=e.metadata.deps?e.metadata.deps.concat(b(e.source)):b(e.source),e.metadata.executingRequire=!0,e.metadata.execute=function(b,c,d){var f=(e.address||"").split("/");f.pop(),f=f.join("/"),s._nodeRequire&&(f=f.substr(5));var g=(a.global._g={global:a.global,exports:c,module:d,require:b,__filename:s._nodeRequire?e.address.substr(5):e.address,__dirname:f},a.global.define);a.global.define=void 0;var h={name:e.name,source:"(function() {\n(function(global, exports, module, require, __filename, __dirname){\n"+e.source+"\n}).call(_g.exports, _g.global, _g.exports, _g.module, _g.require, _g.__filename, _g.__dirname);})();",address:e.address};a.__exec(h),a.global.define=g,a.global._g=void 0}),g.call(this,e)}}function n(a){function b(a,b){function c(a,b){for(var c=0;cb)return!0;return!1}for(var d,e=[];d=m.exec(a);)e.push([d.index,d.index+d[0].length]);a=a.replace(k,function(a,b,d,f,g,h){return c(e,h+1)?a:""});var f=a.match(r),g=(f[1].split(",")[b]||"require").replace(s,""),h=u[g]||(u[g]=new RegExp(p+g+q,"g"));h.lastIndex=0;for(var d,i=[];d=h.exec(a);)i.push(d[2]||d[3]);return i}function c(a,b,d,e){var f=this;if("object"==typeof a&&!(a instanceof Array))return c.apply(null,Array.prototype.splice.call(arguments,1,arguments.length-1));if(!(a instanceof Array)){if("string"==typeof a){var g=f.get(a);return g.__useDefault?g["default"]:g}throw new TypeError("Invalid require")}Promise.all(a.map(function(a){return f["import"](a,e)})).then(function(a){b&&b.apply(null,a)},d)}function d(a,b,d){return function(e,f,g){return"string"==typeof e?b(e):c.call(d,e,f,g,{name:a})}}function e(a){function c(c,e,f){"string"!=typeof c&&(f=e,e=c,c=null),e instanceof Array||(f=e,e=["require","exports","module"]),"function"!=typeof f&&(f=function(a){return function(){return a}}(f)),void 0===e[e.length-1]&&e.pop();var g,h,i;if(-1!=(g=t.call(e,"require"))){e.splice(g,1);var j=f.toString();e=e.concat(b(j,g))}-1!=(h=t.call(e,"exports"))&&e.splice(h,1),-1!=(i=t.call(e,"module"))&&e.splice(i,1);var k={deps:e,execute:function(b,c,j){for(var k=[],m=0;mc;c++)"/"===a[c]&&b++;return b}function d(a,b,c){return c+a.substr(b)}function e(a,e,f){var g,h,i,j,k=0,l=0;if(e)for(var m in f.map){var n=f.map[m];if("object"==typeof n&&b(e,m)&&(i=c(m),!(l>=i)))for(var o in n)b(a,o)&&(j=c(o),k>=j||(g=o,k=j,h=m,l=i))}if(g)return d(a,g.length,f.map[h][g]);for(var m in f.map){var n=f.map[m];if("string"==typeof n&&b(a,m)){var j=c(m);k>=j||(g=m,k=j)}}return g?d(a,g.length,f.map[g]):a}a.map=a.map||{},a._extensions.push(o);var f=a.normalize;a.normalize=function(a,b,c){var d=this;d.map||(d.map={});var g=!1;return"/"==a.substr(a.length-1,1)&&(g=!0,a+="#"),Promise.resolve(f.call(d,a,b,c)).then(function(a){if(a=e(a,b,d),g){var c=a.split("/");c.pop();var f=c.pop();c.push(f),c.push(f),a=c.join("/")}return a})}}function p(a){"undefined"==typeof t&&(t=Array.prototype.indexOf),a._extensions.push(p);var b=a.normalize;a.normalize=function(a,c,d){var e,f=this;return c&&-1!=(e=c.indexOf("!"))&&(c=c.substr(0,e)),Promise.resolve(b.call(f,a,c,d)).then(function(a){var b=a.lastIndexOf("!");if(-1!=b){var e=a.substr(0,b),g=a.substr(b+1)||e.substr(e.lastIndexOf(".")+1);return new Promise(function(a){a(f.normalize(g,c,d))}).then(function(a){return g=a,f.normalize(e,c,d,!0)}).then(function(a){return a+"!"+g})}return a})};var c=a.locate;a.locate=function(a){var b=this,d=a.name;if(this.defined&&this.defined[d])return c.call(this,a);var e=d.lastIndexOf("!");if(-1!=e){var f=d.substr(e+1);a.name=d.substr(0,e);var g=b.pluginLoader||b;return g["import"](f).then(function(){var c=g.get(f);return c=c["default"]||c,c.build===!1&&b.pluginLoader&&(a.metadata.build=!1),a.metadata.plugin=c,a.metadata.pluginName=f,a.metadata.pluginArgument=a.name,a.metadata.buildType=c.buildType||"js",c.locate?c.locate.call(b,a):Promise.resolve(b.locate(a)).then(function(a){return a.replace(/\.js$/,"")})})}return c.call(this,a)};var d=a.fetch;a.fetch=function(a){var b=this;return a.metadata.build===!1&&b.pluginLoader?"":a.metadata.plugin&&a.metadata.plugin.fetch&&!a.metadata.pluginFetchCalled?(a.metadata.pluginFetchCalled=!0,a.metadata.plugin.fetch.call(b,a,d)):d.call(b,a)};var e=a.translate;a.translate=function(a){var b=this;return a.metadata.plugin&&a.metadata.plugin.translate?Promise.resolve(a.metadata.plugin.translate.call(b,a)).then(function(c){return"string"==typeof c&&(a.source=c),e.call(b,a)}):e.call(b,a)};var f=a.instantiate;a.instantiate=function(a){var b=this;return a.metadata.plugin&&a.metadata.plugin.instantiate?Promise.resolve(a.metadata.plugin.instantiate.call(b,a)).then(function(c){return c?c:f.call(b,a)}):a.metadata.plugin&&a.metadata.plugin.build===!1?(a.metadata.format="defined",a.metadata.deps.push(a.metadata.pluginName),a.metadata.execute=function(){return b.newModule({})},f.call(b,a)):f.call(b,a)}}function q(a){"undefined"==typeof t&&(t=Array.prototype.indexOf),a._extensions.push(q),a.bundles=a.bundles||{};var b=a.fetch;a.fetch=function(a){var c=this;if(c.trace)return b.call(this,a);c.bundles||(c.bundles={});for(var d in c.bundles)if(-1!=t.call(c.bundles[d],a.name))return Promise.resolve(c.normalize(d)).then(function(a){return c.bundles[a]=c.bundles[a]||c.bundles[d],c.meta=c.meta||{},c.meta[a]=c.meta[a]||{},c.meta[a].bundle=!0,c.load(a)}).then(function(){return""});return b.call(this,a)}}function r(a){a.depCache=a.depCache||{},a._extensions.push(r);var b=a.locate;a.locate=function(a){var c=this;c.depCache||(c.depCache={});var d=c.depCache[a.name];if(d)for(var e=0;eb;b++)if(this[b]===a)return b;return-1},u="undefined"!=typeof process&&!!process.platform.match(/^win/);!function(){var b=a.System;s=a.System=new LoaderPolyfill(b),s.baseURL=b.baseURL,s.paths={"*":"*.js"},s.originalSystem=b}(),s.noConflict=function(){a.SystemJS=s,a.System=s.originalSystem};var v=!0;try{Object.getOwnPropertyDescriptor({a:0},"a")}catch(w){v=!1}var x;!function(){try{Object.defineProperty({},"a",{})&&(x=Object.defineProperty)}catch(a){x=function(a,b,c){try{a[b]=c.value||c.get.call(a)}catch(d){}}}}();var y=a.System.originalSystem;h(s),i(s),j(s),k(s),l(s),m(s),n(s),o(s),p(s),q(s),r(s)};var b,c;!function(){function d(a,c){if(!a.originalErr)for(var d=(a.stack||a.message||a).toString().split("\n"),e=[],f=0;fc;c++)b.call(a[c],a[c],c,a);else for(c in a)a.hasOwnProperty(c)&&b.call(a[c],a[c],c,a);return a},e=function(a,b){var c=[];return d(a,function(a,d){c[d]=b(a,d)}),c},f=function(a){return"string"==typeof a},g=function(a,b){return d(b,function(b,c){a[c]=b}),a},h=function(a){var b=a.lastIndexOf("/");return-1===b&&(b=a.lastIndexOf("\\")),-1!==b?a.substr(0,b):a},i=function(a){return a[a.length-1]},j=function(a){var b=String(a).replace(/^\s+|\s+$/g,"").match(/^([^:\/?#]+:)?(\/\/(?:[^:@]*(?::[^:@]*)?@)?(([^:\/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/);return b?{href:b[0]||"",protocol:b[1]||"",authority:b[2]||"",host:b[3]||"",hostname:b[4]||"",port:b[5]||"",pathname:b[6]||"",search:b[7]||"",hash:b[8]||""}:null},k=function(a,b){function c(a){var b=[];return a.replace(/^(\.\.?(\/|$))+/,"").replace(/\/(\.(\/|$))+/g,"/").replace(/\/\.\.$/,"/../").replace(/\/?[^\/]*/g,function(a){"/.."===a?b.pop():b.push(a)}),b.join("").replace(/^\//,"/"===a.charAt(0)?"/":"")}return b=j(b||""),a=j(a||""),b&&a?(b.protocol||a.protocol)+(b.protocol||b.authority?b.authority:a.authority)+c(b.protocol||b.authority||"/"===b.pathname.charAt(0)?b.pathname:b.pathname?(a.authority&&!a.pathname?"/":"")+a.pathname.slice(0,a.pathname.lastIndexOf("/")+1)+b.pathname:a.pathname)+(b.protocol||b.authority||b.pathname?b.search:b.search||a.search)+b.hash:null},l=function(a,b){for(var c=b.split("/"),d=a.split("/"),e=[];c.length&&d.length&&c[0]==d[0];)c.shift(),d.shift();for(var f=0;fb.index)return!0;return!1}function c(c){for(;d=c.exec(a);)if(!b(f,d)&&!b(g,d)){var h=d[1];e.push(h)}}i.lastIndex=k.lastIndex=j.lastIndex=l.lastIndex=0;var d,e=[],f=[],g=[];if(a.length/a.split("\n").length<200){for(;d=l.exec(a);)f.push([d.index,d.index+d[0].length]);for(;d=k.exec(a);)b(f,d)||g.push([d.index,d.index+d[0].length])}return c(i),c(j),e}a._extensions&&a._extensions.push(s),a._traceData={loads:{},parentMap:{}},a.getDependencies=function(a){var b=this.getModuleLoad(a);return b?b.metadata.dependencies:void 0},a.getDependants=function(a){var c=[],d=this._traceData.parentMap[a]||{};return b(d,function(a){c.push(a)}),c},a.getModuleLoad=function(a){return this._traceData.loads[a]},a.getBundles=function(a,c){c=c||{},c[a]=!0;var d=this,e=d._traceData.parentMap,f=e[a];if(!f)return[a];var g=[];return b(f,function(a,b){c[a]||(g=g.concat(d.getBundles(a,c)))}),g},a._allowModuleExecution={},a.allowModuleExecution=function(a){var b=this;return b.normalize(a).then(function(a){b._allowModuleExecution[a]=!0})};var d=a.normalize;a.normalize=function(a,b){var c=d.apply(this,arguments);if(b){var e=this._traceData.parentMap;return c.then(function(a){return e[a]||(e[a]={}),e[a][b]=!0,a})}return c};var e=function(){return a.newModule({})},f={traceur:!0,babel:!0},g=function(a){return f[a.name]||this._allowModuleExecution[a.name]},h=[].map||function(a){for(var b=[],c=0,d=this.length;d>c;c++)b.push(a(this[c]));return b},i=/import [\s\S]*?["'](.+)["']/g,j=/export .+ from ["'](.+)["']/g,k=/(^|[^\\])(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/gm,l=/(?:("|')[^\1\\\n\r]*(?:\\.[^\1\\\n\r]*)*\1|`[^`]*`)/g,m=a.instantiate;a.instantiate=function(a){function b(b){var c=d.preventModuleExecution&&!g.call(d,a),f=b?b.deps:a.metadata.deps;return Promise.all(h.call(f,function(b){return d.normalize(b,a.name)})).then(function(d){return a.metadata.deps=f,a.metadata.dependencies=d,c?{deps:f,execute:e}:b})}this._traceData.loads[a.name]=a;var d=this,f=Promise.resolve(m.apply(this,arguments));return f.then(function(d){if(!d){var e=c(a.source);a.metadata.deps=e}return b(d)})};var n=a.transpile;a.transpile=function(a){var b=a.metadata.transpiledSource;return b?(delete a.metadata.transpiledSource,Promise.resolve(b)):n.apply(this,arguments)},a.eachModule=function(a){for(var b in this._loader.modules)a.call(this,b,this.get(b))}}function u(a){function b(a){if(("json"===a.metadata.format||!a.metadata.format)&&c.test(a.source))try{return JSON.parse(a.source)}catch(b){return warn("Error parsing "+a.address+":",b),{}}}var c=/^[\s\n\r]*[\{\[]/,d=/\.json$/i,e=/\.js$/i;a._extensions.push(u);var f=a.locate;a.locate=function(a){return f.apply(this,arguments).then(function(b){return d.test(a.name)?b.replace(e,""):b})};var g=function(a,b,c){var d=a.jsonOptions&&a.jsonOptions.transform;return d?d.call(a,b,c):c};if(o){var h=a.translate;return void(a.translate=function(a){var c=a.metadata.address||a.address;if(d.test(c)&&-1===a.name.indexOf("!")){var e=b(a);if(e)return e=g(this,a,e),"define([], function(){\n return "+JSON.stringify(e)+"\n});"}return h.call(this,a)})}var i=a.instantiate;return a.instantiate=function(a){var c,d=this;return c=b(a),c&&(c=g(d,a,c),a.metadata.format="json",a.metadata.execute=function(){return c}),i.call(d,a)},a}function v(a){a._extensions.push(v),a.getEnv=function(){var a=(this.env||"").split("-");return a[1]||this.env},a.getPlatform=function(){var a=(this.env||"").split("-");return 2===a.length?a[0]:void 0},a.isEnv=function(a){return this.getEnv()===a},a.isPlatform=function(a){return this.getPlatform()===a}}a.set("@loader",a.newModule({"default":a,__useDefault:!0})),a.config({map:{"@loader/@loader":"@loader","@steal/@steal":"@steal"}});var w,x,y,z=function(){var b=arguments,c=function(){var a,c=[];d(b,function(b){f(b)?c.push(z.System["import"](t(b))):"function"==typeof b&&(a=b)});var e=Promise.all(c);return a?e.then(function(b){return a&&a.apply(null,b)}):e};return a.isEnv("production")?c():w.then(c,c)};a.set("@steal",a.newModule({"default":z,__useDefault:!0})),z.System=z.loader=a,z.parseURI=j,z.joinURIs=k,z.normalize=t,z.relativeURI=l;var A=function(a){a._extensions&&a._extensions.push(A),a.ext={};var b=a.normalize,c=/\.(\w+)!?$/;a.normalize=function(d,e,f,g){if(g)return b.apply(this,arguments);var h=d.match(c);if(h){var i="!"===d[d.length-1],j=h[1];e&&a.configMain!==d&&".js"===h[0]?d=d.substr(0,d.lastIndexOf(".")):a.ext[j]&&(d=d+(i?"":"!")+a.ext[j])}return b.call(this,d,e,f)}};A(a);var B=function(a){a._extensions&&a._extensions.push(B);var b=a.normalize,c=/@.+#.+/;a.normalize=function(a,d,e,f){var g,h,i=a.length-1;return"/"===a[i]&&(g=a.substring(0,i).lastIndexOf("/"),h=a.substring(g+1,i),c.test(h)&&(h=h.substr(h.lastIndexOf("#")+1)),a+=h),b.call(this,a,d,e,f)}};B(a);var C=function(a){var b=function(a,b){var c=this;return Promise.resolve(c.normalize(a,b)).then(function(a){return c.locate({name:a,metadata:{}})}).then(function(a){return".js"===a.substr(a.length-3)&&(a=a.substr(0,a.length-3)),a})},c=function(a,b){for(var c=b.split("/"),d=a.split("/"),e=[];c.length&&d.length&&c[0]==d[0];)c.shift(),d.shift();for(var f=0;fi;i++)h.push(b.call(this,g[i].name,a.name));return Promise.all(h).then(function(b){for(var d=g.length-1;d>=0;d--)a.source=a.source.substr(0,g[d].start)+g[d].postLocate(b[d])+a.source.substr(g[d].end,a.source.length);return f.call(c,a)})}};"undefined"!=typeof a&&C(a),"undefined"!=typeof a&&b(a);var D=function(a){function b(){document.removeEventListener("DOMContentLoaded",b,!1),window.removeEventListener("load",b,!1),c()}function c(){for(var b=document.getElementsByTagName("script"),c=0;c-1&&!c.env)&&this.config({env:i+"-production"}),(this.isEnv("production")||this.loadBundles)&&P.call(this),U.stealPath.set.call(this,h,c)}}};d(U,function(a,b){a.order?S.splice(a.order,0,b):S.push(b)}),E(a,S,U),z.config=function(a){return"string"==typeof a?this.loader[a]:void this.loader.config(a)},"undefined"!=typeof a&&v(a);var V=function(a){var b={},d=/Url$/,e=a.split("?"),f=e.shift(),g=e.join("?"),h=g.split("&"),i=f.split("/");i.pop(),i.join("/");if(h.length&&h[0].length)for(var j,k=0;k1){var m=c(l[0]);m=m.replace(d,"URL"),b[m]=l.slice(1).join("=")}}return b},W=function(a){var b={},e=/Url$/;b.stealURL=a.src,d(a.attributes,function(a){var d=c(0===a.nodeName.indexOf("data-")?a.nodeName.replace("data-",""):a.nodeName);d=d.replace(e,"URL"),b[d]=""===a.value?!0:a.value});var f=a.innerHTML;return/\S/.test(f)&&(b.mainSource=f),g(V(a.src),b)},X=function(){return new Promise(function(a,b){function c(b){var d=b.target||event.target;if(d.src&&f.test(d.src)){for(var g=0;g1?Promise.all(a):a[0]}var b=arguments,c=this.System;return w||(c.main||(c.main="@empty"),z.startup()),w.then(a)},z.setContextual=m.call(a.setContextual,a),z.isEnv=m.call(a.isEnv,a),z.isPlatform=m.call(a.isPlatform,a),z};if("undefined"!=typeof System&&b(System),o&&!q)require("steal-systemjs"),a.steal=v(System),a.steal.System=System,a.steal.dev=require("./ext/dev.js"),steal.clone=u,module.exports=a.steal,a.steal.addSteal=b;else{var w=a.steal;a.steal=v(System),a.steal.startup(w&&"object"==typeof w&&w).then(null,function(a){if("undefined"!=typeof console){var b=console,c=b.error?"error":"log";b[c](a,a.stack)}}),a.steal.clone=u,a.steal.addSteal=b}}("undefined"==typeof window?"undefined"==typeof global?this:global:window); \ No newline at end of file +!function(a){"object"==typeof exports?module.exports=a():"function"==typeof define&&define.amd?define(a):"undefined"!=typeof window?window.Promise=a():"undefined"!=typeof global?global.Promise=a():"undefined"!=typeof self&&(self.Promise=a())}(function(){var a;return function b(a,c,d){function e(g,h){if(!c[g]){if(!a[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);throw new Error("Cannot find module '"+g+"'")}var j=c[g]={exports:{}};a[g][0].call(j.exports,function(b){var c=a[g][1][b];return e(c?c:b)},j,j.exports,b,a,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g=0&&(n.splice(b,1),l("Handled previous rejection ["+a.id+"] "+e.formatObject(a.value)))}function h(a,b){m.push(a,b),null===o&&(o=d(i,0))}function i(){for(o=null;m.length>0;)m.shift()(m.shift())}var j,k=c,l=c;"undefined"!=typeof console&&(j=console,k="undefined"!=typeof j.error?function(a){j.error(a)}:function(a){j.log(a)},l="undefined"!=typeof j.info?function(a){j.info(a)}:function(a){j.log(a)}),a.onPotentiallyUnhandledRejection=function(a){h(f,a)},a.onPotentiallyUnhandledRejectionHandled=function(a){h(g,a)},a.onFatalRejection=function(a){h(b,a.value)};var m=[],n=[],o=null;return a}})}("function"==typeof a&&a.amd?a:function(a){c.exports=a(b)})},{"../env":5,"../format":6}],5:[function(b,c,d){!function(a){"use strict";a(function(a){function b(){return"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)}function c(){return"function"==typeof MutationObserver&&MutationObserver||"function"==typeof WebKitMutationObserver&&WebKitMutationObserver}function d(a){function b(){var a=c;c=void 0,a()}var c,d=document.createTextNode(""),e=new a(b);e.observe(d,{characterData:!0});var f=0;return function(a){c=a,d.data=f^=1}}var e,f="undefined"!=typeof setTimeout&&setTimeout,g=function(a,b){return setTimeout(a,b)},h=function(a){return clearTimeout(a)},i=function(a){return f(a,0)};if(b())i=function(a){return process.nextTick(a)};else if(e=c())i=d(e);else if(!f){var j=a,k=j("vertx");g=function(a,b){return k.setTimer(b,a)},h=k.cancelTimer,i=k.runOnLoop||k.runOnContext}return{setTimer:g,clearTimer:h,asap:i}})}("function"==typeof a&&a.amd?a:function(a){c.exports=a(b)})},{}],6:[function(b,c,d){!function(a){"use strict";a(function(){function a(a){var c="object"==typeof a&&null!==a&&(a.stack||a.message)?a.stack||a.message:b(a);return a instanceof Error?c:c+" (WARNING: non-Error used)"}function b(a){var b=String(a);return"[object Object]"===b&&"undefined"!=typeof JSON&&(b=c(a,b)),b}function c(a,b){try{return JSON.stringify(a)}catch(c){return b}}return{formatError:a,formatObject:b,tryStringify:c}})}("function"==typeof a&&a.amd?a:function(a){c.exports=a()})},{}],7:[function(b,c,d){!function(a){"use strict";a(function(){return function(a){function b(a,b){this._handler=a===t?b:c(a)}function c(a){function b(a){e.resolve(a)}function c(a){e.reject(a)}function d(a){e.notify(a)}var e=new v;try{a(b,c,d)}catch(f){c(f)}return e}function d(a){return I(a)?a:new b(t,new w(q(a)))}function e(a){return new b(t,new w(new z(a)))}function f(){return _}function g(){return new b(t,new v)}function h(a,b){var c=new v(a.receiver,a.join().context);return new b(t,c)}function i(a){return k(S,null,a)}function j(a,b){return k(N,a,b)}function k(a,c,d){function e(b,e,g){g.resolved||l(d,f,b,a(c,e,b),g)}function f(a,b,c){k[a]=b,0===--j&&c.become(new y(k))}for(var g,h="function"==typeof c?e:f,i=new v,j=d.length>>>0,k=new Array(j),m=0;m0?b(c,f.value,e):(e.become(f),m(a,c+1,f))}else b(c,d,e)}function m(a,b,c){for(var d=b;dc&&a._unreport()}}function o(a){return"object"!=typeof a||null===a?e(new TypeError("non-iterable passed to race()")):0===a.length?f():1===a.length?d(a[0]):p(a)}function p(a){var c,d,e,f=new v;for(c=0;c0||"function"!=typeof b&&0>e)return new this.constructor(t,d);var f=this._beget(),g=f._handler;return d.chain(g,d.receiver,a,b,c),f},b.prototype["catch"]=function(a){return this.then(void 0,a)},b.prototype._beget=function(){return h(this._handler,this.constructor)},b.all=i,b.race=o,b._traverse=j,b._visitRemaining=m,t.prototype.when=t.prototype.become=t.prototype.notify=t.prototype.fail=t.prototype._unreport=t.prototype._report=T,t.prototype._state=0,t.prototype.state=function(){return this._state},t.prototype.join=function(){for(var a=this;void 0!==a.handler;)a=a.handler;return a},t.prototype.chain=function(a,b,c,d,e){this.when({resolver:a,receiver:b,fulfilled:c,rejected:d,progress:e})},t.prototype.visit=function(a,b,c,d){this.chain(Y,a,b,c,d)},t.prototype.fold=function(a,b,c,d){this.when(new H(a,b,c,d))},R(t,u),u.prototype.become=function(a){a.fail()};var Y=new u;R(t,v),v.prototype._state=0,v.prototype.resolve=function(a){this.become(q(a))},v.prototype.reject=function(a){this.resolved||this.become(new z(a))},v.prototype.join=function(){if(!this.resolved)return this;for(var a=this;void 0!==a.handler;)if(a=a.handler,a===this)return this.handler=C();return a},v.prototype.run=function(){var a=this.consumers,b=this.handler;this.handler=this.handler.join(),this.consumers=void 0;for(var c=0;cf;f++)if(e=b.loads[f],e.name==c)return A.assert("loading"==e.status||"loaded"==e.status,"loading or loaded"),e;return e=a(c),b.loads.push(e),d(b,e),e})}function d(a,b){e(a,b,B.resolve().then(function(){return a.loaderObj.locate({name:b.name,metadata:b.metadata})}))}function e(a,b,c){f(a,b,c.then(function(c){return"loading"==b.status?(b.address=c,a.loaderObj.fetch({name:b.name,metadata:b.metadata,address:c})):void 0}))}function f(a,b,d){d.then(function(d){return"loading"==b.status?B.resolve(a.loaderObj.translate({name:b.name,metadata:b.metadata,address:b.address,source:d})).then(function(c){return"loading"==b.status?(b.source=c,a.loaderObj.instantiate({name:b.name,metadata:b.metadata,address:b.address,source:c})):void 0}).then(function(c){if("loading"==b.status){if(void 0===c)return b.address=b.address||"",b.isDeclarative=!0,a.loaderObj.transpile(b).then(function(a){var c=__global.System,d=c.register;c.register=function(a,c,d){"string"!=typeof a&&(d=c,c=a),b.declare=d,b.depsList=c},__eval(a,__global,b),c.register=d});if("object"!=typeof c)throw TypeError("Invalid instantiate return value");b.depsList=c.deps||[],b.execute=c.execute,b.isDeclarative=!1}}).then(function(){if("loading"==b.status){b.dependencies=[];for(var d=b.depsList,e=[],f=0,g=d.length;g>f;f++)(function(d,f){e.push(c(a,d,b.name,b.address).then(function(a){if(b.dependencies[f]={key:d,value:a.name},"linked"!=a.status)for(var c=b.linkSets.concat([]),e=0,g=c.length;g>e;e++)i(c[e],a)}))})(d[f],f);return B.all(e)}}).then(function(){if("loading"==b.status){A.assert("loading"==b.status,"is loading"),b.status="loaded";for(var a=b.linkSets.concat([]),c=0,d=a.length;d>c;c++)k(a[c],b)}}):void 0})["catch"](function(a){b.status="failed",b.exception=a;for(var c=b.linkSets.concat([]),d=0,e=c.length;e>d;d++)l(c[d],b,a);A.assert(0==b.linkSets.length,"linkSets not removed")})}function g(b){return function(c,g){var i=b.loader,j=b.moduleName,k=b.step;if(i.modules[j])throw new TypeError('"'+j+'" already exists in the module table');for(var l,m=0,n=i.loads.length;n>m;m++)if(i.loads[m].name==j)return l=i.loads[m],"translate"!=k||l.source||(l.address=b.moduleAddress,f(i,l,B.resolve(b.moduleSource))),l.linkSets[0].done.then(function(){c(l)});var o=a(j);o.metadata=b.moduleMetadata;var p=h(i,o);i.loads.push(o),c(p.done),"locate"==k?d(i,o):"fetch"==k?e(i,o,B.resolve(b.moduleAddress)):(A.assert("translate"==k,"translate step"),o.address=b.moduleAddress,f(i,o,B.resolve(b.moduleSource)))}}function h(a,b){var c={loader:a,loads:[],startingLoad:b,loadingCount:0};return c.done=new B(function(a,b){c.resolve=a,c.reject=b}),i(c,b),c}function i(a,b){A.assert("loading"==b.status||"loaded"==b.status,"loading or loaded on link set");for(var c=0,d=a.loads.length;d>c;c++)if(a.loads[c]==b)return;a.loads.push(b),b.linkSets.push(a),"loaded"!=b.status&&a.loadingCount++;for(var e=a.loader,c=0,d=b.dependencies.length;d>c;c++){var f=b.dependencies[c].value;if(!e.modules[f])for(var g=0,h=e.loads.length;h>g;g++)if(e.loads[g].name==f){i(a,e.loads[g]);break}}}function j(a){var b=!1;try{p(a,function(c,d){l(a,c,d),b=!0})}catch(c){l(a,null,c),b=!0}return b}function k(a,b){if(A.assert("loaded"==b.status||"linked"==b.status,"loaded or linked"),a.loadingCount--,!(a.loadingCount>0)){var c=a.startingLoad;if(a.loader.loaderObj.execute===!1){for(var d=[].concat(a.loads),e=0,f=d.length;f>e;e++){var b=d[e];b.module=b.isDeclarative?{name:b.name,module:F({}),evaluated:!0}:{module:F({})},b.status="linked",m(a.loader,b)}return a.resolve(c)}var g=j(a);g||(A.assert(0==a.loads.length,"loads cleared"),a.resolve(c))}}function l(a,b,c){var d=a.loader;a.loads[0].name!=b.name&&(c=w(c,'Error loading "'+b.name+'" from "'+a.loads[0].name+'" at '+(a.loads[0].address||"")+"\n")),c=w(c,'Error loading "'+b.name+'" at '+(b.address||"")+"\n");for(var e=a.loads.concat([]),f=0,g=e.length;g>f;f++){var b=e[f];d.loaderObj.failed=d.loaderObj.failed||[],-1==C.call(d.loaderObj.failed,b)&&d.loaderObj.failed.push(b);var h=C.call(b.linkSets,a);if(A.assert(-1!=h,"link not present"),b.linkSets.splice(h,1),0==b.linkSets.length){var i=C.call(a.loader.loads,b);-1!=i&&a.loader.loads.splice(i,1)}}a.reject(c)}function m(a,b){if(a.loaderObj.trace){a.loaderObj.loads||(a.loaderObj.loads={});var c={};b.dependencies.forEach(function(a){c[a.key]=a.value}),a.loaderObj.loads[b.name]={name:b.name,deps:b.dependencies.map(function(a){return a.key}),depMap:c,address:b.address,metadata:b.metadata,source:b.source,kind:b.isDeclarative?"declarative":"dynamic"}}b.name&&(A.assert(!a.modules[b.name],"load not in module table"),a.modules[b.name]=b.module);var d=C.call(a.loads,b);-1!=d&&a.loads.splice(d,1);for(var e=0,f=b.linkSets.length;f>e;e++)d=C.call(b.linkSets[e].loads,b),-1!=d&&b.linkSets[e].loads.splice(d,1);b.linkSets.splice(0,b.linkSets.length)}function n(a,b,c){if(c[a.groupIndex]=c[a.groupIndex]||[],-1==C.call(c[a.groupIndex],a)){c[a.groupIndex].push(a);for(var d=0,e=b.length;e>d;d++)for(var f=b[d],g=0;g=0;g--){for(var h=d[g],i=0;if;f++){var h=d.importers[f];if(!h.locked){var i=C.call(h.dependencies,d);h.setters[i](e)}}return d.locked=!1,b});d.setters=f.setters,d.execute=f.execute;for(var g=0,h=a.dependencies.length;h>g;g++){var i=a.dependencies[g].value,j=c.modules[i];if(!j)for(var k=0;kf;f++){var h=e[f];if(h&&-1==C.call(b,h)&&(d=v(h,b,c)))return d=w(d,"Error evaluating "+h.name+"\n")}if(a.failed)return new Error("Module failed execution.");if(!a.evaluated)return a.evaluated=!0,d=t(a),d?a.failed=!0:Object.preventExtensions&&Object.preventExtensions(a.module),a.execute=void 0,d}}function w(a,b){return a instanceof Error?a.message=b+a.message:a=b+a,a}function x(a){if("object"!=typeof a)throw new TypeError("Options must be an object");a.normalize&&(this.normalize=a.normalize),a.locate&&(this.locate=a.locate),a.fetch&&(this.fetch=a.fetch),a.translate&&(this.translate=a.translate),a.instantiate&&(this.instantiate=a.instantiate),this._loader={loaderObj:this,loads:[],modules:{},importPromises:{},moduleRecords:{}},D(this,"global",{get:function(){return __global}})}function y(){}function z(a,b,c){var d=a._loader.importPromises;return d[b]=c.then(function(a){return d[b]=void 0,a},function(a){throw d[b]=void 0,a})}var A,B=__global.Promise||require("when/es6-shim/Promise");__global.console?(A=__global.console,A.assert=A.assert||function(){}):A={assert:function(){}};var C=Array.prototype.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1},D=$__Object$defineProperty,E=0;x.prototype={constructor:x,define:function(a,b,c){if(this._loader.importPromises[a])throw new TypeError("Module is already loading.");return z(this,a,new B(g({step:"translate",loader:this._loader,moduleName:a,moduleMetadata:c&&c.metadata||{},moduleSource:b,moduleAddress:c&&c.address})))},"delete":function(a){var b=this._loader;return delete b.importPromises[a],delete b.moduleRecords[a],b.modules[a]?delete b.modules[a]:!1},get:function(a){return this._loader.modules[a]?(u(this._loader.modules[a],[],this),this._loader.modules[a].module):void 0},has:function(a){return!!this._loader.modules[a]},"import":function(a,c){var d=this;return B.resolve(d.normalize(a,c&&c.name,c&&c.address)).then(function(a){var e=d._loader;return e.modules[a]?(u(e.modules[a],[],e._loader),e.modules[a].module):e.importPromises[a]||z(d,a,b(e,a,c||{}).then(function(b){return delete e.importPromises[a],s(e,b)}))})},load:function(a,c){return this._loader.modules[a]?(u(this._loader.modules[a],[],this._loader),B.resolve(this._loader.modules[a].module)):this._loader.importPromises[a]||z(this,a,b(this._loader,a,{}))},module:function(b,c){var d=a();d.address=c&&c.address;var e=h(this._loader,d),g=B.resolve(b),i=this._loader,j=e.done.then(function(){return s(i,d)});return f(i,d,g),j},newModule:function(a){if("object"!=typeof a)throw new TypeError("Expected object");var b,c=new y;if(Object.getOwnPropertyNames&&null!=a)b=Object.getOwnPropertyNames(a);else{b=[];for(var d in a)b.push(d)}for(var e=0;e=6?(delete c.optional,delete c.whitelist,delete c.blacklist,c.presets||c.plugins||(c.presets=["es2015-no-commonjs","react","stage-0"],c.plugins=["transform-es2015-modules-systemjs"])):(c.modules="system",c.blacklist||(c.blacklist=["react"]));var e=b.transform(a.source,c).code;return e+"\n//# sourceURL="+a.address+"!eval"}var f=__global;a.prototype.transpiler="babel",a.prototype.transpile=function(a){var d=this;return d.transpilerHasRun||(f.traceur&&!d.has("traceur")&&d.set("traceur",b(d,"traceur")),f.babel&&!d.has("babel")&&d.set("babel",b(d,"babel")),d.transpilerHasRun=!0),d["import"](d.transpiler).then(function(b){return b.__useDefault&&(b=b["default"]),'var __moduleAddress = "'+a.address+'";'+(b.Compiler?c:e).call(d,a,b)})},a.prototype.instantiate=function(a){var c=this;return Promise.resolve(c.normalize(c.transpiler)).then(function(d){return a.name===d?{deps:[],execute:function(){var d=f.System,e=f.Reflect.Loader;return __eval("(function(require,exports,module){"+a.source+"})();",f,a),f.System=d,f.Reflect.Loader=e,b(c,a.name)}}:void 0})}}(__global.LoaderPolyfill),function(){function a(a){var b=String(a).replace(/^\s+|\s+$/g,"").match(/^([^:\/?#]+:)?(\/\/(?:[^:@\/?#]*(?::[^:@\/?#]*)?@)?(([^:\/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/);return b?{href:b[0]||"",protocol:b[1]||"",authority:b[2]||"",host:b[3]||"",hostname:b[4]||"",port:b[5]||"",pathname:b[6]||"",search:b[7]||"",hash:b[8]||""}:null}function b(a){var b=[];return a.replace(/^(\.\.?(\/|$))+/,"").replace(/\/(\.(\/|$))+/g,"/").replace(/\/\.\.$/,"/../").replace(/\/?[^\/]*/g,function(a){"/.."===a?b.pop():b.push(a)}),b.join("").replace(/^\//,"/"===a.charAt(0)?"/":"")}function c(c,d){return g&&(d=d.replace(/\\/g,"/")),d=a(d||""),c=a(c||""),d&&c?(d.protocol||c.protocol)+(d.protocol||d.authority?d.authority:c.authority)+b(d.protocol||d.authority||"/"===d.pathname.charAt(0)?d.pathname:d.pathname?(c.authority&&!c.pathname?"/":"")+c.pathname.slice(0,c.pathname.lastIndexOf("/")+1)+d.pathname:c.pathname)+(d.protocol||d.authority||d.pathname?d.search:d.search||c.search)+d.hash:null}var d,e="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,f="undefined"!=typeof window&&!e,g="undefined"!=typeof process&&!!process.platform.match(/^win/),h=__global.Promise||require("when/es6-shim/Promise");if("undefined"!=typeof XMLHttpRequest)d=function(a,b,c){function d(){b(f.responseText)}function e(){c(f.statusText+": "+a||"XHR error")}var f=new XMLHttpRequest,g=!0,h=!1;if(!("withCredentials"in f)){var i=/^(\w+:)?\/\/([^\/]+)/.exec(a);i&&(g=i[2]===window.location.host,i[1]&&(g&=i[1]===window.location.protocol))}g||"undefined"==typeof XDomainRequest||(f=new XDomainRequest,f.onload=d,f.onerror=e,f.ontimeout=e,f.onprogress=function(){},f.timeout=0,h=!0),f.onreadystatechange=function(){4===f.readyState&&(200===f.status||0==f.status&&f.responseText?d():e())},f.open("GET",a,!0),h&&setTimeout(function(){f.send()},0),f.send(null)};else if("undefined"!=typeof require){var i;d=function(a,b,c){if("file:"!=a.substr(0,5))throw"Only file URLs of the form file: allowed running in Node.";return i=i||require("fs"),a=a.substr(5),g&&(a=a.replace(/\//g,"\\")),i.readFile(a,function(a,d){return a?c(a):void b(d+"")})}}else{if("function"!=typeof fetch)throw new TypeError("No environment fetch API available.");d=function(a,b,c){fetch(a).then(function(a){return a.text()}).then(function(a){b(a)}).then(null,function(a){c(a)})}}var j=function(a){function b(b){if(a.call(this,b||{}),"undefined"!=typeof location&&location.href){var c=__global.location.href.split("#")[0].split("?")[0];this.baseURL=c.substring(0,c.lastIndexOf("/")+1)}else{if("undefined"==typeof process||!process.cwd)throw new TypeError("No environment baseURL");this.baseURL="file:"+process.cwd()+"/",g&&(this.baseURL=this.baseURL.replace(/\\/g,"/"))}this.paths={"*":"*.js"}}return b.__proto__=null!==a?a:Function.prototype,b.prototype=$__Object$create(null!==a?a.prototype:null),$__Object$defineProperty(b.prototype,"constructor",{value:b}),$__Object$defineProperty(b.prototype,"global",{get:function(){return f?window:e?self:__global},enumerable:!1}),$__Object$defineProperty(b.prototype,"strict",{get:function(){return!0},enumerable:!1}),$__Object$defineProperty(b.prototype,"normalize",{value:function(a,b,c){if("string"!=typeof a)throw new TypeError("Module name must be a string");var d=a.split("/");if(0==d.length)throw new TypeError("No module name provided");var e=0,f=!1,g=0;if("."==d[0]){if(e++,e==d.length)throw new TypeError('Illegal module name "'+a+'"');f=!0}else{for(;".."==d[e];)if(e++,e==d.length)throw new TypeError('Illegal module name "'+a+'"');e&&(f=!0),g=e}for(var h=e;h2)throw new TypeError("Only one wildcard in a path is permitted");if(1==h.length){if(d==g&&g.length>e.length){e=g;break}}else d.substr(0,h[0].length)==h[0]&&d.substr(d.length-h[1].length)==h[1]&&(e=g,b=d.substr(h[0].length,d.length-h[1].length-h[0].length))}var i=this.paths[e];return b&&(i=i.replace("*",b)),f&&(i=i.replace(/#/g,"%23")),c(this.baseURL,i)},enumerable:!1,writable:!0}),$__Object$defineProperty(b.prototype,"fetch",{value:function(a){var b=this;return new h(function(e,f){d(c(b.baseURL,a.address),function(a){e(a)},f)})},enumerable:!1,writable:!0}),b}(__global.LoaderPolyfill),k=new j;"object"==typeof exports&&(module.exports=k),__global.System=k}()}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope?self:global),function(a){a.upgradeSystemLoader=function(){function b(a){var b=String(a).replace(/^\s+|\s+$/g,"").match(/^([^:\/?#]+:)?(\/\/(?:[^:@\/?#]*(?::[^:@\/?#]*)?@)?(([^:\/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/);return b?{href:b[0]||"",protocol:b[1]||"",authority:b[2]||"",host:b[3]||"",hostname:b[4]||"",port:b[5]||"",pathname:b[6]||"",search:b[7]||"",hash:b[8]||""}:null}function d(a,c){function d(a){var b=[];return a.replace(/^(\.\.?(\/|$))+/,"").replace(/\/(\.(\/|$))+/g,"/").replace(/\/\.\.$/,"/../").replace(/\/?[^\/]*/g,function(a){"/.."===a?b.pop():b.push(a)}),b.join("").replace(/^\//,"/"===a.charAt(0)?"/":"")}return u&&(c=c.replace(/\\/g,"/")),c=b(c||""),a=b(a||""),c&&a?(c.protocol||a.protocol)+(c.protocol||c.authority?c.authority:a.authority)+d(c.protocol||c.authority||"/"===c.pathname.charAt(0)?c.pathname:c.pathname?(a.authority&&!a.pathname?"/":"")+a.pathname.slice(0,a.pathname.lastIndexOf("/")+1)+c.pathname:a.pathname)+(c.protocol||c.authority||c.pathname?c.search:c.search||a.search)+c.hash:null}function e(b){var c={};if(("object"==typeof b||"function"==typeof b)&&b!==a)if(v)for(var d in b)"default"!==d&&f(c,b,d);else g(c,b);return c["default"]=b,x(c,"__useDefault",{value:!0}),c}function f(a,b,c){try{var d;(d=Object.getOwnPropertyDescriptor(b,c))&&x(a,c,d)}catch(e){return a[c]=b[c], +!1}}function g(a,b,c){var d=b&&b.hasOwnProperty;for(var e in b)(!d||b.hasOwnProperty(e))&&(c&&e in a||(a[e]=b[e]));return a}function h(a){function b(a,b){b._extensions=[];for(var c=0,d=a.length;d>c;c++)a[c](b)}var c=a["import"];a["import"]=function(a,b){return c.call(this,a,b).then(function(a){return a.__useDefault?a["default"]:a})},a.set("@empty",a.newModule({})),"undefined"!=typeof require&&(a._nodeRequire=require),a.config=function(a){for(var b in a){var c=a[b];if("object"!=typeof c||c instanceof Array)this[b]=c;else{this[b]=this[b]||{};for(var d in c)this[b][d]=c[d]}}};var e;if("undefined"==typeof window&&"undefined"==typeof WorkerGlobalScope)e="file:"+process.cwd()+"/",u&&(e=e.replace(/\\/g,"/"));else if("undefined"==typeof window)e=a.global.location.href;else if(e=document.baseURI,!e){var f=document.getElementsByTagName("base");e=f[0]&&f[0].href||window.location.href}var g,i=a.locate;a.locate=function(a){return this.baseURL!=g&&(g=d(e,this.baseURL),"/"!=g.substr(g.length-1,1)&&(g+="/"),this.baseURL=g),Promise.resolve(i.call(this,a))},a._extensions=a._extensions||[],a._extensions.push(h),a.clone=function(){var a=this,c=new LoaderPolyfill(y);return c.baseURL=a.baseURL,c.paths={"*":"*.js"},b(a._extensions,c),c}}function i(a){function b(a,b){var c=a.meta&&a.meta[b.name];if(c)for(var d in c)b.metadata[d]=b.metadata[d]||c[d]}var c=/^(\s*\/\*.*\*\/|\s*\/\/[^\n]*|\s*"[^"]+"\s*;?|\s*'[^']+'\s*;?)+/,d=/\/\*.*\*\/|\/\/[^\n]*|"[^"]+"\s*;?|'[^']+'\s*;?/g;a.meta={},a._extensions=a._extensions||[],a._extensions.push(i);var e=a.locate;a.locate=function(a){return b(this,a),e.call(this,a)};var f=a.translate;a.translate=function(a){var e=a.source.match(c);if(e)for(var g=e[0].match(d),h=0;hc;c++)-1==t.call(b,a[c])&&b.push(a[c]);return b}function g(b,c,d,e){"string"!=typeof b&&(e=d,d=c,c=b,b=null),r=!0;var f;if(f="boolean"==typeof d?{declarative:!1,deps:c,execute:e,executingRequire:d}:{declarative:!0,deps:c,declare:d},b)f.name=b,b in a.defined||(a.defined[b]=f);else if(f.declarative){if(q)throw new TypeError("Multiple anonymous System.register calls in the same module file.");q=f}}function h(a){if(!a.register){a.register=g,a.defined||(a.defined={});var b=a.onScriptLoad;a.onScriptLoad=function(a){b(a),q&&(a.metadata.entry=q),r&&(a.metadata.format=a.metadata.format||"register",a.metadata.registered=!0)}}}function i(a,b,c){if(c[a.groupIndex]=c[a.groupIndex]||[],-1==t.call(c[a.groupIndex],a)){c[a.groupIndex].push(a);for(var d=0,e=a.normalizedDeps.length;e>d;d++){var f=a.normalizedDeps[d],g=b.defined[f];if(g&&!g.evaluated){var h=a.groupIndex+(g.declarative!=a.declarative);if(void 0===g.groupIndex||g.groupIndex=0;f--){for(var g=d[f],h=0;he;e++){var g=c.importers[e];if(!g.locked){var h=t.call(g.dependencies,c);g.setters[h](d)}}return c.locked=!1,b});if(c.setters=e.setters,c.execute=e.execute,!c.setters||!c.execute)throw new TypeError("Invalid System.register form for "+a.name);for(var f=0,g=a.normalizedDeps.length;g>f;f++){var h,i=a.normalizedDeps[f],j=b.defined[i],k=u[i];k?h=k.exports:j&&!j.declarative?h=j.module.exports&&j.module.exports.__esModule?j.module.exports:j.esModule:j?(m(j,b),k=j.module,h=k.exports):h=b.get(i),k&&k.importers?(k.importers.push(c),c.dependencies.push(k)):c.dependencies.push(null),c.setters[f]&&c.setters[f](h)}}}function n(a,b){var c,d=b.defined[a];if(d)d.declarative?p(a,[],b):d.evaluated||o(d,b),c=d.module.exports;else if(c=b.get(a),!c)throw new Error("Unable to load dependency "+a+".");return(!d||d.declarative)&&c&&c.__useDefault?c["default"]:c}function o(a,b){if(!a.module){var c={},d=a.module={exports:c,id:a.name};if(!a.executingRequire)for(var f=0,g=a.normalizedDeps.length;g>f;f++){var h=a.normalizedDeps[f],i=b.defined[h];i&&o(i,b)}a.evaluated=!0;var j=a.execute.call(b.global,function(c){for(var d=0,e=a.deps.length;e>d;d++)if(a.deps[d]==c)return n(a.normalizedDeps[d],b);throw new TypeError("Module "+c+" not declared as a dependency.")},c,d);j&&(d.exports=j),c=d.exports,c&&(c.__esModule||c instanceof v)?a.esModule=c:a.esmExports&&c!==b.global?a.esModule=e(c):a.esModule={"default":c}}}function p(a,b,c){var d=c.defined[a];if(d&&!d.evaluated&&d.declarative){b.push(a);for(var e=0,f=d.normalizedDeps.length;f>e;e++){var g=d.normalizedDeps[e];-1==t.call(b,g)&&(c.defined[g]?p(g,b,c):c.get(g))}d.evaluated||(d.evaluated=!0,d.module.execute.call(c.global))}}"undefined"==typeof t&&(t=Array.prototype.indexOf),("undefined"==typeof c||"undefined"!=typeof document&&!document.addEventListener)&&(c=eval),a._extensions=a._extensions||[],a._extensions.push(j);a.__exec=b;var q,r;h(a);var u={},v=a.newModule({}).constructor,w=/System\.register/,x=a.fetch;a.fetch=function(a){var b=this;return h(b),b.defined[a.name]?(a.metadata.format="defined",""):(q=null,r=!1,x.call(b,a))};var y=a.translate;a.translate=function(a){return this.register=g,this.__exec=b,a.metadata.deps=a.metadata.deps||[],Promise.resolve(y.call(this,a)).then(function(b){return(a.metadata.init||a.metadata.exports)&&(a.metadata.format=a.metadata.format||"global"),("register"==a.metadata.format||!a.metadata.format&&a.source.match(w))&&(a.metadata.format="register"),b})};var z=a.instantiate;a.instantiate=function(a){var b,c=this;if(c.defined[a.name])b=c.defined[a.name],b.deps=b.deps.concat(a.metadata.deps);else if(a.metadata.entry)b=a.metadata.entry;else if(a.metadata.execute)b={declarative:!1,deps:a.metadata.deps||[],esModule:null,execute:a.metadata.execute,executingRequire:a.metadata.executingRequire};else if("register"==a.metadata.format){q=null,r=!1;var d=c.global.System;if(c.global.System=c,c.__exec(a),c.global.System=d,q&&(b=q),!b&&s.defined[a.name]&&(b=s.defined[a.name]),!r&&!a.metadata.registered)throw new TypeError(a.name+" detected as System.register but didn't execute.")}if(!b&&"es6"!=a.metadata.format)return{deps:a.metadata.deps,execute:function(){return c.newModule({})}};if(!b)return z.call(this,a);c.defined[a.name]=b,b.deps=f(b.deps),b.name=a.name,b.esmExports=a.metadata.esmExports!==!1;for(var e=[],g=0,h=b.deps.length;h>g;g++)e.push(Promise.resolve(c.normalize(b.deps[g],a.name)));return Promise.all(e).then(function(d){return b.normalizedDeps=d,{deps:b.deps,execute:function(){k(a.name,c),p(a.name,[],c),c.defined[a.name]=void 0;var d=b.module.exports;return b.declarative||(d=b.esModule),c.newModule(d)}}})}}function k(a){function b(a,b,c){if(a.meta[b]={format:"global"},i&&!a.paths[b])try{a.paths[b]=require.resolve(c||b)}catch(d){}}a._extensions.push(k);var c,d,e=/(^\s*|[}\);\n]\s*)(import\s+(['"]|(\*\s+as\s+)?[^"'\(\)\n;]+\s+from\s+['"]|\{)|export\s+\*\s+from\s+["']|export\s+(\{|default|function|class|var|const|let|async\s+function))/,f=/\$traceurRuntime\s*\./,g=/babelHelpers\s*\./,h=!0,i="undefined"!=typeof process&&"undefined"!=typeof require&&require.resolve,j=a.locate;a.locate=function(a){var c=this;return h&&("traceur"==c.transpiler?(b(c,"traceur","traceur/bin/traceur.js"),c.meta.traceur.exports="traceur",b(c,"traceur-runtime","traceur/bin/traceur-runtime.js")):"babel"==c.transpiler&&(b(c,"babel","babel-core/browser.js"),b(c,"babel-runtime","babel-core/external-helpers.js")),h=!1),j.call(c,a)};var l=a.translate;a.translate=function(a){var b=this;return l.call(b,a).then(function(h){if("es6"==a.metadata.format||!a.metadata.format&&h.match(e))return a.metadata.format="es6",h;if("register"==a.metadata.format){if(!b.global.$traceurRuntime&&a.source.match(f))return b["import"]("traceur-runtime").then(function(){return h});if(!b.global.babelHelpers&&a.source.match(g))return b["import"]("babel/external-helpers").then(function(){return h})}return"traceur"==b.transpiler?Promise.all([c||(c=b.normalize(b.transpiler)),d||(d=b.normalize(b.transpiler+"-runtime"))]).then(function(b){return a.name==b[0]||a.name==b[1]?"(function() { var curSystem = System; "+h+"\nSystem = curSystem; })();":h}):h})}}function l(a){function b(a,b){for(var c=a.split(".");c.length;)b=b[c.shift()];return b}function c(a){function c(a){for(var b={},c=0,d=a.length;d>c;c++)b[a[c]]=!0;return b}if(!a.has("@@global-helpers")){var d,e,f=a.global.hasOwnProperty,g={};a.set("@@global-helpers",a.newModule({prepareGlobal:function(b,h,i){for(var j=0;jb.index)return!0;return!1}d.lastIndex=e.lastIndex=f.lastIndex=0;var c,g=[],h=[],i=[];if(a.length/a.split("\n").length<200){for(;c=f.exec(a);)h.push([c.index,c.index+c[0].length]);for(;c=e.exec(a);)b(h,c)||i.push([c.index,c.index+c[0].length])}for(;c=d.exec(a);)if(!b(h,c)&&!b(i,c)){var j=c[1].substr(1,c[1].length-2);if(j.match(/"|'/))continue;g.push(j)}return g}a._extensions.push(m);var c=/(?:^\uFEFF?|[^$_a-zA-Z\xA0-\uFFFF.])(exports\s*(\[['"]|\.)|module(\.exports|\['exports'\]|\["exports"\])\s*(\[['"]|[=,\.]))/,d=/(?:^\uFEFF?|[^$_a-zA-Z\xA0-\uFFFF."'])require\s*\(\s*("[^"\\]*(?:\\.[^"\\]*)*"|'[^'\\]*(?:\\.[^'\\]*)*')\s*\)/g,e=/(^|[^\\])(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/gm,f=/("[^"\\\n\r]*(\\.[^"\\\n\r]*)*"|'[^'\\\n\r]*(\\.[^'\\\n\r]*)*')/g,g=a.instantiate;a.instantiate=function(e){return e.metadata.format||(c.lastIndex=0,d.lastIndex=0,(d.exec(e.source)||c.exec(e.source))&&(e.metadata.format="cjs")),"cjs"==e.metadata.format&&(e.metadata.deps=e.metadata.deps?e.metadata.deps.concat(b(e.source)):b(e.source),e.metadata.executingRequire=!0,e.metadata.execute=function(b,c,d){var f=(e.address||"").split("/");f.pop(),f=f.join("/"),s._nodeRequire&&(f=f.substr(5));var g=(a.global._g={global:a.global,exports:c,module:d,require:b,__filename:s._nodeRequire?e.address.substr(5):e.address,__dirname:f},a.global.define);a.global.define=void 0;var h={name:e.name,source:"(function() {\n(function(global, exports, module, require, __filename, __dirname){\n"+e.source+"\n}).call(_g.exports, _g.global, _g.exports, _g.module, _g.require, _g.__filename, _g.__dirname);})();",address:e.address};a.__exec(h),a.global.define=g,a.global._g=void 0}),g.call(this,e)}}function n(a){function b(a,b){function c(a,b){for(var c=0;cb)return!0;return!1}for(var d,e=[];d=m.exec(a);)e.push([d.index,d.index+d[0].length]);a=a.replace(k,function(a,b,d,f,g,h){return c(e,h+1)?a:""});var f=a.match(r),g=(f[1].split(",")[b]||"require").replace(s,""),h=u[g]||(u[g]=new RegExp(p+g+q,"g"));h.lastIndex=0;for(var d,i=[];d=h.exec(a);)i.push(d[2]||d[3]);return i}function c(a,b,d,e){var f=this;if("object"==typeof a&&!(a instanceof Array))return c.apply(null,Array.prototype.splice.call(arguments,1,arguments.length-1));if(!(a instanceof Array)){if("string"==typeof a){var g=f.get(a);return g.__useDefault?g["default"]:g}throw new TypeError("Invalid require")}Promise.all(a.map(function(a){return f["import"](a,e)})).then(function(a){b&&b.apply(null,a)},d)}function d(a,b,d){return function(e,f,g){return"string"==typeof e?b(e):c.call(d,e,f,g,{name:a})}}function e(a){function c(c,e,f){"string"!=typeof c&&(f=e,e=c,c=null),e instanceof Array||(f=e,e=["require","exports","module"]),"function"!=typeof f&&(f=function(a){return function(){return a}}(f)),void 0===e[e.length-1]&&e.pop();var g,h,i;if(-1!=(g=t.call(e,"require"))){e.splice(g,1);var j=f.toString();e=e.concat(b(j,g))}-1!=(h=t.call(e,"exports"))&&e.splice(h,1),-1!=(i=t.call(e,"module"))&&e.splice(i,1);var k={deps:e,execute:function(b,c,j){for(var k=[],m=0;mc;c++)"/"===a[c]&&b++;return b}function d(a,b,c){return c+a.substr(b)}function e(a,e,f){var g,h,i,j,k=0,l=0;if(e)for(var m in f.map){var n=f.map[m];if("object"==typeof n&&b(e,m)&&(i=c(m),!(l>=i)))for(var o in n)b(a,o)&&(j=c(o),k>=j||(g=o,k=j,h=m,l=i))}if(g)return d(a,g.length,f.map[h][g]);for(var m in f.map){var n=f.map[m];if("string"==typeof n&&b(a,m)){var j=c(m);k>=j||(g=m,k=j)}}return g?d(a,g.length,f.map[g]):a}a.map=a.map||{},a._extensions.push(o);var f=a.normalize;a.normalize=function(a,b,c){var d=this;d.map||(d.map={});var g=!1;return"/"==a.substr(a.length-1,1)&&(g=!0,a+="#"),Promise.resolve(f.call(d,a,b,c)).then(function(a){if(a=e(a,b,d),g){var c=a.split("/");c.pop();var f=c.pop();c.push(f),c.push(f),a=c.join("/")}return a})}}function p(a){"undefined"==typeof t&&(t=Array.prototype.indexOf),a._extensions.push(p);var b=a.normalize;a.normalize=function(a,c,d){var e,f=this;return c&&-1!=(e=c.indexOf("!"))&&(c=c.substr(0,e)),Promise.resolve(b.call(f,a,c,d)).then(function(a){var b=a.lastIndexOf("!");if(-1!=b){var e=a.substr(0,b),g=a.substr(b+1)||e.substr(e.lastIndexOf(".")+1);return new Promise(function(a){a(f.normalize(g,c,d))}).then(function(a){return g=a,f.normalize(e,c,d,!0)}).then(function(a){return a+"!"+g})}return a})};var c=a.locate;a.locate=function(a){var b=this,d=a.name;if(this.defined&&this.defined[d])return c.call(this,a);var e=d.lastIndexOf("!");if(-1!=e){var f=d.substr(e+1);a.name=d.substr(0,e);var g=b.pluginLoader||b;return g["import"](f).then(function(){var c=g.get(f);return c=c["default"]||c,c.build===!1&&b.pluginLoader&&(a.metadata.build=!1),a.metadata.plugin=c,a.metadata.pluginName=f,a.metadata.pluginArgument=a.name,a.metadata.buildType=c.buildType||"js",c.locate?c.locate.call(b,a):Promise.resolve(b.locate(a)).then(function(a){return a.replace(/\.js$/,"")})})}return c.call(this,a)};var d=a.fetch;a.fetch=function(a){var b=this;return a.metadata.build===!1&&b.pluginLoader?"":a.metadata.plugin&&a.metadata.plugin.fetch&&!a.metadata.pluginFetchCalled?(a.metadata.pluginFetchCalled=!0,a.metadata.plugin.fetch.call(b,a,d)):d.call(b,a)};var e=a.translate;a.translate=function(a){var b=this;return a.metadata.plugin&&a.metadata.plugin.translate?Promise.resolve(a.metadata.plugin.translate.call(b,a)).then(function(c){return"string"==typeof c&&(a.source=c),e.call(b,a)}):e.call(b,a)};var f=a.instantiate;a.instantiate=function(a){var b=this;return a.metadata.plugin&&a.metadata.plugin.instantiate?Promise.resolve(a.metadata.plugin.instantiate.call(b,a)).then(function(c){return c?c:f.call(b,a)}):a.metadata.plugin&&a.metadata.plugin.build===!1?(a.metadata.format="defined",a.metadata.deps.push(a.metadata.pluginName),a.metadata.execute=function(){return b.newModule({})},f.call(b,a)):f.call(b,a)}}function q(a){"undefined"==typeof t&&(t=Array.prototype.indexOf),a._extensions.push(q),a.bundles=a.bundles||{};var b=a.fetch;a.fetch=function(a){var c=this;if(c.trace)return b.call(this,a);c.bundles||(c.bundles={});for(var d in c.bundles)if(-1!=t.call(c.bundles[d],a.name))return Promise.resolve(c.normalize(d)).then(function(a){return c.bundles[a]=c.bundles[a]||c.bundles[d],c.meta=c.meta||{},c.meta[a]=c.meta[a]||{},c.meta[a].bundle=!0,c.load(a)}).then(function(){return""});return b.call(this,a)}}function r(a){a.depCache=a.depCache||{},a._extensions.push(r);var b=a.locate;a.locate=function(a){var c=this;c.depCache||(c.depCache={});var d=c.depCache[a.name];if(d)for(var e=0;eb;b++)if(this[b]===a)return b;return-1},u="undefined"!=typeof process&&!!process.platform.match(/^win/);!function(){var b=a.System;s=a.System=new LoaderPolyfill(b),s.baseURL=b.baseURL,s.paths={"*":"*.js"},s.originalSystem=b}(),s.noConflict=function(){a.SystemJS=s,a.System=s.originalSystem};var v=!0;try{Object.getOwnPropertyDescriptor({a:0},"a")}catch(w){v=!1}var x;!function(){try{Object.defineProperty({},"a",{})&&(x=Object.defineProperty)}catch(a){x=function(a,b,c){try{a[b]=c.value||c.get.call(a)}catch(d){}}}}();var y=a.System.originalSystem;h(s),i(s),j(s),k(s),l(s),m(s),n(s),o(s),p(s),q(s),r(s)};var b,c;!function(){function d(a,c){if(!a.originalErr)for(var d=(a.stack||a.message||a).toString().split("\n"),e=[],f=0;fc;c++)b.call(a[c],a[c],c,a);else for(c in a)a.hasOwnProperty(c)&&b.call(a[c],a[c],c,a);return a},e=function(a,b){var c=[];return d(a,function(a,d){c[d]=b(a,d)}),c},f=function(a){return"string"==typeof a},g=function(a,b){return d(b,function(b,c){a[c]=b}),a},h=function(a){var b=a.lastIndexOf("/");return-1===b&&(b=a.lastIndexOf("\\")),-1!==b?a.substr(0,b):a},i=function(a){return a[a.length-1]},j=function(a){var b=String(a).replace(/^\s+|\s+$/g,"").match(/^([^:\/?#]+:)?(\/\/(?:[^:@]*(?::[^:@]*)?@)?(([^:\/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/);return b?{href:b[0]||"",protocol:b[1]||"",authority:b[2]||"",host:b[3]||"",hostname:b[4]||"",port:b[5]||"",pathname:b[6]||"",search:b[7]||"",hash:b[8]||""}:null},k=function(a,b){function c(a){var b=[];return a.replace(/^(\.\.?(\/|$))+/,"").replace(/\/(\.(\/|$))+/g,"/").replace(/\/\.\.$/,"/../").replace(/\/?[^\/]*/g,function(a){"/.."===a?b.pop():b.push(a)}),b.join("").replace(/^\//,"/"===a.charAt(0)?"/":"")}return b=j(b||""),a=j(a||""),b&&a?(b.protocol||a.protocol)+(b.protocol||b.authority?b.authority:a.authority)+c(b.protocol||b.authority||"/"===b.pathname.charAt(0)?b.pathname:b.pathname?(a.authority&&!a.pathname?"/":"")+a.pathname.slice(0,a.pathname.lastIndexOf("/")+1)+b.pathname:a.pathname)+(b.protocol||b.authority||b.pathname?b.search:b.search||a.search)+b.hash:null},l=function(a,b){for(var c=b.split("/"),d=a.split("/"),e=[];c.length&&d.length&&c[0]==d[0];)c.shift(),d.shift();for(var f=0;fb.index)return!0;return!1}function c(c){for(;d=c.exec(a);)if(!b(f,d)&&!b(g,d)){var h=d[1];e.push(h)}}i.lastIndex=k.lastIndex=j.lastIndex=l.lastIndex=0;var d,e=[],f=[],g=[];if(a.length/a.split("\n").length<200){for(;d=l.exec(a);)f.push([d.index,d.index+d[0].length]);for(;d=k.exec(a);)b(f,d)||g.push([d.index,d.index+d[0].length])}return c(i),c(j),e}a._extensions&&a._extensions.push(s),a._traceData={loads:{},parentMap:{}},a.getDependencies=function(a){var b=this.getModuleLoad(a);return b?b.metadata.dependencies:void 0},a.getDependants=function(a){var c=[],d=this._traceData.parentMap[a]||{};return b(d,function(a){c.push(a)}),c},a.getModuleLoad=function(a){return this._traceData.loads[a]},a.getBundles=function(a,c){c=c||{},c[a]=!0;var d=this,e=d._traceData.parentMap,f=e[a];if(!f)return[a];var g=[];return b(f,function(a,b){c[a]||(g=g.concat(d.getBundles(a,c)))}),g},a._allowModuleExecution={},a.allowModuleExecution=function(a){var b=this;return b.normalize(a).then(function(a){b._allowModuleExecution[a]=!0})};var d=a.normalize;a.normalize=function(a,b){var c=d.apply(this,arguments);if(b){var e=this._traceData.parentMap;return c.then(function(a){return e[a]||(e[a]={}),e[a][b]=!0,a})}return c};var e=function(){return a.newModule({})},f={traceur:!0,babel:!0},g=function(a){return f[a.name]||this._allowModuleExecution[a.name]},h=[].map||function(a){for(var b=[],c=0,d=this.length;d>c;c++)b.push(a(this[c]));return b},i=/import [\s\S]*?["'](.+)["']/g,j=/export .+ from ["'](.+)["']/g,k=/(^|[^\\])(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/gm,l=/(?:("|')[^\1\\\n\r]*(?:\\.[^\1\\\n\r]*)*\1|`[^`]*`)/g,m=a.instantiate;a.instantiate=function(a){function b(b){var c=d.preventModuleExecution&&!g.call(d,a),f=b?b.deps:a.metadata.deps;return Promise.all(h.call(f,function(b){return d.normalize(b,a.name)})).then(function(d){return a.metadata.deps=f,a.metadata.dependencies=d,c?{deps:f,execute:e}:b})}this._traceData.loads[a.name]=a;var d=this,f=Promise.resolve(m.apply(this,arguments));return f.then(function(d){if(!d){var e=c(a.source);a.metadata.deps=e}return b(d)})};var n=a.transpile;a.transpile=function(a){var b=a.metadata.transpiledSource;return b?(delete a.metadata.transpiledSource,Promise.resolve(b)):n.apply(this,arguments)},a.eachModule=function(a){for(var b in this._loader.modules)a.call(this,b,this.get(b))}}function u(a){function b(a){if(("json"===a.metadata.format||!a.metadata.format)&&c.test(a.source))try{return JSON.parse(a.source)}catch(b){return warn("Error parsing "+a.address+":",b),{}}}var c=/^[\s\n\r]*[\{\[]/,d=/\.json$/i,e=/\.js$/i;a._extensions.push(u);var f=a.locate;a.locate=function(a){return f.apply(this,arguments).then(function(b){return d.test(a.name)?b.replace(e,""):b})};var g=function(a,b,c){var d=a.jsonOptions&&a.jsonOptions.transform;return d?d.call(a,b,c):c};if(o){var h=a.translate;return void(a.translate=function(a){var c=a.metadata.address||a.address;if(d.test(c)&&-1===a.name.indexOf("!")){var e=b(a);if(e)return e=g(this,a,e),"define([], function(){\n return "+JSON.stringify(e)+"\n});"}return h.call(this,a)})}var i=a.instantiate;return a.instantiate=function(a){var c,d=this;return c=b(a),c&&(c=g(d,a,c),a.metadata.format="json",a.metadata.execute=function(){return c}),i.call(d,a)},a}function v(a){a._extensions.push(v),a.getEnv=function(){var a=(this.env||"").split("-");return a[1]||this.env},a.getPlatform=function(){var a=(this.env||"").split("-");return 2===a.length?a[0]:void 0},a.isEnv=function(a){return this.getEnv()===a},a.isPlatform=function(a){return this.getPlatform()===a}}a.set("@loader",a.newModule({"default":a,__useDefault:!0})),a.config({map:{"@loader/@loader":"@loader","@steal/@steal":"@steal"}});var w,x,y,z=function(){var b=arguments,c=function(){var a,c=[];d(b,function(b){f(b)?c.push(z.System["import"](t(b))):"function"==typeof b&&(a=b)});var e=Promise.all(c);return a?e.then(function(b){return a&&a.apply(null,b)}):e};return a.isEnv("production")?c():w.then(c,c)};a.set("@steal",a.newModule({"default":z,__useDefault:!0})),z.System=z.loader=a,z.parseURI=j,z.joinURIs=k,z.normalize=t,z.relativeURI=l;var A=function(a){a._extensions&&a._extensions.push(A),a.ext={};var b=a.normalize,c=/\.(\w+)!?$/;a.normalize=function(d,e,f,g){if(g)return b.apply(this,arguments);var h=d.match(c);if(h){var i="!"===d[d.length-1],j=h[1];e&&a.configMain!==d&&".js"===h[0]?d=d.substr(0,d.lastIndexOf(".")):a.ext[j]&&(d=d+(i?"":"!")+a.ext[j])}return b.call(this,d,e,f)}};A(a);var B=function(a){a._extensions&&a._extensions.push(B);var b=a.normalize,c=/@.+#.+/;a.normalize=function(a,d,e,f){var g,h,i=a.length-1;return"/"===a[i]&&(g=a.substring(0,i).lastIndexOf("/"),h=a.substring(g+1,i),c.test(h)&&(h=h.substr(h.lastIndexOf("#")+1)),a+=h),b.call(this,a,d,e,f)}};B(a);var C=function(a){var b=function(a,b){var c=this;return Promise.resolve(c.normalize(a,b)).then(function(a){return c.locate({name:a,metadata:{}})}).then(function(a){return".js"===a.substr(a.length-3)&&(a=a.substr(0,a.length-3)),a})},c=function(a,b){for(var c=b.split("/"),d=a.split("/"),e=[];c.length&&d.length&&c[0]==d[0];)c.shift(),d.shift();for(var f=0;fi;i++)h.push(b.call(this,g[i].name,a.name)); +return Promise.all(h).then(function(b){for(var d=g.length-1;d>=0;d--)a.source=a.source.substr(0,g[d].start)+g[d].postLocate(b[d])+a.source.substr(g[d].end,a.source.length);return f.call(c,a)})}};"undefined"!=typeof a&&C(a),"undefined"!=typeof a&&b(a);var D=function(a){function b(){document.removeEventListener("DOMContentLoaded",b,!1),window.removeEventListener("load",b,!1),c()}function c(){for(var b=document.getElementsByTagName("script"),c=0;c-1&&!c.env)&&this.config({env:i+"-production"}),(this.isEnv("production")||this.loadBundles)&&P.call(this),U.stealPath.set.call(this,h,c)}}};d(U,function(a,b){a.order?S.splice(a.order,0,b):S.push(b)}),E(a,S,U),z.config=function(a){return"string"==typeof a?this.loader[a]:void this.loader.config(a)},"undefined"!=typeof a&&v(a);var V=function(a){var b={},d=/Url$/,e=a.split("?"),f=e.shift(),g=e.join("?"),h=g.split("&"),i=f.split("/");i.pop(),i.join("/");if(h.length&&h[0].length)for(var j,k=0;k1){var m=c(l[0]);m=m.replace(d,"URL"),b[m]=l.slice(1).join("=")}}return b},W=function(a){var b={},e=/Url$/;b.stealURL=a.src,d(a.attributes,function(a){var d=c(0===a.nodeName.indexOf("data-")?a.nodeName.replace("data-",""):a.nodeName);d=d.replace(e,"URL"),b[d]=""===a.value?!0:a.value});var f=a.innerHTML;return/\S/.test(f)&&(b.mainSource=f),g(V(a.src),b)},X=function(){return new Promise(function(a,b){function c(b){var d=b.target||event.target;if(d.src&&f.test(d.src)){for(var g=0;g1?Promise.all(a):a[0]}var b=arguments,c=this.System;return w||(c.main||(c.main="@empty"),z.startup()),w.then(a)},z.setContextual=m.call(a.setContextual,a),z.isEnv=m.call(a.isEnv,a),z.isPlatform=m.call(a.isPlatform,a),z};if("undefined"!=typeof System&&b(System),o&&!q)require("steal-systemjs"),a.steal=v(System),a.steal.System=System,a.steal.dev=require("./ext/dev.js"),steal.clone=u,module.exports=a.steal,a.steal.addSteal=b;else{var w=a.steal;a.steal=v(System),a.steal.startup(w&&"object"==typeof w&&w).then(null,function(a){if("undefined"!=typeof console){var b=console,c=b.error?"error":"log";b[c](a,a.stack)}}),a.steal.clone=u,a.steal.addSteal=b}}("undefined"==typeof window?"undefined"==typeof global?this:global:window); \ No newline at end of file