forked from stealjs/steal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
steal.production.js
9 lines (8 loc) · 73.9 KB
/
steal.production.js
1
2
3
4
5
6
7
8
9
/*
* steal v1.5.2
*
* Copyright (c) 2017 Bitovi; Licensed MIT
*/
!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(){return function a(b,c,d){function e(g,h){if(!c[g]){if(!b[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:{}};b[g][0].call(j.exports,function(a){var c=b[g][1][a];return e(c||a)},j,j.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){var d=a("../lib/decorators/unhandledRejection"),e=d(a("../lib/Promise"));b.exports="undefined"!=typeof global?global.Promise=e:"undefined"!=typeof self?self.Promise=e:e},{"../lib/Promise":2,"../lib/decorators/unhandledRejection":4}],2:[function(a,b,c){!function(a){"use strict";a(function(a){return a("./makePromise")({scheduler:new(a("./Scheduler"))(a("./env").asap)})})}(function(c){b.exports=c(a)})},{"./Scheduler":3,"./env":5,"./makePromise":7}],3:[function(a,b,c){!function(a){"use strict";a(function(){function a(a){this._async=a,this._running=!1,this._queue=this,this._queueLen=0,this._afterQueue={},this._afterQueueLen=0;var b=this;this.drain=function(){b._drain()}}return a.prototype.enqueue=function(a){this._queue[this._queueLen++]=a,this.run()},a.prototype.afterQueue=function(a){this._afterQueue[this._afterQueueLen++]=a,this.run()},a.prototype.run=function(){this._running||(this._running=!0,this._async(this.drain))},a.prototype._drain=function(){for(var a=0;a<this._queueLen;++a)this._queue[a].run(),this._queue[a]=void 0;for(this._queueLen=0,this._running=!1,a=0;a<this._afterQueueLen;++a)this._afterQueue[a].run(),this._afterQueue[a]=void 0;this._afterQueueLen=0},a})}(function(a){b.exports=a()})},{}],4:[function(a,b,c){!function(a){"use strict";a(function(a){function b(a){throw a}function c(){}var d=a("../env").setTimer,e=a("../format");return function(a){function f(a){a.handled||(n.push(a),k("Potentially unhandled rejection ["+a.id+"] "+e.formatError(a.value)))}function g(a){var b=n.indexOf(a);b>=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=void 0!==j.error?function(a){j.error(a)}:function(a){j.log(a)},l=void 0!==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(c){b.exports=c(a)})},{"../env":5,"../format":6}],5:[function(a,b,c){!function(a){"use strict";a(function(a){var b,c="undefined"!=typeof setTimeout&&setTimeout,d=function(a,b){return setTimeout(a,b)},e=function(a){return clearTimeout(a)},f=function(a){return c(a,0)};if(function(){return"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)}())f=function(a){return process.nextTick(a)};else if(b=function(){return"function"==typeof MutationObserver&&MutationObserver||"function"==typeof WebKitMutationObserver&&WebKitMutationObserver}())f=function(a){function b(){var a=c;c=void 0,a()}var c,d=document.createTextNode("");new a(b).observe(d,{characterData:!0});var e=0;return function(a){c=a,d.data=e^=1}}(b);else if(!c){var g=a,h=g("vertx");d=function(a,b){return h.setTimer(b,a)},e=h.cancelTimer,f=h.runOnLoop||h.runOnContext}return{setTimer:d,clearTimer:e,asap:f}})}(function(c){b.exports=c(a)})},{}],6:[function(a,b,c){!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(a){return b}}return{formatError:a,formatObject:b,tryStringify:c}})}(function(a){b.exports=a()})},{}],7:[function(a,b,c){!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(a){c(a)}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){return new b(t,new v(a.receiver,a.join().context))}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;m<d.length&&!i.resolved;++m)g=d[m],void 0!==g||m in d?l(d,h,m,g,i):--j;return 0===j&&i.become(new y(k)),new b(t,i)}function l(a,b,c,d,e){if(J(d)){var f=r(d),g=f.state();0===g?f.fold(b,c,void 0,e):g>0?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;d<a.length;++d)n(q(a[d]),c)}function n(a,b){if(a!==b){var c=a.state();0===c?a.visit(a,void 0,a._unreport):c<0&&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;c<a.length;++c)if(void 0!==(d=a[c])||c in a){if(e=q(d),0!==e.state()){f.become(e),m(a,c+1,e);break}e.visit(f,f.resolve,f.reject)}return new b(t,f)}function q(a){return I(a)?a._handler.join():J(a)?s(a):new y(a)}function r(a){return I(a)?a._handler.join():s(a)}function s(a){try{var b=a.then;return"function"==typeof b?new x(b,a):new y(a)}catch(a){return new z(a)}}function t(){}function u(){}function v(a,c){b.createContext(this,c),this.consumers=void 0,this.receiver=a,this.handler=void 0,this.resolved=!1}function w(a){this.handler=a}function x(a,b){v.call(this),U.enqueue(new F(a,b,this))}function y(a){b.createContext(this),this.value=a}function z(a){b.createContext(this),this.id=++Y,this.value=a,this.handled=!1,this.reported=!1,this._report()}function A(a,b){this.rejection=a,this.context=b}function B(a){this.rejection=a}function C(){return new z(new TypeError("Promise cycle"))}function D(a,b){this.continuation=a,this.handler=b}function E(a,b){this.handler=b,this.value=a}function F(a,b,c){this._then=a,this.thenable=b,this.resolver=c}function G(a,b,c,d,e){try{a.call(b,c,d,e)}catch(a){d(a)}}function H(a,b,c,d){this.f=a,this.z=b,this.c=c,this.to=d,this.resolver=X,this.receiver=this}function I(a){return a instanceof b}function J(a){return("object"==typeof a||"function"==typeof a)&&null!==a}function K(a,c,d,e){if("function"!=typeof a)return e.become(c);b.enterContext(c),O(a,c.value,d,e),b.exitContext()}function L(a,c,d,e,f){if("function"!=typeof a)return f.become(d);b.enterContext(d),P(a,c,d.value,e,f),b.exitContext()}function M(a,c,d,e,f){if("function"!=typeof a)return f.notify(c);b.enterContext(d),Q(a,c,e,f),b.exitContext()}function N(a,b,c){try{return a(b,c)}catch(a){return e(a)}}function O(a,b,c,d){try{d.become(q(a.call(c,b)))}catch(a){d.become(new z(a))}}function P(a,b,c,d,e){try{a.call(d,b,c,e)}catch(a){e.become(new z(a))}}function Q(a,b,c,d){try{d.notify(a.call(c,b))}catch(a){d.notify(a)}}function R(a,b){b.prototype=W(a.prototype),b.prototype.constructor=b}function S(a,b){return b}function T(){}var U=a.scheduler,V=function(){return"undefined"!=typeof process&&null!==process&&"function"==typeof process.emit?function(a,b){return"unhandledRejection"===a?process.emit(a,b.value,b):process.emit(a,b)}:"undefined"!=typeof self&&"function"==typeof CustomEvent?function(a,b,c){var d=!1;try{d=new c("unhandledRejection")instanceof c}catch(a){}return d?function(a,d){var e=new c(a,{detail:{reason:d.value,key:d},bubbles:!1,cancelable:!0});return!b.dispatchEvent(e)}:a}(T,self,CustomEvent):T}(),W=Object.create||function(a){function b(){}return b.prototype=a,new b};b.resolve=d,b.reject=e,b.never=f,b._defer=g,b._handler=q,b.prototype.then=function(a,b,c){var d=this._handler,e=d.join().state();if("function"!=typeof a&&e>0||"function"!=typeof b&&e<0)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(X,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 X=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)===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;c<a.length;++c)b.when(a[c])},v.prototype.become=function(a){this.resolved||(this.resolved=!0,this.handler=a,void 0!==this.consumers&&U.enqueue(this),void 0!==this.context&&a._report(this.context))},v.prototype.when=function(a){this.resolved?U.enqueue(new D(a,this.handler)):void 0===this.consumers?this.consumers=[a]:this.consumers.push(a)},v.prototype.notify=function(a){this.resolved||U.enqueue(new E(a,this))},v.prototype.fail=function(a){var b=void 0===a?this.context:a;this.resolved&&this.handler.join().fail(b)},v.prototype._report=function(a){this.resolved&&this.handler.join()._report(a)},v.prototype._unreport=function(){this.resolved&&this.handler.join()._unreport()},R(t,w),w.prototype.when=function(a){U.enqueue(new D(a,this))},w.prototype._report=function(a){this.join()._report(a)},w.prototype._unreport=function(){this.join()._unreport()},R(v,x),R(t,y),y.prototype._state=1,y.prototype.fold=function(a,b,c,d){L(a,b,this,c,d)},y.prototype.when=function(a){K(a.fulfilled,this,a.receiver,a.resolver)};var Y=0;R(t,z),z.prototype._state=-1,z.prototype.fold=function(a,b,c,d){d.become(this)},z.prototype.when=function(a){"function"==typeof a.rejected&&this._unreport(),K(a.rejected,this,a.receiver,a.resolver)},z.prototype._report=function(a){U.afterQueue(new A(this,a))},z.prototype._unreport=function(){this.handled||(this.handled=!0,U.afterQueue(new B(this)))},z.prototype.fail=function(a){this.reported=!0,V("unhandledRejection",this),b.onFatalRejection(this,void 0===a?this.context:a)},A.prototype.run=function(){this.rejection.handled||this.rejection.reported||(this.rejection.reported=!0,V("unhandledRejection",this.rejection)||b.onPotentiallyUnhandledRejection(this.rejection,this.context))},B.prototype.run=function(){this.rejection.reported&&(V("rejectionHandled",this.rejection)||b.onPotentiallyUnhandledRejectionHandled(this.rejection))},b.createContext=b.enterContext=b.exitContext=b.onPotentiallyUnhandledRejection=b.onPotentiallyUnhandledRejectionHandled=b.onFatalRejection=T;var Z=new t,$=new b(t,Z);return D.prototype.run=function(){this.handler.join().when(this.continuation)},E.prototype.run=function(){var a=this.handler.consumers;if(void 0!==a)for(var b,c=0;c<a.length;++c)b=a[c],M(b.progress,this.value,this.handler,b.receiver,b.resolver)},F.prototype.run=function(){function a(a){d.resolve(a)}function b(a){d.reject(a)}function c(a){d.notify(a)}var d=this.resolver;G(this._then,this.thenable,a,b,c)},H.prototype.fulfilled=function(a){this.f.call(this.c,this.z,a,this.to)},H.prototype.rejected=function(a){this.to.reject(a)},H.prototype.progress=function(a){this.to.notify(a)},b}})}(function(a){b.exports=a()})},{}]},{},[1])(1)}),function(__global){function __eval(__source,__global,__load){try{eval('(function() { var __moduleName = "'+(__load.name||"").replace('"','"')+'"; '+__source+" \n }).call(__global);")}catch(a){throw"SyntaxError"!=a.name&&"TypeError"!=a.name||(a.message="Evaluating "+(__load.name||load.address)+"\n\t"+a.message),a}}__global.$__Object$getPrototypeOf=Object.getPrototypeOf||function(a){return a.__proto__};var $__Object$defineProperty;!function(){try{Object.defineProperty({},"a",{})&&($__Object$defineProperty=Object.defineProperty)}catch(a){$__Object$defineProperty=function(a,b,c){try{a[b]=c.value||c.get.call(a)}catch(a){}}}}(),__global.$__Object$create=Object.create||function(a,b){function c(){}if(c.prototype=a,"object"==typeof b)for(prop in b)b.hasOwnProperty(prop)&&(c[prop]=b[prop]);return new c},function(){function a(a){return{status:"loading",name:a,linkSets:[],dependencies:[],metadata:{}}}function b(a,b,c){return new B(g({step:c.address?"fetch":"locate",loader:a,moduleName:b,moduleMetadata:c&&c.metadata||{},moduleSource:c.source,moduleAddress:c.address}))}function c(b,c,e,f){return new B(function(a,d){a(b.loaderObj.normalize(c,e,f))}).then(function(c){var e;if(b.modules[c])return e=a(c),e.status="linked",e.module=b.modules[c],e;for(var f=0,g=b.loads.length;f<g;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){if("loading"==b.status)return b.address=c,a.loaderObj.fetch({name:b.name,metadata:b.metadata,address:c})}))}function f(a,b,d){d.then(function(d){if("loading"==b.status)return B.resolve(a.loaderObj.translate({name:b.name,metadata:b.metadata,address:b.address,source:d})).then(function(c){if("loading"==b.status)return b.source=c,a.loaderObj.instantiate({name:b.name,metadata:b.metadata,address:b.address,source:c})}).then(function(c){if("loading"==b.status){if(void 0===c)return b.address=b.address||"<Anonymous Module "+ ++E+">",b.isDeclarative=!0,a.loaderObj.transpile(b).then(function(a){var c=__global.System,d=c.register;c.register=function(a,c,d){var e=d,f=c;"string"!=typeof a&&(e=f,f=a),b.declare=e,b.depsList=f},__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;f<g;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;e<g;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;c<d;c++)k(a[c],b)}})}).catch(function(a){b.status="failed",b.exception=a;for(var c=b.linkSets.concat([]),d=0,e=c.length;d<e;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,l=b.moduleMetadata.importingModuleName;if(i.modules[j])throw new TypeError('"'+j+'" already exists in the module table');for(var m,n,o=0,p=i.loads.length;o<p;o++)if(i.loads[o].name==j){if(m=i.loads[o],"translate"!=k||m.source||(m.address=b.moduleAddress,f(i,m,B.resolve(b.moduleSource))),n=m.linkSets[0],l&&n.loads[l])continue;return n.done.then(function(){c(m)})}var q;m?q=m:(q=a(j),q.metadata=b.moduleMetadata);var r=h(i,q);m||i.loads.push(q),c(r.done),"locate"==k?d(i,q):"fetch"==k?e(i,q,B.resolve(b.moduleAddress)):(A.assert("translate"==k,"translate step"),q.address=b.moduleAddress,f(i,q,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;c<d;c++)if(a.loads[c]==b)return;a.loads.push(b),a.loads[b.name]=!0,b.linkSets.push(a),"loaded"!=b.status&&a.loadingCount++;for(var e=a.loader,c=0,d=b.dependencies.length;c<d;c++){var f=b.dependencies[c].value;if(!e.modules[f])for(var g=0,h=e.loads.length;g<h;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>0)){var c=a.startingLoad;if(!1===a.loader.loaderObj.execute){for(var d=[].concat(a.loads),e=0,f=d.length;e<f;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)}j(a)||(A.assert(0==a.loads.length,"loads cleared"),a.resolve(c))}}function l(a,b,c){var d=a.loader,e=c;a.loads[0].name!=b.name&&(e=w(e,'Error loading "'+b.name+'" from "'+a.loads[0].name+'" at '+(a.loads[0].address||"<unknown>")+"\n")),e=w(e,'Error loading "'+b.name+'" at '+(b.address||"<unknown>")+"\n");for(var f=a.loads.concat([]),g=0,h=f.length;g<h;g++){var b=f[g];d.loaderObj.failed=d.loaderObj.failed||[],-1==C.call(d.loaderObj.failed,b)&&d.loaderObj.failed.push(b);var i=C.call(b.linkSets,a);if(A.assert(-1!=i,"link not present"),b.linkSets.splice(i,1),0==b.linkSets.length){var j=C.call(a.loader.loads,b);-1!=j&&a.loader.loads.splice(j,1)}}a.reject(e)}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;e<f;e++)-1!=(d=C.call(b.linkSets[e].loads,b))&&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;d<e;d++)for(var f=b[d],g=0;g<a.dependencies.length;g++)if(f.name==a.dependencies[g].value){A.assert("loaded"==f.status,"Load in linkSet not loaded!");var h=a.groupIndex+(f.isDeclarative!=a.isDeclarative);if(void 0===f.groupIndex||f.groupIndex<h){if(void 0!==f.groupIndex&&(c[f.groupIndex].splice(C.call(c[f.groupIndex],f),1),0==c[f.groupIndex].length))throw new TypeError("Mixed dependency cycle detected");f.groupIndex=h}n(f,b,c)}}}function o(a,b,c){try{var d=b.execute()}catch(a){return void c(b,a)}if(d&&d instanceof y)return d;c(b,new TypeError("Execution must define a Module instance"))}function p(a,b){var c=a.loader;if(a.loads.length){var d=[],e=a.loads[0];e.groupIndex=0,n(e,a.loads,d);for(var f=e.isDeclarative==d.length%2,g=d.length-1;g>=0;g--){for(var h=d[g],i=0;i<h.length;i++){var j=h[i];if(f)r(j,a.loads,c);else{var k=o(a,j,b);if(!k)return;j.module={name:j.name,module:k},j.status="linked"}m(c,j)}f=!f}}}function q(a,b){var c=b.moduleRecords;return c[a]||(c[a]={name:a,dependencies:[],module:new y,importers:[]})}function r(a,b,c){if(!a.module){var d=a.module=q(a.name,c),e=a.module.module,f=a.declare.call(__global,function(a,b){if(d.locked=!0,"object"==typeof a)for(var c in a)e[c]=a[c];else e[a]=b;for(var f=0,g=d.importers.length;f<g;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;g<h;g++){var i=a.dependencies[g].value,j=c.modules[i];if(!j)for(var k=0;k<b.length;k++)b[k].name==i&&(b[k].module?j=q(i,c):(r(b[k],b,c),j=b[k].module));j.importers?(d.dependencies.push(j),j.importers.push(d)):d.dependencies.push(null),d.setters[g]&&d.setters[g](j.module)}a.status="linked"}}function s(a,b){return A.assert("linked"==b.status,"is linked "+b.name),u(b.module,[],a),b.module.module}function t(a){try{a.execute.call(__global)}catch(a){return a}}function u(a,b,c){var d=v(a,b,c);if(d)throw d}function v(a,b,c){if(!a.evaluated&&a.dependencies){b.push(a);for(var d,e=a.dependencies,f=0,g=e.length;f<g;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){var c=a;return c instanceof Error?c.message=b+c.message:c=b+c,c}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;b<c;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]},get:function(a){if(this._loader.modules[a])return u(this._loader.modules[a],[],this),this._loader.modules[a].module},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)},function(b){return d.defined&&(d.defined[a]=void 0),B.reject(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<b.length;e++)!function(b){D(c,b,{configurable:!1,enumerable:!0,get:function(){return a[b]}})}(b[e]);return Object.preventExtensions&&Object.preventExtensions(c),c},set:function(a,b){if(!(b instanceof y))throw new TypeError("Loader.set("+a+", module) must be a module");this._loader.modules[a]={module:b}},normalize:function(a,b,c){return a},locate:function(a){return a.name},fetch:function(a){throw new TypeError("Fetch not implemented")},translate:function(a){return a.source},instantiate:function(a){}};var F=x.prototype.newModule;"object"==typeof exports&&(module.exports=x),__global.Reflect=__global.Reflect||{},__global.Reflect.Loader=__global.Reflect.Loader||x,__global.Reflect.global=__global.Reflect.global||__global,__global.LoaderPolyfill=x}(),function(a){function b(a,b){return a.newModule({__useDefault:!0,default:o[b]})}function c(a){return"babel"===a?"Babel":a}function d(a,b){var c=this.traceurOptions||{};c.modules="instantiate",c.script=!1,c.sourceMaps="inline",c.filename=a.address,c.inputSourceMap=a.metadata.sourceMap,c.moduleName=!1;var d=new b.Compiler(c),f=e(a.source,d,c.filename);return f+="!eval"}function e(a,b,c){try{return b.compile(a,c)}catch(a){throw a[0]}}function f(){var a=this,b="function"==typeof a.getEnv&&a.getEnv();return p?process.env.BABEL_ENV||process.env.NODE_ENV||b||"development":b||"development"}function g(a){return h(a)?"string"==typeof a?a:a[0]:null}function h(a){return"string"==typeof a||a.length&&"string"==typeof a[0]}function i(a){var b=a||[],c="transform-es2015-modules-systemjs";return-1===b.indexOf(c)&&b.unshift(c),b}function j(a){var b=a||[],c=["es2015-no-commonjs","react","stage-0"];if(b.length)for(var d=c.length-1;d>=0;d-=1){var e=c[d];-1===b.indexOf(e)&&b.unshift(e)}else b=c;return b}function k(a){return(a.version?+a.version.split(".")[0]:6)||6}function l(a,b){var c=this.babelOptions||{};return c.sourceMap="inline",c.filename=a.address,c.code=!0,c.ast=!1,k(b)>=6?(delete c.optional,delete c.whitelist,delete c.blacklist,c.presets=j(c.presets),c.plugins=i(c.plugins)):(c.modules="system",c.blacklist||(c.blacklist=["react"])),c}function m(a){var b=a.types;return{visitor:{Program:function(a,c){a.unshiftContainer("body",[b.exportNamedDeclaration(null,[b.exportSpecifier(b.identifier("true"),b.identifier("__esModule"))])])}}}}function n(a,b){var c=b.Babel||b.babel||b,d=k(c),e=l.call(this,a,c);return Promise.all([q.call(this,c,e),r.call(this,c,e)]).then(function(b){return d>=6&&(e.plugins=[m].concat(b[0]),e.presets=b[1]),c.transform(a.source,e).code+"\n//# sourceURL="+a.address+"!eval"})}var o=__global,p="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process);a.prototype.transpiler="babel",a.prototype.transpile=function(a){var c=this;return c.transpilerHasRun||(o.traceur&&!c.has("traceur")&&c.set("traceur",b(c,"traceur")),o.Babel&&!c.has("babel")&&c.set("babel",b(c,"Babel")),c.transpilerHasRun=!0),c.import(c.transpiler).then(function(b){var e=b;return e.__useDefault&&(e=e.default),(e.Compiler?d:n).call(c,a,e)}).then(function(b){return'var __moduleAddress = "'+a.address+'";'+b})},a.prototype.instantiate=function(a){var d=this;return Promise.resolve(d.normalize(d.transpiler)).then(function(e){if(a.name===e)return{deps:[],execute:function(){var e=o.System,f=o.Reflect.Loader;return __eval("(function(require,exports,module){"+a.source+"})();",o,a),o.System=e,o.Reflect.Loader=f,b(d,c(a.name))}}})};var q=function(){function a(a,d){var e=[];return(d||[]).forEach(function(d){var f=g(d);if(!h(d)||b(a,f))e.push(d);else if(!b(a,f)){var i=this.configMain||"package.json!npm",j=c(f);e.push(this.import(j,{name:i}).then(function(a){var b=a.__esModule?a.default:a;return"string"==typeof d?b:[b,d[1]]}))}},this),Promise.all(e)}function b(a,b){var c=/^(?:babel-plugin-)/;return!!(a.availablePlugins||{})[c.test(b)?b.replace("babel-plugin-",""):b]}function c(a){var b=/\//,c=/^(?:babel-plugin-)/;return b.test(a)||c.test(a)?a:"babel-plugin-"+a}return function(b,c){var d=f.call(this),e=c.env||{},g=[a.call(this,b,c.plugins)];for(var h in e)if(d===h){var i=e[h].plugins||[];g.push(a.call(this,b,i))}return Promise.all(g).then(function(a){var b=[];return a.forEach(function(a){b=b.concat(a)}),b})}}(),r=function(){function a(a,d){var e=[];return(d||[]).forEach(function(d){var f=g(d);if(!h(d)||b(a,f))e.push(d);else if(!b(a,f)){var i=this.configMain||"package.json!npm",j=c(f);e.push(this.import(j,{name:i}).then(function(a){var b=a.__esModule?a.default:a;return"string"==typeof d?b:[b,d[1]]}))}},this),Promise.all(e)}function b(a,b){var c=/^(?:babel-preset-)/;return!!(a.availablePresets||{})[c.test(b)?b.replace("babel-preset-",""):b]}function c(a){var b=/\//,c=/^(?:babel-preset-)/;return b.test(a)||c.test(a)?a:"babel-preset-"+a}return function(b,c){var d=f.call(this),e=c.env||{},g=[a.call(this,b,c.presets)];for(var h in e)if(d===h){var i=e[h].presets||[];g.push(a.call(this,b,i))}return Promise.all(g).then(function(a){var b=[];return a.forEach(function(a){b=b.concat(a)}),b})}}()}(__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){var e=d,f=c;return g&&(e=e.replace(/\\/g,"/")),e=a(e||""),f=a(f||""),e&&f?(e.protocol||f.protocol)+(e.protocol||e.authority?e.authority:f.authority)+b(e.protocol||e.authority||"/"===e.pathname.charAt(0)?e.pathname:e.pathname?(f.authority&&!f.pathname?"/":"")+f.pathname.slice(0,f.pathname.lastIndexOf("/")+1)+e.pathname:f.pathname)+(e.protocol||e.authority||e.pathname?e.search:e.search||f.search)+e.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(){var b=f.statusText+": "+a||"XHR error",d=new Error(b);d.statusCode=f.status,c(d)}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,j=/ENOENT/;d=function(a,b,c){if("file:"!=a.substr(0,5))throw"Only file URLs of the form file: allowed running in Node.";i=i||require("fs");var d=a.substr(5);return g&&(d=d.replace(/\//g,"\\")),i.readFile(d,function(a,d){if(a)return j.test(a.message)&&(a.statusCode=404),c(a);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 k=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==d.length)throw new TypeError('Illegal module name "'+a+'"');f=!0}else{
for(;".."==d[e];)if(++e==d.length)throw new TypeError('Illegal module name "'+a+'"');e&&(f=!0),g=e}for(var h=e;h<d.length;h++){var i=d[h];if(""==i||"."==i||".."==i)throw new TypeError('Illegal module name "'+a+'"')}if(!f)return a;var j=[],k=(b||"").split("/");k.length;return j=j.concat(k.splice(0,k.length-1-g)),j=j.concat(d.splice(e,d.length-e)),j.join("/")},enumerable:!1,writable:!0}),$__Object$defineProperty(b.prototype,"locate",{value:function(a){var b,d=a.name,e="";for(var g in this.paths){var h=g.split("*");if(h.length>2)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),l=new k;"object"==typeof exports&&(module.exports=l),__global.System=l}()}("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){var d=a,e=c;return u&&(e=e.replace(/\\/g,"/")),e=b(e||""),d=b(d||""),e&&d?(e.protocol||d.protocol)+(e.protocol||e.authority?e.authority:d.authority)+function(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)?"/":"")}(e.protocol||e.authority||"/"===e.pathname.charAt(0)?e.pathname:e.pathname?(d.authority&&!d.pathname?"/":"")+d.pathname.slice(0,d.pathname.lastIndexOf("/")+1)+e.pathname:d.pathname)+(e.protocol||e.authority||e.pathname?e.search:e.search||d.search)+e.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,w(c,"__useDefault",{value:!0}),c}function f(a,b,c){try{var d;(d=Object.getOwnPropertyDescriptor(b,c))&&w(a,c,d)}catch(d){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;c<d;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)){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(x);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]}a.meta={},a._extensions=a._extensions||[],a._extensions.push(i);var c=a.locate;a.locate=function(a){return b(this,a),c.call(this,a)};var d=a.translate;a.translate=function(a){var c=a.source.match(/^(\s*\/\*.*\*\/|\s*\/\/[^\n]*|\s*"[^"]+"\s*;?|\s*'[^']+'\s*;?)+/);if(c)for(var e=c[0].match(/\/\*.*\*\/|\/\/[^\n]*|"[^"]+"\s*;?|'[^']+'\s*;?/g),f=0;f<e.length;f++){var g=e[f].length,h=e[f].substr(0,1);if(";"==e[f].substr(g-1,1)&&g--,'"'==h||"'"==h){var i=e[f].substr(1,e[f].length-3),j=i.substr(0,i.indexOf(" "));if(j){var k=i.substr(j.length+1,i.length-j.length-1);a.metadata[j]instanceof Array?a.metadata[j].push(k):a.metadata[j]||(a.metadata[j]=k)}}}return b(this,a),d.call(this,a)}}function j(a){function b(a,b){var e,f=this,g=b,h=a.source.lastIndexOf("\n");-1!=h&&"//# sourceMappingURL="==a.source.substr(h+1,21)&&(e=a.source.substr(h+22,a.source.length-h-22),void 0!==d&&(e=d(a.address,e)));var i=a.metadata&&a.metadata.eval;g=g||f.global,c(a.source,a.address,g,e,i)}function f(a){for(var b=[],c=0,d=a.length;c<d;c++)-1==t.call(b,a[c])&&b.push(a[c]);return b}function g(b,c,d,e){var f=b,g=c,h=d,i=e;"string"!=typeof f&&(i=h,h=g,g=f,f=null),r=!0;var j;if(j="boolean"==typeof h?{declarative:!1,deps:g,execute:i,executingRequire:h}:{declarative:!0,deps:g,declare:h},f)j.name=f,f in a.defined||(a.defined[f]=j);else if(j.declarative){if(q)throw new TypeError("Multiple anonymous System.register calls in the same module file.");q=j}}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;d<e;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<h){if(void 0!==g.groupIndex&&(c[g.groupIndex].splice(t.call(c[g.groupIndex],g),1),0==c[g.groupIndex].length))throw new TypeError("Mixed dependency cycle detected");g.groupIndex=h}i(g,b,c)}}}}function k(a,b){var c=b.defined[a];if(!c.module){c.groupIndex=0;var d=[];i(c,b,d);for(var e=!!c.declarative==d.length%2,f=d.length-1;f>=0;f--){for(var g=d[f],h=0;h<g.length;h++){var j=g[h];e?m(j,b):o(j,b)}e=!e}}}function l(a){return u[a]||(u[a]={name:a,dependencies:[],exports:{},importers:[]})}function m(a,b){if(!a.module){var c=a.module=l(a.name),d=a.module.exports,e=a.declare.call(b.global,function(a,b){c.locked=!0,d[a]=b;for(var e=0,f=c.importers.length;e<f;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;f<g;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)))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;f<g;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;d<e;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;e<f;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))}}void 0===t&&(t=Array.prototype.indexOf),(void 0===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=a.fetch;a.fetch=function(a){var b=this;return h(b),b.defined[a.name]?(a.metadata.format="defined",""):(q=null,r=!1,w.call(b,a))};var x=a.translate;a.translate=function(a){return this.register=g,this.__exec=b,a.metadata.deps=a.metadata.deps||[],Promise.resolve(x.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(/System\.register/))&&(a.metadata.format="register"),b})};var y=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 y.call(this,a);c.defined[a.name]=b,b.deps=f(b.deps),b.name=a.name,b.esmExports=!1!==a.metadata.esmExports;for(var e=[],g=0,h=b.deps.length;g<h;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"},f&&!a.paths[b])try{a.paths[b]=require.resolve(c||b)}catch(a){}}a._extensions.push(k);var c,d,e=!0,f="undefined"!=typeof process&&"undefined"!=typeof require&&require.resolve,g=a.locate;a.locate=function(a){var c=this;return e&&("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-standalone/babel.js"),e=!1),g.call(c,a)};var h=a.translate;a.translate=function(a){var b=this;return h.call(b,a).then(function(e){if("es6"==a.metadata.format||!a.metadata.format&&e.match(/(^\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))/))return a.metadata.format="es6",e;if("register"==a.metadata.format){if(!b.global.$traceurRuntime&&a.source.match(/\$traceurRuntime\s*\./))return b.import("traceur-runtime").then(function(){return e});if(!b.global.babelHelpers&&a.source.match(/babelHelpers\s*\./))return b.import("babel/external-helpers").then(function(){return e})}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; "+e+"\nSystem = curSystem; })();":e}):e})}}function l(a){function b(a,b){for(var c=a.split("."),d=b;c.length;)d=d[c.shift()];return d}function c(a){function c(a){for(var b={},c=0,d=a.length;c<d;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){var j,k,l=b,m=h,n=i;if("object"==typeof l){var o=l;m=o.deps,j=o.globals,n=o.exportName,l=o.moduleName,k=o.require}if(m)for(var p=0;p<m.length;p++){var q=g[m[p]];if(q)for(var r in q)a.global[r]=q[r]}if(j&&k)for(var s in j)a.global[s]=k(j[s]);if(!n&&!1!==n&&!1!==a.inferGlobals){d={},e=c(["indexedDB","sessionStorage","localStorage","clipboardData","frames","webkitStorageInfo","toolbar","statusbar","scrollbars","personalbar","menubar","locationbar","webkitIndexedDB","screenTop","screenLeft"]);for(var t in a.global)if(!e[t]&&(!f||a.global.hasOwnProperty(t)))try{d[t]=a.global[t]}catch(a){e[t]=!0}}},retrieveGlobal:function(c,h,i){var j,k,l={};if(i)j=i.call(a.global);else if(h){var m=h.split(".")[0];j=b(h,a.global),l[m]=a.global[m]}else if(!1!==h&&!1!==a.inferGlobals)for(var n in a.global)e[n]||f&&!a.global.hasOwnProperty(n)||n==a.global||d[n]==a.global[n]||(l[n]=a.global[n],j?j!==a.global[n]&&(k=!0):void 0===j&&(j=a.global[n]));return g[c]=l,k?l:j}}))}}a._extensions.push(l),c(a);var d=a.instantiate;a.instantiate=function(a){var b=this;c(b);var e=a.metadata.exports;if(a.metadata.format||(a.metadata.format="global"),a.metadata.globals)for(var f in a.metadata.globals)a.metadata.deps.push(a.metadata.globals[f]);return"global"==a.metadata.format&&(a.metadata.execute=function(c,d,f){b.get("@@global-helpers").prepareGlobal({require:c,moduleName:f.id,exportName:e,deps:a.metadata.deps,globals:a.metadata.globals}),e&&(a.source+='\nthis["'+e+'"] = '+e+";");var g=b.global.define,c=b.global.require;return b.global.define=void 0,b.global.module=void 0,b.global.exports=void 0,b.__exec(a,b.global),b.global.require=c,b.global.define=g,b.get("@@global-helpers").retrieveGlobal(f.id,e,a.metadata.init)}),d.call(b,a)}}function m(a){function b(a){function b(a,b){for(var c=0;c<a.length;c++)if(a[c][0]<b.index&&a[c][1]>b.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*(\[['"]|[=,\.])|Object.defineProperty\(\s*module\s*,\s*(?:'|")exports(?:'|"))/,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;c<a.length;c++)if(a[c][0]<b&&a[c][1]>b)return!0;return!1}i.lastIndex=j.lastIndex=0;for(var d,e=[],f=[];d=j.exec(a);)e.push([d.index,d.index+d[0].length]);for(;d=i.exec(a);)c(e,d.index+1)||f.push([d.index,d.index+d[0].length]);var g=a.match(p),h=(g[1].split(",")[b]||"require").replace(q,""),k=r[h]||(r[h]=new RegExp(m+h+o,"g"));k.lastIndex=0;for(var l=[];d=k.exec(a);)if(!c(e,d.index)&&!c(f,d.index)){var n=d[1].substr(1,d[1].length-2);n&&l.push(n)}return l}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){var g=c,h=e,i=f;"string"!=typeof g&&(i=h,h=g,g=null),h instanceof Array||(i=h,h=["require","exports","module"]),"function"!=typeof i&&(i=function(a){return function(){return a}}(i)),void 0===h[h.length-1]&&h.pop();var j,k,m;if(-1!=(j=t.call(h,"require"))){h.splice(j,1);var n=i.toString();h=h.concat(b(n,j))}-1!=(k=t.call(h,"exports"))&&h.splice(k,1),-1!=(m=t.call(h,"module"))&&h.splice(m,1);var o={deps:h,execute:function(b,c,e){for(var f=[],g=0;g<h.length;g++)f.push(b(h[g]));e.uri=a.baseURL+e.id,e.config=function(){},-1!=m&&f.splice(m,0,e),-1!=k&&f.splice(k,0,c),-1!=j&&f.splice(j,0,d(e.id,b,a));var n=i.apply(l,f);if(void 0===n&&e&&(n=e.exports),void 0!==n)return n}};if(g)s=0!=h.length||s||u?null:o,u=!0,a.register(g,o.deps,!1,o.execute);else{if(s)throw new TypeError("Multiple defines for anonymous module");s=o}}var e=a.onScriptLoad;a.onScriptLoad=function(a){e(a),(s||u)&&(a.metadata.format="defined",a.metadata.registered=!0),s&&(a.metadata.deps=a.metadata.deps?a.metadata.deps.concat(s.deps):s.deps,a.metadata.execute=s.execute)},c.amd={},a.amdDefine=c}function f(a){a.amdDefine||e(a),s=null,u=null;var b=a.global;v=b.module,w=b.exports,x=b.define,b.module=void 0,b.exports=void 0,b.define&&b.define===a.amdDefine||(b.define=a.amdDefine)}function g(a){var b=a.global;b.define=x,b.module=v,b.exports=w}var h="undefined"!=typeof module&&module.exports;a._extensions.push(n);var i=/(\/\*([\s\S]*?)\*\/|([^:(?!\\)]|^)\/\/(.*)$)/gm,j=/("[^"\\\n\r]*(\\.[^"\\\n\r]*)*"|'[^'\\\n\r]*(\\.[^'\\\n\r]*)*')/g,k=/(function|var|let|const|return|export|\"|\'|\(|\=)$/i,m="(?:^\\uFEFF?|[^$_a-zA-Z\\xA0-\\uFFFF.\"'])",o="\\s*\\(\\s*(\"[^\"\\\\]*(?:\\\\.[^\"\\\\]*)*\"|'[^'\\\\]*(?:\\\\.[^'\\\\]*)*')\\s*\\)",p=/\(([^\)]*)\)/,q=/^\s+|\s+$/g,r={};a.amdRequire=function(){return c.apply(this,arguments)};var s,u,v,w,x;if(e(a),a.scriptLoader){var y=a.fetch;a.fetch=function(a){return f(this),y.call(this,a)}}var z=a.instantiate;a.instantiate=function(a){var b=this,c=a.source.replace(/\/\*[\s\S]*?\*\/|([^:]|^)\/\/.*$/gm,"$1"),d=c.match(/(?:^\uFEFF?|[^$_a-zA-Z\xA0-\uFFFF.])define\s*\(\s*("[^"]+"\s*,\s*|'[^']+'\s*,\s*)?\s*(\[(\s*(("[^"]+"|'[^']+')\s*,|\/\/.*\r?\n|\/\*(.|\s)*?\*\/))*(\s*("[^"]+"|'[^']+')\s*,?)?(\s*(\/\/.*\r?\n|\/\*(.|\s)*?\*\/))*\s*\]|function\s*|{|[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*\))/);if("amd"==a.metadata.format||!a.metadata.format&&d){var e=c.substring(0,c.indexOf(d[0])),i=e.replace(q,"");if(!k.test(i)){if(a.metadata.format="amd",!1!==b.execute&&(f(b),b.__exec(a),g(b),!s&&!u&&!h))throw new TypeError("AMD module "+a.name+" did not define");s&&(a.metadata.deps=a.metadata.deps?a.metadata.deps.concat(s.deps):s.deps,a.metadata.execute=s.execute)}}return z.call(b,a)}}function o(a){function b(a,b){return!(a.length<b.length)&&(a.substr(0,b.length)==b&&(!a[b.length]||"/"==a[b.length]))}function c(a){for(var b=1,c=0,d=a.length;c<d;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)))for(var o in n)b(a,o)&&((j=c(o))<=k||(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);j<=k||(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,g=a;d.map||(d.map={});var h=!1;return"/"==g.substr(g.length-1,1)&&(h=!0,g+="#"),Promise.resolve(f.call(d,g,b,c)).then(function(a){var c=e(a,b,d);if(h){var f=c.split("/");f.pop();var g=f.pop();f.push(g),f.push(g),c=f.join("/")}return c})}}function p(a){void 0===t&&(t=Array.prototype.indexOf),a._extensions.push(p);var b=a.normalize;a.normalize=function(a,c,d){var e,f=this,g=c;return g&&-1!=(e=g.indexOf("!"))&&(g=g.substr(0,e)),Promise.resolve(b.call(f,a,g,d)).then(function(a){var b=a.lastIndexOf("!");if(-1!=b){var c=a.substr(0,b),e=a.substr(b+1)||c.substr(c.lastIndexOf(".")+1);return new Promise(function(a){a(f.normalize(e,g,d))}).then(function(a){return e=a,f.normalize(c,g,d,!0)}).then(function(a){return a+"!"+e})}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,{metadata:{importingModuleName:d}}).then(function(){var c=g.get(f);return c=c.default||c,!1===c.build&&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!1===a.metadata.build&&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||f.call(b,a)}):a.metadata.plugin&&!1===a.metadata.plugin.build?(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){void 0===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;e<d.length;e++)c.load(d[e]);return b.call(c,a)}}a.upgradeSystemLoader=void 0;var s,t=Array.prototype.indexOf||function(a){for(var b=0,c=this.length;b<c;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(a){v=!1}var w;!function(){try{Object.defineProperty({},"a",{})&&(w=Object.defineProperty)}catch(a){w=function(a,b,c){try{a[b]=c.value||c.get.call(a)}catch(a){}}}}();var x=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;f<d.length;f++)void 0!==b&&-1!=d[f].indexOf(b.src)||e.push(d[f]);var g=(e?e.join("\n\t"):a.message)+"\n\t"+c;h||(g=g.replace(isWindows?/file:\/\/\//g:/file:\/\//g,""));var i=p?new Error(g,a.fileName,a.lineNumber):new Error(g);return i.stack=h?null:g,i.originalErr=a.originalErr||a,i}var e,f,g="undefined"==typeof window&&"undefined"!=typeof self&&"undefined"!=typeof importScripts,h="undefined"!=typeof window&&"undefined"!=typeof document,i="object"==typeof process&&"[object process]"==={}.toString.call(process),j=!!(i&&global.nw&&global.nw.process),k=h&&!j&&window.chrome&&window.chrome.extension;if(e=function(a,b,c){try{new Function(a).call(c)}catch(a){throw d(a,"Evaluating "+b)}},g)a.upgradeSystemLoader();else if(!h&&!j||k){if(i){var l=require("./src/loader");a.System=l.System,a.Loader=l.Loader,a.upgradeSystemLoader(),module.exports=a.System;var m=require("vm");e=function(a){m.runInThisContext(a)}}}else{var n,o=document.getElementsByTagName("script");b=o[o.length-1],f=function(a){n||(n=document.head||document.body||document.documentElement);var b=document.createElement("script");b.text=a;var c,d=window.onerror;if(window.onerror=function(a){c=a},n.appendChild(b),n.removeChild(b),window.onerror=d,c)throw c},a.upgradeSystemLoader()}var p="_"==new Error(0,"_").fileName;c=function(a,b,c,d,g){var h=a;h+="\n//# sourceURL="+b+(d?"\n//# sourceMappingURL="+d:""),"script"===g&&"function"==typeof f?f(h):e(h,b,c)}}()}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope?self:global),function(a){var b=function(a){return a.replace(/-+(.)?/g,function(a,b){return b?b.toUpperCase():""})},c=function(a,b){var c,d;if("number"==typeof a.length&&a.length-1 in a)for(c=0,d=a.length;c<d;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},d=function(a,b){var d=[];return c(a,function(a,c){d[c]=b(a,c)}),d},e=function(a){return"string"==typeof a},f=function(a,b){return c(b,function(b,c){a[c]=b}),a},g=function(a){var b=a.lastIndexOf("/");return-1===b&&(b=a.lastIndexOf("\\")),-1!==b?a.substr(0,b):a},h=function(a){return a[a.length-1]},i=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},j=function(a,b){return b=i(b||""),a=i(a||""),b&&a?(b.protocol||a.protocol)+(b.protocol||b.authority?b.authority:a.authority)+function(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)?"/":"")}(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},k=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;f<d.length-1;f++)e.push("../");return"./"+e.join("")+c.join("/")},l=Function.prototype.bind,m=function(a){return!!(a&&a.constructor&&a.call&&a.apply)},n="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,o="object"==typeof process&&"[object process]"==={}.toString.call(process),p=!o&&"undefined"!=typeof window,q=o&&function(){try{return"undefined"!==require("nw.gui")}catch(a){return!1}}(),r=o&&!!process.versions.electron,o=o&&!q&&!r,s="object"==typeof console?l.call(console.warn,console):function(){},t=function(a){var b=a.lastIndexOf("/");-1===b&&(b=a.lastIndexOf("\\"));var c=(-1==b?a:a.substr(b+1)).match(/^[\w-\s\.!]+/);return c?c[0]:""},u=function(a){var b=t(a),c=b.lastIndexOf(".");return-1!==c?b.substr(c+1):""},v=function(a,b){var c=a,d=c.lastIndexOf("!"),e="";if(-1!=d){var f=c.substr(0,d);e="!"+c.substr(d+1),c=f}var g=t(c),h=u(c);return"/"===c[c.length-1]?c+t(c.substr(0,c.length-1))+e:/^(\w+(?:s)?:\/\/|\.|file|\/)/.test(c)||-1!==g.indexOf(".")?"js"===h?c.substr(0,c.lastIndexOf("."))+e:c+e:c+"/"+g+e},w=function(a){var b=a||this.System,c=x(b.clone());return c.loader.set("@steal",c.loader.newModule({default:c,__useDefault:!0})),c.clone=w,c},x=function(a){var u=function(b){void 0!==a&&m(b)&&(a._extensions&&a._extensions.push(b),b(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,d=function(){var a,d=[];c(b,function(b){e(b)?d.push(z.System.import(v(b))):"function"==typeof b&&(a=b)});var f=Promise.all(d);return a?f.then(function(b){return a&&a.apply(null,b)}):f};return a.isEnv("production")?d():w.then(d,d)};a.set("@steal",a.newModule({default:z,__useDefault:!0}));var A=a.clone;a.clone=function(){var a=A.apply(this,arguments);return a.set("@loader",a.newModule({default:a,__useDefault:!0})),a.set("@steal",a.newModule({default:z,__useDefault:!0})),a},z.System=z.loader=a,z.parseURI=i,z.joinURIs=j,z.normalize=v,z.relativeURI=k,z.addExtension=u,u(function(a){a.ext={};var b=a.normalize;a.normalize=function(c,d,e,f){if(f)return b.apply(this,arguments);var g=c.match(/\.(\w+)!?$/),h=c;if(g){var i="!"===c[c.length-1],j=g[1];d&&a.configMain!==c&&".js"===g[0]?h=c.substr(0,c.lastIndexOf(".")):a.ext[j]&&(h=c+(i?"":"!")+a.ext[j])}return b.call(this,h,d,e)}}),u(function(a){var b=a.normalize,c=/@.+#.+/;a.normalize=function(a,d,e,f){var g,h,i=a.length-1,j=a;return"/"===a[i]&&(g=a.substring(0,i).lastIndexOf("/"),h=a.substring(g+1,i),c.test(h)&&(h=h.substr(h.lastIndexOf("#")+1)),j+=h),b.call(this,j,d,e,f)}}),u(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){var b=a;return".js"===a.substr(a.length-3)&&(b=a.substr(0,a.length-3)),b})},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;f<d.length-1;f++)e.push("../");return e.join("")+c.join("/")},d=function(a,b){var d=[];return a.replace(/(locate):\/\/([a-z0-9\/._@-]*)/gi,function(a,e,f,g){d.push({start:g,end:g+a.length,name:f,postLocate:function(a){return c(b,a)}})}),d},e=a.translate;a.translate=function(a){var c=this;if(!a.metadata.plugin)return e.call(this,a);if(!a.metadata.plugin.locateScheme)return e.call(this,a);var f=d(a.source,a.address);if(!f.length)return e.call(this,a);for(var g=[],h=0,i=f.length;h<i;h++)g.push(b.call(this,f[h].name,a.name));return Promise.all(g).then(function(b){for(var d=f.length-1;d>=0;d--)a.source=a.source.substr(0,f[d].start)+f[d].postLocate(b[d])+a.source.substr(f[d].end,a.source.length);return e.call(c,a)})}}),u(function(a){a._contextualModules={},a.setContextual=function(a,b){this._contextualModules[a]=b};var b=a.normalize;a.normalize=function(a,c){var d=this,e=d.pluginLoader||d;if(c){var f=this._contextualModules[a];if(f){var g=a+"/"+c;return d.has(a)?Promise.resolve(g):("string"==typeof f&&(f=e.import(f)),Promise.resolve(f).then(function(a){var b=a;return b.default&&(b=b.default),Promise.resolve(b.call(d,c))}).then(function(a){return d.set(g,d.newModule(a)),g}))}}return b.apply(this,arguments)}}),u(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<b.length;c++){var d=b[c];if("text/steal-module"==d.type){var e=d.innerHTML;/\S/.test(e)&&a.module(e).catch(function(a){setTimeout(function(){throw a})})}}}a.loadScriptModules=function(){p&&("complete"===document.readyState?setTimeout(c):document.addEventListener&&(document.addEventListener("DOMContentLoaded",b,!1),window.addEventListener("load",b,!1)))}}),u(function(a){function b(a){function b(){for(var b,d=[],e=0;e<arguments.length;e++)"string"==typeof arguments[e]?d.push(v(arguments[e])):b=arguments[e];"function"!=typeof b&&(b=function(a){return function(){return a}}(b)),c={deps:d,execute:function(c,e,f){for(var g=[],h=0;h<d.length;h++)g.push(c(d[h]));var i=b.apply(a.global,g);if(void 0!==i)return i}}}c=null,a.global.module=void 0,a.global.exports=void 0,a.global.steal=b}var c,d=a.instantiate;a.instantiate=function(a){var e=this
;if("steal"===a.metadata.format||!a.metadata.format&&a.source.match(/(?:^\s*|[}{\(\);,\n\?\&]\s*)steal\s*\(\s*((?:"[^"]+"\s*,|'[^']+'\s*,\s*)*)/)){a.metadata.format="steal";var f=e.global.steal;if(b(e),e.__exec(a),e.global.steal=f,!c)throw"Steal module "+a.name+" did not call steal";c&&(a.metadata.deps=a.metadata.deps?a.metadata.deps.concat(c.deps):c.deps,a.metadata.execute=c.execute)}return d.call(e,a)}}),u(function a(b){function c(a,b){var c;for(c in a)b(c,a[c])}function d(a){function b(a,b){for(var c=0;c<a.length;c++)if(a[c][0]<b.index&&a[c][1]>b.index)return!0;return!1}function c(a){for(;e=a.exec(d);)if(!b(g,e)){var c=e[1];f.push(c)}}var d=a.replace(l,"");j.lastIndex=l.lastIndex=k.lastIndex=m.lastIndex=0;var e,f=[],g=[];if(a.length/a.split("\n").length<200)for(;e=m.exec(d);)g.push([e.index,e.index+e[0].length]);return c(j),c(k),f}b._extensions&&b._extensions.push(a),b._traceData={loads:{},parentMap:{}},b.getDependencies=function(a){var b=this.getModuleLoad(a);return b?b.metadata.dependencies:void 0},b.getDependants=function(a){var b=[];return c(this._traceData.parentMap[a]||{},function(a){b.push(a)}),b},b.getModuleLoad=function(a){return this._traceData.loads[a]},b.getBundles=function(a,b){var d=b||{};d[a]=!0;var e=this,f=e._traceData.parentMap,g=f[a];if(!g)return[a];var h=[];return c(g,function(a,b){d[a]||(h=h.concat(e.getBundles(a,d)))}),h},b._allowModuleExecution={},b.allowModuleExecution=function(a){var b=this;return b.normalize(a).then(function(a){b._allowModuleExecution[a]=!0})};var e=b.normalize;b.normalize=function(a,b){var c=e.apply(this,arguments);if(b){var d=this._traceData.parentMap;return c.then(function(a){return d[a]||(d[a]={}),d[a][b]=!0,a})}return c};var f=function(){return b.newModule({})},g={traceur:!0,babel:!0},h=function(a){return g[a.name]||this._allowModuleExecution[a.name]},i=[].map||function(a){for(var b=[],c=0,d=this.length;c<d;c++)b.push(a(this[c]));return b},j=/import [\s\S]*?["'](.+)["']/g,k=/export .+ from ["'](.+)["']/g,l=/(?:(?:^|\s)\/\/(.+?)$)|(?:\/\*([\S\s]*?)\*\/)/gm,m=/(?:("|')[^\1\\\n\r]*(?:\\.[^\1\\\n\r]*)*\1|`[^`]*`)/g,n=b.instantiate;b.instantiate=function(a){function b(b){var d=c.preventModuleExecution&&!h.call(c,a),e=b?b.deps:a.metadata.deps;return Promise.all(i.call(e,function(b){return c.normalize(b,a.name)})).then(function(c){return a.metadata.deps=e,a.metadata.dependencies=c,d?{deps:e,execute:f}:b})}this._traceData.loads[a.name]=a;var c=this;return Promise.resolve(n.apply(this,arguments)).then(function(c){if(!c){var e=d(a.source);a.metadata.deps=e}return b(c)})};var o=b.transpile;b.transpile=function(a){var b=a.metadata.transpiledSource;return b?(delete a.metadata.transpiledSource,Promise.resolve(b)):o.apply(this,arguments)},b.eachModule=function(a){for(var b in this._loader.modules)a.call(this,b,this.get(b))}}),u(function(a){function b(a){var b=a;return!!b&&(b=b.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@"),b=b.replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]"),b=b.replace(/(?:^|:|,)(?:\s*\[)+/g,""),/^[\],:{}\s]*$/.test(b))}function c(a){if(("json"===a.metadata.format||!a.metadata.format)&&b(a.source))try{return JSON.parse(a.source)}catch(b){return s("Error parsing "+a.address+":",b),{}}}var d=/\.json$/i,e=a.locate;a.locate=function(a){return e.apply(this,arguments).then(function(b){return d.test(a.name)?b.replace(/\.js$/i,""):b})};var f=function(a,b,c){var d=a.jsonOptions&&a.jsonOptions.transform;return d?d.call(a,b,c):c};if(o){var g=a.translate;return void(a.translate=function(a){var b=a.metadata.address||a.address;if(d.test(b)&&-1===a.name.indexOf("!")){var e=c(a);if(e)return e=f(this,a,e),"define([], function(){\n\treturn "+JSON.stringify(e)+"\n});"}return g.call(this,a)})}var h=a.instantiate;return a.instantiate=function(a){var b,d=this;return b=c(a),b&&(b=f(d,a,b),a.metadata.format="json",a.metadata.execute=function(){return b}),h.call(d,a)},a}),u(function(a){var b=a.fetch;a.fetch=function(a){var c=this;if(c.isEnv("production")&&c.cacheVersion){var d=c.cacheVersion,e=c.cacheKey||"version",f=e+"="+d;a.address=a.address+(-1===a.address.indexOf("?")?"?":"&")+f}return b.call(this,a)}});var B=function(a,b,c){a[b]||(a[b]=c)};a.configMain="@config",a.devBundle="@empty",a.depsBundle="@empty",a.paths[a.configMain]="stealconfig.js",a.env=(n?"worker":"window")+"-development",a.ext=Object.create(null),a.logLevel=0;B(a.paths,"bundles/*.css","dist/bundles/*css"),B(a.paths,"bundles/*","dist/bundles/*.js");var C=function(b){return{order:b,set:function(b){var c=t(b),d=g(b);o||(a.configPath=j(location.href,b)),a.configMain=c,a.paths[c]=c,this.config({baseURL:(d===b?".":d)+"/"})}}},D=function(a,b){return{order:b,set:function(b){this[a]=b}}},E=function(a,b){return{order:b,set:function(b){this[a]=!!b}}},F=function(a){var b=a;return o&&!/^file:/.test(b)?("."===b[0]&&("/"===b[1]||"."===b[1]&&"/"===b[2])&&(b=require("path").join(process.cwd(),b)),b?"file:"+b:b):b},G=function(a){var b=a.lastIndexOf("!");if(-1!==b)return a.substr(b+1)},H=function(a){var b=a.lastIndexOf("!");if(-1!==b)return a.substr(0,b)},I=function(){if(this.loadBundles&&this.main&&!this.stealBundled){var b=this.main,c=this.bundlesName||"bundles/",d=c+b;B(this.meta,d,{format:"amd"});var e=G(a.configMain),f=[b,a.configMain];if(e&&a.set(e,a.newModule({})),e=G(b)){var g=H(b);f.push(e),f.push(g),d=c+g.substr(0,g.indexOf("."))}this.bundles[d]=f}},J=function(){if(this.envs){var a=this.envs[this.env];a&&this.config(a)}},K=function(){if(this.liveReloadInstalled){var a=this;this.import("live-reload",{name:"@@steal"}).then(function(b){b(a.configMain,function(){J.call(a)})})}},L=[],M={map:!0,paths:!0,meta:!0},N={instantiated:{order:1,set:function(a){var b=this;c(a||{},function(a,c){b.set(c,b.newModule(a))})}},envs:{order:2,set:function(a){var b=this.envs;b||(b=this.envs={}),c(a,function(a,d){var e=b[d];e||(e=b[d]={}),c(a,function(a,b){M[b]&&e[b]?f(e[b],a):e[b]=a})})}},env:{order:3,set:function(a){this.env=a,this.isEnv("production")&&(this.loadBundles=!0)}},loadBundles:E("loadBundles",4),stealBundled:E("stealBundled",5),bundle:{order:6,set:function(b){a.bundle=b}},bundlesPath:{order:7,set:function(a){return this.paths["bundles/*.css"]=a+"/*css",this.paths["bundles/*"]=a+"/*.js",a}},meta:{order:8,set:function(a){var b=this;c(a||{},function(a,c){if("object"==typeof a){var d=b.meta[c];if(d&&d.format===a.format){var e=a.deps;f(a,d),e&&(a.deps=e)}}}),f(this.meta,a)}},configMain:D("configMain",9),config:C(10),configPath:C(11),baseURL:function(a,b){return{order:b,set:function(b){this[a]=F(b)}}}("baseURL",12),main:D("main",13),stealPath:{order:14,set:function(b,c){var d=F(b),e=d.split("/");if(B(this.paths,"@dev",d+"/ext/dev.js"),B(this.paths,"npm",d+"/ext/npm.js"),B(this.paths,"npm-extension",d+"/ext/npm-extension.js"),B(this.paths,"npm-utils",d+"/ext/npm-utils.js"),B(this.paths,"npm-crawl",d+"/ext/npm-crawl.js"),B(this.paths,"npm-load",d+"/ext/npm-load.js"),B(this.paths,"npm-convert",d+"/ext/npm-convert.js"),B(this.paths,"semver",d+"/ext/semver.js"),B(this.paths,"bower",d+"/ext/bower.js"),B(this.paths,"live-reload",d+"/ext/live-reload.js"),B(this.paths,"steal-clone",d+"/ext/steal-clone.js"),this.paths.traceur=d+"/ext/traceur.js",this.paths["traceur-runtime"]=d+"/ext/traceur-runtime.js",this.paths.babel=d+"/ext/babel.js",this.paths["babel-runtime"]=d+"/ext/babel-runtime.js",B(this.meta,"traceur",{exports:"traceur"}),this.setContextual("steal-clone","steal-clone"),o)"@config"===this.configMain&&"steal"===h(e)&&(e.pop(),"node_modules"===h(e)&&(this.configMain="package.json!npm",e.pop())),(this.isEnv("production")||this.loadBundles)&&I.call(this);else if(!c.baseURL&&!c.config&&!c.configPath){if("steal"===h(e)){e.pop();var f=!1;h(e)!==c.bowerPath&&"bower_components"!==h(e)||(a.configMain="bower.json!bower",I.call(this),e.pop(),f=!0),"node_modules"===h(e)&&(a.configMain="package.json!npm",I.call(this),e.pop(),f=!0),f||e.push("steal")}this.config({baseURL:e.join("/")+"/"})}a.stealPath=d}},stealURL:{order:15,set:function(b,c){var d=b.split("?"),e=d.shift(),f=e.split("/"),g=f.pop(),h=f.join("/"),i=this.getPlatform()||(n?"worker":"window");a.stealURL=e,(this.stealBundled&&!0===this.stealBundled||g.indexOf("steal.production")>-1||g.indexOf("steal-sans-promises.production")>-1&&!c.env)&&this.config({env:i+"-production"}),(this.isEnv("production")||this.loadBundles)&&I.call(this),N.stealPath.set.call(this,h,c)}},devBundle:{order:16,set:function(a,b){var c=!0===a?"dev-bundle":a;c&&(this.devBundle=c)}},depsBundle:{order:17,set:function(a,b){var c=!0===a?"dev-bundle":a;c&&(this.depsBundle=c)}}};c(N,function(a,b){a.order?L.splice(a.order,0,b):L.push(b)}),function(a,b,d){var e=a.config;a.config=function(g){var h=f({},g);c(b,function(b){var c=d[b];if(c.set&&h[b]){var e=c.set.call(a,h[b],g);void 0!==e&&(a[b]=e),delete h[b]}}),e.call(this,h)}}(a,L,N),z.config=function(a){if("string"==typeof a)return this.loader[a];this.loader.config(a)},u(function(a){a.getEnv=function(){return(this.env||"").split("-")[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}});var O=function(a){var c={},d=a.split("?"),e=d.shift(),f=d.join("?"),g=f.split("&"),h=e.split("/");h.pop(),h.join("/");if(g.length&&g[0].length)for(var i,j=0;j<g.length;j++){i=g[j];var k=i.split("=");if(k.length>1){var l=b(k[0]);l=l.replace(/Url$/,"URL"),c[l]=k.slice(1).join("=")}}return c},P=function(a){var d={};d.stealURL=a.src,c(a.attributes,function(a){var c=a.nodeName||a.name,e=b(0===c.indexOf("data-")?c.replace("data-",""):c);e=e.replace(/Url$/,"URL"),d[e]=""===a.value||a.value});var e=a.innerHTML;return/\S/.test(e)&&(d.mainSource=e),f(O(a.src),d)},Q=function(){return new Promise(function(a,b){if(n)return void a(f({stealURL:location.href},O(location.href)));if(p||q||r){if(document.currentScript)return void a(P(document.currentScript));var c=document.scripts;c.length&&a(P(c[c.length-1]))}else a({stealPath:__dirname})})};return z.startup=function(a){var b,c,e=this.loader;return w=new Promise(function(a,d){b=a,c=d}),y=Q().then(function(g){var h;return h="object"==typeof a?f(a,g):g,e.config(h),J.call(e),e.loadBundles?(e.main||!e.isEnv("production")||e.stealBundled||s("Attribute 'main' is required in production environment. Please add it to the script tag."),e.import(e.configMain).then(b,c),w.then(function(a){return J.call(e),e.main?e.import(e.main):a})):(e.import(e.devBundle).then(function(){return e.import(e.configMain)}).then(function(){return e.import(e.depsBundle)}).then(b,c),x=w.then(function(){return J.call(e),K.call(e),h&&e.config(h),e.import("@dev")}),x.then(function(){if(!e.main||e.localLoader)return w;var a=e.main;return"string"==typeof a&&(a=[a]),Promise.all(d(a,function(a){return e.import(a)}))}))}).then(function(a){return e.mainSource?e.module(e.mainSource):(e.loadScriptModules(),a)})},z.done=function(){return y},z.import=function(){function a(){var a=[];return c(b,function(b){a.push(d.import(b))}),a.length>1?Promise.all(a):a[0]}var b=arguments,d=this.System;return w||(d.main||(d.main="@empty"),z.startup()),w.then(a)},z.setContextual=l.call(a.setContextual,a),z.isEnv=l.call(a.isEnv,a),z.isPlatform=l.call(a.isPlatform,a),z};if(!o||q||r){var y=a.steal;a.steal=x(System),a.steal.startup(y&&"object"==typeof y&&y).then(null,function(a){if("undefined"!=typeof console){var b=console;b[b.error?"error":"log"](a,a.stack)}}),a.steal.clone=w}else a.steal=x(System),a.steal.System=System,a.steal.dev=require("./ext/dev.js"),steal.clone=w,module.exports=a.steal}("undefined"==typeof window?"undefined"==typeof global?this:global:window);