summaryrefslogtreecommitdiffstats
path: root/js/vendor
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-09-04 17:01:35 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-09-04 17:01:35 +0200
commitdda6a6963cc4c2ba7f84572a8eae269dfd2a3287 (patch)
tree38376061227a780bd5dd44b7157c78ee60d3c2a4 /js/vendor
parentd52b05965d5761144b1b94e8cc29b5c434a333fb (diff)
update deps
Diffstat (limited to 'js/vendor')
-rw-r--r--js/vendor/momentjs/.bower.json2
-rw-r--r--js/vendor/traceur-runtime/.bower.json10
-rw-r--r--js/vendor/traceur-runtime/bower.json2
-rw-r--r--js/vendor/traceur-runtime/traceur-runtime.js151
-rw-r--r--js/vendor/traceur-runtime/traceur-runtime.min.js4
-rw-r--r--js/vendor/traceur-runtime/traceur-runtime.min.map2
6 files changed, 90 insertions, 81 deletions
diff --git a/js/vendor/momentjs/.bower.json b/js/vendor/momentjs/.bower.json
index 2304a7bd5..e885cc6b9 100644
--- a/js/vendor/momentjs/.bower.json
+++ b/js/vendor/momentjs/.bower.json
@@ -25,6 +25,6 @@
"commit": "c4c47a7793dfc116acd1356f668eb1a182e29d68"
},
"_source": "git://github.com/moment/moment.git",
- "_target": "~2.*",
+ "_target": "~2.8",
"_originalSource": "momentjs"
} \ No newline at end of file
diff --git a/js/vendor/traceur-runtime/.bower.json b/js/vendor/traceur-runtime/.bower.json
index f27301da7..61fc26bcd 100644
--- a/js/vendor/traceur-runtime/.bower.json
+++ b/js/vendor/traceur-runtime/.bower.json
@@ -1,6 +1,6 @@
{
"name": "traceur-runtime",
- "version": "0.0.58",
+ "version": "0.0.60",
"main": "./traceur-runtime.js",
"ignore": [
"node_modules",
@@ -9,13 +9,13 @@
".*"
],
"homepage": "https://github.com/jmcriffey/bower-traceur-runtime",
- "_release": "0.0.58",
+ "_release": "0.0.60",
"_resolution": {
"type": "version",
- "tag": "0.0.58",
- "commit": "b75049784a03c21776238a8d2e58b639cc399efc"
+ "tag": "0.0.60",
+ "commit": "74f6bf024d21aa5bd7d32edf5e0ee50dfe370845"
},
"_source": "git://github.com/jmcriffey/bower-traceur-runtime.git",
- "_target": "~0.0.41",
+ "_target": "~0.0.60",
"_originalSource": "traceur-runtime"
} \ No newline at end of file
diff --git a/js/vendor/traceur-runtime/bower.json b/js/vendor/traceur-runtime/bower.json
index 3d45ebaca..d7f81ae02 100644
--- a/js/vendor/traceur-runtime/bower.json
+++ b/js/vendor/traceur-runtime/bower.json
@@ -1,6 +1,6 @@
{
"name": "traceur-runtime",
- "version": "0.0.58",
+ "version": "0.0.60",
"main": "./traceur-runtime.js",
"ignore": [
"node_modules",
diff --git a/js/vendor/traceur-runtime/traceur-runtime.js b/js/vendor/traceur-runtime/traceur-runtime.js
index 58f3cff67..aacdc2ff7 100644
--- a/js/vendor/traceur-runtime/traceur-runtime.js
+++ b/js/vendor/traceur-runtime/traceur-runtime.js
@@ -891,9 +891,9 @@
return instantiator && instantiator.getUncoatedModule();
};
})(typeof global !== 'undefined' ? global : this);
-System.register("traceur-runtime@0.0.58/src/runtime/polyfills/utils", [], function() {
+System.register("traceur-runtime@0.0.60/src/runtime/polyfills/utils", [], function() {
"use strict";
- var __moduleName = "traceur-runtime@0.0.58/src/runtime/polyfills/utils";
+ var __moduleName = "traceur-runtime@0.0.60/src/runtime/polyfills/utils";
var $ceil = Math.ceil;
var $floor = Math.floor;
var $isFinite = isFinite;
@@ -1051,10 +1051,10 @@ System.register("traceur-runtime@0.0.58/src/runtime/polyfills/utils", [], functi
}
};
});
-System.register("traceur-runtime@0.0.58/src/runtime/polyfills/Map", [], function() {
+System.register("traceur-runtime@0.0.60/src/runtime/polyfills/Map", [], function() {
"use strict";
- var __moduleName = "traceur-runtime@0.0.58/src/runtime/polyfills/Map";
- var $__3 = System.get("traceur-runtime@0.0.58/src/runtime/polyfills/utils"),
+ var __moduleName = "traceur-runtime@0.0.60/src/runtime/polyfills/Map";
+ var $__3 = System.get("traceur-runtime@0.0.60/src/runtime/polyfills/utils"),
isObject = $__3.isObject,
maybeAddIterator = $__3.maybeAddIterator,
registerPolyfill = $__3.registerPolyfill;
@@ -1153,7 +1153,9 @@ System.register("traceur-runtime@0.0.58/src/runtime/polyfills/Map", [], function
this.entries_[index] = deletedSentinel;
this.entries_[index + 1] = undefined;
this.deletedCount_++;
+ return true;
}
+ return false;
},
clear: function() {
initMap(this);
@@ -1316,15 +1318,15 @@ System.register("traceur-runtime@0.0.58/src/runtime/polyfills/Map", [], function
}
};
});
-System.get("traceur-runtime@0.0.58/src/runtime/polyfills/Map" + '');
-System.register("traceur-runtime@0.0.58/src/runtime/polyfills/Set", [], function() {
+System.get("traceur-runtime@0.0.60/src/runtime/polyfills/Map" + '');
+System.register("traceur-runtime@0.0.60/src/runtime/polyfills/Set", [], function() {
"use strict";
- var __moduleName = "traceur-runtime@0.0.58/src/runtime/polyfills/Set";
- var $__11 = System.get("traceur-runtime@0.0.58/src/runtime/polyfills/utils"),
+ var __moduleName = "traceur-runtime@0.0.60/src/runtime/polyfills/Set";
+ var $__11 = System.get("traceur-runtime@0.0.60/src/runtime/polyfills/utils"),
isObject = $__11.isObject,
maybeAddIterator = $__11.maybeAddIterator,
registerPolyfill = $__11.registerPolyfill;
- var Map = System.get("traceur-runtime@0.0.58/src/runtime/polyfills/Map").Map;
+ var Map = System.get("traceur-runtime@0.0.60/src/runtime/polyfills/Map").Map;
var getOwnHashObject = $traceurRuntime.getOwnHashObject;
var $hasOwnProperty = Object.prototype.hasOwnProperty;
function initSet(set) {
@@ -1356,7 +1358,8 @@ System.register("traceur-runtime@0.0.58/src/runtime/polyfills/Set", [], function
return this.map_.has(key);
},
add: function(key) {
- return this.map_.set(key, key);
+ this.map_.set(key, key);
+ return this;
},
delete: function(key) {
return this.map_.delete(key);
@@ -1468,20 +1471,23 @@ System.register("traceur-runtime@0.0.58/src/runtime/polyfills/Set", [], function
}
};
});
-System.get("traceur-runtime@0.0.58/src/runtime/polyfills/Set" + '');
-System.register("traceur-runtime@0.0.58/node_modules/rsvp/lib/rsvp/asap", [], function() {
+System.get("traceur-runtime@0.0.60/src/runtime/polyfills/Set" + '');
+System.register("traceur-runtime@0.0.60/node_modules/rsvp/lib/rsvp/asap", [], function() {
"use strict";
- var __moduleName = "traceur-runtime@0.0.58/node_modules/rsvp/lib/rsvp/asap";
+ var __moduleName = "traceur-runtime@0.0.60/node_modules/rsvp/lib/rsvp/asap";
+ var len = 0;
function asap(callback, arg) {
- var length = queue.push([callback, arg]);
- if (length === 1) {
+ queue[len] = callback;
+ queue[len + 1] = arg;
+ len += 2;
+ if (len === 2) {
scheduleFlush();
}
}
var $__default = asap;
- ;
var browserGlobal = (typeof window !== 'undefined') ? window : {};
var BrowserMutationObserver = browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver;
+ var isWorker = typeof Uint8ClampedArray !== 'undefined' && typeof importScripts !== 'undefined' && typeof MessageChannel !== 'undefined';
function useNextTick() {
return function() {
process.nextTick(flush);
@@ -1496,26 +1502,36 @@ System.register("traceur-runtime@0.0.58/node_modules/rsvp/lib/rsvp/asap", [], fu
node.data = (iterations = ++iterations % 2);
};
}
+ function useMessageChannel() {
+ var channel = new MessageChannel();
+ channel.port1.onmessage = flush;
+ return function() {
+ channel.port2.postMessage(0);
+ };
+ }
function useSetTimeout() {
return function() {
setTimeout(flush, 1);
};
}
- var queue = [];
+ var queue = new Array(1000);
function flush() {
- for (var i = 0; i < queue.length; i++) {
- var tuple = queue[i];
- var callback = tuple[0],
- arg = tuple[1];
+ for (var i = 0; i < len; i += 2) {
+ var callback = queue[i];
+ var arg = queue[i + 1];
callback(arg);
+ queue[i] = undefined;
+ queue[i + 1] = undefined;
}
- queue = [];
+ len = 0;
}
var scheduleFlush;
if (typeof process !== 'undefined' && {}.toString.call(process) === '[object process]') {
scheduleFlush = useNextTick();
} else if (BrowserMutationObserver) {
scheduleFlush = useMutationObserver();
+ } else if (isWorker) {
+ scheduleFlush = useMessageChannel();
} else {
scheduleFlush = useSetTimeout();
}
@@ -1523,11 +1539,11 @@ System.register("traceur-runtime@0.0.58/node_modules/rsvp/lib/rsvp/asap", [], fu
return $__default;
}};
});
-System.register("traceur-runtime@0.0.58/src/runtime/polyfills/Promise", [], function() {
+System.register("traceur-runtime@0.0.60/src/runtime/polyfills/Promise", [], function() {
"use strict";
- var __moduleName = "traceur-runtime@0.0.58/src/runtime/polyfills/Promise";
- var async = System.get("traceur-runtime@0.0.58/node_modules/rsvp/lib/rsvp/asap").default;
- var registerPolyfill = System.get("traceur-runtime@0.0.58/src/runtime/polyfills/utils").registerPolyfill;
+ var __moduleName = "traceur-runtime@0.0.60/src/runtime/polyfills/Promise";
+ var async = System.get("traceur-runtime@0.0.60/node_modules/rsvp/lib/rsvp/asap").default;
+ var registerPolyfill = System.get("traceur-runtime@0.0.60/src/runtime/polyfills/utils").registerPolyfill;
var promiseRaw = {};
function isPromise(x) {
return x && typeof x === 'object' && x.status_ !== undefined;
@@ -1624,6 +1640,9 @@ System.register("traceur-runtime@0.0.58/src/runtime/polyfills/Promise", [], func
}, {
resolve: function(x) {
if (this === $Promise) {
+ if (isPromise(x)) {
+ return x;
+ }
return promiseSet(new $Promise(promiseRaw), +1, x);
} else {
return new this(function(resolve, reject) {
@@ -1640,16 +1659,6 @@ System.register("traceur-runtime@0.0.58/src/runtime/polyfills/Promise", [], func
}));
}
},
- cast: function(x) {
- if (x instanceof this)
- return x;
- if (isPromise(x)) {
- var result = getDeferred(this);
- chain(x, result.resolve, result.reject);
- return result.promise;
- }
- return this.resolve(x);
- },
all: function(values) {
var deferred = getDeferred(this);
var resolutions = [];
@@ -1771,12 +1780,12 @@ System.register("traceur-runtime@0.0.58/src/runtime/polyfills/Promise", [], func
}
};
});
-System.get("traceur-runtime@0.0.58/src/runtime/polyfills/Promise" + '');
-System.register("traceur-runtime@0.0.58/src/runtime/polyfills/StringIterator", [], function() {
+System.get("traceur-runtime@0.0.60/src/runtime/polyfills/Promise" + '');
+System.register("traceur-runtime@0.0.60/src/runtime/polyfills/StringIterator", [], function() {
"use strict";
var $__29;
- var __moduleName = "traceur-runtime@0.0.58/src/runtime/polyfills/StringIterator";
- var $__27 = System.get("traceur-runtime@0.0.58/src/runtime/polyfills/utils"),
+ var __moduleName = "traceur-runtime@0.0.60/src/runtime/polyfills/StringIterator";
+ var $__27 = System.get("traceur-runtime@0.0.60/src/runtime/polyfills/utils"),
createIteratorResultObject = $__27.createIteratorResultObject,
isObject = $__27.isObject;
var $__30 = $traceurRuntime,
@@ -1838,11 +1847,11 @@ System.register("traceur-runtime@0.0.58/src/runtime/polyfills/StringIterator", [
return createStringIterator;
}};
});
-System.register("traceur-runtime@0.0.58/src/runtime/polyfills/String", [], function() {
+System.register("traceur-runtime@0.0.60/src/runtime/polyfills/String", [], function() {
"use strict";
- var __moduleName = "traceur-runtime@0.0.58/src/runtime/polyfills/String";
- var createStringIterator = System.get("traceur-runtime@0.0.58/src/runtime/polyfills/StringIterator").createStringIterator;
- var $__32 = System.get("traceur-runtime@0.0.58/src/runtime/polyfills/utils"),
+ var __moduleName = "traceur-runtime@0.0.60/src/runtime/polyfills/String";
+ var createStringIterator = System.get("traceur-runtime@0.0.60/src/runtime/polyfills/StringIterator").createStringIterator;
+ var $__32 = System.get("traceur-runtime@0.0.60/src/runtime/polyfills/utils"),
maybeAddFunctions = $__32.maybeAddFunctions,
maybeAddIterator = $__32.maybeAddIterator,
registerPolyfill = $__32.registerPolyfill;
@@ -2032,12 +2041,12 @@ System.register("traceur-runtime@0.0.58/src/runtime/polyfills/String", [], funct
}
};
});
-System.get("traceur-runtime@0.0.58/src/runtime/polyfills/String" + '');
-System.register("traceur-runtime@0.0.58/src/runtime/polyfills/ArrayIterator", [], function() {
+System.get("traceur-runtime@0.0.60/src/runtime/polyfills/String" + '');
+System.register("traceur-runtime@0.0.60/src/runtime/polyfills/ArrayIterator", [], function() {
"use strict";
var $__36;
- var __moduleName = "traceur-runtime@0.0.58/src/runtime/polyfills/ArrayIterator";
- var $__34 = System.get("traceur-runtime@0.0.58/src/runtime/polyfills/utils"),
+ var __moduleName = "traceur-runtime@0.0.60/src/runtime/polyfills/ArrayIterator";
+ var $__34 = System.get("traceur-runtime@0.0.60/src/runtime/polyfills/utils"),
toObject = $__34.toObject,
toUint32 = $__34.toUint32,
createIteratorResultObject = $__34.createIteratorResultObject;
@@ -2106,14 +2115,14 @@ System.register("traceur-runtime@0.0.58/src/runtime/polyfills/ArrayIterator", []
}
};
});
-System.register("traceur-runtime@0.0.58/src/runtime/polyfills/Array", [], function() {
+System.register("traceur-runtime@0.0.60/src/runtime/polyfills/Array", [], function() {
"use strict";
- var __moduleName = "traceur-runtime@0.0.58/src/runtime/polyfills/Array";
- var $__37 = System.get("traceur-runtime@0.0.58/src/runtime/polyfills/ArrayIterator"),
+ var __moduleName = "traceur-runtime@0.0.60/src/runtime/polyfills/Array";
+ var $__37 = System.get("traceur-runtime@0.0.60/src/runtime/polyfills/ArrayIterator"),
entries = $__37.entries,
keys = $__37.keys,
values = $__37.values;
- var $__38 = System.get("traceur-runtime@0.0.58/src/runtime/polyfills/utils"),
+ var $__38 = System.get("traceur-runtime@0.0.60/src/runtime/polyfills/utils"),
checkIterable = $__38.checkIterable,
isCallable = $__38.isCallable,
isConstructor = $__38.isConstructor,
@@ -2252,11 +2261,11 @@ System.register("traceur-runtime@0.0.58/src/runtime/polyfills/Array", [], functi
}
};
});
-System.get("traceur-runtime@0.0.58/src/runtime/polyfills/Array" + '');
-System.register("traceur-runtime@0.0.58/src/runtime/polyfills/Object", [], function() {
+System.get("traceur-runtime@0.0.60/src/runtime/polyfills/Array" + '');
+System.register("traceur-runtime@0.0.60/src/runtime/polyfills/Object", [], function() {
"use strict";
- var __moduleName = "traceur-runtime@0.0.58/src/runtime/polyfills/Object";
- var $__43 = System.get("traceur-runtime@0.0.58/src/runtime/polyfills/utils"),
+ var __moduleName = "traceur-runtime@0.0.60/src/runtime/polyfills/Object";
+ var $__43 = System.get("traceur-runtime@0.0.60/src/runtime/polyfills/utils"),
maybeAddFunctions = $__43.maybeAddFunctions,
registerPolyfill = $__43.registerPolyfill;
var $__44 = $traceurRuntime,
@@ -2319,16 +2328,16 @@ System.register("traceur-runtime@0.0.58/src/runtime/polyfills/Object", [], funct
}
};
});
-System.get("traceur-runtime@0.0.58/src/runtime/polyfills/Object" + '');
-System.register("traceur-runtime@0.0.58/src/runtime/polyfills/Number", [], function() {
+System.get("traceur-runtime@0.0.60/src/runtime/polyfills/Object" + '');
+System.register("traceur-runtime@0.0.60/src/runtime/polyfills/Number", [], function() {
"use strict";
- var __moduleName = "traceur-runtime@0.0.58/src/runtime/polyfills/Number";
- var $__45 = System.get("traceur-runtime@0.0.58/src/runtime/polyfills/utils"),
- isNumber = $__45.isNumber,
- maybeAddConsts = $__45.maybeAddConsts,
- maybeAddFunctions = $__45.maybeAddFunctions,
- registerPolyfill = $__45.registerPolyfill,
- toInteger = $__45.toInteger;
+ var __moduleName = "traceur-runtime@0.0.60/src/runtime/polyfills/Number";
+ var $__46 = System.get("traceur-runtime@0.0.60/src/runtime/polyfills/utils"),
+ isNumber = $__46.isNumber,
+ maybeAddConsts = $__46.maybeAddConsts,
+ maybeAddFunctions = $__46.maybeAddFunctions,
+ registerPolyfill = $__46.registerPolyfill,
+ toInteger = $__46.toInteger;
var $abs = Math.abs;
var $isFinite = isFinite;
var $isNaN = isNaN;
@@ -2387,11 +2396,11 @@ System.register("traceur-runtime@0.0.58/src/runtime/polyfills/Number", [], funct
}
};
});
-System.get("traceur-runtime@0.0.58/src/runtime/polyfills/Number" + '');
-System.register("traceur-runtime@0.0.58/src/runtime/polyfills/polyfills", [], function() {
+System.get("traceur-runtime@0.0.60/src/runtime/polyfills/Number" + '');
+System.register("traceur-runtime@0.0.60/src/runtime/polyfills/polyfills", [], function() {
"use strict";
- var __moduleName = "traceur-runtime@0.0.58/src/runtime/polyfills/polyfills";
- var polyfillAll = System.get("traceur-runtime@0.0.58/src/runtime/polyfills/utils").polyfillAll;
+ var __moduleName = "traceur-runtime@0.0.60/src/runtime/polyfills/polyfills";
+ var polyfillAll = System.get("traceur-runtime@0.0.60/src/runtime/polyfills/utils").polyfillAll;
polyfillAll(this);
var setupGlobals = $traceurRuntime.setupGlobals;
$traceurRuntime.setupGlobals = function(global) {
@@ -2400,4 +2409,4 @@ System.register("traceur-runtime@0.0.58/src/runtime/polyfills/polyfills", [], fu
};
return {};
});
-System.get("traceur-runtime@0.0.58/src/runtime/polyfills/polyfills" + '');
+System.get("traceur-runtime@0.0.60/src/runtime/polyfills/polyfills" + '');
diff --git a/js/vendor/traceur-runtime/traceur-runtime.min.js b/js/vendor/traceur-runtime/traceur-runtime.min.js
index 55aa140b2..89d70e0b3 100644
--- a/js/vendor/traceur-runtime/traceur-runtime.min.js
+++ b/js/vendor/traceur-runtime/traceur-runtime.min.js
@@ -1,3 +1,3 @@
-!function(a){"use strict";function b(a){return{configurable:!0,enumerable:!1,value:a,writable:!0}}function c(){return"__$"+Math.floor(1e9*Math.random())+"$"+ ++P+"$__"}function d(){var a=c();return U[a]=!0,a}function e(a){return"object"==typeof a&&a instanceof h}function f(a){return e(a)?"symbol":typeof a}function g(a){var b=new h(a);if(!(this instanceof g))return b;throw new TypeError("Symbol cannot be new'ed")}function h(a){var b=c();E(this,S,{value:this}),E(this,Q,{value:b}),E(this,R,{value:a}),j(this),T[b]=this}function i(a){var b=a[V];return b&&b.self===a?b:M(a)?(X.hash.value=Y++,X.self.value=a,W.value=C(null,X),E(a,V,W),W.value):void 0}function j(a){return i(a),F.apply(this,arguments)}function k(a){return i(a),K.apply(this,arguments)}function l(a){return i(a),L.apply(this,arguments)}function m(a){return e(a)?a[Q]:a}function n(a){for(var b=[],c=H(a),d=0;d<c.length;d++){var e=c[d];T[e]||U[e]||b.push(e)}return b}function o(a,b){return G(a,m(b))}function p(a){for(var b=[],c=H(a),d=0;d<c.length;d++){var e=T[c[d]];e&&b.push(e)}return b}function q(a){return J.call(this,m(a))}function r(b){return a.traceur&&a.traceur.options[b]}function s(a,b,c){var d,f;return e(b)&&(d=b,b=b[Q]),a[b]=c,d&&(f=G(a,b))&&E(a,b,{enumerable:!1}),c}function t(a,b,c){return e(b)&&(c.enumerable&&(c=C(c,{enumerable:{value:!1}})),b=b[Q]),E(a,b,c),a}function u(a){E(a,"defineProperty",{value:t}),E(a,"getOwnPropertyNames",{value:n}),E(a,"getOwnPropertyDescriptor",{value:o}),E(a.prototype,"hasOwnProperty",{value:q}),E(a,"freeze",{value:j}),E(a,"preventExtensions",{value:k}),E(a,"seal",{value:l}),a.getOwnPropertySymbols=p}function v(a){for(var b=1;b<arguments.length;b++)for(var c=H(arguments[b]),d=0;d<c.length;d++){var e=c[d];U[e]||!function(b,c){E(a,c,{get:function(){return b[c]},enumerable:!0})}(arguments[b],c[d])}return a}function w(a){return null!=a&&("object"==typeof a||"function"==typeof a)}function x(a){if(null==a)throw B();return A(a)}function y(a){if(null==a)throw new TypeError("Value cannot be converted to an Object");return a}function z(a){a.Symbol=g,a.Reflect=a.Reflect||{},a.Reflect.global=a.Reflect.global||a,u(a.Object)}if(!a.$traceurRuntime){var A=Object,B=TypeError,C=A.create,D=A.defineProperties,E=A.defineProperty,F=A.freeze,G=A.getOwnPropertyDescriptor,H=A.getOwnPropertyNames,I=A.keys,J=A.prototype.hasOwnProperty,K=(A.prototype.toString,Object.preventExtensions),L=Object.seal,M=Object.isExtensible,N={"void":function(){},any:function(){},string:function(){},number:function(){},"boolean":function(){}},O=b,P=0,Q=c(),R=c(),S=c(),T=C(null),U=C(null);E(g.prototype,"constructor",b(g)),E(g.prototype,"toString",O(function(){var a=this[S];if(!r("symbols"))return a[Q];if(!a)throw TypeError("Conversion from symbol to string");var b=a[R];return void 0===b&&(b=""),"Symbol("+b+")"})),E(g.prototype,"valueOf",O(function(){var a=this[S];if(!a)throw TypeError("Conversion from symbol to string");return r("symbols")?a:a[Q]})),E(h.prototype,"constructor",b(g)),E(h.prototype,"toString",{value:g.prototype.toString,enumerable:!1}),E(h.prototype,"valueOf",{value:g.prototype.valueOf,enumerable:!1});var V=d(),W={value:void 0},X={hash:{value:void 0},self:{value:void 0}},Y=0;g.iterator=g(),j(h.prototype),z(a),a.$traceurRuntime={createPrivateName:d,exportStar:v,getOwnHashObject:i,privateNames:U,setProperty:s,setupGlobals:z,toObject:x,isObject:w,toProperty:m,type:N,"typeof":f,checkObjectCoercible:y,hasOwnProperty:function(a,b){return q.call(a,b)},defineProperties:D,defineProperty:E,getOwnPropertyDescriptor:G,getOwnPropertyNames:H,keys:I}}}("undefined"!=typeof global?global:this),function(){"use strict";function a(){for(var a,b=[],c=0,d=0;d<arguments.length;d++){var e=$traceurRuntime.checkObjectCoercible(arguments[d]);if("function"!=typeof e[$traceurRuntime.toProperty(Symbol.iterator)])throw new TypeError("Cannot spread non-iterable object.");for(var f=e[$traceurRuntime.toProperty(Symbol.iterator)]();!(a=f.next()).done;)b[c++]=a.value}return b}$traceurRuntime.spread=a}(),function(){"use strict";function a(a,b){var c=p(a);do{var d=n(c,b);if(d)return d;c=p(c)}while(c);return void 0}function b(a,b,d,e){return c(a,b,d).apply(a,e)}function c(b,c,d){var e=a(c,d);return e?e.get?e.get.call(b):e.value:void 0}function d(b,c,d,e){var f=a(c,d);if(f&&f.set)return f.set.call(b,e),e;throw j("super has no setter '"+d+"'.")}function e(a){for(var b,c={},d=o(a),e=0;e<d.length;e++){var b=d[e];c[b]=n(a,b)}return c}function f(a,b,c,d){return m(b,"constructor",{value:a,configurable:!0,enumerable:!1,writable:!0}),arguments.length>3?("function"==typeof d&&(a.__proto__=d),a.prototype=k(g(d),e(b))):a.prototype=b,m(a,"prototype",{configurable:!1,writable:!1}),l(a,e(c))}function g(a){if("function"==typeof a){var b=a.prototype;if(i(b)===b||null===b)return a.prototype;throw new j("super prototype must be an Object or null")}if(null===a)return null;throw new j("Super expression must either be null or a function, not "+typeof a+".")}function h(a,c,d){null!==p(c)&&b(a,c,"constructor",d)}var i=Object,j=TypeError,k=i.create,l=$traceurRuntime.defineProperties,m=$traceurRuntime.defineProperty,n=$traceurRuntime.getOwnPropertyDescriptor,o=$traceurRuntime.getOwnPropertyNames,p=Object.getPrototypeOf;$traceurRuntime.createClass=f,$traceurRuntime.defaultSuperCall=h,$traceurRuntime.superCall=b,$traceurRuntime.superGet=c,$traceurRuntime.superSet=d}(),function(){"use strict";function a(a){return{configurable:!0,enumerable:!1,value:a,writable:!0}}function b(a){return new Error("Traceur compiler bug: invalid state in state machine: "+a)}function c(){this.state=0,this.GState=r,this.storedException=void 0,this.finallyFallThrough=void 0,this.sent_=void 0,this.returnValue=void 0,this.tryStack_=[]}function d(a,b,c,d){switch(a.GState){case s:throw new Error('"'+c+'" on executing generator');case u:if("next"==c)return{value:void 0,done:!0};throw d;case r:if("throw"===c)throw a.GState=u,d;if(void 0!==d)throw q("Sent value to newborn generator");case t:a.GState=s,a.action=c,a.sent=d;var e=b(a),f=e===a;return f&&(e=a.returnValue),a.GState=f?u:t,{value:e,done:f}}}function e(){}function f(){}function g(a,b,d){var e=k(a,d),f=new c,g=p(b.prototype);return g[x]=f,g[y]=e,g}function h(a){return a.prototype=p(f.prototype),a.__proto__=f,a}function i(){c.call(this),this.err=void 0;var a=this;a.result=new Promise(function(b,c){a.resolve=b,a.reject=c})}function j(a,b){var c=k(a,b),d=new i;return d.createCallback=function(a){return function(b){d.state=a,d.value=b,c(d)}},d.errback=function(a){l(d,a),c(d)},c(d),d.result}function k(a,b){return function(c){for(;;)try{return a.call(b,c)}catch(d){l(c,d)}}}function l(a,b){a.storedException=b;var c=a.tryStack_[a.tryStack_.length-1];return c?(a.state=void 0!==c.catch?c.catch:c.finally,void(void 0!==c.finallyFallThrough&&(a.finallyFallThrough=c.finallyFallThrough))):void a.handleException(b)}var m=$traceurRuntime.createPrivateName,n=$traceurRuntime.defineProperties,o=$traceurRuntime.defineProperty,p=Object.create,q=TypeError,r=0,s=1,t=2,u=3,v=-2,w=-3;c.prototype={pushTry:function(a,b){if(null!==b){for(var c=null,d=this.tryStack_.length-1;d>=0;d--)if(void 0!==this.tryStack_[d].catch){c=this.tryStack_[d].catch;break}null===c&&(c=w),this.tryStack_.push({"finally":b,finallyFallThrough:c})}null!==a&&this.tryStack_.push({"catch":a})},popTry:function(){this.tryStack_.pop()},get sent(){return this.maybeThrow(),this.sent_},set sent(a){this.sent_=a},get sentIgnoreThrow(){return this.sent_},maybeThrow:function(){if("throw"===this.action)throw this.action="next",this.sent_},end:function(){switch(this.state){case v:return this;case w:throw this.storedException;default:throw b(this.state)}},handleException:function(a){throw this.GState=u,this.state=v,a}};var x=m(),y=m();e.prototype=f,o(f,"constructor",a(e)),f.prototype={constructor:f,next:function(a){return d(this[x],this[y],"next",a)},"throw":function(a){return d(this[x],this[y],"throw",a)}},n(f.prototype,{constructor:{enumerable:!1},next:{enumerable:!1},"throw":{enumerable:!1}}),Object.defineProperty(f.prototype,Symbol.iterator,a(function(){return this})),i.prototype=p(c.prototype),i.prototype.end=function(){switch(this.state){case v:this.resolve(this.returnValue);break;case w:this.reject(this.storedException);break;default:this.reject(b(this.state))}},i.prototype.handleException=function(){this.state=w},$traceurRuntime.asyncWrap=j,$traceurRuntime.initGeneratorFunction=h,$traceurRuntime.createGeneratorInstance=g}(),function(){function a(a,b,c,d,e,f,g){var h=[];return a&&h.push(a,":"),c&&(h.push("//"),b&&h.push(b,"@"),h.push(c),d&&h.push(":",d)),e&&h.push(e),f&&h.push("?",f),g&&h.push("#",g),h.join("")}function b(a){return a.match(h)}function c(a){if("/"===a)return"/";for(var b="/"===a[0]?"/":"",c="/"===a.slice(-1)?"/":"",d=a.split("/"),e=[],f=0,g=0;g<d.length;g++){var h=d[g];switch(h){case"":case".":break;case"..":e.length?e.pop():f++;break;default:e.push(h)}}if(!b){for(;f-->0;)e.unshift("..");0===e.length&&e.push(".")}return b+e.join("/")+c}function d(b){var d=b[i.PATH]||"";return d=c(d),b[i.PATH]=d,a(b[i.SCHEME],b[i.USER_INFO],b[i.DOMAIN],b[i.PORT],b[i.PATH],b[i.QUERY_DATA],b[i.FRAGMENT])}function e(a){var c=b(a);return d(c)}function f(a,c){var e=b(c),f=b(a);if(e[i.SCHEME])return d(e);e[i.SCHEME]=f[i.SCHEME];for(var g=i.SCHEME;g<=i.PORT;g++)e[g]||(e[g]=f[g]);if("/"==e[i.PATH][0])return d(e);var h=f[i.PATH],j=h.lastIndexOf("/");return h=h.slice(0,j+1)+e[i.PATH],e[i.PATH]=h,d(e)}function g(a){if(!a)return!1;if("/"===a[0])return!0;var c=b(a);return c[i.SCHEME]?!0:!1}var h=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$"),i={SCHEME:1,USER_INFO:2,DOMAIN:3,PORT:4,PATH:5,QUERY_DATA:6,FRAGMENT:7};$traceurRuntime.canonicalizeUrl=e,$traceurRuntime.isAbsolute=g,$traceurRuntime.removeDotSegments=c,$traceurRuntime.resolveUrl=f}(),function(a){"use strict";function b(a){if(a){var b=p.normalize(a);return i[b]}}function c(a){var b=arguments[1],c=Object.create(null);return Object.getOwnPropertyNames(a).forEach(function(d){var e,f;if(b===o){var g=Object.getOwnPropertyDescriptor(a,d);g.get&&(e=g.get)}e||(f=a[d],e=function(){return f}),Object.defineProperty(c,d,{get:e,enumerable:!0})}),Object.preventExtensions(c),c}var d,e=$traceurRuntime,f=e.canonicalizeUrl,g=e.resolveUrl,h=e.isAbsolute,i=Object.create(null);d=a.location&&a.location.href?g(a.location.href,"./"):"";var j=function(a,b){this.url=a,this.value_=b};$traceurRuntime.createClass(j,{},{});var k=function(a,b){this.message=this.constructor.name+(b?": '"+b+"'":"")+" in "+a};$traceurRuntime.createClass(k,{loadedBy:function(a){this.message+="\n loaded by "+a}},{},Error);var l=function(a,b){$traceurRuntime.superCall(this,m.prototype,"constructor",[a,null]),this.func=b},m=l;$traceurRuntime.createClass(l,{getUncoatedModule:function(){if(this.value_)return this.value_;try{return this.value_=this.func.call(a)}catch(b){if(b instanceof k)throw b.loadedBy(this.url),b;throw new k(this.url,b)}}},{},j);var n=Object.create(null),o={},p={normalize:function(a,b){if("string"!=typeof a)throw new TypeError("module name must be a string, not "+typeof a);if(h(a))return f(a);if(/[^\.]\/\.\.\//.test(a))throw new Error("module name embeds /../: "+a);return"."===a[0]&&b?g(b,a):f(a)},get:function(a){var d=b(a);if(!d)return void 0;var e=n[d.url];return e?e:(e=c(d.getUncoatedModule(),o),n[d.url]=e)},set:function(a,b){a=String(a),i[a]=new l(a,function(){return b}),n[a]=b},get baseURL(){return d},set baseURL(a){d=String(a)},registerModule:function(a,b){var c=p.normalize(a);if(i[c])throw new Error("duplicate module named "+c);i[c]=new l(c,b)},bundleStore:Object.create(null),register:function(a,b,c){b&&(b.length||c.length)?this.bundleStore[a]={deps:b,execute:function(){var a=arguments,d={};b.forEach(function(b,c){return d[b]=a[c]});var e=c.call(this,d);return e.execute.call(this),e.exports}}:this.registerModule(a,c)},getAnonymousModule:function(b){return new c(b.call(a),o)},getForTesting:function(a){var b=this;return this.testingPrefix_||Object.keys(n).some(function(a){var c=/(traceur@[^\/]*\/)/.exec(a);return c?(b.testingPrefix_=c[1],!0):void 0}),this.get(this.testingPrefix_+a)}};p.set("@traceur/src/runtime/ModuleStore",new c({ModuleStore:p}));var q=$traceurRuntime.setupGlobals;$traceurRuntime.setupGlobals=function(a){q(a)},$traceurRuntime.ModuleStore=p,a.System={register:p.register.bind(p),get:p.get,set:p.set,normalize:p.normalize},$traceurRuntime.getModuleImpl=function(a){var c=b(a);return c&&c.getUncoatedModule()}}("undefined"!=typeof global?global:this),System.register("traceur-runtime@0.0.58/src/runtime/polyfills/utils",[],function(){"use strict";function a(a){return a>>>0}function b(a){return a&&("object"==typeof a||"function"==typeof a)}function c(a){return"function"==typeof a}function d(a){return"number"==typeof a}function e(a){return a=+a,u(a)?0:0!==a&&t(a)?a>0?s(a):r(a):a}function f(a){var b=e(a);return 0>b?0:w(b,y)}function g(a){return b(a)?a[Symbol.iterator]:void 0}function h(a){return c(a)}function i(a,b){return{value:a,done:b}}function j(a,b,c){b in a||Object.defineProperty(a,b,c)}function k(a,b,c){j(a,b,{value:c,configurable:!0,enumerable:!1,writable:!0})}function l(a,b,c){j(a,b,{value:c,configurable:!1,enumerable:!1,writable:!1})}function m(a,b){for(var c=0;c<b.length;c+=2){var d=b[c],e=b[c+1];k(a,d,e)}}function n(a,b){for(var c=0;c<b.length;c+=2){var d=b[c],e=b[c+1];l(a,d,e)}}function o(a,b,c){c&&c.iterator&&!a[c.iterator]&&(a["@@iterator"]&&(b=a["@@iterator"]),Object.defineProperty(a,c.iterator,{value:b,configurable:!0,enumerable:!1,writable:!0}))}function p(a){z.push(a)}function q(a){z.forEach(function(b){return b(a)})}var r=Math.ceil,s=Math.floor,t=isFinite,u=isNaN,v=Math.pow,w=Math.min,x=$traceurRuntime.toObject,y=v(2,53)-1,z=[];return{get toObject(){return x},get toUint32(){return a},get isObject(){return b},get isCallable(){return c},get isNumber(){return d},get toInteger(){return e},get toLength(){return f},get checkIterable(){return g},get isConstructor(){return h},get createIteratorResultObject(){return i},get maybeDefine(){return j},get maybeDefineMethod(){return k},get maybeDefineConst(){return l},get maybeAddFunctions(){return m},get maybeAddConsts(){return n},get maybeAddIterator(){return o},get registerPolyfill(){return p},get polyfillAll(){return q}}}),System.register("traceur-runtime@0.0.58/src/runtime/polyfills/Map",[],function(){"use strict";function a(a,b){if(e(b)){var c=h(b);return c&&a.objectIndex_[c.hash]}return"string"==typeof b?a.stringIndex_[b]:a.primitiveIndex_[b]}function b(a){a.entries_=[],a.objectIndex_=Object.create(null),a.stringIndex_=Object.create(null),a.primitiveIndex_=Object.create(null),a.deletedCount_=0}function c(a){var b=a,c=b.Object,d=b.Symbol;a.Map||(a.Map=k);var e=a.Map.prototype;e.entries&&(f(e,e.entries,d),f(c.getPrototypeOf((new a.Map).entries()),function(){return this},d))}var d=System.get("traceur-runtime@0.0.58/src/runtime/polyfills/utils"),e=d.isObject,f=d.maybeAddIterator,g=d.registerPolyfill,h=$traceurRuntime.getOwnHashObject,i=Object.prototype.hasOwnProperty,j={},k=function(){var a=arguments[0];if(!e(this))throw new TypeError("Map called on incompatible type");if(i.call(this,"entries_"))throw new TypeError("Map can not be reentrantly initialised");if(b(this),null!==a&&void 0!==a)for(var c,d=a[Symbol.iterator]();!(c=d.next()).done;){var f=c.value,g=f[0],h=f[1];this.set(g,h)}};return $traceurRuntime.createClass(k,{get size(){return this.entries_.length/2-this.deletedCount_},get:function(b){var c=a(this,b);return void 0!==c?this.entries_[c+1]:void 0},set:function(b,c){var d=e(b),f="string"==typeof b,g=a(this,b);if(void 0!==g)this.entries_[g+1]=c;else if(g=this.entries_.length,this.entries_[g]=b,this.entries_[g+1]=c,d){var i=h(b),j=i.hash;this.objectIndex_[j]=g}else f?this.stringIndex_[b]=g:this.primitiveIndex_[b]=g;return this},has:function(b){return void 0!==a(this,b)},"delete":function(a){var b,c,d=e(a),f="string"==typeof a;if(d){var g=h(a);g&&(b=this.objectIndex_[c=g.hash],delete this.objectIndex_[c])}else f?(b=this.stringIndex_[a],delete this.stringIndex_[a]):(b=this.primitiveIndex_[a],delete this.primitiveIndex_[a]);void 0!==b&&(this.entries_[b]=j,this.entries_[b+1]=void 0,this.deletedCount_++)},clear:function(){b(this)},forEach:function(a){for(var b=arguments[1],c=0,d=this.entries_.length;d>c;c+=2){var e=this.entries_[c],f=this.entries_[c+1];e!==j&&a.call(b,f,e,this)}},entries:$traceurRuntime.initGeneratorFunction(function l(){var a,b,c,d;return $traceurRuntime.createGeneratorInstance(function(e){for(;;)switch(e.state){case 0:a=0,b=this.entries_.length,e.state=12;break;case 12:e.state=b>a?8:-2;break;case 4:a+=2,e.state=12;break;case 8:c=this.entries_[a],d=this.entries_[a+1],e.state=9;break;case 9:e.state=c===j?4:6;break;case 6:return e.state=2,[c,d];case 2:e.maybeThrow(),e.state=4;break;default:return e.end()}},l,this)}),keys:$traceurRuntime.initGeneratorFunction(function m(){var a,b,c,d;return $traceurRuntime.createGeneratorInstance(function(e){for(;;)switch(e.state){case 0:a=0,b=this.entries_.length,e.state=12;break;case 12:e.state=b>a?8:-2;break;case 4:a+=2,e.state=12;break;case 8:c=this.entries_[a],d=this.entries_[a+1],e.state=9;break;case 9:e.state=c===j?4:6;break;case 6:return e.state=2,c;case 2:e.maybeThrow(),e.state=4;break;default:return e.end()}},m,this)}),values:$traceurRuntime.initGeneratorFunction(function n(){var a,b,c,d;return $traceurRuntime.createGeneratorInstance(function(e){for(;;)switch(e.state){case 0:a=0,b=this.entries_.length,e.state=12;break;case 12:e.state=b>a?8:-2;break;case 4:a+=2,e.state=12;break;case 8:c=this.entries_[a],d=this.entries_[a+1],e.state=9;break;case 9:e.state=c===j?4:6;break;case 6:return e.state=2,d;case 2:e.maybeThrow(),e.state=4;break;default:return e.end()}},n,this)})},{}),Object.defineProperty(k.prototype,Symbol.iterator,{configurable:!0,writable:!0,value:k.prototype.entries}),g(c),{get Map(){return k},get polyfillMap(){return c}}}),System.get("traceur-runtime@0.0.58/src/runtime/polyfills/Map"),System.register("traceur-runtime@0.0.58/src/runtime/polyfills/Set",[],function(){"use strict";function a(a){a.map_=new g}function b(a){var b=a,c=b.Object,d=b.Symbol;a.Set||(a.Set=i);var f=a.Set.prototype;f.values&&(e(f,f.values,d),e(c.getPrototypeOf((new a.Set).values()),function(){return this},d))}var c=System.get("traceur-runtime@0.0.58/src/runtime/polyfills/utils"),d=c.isObject,e=c.maybeAddIterator,f=c.registerPolyfill,g=System.get("traceur-runtime@0.0.58/src/runtime/polyfills/Map").Map,h=($traceurRuntime.getOwnHashObject,Object.prototype.hasOwnProperty),i=function(){var b=arguments[0];if(!d(this))throw new TypeError("Set called on incompatible type");if(h.call(this,"map_"))throw new TypeError("Set can not be reentrantly initialised");if(a(this),null!==b&&void 0!==b)for(var c,e=b[Symbol.iterator]();!(c=e.next()).done;){var f=c.value;this.add(f)}};return $traceurRuntime.createClass(i,{get size(){return this.map_.size},has:function(a){return this.map_.has(a)},add:function(a){return this.map_.set(a,a)},"delete":function(a){return this.map_.delete(a)},clear:function(){return this.map_.clear()},forEach:function(a){var b=arguments[1],c=this;return this.map_.forEach(function(d,e){a.call(b,e,e,c)})},values:$traceurRuntime.initGeneratorFunction(function j(){var a,b;return $traceurRuntime.createGeneratorInstance(function(c){for(;;)switch(c.state){case 0:a=this.map_.keys()[Symbol.iterator](),c.sent=void 0,c.action="next",c.state=12;break;case 12:b=a[c.action](c.sentIgnoreThrow),c.state=9;break;case 9:c.state=b.done?3:2;break;case 3:c.sent=b.value,c.state=-2;break;case 2:return c.state=12,b.value;default:return c.end()}},j,this)}),entries:$traceurRuntime.initGeneratorFunction(function k(){var a,b;return $traceurRuntime.createGeneratorInstance(function(c){for(;;)switch(c.state){case 0:a=this.map_.entries()[Symbol.iterator](),c.sent=void 0,c.action="next",c.state=12;break;case 12:b=a[c.action](c.sentIgnoreThrow),c.state=9;break;case 9:c.state=b.done?3:2;break;case 3:c.sent=b.value,c.state=-2;break;case 2:return c.state=12,b.value;default:return c.end()}},k,this)})},{}),Object.defineProperty(i.prototype,Symbol.iterator,{configurable:!0,writable:!0,value:i.prototype.values}),Object.defineProperty(i.prototype,"keys",{configurable:!0,writable:!0,value:i.prototype.values}),f(b),{get Set(){return i},get polyfillSet(){return b}}}),System.get("traceur-runtime@0.0.58/src/runtime/polyfills/Set"),System.register("traceur-runtime@0.0.58/node_modules/rsvp/lib/rsvp/asap",[],function(){"use strict";function a(a,b){var c=j.push([a,b]);1===c&&f()}function b(){return function(){process.nextTick(e)}}function c(){var a=0,b=new i(e),c=document.createTextNode("");return b.observe(c,{characterData:!0}),function(){c.data=a=++a%2}}function d(){return function(){setTimeout(e,1)}}function e(){for(var a=0;a<j.length;a++){var b=j[a],c=b[0],d=b[1];c(d)}j=[]}var f,g=a,h="undefined"!=typeof window?window:{},i=h.MutationObserver||h.WebKitMutationObserver,j=[];return f="undefined"!=typeof process&&"[object process]"==={}.toString.call(process)?b():i?c():d(),{get default(){return g}}}),System.register("traceur-runtime@0.0.58/src/runtime/polyfills/Promise",[],function(){"use strict";function a(a){return a&&"object"==typeof a&&void 0!==a.status_}function b(a){return a}function c(a){throw a}function d(a){var d=void 0!==arguments[1]?arguments[1]:b,f=void 0!==arguments[2]?arguments[2]:c,g=e(a.constructor);switch(a.status_){case void 0:throw TypeError;case 0:a.onResolve_.push(d,g),a.onReject_.push(f,g);break;case 1:k(a.value_,[d,g]);break;case-1:k(a.value_,[f,g])}return g.promise}function e(a){if(this===t){var b=g(new t(r));return{promise:b,resolve:function(a){h(b,a)},reject:function(a){i(b,a)}}}var c={};return c.promise=new a(function(a,b){c.resolve=a,c.reject=b}),c}function f(a,b,c,d,e){return a.status_=b,a.value_=c,a.onResolve_=d,a.onReject_=e,a}function g(a){return f(a,0,void 0,[],[])}function h(a,b){j(a,1,b,a.onResolve_)}function i(a,b){j(a,-1,b,a.onReject_)}function j(a,b,c,d){0===a.status_&&(k(c,d),f(a,b,c))}function k(a,b){p(function(){for(var c=0;c<b.length;c+=2)l(a,b[c],b[c+1])})}function l(b,c,e){try{var f=c(b);if(f===e.promise)throw new TypeError;a(f)?d(f,e.resolve,e.reject):e.resolve(f)}catch(g){try{e.reject(g)}catch(g){}}}function m(a){return a&&("object"==typeof a||"function"==typeof a)}function n(b,c){if(!a(c)&&m(c)){var d;try{d=c.then}catch(f){var g=u.call(b,f);return c[v]=g,g}if("function"==typeof d){var h=c[v];if(h)return h;var i=e(b);c[v]=i.promise;try{d.call(c,i.resolve,i.reject)}catch(f){i.reject(f)}return i.promise}}return c}function o(a){a.Promise||(a.Promise=s)}var p=System.get("traceur-runtime@0.0.58/node_modules/rsvp/lib/rsvp/asap").default,q=System.get("traceur-runtime@0.0.58/src/runtime/polyfills/utils").registerPolyfill,r={},s=function(a){if(a!==r){if("function"!=typeof a)throw new TypeError;var b=g(this);try{a(function(a){h(b,a)},function(a){i(b,a)})}catch(c){i(b,c)}}};$traceurRuntime.createClass(s,{"catch":function(a){return this.then(void 0,a)},then:function(e,f){"function"!=typeof e&&(e=b),"function"!=typeof f&&(f=c);var g=this,h=this.constructor;return d(this,function(b){return b=n(h,b),b===g?f(new TypeError):a(b)?b.then(e,f):e(b)},f)}},{resolve:function(a){return this===t?f(new t(r),1,a):new this(function(b){b(a)})},reject:function(a){return this===t?f(new t(r),-1,a):new this(function(b,c){c(a)})},cast:function(b){if(b instanceof this)return b;if(a(b)){var c=e(this);return d(b,c.resolve,c.reject),c.promise}return this.resolve(b)},all:function(a){var b=e(this),c=[];try{var d=a.length;if(0===d)b.resolve(c);else for(var f=0;f<a.length;f++)this.resolve(a[f]).then(function(a,e){c[a]=e,0===--d&&b.resolve(c)}.bind(void 0,f),function(a){b.reject(a)})}catch(g){b.reject(g)}return b.promise},race:function(a){var b=e(this);try{for(var c=0;c<a.length;c++)this.resolve(a[c]).then(function(a){b.resolve(a)},function(a){b.reject(a)})}catch(d){b.reject(d)}return b.promise}});var t=s,u=t.reject,v="@@thenable";return q(o),{get Promise(){return s},get polyfillPromise(){return o}}}),System.get("traceur-runtime@0.0.58/src/runtime/polyfills/Promise"),System.register("traceur-runtime@0.0.58/src/runtime/polyfills/StringIterator",[],function(){"use strict";function a(a){var b=String(a),c=Object.create(k.prototype);return c[h(i)]=b,c[h(j)]=0,c}var b,c=System.get("traceur-runtime@0.0.58/src/runtime/polyfills/utils"),d=c.createIteratorResultObject,e=c.isObject,f=$traceurRuntime,g=f.hasOwnProperty,h=f.toProperty,i=Symbol("iteratedString"),j=Symbol("stringIteratorNextIndex"),k=function(){};return $traceurRuntime.createClass(k,(b={},Object.defineProperty(b,"next",{value:function(){var a=this;if(!e(a)||!g(a,i))throw new TypeError("this must be a StringIterator object");var b=a[h(i)];if(void 0===b)return d(void 0,!0);var c=a[h(j)],f=b.length;if(c>=f)return a[h(i)]=void 0,d(void 0,!0);var k,l=b.charCodeAt(c);if(55296>l||l>56319||c+1===f)k=String.fromCharCode(l);else{var m=b.charCodeAt(c+1);k=56320>m||m>57343?String.fromCharCode(l):String.fromCharCode(l)+String.fromCharCode(m)}return a[h(j)]=c+k.length,d(k,!1)},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(b,Symbol.iterator,{value:function(){return this},configurable:!0,enumerable:!0,writable:!0}),b),{}),{get createStringIterator(){return a}}}),System.register("traceur-runtime@0.0.58/src/runtime/polyfills/String",[],function(){"use strict";function a(a){var b=String(this);if(null==this||"[object RegExp]"==o.call(a))throw TypeError();var c=b.length,d=String(a),e=(d.length,arguments.length>1?arguments[1]:void 0),f=e?Number(e):0;isNaN(f)&&(f=0);var g=Math.min(Math.max(f,0),c);return p.call(b,d,f)==g}function b(a){var b=String(this);if(null==this||"[object RegExp]"==o.call(a))throw TypeError();var c=b.length,d=String(a),e=d.length,f=c;if(arguments.length>1){var g=arguments[1];void 0!==g&&(f=g?Number(g):0,isNaN(f)&&(f=0))}var h=Math.min(Math.max(f,0),c),i=h-e;return 0>i?!1:q.call(b,d,i)==i}function c(a){if(null==this)throw TypeError();var b=String(this),c=b.length,d=String(a),e=(d.length,arguments.length>1?arguments[1]:void 0),f=e?Number(e):0;isNaN(f)&&(f=0);Math.min(Math.max(f,0),c);return-1!=p.call(b,d,f)}function d(a){if(null==this)throw TypeError();var b=String(this),c=a?Number(a):0;if(isNaN(c)&&(c=0),0>c||1/0==c)throw RangeError();if(0==c)return"";for(var d="";c--;)d+=b;return d}function e(a){if(null==this)throw TypeError();var b=String(this),c=b.length,d=a?Number(a):0;if(isNaN(d)&&(d=0),0>d||d>=c)return void 0;var e,f=b.charCodeAt(d);return f>=55296&&56319>=f&&c>d+1&&(e=b.charCodeAt(d+1),e>=56320&&57343>=e)?1