jskit_rails 1.2.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b5c0bc5a73335e659b38ccf41614e8dfa3e64d79
4
- data.tar.gz: 58fb014cbaf2bd8be0851ebc62640347bbd4b603
3
+ metadata.gz: 8be4087240bb5bcfabd77ccd006bbdde23ae5f4e
4
+ data.tar.gz: 9c9217a2ae99809335411531b3f2186b36bfccdb
5
5
  SHA512:
6
- metadata.gz: b9b0c239b341b590a4c9e85e84a51ddd0526485b361be04c2177d083c9e35b57bd500f0ace924983c76a0d5629fce318df7aa92d811a59b98bce6a17048bdd43
7
- data.tar.gz: 7f691a5dd1074e7036263188c4ccce6c4c8b4c522d6949abf7e1b691d016145201d1bf8f6e9b56f0d9f41b342141c208964cf8fe3f25a57a43551d1489a73e27
6
+ metadata.gz: 7f8df0a2ddbde6b3b458a5412589143d4491681901ffed69c453fb716450fa59f870a59234f2d49ec2f282ab5827263135eb712dccd991913452c702e60a28da
7
+ data.tar.gz: 9ca356034d993e0ff3a4a058e5aeb369507f4cbf9304100bcb1d62e24ae0b160043ff54bff0b5c9d641c9802354dc4355795d0b53b982eb38e237c2e7a1340aa
@@ -3846,122 +3846,122 @@ function assert (test, message) {
3846
3846
  var lookup = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
3847
3847
 
3848
3848
  ;(function (exports) {
3849
- 'use strict';
3849
+ 'use strict';
3850
3850
 
3851
3851
  var Arr = (typeof Uint8Array !== 'undefined')
3852
3852
  ? Uint8Array
3853
3853
  : Array
3854
3854
 
3855
- var PLUS = '+'.charCodeAt(0)
3856
- var SLASH = '/'.charCodeAt(0)
3857
- var NUMBER = '0'.charCodeAt(0)
3858
- var LOWER = 'a'.charCodeAt(0)
3859
- var UPPER = 'A'.charCodeAt(0)
3860
-
3861
- function decode (elt) {
3862
- var code = elt.charCodeAt(0)
3863
- if (code === PLUS)
3864
- return 62 // '+'
3865
- if (code === SLASH)
3866
- return 63 // '/'
3867
- if (code < NUMBER)
3868
- return -1 //no match
3869
- if (code < NUMBER + 10)
3870
- return code - NUMBER + 26 + 26
3871
- if (code < UPPER + 26)
3872
- return code - UPPER
3873
- if (code < LOWER + 26)
3874
- return code - LOWER + 26
3875
- }
3876
-
3877
- function b64ToByteArray (b64) {
3878
- var i, j, l, tmp, placeHolders, arr
3879
-
3880
- if (b64.length % 4 > 0) {
3881
- throw new Error('Invalid string. Length must be a multiple of 4')
3882
- }
3883
-
3884
- // the number of equal signs (place holders)
3885
- // if there are two placeholders, than the two characters before it
3886
- // represent one byte
3887
- // if there is only one, then the three characters before it represent 2 bytes
3888
- // this is just a cheap hack to not do indexOf twice
3889
- var len = b64.length
3890
- placeHolders = '=' === b64.charAt(len - 2) ? 2 : '=' === b64.charAt(len - 1) ? 1 : 0
3891
-
3892
- // base64 is 4/3 + up to two characters of the original data
3893
- arr = new Arr(b64.length * 3 / 4 - placeHolders)
3894
-
3895
- // if there are placeholders, only get up to the last complete 4 chars
3896
- l = placeHolders > 0 ? b64.length - 4 : b64.length
3897
-
3898
- var L = 0
3899
-
3900
- function push (v) {
3901
- arr[L++] = v
3902
- }
3903
-
3904
- for (i = 0, j = 0; i < l; i += 4, j += 3) {
3905
- tmp = (decode(b64.charAt(i)) << 18) | (decode(b64.charAt(i + 1)) << 12) | (decode(b64.charAt(i + 2)) << 6) | decode(b64.charAt(i + 3))
3906
- push((tmp & 0xFF0000) >> 16)
3907
- push((tmp & 0xFF00) >> 8)
3908
- push(tmp & 0xFF)
3909
- }
3910
-
3911
- if (placeHolders === 2) {
3912
- tmp = (decode(b64.charAt(i)) << 2) | (decode(b64.charAt(i + 1)) >> 4)
3913
- push(tmp & 0xFF)
3914
- } else if (placeHolders === 1) {
3915
- tmp = (decode(b64.charAt(i)) << 10) | (decode(b64.charAt(i + 1)) << 4) | (decode(b64.charAt(i + 2)) >> 2)
3916
- push((tmp >> 8) & 0xFF)
3917
- push(tmp & 0xFF)
3918
- }
3919
-
3920
- return arr
3921
- }
3922
-
3923
- function uint8ToBase64 (uint8) {
3924
- var i,
3925
- extraBytes = uint8.length % 3, // if we have 1 byte left, pad 2 bytes
3926
- output = "",
3927
- temp, length
3928
-
3929
- function encode (num) {
3930
- return lookup.charAt(num)
3931
- }
3932
-
3933
- function tripletToBase64 (num) {
3934
- return encode(num >> 18 & 0x3F) + encode(num >> 12 & 0x3F) + encode(num >> 6 & 0x3F) + encode(num & 0x3F)
3935
- }
3936
-
3937
- // go through the array every three bytes, we'll deal with trailing stuff later
3938
- for (i = 0, length = uint8.length - extraBytes; i < length; i += 3) {
3939
- temp = (uint8[i] << 16) + (uint8[i + 1] << 8) + (uint8[i + 2])
3940
- output += tripletToBase64(temp)
3941
- }
3942
-
3943
- // pad the end with zeros, but make sure to not forget the extra bytes
3944
- switch (extraBytes) {
3945
- case 1:
3946
- temp = uint8[uint8.length - 1]
3947
- output += encode(temp >> 2)
3948
- output += encode((temp << 4) & 0x3F)
3949
- output += '=='
3950
- break
3951
- case 2:
3952
- temp = (uint8[uint8.length - 2] << 8) + (uint8[uint8.length - 1])
3953
- output += encode(temp >> 10)
3954
- output += encode((temp >> 4) & 0x3F)
3955
- output += encode((temp << 2) & 0x3F)
3956
- output += '='
3957
- break
3958
- }
3959
-
3960
- return output
3961
- }
3962
-
3963
- exports.toByteArray = b64ToByteArray
3964
- exports.fromByteArray = uint8ToBase64
3855
+ var PLUS = '+'.charCodeAt(0)
3856
+ var SLASH = '/'.charCodeAt(0)
3857
+ var NUMBER = '0'.charCodeAt(0)
3858
+ var LOWER = 'a'.charCodeAt(0)
3859
+ var UPPER = 'A'.charCodeAt(0)
3860
+
3861
+ function decode (elt) {
3862
+ var code = elt.charCodeAt(0)
3863
+ if (code === PLUS)
3864
+ return 62 // '+'
3865
+ if (code === SLASH)
3866
+ return 63 // '/'
3867
+ if (code < NUMBER)
3868
+ return -1 //no match
3869
+ if (code < NUMBER + 10)
3870
+ return code - NUMBER + 26 + 26
3871
+ if (code < UPPER + 26)
3872
+ return code - UPPER
3873
+ if (code < LOWER + 26)
3874
+ return code - LOWER + 26
3875
+ }
3876
+
3877
+ function b64ToByteArray (b64) {
3878
+ var i, j, l, tmp, placeHolders, arr
3879
+
3880
+ if (b64.length % 4 > 0) {
3881
+ throw new Error('Invalid string. Length must be a multiple of 4')
3882
+ }
3883
+
3884
+ // the number of equal signs (place holders)
3885
+ // if there are two placeholders, than the two characters before it
3886
+ // represent one byte
3887
+ // if there is only one, then the three characters before it represent 2 bytes
3888
+ // this is just a cheap hack to not do indexOf twice
3889
+ var len = b64.length
3890
+ placeHolders = '=' === b64.charAt(len - 2) ? 2 : '=' === b64.charAt(len - 1) ? 1 : 0
3891
+
3892
+ // base64 is 4/3 + up to two characters of the original data
3893
+ arr = new Arr(b64.length * 3 / 4 - placeHolders)
3894
+
3895
+ // if there are placeholders, only get up to the last complete 4 chars
3896
+ l = placeHolders > 0 ? b64.length - 4 : b64.length
3897
+
3898
+ var L = 0
3899
+
3900
+ function push (v) {
3901
+ arr[L++] = v
3902
+ }
3903
+
3904
+ for (i = 0, j = 0; i < l; i += 4, j += 3) {
3905
+ tmp = (decode(b64.charAt(i)) << 18) | (decode(b64.charAt(i + 1)) << 12) | (decode(b64.charAt(i + 2)) << 6) | decode(b64.charAt(i + 3))
3906
+ push((tmp & 0xFF0000) >> 16)
3907
+ push((tmp & 0xFF00) >> 8)
3908
+ push(tmp & 0xFF)
3909
+ }
3910
+
3911
+ if (placeHolders === 2) {
3912
+ tmp = (decode(b64.charAt(i)) << 2) | (decode(b64.charAt(i + 1)) >> 4)
3913
+ push(tmp & 0xFF)
3914
+ } else if (placeHolders === 1) {
3915
+ tmp = (decode(b64.charAt(i)) << 10) | (decode(b64.charAt(i + 1)) << 4) | (decode(b64.charAt(i + 2)) >> 2)
3916
+ push((tmp >> 8) & 0xFF)
3917
+ push(tmp & 0xFF)
3918
+ }
3919
+
3920
+ return arr
3921
+ }
3922
+
3923
+ function uint8ToBase64 (uint8) {
3924
+ var i,
3925
+ extraBytes = uint8.length % 3, // if we have 1 byte left, pad 2 bytes
3926
+ output = "",
3927
+ temp, length
3928
+
3929
+ function encode (num) {
3930
+ return lookup.charAt(num)
3931
+ }
3932
+
3933
+ function tripletToBase64 (num) {
3934
+ return encode(num >> 18 & 0x3F) + encode(num >> 12 & 0x3F) + encode(num >> 6 & 0x3F) + encode(num & 0x3F)
3935
+ }
3936
+
3937
+ // go through the array every three bytes, we'll deal with trailing stuff later
3938
+ for (i = 0, length = uint8.length - extraBytes; i < length; i += 3) {
3939
+ temp = (uint8[i] << 16) + (uint8[i + 1] << 8) + (uint8[i + 2])
3940
+ output += tripletToBase64(temp)
3941
+ }
3942
+
3943
+ // pad the end with zeros, but make sure to not forget the extra bytes
3944
+ switch (extraBytes) {
3945
+ case 1:
3946
+ temp = uint8[uint8.length - 1]
3947
+ output += encode(temp >> 2)
3948
+ output += encode((temp << 4) & 0x3F)
3949
+ output += '=='
3950
+ break
3951
+ case 2:
3952
+ temp = (uint8[uint8.length - 2] << 8) + (uint8[uint8.length - 1])
3953
+ output += encode(temp >> 10)
3954
+ output += encode((temp >> 4) & 0x3F)
3955
+ output += encode((temp << 2) & 0x3F)
3956
+ output += '='
3957
+ break
3958
+ }
3959
+
3960
+ return output
3961
+ }
3962
+
3963
+ exports.toByteArray = b64ToByteArray
3964
+ exports.fromByteArray = uint8ToBase64
3965
3965
  }(typeof exports === 'undefined' ? (this.base64js = {}) : exports))
3966
3966
 
3967
3967
  }).call(this,require("oMfpAn"),typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/node_modules/base64-js/lib/b64.js","/../../node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/node_modules/base64-js/lib")
@@ -10921,77 +10921,36 @@ Object.defineProperties(exports, {
10921
10921
  var $__backbone_45_events_45_standalone__,
10922
10922
  $__lodash__,
10923
10923
  $__string__,
10924
- $__controller__,
10925
- $__application_95_controller__;
10924
+ $__controller__;
10926
10925
  var Events = ($__backbone_45_events_45_standalone__ = require("backbone-events-standalone"), $__backbone_45_events_45_standalone__ && $__backbone_45_events_45_standalone__.__esModule && $__backbone_45_events_45_standalone__ || {default: $__backbone_45_events_45_standalone__}).default;
10927
10926
  var _ = ($__lodash__ = require("lodash"), $__lodash__ && $__lodash__.__esModule && $__lodash__ || {default: $__lodash__}).default;
10928
10927
  var s = ($__string__ = require("./string"), $__string__ && $__string__.__esModule && $__string__ || {default: $__string__}).default;
10929
10928
  var BaseController = ($__controller__ = require("./controller"), $__controller__ && $__controller__.__esModule && $__controller__ || {default: $__controller__}).default;
10930
- var BaseApplicationController = ($__application_95_controller__ = require("./application_controller"), $__application_95_controller__ && $__application_95_controller__.__esModule && $__application_95_controller__ || {default: $__application_95_controller__}).default;
10931
10929
  var Application = function Application() {
10932
10930
  this.Controllers = {};
10933
10931
  this.Dispatcher = _.clone(Events);
10934
10932
  };
10935
- ($traceurRuntime.createClass)(Application, {
10936
- createController: function(name) {
10937
- var attributes = arguments[1] !== (void 0) ? arguments[1] : {};
10938
- var dispatcher = arguments[2];
10939
- dispatcher = dispatcher || this.Dispatcher;
10933
+ ($traceurRuntime.createClass)(Application, {createController: function(name, attrs) {
10934
+ attrs = attrs || {};
10935
+ var dispatcher = attrs.dispatcher || this.Dispatcher;
10936
+ if (attrs.dispatcher)
10937
+ delete attrs.dispatcher;
10940
10938
  name = s.constantize(name);
10941
- attributes = _.extend(attributes, {name: name});
10942
- var controllerType = name.match(/^Application/) ? "Application" : "Base";
10943
- this.Controllers[name] = this[("create" + controllerType + "Controller")](attributes, dispatcher);
10944
- return this.Controllers[name];
10945
- },
10946
- createBaseController: function(attributes, dispatcher) {
10939
+ attrs = _.extend(attrs, {name: name});
10947
10940
  var Controller = function Controller() {
10948
10941
  $traceurRuntime.defaultSuperCall(this, $Controller.prototype, arguments);
10949
10942
  };
10950
10943
  var $Controller = Controller;
10951
10944
  ($traceurRuntime.createClass)(Controller, {}, {}, BaseController);
10952
- _.extend(Controller.prototype, attributes);
10953
- this[(attributes.name + "Controller")] = Controller;
10954
- return new Controller(dispatcher);
10955
- },
10956
- createApplicationController: function(attributes, dispatcher) {
10957
- var ApplicationController = function ApplicationController() {
10958
- $traceurRuntime.defaultSuperCall(this, $ApplicationController.prototype, arguments);
10959
- };
10960
- var $ApplicationController = ApplicationController;
10961
- ($traceurRuntime.createClass)(ApplicationController, {}, {}, BaseApplicationController);
10962
- _.extend(ApplicationController.prototype, attributes);
10963
- this.ApplicationController = ApplicationController;
10964
- return new ApplicationController(dispatcher);
10965
- }
10966
- }, {});
10945
+ _.extend(Controller.prototype, attrs);
10946
+ this[(attrs.name + "Controller")] = Controller;
10947
+ this.Controllers[name] = new Controller(dispatcher);
10948
+ return this.Controllers[name];
10949
+ }}, {});
10967
10950
  var $__default = Application;
10968
10951
 
10969
10952
  }).call(this,require("oMfpAn"),typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/application.js","/")
10970
- },{"./application_controller":9,"./controller":10,"./string":12,"backbone-events-standalone":2,"buffer":3,"lodash":7,"oMfpAn":6}],9:[function(require,module,exports){
10971
- (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){
10972
- "use strict";
10973
- Object.defineProperties(exports, {
10974
- default: {get: function() {
10975
- return $__default;
10976
- }},
10977
- __esModule: {value: true}
10978
- });
10979
- var $__lodash__,
10980
- $__controller__;
10981
- var _ = ($__lodash__ = require("lodash"), $__lodash__ && $__lodash__.__esModule && $__lodash__ || {default: $__lodash__}).default;
10982
- var Controller = ($__controller__ = require("./controller"), $__controller__ && $__controller__.__esModule && $__controller__ || {default: $__controller__}).default;
10983
- var ApplicationController = function ApplicationController(dispatcher) {
10984
- this.name = "Application";
10985
- this.controllerName = "ApplicationController";
10986
- this.actions = [{all: "init"}];
10987
- $traceurRuntime.superCall(this, $ApplicationController.prototype, "constructor", [dispatcher]);
10988
- };
10989
- var $ApplicationController = ApplicationController;
10990
- ($traceurRuntime.createClass)(ApplicationController, {init: function() {}}, {}, Controller);
10991
- var $__default = ApplicationController;
10992
-
10993
- }).call(this,require("oMfpAn"),typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/application_controller.js","/")
10994
- },{"./controller":10,"buffer":3,"lodash":7,"oMfpAn":6}],10:[function(require,module,exports){
10953
+ },{"./controller":9,"./string":11,"backbone-events-standalone":2,"buffer":3,"lodash":7,"oMfpAn":6}],9:[function(require,module,exports){
10995
10954
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){
10996
10955
  "use strict";
10997
10956
  Object.defineProperties(exports, {
@@ -11025,18 +10984,8 @@ function registerActions(dispatcher) {
11025
10984
  $__2.dispatcher.on($__2.actionEventName(actionMap.name), $__2[actionMap.method], $__2);
11026
10985
  }), this);
11027
10986
  }
11028
- function setDefaultName(name) {
11029
- if (_.isUndefined(name)) {
11030
- name = "Anonymous";
11031
- } else if (name === "Application") {
11032
- name = "";
11033
- } else {
11034
- name = name;
11035
- }
11036
- return name;
11037
- }
11038
10987
  function setControllerDefaults() {
11039
- this.name = setDefaultName(this.name);
10988
+ this.name = this.name || "Anonymous";
11040
10989
  _.defaults(this, {
11041
10990
  eventSeperator: ":",
11042
10991
  actions: [],
@@ -11051,11 +11000,13 @@ var Controller = function Controller(dispatcher) {
11051
11000
  this.dispatcher = dispatcher;
11052
11001
  _.bindAll.apply(this, [this].concat(_.functions(this)));
11053
11002
  setControllerDefaults.call(this);
11003
+ this.actions.unshift("all");
11054
11004
  registerActions.call(this);
11055
11005
  this.initialize();
11056
11006
  };
11057
11007
  ($traceurRuntime.createClass)(Controller, {
11058
11008
  initialize: function() {},
11009
+ all: function() {},
11059
11010
  actionEventName: function(action) {
11060
11011
  return _.compact([this.namespace, this.channel, this.controllerEventName, action]).join(this.eventSeperator);
11061
11012
  }
@@ -11063,7 +11014,7 @@ var Controller = function Controller(dispatcher) {
11063
11014
  var $__default = Controller;
11064
11015
 
11065
11016
  }).call(this,require("oMfpAn"),typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/controller.js","/")
11066
- },{"./string":12,"buffer":3,"lodash":7,"oMfpAn":6}],11:[function(require,module,exports){
11017
+ },{"./string":11,"buffer":3,"lodash":7,"oMfpAn":6}],10:[function(require,module,exports){
11067
11018
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){
11068
11019
  "use strict";
11069
11020
  var $__application__,
@@ -11077,8 +11028,8 @@ var TestDispatcher = ($__test_95_dispatcher__ = require("./test_dispatcher"), $_
11077
11028
  }
11078
11029
  };
11079
11030
 
11080
- }).call(this,require("oMfpAn"),typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_2c4015bd.js","/")
11081
- },{"./application":8,"./test_dispatcher":13,"buffer":3,"oMfpAn":6}],12:[function(require,module,exports){
11031
+ }).call(this,require("oMfpAn"),typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_8d0dc49e.js","/")
11032
+ },{"./application":8,"./test_dispatcher":12,"buffer":3,"oMfpAn":6}],11:[function(require,module,exports){
11082
11033
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){
11083
11034
  "use strict";
11084
11035
  Object.defineProperties(exports, {
@@ -11234,7 +11185,7 @@ var $__default = {
11234
11185
  };
11235
11186
 
11236
11187
  }).call(this,require("oMfpAn"),typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/string.js","/")
11237
- },{"buffer":3,"lodash":7,"oMfpAn":6}],13:[function(require,module,exports){
11188
+ },{"buffer":3,"lodash":7,"oMfpAn":6}],12:[function(require,module,exports){
11238
11189
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){
11239
11190
  "use strict";
11240
11191
  Object.defineProperties(exports, {
@@ -11308,4 +11259,4 @@ var TestDispatcher = function TestDispatcher() {
11308
11259
  var $__default = TestDispatcher;
11309
11260
 
11310
11261
  }).call(this,require("oMfpAn"),typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/test_dispatcher.js","/")
11311
- },{"backbone-events-standalone":2,"buffer":3,"lodash":7,"oMfpAn":6}]},{},[11])
11262
+ },{"backbone-events-standalone":2,"buffer":3,"lodash":7,"oMfpAn":6}]},{},[10])
@@ -1,4 +1,3 @@
1
- !function(t){"use strict";function e(t){return{configurable:!0,enumerable:!1,value:t,writable:!0}}function n(){return"__$"+Math.floor(1e9*Math.random())+"$"+ ++W+"$__"}function r(t){return J[t]}function o(){var t=n();return J[t]=!0,t}function i(t){return"object"==typeof t&&t instanceof s}function u(t){return i(t)?"symbol":typeof t}function a(t){var e=new s(t);if(!(this instanceof a))return e;throw new TypeError("Symbol cannot be new'ed")}function s(t){var e=n();N(this,Z,{value:this}),N(this,q,{value:e}),N(this,K,{value:t}),f(this),V[e]=this}function c(t){var e=t[Y];return e&&e.self===t?e:z(t)?(Q.hash.value=te++,Q.self.value=t,X.value=R(null,Q),N(t,Y,X),X.value):void 0}function f(t){return c(t),P.apply(this,arguments)}function l(t){return c(t),F.apply(this,arguments)}function p(t){return c(t),D.apply(this,arguments)}function h(t){return V[t]||J[t]}function g(t){return i(t)?t[q]:t}function d(t){for(var e=[],n=0;n<t.length;n++)h(t[n])||e.push(t[n]);return e}function v(t){return d(B(t))}function m(t){return d(U(t))}function y(t){for(var e=[],n=B(t),r=0;r<n.length;r++){var o=V[n[r]];o&&e.push(o)}return e}function b(t,e){return $(t,g(e))}function w(t){return L.call(this,g(t))}function _(e){return t.traceur&&t.traceur.options[e]}function j(t,e,n){return i(e)&&(e=e[q]),N(t,e,n),t}function E(t){N(t,"defineProperty",{value:j}),N(t,"getOwnPropertyNames",{value:v}),N(t,"getOwnPropertyDescriptor",{value:b}),N(t.prototype,"hasOwnProperty",{value:w}),N(t,"freeze",{value:f}),N(t,"preventExtensions",{value:l}),N(t,"seal",{value:p}),N(t,"keys",{value:m})}function O(t){for(var e=1;e<arguments.length;e++)for(var n=B(arguments[e]),r=0;r<n.length;r++){var o=n[r];h(o)||!function(e,n){N(t,n,{get:function(){return e[n]},enumerable:!0})}(arguments[e],n[r])}return t}function S(t){return null!=t&&("object"==typeof t||"function"==typeof t)}function A(t){if(null==t)throw M();return x(t)}function k(t){if(null==t)throw new TypeError("Value cannot be converted to an Object");return t}function I(t,e){t.Symbol||(t.Symbol=e,Object.getOwnPropertySymbols=y),t.Symbol.iterator||(t.Symbol.iterator=e("Symbol.iterator"))}function C(t){I(t,a),t.Reflect=t.Reflect||{},t.Reflect.global=t.Reflect.global||t,E(t.Object)}if(!t.$traceurRuntime){var x=Object,M=TypeError,R=x.create,T=x.defineProperties,N=x.defineProperty,P=x.freeze,$=x.getOwnPropertyDescriptor,B=x.getOwnPropertyNames,U=x.keys,L=x.prototype.hasOwnProperty,F=(x.prototype.toString,Object.preventExtensions),D=Object.seal,z=Object.isExtensible,G={"void":function(){},any:function(){},string:function(){},number:function(){},"boolean":function(){}},H=e,W=0,q=n(),K=n(),Z=n(),V=R(null),J=R(null);N(a.prototype,"constructor",e(a)),N(a.prototype,"toString",H(function(){var t=this[Z];if(!_("symbols"))return t[q];if(!t)throw TypeError("Conversion from symbol to string");var e=t[K];return void 0===e&&(e=""),"Symbol("+e+")"})),N(a.prototype,"valueOf",H(function(){var t=this[Z];if(!t)throw TypeError("Conversion from symbol to string");return _("symbols")?t:t[q]})),N(s.prototype,"constructor",e(a)),N(s.prototype,"toString",{value:a.prototype.toString,enumerable:!1}),N(s.prototype,"valueOf",{value:a.prototype.valueOf,enumerable:!1});var Y=o(),X={value:void 0},Q={hash:{value:void 0},self:{value:void 0}},te=0;f(s.prototype),C(t),t.$traceurRuntime={checkObjectCoercible:k,createPrivateName:o,defineProperties:T,defineProperty:N,exportStar:O,getOwnHashObject:c,getOwnPropertyDescriptor:$,getOwnPropertyNames:B,isObject:S,isPrivateName:r,isSymbolString:h,keys:U,setupGlobals:C,toObject:A,toProperty:g,type:G,"typeof":u}}}("undefined"!=typeof global?global:this),function(){"use strict";function t(){for(var t,e=[],n=0,r=0;r<arguments.length;r++){var o=$traceurRuntime.checkObjectCoercible(arguments[r]);if("function"!=typeof o[$traceurRuntime.toProperty(Symbol.iterator)])throw new TypeError("Cannot spread non-iterable object.");for(var i=o[$traceurRuntime.toProperty(Symbol.iterator)]();!(t=i.next()).done;)e[n++]=t.value}return e}$traceurRuntime.spread=t}(),function(){"use strict";function t(t,e){var n=g(t);do{var r=h(n,e);if(r)return r;n=g(n)}while(n);return void 0}function e(t,e,r,o){return n(t,e,r).apply(t,o)}function n(e,n,r){var o=t(n,r);return o?o.get?o.get.call(e):o.value:void 0}function r(e,n,r,o){var i=t(n,r);if(i&&i.set)return i.set.call(e,o),o;throw c("super has no setter '"+r+"'.")}function o(t){for(var e={},n=v(t),r=0;r<n.length;r++){var o=n[r];e[o]=h(t,o)}for(var i=m(t),r=0;r<i.length;r++){var u=i[r];e[$traceurRuntime.toProperty(u)]=h(t,$traceurRuntime.toProperty(u))}return e}function i(t,e,n,r){return p(e,"constructor",{value:t,configurable:!0,enumerable:!1,writable:!0}),arguments.length>3?("function"==typeof r&&(t.__proto__=r),t.prototype=f(u(r),o(e))):t.prototype=e,p(t,"prototype",{configurable:!1,writable:!1}),l(t,o(n))}function u(t){if("function"==typeof t){var e=t.prototype;if(s(e)===e||null===e)return t.prototype;throw new c("super prototype must be an Object or null")}if(null===t)return null;throw new c("Super expression must either be null or a function, not "+typeof t+".")}function a(t,n,r){null!==g(n)&&e(t,n,"constructor",r)}var s=Object,c=TypeError,f=s.create,l=$traceurRuntime.defineProperties,p=$traceurRuntime.defineProperty,h=$traceurRuntime.getOwnPropertyDescriptor,g=($traceurRuntime.getOwnPropertyNames,Object.getPrototypeOf),d=Object,v=d.getOwnPropertyNames,m=d.getOwnPropertySymbols;$traceurRuntime.createClass=i,$traceurRuntime.defaultSuperCall=a,$traceurRuntime.superCall=e,$traceurRuntime.superGet=n,$traceurRuntime.superSet=r}(),function(){"use strict";function t(t){return{configurable:!0,enumerable:!1,value:t,writable:!0}}function e(t){return new Error("Traceur compiler bug: invalid state in state machine: "+t)}function n(){this.state=0,this.GState=m,this.storedException=void 0,this.finallyFallThrough=void 0,this.sent_=void 0,this.returnValue=void 0,this.tryStack_=[]}function r(t,e,n,r){switch(t.GState){case y:throw new Error('"'+n+'" on executing generator');case w:if("next"==n)return{value:void 0,done:!0};throw r;case m:if("throw"===n)throw t.GState=w,r;if(void 0!==r)throw v("Sent value to newborn generator");case b:t.GState=y,t.action=n,t.sent=r;var o=e(t),i=o===t;return i&&(o=t.returnValue),t.GState=i?w:b,{value:o,done:i}}}function o(){}function i(){}function u(t,e,r){var o=f(t,r),i=new n,u=d(e.prototype);return u[E]=i,u[O]=o,u}function a(t){return t.prototype=d(i.prototype),t.__proto__=i,t}function s(){n.call(this),this.err=void 0;var t=this;t.result=new Promise(function(e,n){t.resolve=e,t.reject=n})}function c(t,e){var n=f(t,e),r=new s;return r.createCallback=function(t){return function(e){r.state=t,r.value=e,n(r)}},r.errback=function(t){l(r,t),n(r)},n(r),r.result}function f(t,e){return function(n){for(;;)try{return t.call(e,n)}catch(r){l(n,r)}}}function l(t,e){t.storedException=e;var n=t.tryStack_[t.tryStack_.length-1];return n?(t.state=void 0!==n.catch?n.catch:n.finally,void(void 0!==n.finallyFallThrough&&(t.finallyFallThrough=n.finallyFallThrough))):void t.handleException(e)}var p=$traceurRuntime.createPrivateName,h=$traceurRuntime.defineProperties,g=$traceurRuntime.defineProperty,d=Object.create,v=TypeError,m=0,y=1,b=2,w=3,_=-2,j=-3;n.prototype={pushTry:function(t,e){if(null!==e){for(var n=null,r=this.tryStack_.length-1;r>=0;r--)if(void 0!==this.tryStack_[r].catch){n=this.tryStack_[r].catch;break}null===n&&(n=j),this.tryStack_.push({"finally":e,finallyFallThrough:n})}null!==t&&this.tryStack_.push({"catch":t})},popTry:function(){this.tryStack_.pop()},get sent(){return this.maybeThrow(),this.sent_},set sent(t){this.sent_=t},get sentIgnoreThrow(){return this.sent_},maybeThrow:function(){if("throw"===this.action)throw this.action="next",this.sent_},end:function(){switch(this.state){case _:return this;case j:throw this.storedException;default:throw e(this.state)}},handleException:function(t){throw this.GState=w,this.state=_,t}};var E=p(),O=p();o.prototype=i,g(i,"constructor",t(o)),i.prototype={constructor:i,next:function(t){return r(this[E],this[O],"next",t)},"throw":function(t){return r(this[E],this[O],"throw",t)}},h(i.prototype,{constructor:{enumerable:!1},next:{enumerable:!1},"throw":{enumerable:!1}}),Object.defineProperty(i.prototype,Symbol.iterator,t(function(){return this})),s.prototype=d(n.prototype),s.prototype.end=function(){switch(this.state){case _:this.resolve(this.returnValue);break;case j:this.reject(this.storedException);break;default:this.reject(e(this.state))}},s.prototype.handleException=function(){this.state=j},$traceurRuntime.asyncWrap=c,$traceurRuntime.initGeneratorFunction=a,$traceurRuntime.createGeneratorInstance=u}(),function(){function t(t,e,n,r,o,i,u){var a=[];return t&&a.push(t,":"),n&&(a.push("//"),e&&a.push(e,"@"),a.push(n),r&&a.push(":",r)),o&&a.push(o),i&&a.push("?",i),u&&a.push("#",u),a.join("")}function e(t){return t.match(a)}function n(t){if("/"===t)return"/";for(var e="/"===t[0]?"/":"",n="/"===t.slice(-1)?"/":"",r=t.split("/"),o=[],i=0,u=0;u<r.length;u++){var a=r[u];switch(a){case"":case".":break;case"..":o.length?o.pop():i++;break;default:o.push(a)}}if(!e){for(;i-->0;)o.unshift("..");0===o.length&&o.push(".")}return e+o.join("/")+n}function r(e){var r=e[s.PATH]||"";return r=n(r),e[s.PATH]=r,t(e[s.SCHEME],e[s.USER_INFO],e[s.DOMAIN],e[s.PORT],e[s.PATH],e[s.QUERY_DATA],e[s.FRAGMENT])}function o(t){var n=e(t);return r(n)}function i(t,n){var o=e(n),i=e(t);if(o[s.SCHEME])return r(o);o[s.SCHEME]=i[s.SCHEME];for(var u=s.SCHEME;u<=s.PORT;u++)o[u]||(o[u]=i[u]);if("/"==o[s.PATH][0])return r(o);var a=i[s.PATH],c=a.lastIndexOf("/");return a=a.slice(0,c+1)+o[s.PATH],o[s.PATH]=a,r(o)}function u(t){if(!t)return!1;if("/"===t[0])return!0;var n=e(t);return n[s.SCHEME]?!0:!1}var a=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$"),s={SCHEME:1,USER_INFO:2,DOMAIN:3,PORT:4,PATH:5,QUERY_DATA:6,FRAGMENT:7};$traceurRuntime.canonicalizeUrl=o,$traceurRuntime.isAbsolute=u,$traceurRuntime.removeDotSegments=n,$traceurRuntime.resolveUrl=i}(),function(t){"use strict";function e(t){if(t){var e=v.normalize(t);return s[e]}}function n(t){var e=arguments[1],n=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){var o,i;if(e===d){var u=Object.getOwnPropertyDescriptor(t,r);u.get&&(o=u.get)}o||(i=t[r],o=function(){return i}),Object.defineProperty(n,r,{get:o,enumerable:!0})}),Object.preventExtensions(n),n}var r,o=$traceurRuntime,i=o.canonicalizeUrl,u=o.resolveUrl,a=o.isAbsolute,s=Object.create(null);r=t.location&&t.location.href?u(t.location.href,"./"):"";var c=function(t,e){this.url=t,this.value_=e};$traceurRuntime.createClass(c,{},{});var f=function(t,e){this.message=this.constructor.name+": "+this.stripCause(e)+" in "+t,this.stack=e instanceof l||!e.stack?"":this.stripStack(e.stack)},l=f;$traceurRuntime.createClass(f,{stripError:function(t){return t.replace(/.*Error:/,this.constructor.name+":")},stripCause:function(t){return t?t.message?this.stripError(t.message):t+"":""},loadedBy:function(t){this.stack+="\n loaded by "+t},stripStack:function(t){var e=[];return t.split("\n").some(function(t){return/UncoatedModuleInstantiator/.test(t)?!0:void e.push(t)}),e[0]=this.stripError(e[0]),e.join("\n")}},{},Error);var p=function(t,e){$traceurRuntime.superCall(this,h.prototype,"constructor",[t,null]),this.func=e},h=p;$traceurRuntime.createClass(p,{getUncoatedModule:function(){if(this.value_)return this.value_;try{return this.value_=this.func.call(t)}catch(e){if(e instanceof f)throw e.loadedBy(this.url),e;throw new f(this.url,e)}}},{},c);var g=Object.create(null),d={},v={normalize:function(t,e){if("string"!=typeof t)throw new TypeError("module name must be a string, not "+typeof t);if(a(t))return i(t);if(/[^\.]\/\.\.\//.test(t))throw new Error("module name embeds /../: "+t);return"."===t[0]&&e?u(e,t):i(t)},get:function(t){var r=e(t);if(!r)return void 0;var o=g[r.url];return o?o:(o=n(r.getUncoatedModule(),d),g[r.url]=o)},set:function(t,e){t=String(t),s[t]=new p(t,function(){return e}),g[t]=e},get baseURL(){return r},set baseURL(t){r=String(t)},registerModule:function(t,e){var n=v.normalize(t);if(s[n])throw new Error("duplicate module named "+n);s[n]=new p(n,e)},bundleStore:Object.create(null),register:function(t,e,n){e&&(e.length||n.length)?this.bundleStore[t]={deps:e,execute:function(){var t=arguments,r={};e.forEach(function(e,n){return r[e]=t[n]});var o=n.call(this,r);return o.execute.call(this),o.exports}}:this.registerModule(t,n)},getAnonymousModule:function(e){return new n(e.call(t),d)},getForTesting:function(t){var e=this;return this.testingPrefix_||Object.keys(g).some(function(t){var n=/(traceur@[^\/]*\/)/.exec(t);return n?(e.testingPrefix_=n[1],!0):void 0}),this.get(this.testingPrefix_+t)}};v.set("@traceur/src/runtime/ModuleStore",new n({ModuleStore:v}));var m=$traceurRuntime.setupGlobals;$traceurRuntime.setupGlobals=function(t){m(t)},$traceurRuntime.ModuleStore=v,t.System={register:v.register.bind(v),get:v.get,set:v.set,normalize:v.normalize},$traceurRuntime.getModuleImpl=function(t){var n=e(t);return n&&n.getUncoatedModule()}}("undefined"!=typeof global?global:this),System.register("traceur-runtime@0.0.67/src/runtime/polyfills/utils",[],function(){"use strict";function t(t){return t>>>0}function e(t){return t&&("object"==typeof t||"function"==typeof t)}function n(t){return"function"==typeof t}function r(t){return"number"==typeof t}function o(t){return t=+t,w(t)?0:0!==t&&b(t)?t>0?y(t):m(t):t}function i(t){var e=o(t);return 0>e?0:j(e,O)}function u(t){return e(t)?t[Symbol.iterator]:void 0}function a(t){return n(t)}function s(t,e){return{value:t,done:e}}function c(t,e,n){e in t||Object.defineProperty(t,e,n)}function f(t,e,n){c(t,e,{value:n,configurable:!0,enumerable:!1,writable:!0})}function l(t,e,n){c(t,e,{value:n,configurable:!1,enumerable:!1,writable:!1})}function p(t,e){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1];f(t,r,o)}}function h(t,e){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1];l(t,r,o)}}function g(t,e,n){n&&n.iterator&&!t[n.iterator]&&(t["@@iterator"]&&(e=t["@@iterator"]),Object.defineProperty(t,n.iterator,{value:e,configurable:!0,enumerable:!1,writable:!0}))}function d(t){S.push(t)}function v(t){S.forEach(function(e){return e(t)})}var m=Math.ceil,y=Math.floor,b=isFinite,w=isNaN,_=Math.pow,j=Math.min,E=$traceurRuntime.toObject,O=_(2,53)-1,S=[];return{get toObject(){return E},get toUint32(){return t},get isObject(){return e},get isCallable(){return n},get isNumber(){return r},get toInteger(){return o},get toLength(){return i},get checkIterable(){return u},get isConstructor(){return a},get createIteratorResultObject(){return s},get maybeDefine(){return c},get maybeDefineMethod(){return f},get maybeDefineConst(){return l},get maybeAddFunctions(){return p},get maybeAddConsts(){return h},get maybeAddIterator(){return g},get registerPolyfill(){return d},get polyfillAll(){return v}}}),System.register("traceur-runtime@0.0.67/src/runtime/polyfills/Map",[],function(){"use strict";function t(t,e){if(o(e)){var n=a(e);return n&&t.objectIndex_[n.hash]}return"string"==typeof e?t.stringIndex_[e]:t.primitiveIndex_[e]}function e(t){t.entries_=[],t.objectIndex_=Object.create(null),t.stringIndex_=Object.create(null),t.primitiveIndex_=Object.create(null),t.deletedCount_=0}function n(t){var e=t,n=e.Object,r=e.Symbol;t.Map||(t.Map=f);var o=t.Map.prototype;void 0===o.entries&&(t.Map=f),o.entries&&(i(o,o.entries,r),i(n.getPrototypeOf((new t.Map).entries()),function(){return this},r))}var r=System.get("traceur-runtime@0.0.67/src/runtime/polyfills/utils"),o=r.isObject,i=r.maybeAddIterator,u=r.registerPolyfill,a=$traceurRuntime.getOwnHashObject,s=Object.prototype.hasOwnProperty,c={},f=function(){var t=arguments[0];if(!o(this))throw new TypeError("Map called on incompatible type");if(s.call(this,"entries_"))throw new TypeError("Map can not be reentrantly initialised");if(e(this),null!==t&&void 0!==t)for(var n,r=t[Symbol.iterator]();!(n=r.next()).done;){var i=n.value,u=i[0],a=i[1];this.set(u,a)}};return $traceurRuntime.createClass(f,{get size(){return this.entries_.length/2-this.deletedCount_},get:function(e){var n=t(this,e);return void 0!==n?this.entries_[n+1]:void 0},set:function(e,n){var r=o(e),i="string"==typeof e,u=t(this,e);if(void 0!==u)this.entries_[u+1]=n;else if(u=this.entries_.length,this.entries_[u]=e,this.entries_[u+1]=n,r){var s=a(e),c=s.hash;this.objectIndex_[c]=u}else i?this.stringIndex_[e]=u:this.primitiveIndex_[e]=u;return this},has:function(e){return void 0!==t(this,e)},"delete":function(t){var e,n,r=o(t),i="string"==typeof t;if(r){var u=a(t);u&&(e=this.objectIndex_[n=u.hash],delete this.objectIndex_[n])}else i?(e=this.stringIndex_[t],delete this.stringIndex_[t]):(e=this.primitiveIndex_[t],delete this.primitiveIndex_[t]);return void 0!==e?(this.entries_[e]=c,this.entries_[e+1]=void 0,this.deletedCount_++,!0):!1},clear:function(){e(this)},forEach:function(t){for(var e=arguments[1],n=0;n<this.entries_.length;n+=2){var r=this.entries_[n],o=this.entries_[n+1];r!==c&&t.call(e,o,r,this)}},entries:$traceurRuntime.initGeneratorFunction(function l(){var t,e,n;return $traceurRuntime.createGeneratorInstance(function(r){for(;;)switch(r.state){case 0:t=0,r.state=12;break;case 12:r.state=t<this.entries_.length?8:-2;break;case 4:t+=2,r.state=12;break;case 8:e=this.entries_[t],n=this.entries_[t+1],r.state=9;break;case 9:r.state=e===c?4:6;break;case 6:return r.state=2,[e,n];case 2:r.maybeThrow(),r.state=4;break;default:return r.end()}},l,this)}),keys:$traceurRuntime.initGeneratorFunction(function p(){var t,e,n;return $traceurRuntime.createGeneratorInstance(function(r){for(;;)switch(r.state){case 0:t=0,r.state=12;break;case 12:r.state=t<this.entries_.length?8:-2;break;case 4:t+=2,r.state=12;break;case 8:e=this.entries_[t],n=this.entries_[t+1],r.state=9;break;case 9:r.state=e===c?4:6;break;case 6:return r.state=2,e;case 2:r.maybeThrow(),r.state=4;break;default:return r.end()}},p,this)}),values:$traceurRuntime.initGeneratorFunction(function h(){var t,e,n;return $traceurRuntime.createGeneratorInstance(function(r){for(;;)switch(r.state){case 0:t=0,r.state=12;break;case 12:r.state=t<this.entries_.length?8:-2;break;case 4:t+=2,r.state=12;break;case 8:e=this.entries_[t],n=this.entries_[t+1],r.state=9;break;case 9:r.state=e===c?4:6;break;case 6:return r.state=2,n;case 2:r.maybeThrow(),r.state=4;break;default:return r.end()}},h,this)})},{}),Object.defineProperty(f.prototype,Symbol.iterator,{configurable:!0,writable:!0,value:f.prototype.entries}),u(n),{get Map(){return f},get polyfillMap(){return n}}}),System.get("traceur-runtime@0.0.67/src/runtime/polyfills/Map"),System.register("traceur-runtime@0.0.67/src/runtime/polyfills/Set",[],function(){"use strict";function t(t){t.map_=new u}function e(t){var e=t,n=e.Object,r=e.Symbol;t.Set||(t.Set=s);var i=t.Set.prototype;i.values&&(o(i,i.values,r),o(n.getPrototypeOf((new t.Set).values()),function(){return this},r))}var n=System.get("traceur-runtime@0.0.67/src/runtime/polyfills/utils"),r=n.isObject,o=n.maybeAddIterator,i=n.registerPolyfill,u=System.get("traceur-runtime@0.0.67/src/runtime/polyfills/Map").Map,a=($traceurRuntime.getOwnHashObject,Object.prototype.hasOwnProperty),s=function(){var e=arguments[0];if(!r(this))throw new TypeError("Set called on incompatible type");if(a.call(this,"map_"))throw new TypeError("Set can not be reentrantly initialised");if(t(this),null!==e&&void 0!==e)for(var n,o=e[Symbol.iterator]();!(n=o.next()).done;){var i=n.value;this.add(i)}};return $traceurRuntime.createClass(s,{get size(){return this.map_.size},has:function(t){return this.map_.has(t)},add:function(t){return this.map_.set(t,t),this},"delete":function(t){return this.map_.delete(t)},clear:function(){return this.map_.clear()},forEach:function(t){var e=arguments[1],n=this;return this.map_.forEach(function(r,o){t.call(e,o,o,n)})},values:$traceurRuntime.initGeneratorFunction(function c(){var t,e;return $traceurRuntime.createGeneratorInstance(function(n){for(;;)switch(n.state){case 0:t=this.map_.keys()[Symbol.iterator](),n.sent=void 0,n.action="next",n.state=12;break;case 12:e=t[n.action](n.sentIgnoreThrow),n.state=9;break;case 9:n.state=e.done?3:2;break;case 3:n.sent=e.value,n.state=-2;break;case 2:return n.state=12,e.value;default:return n.end()}},c,this)}),entries:$traceurRuntime.initGeneratorFunction(function f(){var t,e;return $traceurRuntime.createGeneratorInstance(function(n){for(;;)switch(n.state){case 0:t=this.map_.entries()[Symbol.iterator](),n.sent=void 0,n.action="next",n.state=12;break;case 12:e=t[n.action](n.sentIgnoreThrow),n.state=9;break;case 9:n.state=e.done?3:2;break;case 3:n.sent=e.value,n.state=-2;break;case 2:return n.state=12,e.value;default:return n.end()}},f,this)})},{}),Object.defineProperty(s.prototype,Symbol.iterator,{configurable:!0,writable:!0,value:s.prototype.values}),Object.defineProperty(s.prototype,"keys",{configurable:!0,writable:!0,value:s.prototype.values}),i(e),{get Set(){return s},get polyfillSet(){return e}}}),System.get("traceur-runtime@0.0.67/src/runtime/polyfills/Set"),System.register("traceur-runtime@0.0.67/node_modules/rsvp/lib/rsvp/asap",[],function(){"use strict";function t(t,e){p[a]=t,p[a+1]=e,a+=2,2===a&&u()}function e(){return function(){process.nextTick(i)}}function n(){var t=0,e=new f(i),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}function r(){var t=new MessageChannel;return t.port1.onmessage=i,function(){t.port2.postMessage(0)}}function o(){return function(){setTimeout(i,1)}}function i(){for(var t=0;a>t;t+=2){var e=p[t],n=p[t+1];e(n),p[t]=void 0,p[t+1]=void 0}a=0}var u,a=0,s=t,c="undefined"!=typeof window?window:{},f=c.MutationObserver||c.WebKitMutationObserver,l="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,p=new Array(1e3);return u="undefined"!=typeof process&&"[object process]"==={}.toString.call(process)?e():f?n():l?r():o(),{get default(){return s}}}),System.register("traceur-runtime@0.0.67/src/runtime/polyfills/Promise",[],function(){"use strict";function t(t){return t&&"object"==typeof t&&void 0!==t.status_}function e(t){return t}function n(t){throw t}function r(t){var r=void 0!==arguments[1]?arguments[1]:e,i=void 0!==arguments[2]?arguments[2]:n,u=o(t.constructor);switch(t.status_){case void 0:throw TypeError;case 0:t.onResolve_.push(r,u),t.onReject_.push(i,u);break;case 1:f(t.value_,[r,u]);break;case-1:f(t.value_,[i,u])}return u.promise}function o(t){if(this===b){var e=u(new b(m));return{promise:e,resolve:function(t){a(e,t)},reject:function(t){s(e,t)}}}var n={};return n.promise=new t(function(t,e){n.resolve=t,n.reject=e}),n}function i(t,e,n,r,o){return t.status_=e,t.value_=n,t.onResolve_=r,t.onReject_=o,t}function u(t){return i(t,0,void 0,[],[])}function a(t,e){c(t,1,e,t.onResolve_)}function s(t,e){c(t,-1,e,t.onReject_)}function c(t,e,n,r){0===t.status_&&(f(n,r),i(t,e,n))}function f(t,e){d(function(){for(var n=0;n<e.length;n+=2)l(t,e[n],e[n+1])})}function l(e,n,o){try{var i=n(e);if(i===o.promise)throw new TypeError;t(i)?r(i,o.resolve,o.reject):o.resolve(i)}catch(u){try{o.reject(u)}catch(u){}}}function p(t){return t&&("object"==typeof t||"function"==typeof t)}function h(e,n){if(!t(n)&&p(n)){var r;try{r=n.then}catch(i){var u=w.call(e,i);return n[_]=u,u}if("function"==typeof r){var a=n[_];if(a)return a;var s=o(e);n[_]=s.promise;try{r.call(n,s.resolve,s.reject)}catch(i){s.reject(i)}return s.promise}}return n}function g(t){t.Promise||(t.Promise=y)}var d=System.get("traceur-runtime@0.0.67/node_modules/rsvp/lib/rsvp/asap").default,v=System.get("traceur-runtime@0.0.67/src/runtime/polyfills/utils").registerPolyfill,m={},y=function(t){if(t!==m){if("function"!=typeof t)throw new TypeError;var e=u(this);try{t(function(t){a(e,t)},function(t){s(e,t)})}catch(n){s(e,n)}}};$traceurRuntime.createClass(y,{"catch":function(t){return this.then(void 0,t)},then:function(o,i){"function"!=typeof o&&(o=e),"function"!=typeof i&&(i=n);var u=this,a=this.constructor;return r(this,function(e){return e=h(a,e),e===u?i(new TypeError):t(e)?e.then(o,i):o(e)},i)}},{resolve:function(e){return this===b?t(e)?e:i(new b(m),1,e):new this(function(t){t(e)})},reject:function(t){return this===b?i(new b(m),-1,t):new this(function(e,n){n(t)})},all:function(t){var e=o(this),n=[];try{var r=t.length;if(0===r)e.resolve(n);else for(var i=0;i<t.length;i++)this.resolve(t[i]).then(function(t,o){n[t]=o,0===--r&&e.resolve(n)}.bind(void 0,i),function(t){e.reject(t)})}catch(u){e.reject(u)}return e.promise},race:function(t){var e=o(this);try{for(var n=0;n<t.length;n++)this.resolve(t[n]).then(function(t){e.resolve(t)},function(t){e.reject(t)})}catch(r){e.reject(r)}return e.promise}});var b=y,w=b.reject,_="@@thenable";return v(g),{get Promise(){return y},get polyfillPromise(){return g}}}),System.get("traceur-runtime@0.0.67/src/runtime/polyfills/Promise"),System.register("traceur-runtime@0.0.67/src/runtime/polyfills/StringIterator",[],function(){"use strict";function t(t){var e=String(t),n=Object.create(c.prototype);return n[i(a)]=e,n[i(s)]=0,n}var e,n=System.get("traceur-runtime@0.0.67/src/runtime/polyfills/utils"),r=n.createIteratorResultObject,o=n.isObject,i=$traceurRuntime.toProperty,u=Object.prototype.hasOwnProperty,a=Symbol("iteratedString"),s=Symbol("stringIteratorNextIndex"),c=function(){};return $traceurRuntime.createClass(c,(e={},Object.defineProperty(e,"next",{value:function(){var t=this;if(!o(t)||!u.call(t,a))throw new TypeError("this must be a StringIterator object");var e=t[i(a)];if(void 0===e)return r(void 0,!0);var n=t[i(s)],c=e.length;if(n>=c)return t[i(a)]=void 0,r(void 0,!0);var f,l=e.charCodeAt(n);if(55296>l||l>56319||n+1===c)f=String.fromCharCode(l);else{var p=e.charCodeAt(n+1);f=56320>p||p>57343?String.fromCharCode(l):String.fromCharCode(l)+String.fromCharCode(p)}return t[i(s)]=n+f.length,r(f,!1)},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(e,Symbol.iterator,{value:function(){return this},configurable:!0,enumerable:!0,writable:!0}),e),{}),{get createStringIterator(){return t}}}),System.register("traceur-runtime@0.0.67/src/runtime/polyfills/String",[],function(){"use strict";function t(t){var e=String(this);if(null==this||"[object RegExp]"==g.call(t))throw TypeError();var n=e.length,r=String(t),o=(r.length,arguments.length>1?arguments[1]:void 0),i=o?Number(o):0;isNaN(i)&&(i=0);var u=Math.min(Math.max(i,0),n);return d.call(e,r,i)==u}function e(t){var e=String(this);if(null==this||"[object RegExp]"==g.call(t))throw TypeError();var n=e.length,r=String(t),o=r.length,i=n;if(arguments.length>1){var u=arguments[1];void 0!==u&&(i=u?Number(u):0,isNaN(i)&&(i=0))}var a=Math.min(Math.max(i,0),n),s=a-o;return 0>s?!1:v.call(e,r,s)==s}function n(t){if(null==this)throw TypeError();var e=String(this),n=e.length,r=String(t),o=(r.length,arguments.length>1?arguments[1]:void 0),i=o?Number(o):0;isNaN(i)&&(i=0);Math.min(Math.max(i,0),n);return-1!=d.call(e,r,i)}function r(t){if(null==this)throw TypeError();var e=String(this),n=t?Number(t):0;if(isNaN(n)&&(n=0),0>n||1/0==n)throw RangeError();if(0==n)return"";for(var r="";n--;)r+=e;return r}function o(t){if(null==this)throw TypeError();var e=String(this),n=e.length,r=t?Number(t):0;if(isNaN(r)&&(r=0),0>r||r>=n)return void 0;var o,i=e.charCodeAt(r);return i>=55296&&56319>=i&&n>r+1&&(o=e.charCodeAt(r+1),o>=56320&&57343>=o)?1024*(i-55296)+o-56320+65536:i}function i(t){var e=t.raw,n=e.length>>>0;if(0===n)return"";for(var r="",o=0;;){if(r+=e[o],o+1===n)return r;r+=arguments[++o]}}function u(){var t,e,n=[],r=Math.floor,o=-1,i=arguments.length;if(!i)return"";for(;++o<i;){var u=Number(arguments[o]);if(!isFinite(u)||0>u||u>1114111||r(u)!=u)throw RangeError("Invalid code point: "+u);65535>=u?n.push(u):(u-=65536,t=(u>>10)+55296,e=u%1024+56320,n.push(t,e))}return String.fromCharCode.apply(null,n)}function a(){var t=$traceurRuntime.checkObjectCoercible(this),e=String(t);return c(e)}function s(s){var c=s.String;l(c.prototype,["codePointAt",o,"contains",n,"endsWith",e,"startsWith",t,"repeat",r]),l(c,["fromCodePoint",u,"raw",i]),p(c.prototype,a,Symbol)}var c=System.get("traceur-runtime@0.0.67/src/runtime/polyfills/StringIterator").createStringIterator,f=System.get("traceur-runtime@0.0.67/src/runtime/polyfills/utils"),l=f.maybeAddFunctions,p=f.maybeAddIterator,h=f.registerPolyfill,g=Object.prototype.toString,d=String.prototype.indexOf,v=String.prototype.lastIndexOf;return h(s),{get startsWith(){return t},get endsWith(){return e},get contains(){return n},get repeat(){return r},get codePointAt(){return o},get raw(){return i},get fromCodePoint(){return u},get stringPrototypeIterator(){return a},get polyfillString(){return s}}}),System.get("traceur-runtime@0.0.67/src/runtime/polyfills/String"),System.register("traceur-runtime@0.0.67/src/runtime/polyfills/ArrayIterator",[],function(){"use strict";function t(t,e){var n=u(t),r=new p;return r.iteratorObject_=n,r.arrayIteratorNextIndex_=0,r.arrayIterationKind_=e,r}function e(){return t(this,l)}function n(){return t(this,c)}function r(){return t(this,f)}var o,i=System.get("traceur-runtime@0.0.67/src/runtime/polyfills/utils"),u=i.toObject,a=i.toUint32,s=i.createIteratorResultObject,c=1,f=2,l=3,p=function(){};return $traceurRuntime.createClass(p,(o={},Object.defineProperty(o,"next",{value:function(){var t=u(this),e=t.iteratorObject_;if(!e)throw new TypeError("Object is not an ArrayIterator");var n=t.arrayIteratorNextIndex_,r=t.arrayIterationKind_,o=a(e.length);return n>=o?(t.arrayIteratorNextIndex_=1/0,s(void 0,!0)):(t.arrayIteratorNextIndex_=n+1,r==f?s(e[n],!1):r==l?s([n,e[n]],!1):s(n,!1))},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(o,Symbol.iterator,{value:function(){return this},configurable:!0,enumerable:!0,writable:!0}),o),{}),{get entries(){return e},get keys(){return n},get values(){return r}}}),System.register("traceur-runtime@0.0.67/src/runtime/polyfills/Array",[],function(){"use strict";function t(t){var e,n,r=arguments[1],o=arguments[2],i=this,u=w(t),a=void 0!==r,s=0;if(a&&!h(r))throw TypeError();if(p(u)){e=g(i)?new i:[];for(var c,f=u[Symbol.iterator]();!(c=f.next()).done;){var l=c.value;e[s]=a?r.call(o,l,s):l,s++}return e.length=s,e}for(n=b(u.length),e=g(i)?new i(n):new Array(n);n>s;s++)e[s]=a?"undefined"==typeof o?r(u[s],s):r.call(o,u[s],s):u[s];return e.length=n,e}function e(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=this,r=t.length,o=g(n)?new n(r):new Array(r),i=0;r>i;i++)o[i]=t[i];return o.length=r,o}function n(t){var e=void 0!==arguments[1]?arguments[1]:0,n=arguments[2],r=w(this),o=b(r.length),i=y(e),u=void 0!==n?y(n):o;for(i=0>i?Math.max(o+i,0):Math.min(i,o),u=0>u?Math.max(o+u,0):Math.min(u,o);u>i;)r[i]=t,i++;return r}function r(t){var e=arguments[1];return i(this,t,e)}function o(t){var e=arguments[1];return i(this,t,e,!0)}function i(t,e){var n=arguments[2],r=void 0!==arguments[3]?arguments[3]:!1,o=w(t),i=b(o.length);if(!h(e))throw TypeError();for(var u=0;i>u;u++){var a=o[u];if(e.call(n,a,u,o))return r?u:a}return r?-1:void 0}function u(i){var u=i,a=u.Array,l=u.Object,p=u.Symbol;d(a.prototype,["entries",s,"keys",c,"values",f,"fill",n,"find",r,"findIndex",o]),d(a,["from",t,"of",e]),v(a.prototype,f,p),v(l.getPrototypeOf([].values()),function(){return this},p)}var a=System.get("traceur-runtime@0.0.67/src/runtime/polyfills/ArrayIterator"),s=a.entries,c=a.keys,f=a.values,l=System.get("traceur-runtime@0.0.67/src/runtime/polyfills/utils"),p=l.checkIterable,h=l.isCallable,g=l.isConstructor,d=l.maybeAddFunctions,v=l.maybeAddIterator,m=l.registerPolyfill,y=l.toInteger,b=l.toLength,w=l.toObject;return m(u),{get from(){return t},get of(){return e},get fill(){return n},get find(){return r},get findIndex(){return o},get polyfillArray(){return u}}}),System.get("traceur-runtime@0.0.67/src/runtime/polyfills/Array"),System.register("traceur-runtime@0.0.67/src/runtime/polyfills/Object",[],function(){"use strict";function t(t,e){return t===e?0!==t||1/t===1/e:t!==t&&e!==e}function e(t){for(var e=1;e<arguments.length;e++){var n,r=arguments[e],o=p(r),i=o.length;
2
- for(n=0;i>n;n++){var u=o[n];l(u)||(t[u]=r[u])}}return t}function n(t,e){var n,r,o=f(e),i=o.length;for(n=0;i>n;n++){var u=o[n];l(u)||(r=c(e,o[n]),s(t,o[n],r))}return t}function r(r){var o=r.Object;i(o,["assign",e,"is",t,"mixin",n])}var o=System.get("traceur-runtime@0.0.67/src/runtime/polyfills/utils"),i=o.maybeAddFunctions,u=o.registerPolyfill,a=$traceurRuntime,s=a.defineProperty,c=a.getOwnPropertyDescriptor,f=a.getOwnPropertyNames,l=a.isPrivateName,p=a.keys;return u(r),{get is(){return t},get assign(){return e},get mixin(){return n},get polyfillObject(){return r}}}),System.get("traceur-runtime@0.0.67/src/runtime/polyfills/Object"),System.register("traceur-runtime@0.0.67/src/runtime/polyfills/Number",[],function(){"use strict";function t(t){return u(t)&&p(t)}function e(e){return t(e)&&f(e)===e}function n(t){return u(t)&&h(t)}function r(e){if(t(e)){var n=f(e);if(n===e)return l(n)<=g}return!1}function o(o){var i=o.Number;a(i,["MAX_SAFE_INTEGER",g,"MIN_SAFE_INTEGER",d,"EPSILON",v]),s(i,["isFinite",t,"isInteger",e,"isNaN",n,"isSafeInteger",r])}var i=System.get("traceur-runtime@0.0.67/src/runtime/polyfills/utils"),u=i.isNumber,a=i.maybeAddConsts,s=i.maybeAddFunctions,c=i.registerPolyfill,f=i.toInteger,l=Math.abs,p=isFinite,h=isNaN,g=Math.pow(2,53)-1,d=-Math.pow(2,53)+1,v=Math.pow(2,-52);return c(o),{get MAX_SAFE_INTEGER(){return g},get MIN_SAFE_INTEGER(){return d},get EPSILON(){return v},get isFinite(){return t},get isInteger(){return e},get isNaN(){return n},get isSafeInteger(){return r},get polyfillNumber(){return o}}}),System.get("traceur-runtime@0.0.67/src/runtime/polyfills/Number"),System.register("traceur-runtime@0.0.67/src/runtime/polyfills/polyfills",[],function(){"use strict";var t=System.get("traceur-runtime@0.0.67/src/runtime/polyfills/utils").polyfillAll;t(this);var e=$traceurRuntime.setupGlobals;return $traceurRuntime.setupGlobals=function(n){e(n),t(n)},{}}),System.get("traceur-runtime@0.0.67/src/runtime/polyfills/polyfills"),function t(e,n,r){function o(u,a){if(!n[u]){if(!e[u]){var s="function"==typeof require&&require;if(!a&&s)return s(u,!0);if(i)return i(u,!0);throw new Error("Cannot find module '"+u+"'")}var c=n[u]={exports:{}};e[u][0].call(c.exports,function(t){var n=e[u][1][t];return o(n?n:t)},c,c.exports,t,e,n,r)}return n[u].exports}for(var i="function"==typeof require&&require,u=0;u<r.length;u++)o(r[u]);return o}({1:[function(t,e,n){(function(){!function(){function t(){return{keys:Object.keys||function(t){if("object"!=typeof t&&"function"!=typeof t||null===t)throw new TypeError("keys() called on a non-object");var e,n=[];for(e in t)t.hasOwnProperty(e)&&(n[n.length]=e);return n},uniqueId:function(t){var e=++c+"";return t?t+e:e},has:function(t,e){return a.call(t,e)},each:function(t,e,n){if(null!=t)if(u&&t.forEach===u)t.forEach(e,n);else if(t.length===+t.length){for(var r=0,o=t.length;o>r;r++)if(e.call(n,t[r],r,t)===i)return}else for(var a in t)if(this.has(t,a)&&e.call(n,t[a],a,t)===i)return},once:function(t){var e,n=!1;return function(){return n?e:(n=!0,e=t.apply(this,arguments),t=null,e)}}}}var r,o=this,i={},u=Array.prototype.forEach,a=Object.prototype.hasOwnProperty,s=Array.prototype.slice,c=0,f=t();r={on:function(t,e,n){if(!p(this,"on",t,[e,n])||!e)return this;this._events||(this._events={});var r=this._events[t]||(this._events[t]=[]);return r.push({callback:e,context:n,ctx:n||this}),this},once:function(t,e,n){if(!p(this,"once",t,[e,n])||!e)return this;var r=this,o=f.once(function(){r.off(t,o),e.apply(this,arguments)});return o._callback=e,this.on(t,o,n)},off:function(t,e,n){var r,o,i,u,a,s,c,l;if(!this._events||!p(this,"off",t,[e,n]))return this;if(!t&&!e&&!n)return this._events={},this;for(u=t?[t]:f.keys(this._events),a=0,s=u.length;s>a;a++)if(t=u[a],i=this._events[t]){if(this._events[t]=r=[],e||n)for(c=0,l=i.length;l>c;c++)o=i[c],(e&&e!==o.callback&&e!==o.callback._callback||n&&n!==o.context)&&r.push(o);r.length||delete this._events[t]}return this},trigger:function(t){if(!this._events)return this;var e=s.call(arguments,1);if(!p(this,"trigger",t,e))return this;var n=this._events[t],r=this._events.all;return n&&h(n,e),r&&h(r,arguments),this},stopListening:function(t,e,n){var r=this._listeners;if(!r)return this;var o=!e&&!n;"object"==typeof e&&(n=this),t&&((r={})[t._listenerId]=t);for(var i in r)r[i].off(e,n,this),o&&delete this._listeners[i];return this}};var l=/\s+/,p=function(t,e,n,r){if(!n)return!0;if("object"==typeof n){for(var o in n)t[e].apply(t,[o,n[o]].concat(r));return!1}if(l.test(n)){for(var i=n.split(l),u=0,a=i.length;a>u;u++)t[e].apply(t,[i[u]].concat(r));return!1}return!0},h=function(t,e){var n,r=-1,o=t.length,i=e[0],u=e[1],a=e[2];switch(e.length){case 0:for(;++r<o;)(n=t[r]).callback.call(n.ctx);return;case 1:for(;++r<o;)(n=t[r]).callback.call(n.ctx,i);return;case 2:for(;++r<o;)(n=t[r]).callback.call(n.ctx,i,u);return;case 3:for(;++r<o;)(n=t[r]).callback.call(n.ctx,i,u,a);return;default:for(;++r<o;)(n=t[r]).callback.apply(n.ctx,e)}},g={listenTo:"on",listenToOnce:"once"};f.each(g,function(t,e){r[e]=function(e,n,r){var o=this._listeners||(this._listeners={}),i=e._listenerId||(e._listenerId=f.uniqueId("l"));return o[i]=e,"object"==typeof n&&(r=this),e[t](n,r,this),this}}),r.bind=r.on,r.unbind=r.off,r.mixin=function(t){var e=["on","once","off","trigger","stopListening","listenTo","listenToOnce","bind","unbind"];return f.each(e,function(e){t[e]=this[e]},this),t},"function"==typeof define?define(function(){return r}):"undefined"!=typeof n?("undefined"!=typeof e&&e.exports&&(n=e.exports=r),n.BackboneEvents=r):o.BackboneEvents=r}(this)}).call(this,t("oMfpAn"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../node_modules/backbone-events-standalone/backbone-events-standalone.js","/../../node_modules/backbone-events-standalone")},{buffer:3,oMfpAn:6}],2:[function(t,e){(function(){e.exports=t("./backbone-events-standalone")}).call(this,t("oMfpAn"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../node_modules/backbone-events-standalone/index.js","/../../node_modules/backbone-events-standalone")},{"./backbone-events-standalone":1,buffer:3,oMfpAn:6}],3:[function(t,e,n){(function(e,r,o){function o(t,e,n){if(!(this instanceof o))return new o(t,e,n);var r=typeof t;if("base64"===e&&"string"===r)for(t=C(t);t.length%4!==0;)t+="=";var i;if("number"===r)i=M(t);else if("string"===r)i=o.byteLength(t,e);else{if("object"!==r)throw new Error("First argument needs to be a number, array or string.");i=M(t.length)}var u;o._useTypedArrays?u=o._augment(new Uint8Array(i)):(u=this,u.length=i,u._isBuffer=!0);var a;if(o._useTypedArrays&&"number"==typeof t.byteLength)u._set(t);else if(T(t))for(a=0;i>a;a++)u[a]=o.isBuffer(t)?t.readUInt8(a):t[a];else if("string"===r)u.write(t,0,e);else if("number"===r&&!o._useTypedArrays&&!n)for(a=0;i>a;a++)u[a]=0;return u}function i(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;var u=e.length;H(u%2===0,"Invalid hex string"),r>u/2&&(r=u/2);for(var a=0;r>a;a++){var s=parseInt(e.substr(2*a,2),16);H(!isNaN(s),"Invalid hex string"),t[n+a]=s}return o._charsWritten=2*a,a}function u(t,e,n,r){var i=o._charsWritten=L(P(e),t,n,r);return i}function a(t,e,n,r){var i=o._charsWritten=L($(e),t,n,r);return i}function s(t,e,n,r){return a(t,e,n,r)}function c(t,e,n,r){var i=o._charsWritten=L(U(e),t,n,r);return i}function f(t,e,n,r){var i=o._charsWritten=L(B(e),t,n,r);return i}function l(t,e,n){return W.fromByteArray(0===e&&n===t.length?t:t.slice(e,n))}function p(t,e,n){var r="",o="";n=Math.min(t.length,n);for(var i=e;n>i;i++)t[i]<=127?(r+=F(o)+String.fromCharCode(t[i]),o=""):o+="%"+t[i].toString(16);return r+F(o)}function h(t,e,n){var r="";n=Math.min(t.length,n);for(var o=e;n>o;o++)r+=String.fromCharCode(t[o]);return r}function g(t,e,n){return h(t,e,n)}function d(t,e,n){var r=t.length;(!e||0>e)&&(e=0),(!n||0>n||n>r)&&(n=r);for(var o="",i=e;n>i;i++)o+=N(t[i]);return o}function v(t,e,n){for(var r=t.slice(e,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function m(t,e,n,r){r||(H("boolean"==typeof n,"missing or invalid endian"),H(void 0!==e&&null!==e,"missing offset"),H(e+1<t.length,"Trying to read beyond buffer length"));var o=t.length;if(!(e>=o)){var i;return n?(i=t[e],o>e+1&&(i|=t[e+1]<<8)):(i=t[e]<<8,o>e+1&&(i|=t[e+1])),i}}function y(t,e,n,r){r||(H("boolean"==typeof n,"missing or invalid endian"),H(void 0!==e&&null!==e,"missing offset"),H(e+3<t.length,"Trying to read beyond buffer length"));var o=t.length;if(!(e>=o)){var i;return n?(o>e+2&&(i=t[e+2]<<16),o>e+1&&(i|=t[e+1]<<8),i|=t[e],o>e+3&&(i+=t[e+3]<<24>>>0)):(o>e+1&&(i=t[e+1]<<16),o>e+2&&(i|=t[e+2]<<8),o>e+3&&(i|=t[e+3]),i+=t[e]<<24>>>0),i}}function b(t,e,n,r){r||(H("boolean"==typeof n,"missing or invalid endian"),H(void 0!==e&&null!==e,"missing offset"),H(e+1<t.length,"Trying to read beyond buffer length"));var o=t.length;if(!(e>=o)){var i=m(t,e,n,!0),u=32768&i;return u?-1*(65535-i+1):i}}function w(t,e,n,r){r||(H("boolean"==typeof n,"missing or invalid endian"),H(void 0!==e&&null!==e,"missing offset"),H(e+3<t.length,"Trying to read beyond buffer length"));var o=t.length;if(!(e>=o)){var i=y(t,e,n,!0),u=2147483648&i;return u?-1*(4294967295-i+1):i}}function _(t,e,n,r){return r||(H("boolean"==typeof n,"missing or invalid endian"),H(e+3<t.length,"Trying to read beyond buffer length")),q.read(t,e,n,23,4)}function j(t,e,n,r){return r||(H("boolean"==typeof n,"missing or invalid endian"),H(e+7<t.length,"Trying to read beyond buffer length")),q.read(t,e,n,52,8)}function E(t,e,n,r,o){o||(H(void 0!==e&&null!==e,"missing value"),H("boolean"==typeof r,"missing or invalid endian"),H(void 0!==n&&null!==n,"missing offset"),H(n+1<t.length,"trying to write beyond buffer length"),D(e,65535));var i=t.length;if(!(n>=i))for(var u=0,a=Math.min(i-n,2);a>u;u++)t[n+u]=(e&255<<8*(r?u:1-u))>>>8*(r?u:1-u)}function O(t,e,n,r,o){o||(H(void 0!==e&&null!==e,"missing value"),H("boolean"==typeof r,"missing or invalid endian"),H(void 0!==n&&null!==n,"missing offset"),H(n+3<t.length,"trying to write beyond buffer length"),D(e,4294967295));var i=t.length;if(!(n>=i))for(var u=0,a=Math.min(i-n,4);a>u;u++)t[n+u]=e>>>8*(r?u:3-u)&255}function S(t,e,n,r,o){o||(H(void 0!==e&&null!==e,"missing value"),H("boolean"==typeof r,"missing or invalid endian"),H(void 0!==n&&null!==n,"missing offset"),H(n+1<t.length,"Trying to write beyond buffer length"),z(e,32767,-32768));var i=t.length;n>=i||(e>=0?E(t,e,n,r,o):E(t,65535+e+1,n,r,o))}function A(t,e,n,r,o){o||(H(void 0!==e&&null!==e,"missing value"),H("boolean"==typeof r,"missing or invalid endian"),H(void 0!==n&&null!==n,"missing offset"),H(n+3<t.length,"Trying to write beyond buffer length"),z(e,2147483647,-2147483648));var i=t.length;n>=i||(e>=0?O(t,e,n,r,o):O(t,4294967295+e+1,n,r,o))}function k(t,e,n,r,o){o||(H(void 0!==e&&null!==e,"missing value"),H("boolean"==typeof r,"missing or invalid endian"),H(void 0!==n&&null!==n,"missing offset"),H(n+3<t.length,"Trying to write beyond buffer length"),G(e,3.4028234663852886e38,-3.4028234663852886e38));var i=t.length;n>=i||q.write(t,e,n,r,23,4)}function I(t,e,n,r,o){o||(H(void 0!==e&&null!==e,"missing value"),H("boolean"==typeof r,"missing or invalid endian"),H(void 0!==n&&null!==n,"missing offset"),H(n+7<t.length,"Trying to write beyond buffer length"),G(e,1.7976931348623157e308,-1.7976931348623157e308));var i=t.length;n>=i||q.write(t,e,n,r,52,8)}function C(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function x(t,e,n){return"number"!=typeof t?n:(t=~~t,t>=e?e:t>=0?t:(t+=e,t>=0?t:0))}function M(t){return t=~~Math.ceil(+t),0>t?0:t}function R(t){return(Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)})(t)}function T(t){return R(t)||o.isBuffer(t)||t&&"object"==typeof t&&"number"==typeof t.length}function N(t){return 16>t?"0"+t.toString(16):t.toString(16)}function P(t){for(var e=[],n=0;n<t.length;n++){var r=t.charCodeAt(n);if(127>=r)e.push(t.charCodeAt(n));else{var o=n;r>=55296&&57343>=r&&n++;for(var i=encodeURIComponent(t.slice(o,n+1)).substr(1).split("%"),u=0;u<i.length;u++)e.push(parseInt(i[u],16))}}return e}function $(t){for(var e=[],n=0;n<t.length;n++)e.push(255&t.charCodeAt(n));return e}function B(t){for(var e,n,r,o=[],i=0;i<t.length;i++)e=t.charCodeAt(i),n=e>>8,r=e%256,o.push(r),o.push(n);return o}function U(t){return W.toByteArray(t)}function L(t,e,n,r){for(var o=0;r>o&&!(o+n>=e.length||o>=t.length);o++)e[o+n]=t[o];return o}function F(t){try{return decodeURIComponent(t)}catch(e){return String.fromCharCode(65533)}}function D(t,e){H("number"==typeof t,"cannot write a non-number as a number"),H(t>=0,"specified a negative value for writing an unsigned value"),H(e>=t,"value is larger than maximum value for type"),H(Math.floor(t)===t,"value has a fractional component")}function z(t,e,n){H("number"==typeof t,"cannot write a non-number as a number"),H(e>=t,"value larger than maximum allowed value"),H(t>=n,"value smaller than minimum allowed value"),H(Math.floor(t)===t,"value has a fractional component")}function G(t,e,n){H("number"==typeof t,"cannot write a non-number as a number"),H(e>=t,"value larger than maximum allowed value"),H(t>=n,"value smaller than minimum allowed value")}function H(t,e){if(!t)throw new Error(e||"Failed assertion")}var W=t("base64-js"),q=t("ieee754");n.Buffer=o,n.SlowBuffer=o,n.INSPECT_MAX_BYTES=50,o.poolSize=8192,o._useTypedArrays=function(){try{var t=new ArrayBuffer(0),e=new Uint8Array(t);return e.foo=function(){return 42},42===e.foo()&&"function"==typeof e.subarray}catch(n){return!1}}(),o.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.isBuffer=function(t){return!(null===t||void 0===t||!t._isBuffer)},o.byteLength=function(t,e){var n;switch(t+="",e||"utf8"){case"hex":n=t.length/2;break;case"utf8":case"utf-8":n=P(t).length;break;case"ascii":case"binary":case"raw":n=t.length;break;case"base64":n=U(t).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":n=2*t.length;break;default:throw new Error("Unknown encoding")}return n},o.concat=function(t,e){if(H(R(t),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."),0===t.length)return new o(0);if(1===t.length)return t[0];var n;if("number"!=typeof e)for(e=0,n=0;n<t.length;n++)e+=t[n].length;var r=new o(e),i=0;for(n=0;n<t.length;n++){var u=t[n];u.copy(r,i),i+=u.length}return r},o.prototype.write=function(t,e,n,r){if(isFinite(e))isFinite(n)||(r=n,n=void 0);else{var o=r;r=e,e=n,n=o}e=Number(e)||0;var l=this.length-e;n?(n=Number(n),n>l&&(n=l)):n=l,r=String(r||"utf8").toLowerCase();var p;switch(r){case"hex":p=i(this,t,e,n);break;case"utf8":case"utf-8":p=u(this,t,e,n);break;case"ascii":p=a(this,t,e,n);break;case"binary":p=s(this,t,e,n);break;case"base64":p=c(this,t,e,n);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":p=f(this,t,e,n);break;default:throw new Error("Unknown encoding")}return p},o.prototype.toString=function(t,e,n){var r=this;if(t=String(t||"utf8").toLowerCase(),e=Number(e)||0,n=void 0!==n?Number(n):n=r.length,n===e)return"";var o;switch(t){case"hex":o=d(r,e,n);break;case"utf8":case"utf-8":o=p(r,e,n);break;case"ascii":o=h(r,e,n);break;case"binary":o=g(r,e,n);break;case"base64":o=l(r,e,n);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":o=v(r,e,n);break;default:throw new Error("Unknown encoding")}return o},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},o.prototype.copy=function(t,e,n,r){var i=this;if(n||(n=0),r||0===r||(r=this.length),e||(e=0),r!==n&&0!==t.length&&0!==i.length){H(r>=n,"sourceEnd < sourceStart"),H(e>=0&&e<t.length,"targetStart out of bounds"),H(n>=0&&n<i.length,"sourceStart out of bounds"),H(r>=0&&r<=i.length,"sourceEnd out of bounds"),r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var u=r-n;if(100>u||!o._useTypedArrays)for(var a=0;u>a;a++)t[a+e]=this[a+n];else t._set(this.subarray(n,n+u),e)}},o.prototype.slice=function(t,e){var n=this.length;if(t=x(t,n,0),e=x(e,n,n),o._useTypedArrays)return o._augment(this.subarray(t,e));for(var r=e-t,i=new o(r,void 0,!0),u=0;r>u;u++)i[u]=this[u+t];return i},o.prototype.get=function(t){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(t)},o.prototype.set=function(t,e){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(t,e)},o.prototype.readUInt8=function(t,e){return e||(H(void 0!==t&&null!==t,"missing offset"),H(t<this.length,"Trying to read beyond buffer length")),t>=this.length?void 0:this[t]},o.prototype.readUInt16LE=function(t,e){return m(this,t,!0,e)},o.prototype.readUInt16BE=function(t,e){return m(this,t,!1,e)},o.prototype.readUInt32LE=function(t,e){return y(this,t,!0,e)},o.prototype.readUInt32BE=function(t,e){return y(this,t,!1,e)},o.prototype.readInt8=function(t,e){if(e||(H(void 0!==t&&null!==t,"missing offset"),H(t<this.length,"Trying to read beyond buffer length")),!(t>=this.length)){var n=128&this[t];return n?-1*(255-this[t]+1):this[t]}},o.prototype.readInt16LE=function(t,e){return b(this,t,!0,e)},o.prototype.readInt16BE=function(t,e){return b(this,t,!1,e)},o.prototype.readInt32LE=function(t,e){return w(this,t,!0,e)},o.prototype.readInt32BE=function(t,e){return w(this,t,!1,e)},o.prototype.readFloatLE=function(t,e){return _(this,t,!0,e)},o.prototype.readFloatBE=function(t,e){return _(this,t,!1,e)},o.prototype.readDoubleLE=function(t,e){return j(this,t,!0,e)},o.prototype.readDoubleBE=function(t,e){return j(this,t,!1,e)},o.prototype.writeUInt8=function(t,e,n){n||(H(void 0!==t&&null!==t,"missing value"),H(void 0!==e&&null!==e,"missing offset"),H(e<this.length,"trying to write beyond buffer length"),D(t,255)),e>=this.length||(this[e]=t)},o.prototype.writeUInt16LE=function(t,e,n){E(this,t,e,!0,n)},o.prototype.writeUInt16BE=function(t,e,n){E(this,t,e,!1,n)},o.prototype.writeUInt32LE=function(t,e,n){O(this,t,e,!0,n)},o.prototype.writeUInt32BE=function(t,e,n){O(this,t,e,!1,n)},o.prototype.writeInt8=function(t,e,n){n||(H(void 0!==t&&null!==t,"missing value"),H(void 0!==e&&null!==e,"missing offset"),H(e<this.length,"Trying to write beyond buffer length"),z(t,127,-128)),e>=this.length||(t>=0?this.writeUInt8(t,e,n):this.writeUInt8(255+t+1,e,n))},o.prototype.writeInt16LE=function(t,e,n){S(this,t,e,!0,n)},o.prototype.writeInt16BE=function(t,e,n){S(this,t,e,!1,n)},o.prototype.writeInt32LE=function(t,e,n){A(this,t,e,!0,n)},o.prototype.writeInt32BE=function(t,e,n){A(this,t,e,!1,n)},o.prototype.writeFloatLE=function(t,e,n){k(this,t,e,!0,n)},o.prototype.writeFloatBE=function(t,e,n){k(this,t,e,!1,n)},o.prototype.writeDoubleLE=function(t,e,n){I(this,t,e,!0,n)},o.prototype.writeDoubleBE=function(t,e,n){I(this,t,e,!1,n)},o.prototype.fill=function(t,e,n){if(t||(t=0),e||(e=0),n||(n=this.length),"string"==typeof t&&(t=t.charCodeAt(0)),H("number"==typeof t&&!isNaN(t),"value is not a number"),H(n>=e,"end < start"),n!==e&&0!==this.length){H(e>=0&&e<this.length,"start out of bounds"),H(n>=0&&n<=this.length,"end out of bounds");for(var r=e;n>r;r++)this[r]=t}},o.prototype.inspect=function(){for(var t=[],e=this.length,r=0;e>r;r++)if(t[r]=N(this[r]),r===n.INSPECT_MAX_BYTES){t[r+1]="...";break}return"<Buffer "+t.join(" ")+">"},o.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(o._useTypedArrays)return new o(this).buffer;for(var t=new Uint8Array(this.length),e=0,n=t.length;n>e;e+=1)t[e]=this[e];return t.buffer}throw new Error("Buffer.toArrayBuffer not supported in this browser")};var K=o.prototype;o._augment=function(t){return t._isBuffer=!0,t._get=t.get,t._set=t.set,t.get=K.get,t.set=K.set,t.write=K.write,t.toString=K.toString,t.toLocaleString=K.toString,t.toJSON=K.toJSON,t.copy=K.copy,t.slice=K.slice,t.readUInt8=K.readUInt8,t.readUInt16LE=K.readUInt16LE,t.readUInt16BE=K.readUInt16BE,t.readUInt32LE=K.readUInt32LE,t.readUInt32BE=K.readUInt32BE,t.readInt8=K.readInt8,t.readInt16LE=K.readInt16LE,t.readInt16BE=K.readInt16BE,t.readInt32LE=K.readInt32LE,t.readInt32BE=K.readInt32BE,t.readFloatLE=K.readFloatLE,t.readFloatBE=K.readFloatBE,t.readDoubleLE=K.readDoubleLE,t.readDoubleBE=K.readDoubleBE,t.writeUInt8=K.writeUInt8,t.writeUInt16LE=K.writeUInt16LE,t.writeUInt16BE=K.writeUInt16BE,t.writeUInt32LE=K.writeUInt32LE,t.writeUInt32BE=K.writeUInt32BE,t.writeInt8=K.writeInt8,t.writeInt16LE=K.writeInt16LE,t.writeInt16BE=K.writeInt16BE,t.writeInt32LE=K.writeInt32LE,t.writeInt32BE=K.writeInt32BE,t.writeFloatLE=K.writeFloatLE,t.writeFloatBE=K.writeFloatBE,t.writeDoubleLE=K.writeDoubleLE,t.writeDoubleBE=K.writeDoubleBE,t.fill=K.fill,t.inspect=K.inspect,t.toArrayBuffer=K.toArrayBuffer,t}}).call(this,t("oMfpAn"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/index.js","/../../node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer")},{"base64-js":4,buffer:3,ieee754:5,oMfpAn:6}],4:[function(t,e,n){(function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(e){"use strict";function n(t){var e=t.charCodeAt(0);return e===u?62:e===a?63:s>e?-1:s+10>e?e-s+26+26:f+26>e?e-f:c+26>e?e-c+26:void 0}function r(t){function e(t){c[l++]=t}var r,o,u,a,s,c;if(t.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var f=t.length;s="="===t.charAt(f-2)?2:"="===t.charAt(f-1)?1:0,c=new i(3*t.length/4-s),u=s>0?t.length-4:t.length;var l=0;for(r=0,o=0;u>r;r+=4,o+=3)a=n(t.charAt(r))<<18|n(t.charAt(r+1))<<12|n(t.charAt(r+2))<<6|n(t.charAt(r+3)),e((16711680&a)>>16),e((65280&a)>>8),e(255&a);return 2===s?(a=n(t.charAt(r))<<2|n(t.charAt(r+1))>>4,e(255&a)):1===s&&(a=n(t.charAt(r))<<10|n(t.charAt(r+1))<<4|n(t.charAt(r+2))>>2,e(a>>8&255),e(255&a)),c}function o(e){function n(e){return t.charAt(e)}function r(t){return n(t>>18&63)+n(t>>12&63)+n(t>>6&63)+n(63&t)}var o,i,u,a=e.length%3,s="";for(o=0,u=e.length-a;u>o;o+=3)i=(e[o]<<16)+(e[o+1]<<8)+e[o+2],s+=r(i);switch(a){case 1:i=e[e.length-1],s+=n(i>>2),s+=n(i<<4&63),s+="==";break;case 2:i=(e[e.length-2]<<8)+e[e.length-1],s+=n(i>>10),s+=n(i>>4&63),s+=n(i<<2&63),s+="="}return s}var i="undefined"!=typeof Uint8Array?Uint8Array:Array,u="+".charCodeAt(0),a="/".charCodeAt(0),s="0".charCodeAt(0),c="a".charCodeAt(0),f="A".charCodeAt(0);e.toByteArray=r,e.fromByteArray=o}("undefined"==typeof n?this.base64js={}:n)}).call(this,t("oMfpAn"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/node_modules/base64-js/lib/b64.js","/../../node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/node_modules/base64-js/lib")},{buffer:3,oMfpAn:6}],5:[function(t,e,n){(function(){n.read=function(t,e,n,r,o){var i,u,a=8*o-r-1,s=(1<<a)-1,c=s>>1,f=-7,l=n?o-1:0,p=n?-1:1,h=t[e+l];for(l+=p,i=h&(1<<-f)-1,h>>=-f,f+=a;f>0;i=256*i+t[e+l],l+=p,f-=8);for(u=i&(1<<-f)-1,i>>=-f,f+=r;f>0;u=256*u+t[e+l],l+=p,f-=8);if(0===i)i=1-c;else{if(i===s)return u?0/0:1/0*(h?-1:1);u+=Math.pow(2,r),i-=c}return(h?-1:1)*u*Math.pow(2,i-r)},n.write=function(t,e,n,r,o,i){var u,a,s,c=8*i-o-1,f=(1<<c)-1,l=f>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,g=r?1:-1,d=0>e||0===e&&0>1/e?1:0;for(e=Math.abs(e),isNaN(e)||1/0===e?(a=isNaN(e)?1:0,u=f):(u=Math.floor(Math.log(e)/Math.LN2),e*(s=Math.pow(2,-u))<1&&(u--,s*=2),e+=u+l>=1?p/s:p*Math.pow(2,1-l),e*s>=2&&(u++,s/=2),u+l>=f?(a=0,u=f):u+l>=1?(a=(e*s-1)*Math.pow(2,o),u+=l):(a=e*Math.pow(2,l-1)*Math.pow(2,o),u=0));o>=8;t[n+h]=255&a,h+=g,a/=256,o-=8);for(u=u<<o|a,c+=o;c>0;t[n+h]=255&u,h+=g,u/=256,c-=8);t[n+h-g]|=128*d}}).call(this,t("oMfpAn"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/node_modules/ieee754/index.js","/../../node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/node_modules/ieee754")},{buffer:3,oMfpAn:6}],6:[function(t,e){(function(t){function n(){}var t=e.exports={};t.nextTick=function(){var t="undefined"!=typeof window&&window.setImmediate,e="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(t)return function(t){return window.setImmediate(t)};if(e){var n=[];return window.addEventListener("message",function(t){var e=t.source;if((e===window||null===e)&&"process-tick"===t.data&&(t.stopPropagation(),n.length>0)){var r=n.shift();r()}},!0),function(t){n.push(t),window.postMessage("process-tick","*")}}return function(t){setTimeout(t,0)}}(),t.title="browser",t.browser=!0,t.env={},t.argv=[],t.on=n,t.addListener=n,t.once=n,t.off=n,t.removeListener=n,t.removeAllListeners=n,t.emit=n,t.binding=function(){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(){throw new Error("process.chdir is not supported")}}).call(this,t("oMfpAn"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../node_modules/gulp-browserify/node_modules/browserify/node_modules/process/browser.js","/../../node_modules/gulp-browserify/node_modules/browserify/node_modules/process")},{buffer:3,oMfpAn:6}],7:[function(t,e,n){(function(t,r){(function(){function t(t,e,n){for(var r=(n||0)-1,o=t?t.length:0;++r<o;)if(t[r]===e)return r;return-1}function o(e,n){var r=typeof n;if(e=e.cache,"boolean"==r||null==n)return e[n]?0:-1;"number"!=r&&"string"!=r&&(r="object");var o="number"==r?n:w+n;return e=(e=e[r])&&e[o],"object"==r?e&&t(e,n)>-1?0:-1:e?0:-1}function i(t){var e=this.cache,n=typeof t;if("boolean"==n||null==t)e[t]=!0;else{"number"!=n&&"string"!=n&&(n="object");var r="number"==n?t:w+t,o=e[n]||(e[n]={});"object"==n?(o[r]||(o[r]=[])).push(t):o[r]=!0}}function u(t){return t.charCodeAt(0)}function a(t,e){for(var n=t.criteria,r=e.criteria,o=-1,i=n.length;++o<i;){var u=n[o],a=r[o];if(u!==a){if(u>a||"undefined"==typeof u)return 1;if(a>u||"undefined"==typeof a)return-1}}return t.index-e.index}function s(t){var e=-1,n=t.length,r=t[0],o=t[n/2|0],u=t[n-1];if(r&&"object"==typeof r&&o&&"object"==typeof o&&u&&"object"==typeof u)return!1;var a=l();a["false"]=a["null"]=a["true"]=a.undefined=!1;var s=l();for(s.array=t,s.cache=a,s.push=i;++e<n;)s.push(t[e]);return s}function c(t){return"\\"+J[t]}function f(){return m.pop()||[]}function l(){return y.pop()||{array:null,cache:null,criteria:null,"false":!1,index:0,"null":!1,number:null,object:null,push:null,string:null,"true":!1,undefined:!1,value:null}}function p(t){t.length=0,m.length<j&&m.push(t)}function h(t){var e=t.cache;e&&h(e),t.array=t.cache=t.criteria=t.object=t.number=t.string=t.value=null,y.length<j&&y.push(t)}function g(t,e,n){e||(e=0),"undefined"==typeof n&&(n=t?t.length:0);for(var r=-1,o=n-e||0,i=Array(0>o?0:o);++r<o;)i[r]=t[e+r];return i}function d(e){function n(t){return t&&"object"==typeof t&&!Xr(t)&&Nr.call(t,"__wrapped__")?t:new r(t)}function r(t,e){this.__chain__=!!e,this.__wrapped__=t}function i(t){function e(){if(r){var t=g(r);Pr.apply(t,arguments)}if(this instanceof e){var i=y(n.prototype),u=n.apply(i,t||arguments);return xe(u)?u:i}return n.apply(o,t||arguments)}var n=t[0],r=t[2],o=t[4];return Yr(e,t),e}function m(t,e,n,r,o){if(n){var i=n(t);if("undefined"!=typeof i)return i}var u=xe(t);if(!u)return t;var a=kr.call(t);if(!q[a])return t;var s=Vr[a];switch(a){case L:case F:return new s(+t);case z:case W:return new s(t);case H:return i=s(t.source,I.exec(t)),i.lastIndex=t.lastIndex,i}var c=Xr(t);if(e){var l=!r;r||(r=f()),o||(o=f());for(var h=r.length;h--;)if(r[h]==t)return o[h];i=c?s(t.length):{}}else i=c?g(t):io({},t);return c&&(Nr.call(t,"index")&&(i.index=t.index),Nr.call(t,"input")&&(i.input=t.input)),e?(r.push(t),o.push(i),(c?Je:so)(t,function(t,u){i[u]=m(t,e,n,r,o)}),l&&(p(r),p(o)),i):i}function y(t){return xe(t)?Fr(t):{}}function j(t,e,n){if("function"!=typeof t)return Xn;if("undefined"==typeof e||!("prototype"in t))return t;var r=t.__bindData__;if("undefined"==typeof r&&(Jr.funcNames&&(r=!t.name),r=r||!Jr.funcDecomp,!r)){var o=Rr.call(t);Jr.funcNames||(r=!C.test(o)),r||(r=T.test(o),Yr(t,r))}if(r===!1||r!==!0&&1&r[1])return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)};case 4:return function(n,r,o,i){return t.call(e,n,r,o,i)}}return Pn(t,e)}function J(t){function e(){var t=s?u:this;if(o){var h=g(o);Pr.apply(h,arguments)}if((i||f)&&(h||(h=g(arguments)),i&&Pr.apply(h,i),f&&h.length<a))return r|=16,J([n,l?r:-4&r,h,null,u,a]);if(h||(h=arguments),c&&(n=t[p]),this instanceof e){t=y(n.prototype);var d=n.apply(t,h);return xe(d)?d:t}return n.apply(t,h)}var n=t[0],r=t[1],o=t[2],i=t[3],u=t[4],a=t[5],s=1&r,c=2&r,f=4&r,l=8&r,p=n;return Yr(e,t),e}function X(e,n){var r=-1,i=se(),u=e?e.length:0,a=u>=_&&i===t,c=[];if(a){var f=s(n);f?(i=o,n=f):a=!1}for(;++r<u;){var l=e[r];i(n,l)<0&&c.push(l)}return a&&h(n),c}function Q(t,e,n,r){for(var o=(r||0)-1,i=t?t.length:0,u=[];++o<i;){var a=t[o];if(a&&"object"==typeof a&&"number"==typeof a.length&&(Xr(a)||pe(a))){e||(a=Q(a,e,n));var s=-1,c=a.length,f=u.length;for(u.length+=c;++s<c;)u[f++]=a[s]}else n||u.push(a)}return u}function te(t,e,n,r,o,i){if(n){var u=n(t,e);if("undefined"!=typeof u)return!!u}if(t===e)return 0!==t||1/t==1/e;var a=typeof t,s=typeof e;if(!(t!==t||t&&V[a]||e&&V[s]))return!1;if(null==t||null==e)return t===e;var c=kr.call(t),l=kr.call(e);if(c==B&&(c=G),l==B&&(l=G),c!=l)return!1;switch(c){case L:case F:return+t==+e;case z:return t!=+t?e!=+e:0==t?1/t==1/e:t==+e;case H:case W:return t==jr(e)}var h=c==U;if(!h){var g=Nr.call(t,"__wrapped__"),d=Nr.call(e,"__wrapped__");if(g||d)return te(g?t.__wrapped__:t,d?e.__wrapped__:e,n,r,o,i);if(c!=G)return!1;var v=t.constructor,m=e.constructor;if(v!=m&&!(Ce(v)&&v instanceof v&&Ce(m)&&m instanceof m)&&"constructor"in t&&"constructor"in e)return!1}var y=!o;o||(o=f()),i||(i=f());for(var b=o.length;b--;)if(o[b]==t)return i[b]==e;var w=0;if(u=!0,o.push(t),i.push(e),h){if(b=t.length,w=e.length,u=w==b,u||r)for(;w--;){var _=b,j=e[w];if(r)for(;_--&&!(u=te(t[_],j,n,r,o,i)););else if(!(u=te(t[w],j,n,r,o,i)))break}}else ao(e,function(e,a,s){return Nr.call(s,a)?(w++,u=Nr.call(t,a)&&te(t[a],e,n,r,o,i)):void 0}),u&&!r&&ao(t,function(t,e,n){return Nr.call(n,e)?u=--w>-1:void 0});return o.pop(),i.pop(),y&&(p(o),p(i)),u}function ee(t,e,n,r,o){(Xr(e)?Je:so)(e,function(e,i){var u,a,s=e,c=t[i];if(e&&((a=Xr(e))||co(e))){for(var f=r.length;f--;)if(u=r[f]==e){c=o[f];break}if(!u){var l;n&&(s=n(c,e),(l="undefined"!=typeof s)&&(c=s)),l||(c=a?Xr(c)?c:[]:co(c)?c:{}),r.push(e),o.push(c),l||ee(c,e,n,r,o)}}else n&&(s=n(c,e),"undefined"==typeof s&&(s=e)),"undefined"!=typeof s&&(c=s);t[i]=c})}function re(t,e){return t+Mr(Zr()*(e-t+1))}function oe(e,n,r){var i=-1,u=se(),a=e?e.length:0,c=[],l=!n&&a>=_&&u===t,g=r||l?f():c;if(l){var d=s(g);u=o,g=d}for(;++i<a;){var v=e[i],m=r?r(v,i,e):v;(n?!i||g[g.length-1]!==m:u(g,m)<0)&&((r||l)&&g.push(m),c.push(v))}return l?(p(g.array),h(g)):r&&p(g),c}function ie(t){return function(e,r,o){var i={};r=n.createCallback(r,o,3);var u=-1,a=e?e.length:0;if("number"==typeof a)for(;++u<a;){var s=e[u];t(i,s,r(s,u,e),e)}else so(e,function(e,n,o){t(i,e,r(e,n,o),o)});return i}}function ue(t,e,n,r,o,u){var a=1&e,s=2&e,c=4&e,f=16&e,l=32&e;if(!s&&!Ce(t))throw new Er;f&&!n.length&&(e&=-17,f=n=!1),l&&!r.length&&(e&=-33,l=r=!1);var p=t&&t.__bindData__;if(p&&p!==!0)return p=g(p),p[2]&&(p[2]=g(p[2])),p[3]&&(p[3]=g(p[3])),!a||1&p[1]||(p[4]=o),!a&&1&p[1]&&(e|=8),!c||4&p[1]||(p[5]=u),f&&Pr.apply(p[2]||(p[2]=[]),n),l&&Ur.apply(p[3]||(p[3]=[]),r),p[1]|=e,ue.apply(null,p);
3
- var h=1==e||17===e?i:J;return h([t,e,n,r,o,u])}function ae(t){return eo[t]}function se(){var e=(e=n.indexOf)===yn?t:e;return e}function ce(t){return"function"==typeof t&&Ir.test(t)}function fe(t){var e,n;return t&&kr.call(t)==G&&(e=t.constructor,!Ce(e)||e instanceof e)?(ao(t,function(t,e){n=e}),"undefined"==typeof n||Nr.call(t,n)):!1}function le(t){return no[t]}function pe(t){return t&&"object"==typeof t&&"number"==typeof t.length&&kr.call(t)==B||!1}function he(t,e,n,r){return"boolean"!=typeof e&&null!=e&&(r=n,n=e,e=!1),m(t,e,"function"==typeof n&&j(n,r,1))}function ge(t,e,n){return m(t,!0,"function"==typeof e&&j(e,n,1))}function de(t,e){var n=y(t);return e?io(n,e):n}function ve(t,e,r){var o;return e=n.createCallback(e,r,3),so(t,function(t,n,r){return e(t,n,r)?(o=n,!1):void 0}),o}function me(t,e,r){var o;return e=n.createCallback(e,r,3),be(t,function(t,n,r){return e(t,n,r)?(o=n,!1):void 0}),o}function ye(t,e,n){var r=[];ao(t,function(t,e){r.push(e,t)});var o=r.length;for(e=j(e,n,3);o--&&e(r[o--],r[o],t)!==!1;);return t}function be(t,e,n){var r=to(t),o=r.length;for(e=j(e,n,3);o--;){var i=r[o];if(e(t[i],i,t)===!1)break}return t}function we(t){var e=[];return ao(t,function(t,n){Ce(t)&&e.push(n)}),e.sort()}function _e(t,e){return t?Nr.call(t,e):!1}function je(t){for(var e=-1,n=to(t),r=n.length,o={};++e<r;){var i=n[e];o[t[i]]=i}return o}function Ee(t){return t===!0||t===!1||t&&"object"==typeof t&&kr.call(t)==L||!1}function Oe(t){return t&&"object"==typeof t&&kr.call(t)==F||!1}function Se(t){return t&&1===t.nodeType||!1}function Ae(t){var e=!0;if(!t)return e;var n=kr.call(t),r=t.length;return n==U||n==W||n==B||n==G&&"number"==typeof r&&Ce(t.splice)?!r:(so(t,function(){return e=!1}),e)}function ke(t,e,n,r){return te(t,e,"function"==typeof n&&j(n,r,2))}function Ie(t){return zr(t)&&!Gr(parseFloat(t))}function Ce(t){return"function"==typeof t}function xe(t){return!(!t||!V[typeof t])}function Me(t){return Te(t)&&t!=+t}function Re(t){return null===t}function Te(t){return"number"==typeof t||t&&"object"==typeof t&&kr.call(t)==z||!1}function Ne(t){return t&&"object"==typeof t&&kr.call(t)==H||!1}function Pe(t){return"string"==typeof t||t&&"object"==typeof t&&kr.call(t)==W||!1}function $e(t){return"undefined"==typeof t}function Be(t,e,r){var o={};return e=n.createCallback(e,r,3),so(t,function(t,n,r){o[n]=e(t,n,r)}),o}function Ue(t){var e=arguments,n=2;if(!xe(t))return t;if("number"!=typeof e[2]&&(n=e.length),n>3&&"function"==typeof e[n-2])var r=j(e[--n-1],e[n--],2);else n>2&&"function"==typeof e[n-1]&&(r=e[--n]);for(var o=g(arguments,1,n),i=-1,u=f(),a=f();++i<n;)ee(t,o[i],r,u,a);return p(u),p(a),t}function Le(t,e,r){var o={};if("function"!=typeof e){var i=[];ao(t,function(t,e){i.push(e)}),i=X(i,Q(arguments,!0,!1,1));for(var u=-1,a=i.length;++u<a;){var s=i[u];o[s]=t[s]}}else e=n.createCallback(e,r,3),ao(t,function(t,n,r){e(t,n,r)||(o[n]=t)});return o}function Fe(t){for(var e=-1,n=to(t),r=n.length,o=gr(r);++e<r;){var i=n[e];o[e]=[i,t[i]]}return o}function De(t,e,r){var o={};if("function"!=typeof e)for(var i=-1,u=Q(arguments,!0,!1,1),a=xe(t)?u.length:0;++i<a;){var s=u[i];s in t&&(o[s]=t[s])}else e=n.createCallback(e,r,3),ao(t,function(t,n,r){e(t,n,r)&&(o[n]=t)});return o}function ze(t,e,r,o){var i=Xr(t);if(null==r)if(i)r=[];else{var u=t&&t.constructor,a=u&&u.prototype;r=y(a)}return e&&(e=n.createCallback(e,o,4),(i?Je:so)(t,function(t,n,o){return e(r,t,n,o)})),r}function Ge(t){for(var e=-1,n=to(t),r=n.length,o=gr(r);++e<r;)o[e]=t[n[e]];return o}function He(t){for(var e=arguments,n=-1,r=Q(e,!0,!1,1),o=e[2]&&e[2][e[1]]===t?1:r.length,i=gr(o);++n<o;)i[n]=t[r[n]];return i}function We(t,e,n){var r=-1,o=se(),i=t?t.length:0,u=!1;return n=(0>n?Wr(0,i+n):n)||0,Xr(t)?u=o(t,e,n)>-1:"number"==typeof i?u=(Pe(t)?t.indexOf(e,n):o(t,e,n))>-1:so(t,function(t){return++r>=n?!(u=t===e):void 0}),u}function qe(t,e,r){var o=!0;e=n.createCallback(e,r,3);var i=-1,u=t?t.length:0;if("number"==typeof u)for(;++i<u&&(o=!!e(t[i],i,t)););else so(t,function(t,n,r){return o=!!e(t,n,r)});return o}function Ke(t,e,r){var o=[];e=n.createCallback(e,r,3);var i=-1,u=t?t.length:0;if("number"==typeof u)for(;++i<u;){var a=t[i];e(a,i,t)&&o.push(a)}else so(t,function(t,n,r){e(t,n,r)&&o.push(t)});return o}function Ze(t,e,r){e=n.createCallback(e,r,3);var o=-1,i=t?t.length:0;if("number"!=typeof i){var u;return so(t,function(t,n,r){return e(t,n,r)?(u=t,!1):void 0}),u}for(;++o<i;){var a=t[o];if(e(a,o,t))return a}}function Ve(t,e,r){var o;return e=n.createCallback(e,r,3),Ye(t,function(t,n,r){return e(t,n,r)?(o=t,!1):void 0}),o}function Je(t,e,n){var r=-1,o=t?t.length:0;if(e=e&&"undefined"==typeof n?e:j(e,n,3),"number"==typeof o)for(;++r<o&&e(t[r],r,t)!==!1;);else so(t,e);return t}function Ye(t,e,n){var r=t?t.length:0;if(e=e&&"undefined"==typeof n?e:j(e,n,3),"number"==typeof r)for(;r--&&e(t[r],r,t)!==!1;);else{var o=to(t);r=o.length,so(t,function(t,n,i){return n=o?o[--r]:--r,e(i[n],n,i)})}return t}function Xe(t,e){var n=g(arguments,2),r=-1,o="function"==typeof e,i=t?t.length:0,u=gr("number"==typeof i?i:0);return Je(t,function(t){u[++r]=(o?e:t[e]).apply(t,n)}),u}function Qe(t,e,r){var o=-1,i=t?t.length:0;if(e=n.createCallback(e,r,3),"number"==typeof i)for(var u=gr(i);++o<i;)u[o]=e(t[o],o,t);else u=[],so(t,function(t,n,r){u[++o]=e(t,n,r)});return u}function tn(t,e,r){var o=-1/0,i=o;if("function"!=typeof e&&r&&r[e]===t&&(e=null),null==e&&Xr(t))for(var a=-1,s=t.length;++a<s;){var c=t[a];c>i&&(i=c)}else e=null==e&&Pe(t)?u:n.createCallback(e,r,3),Je(t,function(t,n,r){var u=e(t,n,r);u>o&&(o=u,i=t)});return i}function en(t,e,r){var o=1/0,i=o;if("function"!=typeof e&&r&&r[e]===t&&(e=null),null==e&&Xr(t))for(var a=-1,s=t.length;++a<s;){var c=t[a];i>c&&(i=c)}else e=null==e&&Pe(t)?u:n.createCallback(e,r,3),Je(t,function(t,n,r){var u=e(t,n,r);o>u&&(o=u,i=t)});return i}function nn(t,e,r,o){if(!t)return r;var i=arguments.length<3;e=n.createCallback(e,o,4);var u=-1,a=t.length;if("number"==typeof a)for(i&&(r=t[++u]);++u<a;)r=e(r,t[u],u,t);else so(t,function(t,n,o){r=i?(i=!1,t):e(r,t,n,o)});return r}function rn(t,e,r,o){var i=arguments.length<3;return e=n.createCallback(e,o,4),Ye(t,function(t,n,o){r=i?(i=!1,t):e(r,t,n,o)}),r}function on(t,e,r){return e=n.createCallback(e,r,3),Ke(t,function(t,n,r){return!e(t,n,r)})}function un(t,e,n){if(t&&"number"!=typeof t.length&&(t=Ge(t)),null==e||n)return t?t[re(0,t.length-1)]:v;var r=an(t);return r.length=qr(Wr(0,e),r.length),r}function an(t){var e=-1,n=t?t.length:0,r=gr("number"==typeof n?n:0);return Je(t,function(t){var n=re(0,++e);r[e]=r[n],r[n]=t}),r}function sn(t){var e=t?t.length:0;return"number"==typeof e?e:to(t).length}function cn(t,e,r){var o;e=n.createCallback(e,r,3);var i=-1,u=t?t.length:0;if("number"==typeof u)for(;++i<u&&!(o=e(t[i],i,t)););else so(t,function(t,n,r){return!(o=e(t,n,r))});return!!o}function fn(t,e,r){var o=-1,i=Xr(e),u=t?t.length:0,s=gr("number"==typeof u?u:0);for(i||(e=n.createCallback(e,r,3)),Je(t,function(t,n,r){var u=s[++o]=l();i?u.criteria=Qe(e,function(e){return t[e]}):(u.criteria=f())[0]=e(t,n,r),u.index=o,u.value=t}),u=s.length,s.sort(a);u--;){var c=s[u];s[u]=c.value,i||p(c.criteria),h(c)}return s}function ln(t){return t&&"number"==typeof t.length?g(t):Ge(t)}function pn(t){for(var e=-1,n=t?t.length:0,r=[];++e<n;){var o=t[e];o&&r.push(o)}return r}function hn(t){return X(t,Q(arguments,!0,!0,1))}function gn(t,e,r){var o=-1,i=t?t.length:0;for(e=n.createCallback(e,r,3);++o<i;)if(e(t[o],o,t))return o;return-1}function dn(t,e,r){var o=t?t.length:0;for(e=n.createCallback(e,r,3);o--;)if(e(t[o],o,t))return o;return-1}function vn(t,e,r){var o=0,i=t?t.length:0;if("number"!=typeof e&&null!=e){var u=-1;for(e=n.createCallback(e,r,3);++u<i&&e(t[u],u,t);)o++}else if(o=e,null==o||r)return t?t[0]:v;return g(t,0,qr(Wr(0,o),i))}function mn(t,e,n,r){return"boolean"!=typeof e&&null!=e&&(r=n,n="function"!=typeof e&&r&&r[e]===t?null:e,e=!1),null!=n&&(t=Qe(t,n,r)),Q(t,e)}function yn(e,n,r){if("number"==typeof r){var o=e?e.length:0;r=0>r?Wr(0,o+r):r||0}else if(r){var i=kn(e,n);return e[i]===n?i:-1}return t(e,n,r)}function bn(t,e,r){var o=0,i=t?t.length:0;if("number"!=typeof e&&null!=e){var u=i;for(e=n.createCallback(e,r,3);u--&&e(t[u],u,t);)o++}else o=null==e||r?1:e||o;return g(t,0,qr(Wr(0,i-o),i))}function wn(){for(var e=[],n=-1,r=arguments.length,i=f(),u=se(),a=u===t,c=f();++n<r;){var l=arguments[n];(Xr(l)||pe(l))&&(e.push(l),i.push(a&&l.length>=_&&s(n?e[n]:c)))}var g=e[0],d=-1,v=g?g.length:0,m=[];t:for(;++d<v;){var y=i[0];if(l=g[d],(y?o(y,l):u(c,l))<0){for(n=r,(y||c).push(l);--n;)if(y=i[n],(y?o(y,l):u(e[n],l))<0)continue t;m.push(l)}}for(;r--;)y=i[r],y&&h(y);return p(i),p(c),m}function _n(t,e,r){var o=0,i=t?t.length:0;if("number"!=typeof e&&null!=e){var u=i;for(e=n.createCallback(e,r,3);u--&&e(t[u],u,t);)o++}else if(o=e,null==o||r)return t?t[i-1]:v;return g(t,Wr(0,i-o))}function jn(t,e,n){var r=t?t.length:0;for("number"==typeof n&&(r=(0>n?Wr(0,r+n):qr(n,r-1))+1);r--;)if(t[r]===e)return r;return-1}function En(t){for(var e=arguments,n=0,r=e.length,o=t?t.length:0;++n<r;)for(var i=-1,u=e[n];++i<o;)t[i]===u&&(Br.call(t,i--,1),o--);return t}function On(t,e,n){t=+t||0,n="number"==typeof n?n:+n||1,null==e&&(e=t,t=0);for(var r=-1,o=Wr(0,Cr((e-t)/(n||1))),i=gr(o);++r<o;)i[r]=t,t+=n;return i}function Sn(t,e,r){var o=-1,i=t?t.length:0,u=[];for(e=n.createCallback(e,r,3);++o<i;){var a=t[o];e(a,o,t)&&(u.push(a),Br.call(t,o--,1),i--)}return u}function An(t,e,r){if("number"!=typeof e&&null!=e){var o=0,i=-1,u=t?t.length:0;for(e=n.createCallback(e,r,3);++i<u&&e(t[i],i,t);)o++}else o=null==e||r?1:Wr(0,e);return g(t,o)}function kn(t,e,r,o){var i=0,u=t?t.length:i;for(r=r?n.createCallback(r,o,1):Xn,e=r(e);u>i;){var a=i+u>>>1;r(t[a])<e?i=a+1:u=a}return i}function In(){return oe(Q(arguments,!0,!0))}function Cn(t,e,r,o){return"boolean"!=typeof e&&null!=e&&(o=r,r="function"!=typeof e&&o&&o[e]===t?null:e,e=!1),null!=r&&(r=n.createCallback(r,o,3)),oe(t,e,r)}function xn(t){return X(t,g(arguments,1))}function Mn(){for(var t=-1,e=arguments.length;++t<e;){var n=arguments[t];if(Xr(n)||pe(n))var r=r?oe(X(r,n).concat(X(n,r))):n}return r||[]}function Rn(){for(var t=arguments.length>1?arguments:arguments[0],e=-1,n=t?tn(ho(t,"length")):0,r=gr(0>n?0:n);++e<n;)r[e]=ho(t,e);return r}function Tn(t,e){var n=-1,r=t?t.length:0,o={};for(e||!r||Xr(t[0])||(e=[]);++n<r;){var i=t[n];e?o[i]=e[n]:i&&(o[i[0]]=i[1])}return o}function Nn(t,e){if(!Ce(e))throw new Er;return function(){return--t<1?e.apply(this,arguments):void 0}}function Pn(t,e){return arguments.length>2?ue(t,17,g(arguments,2),null,e):ue(t,1,null,null,e)}function $n(t){for(var e=arguments.length>1?Q(arguments,!0,!1,1):we(t),n=-1,r=e.length;++n<r;){var o=e[n];t[o]=ue(t[o],1,null,null,t)}return t}function Bn(t,e){return arguments.length>2?ue(e,19,g(arguments,2),null,t):ue(e,3,null,null,t)}function Un(){for(var t=arguments,e=t.length;e--;)if(!Ce(t[e]))throw new Er;return function(){for(var e=arguments,n=t.length;n--;)e=[t[n].apply(this,e)];return e[0]}}function Ln(t,e){return e="number"==typeof e?e:+e||t.length,ue(t,4,null,null,null,e)}function Fn(t,e,n){var r,o,i,u,a,s,c,f=0,l=!1,p=!0;if(!Ce(t))throw new Er;if(e=Wr(0,e)||0,n===!0){var h=!0;p=!1}else xe(n)&&(h=n.leading,l="maxWait"in n&&(Wr(e,n.maxWait)||0),p="trailing"in n?n.trailing:p);var g=function(){var n=e-(vo()-u);if(0>=n){o&&xr(o);var l=c;o=s=c=v,l&&(f=vo(),i=t.apply(a,r),s||o||(r=a=null))}else s=$r(g,n)},d=function(){s&&xr(s),o=s=c=v,(p||l!==e)&&(f=vo(),i=t.apply(a,r),s||o||(r=a=null))};return function(){if(r=arguments,u=vo(),a=this,c=p&&(s||!h),l===!1)var n=h&&!s;else{o||h||(f=u);var v=l-(u-f),m=0>=v;m?(o&&(o=xr(o)),f=u,i=t.apply(a,r)):o||(o=$r(d,v))}return m&&s?s=xr(s):s||e===l||(s=$r(g,e)),n&&(m=!0,i=t.apply(a,r)),!m||s||o||(r=a=null),i}}function Dn(t){if(!Ce(t))throw new Er;var e=g(arguments,1);return $r(function(){t.apply(v,e)},1)}function zn(t,e){if(!Ce(t))throw new Er;var n=g(arguments,2);return $r(function(){t.apply(v,n)},e)}function Gn(t,e){if(!Ce(t))throw new Er;var n=function(){var r=n.cache,o=e?e.apply(this,arguments):w+arguments[0];return Nr.call(r,o)?r[o]:r[o]=t.apply(this,arguments)};return n.cache={},n}function Hn(t){var e,n;if(!Ce(t))throw new Er;return function(){return e?n:(e=!0,n=t.apply(this,arguments),t=null,n)}}function Wn(t){return ue(t,16,g(arguments,1))}function qn(t){return ue(t,32,null,g(arguments,1))}function Kn(t,e,n){var r=!0,o=!0;if(!Ce(t))throw new Er;return n===!1?r=!1:xe(n)&&(r="leading"in n?n.leading:r,o="trailing"in n?n.trailing:o),K.leading=r,K.maxWait=e,K.trailing=o,Fn(t,e,K)}function Zn(t,e){return ue(e,16,[t])}function Vn(t){return function(){return t}}function Jn(t,e,n){var r=typeof t;if(null==t||"function"==r)return j(t,e,n);if("object"!=r)return nr(t);var o=to(t),i=o[0],u=t[i];return 1!=o.length||u!==u||xe(u)?function(e){for(var n=o.length,r=!1;n--&&(r=te(e[o[n]],t[o[n]],null,!0)););return r}:function(t){var e=t[i];return u===e&&(0!==u||1/u==1/e)}}function Yn(t){return null==t?"":jr(t).replace(oo,ae)}function Xn(t){return t}function Qn(t,e,o){var i=!0,u=e&&we(e);e&&(o||u.length)||(null==o&&(o=e),a=r,e=t,t=n,u=we(e)),o===!1?i=!1:xe(o)&&"chain"in o&&(i=o.chain);var a=t,s=Ce(a);Je(u,function(n){var r=t[n]=e[n];s&&(a.prototype[n]=function(){var e=this.__chain__,n=this.__wrapped__,o=[n];Pr.apply(o,arguments);var u=r.apply(t,o);if(i||e){if(n===u&&xe(u))return this;u=new a(u),u.__chain__=e}return u})})}function tr(){return e._=Ar,this}function er(){}function nr(t){return function(e){return e[t]}}function rr(t,e,n){var r=null==t,o=null==e;if(null==n&&("boolean"==typeof t&&o?(n=t,t=1):o||"boolean"!=typeof e||(n=e,o=!0)),r&&o&&(e=1),t=+t||0,o?(e=t,t=0):e=+e||0,n||t%1||e%1){var i=Zr();return qr(t+i*(e-t+parseFloat("1e-"+((i+"").length-1))),e)}return re(t,e)}function or(t,e){if(t){var n=t[e];return Ce(n)?t[e]():n}}function ir(t,e,r){var o=n.templateSettings;t=jr(t||""),r=uo({},r,o);var i,u=uo({},r.imports,o.imports),a=to(u),s=Ge(u),f=0,l=r.interpolate||R,p="__p += '",h=_r((r.escape||R).source+"|"+l.source+"|"+(l===x?k:R).source+"|"+(r.evaluate||R).source+"|$","g");t.replace(h,function(e,n,r,o,u,a){return r||(r=o),p+=t.slice(f,a).replace(N,c),n&&(p+="' +\n__e("+n+") +\n'"),u&&(i=!0,p+="';\n"+u+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),f=a+e.length,e}),p+="';\n";var g=r.variable,d=g;d||(g="obj",p="with ("+g+") {\n"+p+"\n}\n"),p=(i?p.replace(O,""):p).replace(S,"$1").replace(A,"$1;"),p="function("+g+") {\n"+(d?"":g+" || ("+g+" = {});\n")+"var __t, __p = '', __e = _.escape"+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var m="\n/*\n//# sourceURL="+(r.sourceURL||"/lodash/template/source["+$++ +"]")+"\n*/";try{var y=mr(a,"return "+p+m).apply(v,s)}catch(b){throw b.source=p,b}return e?y(e):(y.source=p,y)}function ur(t,e,n){t=(t=+t)>-1?t:0;var r=-1,o=gr(t);for(e=j(e,n,1);++r<t;)o[r]=e(r);return o}function ar(t){return null==t?"":jr(t).replace(ro,le)}function sr(t){var e=++b;return jr(null==t?"":t)+e}function cr(t){return t=new r(t),t.__chain__=!0,t}function fr(t,e){return e(t),t}function lr(){return this.__chain__=!0,this}function pr(){return jr(this.__wrapped__)}function hr(){return this.__wrapped__}e=e?ne.defaults(Y.Object(),e,ne.pick(Y,P)):Y;var gr=e.Array,dr=e.Boolean,vr=e.Date,mr=e.Function,yr=e.Math,br=e.Number,wr=e.Object,_r=e.RegExp,jr=e.String,Er=e.TypeError,Or=[],Sr=wr.prototype,Ar=e._,kr=Sr.toString,Ir=_r("^"+jr(kr).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$"),Cr=yr.ceil,xr=e.clearTimeout,Mr=yr.floor,Rr=mr.prototype.toString,Tr=ce(Tr=wr.getPrototypeOf)&&Tr,Nr=Sr.hasOwnProperty,Pr=Or.push,$r=e.setTimeout,Br=Or.splice,Ur=Or.unshift,Lr=function(){try{var t={},e=ce(e=wr.defineProperty)&&e,n=e(t,t,t)&&e}catch(r){}return n}(),Fr=ce(Fr=wr.create)&&Fr,Dr=ce(Dr=gr.isArray)&&Dr,zr=e.isFinite,Gr=e.isNaN,Hr=ce(Hr=wr.keys)&&Hr,Wr=yr.max,qr=yr.min,Kr=e.parseInt,Zr=yr.random,Vr={};Vr[U]=gr,Vr[L]=dr,Vr[F]=vr,Vr[D]=mr,Vr[G]=wr,Vr[z]=br,Vr[H]=_r,Vr[W]=jr,r.prototype=n.prototype;var Jr=n.support={};Jr.funcDecomp=!ce(e.WinRTError)&&T.test(d),Jr.funcNames="string"==typeof mr.name,n.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:x,variable:"",imports:{_:n}},Fr||(y=function(){function t(){}return function(n){if(xe(n)){t.prototype=n;var r=new t;t.prototype=null}return r||e.Object()}}());var Yr=Lr?function(t,e){Z.value=e,Lr(t,"__bindData__",Z)}:er,Xr=Dr||function(t){return t&&"object"==typeof t&&"number"==typeof t.length&&kr.call(t)==U||!1},Qr=function(t){var e,n=t,r=[];if(!n)return r;if(!V[typeof t])return r;for(e in n)Nr.call(n,e)&&r.push(e);return r},to=Hr?function(t){return xe(t)?Hr(t):[]}:Qr,eo={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},no=je(eo),ro=_r("("+to(no).join("|")+")","g"),oo=_r("["+to(eo).join("")+"]","g"),io=function(t,e,n){var r,o=t,i=o;if(!o)return i;var u=arguments,a=0,s="number"==typeof n?2:u.length;if(s>3&&"function"==typeof u[s-2])var c=j(u[--s-1],u[s--],2);else s>2&&"function"==typeof u[s-1]&&(c=u[--s]);for(;++a<s;)if(o=u[a],o&&V[typeof o])for(var f=-1,l=V[typeof o]&&to(o),p=l?l.length:0;++f<p;)r=l[f],i[r]=c?c(i[r],o[r]):o[r];return i},uo=function(t,e,n){var r,o=t,i=o;if(!o)return i;for(var u=arguments,a=0,s="number"==typeof n?2:u.length;++a<s;)if(o=u[a],o&&V[typeof o])for(var c=-1,f=V[typeof o]&&to(o),l=f?f.length:0;++c<l;)r=f[c],"undefined"==typeof i[r]&&(i[r]=o[r]);return i},ao=function(t,e,n){var r,o=t,i=o;if(!o)return i;if(!V[typeof o])return i;e=e&&"undefined"==typeof n?e:j(e,n,3);for(r in o)if(e(o[r],r,t)===!1)return i;return i},so=function(t,e,n){var r,o=t,i=o;if(!o)return i;if(!V[typeof o])return i;e=e&&"undefined"==typeof n?e:j(e,n,3);for(var u=-1,a=V[typeof o]&&to(o),s=a?a.length:0;++u<s;)if(r=a[u],e(o[r],r,t)===!1)return i;return i},co=Tr?function(t){if(!t||kr.call(t)!=G)return!1;var e=t.valueOf,n=ce(e)&&(n=Tr(e))&&Tr(n);return n?t==n||Tr(t)==n:fe(t)}:fe,fo=ie(function(t,e,n){Nr.call(t,n)?t[n]++:t[n]=1}),lo=ie(function(t,e,n){(Nr.call(t,n)?t[n]:t[n]=[]).push(e)}),po=ie(function(t,e,n){t[n]=e}),ho=Qe,go=Ke,vo=ce(vo=vr.now)&&vo||function(){return(new vr).getTime()},mo=8==Kr(E+"08")?Kr:function(t,e){return Kr(Pe(t)?t.replace(M,""):t,e||0)};return n.after=Nn,n.assign=io,n.at=He,n.bind=Pn,n.bindAll=$n,n.bindKey=Bn,n.chain=cr,n.compact=pn,n.compose=Un,n.constant=Vn,n.countBy=fo,n.create=de,n.createCallback=Jn,n.curry=Ln,n.debounce=Fn,n.defaults=uo,n.defer=Dn,n.delay=zn,n.difference=hn,n.filter=Ke,n.flatten=mn,n.forEach=Je,n.forEachRight=Ye,n.forIn=ao,n.forInRight=ye,n.forOwn=so,n.forOwnRight=be,n.functions=we,n.groupBy=lo,n.indexBy=po,n.initial=bn,n.intersection=wn,n.invert=je,n.invoke=Xe,n.keys=to,n.map=Qe,n.mapValues=Be,n.max=tn,n.memoize=Gn,n.merge=Ue,n.min=en,n.omit=Le,n.once=Hn,n.pairs=Fe,n.partial=Wn,n.partialRight=qn,n.pick=De,n.pluck=ho,n.property=nr,n.pull=En,n.range=On,n.reject=on,n.remove=Sn,n.rest=An,n.shuffle=an,n.sortBy=fn,n.tap=fr,n.throttle=Kn,n.times=ur,n.toArray=ln,n.transform=ze,n.union=In,n.uniq=Cn,n.values=Ge,n.where=go,n.without=xn,n.wrap=Zn,n.xor=Mn,n.zip=Rn,n.zipObject=Tn,n.collect=Qe,n.drop=An,n.each=Je,n.eachRight=Ye,n.extend=io,n.methods=we,n.object=Tn,n.select=Ke,n.tail=An,n.unique=Cn,n.unzip=Rn,Qn(n),n.clone=he,n.cloneDeep=ge,n.contains=We,n.escape=Yn,n.every=qe,n.find=Ze,n.findIndex=gn,n.findKey=ve,n.findLast=Ve,n.findLastIndex=dn,n.findLastKey=me,n.has=_e,n.identity=Xn,n.indexOf=yn,n.isArguments=pe,n.isArray=Xr,n.isBoolean=Ee,n.isDate=Oe,n.isElement=Se,n.isEmpty=Ae,n.isEqual=ke,n.isFinite=Ie,n.isFunction=Ce,n.isNaN=Me,n.isNull=Re,n.isNumber=Te,n.isObject=xe,n.isPlainObject=co,n.isRegExp=Ne,n.isString=Pe,n.isUndefined=$e,n.lastIndexOf=jn,n.mixin=Qn,n.noConflict=tr,n.noop=er,n.now=vo,n.parseInt=mo,n.random=rr,n.reduce=nn,n.reduceRight=rn,n.result=or,n.runInContext=d,n.size=sn,n.some=cn,n.sortedIndex=kn,n.template=ir,n.unescape=ar,n.uniqueId=sr,n.all=qe,n.any=cn,n.detect=Ze,n.findWhere=Ze,n.foldl=nn,n.foldr=rn,n.include=We,n.inject=nn,Qn(function(){var t={};return so(n,function(e,r){n.prototype[r]||(t[r]=e)}),t}(),!1),n.first=vn,n.last=_n,n.sample=un,n.take=vn,n.head=vn,so(n,function(t,e){var o="sample"!==e;n.prototype[e]||(n.prototype[e]=function(e,n){var i=this.__chain__,u=t(this.__wrapped__,e,n);return i||null!=e&&(!n||o&&"function"==typeof e)?new r(u,i):u})}),n.VERSION="2.4.1",n.prototype.chain=lr,n.prototype.toString=pr,n.prototype.value=hr,n.prototype.valueOf=hr,Je(["join","pop","shift"],function(t){var e=Or[t];n.prototype[t]=function(){var t=this.__chain__,n=e.apply(this.__wrapped__,arguments);return t?new r(n,t):n}}),Je(["push","reverse","sort","unshift"],function(t){var e=Or[t];n.prototype[t]=function(){return e.apply(this.__wrapped__,arguments),this}}),Je(["concat","slice","splice"],function(t){var e=Or[t];n.prototype[t]=function(){return new r(e.apply(this.__wrapped__,arguments),this.__chain__)}}),n}var v,m=[],y=[],b=0,w=+new Date+"",_=75,j=40,E=" \f \n\r\u2028\u2029 ᠎              ",O=/\b__p \+= '';/g,S=/\b(__p \+=) '' \+/g,A=/(__e\(.*?\)|\b__t\)) \+\n'';/g,k=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,I=/\w*$/,C=/^\s*function[ \n\r\t]+\w/,x=/<%=([\s\S]+?)%>/g,M=RegExp("^["+E+"]*0+(?=.$)"),R=/($^)/,T=/\bthis\b/,N=/['\n\r\t\u2028\u2029\\]/g,P=["Array","Boolean","Date","Function","Math","Number","Object","RegExp","String","_","attachEvent","clearTimeout","isFinite","isNaN","parseInt","setTimeout"],$=0,B="[object Arguments]",U="[object Array]",L="[object Boolean]",F="[object Date]",D="[object Function]",z="[object Number]",G="[object Object]",H="[object RegExp]",W="[object String]",q={};q[D]=!1,q[B]=q[U]=q[L]=q[F]=q[z]=q[G]=q[H]=q[W]=!0;var K={leading:!1,maxWait:0,trailing:!1},Z={configurable:!1,enumerable:!1,value:null,writable:!1},V={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},J={"\\":"\\","'":"'","\n":"n","\r":"r"," ":"t","\u2028":"u2028","\u2029":"u2029"},Y=V[typeof window]&&window||this,X=V[typeof n]&&n&&!n.nodeType&&n,Q=V[typeof e]&&e&&!e.nodeType&&e,te=Q&&Q.exports===X&&X,ee=V[typeof r]&&r;!ee||ee.global!==ee&&ee.window!==ee||(Y=ee);var ne=d();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(Y._=ne,define(function(){return ne})):X&&Q?te?(Q.exports=ne)._=ne:X._=ne:Y._=ne}).call(this)}).call(this,t("oMfpAn"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../node_modules/lodash/dist/lodash.js","/../../node_modules/lodash/dist")},{buffer:3,oMfpAn:6}],8:[function(t,e,n){(function(){"use strict";Object.defineProperties(n,{"default":{get:function(){return h}},__esModule:{value:!0}});var e,r,o,i,u,a=(e=t("backbone-events-standalone"),e&&e.__esModule&&e||{"default":e}).default,s=(r=t("lodash"),r&&r.__esModule&&r||{"default":r}).default,c=(o=t("./string"),o&&o.__esModule&&o||{"default":o}).default,f=(i=t("./controller"),i&&i.__esModule&&i||{"default":i}).default,l=(u=t("./application_controller"),u&&u.__esModule&&u||{"default":u}).default,p=function(){this.Controllers={},this.Dispatcher=s.clone(a)};$traceurRuntime.createClass(p,{createController:function(t){var e=void 0!==arguments[1]?arguments[1]:{},n=arguments[2];n=n||this.Dispatcher,t=c.constantize(t),e=s.extend(e,{name:t});var r=t.match(/^Application/)?"Application":"Base";return this.Controllers[t]=this["create"+r+"Controller"](e,n),this.Controllers[t]},createBaseController:function(t,e){var n=function(){$traceurRuntime.defaultSuperCall(this,r.prototype,arguments)},r=n;return $traceurRuntime.createClass(n,{},{},f),s.extend(n.prototype,t),this[t.name+"Controller"]=n,new n(e)},createApplicationController:function(t,e){var n=function(){$traceurRuntime.defaultSuperCall(this,r.prototype,arguments)},r=n;return $traceurRuntime.createClass(n,{},{},l),s.extend(n.prototype,t),this.ApplicationController=n,new n(e)}},{});var h=p}).call(this,t("oMfpAn"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/application.js","/")},{"./application_controller":9,"./controller":10,"./string":12,"backbone-events-standalone":2,buffer:3,lodash:7,oMfpAn:6}],9:[function(t,e,n){(function(){"use strict";Object.defineProperties(n,{"default":{get:function(){return a}},__esModule:{value:!0}});var e,r,o=((e=t("lodash"),e&&e.__esModule&&e||{"default":e}).default,(r=t("./controller"),r&&r.__esModule&&r||{"default":r}).default),i=function(t){this.name="Application",this.controllerName="ApplicationController",this.actions=[{all:"init"}],$traceurRuntime.superCall(this,u.prototype,"constructor",[t])},u=i;$traceurRuntime.createClass(i,{init:function(){}},{},o);var a=i}).call(this,t("oMfpAn"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/application_controller.js","/")},{"./controller":10,buffer:3,lodash:7,oMfpAn:6}],10:[function(t,e,n){(function(){"use strict";function e(t){if(!c.isFunction(this[t.method]))throw new Error(this.className+' action "'+t.name+this.eventSeperator+t.method+'" method is undefined')}function r(t){var e=c.isObject(t),n=e?c(t).values().first():t,r=e?c(t).keys().first():t;return{name:r,method:n}}function o(){var t=this;c.each(this.actions,function(n){var o=r(n);e.call(t,o),t.dispatcher.on(t.actionEventName(o.name),t[o.method],t)},this)}function i(t){return t=c.isUndefined(t)?"Anonymous":"Application"===t?"":t}function u(){this.name=i(this.name),c.defaults(this,{eventSeperator:":",actions:[],channel:"controller",className:f.constantize(this.name)+"Controller",controllerEventName:f.underscore(this.name)})}Object.defineProperties(n,{"default":{get:function(){return p}},__esModule:{value:!0}});var a,s,c=(a=t("lodash"),a&&a.__esModule&&a||{"default":a}).default,f=(s=t("./string"),s&&s.__esModule&&s||{"default":s}).default,l=function(t){if(!t)throw new Error(this.className+": dispatcher is undefined");this.dispatcher=t,c.bindAll.apply(this,[this].concat(c.functions(this))),u.call(this),o.call(this),this.initialize()};$traceurRuntime.createClass(l,{initialize:function(){},actionEventName:function(t){return c.compact([this.namespace,this.channel,this.controllerEventName,t]).join(this.eventSeperator)}},{});var p=l}).call(this,t("oMfpAn"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/controller.js","/")},{"./string":12,buffer:3,lodash:7,oMfpAn:6}],11:[function(t){(function(e,n){"use strict";var r,o,i=(r=t("./application"),r&&r.__esModule&&r||{"default":r}).default,u=(o=t("./test_dispatcher"),o&&o.__esModule&&o||{"default":o}).default;(n||window).JSKit={TestDispatcher:u,createApplication:function(){return new i}}}).call(this,t("oMfpAn"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_2c4015bd.js","/")},{"./application":8,"./test_dispatcher":13,buffer:3,oMfpAn:6}],12:[function(t,e,n){(function(){"use strict";Object.defineProperties(n,{"default":{get:function(){return o}},__esModule:{value:!0}});var e,r=(e=t("lodash"),e&&e.__esModule&&e||{"default":e}).default,o={camelize:function(){var t=void 0!==arguments[0]?arguments[0]:"";return r(t.split(/_|-|\s/g)).map(function(t,e){return e>0?t.charAt(0).toUpperCase()+t.slice(1):t.toLowerCase()}).join("")},capitalize:function(){var t=void 0!==arguments[0]?arguments[0]:"";return t.charAt(0).toUpperCase()+t.slice(1)},chunk:function(t,e){return t=t||"",e=e?e:t.length,t.match(new RegExp(".{1,"+e+"}","g"))},compact:function(){var t=void 0!==arguments[0]?arguments[0]:"";return t.replace(/\s/g,"")},constantize:function(){var t=void 0!==arguments[0]?arguments[0]:"";if(t.match(/_|-|\s/)){var e=r(t.split(/_|-|\s/g)).map(function(t,e){return e>0?t.charAt(0).toUpperCase()+t.slice(1):t.toLowerCase()}).join("");t=e}else t=t.toString();return t.charAt(0).toUpperCase()+t.slice(1)},dasherize:function(){var t=void 0!==arguments[0]?arguments[0]:"";return t.replace(/_/g,"-").toLowerCase()},humanize:function(){var t=void 0!==arguments[0]?arguments[0]:"",e=t.replace(/_/g," ").replace(/^\s?/,"").toLowerCase();return e.charAt(0).toUpperCase()+e.slice(1)},hyphenate:function(){var t=void 0!==arguments[0]?arguments[0]:"";return t.replace(/([A-Z])/g," $1").toLowerCase().replace(/\s|_/g,"-").toLowerCase()},isBlank:function(){void 0!==arguments[0]?arguments[0]:"";return/^(\s?)+$/.test(this)},isEmpty:function(){var t=void 0!==arguments[0]?arguments[0]:"";return 0===t.length},isNotEmpty:function(){var t=void 0!==arguments[0]?arguments[0]:"";return t.length>0},isPresent:function(){void 0!==arguments[0]?arguments[0]:"";return!/^(\s?)+$/.test(this)},lstrip:function(){var t=void 0!==arguments[0]?arguments[0]:"";return t.replace(/^\s+/,"")},ltrim:function(){var t=void 0!==arguments[0]?arguments[0]:"";return t.replace(/^\s+/,"")},stripTags:function(){var t=void 0!==arguments[0]?arguments[0]:"";return t.replace(/<\w+(\s+("[^"]*"|"[^"]*"|[^>])+)?>|<\/\w+>/gi,"")},strip:function(){var t=void 0!==arguments[0]?arguments[0]:"";return t.replace(/^\s+(.+)\s+$/,"$1")},swapCase:function(){var t=void 0!==arguments[0]?arguments[0]:"";return t.replace(/[A-Za-z]/g,function(t){return/[A-Z]/.test(t)?t.toLowerCase():t.toUpperCase()})},titleCase:function(){var t=void 0!==arguments[0]?arguments[0]:"";return r(t.replace(/([A-Z])/g," $1").replace(/-|_/g," ").split(/\s/)).map(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}).join(" ")},titleize:function(){var t=void 0!==arguments[0]?arguments[0]:"";return r(t.replace(/([A-Z])/g," $1").replace(/-|_/g," ").split(/\s/)).map(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}).join(" ")},toBoolean:function(){var t=void 0!==arguments[0]?arguments[0]:"",e=["true","yes","on","y"],n=["false","no","off","n"];return r(e).contains(t.toLowerCase())?!0:r(n).contains(t.toLowerCase())?!1:t.length>0?!0:!1},toNumber:function(){void 0!==arguments[0]?arguments[0]:"";return 1*this||0},trim:function(){var t=void 0!==arguments[0]?arguments[0]:"";return t.replace(/^\s+(.+)\s+$/,"$1")},truncate:function(t,e){return t=t||"",t.length>e?t.substring(0,e)+"...":this},underscore:function(){var t=void 0!==arguments[0]?arguments[0]:"";return t.replace(/([A-Z])/g," $1").replace(/^\s?/,"").replace(/-|\s/g,"_").toLowerCase()},unescape:function(){void 0!==arguments[0]?arguments[0]:"";return r.unescape.apply(this,[this].concat(r.toArray(arguments)))},unwrap:function(t,e){return t=t||"",t.replace(new RegExp("^"+e+"(.+)"+e+"$"),"$1")},wordCount:function(t,e){t=t||"";var n;return t=t.stripTags(),n=t.match(e?new RegExp(e,"g"):/\b[A-Za-z_]+\b/g),n?n.length:0},wrap:function(t,e){return t=t||"",e.concat(this,e)}}}).call(this,t("oMfpAn"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/string.js","/")},{buffer:3,lodash:7,oMfpAn:6}],13:[function(t,e,n){(function(){"use strict";function e(t){return t.called=!1,t.callCount=0,t.calls=[],t}function r(t){var e,n;return e=a.isString(t)?t:a(t).keys().first(),n=a.isString(t)?t:a(t).values().first(),{name:e,method:n}}function o(t){var e=r(t);return a.isString(t)?'"'+t+'"':"{ "+e.name+': "'+e.method+'" }'}Object.defineProperties(n,{"default":{get:function(){return f}},__esModule:{value:!0}});var i,u,a=(i=t("lodash"),i&&i.__esModule&&i||{"default":i}).default,s=(u=t("backbone-events-standalone"),u&&u.__esModule&&u||{"default":u}).default,c=function(){this.events={},this.shadowDispatcher=a.clone(s)};$traceurRuntime.createClass(c,{on:function(t,n){var r=e(n);this.events[t]=this.events[t]||[],this.events[t].push(r),this.shadowDispatcher.on(t,function(){this.trackSpy(r)},this)},trigger:function(t,e,n){this.shadowDispatcher.trigger(t,e,n)},trackSpy:function(t){t.callCount+=1,t.called=!0,t.calls.push({args:a.toArray(arguments)})},hasAction:function(t,e){var n=!1;if(t.actions.forEach(function(t){o(t)===o(t)&&(n=!0)}),!n)return!1;var i=r(e),u=t[i.method],a=t.actionEventName(i.name),s=u.callCount;return t.dispatcher.trigger(a),u.callCount>s},off:function(){}},{});
4
- var f=c}).call(this,t("oMfpAn"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/test_dispatcher.js","/")},{"backbone-events-standalone":2,buffer:3,lodash:7,oMfpAn:6}]},{},[11]);
1
+ !function(t){"use strict";function e(t){return{configurable:!0,enumerable:!1,value:t,writable:!0}}function n(){return"__$"+Math.floor(1e9*Math.random())+"$"+ ++W+"$__"}function r(t){return J[t]}function o(){var t=n();return J[t]=!0,t}function i(t){return"object"==typeof t&&t instanceof s}function u(t){return i(t)?"symbol":typeof t}function a(t){var e=new s(t);if(!(this instanceof a))return e;throw new TypeError("Symbol cannot be new'ed")}function s(t){var e=n();N(this,Z,{value:this}),N(this,q,{value:e}),N(this,K,{value:t}),f(this),V[e]=this}function c(t){var e=t[Y];return e&&e.self===t?e:z(t)?(Q.hash.value=te++,Q.self.value=t,X.value=R(null,Q),N(t,Y,X),X.value):void 0}function f(t){return c(t),P.apply(this,arguments)}function l(t){return c(t),F.apply(this,arguments)}function p(t){return c(t),D.apply(this,arguments)}function h(t){return V[t]||J[t]}function g(t){return i(t)?t[q]:t}function d(t){for(var e=[],n=0;n<t.length;n++)h(t[n])||e.push(t[n]);return e}function v(t){return d(B(t))}function m(t){return d(U(t))}function y(t){for(var e=[],n=B(t),r=0;r<n.length;r++){var o=V[n[r]];o&&e.push(o)}return e}function b(t,e){return $(t,g(e))}function w(t){return L.call(this,g(t))}function _(e){return t.traceur&&t.traceur.options[e]}function j(t,e,n){return i(e)&&(e=e[q]),N(t,e,n),t}function E(t){N(t,"defineProperty",{value:j}),N(t,"getOwnPropertyNames",{value:v}),N(t,"getOwnPropertyDescriptor",{value:b}),N(t.prototype,"hasOwnProperty",{value:w}),N(t,"freeze",{value:f}),N(t,"preventExtensions",{value:l}),N(t,"seal",{value:p}),N(t,"keys",{value:m})}function O(t){for(var e=1;e<arguments.length;e++)for(var n=B(arguments[e]),r=0;r<n.length;r++){var o=n[r];h(o)||!function(e,n){N(t,n,{get:function(){return e[n]},enumerable:!0})}(arguments[e],n[r])}return t}function S(t){return null!=t&&("object"==typeof t||"function"==typeof t)}function k(t){if(null==t)throw M();return x(t)}function A(t){if(null==t)throw new TypeError("Value cannot be converted to an Object");return t}function I(t,e){t.Symbol||(t.Symbol=e,Object.getOwnPropertySymbols=y),t.Symbol.iterator||(t.Symbol.iterator=e("Symbol.iterator"))}function C(t){I(t,a),t.Reflect=t.Reflect||{},t.Reflect.global=t.Reflect.global||t,E(t.Object)}if(!t.$traceurRuntime){var x=Object,M=TypeError,R=x.create,T=x.defineProperties,N=x.defineProperty,P=x.freeze,$=x.getOwnPropertyDescriptor,B=x.getOwnPropertyNames,U=x.keys,L=x.prototype.hasOwnProperty,F=(x.prototype.toString,Object.preventExtensions),D=Object.seal,z=Object.isExtensible,G={"void":function(){},any:function(){},string:function(){},number:function(){},"boolean":function(){}},H=e,W=0,q=n(),K=n(),Z=n(),V=R(null),J=R(null);N(a.prototype,"constructor",e(a)),N(a.prototype,"toString",H(function(){var t=this[Z];if(!_("symbols"))return t[q];if(!t)throw TypeError("Conversion from symbol to string");var e=t[K];return void 0===e&&(e=""),"Symbol("+e+")"})),N(a.prototype,"valueOf",H(function(){var t=this[Z];if(!t)throw TypeError("Conversion from symbol to string");return _("symbols")?t:t[q]})),N(s.prototype,"constructor",e(a)),N(s.prototype,"toString",{value:a.prototype.toString,enumerable:!1}),N(s.prototype,"valueOf",{value:a.prototype.valueOf,enumerable:!1});var Y=o(),X={value:void 0},Q={hash:{value:void 0},self:{value:void 0}},te=0;f(s.prototype),C(t),t.$traceurRuntime={checkObjectCoercible:A,createPrivateName:o,defineProperties:T,defineProperty:N,exportStar:O,getOwnHashObject:c,getOwnPropertyDescriptor:$,getOwnPropertyNames:B,isObject:S,isPrivateName:r,isSymbolString:h,keys:U,setupGlobals:C,toObject:k,toProperty:g,type:G,"typeof":u}}}("undefined"!=typeof global?global:this),function(){"use strict";function t(){for(var t,e=[],n=0,r=0;r<arguments.length;r++){var o=$traceurRuntime.checkObjectCoercible(arguments[r]);if("function"!=typeof o[$traceurRuntime.toProperty(Symbol.iterator)])throw new TypeError("Cannot spread non-iterable object.");for(var i=o[$traceurRuntime.toProperty(Symbol.iterator)]();!(t=i.next()).done;)e[n++]=t.value}return e}$traceurRuntime.spread=t}(),function(){"use strict";function t(t,e){var n=g(t);do{var r=h(n,e);if(r)return r;n=g(n)}while(n);return void 0}function e(t,e,r,o){return n(t,e,r).apply(t,o)}function n(e,n,r){var o=t(n,r);return o?o.get?o.get.call(e):o.value:void 0}function r(e,n,r,o){var i=t(n,r);if(i&&i.set)return i.set.call(e,o),o;throw c("super has no setter '"+r+"'.")}function o(t){for(var e={},n=v(t),r=0;r<n.length;r++){var o=n[r];e[o]=h(t,o)}for(var i=m(t),r=0;r<i.length;r++){var u=i[r];e[$traceurRuntime.toProperty(u)]=h(t,$traceurRuntime.toProperty(u))}return e}function i(t,e,n,r){return p(e,"constructor",{value:t,configurable:!0,enumerable:!1,writable:!0}),arguments.length>3?("function"==typeof r&&(t.__proto__=r),t.prototype=f(u(r),o(e))):t.prototype=e,p(t,"prototype",{configurable:!1,writable:!1}),l(t,o(n))}function u(t){if("function"==typeof t){var e=t.prototype;if(s(e)===e||null===e)return t.prototype;throw new c("super prototype must be an Object or null")}if(null===t)return null;throw new c("Super expression must either be null or a function, not "+typeof t+".")}function a(t,n,r){null!==g(n)&&e(t,n,"constructor",r)}var s=Object,c=TypeError,f=s.create,l=$traceurRuntime.defineProperties,p=$traceurRuntime.defineProperty,h=$traceurRuntime.getOwnPropertyDescriptor,g=($traceurRuntime.getOwnPropertyNames,Object.getPrototypeOf),d=Object,v=d.getOwnPropertyNames,m=d.getOwnPropertySymbols;$traceurRuntime.createClass=i,$traceurRuntime.defaultSuperCall=a,$traceurRuntime.superCall=e,$traceurRuntime.superGet=n,$traceurRuntime.superSet=r}(),function(){"use strict";function t(t){return{configurable:!0,enumerable:!1,value:t,writable:!0}}function e(t){return new Error("Traceur compiler bug: invalid state in state machine: "+t)}function n(){this.state=0,this.GState=m,this.storedException=void 0,this.finallyFallThrough=void 0,this.sent_=void 0,this.returnValue=void 0,this.tryStack_=[]}function r(t,e,n,r){switch(t.GState){case y:throw new Error('"'+n+'" on executing generator');case w:if("next"==n)return{value:void 0,done:!0};throw r;case m:if("throw"===n)throw t.GState=w,r;if(void 0!==r)throw v("Sent value to newborn generator");case b:t.GState=y,t.action=n,t.sent=r;var o=e(t),i=o===t;return i&&(o=t.returnValue),t.GState=i?w:b,{value:o,done:i}}}function o(){}function i(){}function u(t,e,r){var o=f(t,r),i=new n,u=d(e.prototype);return u[E]=i,u[O]=o,u}function a(t){return t.prototype=d(i.prototype),t.__proto__=i,t}function s(){n.call(this),this.err=void 0;var t=this;t.result=new Promise(function(e,n){t.resolve=e,t.reject=n})}function c(t,e){var n=f(t,e),r=new s;return r.createCallback=function(t){return function(e){r.state=t,r.value=e,n(r)}},r.errback=function(t){l(r,t),n(r)},n(r),r.result}function f(t,e){return function(n){for(;;)try{return t.call(e,n)}catch(r){l(n,r)}}}function l(t,e){t.storedException=e;var n=t.tryStack_[t.tryStack_.length-1];return n?(t.state=void 0!==n.catch?n.catch:n.finally,void(void 0!==n.finallyFallThrough&&(t.finallyFallThrough=n.finallyFallThrough))):void t.handleException(e)}var p=$traceurRuntime.createPrivateName,h=$traceurRuntime.defineProperties,g=$traceurRuntime.defineProperty,d=Object.create,v=TypeError,m=0,y=1,b=2,w=3,_=-2,j=-3;n.prototype={pushTry:function(t,e){if(null!==e){for(var n=null,r=this.tryStack_.length-1;r>=0;r--)if(void 0!==this.tryStack_[r].catch){n=this.tryStack_[r].catch;break}null===n&&(n=j),this.tryStack_.push({"finally":e,finallyFallThrough:n})}null!==t&&this.tryStack_.push({"catch":t})},popTry:function(){this.tryStack_.pop()},get sent(){return this.maybeThrow(),this.sent_},set sent(t){this.sent_=t},get sentIgnoreThrow(){return this.sent_},maybeThrow:function(){if("throw"===this.action)throw this.action="next",this.sent_},end:function(){switch(this.state){case _:return this;case j:throw this.storedException;default:throw e(this.state)}},handleException:function(t){throw this.GState=w,this.state=_,t}};var E=p(),O=p();o.prototype=i,g(i,"constructor",t(o)),i.prototype={constructor:i,next:function(t){return r(this[E],this[O],"next",t)},"throw":function(t){return r(this[E],this[O],"throw",t)}},h(i.prototype,{constructor:{enumerable:!1},next:{enumerable:!1},"throw":{enumerable:!1}}),Object.defineProperty(i.prototype,Symbol.iterator,t(function(){return this})),s.prototype=d(n.prototype),s.prototype.end=function(){switch(this.state){case _:this.resolve(this.returnValue);break;case j:this.reject(this.storedException);break;default:this.reject(e(this.state))}},s.prototype.handleException=function(){this.state=j},$traceurRuntime.asyncWrap=c,$traceurRuntime.initGeneratorFunction=a,$traceurRuntime.createGeneratorInstance=u}(),function(){function t(t,e,n,r,o,i,u){var a=[];return t&&a.push(t,":"),n&&(a.push("//"),e&&a.push(e,"@"),a.push(n),r&&a.push(":",r)),o&&a.push(o),i&&a.push("?",i),u&&a.push("#",u),a.join("")}function e(t){return t.match(a)}function n(t){if("/"===t)return"/";for(var e="/"===t[0]?"/":"",n="/"===t.slice(-1)?"/":"",r=t.split("/"),o=[],i=0,u=0;u<r.length;u++){var a=r[u];switch(a){case"":case".":break;case"..":o.length?o.pop():i++;break;default:o.push(a)}}if(!e){for(;i-->0;)o.unshift("..");0===o.length&&o.push(".")}return e+o.join("/")+n}function r(e){var r=e[s.PATH]||"";return r=n(r),e[s.PATH]=r,t(e[s.SCHEME],e[s.USER_INFO],e[s.DOMAIN],e[s.PORT],e[s.PATH],e[s.QUERY_DATA],e[s.FRAGMENT])}function o(t){var n=e(t);return r(n)}function i(t,n){var o=e(n),i=e(t);if(o[s.SCHEME])return r(o);o[s.SCHEME]=i[s.SCHEME];for(var u=s.SCHEME;u<=s.PORT;u++)o[u]||(o[u]=i[u]);if("/"==o[s.PATH][0])return r(o);var a=i[s.PATH],c=a.lastIndexOf("/");return a=a.slice(0,c+1)+o[s.PATH],o[s.PATH]=a,r(o)}function u(t){if(!t)return!1;if("/"===t[0])return!0;var n=e(t);return n[s.SCHEME]?!0:!1}var a=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$"),s={SCHEME:1,USER_INFO:2,DOMAIN:3,PORT:4,PATH:5,QUERY_DATA:6,FRAGMENT:7};$traceurRuntime.canonicalizeUrl=o,$traceurRuntime.isAbsolute=u,$traceurRuntime.removeDotSegments=n,$traceurRuntime.resolveUrl=i}(),function(t){"use strict";function e(t){if(t){var e=v.normalize(t);return s[e]}}function n(t){var e=arguments[1],n=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){var o,i;if(e===d){var u=Object.getOwnPropertyDescriptor(t,r);u.get&&(o=u.get)}o||(i=t[r],o=function(){return i}),Object.defineProperty(n,r,{get:o,enumerable:!0})}),Object.preventExtensions(n),n}var r,o=$traceurRuntime,i=o.canonicalizeUrl,u=o.resolveUrl,a=o.isAbsolute,s=Object.create(null);r=t.location&&t.location.href?u(t.location.href,"./"):"";var c=function(t,e){this.url=t,this.value_=e};$traceurRuntime.createClass(c,{},{});var f=function(t,e){this.message=this.constructor.name+": "+this.stripCause(e)+" in "+t,this.stack=e instanceof l||!e.stack?"":this.stripStack(e.stack)},l=f;$traceurRuntime.createClass(f,{stripError:function(t){return t.replace(/.*Error:/,this.constructor.name+":")},stripCause:function(t){return t?t.message?this.stripError(t.message):t+"":""},loadedBy:function(t){this.stack+="\n loaded by "+t},stripStack:function(t){var e=[];return t.split("\n").some(function(t){return/UncoatedModuleInstantiator/.test(t)?!0:void e.push(t)}),e[0]=this.stripError(e[0]),e.join("\n")}},{},Error);var p=function(t,e){$traceurRuntime.superCall(this,h.prototype,"constructor",[t,null]),this.func=e},h=p;$traceurRuntime.createClass(p,{getUncoatedModule:function(){if(this.value_)return this.value_;try{return this.value_=this.func.call(t)}catch(e){if(e instanceof f)throw e.loadedBy(this.url),e;throw new f(this.url,e)}}},{},c);var g=Object.create(null),d={},v={normalize:function(t,e){if("string"!=typeof t)throw new TypeError("module name must be a string, not "+typeof t);if(a(t))return i(t);if(/[^\.]\/\.\.\//.test(t))throw new Error("module name embeds /../: "+t);return"."===t[0]&&e?u(e,t):i(t)},get:function(t){var r=e(t);if(!r)return void 0;var o=g[r.url];return o?o:(o=n(r.getUncoatedModule(),d),g[r.url]=o)},set:function(t,e){t=String(t),s[t]=new p(t,function(){return e}),g[t]=e},get baseURL(){return r},set baseURL(t){r=String(t)},registerModule:function(t,e){var n=v.normalize(t);if(s[n])throw new Error("duplicate module named "+n);s[n]=new p(n,e)},bundleStore:Object.create(null),register:function(t,e,n){e&&(e.length||n.length)?this.bundleStore[t]={deps:e,execute:function(){var t=arguments,r={};e.forEach(function(e,n){return r[e]=t[n]});var o=n.call(this,r);return o.execute.call(this),o.exports}}:this.registerModule(t,n)},getAnonymousModule:function(e){return new n(e.call(t),d)},getForTesting:function(t){var e=this;return this.testingPrefix_||Object.keys(g).some(function(t){var n=/(traceur@[^\/]*\/)/.exec(t);return n?(e.testingPrefix_=n[1],!0):void 0}),this.get(this.testingPrefix_+t)}};v.set("@traceur/src/runtime/ModuleStore",new n({ModuleStore:v}));var m=$traceurRuntime.setupGlobals;$traceurRuntime.setupGlobals=function(t){m(t)},$traceurRuntime.ModuleStore=v,t.System={register:v.register.bind(v),get:v.get,set:v.set,normalize:v.normalize},$traceurRuntime.getModuleImpl=function(t){var n=e(t);return n&&n.getUncoatedModule()}}("undefined"!=typeof global?global:this),System.register("traceur-runtime@0.0.67/src/runtime/polyfills/utils",[],function(){"use strict";function t(t){return t>>>0}function e(t){return t&&("object"==typeof t||"function"==typeof t)}function n(t){return"function"==typeof t}function r(t){return"number"==typeof t}function o(t){return t=+t,w(t)?0:0!==t&&b(t)?t>0?y(t):m(t):t}function i(t){var e=o(t);return 0>e?0:j(e,O)}function u(t){return e(t)?t[Symbol.iterator]:void 0}function a(t){return n(t)}function s(t,e){return{value:t,done:e}}function c(t,e,n){e in t||Object.defineProperty(t,e,n)}function f(t,e,n){c(t,e,{value:n,configurable:!0,enumerable:!1,writable:!0})}function l(t,e,n){c(t,e,{value:n,configurable:!1,enumerable:!1,writable:!1})}function p(t,e){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1];f(t,r,o)}}function h(t,e){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1];l(t,r,o)}}function g(t,e,n){n&&n.iterator&&!t[n.iterator]&&(t["@@iterator"]&&(e=t["@@iterator"]),Object.defineProperty(t,n.iterator,{value:e,configurable:!0,enumerable:!1,writable:!0}))}function d(t){S.push(t)}function v(t){S.forEach(function(e){return e(t)})}var m=Math.ceil,y=Math.floor,b=isFinite,w=isNaN,_=Math.pow,j=Math.min,E=$traceurRuntime.toObject,O=_(2,53)-1,S=[];return{get toObject(){return E},get toUint32(){return t},get isObject(){return e},get isCallable(){return n},get isNumber(){return r},get toInteger(){return o},get toLength(){return i},get checkIterable(){return u},get isConstructor(){return a},get createIteratorResultObject(){return s},get maybeDefine(){return c},get maybeDefineMethod(){return f},get maybeDefineConst(){return l},get maybeAddFunctions(){return p},get maybeAddConsts(){return h},get maybeAddIterator(){return g},get registerPolyfill(){return d},get polyfillAll(){return v}}}),System.register("traceur-runtime@0.0.67/src/runtime/polyfills/Map",[],function(){"use strict";function t(t,e){if(o(e)){var n=a(e);return n&&t.objectIndex_[n.hash]}return"string"==typeof e?t.stringIndex_[e]:t.primitiveIndex_[e]}function e(t){t.entries_=[],t.objectIndex_=Object.create(null),t.stringIndex_=Object.create(null),t.primitiveIndex_=Object.create(null),t.deletedCount_=0}function n(t){var e=t,n=e.Object,r=e.Symbol;t.Map||(t.Map=f);var o=t.Map.prototype;void 0===o.entries&&(t.Map=f),o.entries&&(i(o,o.entries,r),i(n.getPrototypeOf((new t.Map).entries()),function(){return this},r))}var r=System.get("traceur-runtime@0.0.67/src/runtime/polyfills/utils"),o=r.isObject,i=r.maybeAddIterator,u=r.registerPolyfill,a=$traceurRuntime.getOwnHashObject,s=Object.prototype.hasOwnProperty,c={},f=function(){var t=arguments[0];if(!o(this))throw new TypeError("Map called on incompatible type");if(s.call(this,"entries_"))throw new TypeError("Map can not be reentrantly initialised");if(e(this),null!==t&&void 0!==t)for(var n,r=t[Symbol.iterator]();!(n=r.next()).done;){var i=n.value,u=i[0],a=i[1];this.set(u,a)}};return $traceurRuntime.createClass(f,{get size(){return this.entries_.length/2-this.deletedCount_},get:function(e){var n=t(this,e);return void 0!==n?this.entries_[n+1]:void 0},set:function(e,n){var r=o(e),i="string"==typeof e,u=t(this,e);if(void 0!==u)this.entries_[u+1]=n;else if(u=this.entries_.length,this.entries_[u]=e,this.entries_[u+1]=n,r){var s=a(e),c=s.hash;this.objectIndex_[c]=u}else i?this.stringIndex_[e]=u:this.primitiveIndex_[e]=u;return this},has:function(e){return void 0!==t(this,e)},"delete":function(t){var e,n,r=o(t),i="string"==typeof t;if(r){var u=a(t);u&&(e=this.objectIndex_[n=u.hash],delete this.objectIndex_[n])}else i?(e=this.stringIndex_[t],delete this.stringIndex_[t]):(e=this.primitiveIndex_[t],delete this.primitiveIndex_[t]);return void 0!==e?(this.entries_[e]=c,this.entries_[e+1]=void 0,this.deletedCount_++,!0):!1},clear:function(){e(this)},forEach:function(t){for(var e=arguments[1],n=0;n<this.entries_.length;n+=2){var r=this.entries_[n],o=this.entries_[n+1];r!==c&&t.call(e,o,r,this)}},entries:$traceurRuntime.initGeneratorFunction(function l(){var t,e,n;return $traceurRuntime.createGeneratorInstance(function(r){for(;;)switch(r.state){case 0:t=0,r.state=12;break;case 12:r.state=t<this.entries_.length?8:-2;break;case 4:t+=2,r.state=12;break;case 8:e=this.entries_[t],n=this.entries_[t+1],r.state=9;break;case 9:r.state=e===c?4:6;break;case 6:return r.state=2,[e,n];case 2:r.maybeThrow(),r.state=4;break;default:return r.end()}},l,this)}),keys:$traceurRuntime.initGeneratorFunction(function p(){var t,e,n;return $traceurRuntime.createGeneratorInstance(function(r){for(;;)switch(r.state){case 0:t=0,r.state=12;break;case 12:r.state=t<this.entries_.length?8:-2;break;case 4:t+=2,r.state=12;break;case 8:e=this.entries_[t],n=this.entries_[t+1],r.state=9;break;case 9:r.state=e===c?4:6;break;case 6:return r.state=2,e;case 2:r.maybeThrow(),r.state=4;break;default:return r.end()}},p,this)}),values:$traceurRuntime.initGeneratorFunction(function h(){var t,e,n;return $traceurRuntime.createGeneratorInstance(function(r){for(;;)switch(r.state){case 0:t=0,r.state=12;break;case 12:r.state=t<this.entries_.length?8:-2;break;case 4:t+=2,r.state=12;break;case 8:e=this.entries_[t],n=this.entries_[t+1],r.state=9;break;case 9:r.state=e===c?4:6;break;case 6:return r.state=2,n;case 2:r.maybeThrow(),r.state=4;break;default:return r.end()}},h,this)})},{}),Object.defineProperty(f.prototype,Symbol.iterator,{configurable:!0,writable:!0,value:f.prototype.entries}),u(n),{get Map(){return f},get polyfillMap(){return n}}}),System.get("traceur-runtime@0.0.67/src/runtime/polyfills/Map"),System.register("traceur-runtime@0.0.67/src/runtime/polyfills/Set",[],function(){"use strict";function t(t){t.map_=new u}function e(t){var e=t,n=e.Object,r=e.Symbol;t.Set||(t.Set=s);var i=t.Set.prototype;i.values&&(o(i,i.values,r),o(n.getPrototypeOf((new t.Set).values()),function(){return this},r))}var n=System.get("traceur-runtime@0.0.67/src/runtime/polyfills/utils"),r=n.isObject,o=n.maybeAddIterator,i=n.registerPolyfill,u=System.get("traceur-runtime@0.0.67/src/runtime/polyfills/Map").Map,a=($traceurRuntime.getOwnHashObject,Object.prototype.hasOwnProperty),s=function(){var e=arguments[0];if(!r(this))throw new TypeError("Set called on incompatible type");if(a.call(this,"map_"))throw new TypeError("Set can not be reentrantly initialised");if(t(this),null!==e&&void 0!==e)for(var n,o=e[Symbol.iterator]();!(n=o.next()).done;){var i=n.value;this.add(i)}};return $traceurRuntime.createClass(s,{get size(){return this.map_.size},has:function(t){return this.map_.has(t)},add:function(t){return this.map_.set(t,t),this},"delete":function(t){return this.map_.delete(t)},clear:function(){return this.map_.clear()},forEach:function(t){var e=arguments[1],n=this;return this.map_.forEach(function(r,o){t.call(e,o,o,n)})},values:$traceurRuntime.initGeneratorFunction(function c(){var t,e;return $traceurRuntime.createGeneratorInstance(function(n){for(;;)switch(n.state){case 0:t=this.map_.keys()[Symbol.iterator](),n.sent=void 0,n.action="next",n.state=12;break;case 12:e=t[n.action](n.sentIgnoreThrow),n.state=9;break;case 9:n.state=e.done?3:2;break;case 3:n.sent=e.value,n.state=-2;break;case 2:return n.state=12,e.value;default:return n.end()}},c,this)}),entries:$traceurRuntime.initGeneratorFunction(function f(){var t,e;return $traceurRuntime.createGeneratorInstance(function(n){for(;;)switch(n.state){case 0:t=this.map_.entries()[Symbol.iterator](),n.sent=void 0,n.action="next",n.state=12;break;case 12:e=t[n.action](n.sentIgnoreThrow),n.state=9;break;case 9:n.state=e.done?3:2;break;case 3:n.sent=e.value,n.state=-2;break;case 2:return n.state=12,e.value;default:return n.end()}},f,this)})},{}),Object.defineProperty(s.prototype,Symbol.iterator,{configurable:!0,writable:!0,value:s.prototype.values}),Object.defineProperty(s.prototype,"keys",{configurable:!0,writable:!0,value:s.prototype.values}),i(e),{get Set(){return s},get polyfillSet(){return e}}}),System.get("traceur-runtime@0.0.67/src/runtime/polyfills/Set"),System.register("traceur-runtime@0.0.67/node_modules/rsvp/lib/rsvp/asap",[],function(){"use strict";function t(t,e){p[a]=t,p[a+1]=e,a+=2,2===a&&u()}function e(){return function(){process.nextTick(i)}}function n(){var t=0,e=new f(i),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}function r(){var t=new MessageChannel;return t.port1.onmessage=i,function(){t.port2.postMessage(0)}}function o(){return function(){setTimeout(i,1)}}function i(){for(var t=0;a>t;t+=2){var e=p[t],n=p[t+1];e(n),p[t]=void 0,p[t+1]=void 0}a=0}var u,a=0,s=t,c="undefined"!=typeof window?window:{},f=c.MutationObserver||c.WebKitMutationObserver,l="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,p=new Array(1e3);return u="undefined"!=typeof process&&"[object process]"==={}.toString.call(process)?e():f?n():l?r():o(),{get default(){return s}}}),System.register("traceur-runtime@0.0.67/src/runtime/polyfills/Promise",[],function(){"use strict";function t(t){return t&&"object"==typeof t&&void 0!==t.status_}function e(t){return t}function n(t){throw t}function r(t){var r=void 0!==arguments[1]?arguments[1]:e,i=void 0!==arguments[2]?arguments[2]:n,u=o(t.constructor);switch(t.status_){case void 0:throw TypeError;case 0:t.onResolve_.push(r,u),t.onReject_.push(i,u);break;case 1:f(t.value_,[r,u]);break;case-1:f(t.value_,[i,u])}return u.promise}function o(t){if(this===b){var e=u(new b(m));return{promise:e,resolve:function(t){a(e,t)},reject:function(t){s(e,t)}}}var n={};return n.promise=new t(function(t,e){n.resolve=t,n.reject=e}),n}function i(t,e,n,r,o){return t.status_=e,t.value_=n,t.onResolve_=r,t.onReject_=o,t}function u(t){return i(t,0,void 0,[],[])}function a(t,e){c(t,1,e,t.onResolve_)}function s(t,e){c(t,-1,e,t.onReject_)}function c(t,e,n,r){0===t.status_&&(f(n,r),i(t,e,n))}function f(t,e){d(function(){for(var n=0;n<e.length;n+=2)l(t,e[n],e[n+1])})}function l(e,n,o){try{var i=n(e);if(i===o.promise)throw new TypeError;t(i)?r(i,o.resolve,o.reject):o.resolve(i)}catch(u){try{o.reject(u)}catch(u){}}}function p(t){return t&&("object"==typeof t||"function"==typeof t)}function h(e,n){if(!t(n)&&p(n)){var r;try{r=n.then}catch(i){var u=w.call(e,i);return n[_]=u,u}if("function"==typeof r){var a=n[_];if(a)return a;var s=o(e);n[_]=s.promise;try{r.call(n,s.resolve,s.reject)}catch(i){s.reject(i)}return s.promise}}return n}function g(t){t.Promise||(t.Promise=y)}var d=System.get("traceur-runtime@0.0.67/node_modules/rsvp/lib/rsvp/asap").default,v=System.get("traceur-runtime@0.0.67/src/runtime/polyfills/utils").registerPolyfill,m={},y=function(t){if(t!==m){if("function"!=typeof t)throw new TypeError;var e=u(this);try{t(function(t){a(e,t)},function(t){s(e,t)})}catch(n){s(e,n)}}};$traceurRuntime.createClass(y,{"catch":function(t){return this.then(void 0,t)},then:function(o,i){"function"!=typeof o&&(o=e),"function"!=typeof i&&(i=n);var u=this,a=this.constructor;return r(this,function(e){return e=h(a,e),e===u?i(new TypeError):t(e)?e.then(o,i):o(e)},i)}},{resolve:function(e){return this===b?t(e)?e:i(new b(m),1,e):new this(function(t){t(e)})},reject:function(t){return this===b?i(new b(m),-1,t):new this(function(e,n){n(t)})},all:function(t){var e=o(this),n=[];try{var r=t.length;if(0===r)e.resolve(n);else for(var i=0;i<t.length;i++)this.resolve(t[i]).then(function(t,o){n[t]=o,0===--r&&e.resolve(n)}.bind(void 0,i),function(t){e.reject(t)})}catch(u){e.reject(u)}return e.promise},race:function(t){var e=o(this);try{for(var n=0;n<t.length;n++)this.resolve(t[n]).then(function(t){e.resolve(t)},function(t){e.reject(t)})}catch(r){e.reject(r)}return e.promise}});var b=y,w=b.reject,_="@@thenable";return v(g),{get Promise(){return y},get polyfillPromise(){return g}}}),System.get("traceur-runtime@0.0.67/src/runtime/polyfills/Promise"),System.register("traceur-runtime@0.0.67/src/runtime/polyfills/StringIterator",[],function(){"use strict";function t(t){var e=String(t),n=Object.create(c.prototype);return n[i(a)]=e,n[i(s)]=0,n}var e,n=System.get("traceur-runtime@0.0.67/src/runtime/polyfills/utils"),r=n.createIteratorResultObject,o=n.isObject,i=$traceurRuntime.toProperty,u=Object.prototype.hasOwnProperty,a=Symbol("iteratedString"),s=Symbol("stringIteratorNextIndex"),c=function(){};return $traceurRuntime.createClass(c,(e={},Object.defineProperty(e,"next",{value:function(){var t=this;if(!o(t)||!u.call(t,a))throw new TypeError("this must be a StringIterator object");var e=t[i(a)];if(void 0===e)return r(void 0,!0);var n=t[i(s)],c=e.length;if(n>=c)return t[i(a)]=void 0,r(void 0,!0);var f,l=e.charCodeAt(n);if(55296>l||l>56319||n+1===c)f=String.fromCharCode(l);else{var p=e.charCodeAt(n+1);f=56320>p||p>57343?String.fromCharCode(l):String.fromCharCode(l)+String.fromCharCode(p)}return t[i(s)]=n+f.length,r(f,!1)},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(e,Symbol.iterator,{value:function(){return this},configurable:!0,enumerable:!0,writable:!0}),e),{}),{get createStringIterator(){return t}}}),System.register("traceur-runtime@0.0.67/src/runtime/polyfills/String",[],function(){"use strict";function t(t){var e=String(this);if(null==this||"[object RegExp]"==g.call(t))throw TypeError();var n=e.length,r=String(t),o=(r.length,arguments.length>1?arguments[1]:void 0),i=o?Number(o):0;isNaN(i)&&(i=0);var u=Math.min(Math.max(i,0),n);return d.call(e,r,i)==u}function e(t){var e=String(this);if(null==this||"[object RegExp]"==g.call(t))throw TypeError();var n=e.length,r=String(t),o=r.length,i=n;if(arguments.length>1){var u=arguments[1];void 0!==u&&(i=u?Number(u):0,isNaN(i)&&(i=0))}var a=Math.min(Math.max(i,0),n),s=a-o;return 0>s?!1:v.call(e,r,s)==s}function n(t){if(null==this)throw TypeError();var e=String(this),n=e.length,r=String(t),o=(r.length,arguments.length>1?arguments[1]:void 0),i=o?Number(o):0;isNaN(i)&&(i=0);Math.min(Math.max(i,0),n);return-1!=d.call(e,r,i)}function r(t){if(null==this)throw TypeError();var e=String(this),n=t?Number(t):0;if(isNaN(n)&&(n=0),0>n||1/0==n)throw RangeError();if(0==n)return"";for(var r="";n--;)r+=e;return r}function o(t){if(null==this)throw TypeError();var e=String(this),n=e.length,r=t?Number(t):0;if(isNaN(r)&&(r=0),0>r||r>=n)return void 0;var o,i=e.charCodeAt(r);return i>=55296&&56319>=i&&n>r+1&&(o=e.charCodeAt(r+1),o>=56320&&57343>=o)?1024*(i-55296)+o-56320+65536:i}function i(t){var e=t.raw,n=e.length>>>0;if(0===n)return"";for(var r="",o=0;;){if(r+=e[o],o+1===n)return r;r+=arguments[++o]}}function u(){var t,e,n=[],r=Math.floor,o=-1,i=arguments.length;if(!i)return"";for(;++o<i;){var u=Number(arguments[o]);if(!isFinite(u)||0>u||u>1114111||r(u)!=u)throw RangeError("Invalid code point: "+u);65535>=u?n.push(u):(u-=65536,t=(u>>10)+55296,e=u%1024+56320,n.push(t,e))}return String.fromCharCode.apply(null,n)}function a(){var t=$traceurRuntime.checkObjectCoercible(this),e=String(t);return c(e)}function s(s){var c=s.String;l(c.prototype,["codePointAt",o,"contains",n,"endsWith",e,"startsWith",t,"repeat",r]),l(c,["fromCodePoint",u,"raw",i]),p(c.prototype,a,Symbol)}var c=System.get("traceur-runtime@0.0.67/src/runtime/polyfills/StringIterator").createStringIterator,f=System.get("traceur-runtime@0.0.67/src/runtime/polyfills/utils"),l=f.maybeAddFunctions,p=f.maybeAddIterator,h=f.registerPolyfill,g=Object.prototype.toString,d=String.prototype.indexOf,v=String.prototype.lastIndexOf;return h(s),{get startsWith(){return t},get endsWith(){return e},get contains(){return n},get repeat(){return r},get codePointAt(){return o},get raw(){return i},get fromCodePoint(){return u},get stringPrototypeIterator(){return a},get polyfillString(){return s}}}),System.get("traceur-runtime@0.0.67/src/runtime/polyfills/String"),System.register("traceur-runtime@0.0.67/src/runtime/polyfills/ArrayIterator",[],function(){"use strict";function t(t,e){var n=u(t),r=new p;return r.iteratorObject_=n,r.arrayIteratorNextIndex_=0,r.arrayIterationKind_=e,r}function e(){return t(this,l)}function n(){return t(this,c)}function r(){return t(this,f)}var o,i=System.get("traceur-runtime@0.0.67/src/runtime/polyfills/utils"),u=i.toObject,a=i.toUint32,s=i.createIteratorResultObject,c=1,f=2,l=3,p=function(){};return $traceurRuntime.createClass(p,(o={},Object.defineProperty(o,"next",{value:function(){var t=u(this),e=t.iteratorObject_;if(!e)throw new TypeError("Object is not an ArrayIterator");var n=t.arrayIteratorNextIndex_,r=t.arrayIterationKind_,o=a(e.length);return n>=o?(t.arrayIteratorNextIndex_=1/0,s(void 0,!0)):(t.arrayIteratorNextIndex_=n+1,r==f?s(e[n],!1):r==l?s([n,e[n]],!1):s(n,!1))},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(o,Symbol.iterator,{value:function(){return this},configurable:!0,enumerable:!0,writable:!0}),o),{}),{get entries(){return e},get keys(){return n},get values(){return r}}}),System.register("traceur-runtime@0.0.67/src/runtime/polyfills/Array",[],function(){"use strict";function t(t){var e,n,r=arguments[1],o=arguments[2],i=this,u=w(t),a=void 0!==r,s=0;if(a&&!h(r))throw TypeError();if(p(u)){e=g(i)?new i:[];for(var c,f=u[Symbol.iterator]();!(c=f.next()).done;){var l=c.value;e[s]=a?r.call(o,l,s):l,s++}return e.length=s,e}for(n=b(u.length),e=g(i)?new i(n):new Array(n);n>s;s++)e[s]=a?"undefined"==typeof o?r(u[s],s):r.call(o,u[s],s):u[s];return e.length=n,e}function e(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=this,r=t.length,o=g(n)?new n(r):new Array(r),i=0;r>i;i++)o[i]=t[i];return o.length=r,o}function n(t){var e=void 0!==arguments[1]?arguments[1]:0,n=arguments[2],r=w(this),o=b(r.length),i=y(e),u=void 0!==n?y(n):o;for(i=0>i?Math.max(o+i,0):Math.min(i,o),u=0>u?Math.max(o+u,0):Math.min(u,o);u>i;)r[i]=t,i++;return r}function r(t){var e=arguments[1];return i(this,t,e)}function o(t){var e=arguments[1];return i(this,t,e,!0)}function i(t,e){var n=arguments[2],r=void 0!==arguments[3]?arguments[3]:!1,o=w(t),i=b(o.length);if(!h(e))throw TypeError();for(var u=0;i>u;u++){var a=o[u];if(e.call(n,a,u,o))return r?u:a}return r?-1:void 0}function u(i){var u=i,a=u.Array,l=u.Object,p=u.Symbol;d(a.prototype,["entries",s,"keys",c,"values",f,"fill",n,"find",r,"findIndex",o]),d(a,["from",t,"of",e]),v(a.prototype,f,p),v(l.getPrototypeOf([].values()),function(){return this},p)}var a=System.get("traceur-runtime@0.0.67/src/runtime/polyfills/ArrayIterator"),s=a.entries,c=a.keys,f=a.values,l=System.get("traceur-runtime@0.0.67/src/runtime/polyfills/utils"),p=l.checkIterable,h=l.isCallable,g=l.isConstructor,d=l.maybeAddFunctions,v=l.maybeAddIterator,m=l.registerPolyfill,y=l.toInteger,b=l.toLength,w=l.toObject;return m(u),{get from(){return t},get of(){return e},get fill(){return n},get find(){return r},get findIndex(){return o},get polyfillArray(){return u}}}),System.get("traceur-runtime@0.0.67/src/runtime/polyfills/Array"),System.register("traceur-runtime@0.0.67/src/runtime/polyfills/Object",[],function(){"use strict";function t(t,e){return t===e?0!==t||1/t===1/e:t!==t&&e!==e}function e(t){for(var e=1;e<arguments.length;e++){var n,r=arguments[e],o=p(r),i=o.length;
2
+ for(n=0;i>n;n++){var u=o[n];l(u)||(t[u]=r[u])}}return t}function n(t,e){var n,r,o=f(e),i=o.length;for(n=0;i>n;n++){var u=o[n];l(u)||(r=c(e,o[n]),s(t,o[n],r))}return t}function r(r){var o=r.Object;i(o,["assign",e,"is",t,"mixin",n])}var o=System.get("traceur-runtime@0.0.67/src/runtime/polyfills/utils"),i=o.maybeAddFunctions,u=o.registerPolyfill,a=$traceurRuntime,s=a.defineProperty,c=a.getOwnPropertyDescriptor,f=a.getOwnPropertyNames,l=a.isPrivateName,p=a.keys;return u(r),{get is(){return t},get assign(){return e},get mixin(){return n},get polyfillObject(){return r}}}),System.get("traceur-runtime@0.0.67/src/runtime/polyfills/Object"),System.register("traceur-runtime@0.0.67/src/runtime/polyfills/Number",[],function(){"use strict";function t(t){return u(t)&&p(t)}function e(e){return t(e)&&f(e)===e}function n(t){return u(t)&&h(t)}function r(e){if(t(e)){var n=f(e);if(n===e)return l(n)<=g}return!1}function o(o){var i=o.Number;a(i,["MAX_SAFE_INTEGER",g,"MIN_SAFE_INTEGER",d,"EPSILON",v]),s(i,["isFinite",t,"isInteger",e,"isNaN",n,"isSafeInteger",r])}var i=System.get("traceur-runtime@0.0.67/src/runtime/polyfills/utils"),u=i.isNumber,a=i.maybeAddConsts,s=i.maybeAddFunctions,c=i.registerPolyfill,f=i.toInteger,l=Math.abs,p=isFinite,h=isNaN,g=Math.pow(2,53)-1,d=-Math.pow(2,53)+1,v=Math.pow(2,-52);return c(o),{get MAX_SAFE_INTEGER(){return g},get MIN_SAFE_INTEGER(){return d},get EPSILON(){return v},get isFinite(){return t},get isInteger(){return e},get isNaN(){return n},get isSafeInteger(){return r},get polyfillNumber(){return o}}}),System.get("traceur-runtime@0.0.67/src/runtime/polyfills/Number"),System.register("traceur-runtime@0.0.67/src/runtime/polyfills/polyfills",[],function(){"use strict";var t=System.get("traceur-runtime@0.0.67/src/runtime/polyfills/utils").polyfillAll;t(this);var e=$traceurRuntime.setupGlobals;return $traceurRuntime.setupGlobals=function(n){e(n),t(n)},{}}),System.get("traceur-runtime@0.0.67/src/runtime/polyfills/polyfills"),function t(e,n,r){function o(u,a){if(!n[u]){if(!e[u]){var s="function"==typeof require&&require;if(!a&&s)return s(u,!0);if(i)return i(u,!0);throw new Error("Cannot find module '"+u+"'")}var c=n[u]={exports:{}};e[u][0].call(c.exports,function(t){var n=e[u][1][t];return o(n?n:t)},c,c.exports,t,e,n,r)}return n[u].exports}for(var i="function"==typeof require&&require,u=0;u<r.length;u++)o(r[u]);return o}({1:[function(t,e,n){(function(){!function(){function t(){return{keys:Object.keys||function(t){if("object"!=typeof t&&"function"!=typeof t||null===t)throw new TypeError("keys() called on a non-object");var e,n=[];for(e in t)t.hasOwnProperty(e)&&(n[n.length]=e);return n},uniqueId:function(t){var e=++c+"";return t?t+e:e},has:function(t,e){return a.call(t,e)},each:function(t,e,n){if(null!=t)if(u&&t.forEach===u)t.forEach(e,n);else if(t.length===+t.length){for(var r=0,o=t.length;o>r;r++)if(e.call(n,t[r],r,t)===i)return}else for(var a in t)if(this.has(t,a)&&e.call(n,t[a],a,t)===i)return},once:function(t){var e,n=!1;return function(){return n?e:(n=!0,e=t.apply(this,arguments),t=null,e)}}}}var r,o=this,i={},u=Array.prototype.forEach,a=Object.prototype.hasOwnProperty,s=Array.prototype.slice,c=0,f=t();r={on:function(t,e,n){if(!p(this,"on",t,[e,n])||!e)return this;this._events||(this._events={});var r=this._events[t]||(this._events[t]=[]);return r.push({callback:e,context:n,ctx:n||this}),this},once:function(t,e,n){if(!p(this,"once",t,[e,n])||!e)return this;var r=this,o=f.once(function(){r.off(t,o),e.apply(this,arguments)});return o._callback=e,this.on(t,o,n)},off:function(t,e,n){var r,o,i,u,a,s,c,l;if(!this._events||!p(this,"off",t,[e,n]))return this;if(!t&&!e&&!n)return this._events={},this;for(u=t?[t]:f.keys(this._events),a=0,s=u.length;s>a;a++)if(t=u[a],i=this._events[t]){if(this._events[t]=r=[],e||n)for(c=0,l=i.length;l>c;c++)o=i[c],(e&&e!==o.callback&&e!==o.callback._callback||n&&n!==o.context)&&r.push(o);r.length||delete this._events[t]}return this},trigger:function(t){if(!this._events)return this;var e=s.call(arguments,1);if(!p(this,"trigger",t,e))return this;var n=this._events[t],r=this._events.all;return n&&h(n,e),r&&h(r,arguments),this},stopListening:function(t,e,n){var r=this._listeners;if(!r)return this;var o=!e&&!n;"object"==typeof e&&(n=this),t&&((r={})[t._listenerId]=t);for(var i in r)r[i].off(e,n,this),o&&delete this._listeners[i];return this}};var l=/\s+/,p=function(t,e,n,r){if(!n)return!0;if("object"==typeof n){for(var o in n)t[e].apply(t,[o,n[o]].concat(r));return!1}if(l.test(n)){for(var i=n.split(l),u=0,a=i.length;a>u;u++)t[e].apply(t,[i[u]].concat(r));return!1}return!0},h=function(t,e){var n,r=-1,o=t.length,i=e[0],u=e[1],a=e[2];switch(e.length){case 0:for(;++r<o;)(n=t[r]).callback.call(n.ctx);return;case 1:for(;++r<o;)(n=t[r]).callback.call(n.ctx,i);return;case 2:for(;++r<o;)(n=t[r]).callback.call(n.ctx,i,u);return;case 3:for(;++r<o;)(n=t[r]).callback.call(n.ctx,i,u,a);return;default:for(;++r<o;)(n=t[r]).callback.apply(n.ctx,e)}},g={listenTo:"on",listenToOnce:"once"};f.each(g,function(t,e){r[e]=function(e,n,r){var o=this._listeners||(this._listeners={}),i=e._listenerId||(e._listenerId=f.uniqueId("l"));return o[i]=e,"object"==typeof n&&(r=this),e[t](n,r,this),this}}),r.bind=r.on,r.unbind=r.off,r.mixin=function(t){var e=["on","once","off","trigger","stopListening","listenTo","listenToOnce","bind","unbind"];return f.each(e,function(e){t[e]=this[e]},this),t},"function"==typeof define?define(function(){return r}):"undefined"!=typeof n?("undefined"!=typeof e&&e.exports&&(n=e.exports=r),n.BackboneEvents=r):o.BackboneEvents=r}(this)}).call(this,t("oMfpAn"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../node_modules/backbone-events-standalone/backbone-events-standalone.js","/../../node_modules/backbone-events-standalone")},{buffer:3,oMfpAn:6}],2:[function(t,e){(function(){e.exports=t("./backbone-events-standalone")}).call(this,t("oMfpAn"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../node_modules/backbone-events-standalone/index.js","/../../node_modules/backbone-events-standalone")},{"./backbone-events-standalone":1,buffer:3,oMfpAn:6}],3:[function(t,e,n){(function(e,r,o){function o(t,e,n){if(!(this instanceof o))return new o(t,e,n);var r=typeof t;if("base64"===e&&"string"===r)for(t=C(t);t.length%4!==0;)t+="=";var i;if("number"===r)i=M(t);else if("string"===r)i=o.byteLength(t,e);else{if("object"!==r)throw new Error("First argument needs to be a number, array or string.");i=M(t.length)}var u;o._useTypedArrays?u=o._augment(new Uint8Array(i)):(u=this,u.length=i,u._isBuffer=!0);var a;if(o._useTypedArrays&&"number"==typeof t.byteLength)u._set(t);else if(T(t))for(a=0;i>a;a++)u[a]=o.isBuffer(t)?t.readUInt8(a):t[a];else if("string"===r)u.write(t,0,e);else if("number"===r&&!o._useTypedArrays&&!n)for(a=0;i>a;a++)u[a]=0;return u}function i(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;var u=e.length;H(u%2===0,"Invalid hex string"),r>u/2&&(r=u/2);for(var a=0;r>a;a++){var s=parseInt(e.substr(2*a,2),16);H(!isNaN(s),"Invalid hex string"),t[n+a]=s}return o._charsWritten=2*a,a}function u(t,e,n,r){var i=o._charsWritten=L(P(e),t,n,r);return i}function a(t,e,n,r){var i=o._charsWritten=L($(e),t,n,r);return i}function s(t,e,n,r){return a(t,e,n,r)}function c(t,e,n,r){var i=o._charsWritten=L(U(e),t,n,r);return i}function f(t,e,n,r){var i=o._charsWritten=L(B(e),t,n,r);return i}function l(t,e,n){return W.fromByteArray(0===e&&n===t.length?t:t.slice(e,n))}function p(t,e,n){var r="",o="";n=Math.min(t.length,n);for(var i=e;n>i;i++)t[i]<=127?(r+=F(o)+String.fromCharCode(t[i]),o=""):o+="%"+t[i].toString(16);return r+F(o)}function h(t,e,n){var r="";n=Math.min(t.length,n);for(var o=e;n>o;o++)r+=String.fromCharCode(t[o]);return r}function g(t,e,n){return h(t,e,n)}function d(t,e,n){var r=t.length;(!e||0>e)&&(e=0),(!n||0>n||n>r)&&(n=r);for(var o="",i=e;n>i;i++)o+=N(t[i]);return o}function v(t,e,n){for(var r=t.slice(e,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function m(t,e,n,r){r||(H("boolean"==typeof n,"missing or invalid endian"),H(void 0!==e&&null!==e,"missing offset"),H(e+1<t.length,"Trying to read beyond buffer length"));var o=t.length;if(!(e>=o)){var i;return n?(i=t[e],o>e+1&&(i|=t[e+1]<<8)):(i=t[e]<<8,o>e+1&&(i|=t[e+1])),i}}function y(t,e,n,r){r||(H("boolean"==typeof n,"missing or invalid endian"),H(void 0!==e&&null!==e,"missing offset"),H(e+3<t.length,"Trying to read beyond buffer length"));var o=t.length;if(!(e>=o)){var i;return n?(o>e+2&&(i=t[e+2]<<16),o>e+1&&(i|=t[e+1]<<8),i|=t[e],o>e+3&&(i+=t[e+3]<<24>>>0)):(o>e+1&&(i=t[e+1]<<16),o>e+2&&(i|=t[e+2]<<8),o>e+3&&(i|=t[e+3]),i+=t[e]<<24>>>0),i}}function b(t,e,n,r){r||(H("boolean"==typeof n,"missing or invalid endian"),H(void 0!==e&&null!==e,"missing offset"),H(e+1<t.length,"Trying to read beyond buffer length"));var o=t.length;if(!(e>=o)){var i=m(t,e,n,!0),u=32768&i;return u?-1*(65535-i+1):i}}function w(t,e,n,r){r||(H("boolean"==typeof n,"missing or invalid endian"),H(void 0!==e&&null!==e,"missing offset"),H(e+3<t.length,"Trying to read beyond buffer length"));var o=t.length;if(!(e>=o)){var i=y(t,e,n,!0),u=2147483648&i;return u?-1*(4294967295-i+1):i}}function _(t,e,n,r){return r||(H("boolean"==typeof n,"missing or invalid endian"),H(e+3<t.length,"Trying to read beyond buffer length")),q.read(t,e,n,23,4)}function j(t,e,n,r){return r||(H("boolean"==typeof n,"missing or invalid endian"),H(e+7<t.length,"Trying to read beyond buffer length")),q.read(t,e,n,52,8)}function E(t,e,n,r,o){o||(H(void 0!==e&&null!==e,"missing value"),H("boolean"==typeof r,"missing or invalid endian"),H(void 0!==n&&null!==n,"missing offset"),H(n+1<t.length,"trying to write beyond buffer length"),D(e,65535));var i=t.length;if(!(n>=i))for(var u=0,a=Math.min(i-n,2);a>u;u++)t[n+u]=(e&255<<8*(r?u:1-u))>>>8*(r?u:1-u)}function O(t,e,n,r,o){o||(H(void 0!==e&&null!==e,"missing value"),H("boolean"==typeof r,"missing or invalid endian"),H(void 0!==n&&null!==n,"missing offset"),H(n+3<t.length,"trying to write beyond buffer length"),D(e,4294967295));var i=t.length;if(!(n>=i))for(var u=0,a=Math.min(i-n,4);a>u;u++)t[n+u]=e>>>8*(r?u:3-u)&255}function S(t,e,n,r,o){o||(H(void 0!==e&&null!==e,"missing value"),H("boolean"==typeof r,"missing or invalid endian"),H(void 0!==n&&null!==n,"missing offset"),H(n+1<t.length,"Trying to write beyond buffer length"),z(e,32767,-32768));var i=t.length;n>=i||(e>=0?E(t,e,n,r,o):E(t,65535+e+1,n,r,o))}function k(t,e,n,r,o){o||(H(void 0!==e&&null!==e,"missing value"),H("boolean"==typeof r,"missing or invalid endian"),H(void 0!==n&&null!==n,"missing offset"),H(n+3<t.length,"Trying to write beyond buffer length"),z(e,2147483647,-2147483648));var i=t.length;n>=i||(e>=0?O(t,e,n,r,o):O(t,4294967295+e+1,n,r,o))}function A(t,e,n,r,o){o||(H(void 0!==e&&null!==e,"missing value"),H("boolean"==typeof r,"missing or invalid endian"),H(void 0!==n&&null!==n,"missing offset"),H(n+3<t.length,"Trying to write beyond buffer length"),G(e,3.4028234663852886e38,-3.4028234663852886e38));var i=t.length;n>=i||q.write(t,e,n,r,23,4)}function I(t,e,n,r,o){o||(H(void 0!==e&&null!==e,"missing value"),H("boolean"==typeof r,"missing or invalid endian"),H(void 0!==n&&null!==n,"missing offset"),H(n+7<t.length,"Trying to write beyond buffer length"),G(e,1.7976931348623157e308,-1.7976931348623157e308));var i=t.length;n>=i||q.write(t,e,n,r,52,8)}function C(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function x(t,e,n){return"number"!=typeof t?n:(t=~~t,t>=e?e:t>=0?t:(t+=e,t>=0?t:0))}function M(t){return t=~~Math.ceil(+t),0>t?0:t}function R(t){return(Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)})(t)}function T(t){return R(t)||o.isBuffer(t)||t&&"object"==typeof t&&"number"==typeof t.length}function N(t){return 16>t?"0"+t.toString(16):t.toString(16)}function P(t){for(var e=[],n=0;n<t.length;n++){var r=t.charCodeAt(n);if(127>=r)e.push(t.charCodeAt(n));else{var o=n;r>=55296&&57343>=r&&n++;for(var i=encodeURIComponent(t.slice(o,n+1)).substr(1).split("%"),u=0;u<i.length;u++)e.push(parseInt(i[u],16))}}return e}function $(t){for(var e=[],n=0;n<t.length;n++)e.push(255&t.charCodeAt(n));return e}function B(t){for(var e,n,r,o=[],i=0;i<t.length;i++)e=t.charCodeAt(i),n=e>>8,r=e%256,o.push(r),o.push(n);return o}function U(t){return W.toByteArray(t)}function L(t,e,n,r){for(var o=0;r>o&&!(o+n>=e.length||o>=t.length);o++)e[o+n]=t[o];return o}function F(t){try{return decodeURIComponent(t)}catch(e){return String.fromCharCode(65533)}}function D(t,e){H("number"==typeof t,"cannot write a non-number as a number"),H(t>=0,"specified a negative value for writing an unsigned value"),H(e>=t,"value is larger than maximum value for type"),H(Math.floor(t)===t,"value has a fractional component")}function z(t,e,n){H("number"==typeof t,"cannot write a non-number as a number"),H(e>=t,"value larger than maximum allowed value"),H(t>=n,"value smaller than minimum allowed value"),H(Math.floor(t)===t,"value has a fractional component")}function G(t,e,n){H("number"==typeof t,"cannot write a non-number as a number"),H(e>=t,"value larger than maximum allowed value"),H(t>=n,"value smaller than minimum allowed value")}function H(t,e){if(!t)throw new Error(e||"Failed assertion")}var W=t("base64-js"),q=t("ieee754");n.Buffer=o,n.SlowBuffer=o,n.INSPECT_MAX_BYTES=50,o.poolSize=8192,o._useTypedArrays=function(){try{var t=new ArrayBuffer(0),e=new Uint8Array(t);return e.foo=function(){return 42},42===e.foo()&&"function"==typeof e.subarray}catch(n){return!1}}(),o.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.isBuffer=function(t){return!(null===t||void 0===t||!t._isBuffer)},o.byteLength=function(t,e){var n;switch(t+="",e||"utf8"){case"hex":n=t.length/2;break;case"utf8":case"utf-8":n=P(t).length;break;case"ascii":case"binary":case"raw":n=t.length;break;case"base64":n=U(t).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":n=2*t.length;break;default:throw new Error("Unknown encoding")}return n},o.concat=function(t,e){if(H(R(t),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."),0===t.length)return new o(0);if(1===t.length)return t[0];var n;if("number"!=typeof e)for(e=0,n=0;n<t.length;n++)e+=t[n].length;var r=new o(e),i=0;for(n=0;n<t.length;n++){var u=t[n];u.copy(r,i),i+=u.length}return r},o.prototype.write=function(t,e,n,r){if(isFinite(e))isFinite(n)||(r=n,n=void 0);else{var o=r;r=e,e=n,n=o}e=Number(e)||0;var l=this.length-e;n?(n=Number(n),n>l&&(n=l)):n=l,r=String(r||"utf8").toLowerCase();var p;switch(r){case"hex":p=i(this,t,e,n);break;case"utf8":case"utf-8":p=u(this,t,e,n);break;case"ascii":p=a(this,t,e,n);break;case"binary":p=s(this,t,e,n);break;case"base64":p=c(this,t,e,n);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":p=f(this,t,e,n);break;default:throw new Error("Unknown encoding")}return p},o.prototype.toString=function(t,e,n){var r=this;if(t=String(t||"utf8").toLowerCase(),e=Number(e)||0,n=void 0!==n?Number(n):n=r.length,n===e)return"";var o;switch(t){case"hex":o=d(r,e,n);break;case"utf8":case"utf-8":o=p(r,e,n);break;case"ascii":o=h(r,e,n);break;case"binary":o=g(r,e,n);break;case"base64":o=l(r,e,n);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":o=v(r,e,n);break;default:throw new Error("Unknown encoding")}return o},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},o.prototype.copy=function(t,e,n,r){var i=this;if(n||(n=0),r||0===r||(r=this.length),e||(e=0),r!==n&&0!==t.length&&0!==i.length){H(r>=n,"sourceEnd < sourceStart"),H(e>=0&&e<t.length,"targetStart out of bounds"),H(n>=0&&n<i.length,"sourceStart out of bounds"),H(r>=0&&r<=i.length,"sourceEnd out of bounds"),r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var u=r-n;if(100>u||!o._useTypedArrays)for(var a=0;u>a;a++)t[a+e]=this[a+n];else t._set(this.subarray(n,n+u),e)}},o.prototype.slice=function(t,e){var n=this.length;if(t=x(t,n,0),e=x(e,n,n),o._useTypedArrays)return o._augment(this.subarray(t,e));for(var r=e-t,i=new o(r,void 0,!0),u=0;r>u;u++)i[u]=this[u+t];return i},o.prototype.get=function(t){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(t)},o.prototype.set=function(t,e){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(t,e)},o.prototype.readUInt8=function(t,e){return e||(H(void 0!==t&&null!==t,"missing offset"),H(t<this.length,"Trying to read beyond buffer length")),t>=this.length?void 0:this[t]},o.prototype.readUInt16LE=function(t,e){return m(this,t,!0,e)},o.prototype.readUInt16BE=function(t,e){return m(this,t,!1,e)},o.prototype.readUInt32LE=function(t,e){return y(this,t,!0,e)},o.prototype.readUInt32BE=function(t,e){return y(this,t,!1,e)},o.prototype.readInt8=function(t,e){if(e||(H(void 0!==t&&null!==t,"missing offset"),H(t<this.length,"Trying to read beyond buffer length")),!(t>=this.length)){var n=128&this[t];return n?-1*(255-this[t]+1):this[t]}},o.prototype.readInt16LE=function(t,e){return b(this,t,!0,e)},o.prototype.readInt16BE=function(t,e){return b(this,t,!1,e)},o.prototype.readInt32LE=function(t,e){return w(this,t,!0,e)},o.prototype.readInt32BE=function(t,e){return w(this,t,!1,e)},o.prototype.readFloatLE=function(t,e){return _(this,t,!0,e)},o.prototype.readFloatBE=function(t,e){return _(this,t,!1,e)},o.prototype.readDoubleLE=function(t,e){return j(this,t,!0,e)},o.prototype.readDoubleBE=function(t,e){return j(this,t,!1,e)},o.prototype.writeUInt8=function(t,e,n){n||(H(void 0!==t&&null!==t,"missing value"),H(void 0!==e&&null!==e,"missing offset"),H(e<this.length,"trying to write beyond buffer length"),D(t,255)),e>=this.length||(this[e]=t)},o.prototype.writeUInt16LE=function(t,e,n){E(this,t,e,!0,n)},o.prototype.writeUInt16BE=function(t,e,n){E(this,t,e,!1,n)},o.prototype.writeUInt32LE=function(t,e,n){O(this,t,e,!0,n)},o.prototype.writeUInt32BE=function(t,e,n){O(this,t,e,!1,n)},o.prototype.writeInt8=function(t,e,n){n||(H(void 0!==t&&null!==t,"missing value"),H(void 0!==e&&null!==e,"missing offset"),H(e<this.length,"Trying to write beyond buffer length"),z(t,127,-128)),e>=this.length||(t>=0?this.writeUInt8(t,e,n):this.writeUInt8(255+t+1,e,n))},o.prototype.writeInt16LE=function(t,e,n){S(this,t,e,!0,n)},o.prototype.writeInt16BE=function(t,e,n){S(this,t,e,!1,n)},o.prototype.writeInt32LE=function(t,e,n){k(this,t,e,!0,n)},o.prototype.writeInt32BE=function(t,e,n){k(this,t,e,!1,n)},o.prototype.writeFloatLE=function(t,e,n){A(this,t,e,!0,n)},o.prototype.writeFloatBE=function(t,e,n){A(this,t,e,!1,n)},o.prototype.writeDoubleLE=function(t,e,n){I(this,t,e,!0,n)},o.prototype.writeDoubleBE=function(t,e,n){I(this,t,e,!1,n)},o.prototype.fill=function(t,e,n){if(t||(t=0),e||(e=0),n||(n=this.length),"string"==typeof t&&(t=t.charCodeAt(0)),H("number"==typeof t&&!isNaN(t),"value is not a number"),H(n>=e,"end < start"),n!==e&&0!==this.length){H(e>=0&&e<this.length,"start out of bounds"),H(n>=0&&n<=this.length,"end out of bounds");for(var r=e;n>r;r++)this[r]=t}},o.prototype.inspect=function(){for(var t=[],e=this.length,r=0;e>r;r++)if(t[r]=N(this[r]),r===n.INSPECT_MAX_BYTES){t[r+1]="...";break}return"<Buffer "+t.join(" ")+">"},o.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(o._useTypedArrays)return new o(this).buffer;for(var t=new Uint8Array(this.length),e=0,n=t.length;n>e;e+=1)t[e]=this[e];return t.buffer}throw new Error("Buffer.toArrayBuffer not supported in this browser")};var K=o.prototype;o._augment=function(t){return t._isBuffer=!0,t._get=t.get,t._set=t.set,t.get=K.get,t.set=K.set,t.write=K.write,t.toString=K.toString,t.toLocaleString=K.toString,t.toJSON=K.toJSON,t.copy=K.copy,t.slice=K.slice,t.readUInt8=K.readUInt8,t.readUInt16LE=K.readUInt16LE,t.readUInt16BE=K.readUInt16BE,t.readUInt32LE=K.readUInt32LE,t.readUInt32BE=K.readUInt32BE,t.readInt8=K.readInt8,t.readInt16LE=K.readInt16LE,t.readInt16BE=K.readInt16BE,t.readInt32LE=K.readInt32LE,t.readInt32BE=K.readInt32BE,t.readFloatLE=K.readFloatLE,t.readFloatBE=K.readFloatBE,t.readDoubleLE=K.readDoubleLE,t.readDoubleBE=K.readDoubleBE,t.writeUInt8=K.writeUInt8,t.writeUInt16LE=K.writeUInt16LE,t.writeUInt16BE=K.writeUInt16BE,t.writeUInt32LE=K.writeUInt32LE,t.writeUInt32BE=K.writeUInt32BE,t.writeInt8=K.writeInt8,t.writeInt16LE=K.writeInt16LE,t.writeInt16BE=K.writeInt16BE,t.writeInt32LE=K.writeInt32LE,t.writeInt32BE=K.writeInt32BE,t.writeFloatLE=K.writeFloatLE,t.writeFloatBE=K.writeFloatBE,t.writeDoubleLE=K.writeDoubleLE,t.writeDoubleBE=K.writeDoubleBE,t.fill=K.fill,t.inspect=K.inspect,t.toArrayBuffer=K.toArrayBuffer,t}}).call(this,t("oMfpAn"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/index.js","/../../node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer")},{"base64-js":4,buffer:3,ieee754:5,oMfpAn:6}],4:[function(t,e,n){(function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(e){"use strict";function n(t){var e=t.charCodeAt(0);return e===u?62:e===a?63:s>e?-1:s+10>e?e-s+26+26:f+26>e?e-f:c+26>e?e-c+26:void 0}function r(t){function e(t){c[l++]=t}var r,o,u,a,s,c;if(t.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var f=t.length;s="="===t.charAt(f-2)?2:"="===t.charAt(f-1)?1:0,c=new i(3*t.length/4-s),u=s>0?t.length-4:t.length;var l=0;for(r=0,o=0;u>r;r+=4,o+=3)a=n(t.charAt(r))<<18|n(t.charAt(r+1))<<12|n(t.charAt(r+2))<<6|n(t.charAt(r+3)),e((16711680&a)>>16),e((65280&a)>>8),e(255&a);return 2===s?(a=n(t.charAt(r))<<2|n(t.charAt(r+1))>>4,e(255&a)):1===s&&(a=n(t.charAt(r))<<10|n(t.charAt(r+1))<<4|n(t.charAt(r+2))>>2,e(a>>8&255),e(255&a)),c}function o(e){function n(e){return t.charAt(e)}function r(t){return n(t>>18&63)+n(t>>12&63)+n(t>>6&63)+n(63&t)}var o,i,u,a=e.length%3,s="";for(o=0,u=e.length-a;u>o;o+=3)i=(e[o]<<16)+(e[o+1]<<8)+e[o+2],s+=r(i);switch(a){case 1:i=e[e.length-1],s+=n(i>>2),s+=n(i<<4&63),s+="==";break;case 2:i=(e[e.length-2]<<8)+e[e.length-1],s+=n(i>>10),s+=n(i>>4&63),s+=n(i<<2&63),s+="="}return s}var i="undefined"!=typeof Uint8Array?Uint8Array:Array,u="+".charCodeAt(0),a="/".charCodeAt(0),s="0".charCodeAt(0),c="a".charCodeAt(0),f="A".charCodeAt(0);e.toByteArray=r,e.fromByteArray=o}("undefined"==typeof n?this.base64js={}:n)}).call(this,t("oMfpAn"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/node_modules/base64-js/lib/b64.js","/../../node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/node_modules/base64-js/lib")},{buffer:3,oMfpAn:6}],5:[function(t,e,n){(function(){n.read=function(t,e,n,r,o){var i,u,a=8*o-r-1,s=(1<<a)-1,c=s>>1,f=-7,l=n?o-1:0,p=n?-1:1,h=t[e+l];for(l+=p,i=h&(1<<-f)-1,h>>=-f,f+=a;f>0;i=256*i+t[e+l],l+=p,f-=8);for(u=i&(1<<-f)-1,i>>=-f,f+=r;f>0;u=256*u+t[e+l],l+=p,f-=8);if(0===i)i=1-c;else{if(i===s)return u?0/0:1/0*(h?-1:1);u+=Math.pow(2,r),i-=c}return(h?-1:1)*u*Math.pow(2,i-r)},n.write=function(t,e,n,r,o,i){var u,a,s,c=8*i-o-1,f=(1<<c)-1,l=f>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,g=r?1:-1,d=0>e||0===e&&0>1/e?1:0;for(e=Math.abs(e),isNaN(e)||1/0===e?(a=isNaN(e)?1:0,u=f):(u=Math.floor(Math.log(e)/Math.LN2),e*(s=Math.pow(2,-u))<1&&(u--,s*=2),e+=u+l>=1?p/s:p*Math.pow(2,1-l),e*s>=2&&(u++,s/=2),u+l>=f?(a=0,u=f):u+l>=1?(a=(e*s-1)*Math.pow(2,o),u+=l):(a=e*Math.pow(2,l-1)*Math.pow(2,o),u=0));o>=8;t[n+h]=255&a,h+=g,a/=256,o-=8);for(u=u<<o|a,c+=o;c>0;t[n+h]=255&u,h+=g,u/=256,c-=8);t[n+h-g]|=128*d}}).call(this,t("oMfpAn"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/node_modules/ieee754/index.js","/../../node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/node_modules/ieee754")},{buffer:3,oMfpAn:6}],6:[function(t,e){(function(t){function n(){}var t=e.exports={};t.nextTick=function(){var t="undefined"!=typeof window&&window.setImmediate,e="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(t)return function(t){return window.setImmediate(t)};if(e){var n=[];return window.addEventListener("message",function(t){var e=t.source;if((e===window||null===e)&&"process-tick"===t.data&&(t.stopPropagation(),n.length>0)){var r=n.shift();r()}},!0),function(t){n.push(t),window.postMessage("process-tick","*")}}return function(t){setTimeout(t,0)}}(),t.title="browser",t.browser=!0,t.env={},t.argv=[],t.on=n,t.addListener=n,t.once=n,t.off=n,t.removeListener=n,t.removeAllListeners=n,t.emit=n,t.binding=function(){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(){throw new Error("process.chdir is not supported")}}).call(this,t("oMfpAn"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../node_modules/gulp-browserify/node_modules/browserify/node_modules/process/browser.js","/../../node_modules/gulp-browserify/node_modules/browserify/node_modules/process")},{buffer:3,oMfpAn:6}],7:[function(t,e,n){(function(t,r){(function(){function t(t,e,n){for(var r=(n||0)-1,o=t?t.length:0;++r<o;)if(t[r]===e)return r;return-1}function o(e,n){var r=typeof n;if(e=e.cache,"boolean"==r||null==n)return e[n]?0:-1;"number"!=r&&"string"!=r&&(r="object");var o="number"==r?n:w+n;return e=(e=e[r])&&e[o],"object"==r?e&&t(e,n)>-1?0:-1:e?0:-1}function i(t){var e=this.cache,n=typeof t;if("boolean"==n||null==t)e[t]=!0;else{"number"!=n&&"string"!=n&&(n="object");var r="number"==n?t:w+t,o=e[n]||(e[n]={});"object"==n?(o[r]||(o[r]=[])).push(t):o[r]=!0}}function u(t){return t.charCodeAt(0)}function a(t,e){for(var n=t.criteria,r=e.criteria,o=-1,i=n.length;++o<i;){var u=n[o],a=r[o];if(u!==a){if(u>a||"undefined"==typeof u)return 1;if(a>u||"undefined"==typeof a)return-1}}return t.index-e.index}function s(t){var e=-1,n=t.length,r=t[0],o=t[n/2|0],u=t[n-1];if(r&&"object"==typeof r&&o&&"object"==typeof o&&u&&"object"==typeof u)return!1;var a=l();a["false"]=a["null"]=a["true"]=a.undefined=!1;var s=l();for(s.array=t,s.cache=a,s.push=i;++e<n;)s.push(t[e]);return s}function c(t){return"\\"+J[t]}function f(){return m.pop()||[]}function l(){return y.pop()||{array:null,cache:null,criteria:null,"false":!1,index:0,"null":!1,number:null,object:null,push:null,string:null,"true":!1,undefined:!1,value:null}}function p(t){t.length=0,m.length<j&&m.push(t)}function h(t){var e=t.cache;e&&h(e),t.array=t.cache=t.criteria=t.object=t.number=t.string=t.value=null,y.length<j&&y.push(t)}function g(t,e,n){e||(e=0),"undefined"==typeof n&&(n=t?t.length:0);for(var r=-1,o=n-e||0,i=Array(0>o?0:o);++r<o;)i[r]=t[e+r];return i}function d(e){function n(t){return t&&"object"==typeof t&&!Xr(t)&&Nr.call(t,"__wrapped__")?t:new r(t)}function r(t,e){this.__chain__=!!e,this.__wrapped__=t}function i(t){function e(){if(r){var t=g(r);Pr.apply(t,arguments)}if(this instanceof e){var i=y(n.prototype),u=n.apply(i,t||arguments);return xe(u)?u:i}return n.apply(o,t||arguments)}var n=t[0],r=t[2],o=t[4];return Yr(e,t),e}function m(t,e,n,r,o){if(n){var i=n(t);if("undefined"!=typeof i)return i}var u=xe(t);if(!u)return t;var a=Ar.call(t);if(!q[a])return t;var s=Vr[a];switch(a){case L:case F:return new s(+t);case z:case W:return new s(t);case H:return i=s(t.source,I.exec(t)),i.lastIndex=t.lastIndex,i}var c=Xr(t);if(e){var l=!r;r||(r=f()),o||(o=f());for(var h=r.length;h--;)if(r[h]==t)return o[h];i=c?s(t.length):{}}else i=c?g(t):io({},t);return c&&(Nr.call(t,"index")&&(i.index=t.index),Nr.call(t,"input")&&(i.input=t.input)),e?(r.push(t),o.push(i),(c?Je:so)(t,function(t,u){i[u]=m(t,e,n,r,o)}),l&&(p(r),p(o)),i):i}function y(t){return xe(t)?Fr(t):{}}function j(t,e,n){if("function"!=typeof t)return Xn;if("undefined"==typeof e||!("prototype"in t))return t;var r=t.__bindData__;if("undefined"==typeof r&&(Jr.funcNames&&(r=!t.name),r=r||!Jr.funcDecomp,!r)){var o=Rr.call(t);Jr.funcNames||(r=!C.test(o)),r||(r=T.test(o),Yr(t,r))}if(r===!1||r!==!0&&1&r[1])return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)};case 4:return function(n,r,o,i){return t.call(e,n,r,o,i)}}return Pn(t,e)}function J(t){function e(){var t=s?u:this;if(o){var h=g(o);Pr.apply(h,arguments)}if((i||f)&&(h||(h=g(arguments)),i&&Pr.apply(h,i),f&&h.length<a))return r|=16,J([n,l?r:-4&r,h,null,u,a]);if(h||(h=arguments),c&&(n=t[p]),this instanceof e){t=y(n.prototype);var d=n.apply(t,h);return xe(d)?d:t}return n.apply(t,h)}var n=t[0],r=t[1],o=t[2],i=t[3],u=t[4],a=t[5],s=1&r,c=2&r,f=4&r,l=8&r,p=n;return Yr(e,t),e}function X(e,n){var r=-1,i=se(),u=e?e.length:0,a=u>=_&&i===t,c=[];if(a){var f=s(n);f?(i=o,n=f):a=!1}for(;++r<u;){var l=e[r];i(n,l)<0&&c.push(l)}return a&&h(n),c}function Q(t,e,n,r){for(var o=(r||0)-1,i=t?t.length:0,u=[];++o<i;){var a=t[o];if(a&&"object"==typeof a&&"number"==typeof a.length&&(Xr(a)||pe(a))){e||(a=Q(a,e,n));var s=-1,c=a.length,f=u.length;for(u.length+=c;++s<c;)u[f++]=a[s]}else n||u.push(a)}return u}function te(t,e,n,r,o,i){if(n){var u=n(t,e);if("undefined"!=typeof u)return!!u}if(t===e)return 0!==t||1/t==1/e;var a=typeof t,s=typeof e;if(!(t!==t||t&&V[a]||e&&V[s]))return!1;if(null==t||null==e)return t===e;var c=Ar.call(t),l=Ar.call(e);if(c==B&&(c=G),l==B&&(l=G),c!=l)return!1;switch(c){case L:case F:return+t==+e;case z:return t!=+t?e!=+e:0==t?1/t==1/e:t==+e;case H:case W:return t==jr(e)}var h=c==U;if(!h){var g=Nr.call(t,"__wrapped__"),d=Nr.call(e,"__wrapped__");if(g||d)return te(g?t.__wrapped__:t,d?e.__wrapped__:e,n,r,o,i);if(c!=G)return!1;var v=t.constructor,m=e.constructor;if(v!=m&&!(Ce(v)&&v instanceof v&&Ce(m)&&m instanceof m)&&"constructor"in t&&"constructor"in e)return!1}var y=!o;o||(o=f()),i||(i=f());for(var b=o.length;b--;)if(o[b]==t)return i[b]==e;var w=0;if(u=!0,o.push(t),i.push(e),h){if(b=t.length,w=e.length,u=w==b,u||r)for(;w--;){var _=b,j=e[w];if(r)for(;_--&&!(u=te(t[_],j,n,r,o,i)););else if(!(u=te(t[w],j,n,r,o,i)))break}}else ao(e,function(e,a,s){return Nr.call(s,a)?(w++,u=Nr.call(t,a)&&te(t[a],e,n,r,o,i)):void 0}),u&&!r&&ao(t,function(t,e,n){return Nr.call(n,e)?u=--w>-1:void 0});return o.pop(),i.pop(),y&&(p(o),p(i)),u}function ee(t,e,n,r,o){(Xr(e)?Je:so)(e,function(e,i){var u,a,s=e,c=t[i];if(e&&((a=Xr(e))||co(e))){for(var f=r.length;f--;)if(u=r[f]==e){c=o[f];break}if(!u){var l;n&&(s=n(c,e),(l="undefined"!=typeof s)&&(c=s)),l||(c=a?Xr(c)?c:[]:co(c)?c:{}),r.push(e),o.push(c),l||ee(c,e,n,r,o)}}else n&&(s=n(c,e),"undefined"==typeof s&&(s=e)),"undefined"!=typeof s&&(c=s);t[i]=c})}function re(t,e){return t+Mr(Zr()*(e-t+1))}function oe(e,n,r){var i=-1,u=se(),a=e?e.length:0,c=[],l=!n&&a>=_&&u===t,g=r||l?f():c;if(l){var d=s(g);u=o,g=d}for(;++i<a;){var v=e[i],m=r?r(v,i,e):v;(n?!i||g[g.length-1]!==m:u(g,m)<0)&&((r||l)&&g.push(m),c.push(v))}return l?(p(g.array),h(g)):r&&p(g),c}function ie(t){return function(e,r,o){var i={};r=n.createCallback(r,o,3);var u=-1,a=e?e.length:0;if("number"==typeof a)for(;++u<a;){var s=e[u];t(i,s,r(s,u,e),e)}else so(e,function(e,n,o){t(i,e,r(e,n,o),o)});return i}}function ue(t,e,n,r,o,u){var a=1&e,s=2&e,c=4&e,f=16&e,l=32&e;if(!s&&!Ce(t))throw new Er;f&&!n.length&&(e&=-17,f=n=!1),l&&!r.length&&(e&=-33,l=r=!1);var p=t&&t.__bindData__;if(p&&p!==!0)return p=g(p),p[2]&&(p[2]=g(p[2])),p[3]&&(p[3]=g(p[3])),!a||1&p[1]||(p[4]=o),!a&&1&p[1]&&(e|=8),!c||4&p[1]||(p[5]=u),f&&Pr.apply(p[2]||(p[2]=[]),n),l&&Ur.apply(p[3]||(p[3]=[]),r),p[1]|=e,ue.apply(null,p);
3
+ var h=1==e||17===e?i:J;return h([t,e,n,r,o,u])}function ae(t){return eo[t]}function se(){var e=(e=n.indexOf)===yn?t:e;return e}function ce(t){return"function"==typeof t&&Ir.test(t)}function fe(t){var e,n;return t&&Ar.call(t)==G&&(e=t.constructor,!Ce(e)||e instanceof e)?(ao(t,function(t,e){n=e}),"undefined"==typeof n||Nr.call(t,n)):!1}function le(t){return no[t]}function pe(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Ar.call(t)==B||!1}function he(t,e,n,r){return"boolean"!=typeof e&&null!=e&&(r=n,n=e,e=!1),m(t,e,"function"==typeof n&&j(n,r,1))}function ge(t,e,n){return m(t,!0,"function"==typeof e&&j(e,n,1))}function de(t,e){var n=y(t);return e?io(n,e):n}function ve(t,e,r){var o;return e=n.createCallback(e,r,3),so(t,function(t,n,r){return e(t,n,r)?(o=n,!1):void 0}),o}function me(t,e,r){var o;return e=n.createCallback(e,r,3),be(t,function(t,n,r){return e(t,n,r)?(o=n,!1):void 0}),o}function ye(t,e,n){var r=[];ao(t,function(t,e){r.push(e,t)});var o=r.length;for(e=j(e,n,3);o--&&e(r[o--],r[o],t)!==!1;);return t}function be(t,e,n){var r=to(t),o=r.length;for(e=j(e,n,3);o--;){var i=r[o];if(e(t[i],i,t)===!1)break}return t}function we(t){var e=[];return ao(t,function(t,n){Ce(t)&&e.push(n)}),e.sort()}function _e(t,e){return t?Nr.call(t,e):!1}function je(t){for(var e=-1,n=to(t),r=n.length,o={};++e<r;){var i=n[e];o[t[i]]=i}return o}function Ee(t){return t===!0||t===!1||t&&"object"==typeof t&&Ar.call(t)==L||!1}function Oe(t){return t&&"object"==typeof t&&Ar.call(t)==F||!1}function Se(t){return t&&1===t.nodeType||!1}function ke(t){var e=!0;if(!t)return e;var n=Ar.call(t),r=t.length;return n==U||n==W||n==B||n==G&&"number"==typeof r&&Ce(t.splice)?!r:(so(t,function(){return e=!1}),e)}function Ae(t,e,n,r){return te(t,e,"function"==typeof n&&j(n,r,2))}function Ie(t){return zr(t)&&!Gr(parseFloat(t))}function Ce(t){return"function"==typeof t}function xe(t){return!(!t||!V[typeof t])}function Me(t){return Te(t)&&t!=+t}function Re(t){return null===t}function Te(t){return"number"==typeof t||t&&"object"==typeof t&&Ar.call(t)==z||!1}function Ne(t){return t&&"object"==typeof t&&Ar.call(t)==H||!1}function Pe(t){return"string"==typeof t||t&&"object"==typeof t&&Ar.call(t)==W||!1}function $e(t){return"undefined"==typeof t}function Be(t,e,r){var o={};return e=n.createCallback(e,r,3),so(t,function(t,n,r){o[n]=e(t,n,r)}),o}function Ue(t){var e=arguments,n=2;if(!xe(t))return t;if("number"!=typeof e[2]&&(n=e.length),n>3&&"function"==typeof e[n-2])var r=j(e[--n-1],e[n--],2);else n>2&&"function"==typeof e[n-1]&&(r=e[--n]);for(var o=g(arguments,1,n),i=-1,u=f(),a=f();++i<n;)ee(t,o[i],r,u,a);return p(u),p(a),t}function Le(t,e,r){var o={};if("function"!=typeof e){var i=[];ao(t,function(t,e){i.push(e)}),i=X(i,Q(arguments,!0,!1,1));for(var u=-1,a=i.length;++u<a;){var s=i[u];o[s]=t[s]}}else e=n.createCallback(e,r,3),ao(t,function(t,n,r){e(t,n,r)||(o[n]=t)});return o}function Fe(t){for(var e=-1,n=to(t),r=n.length,o=gr(r);++e<r;){var i=n[e];o[e]=[i,t[i]]}return o}function De(t,e,r){var o={};if("function"!=typeof e)for(var i=-1,u=Q(arguments,!0,!1,1),a=xe(t)?u.length:0;++i<a;){var s=u[i];s in t&&(o[s]=t[s])}else e=n.createCallback(e,r,3),ao(t,function(t,n,r){e(t,n,r)&&(o[n]=t)});return o}function ze(t,e,r,o){var i=Xr(t);if(null==r)if(i)r=[];else{var u=t&&t.constructor,a=u&&u.prototype;r=y(a)}return e&&(e=n.createCallback(e,o,4),(i?Je:so)(t,function(t,n,o){return e(r,t,n,o)})),r}function Ge(t){for(var e=-1,n=to(t),r=n.length,o=gr(r);++e<r;)o[e]=t[n[e]];return o}function He(t){for(var e=arguments,n=-1,r=Q(e,!0,!1,1),o=e[2]&&e[2][e[1]]===t?1:r.length,i=gr(o);++n<o;)i[n]=t[r[n]];return i}function We(t,e,n){var r=-1,o=se(),i=t?t.length:0,u=!1;return n=(0>n?Wr(0,i+n):n)||0,Xr(t)?u=o(t,e,n)>-1:"number"==typeof i?u=(Pe(t)?t.indexOf(e,n):o(t,e,n))>-1:so(t,function(t){return++r>=n?!(u=t===e):void 0}),u}function qe(t,e,r){var o=!0;e=n.createCallback(e,r,3);var i=-1,u=t?t.length:0;if("number"==typeof u)for(;++i<u&&(o=!!e(t[i],i,t)););else so(t,function(t,n,r){return o=!!e(t,n,r)});return o}function Ke(t,e,r){var o=[];e=n.createCallback(e,r,3);var i=-1,u=t?t.length:0;if("number"==typeof u)for(;++i<u;){var a=t[i];e(a,i,t)&&o.push(a)}else so(t,function(t,n,r){e(t,n,r)&&o.push(t)});return o}function Ze(t,e,r){e=n.createCallback(e,r,3);var o=-1,i=t?t.length:0;if("number"!=typeof i){var u;return so(t,function(t,n,r){return e(t,n,r)?(u=t,!1):void 0}),u}for(;++o<i;){var a=t[o];if(e(a,o,t))return a}}function Ve(t,e,r){var o;return e=n.createCallback(e,r,3),Ye(t,function(t,n,r){return e(t,n,r)?(o=t,!1):void 0}),o}function Je(t,e,n){var r=-1,o=t?t.length:0;if(e=e&&"undefined"==typeof n?e:j(e,n,3),"number"==typeof o)for(;++r<o&&e(t[r],r,t)!==!1;);else so(t,e);return t}function Ye(t,e,n){var r=t?t.length:0;if(e=e&&"undefined"==typeof n?e:j(e,n,3),"number"==typeof r)for(;r--&&e(t[r],r,t)!==!1;);else{var o=to(t);r=o.length,so(t,function(t,n,i){return n=o?o[--r]:--r,e(i[n],n,i)})}return t}function Xe(t,e){var n=g(arguments,2),r=-1,o="function"==typeof e,i=t?t.length:0,u=gr("number"==typeof i?i:0);return Je(t,function(t){u[++r]=(o?e:t[e]).apply(t,n)}),u}function Qe(t,e,r){var o=-1,i=t?t.length:0;if(e=n.createCallback(e,r,3),"number"==typeof i)for(var u=gr(i);++o<i;)u[o]=e(t[o],o,t);else u=[],so(t,function(t,n,r){u[++o]=e(t,n,r)});return u}function tn(t,e,r){var o=-1/0,i=o;if("function"!=typeof e&&r&&r[e]===t&&(e=null),null==e&&Xr(t))for(var a=-1,s=t.length;++a<s;){var c=t[a];c>i&&(i=c)}else e=null==e&&Pe(t)?u:n.createCallback(e,r,3),Je(t,function(t,n,r){var u=e(t,n,r);u>o&&(o=u,i=t)});return i}function en(t,e,r){var o=1/0,i=o;if("function"!=typeof e&&r&&r[e]===t&&(e=null),null==e&&Xr(t))for(var a=-1,s=t.length;++a<s;){var c=t[a];i>c&&(i=c)}else e=null==e&&Pe(t)?u:n.createCallback(e,r,3),Je(t,function(t,n,r){var u=e(t,n,r);o>u&&(o=u,i=t)});return i}function nn(t,e,r,o){if(!t)return r;var i=arguments.length<3;e=n.createCallback(e,o,4);var u=-1,a=t.length;if("number"==typeof a)for(i&&(r=t[++u]);++u<a;)r=e(r,t[u],u,t);else so(t,function(t,n,o){r=i?(i=!1,t):e(r,t,n,o)});return r}function rn(t,e,r,o){var i=arguments.length<3;return e=n.createCallback(e,o,4),Ye(t,function(t,n,o){r=i?(i=!1,t):e(r,t,n,o)}),r}function on(t,e,r){return e=n.createCallback(e,r,3),Ke(t,function(t,n,r){return!e(t,n,r)})}function un(t,e,n){if(t&&"number"!=typeof t.length&&(t=Ge(t)),null==e||n)return t?t[re(0,t.length-1)]:v;var r=an(t);return r.length=qr(Wr(0,e),r.length),r}function an(t){var e=-1,n=t?t.length:0,r=gr("number"==typeof n?n:0);return Je(t,function(t){var n=re(0,++e);r[e]=r[n],r[n]=t}),r}function sn(t){var e=t?t.length:0;return"number"==typeof e?e:to(t).length}function cn(t,e,r){var o;e=n.createCallback(e,r,3);var i=-1,u=t?t.length:0;if("number"==typeof u)for(;++i<u&&!(o=e(t[i],i,t)););else so(t,function(t,n,r){return!(o=e(t,n,r))});return!!o}function fn(t,e,r){var o=-1,i=Xr(e),u=t?t.length:0,s=gr("number"==typeof u?u:0);for(i||(e=n.createCallback(e,r,3)),Je(t,function(t,n,r){var u=s[++o]=l();i?u.criteria=Qe(e,function(e){return t[e]}):(u.criteria=f())[0]=e(t,n,r),u.index=o,u.value=t}),u=s.length,s.sort(a);u--;){var c=s[u];s[u]=c.value,i||p(c.criteria),h(c)}return s}function ln(t){return t&&"number"==typeof t.length?g(t):Ge(t)}function pn(t){for(var e=-1,n=t?t.length:0,r=[];++e<n;){var o=t[e];o&&r.push(o)}return r}function hn(t){return X(t,Q(arguments,!0,!0,1))}function gn(t,e,r){var o=-1,i=t?t.length:0;for(e=n.createCallback(e,r,3);++o<i;)if(e(t[o],o,t))return o;return-1}function dn(t,e,r){var o=t?t.length:0;for(e=n.createCallback(e,r,3);o--;)if(e(t[o],o,t))return o;return-1}function vn(t,e,r){var o=0,i=t?t.length:0;if("number"!=typeof e&&null!=e){var u=-1;for(e=n.createCallback(e,r,3);++u<i&&e(t[u],u,t);)o++}else if(o=e,null==o||r)return t?t[0]:v;return g(t,0,qr(Wr(0,o),i))}function mn(t,e,n,r){return"boolean"!=typeof e&&null!=e&&(r=n,n="function"!=typeof e&&r&&r[e]===t?null:e,e=!1),null!=n&&(t=Qe(t,n,r)),Q(t,e)}function yn(e,n,r){if("number"==typeof r){var o=e?e.length:0;r=0>r?Wr(0,o+r):r||0}else if(r){var i=An(e,n);return e[i]===n?i:-1}return t(e,n,r)}function bn(t,e,r){var o=0,i=t?t.length:0;if("number"!=typeof e&&null!=e){var u=i;for(e=n.createCallback(e,r,3);u--&&e(t[u],u,t);)o++}else o=null==e||r?1:e||o;return g(t,0,qr(Wr(0,i-o),i))}function wn(){for(var e=[],n=-1,r=arguments.length,i=f(),u=se(),a=u===t,c=f();++n<r;){var l=arguments[n];(Xr(l)||pe(l))&&(e.push(l),i.push(a&&l.length>=_&&s(n?e[n]:c)))}var g=e[0],d=-1,v=g?g.length:0,m=[];t:for(;++d<v;){var y=i[0];if(l=g[d],(y?o(y,l):u(c,l))<0){for(n=r,(y||c).push(l);--n;)if(y=i[n],(y?o(y,l):u(e[n],l))<0)continue t;m.push(l)}}for(;r--;)y=i[r],y&&h(y);return p(i),p(c),m}function _n(t,e,r){var o=0,i=t?t.length:0;if("number"!=typeof e&&null!=e){var u=i;for(e=n.createCallback(e,r,3);u--&&e(t[u],u,t);)o++}else if(o=e,null==o||r)return t?t[i-1]:v;return g(t,Wr(0,i-o))}function jn(t,e,n){var r=t?t.length:0;for("number"==typeof n&&(r=(0>n?Wr(0,r+n):qr(n,r-1))+1);r--;)if(t[r]===e)return r;return-1}function En(t){for(var e=arguments,n=0,r=e.length,o=t?t.length:0;++n<r;)for(var i=-1,u=e[n];++i<o;)t[i]===u&&(Br.call(t,i--,1),o--);return t}function On(t,e,n){t=+t||0,n="number"==typeof n?n:+n||1,null==e&&(e=t,t=0);for(var r=-1,o=Wr(0,Cr((e-t)/(n||1))),i=gr(o);++r<o;)i[r]=t,t+=n;return i}function Sn(t,e,r){var o=-1,i=t?t.length:0,u=[];for(e=n.createCallback(e,r,3);++o<i;){var a=t[o];e(a,o,t)&&(u.push(a),Br.call(t,o--,1),i--)}return u}function kn(t,e,r){if("number"!=typeof e&&null!=e){var o=0,i=-1,u=t?t.length:0;for(e=n.createCallback(e,r,3);++i<u&&e(t[i],i,t);)o++}else o=null==e||r?1:Wr(0,e);return g(t,o)}function An(t,e,r,o){var i=0,u=t?t.length:i;for(r=r?n.createCallback(r,o,1):Xn,e=r(e);u>i;){var a=i+u>>>1;r(t[a])<e?i=a+1:u=a}return i}function In(){return oe(Q(arguments,!0,!0))}function Cn(t,e,r,o){return"boolean"!=typeof e&&null!=e&&(o=r,r="function"!=typeof e&&o&&o[e]===t?null:e,e=!1),null!=r&&(r=n.createCallback(r,o,3)),oe(t,e,r)}function xn(t){return X(t,g(arguments,1))}function Mn(){for(var t=-1,e=arguments.length;++t<e;){var n=arguments[t];if(Xr(n)||pe(n))var r=r?oe(X(r,n).concat(X(n,r))):n}return r||[]}function Rn(){for(var t=arguments.length>1?arguments:arguments[0],e=-1,n=t?tn(ho(t,"length")):0,r=gr(0>n?0:n);++e<n;)r[e]=ho(t,e);return r}function Tn(t,e){var n=-1,r=t?t.length:0,o={};for(e||!r||Xr(t[0])||(e=[]);++n<r;){var i=t[n];e?o[i]=e[n]:i&&(o[i[0]]=i[1])}return o}function Nn(t,e){if(!Ce(e))throw new Er;return function(){return--t<1?e.apply(this,arguments):void 0}}function Pn(t,e){return arguments.length>2?ue(t,17,g(arguments,2),null,e):ue(t,1,null,null,e)}function $n(t){for(var e=arguments.length>1?Q(arguments,!0,!1,1):we(t),n=-1,r=e.length;++n<r;){var o=e[n];t[o]=ue(t[o],1,null,null,t)}return t}function Bn(t,e){return arguments.length>2?ue(e,19,g(arguments,2),null,t):ue(e,3,null,null,t)}function Un(){for(var t=arguments,e=t.length;e--;)if(!Ce(t[e]))throw new Er;return function(){for(var e=arguments,n=t.length;n--;)e=[t[n].apply(this,e)];return e[0]}}function Ln(t,e){return e="number"==typeof e?e:+e||t.length,ue(t,4,null,null,null,e)}function Fn(t,e,n){var r,o,i,u,a,s,c,f=0,l=!1,p=!0;if(!Ce(t))throw new Er;if(e=Wr(0,e)||0,n===!0){var h=!0;p=!1}else xe(n)&&(h=n.leading,l="maxWait"in n&&(Wr(e,n.maxWait)||0),p="trailing"in n?n.trailing:p);var g=function(){var n=e-(vo()-u);if(0>=n){o&&xr(o);var l=c;o=s=c=v,l&&(f=vo(),i=t.apply(a,r),s||o||(r=a=null))}else s=$r(g,n)},d=function(){s&&xr(s),o=s=c=v,(p||l!==e)&&(f=vo(),i=t.apply(a,r),s||o||(r=a=null))};return function(){if(r=arguments,u=vo(),a=this,c=p&&(s||!h),l===!1)var n=h&&!s;else{o||h||(f=u);var v=l-(u-f),m=0>=v;m?(o&&(o=xr(o)),f=u,i=t.apply(a,r)):o||(o=$r(d,v))}return m&&s?s=xr(s):s||e===l||(s=$r(g,e)),n&&(m=!0,i=t.apply(a,r)),!m||s||o||(r=a=null),i}}function Dn(t){if(!Ce(t))throw new Er;var e=g(arguments,1);return $r(function(){t.apply(v,e)},1)}function zn(t,e){if(!Ce(t))throw new Er;var n=g(arguments,2);return $r(function(){t.apply(v,n)},e)}function Gn(t,e){if(!Ce(t))throw new Er;var n=function(){var r=n.cache,o=e?e.apply(this,arguments):w+arguments[0];return Nr.call(r,o)?r[o]:r[o]=t.apply(this,arguments)};return n.cache={},n}function Hn(t){var e,n;if(!Ce(t))throw new Er;return function(){return e?n:(e=!0,n=t.apply(this,arguments),t=null,n)}}function Wn(t){return ue(t,16,g(arguments,1))}function qn(t){return ue(t,32,null,g(arguments,1))}function Kn(t,e,n){var r=!0,o=!0;if(!Ce(t))throw new Er;return n===!1?r=!1:xe(n)&&(r="leading"in n?n.leading:r,o="trailing"in n?n.trailing:o),K.leading=r,K.maxWait=e,K.trailing=o,Fn(t,e,K)}function Zn(t,e){return ue(e,16,[t])}function Vn(t){return function(){return t}}function Jn(t,e,n){var r=typeof t;if(null==t||"function"==r)return j(t,e,n);if("object"!=r)return nr(t);var o=to(t),i=o[0],u=t[i];return 1!=o.length||u!==u||xe(u)?function(e){for(var n=o.length,r=!1;n--&&(r=te(e[o[n]],t[o[n]],null,!0)););return r}:function(t){var e=t[i];return u===e&&(0!==u||1/u==1/e)}}function Yn(t){return null==t?"":jr(t).replace(oo,ae)}function Xn(t){return t}function Qn(t,e,o){var i=!0,u=e&&we(e);e&&(o||u.length)||(null==o&&(o=e),a=r,e=t,t=n,u=we(e)),o===!1?i=!1:xe(o)&&"chain"in o&&(i=o.chain);var a=t,s=Ce(a);Je(u,function(n){var r=t[n]=e[n];s&&(a.prototype[n]=function(){var e=this.__chain__,n=this.__wrapped__,o=[n];Pr.apply(o,arguments);var u=r.apply(t,o);if(i||e){if(n===u&&xe(u))return this;u=new a(u),u.__chain__=e}return u})})}function tr(){return e._=kr,this}function er(){}function nr(t){return function(e){return e[t]}}function rr(t,e,n){var r=null==t,o=null==e;if(null==n&&("boolean"==typeof t&&o?(n=t,t=1):o||"boolean"!=typeof e||(n=e,o=!0)),r&&o&&(e=1),t=+t||0,o?(e=t,t=0):e=+e||0,n||t%1||e%1){var i=Zr();return qr(t+i*(e-t+parseFloat("1e-"+((i+"").length-1))),e)}return re(t,e)}function or(t,e){if(t){var n=t[e];return Ce(n)?t[e]():n}}function ir(t,e,r){var o=n.templateSettings;t=jr(t||""),r=uo({},r,o);var i,u=uo({},r.imports,o.imports),a=to(u),s=Ge(u),f=0,l=r.interpolate||R,p="__p += '",h=_r((r.escape||R).source+"|"+l.source+"|"+(l===x?A:R).source+"|"+(r.evaluate||R).source+"|$","g");t.replace(h,function(e,n,r,o,u,a){return r||(r=o),p+=t.slice(f,a).replace(N,c),n&&(p+="' +\n__e("+n+") +\n'"),u&&(i=!0,p+="';\n"+u+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),f=a+e.length,e}),p+="';\n";var g=r.variable,d=g;d||(g="obj",p="with ("+g+") {\n"+p+"\n}\n"),p=(i?p.replace(O,""):p).replace(S,"$1").replace(k,"$1;"),p="function("+g+") {\n"+(d?"":g+" || ("+g+" = {});\n")+"var __t, __p = '', __e = _.escape"+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var m="\n/*\n//# sourceURL="+(r.sourceURL||"/lodash/template/source["+$++ +"]")+"\n*/";try{var y=mr(a,"return "+p+m).apply(v,s)}catch(b){throw b.source=p,b}return e?y(e):(y.source=p,y)}function ur(t,e,n){t=(t=+t)>-1?t:0;var r=-1,o=gr(t);for(e=j(e,n,1);++r<t;)o[r]=e(r);return o}function ar(t){return null==t?"":jr(t).replace(ro,le)}function sr(t){var e=++b;return jr(null==t?"":t)+e}function cr(t){return t=new r(t),t.__chain__=!0,t}function fr(t,e){return e(t),t}function lr(){return this.__chain__=!0,this}function pr(){return jr(this.__wrapped__)}function hr(){return this.__wrapped__}e=e?ne.defaults(Y.Object(),e,ne.pick(Y,P)):Y;var gr=e.Array,dr=e.Boolean,vr=e.Date,mr=e.Function,yr=e.Math,br=e.Number,wr=e.Object,_r=e.RegExp,jr=e.String,Er=e.TypeError,Or=[],Sr=wr.prototype,kr=e._,Ar=Sr.toString,Ir=_r("^"+jr(Ar).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$"),Cr=yr.ceil,xr=e.clearTimeout,Mr=yr.floor,Rr=mr.prototype.toString,Tr=ce(Tr=wr.getPrototypeOf)&&Tr,Nr=Sr.hasOwnProperty,Pr=Or.push,$r=e.setTimeout,Br=Or.splice,Ur=Or.unshift,Lr=function(){try{var t={},e=ce(e=wr.defineProperty)&&e,n=e(t,t,t)&&e}catch(r){}return n}(),Fr=ce(Fr=wr.create)&&Fr,Dr=ce(Dr=gr.isArray)&&Dr,zr=e.isFinite,Gr=e.isNaN,Hr=ce(Hr=wr.keys)&&Hr,Wr=yr.max,qr=yr.min,Kr=e.parseInt,Zr=yr.random,Vr={};Vr[U]=gr,Vr[L]=dr,Vr[F]=vr,Vr[D]=mr,Vr[G]=wr,Vr[z]=br,Vr[H]=_r,Vr[W]=jr,r.prototype=n.prototype;var Jr=n.support={};Jr.funcDecomp=!ce(e.WinRTError)&&T.test(d),Jr.funcNames="string"==typeof mr.name,n.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:x,variable:"",imports:{_:n}},Fr||(y=function(){function t(){}return function(n){if(xe(n)){t.prototype=n;var r=new t;t.prototype=null}return r||e.Object()}}());var Yr=Lr?function(t,e){Z.value=e,Lr(t,"__bindData__",Z)}:er,Xr=Dr||function(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Ar.call(t)==U||!1},Qr=function(t){var e,n=t,r=[];if(!n)return r;if(!V[typeof t])return r;for(e in n)Nr.call(n,e)&&r.push(e);return r},to=Hr?function(t){return xe(t)?Hr(t):[]}:Qr,eo={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},no=je(eo),ro=_r("("+to(no).join("|")+")","g"),oo=_r("["+to(eo).join("")+"]","g"),io=function(t,e,n){var r,o=t,i=o;if(!o)return i;var u=arguments,a=0,s="number"==typeof n?2:u.length;if(s>3&&"function"==typeof u[s-2])var c=j(u[--s-1],u[s--],2);else s>2&&"function"==typeof u[s-1]&&(c=u[--s]);for(;++a<s;)if(o=u[a],o&&V[typeof o])for(var f=-1,l=V[typeof o]&&to(o),p=l?l.length:0;++f<p;)r=l[f],i[r]=c?c(i[r],o[r]):o[r];return i},uo=function(t,e,n){var r,o=t,i=o;if(!o)return i;for(var u=arguments,a=0,s="number"==typeof n?2:u.length;++a<s;)if(o=u[a],o&&V[typeof o])for(var c=-1,f=V[typeof o]&&to(o),l=f?f.length:0;++c<l;)r=f[c],"undefined"==typeof i[r]&&(i[r]=o[r]);return i},ao=function(t,e,n){var r,o=t,i=o;if(!o)return i;if(!V[typeof o])return i;e=e&&"undefined"==typeof n?e:j(e,n,3);for(r in o)if(e(o[r],r,t)===!1)return i;return i},so=function(t,e,n){var r,o=t,i=o;if(!o)return i;if(!V[typeof o])return i;e=e&&"undefined"==typeof n?e:j(e,n,3);for(var u=-1,a=V[typeof o]&&to(o),s=a?a.length:0;++u<s;)if(r=a[u],e(o[r],r,t)===!1)return i;return i},co=Tr?function(t){if(!t||Ar.call(t)!=G)return!1;var e=t.valueOf,n=ce(e)&&(n=Tr(e))&&Tr(n);return n?t==n||Tr(t)==n:fe(t)}:fe,fo=ie(function(t,e,n){Nr.call(t,n)?t[n]++:t[n]=1}),lo=ie(function(t,e,n){(Nr.call(t,n)?t[n]:t[n]=[]).push(e)}),po=ie(function(t,e,n){t[n]=e}),ho=Qe,go=Ke,vo=ce(vo=vr.now)&&vo||function(){return(new vr).getTime()},mo=8==Kr(E+"08")?Kr:function(t,e){return Kr(Pe(t)?t.replace(M,""):t,e||0)};return n.after=Nn,n.assign=io,n.at=He,n.bind=Pn,n.bindAll=$n,n.bindKey=Bn,n.chain=cr,n.compact=pn,n.compose=Un,n.constant=Vn,n.countBy=fo,n.create=de,n.createCallback=Jn,n.curry=Ln,n.debounce=Fn,n.defaults=uo,n.defer=Dn,n.delay=zn,n.difference=hn,n.filter=Ke,n.flatten=mn,n.forEach=Je,n.forEachRight=Ye,n.forIn=ao,n.forInRight=ye,n.forOwn=so,n.forOwnRight=be,n.functions=we,n.groupBy=lo,n.indexBy=po,n.initial=bn,n.intersection=wn,n.invert=je,n.invoke=Xe,n.keys=to,n.map=Qe,n.mapValues=Be,n.max=tn,n.memoize=Gn,n.merge=Ue,n.min=en,n.omit=Le,n.once=Hn,n.pairs=Fe,n.partial=Wn,n.partialRight=qn,n.pick=De,n.pluck=ho,n.property=nr,n.pull=En,n.range=On,n.reject=on,n.remove=Sn,n.rest=kn,n.shuffle=an,n.sortBy=fn,n.tap=fr,n.throttle=Kn,n.times=ur,n.toArray=ln,n.transform=ze,n.union=In,n.uniq=Cn,n.values=Ge,n.where=go,n.without=xn,n.wrap=Zn,n.xor=Mn,n.zip=Rn,n.zipObject=Tn,n.collect=Qe,n.drop=kn,n.each=Je,n.eachRight=Ye,n.extend=io,n.methods=we,n.object=Tn,n.select=Ke,n.tail=kn,n.unique=Cn,n.unzip=Rn,Qn(n),n.clone=he,n.cloneDeep=ge,n.contains=We,n.escape=Yn,n.every=qe,n.find=Ze,n.findIndex=gn,n.findKey=ve,n.findLast=Ve,n.findLastIndex=dn,n.findLastKey=me,n.has=_e,n.identity=Xn,n.indexOf=yn,n.isArguments=pe,n.isArray=Xr,n.isBoolean=Ee,n.isDate=Oe,n.isElement=Se,n.isEmpty=ke,n.isEqual=Ae,n.isFinite=Ie,n.isFunction=Ce,n.isNaN=Me,n.isNull=Re,n.isNumber=Te,n.isObject=xe,n.isPlainObject=co,n.isRegExp=Ne,n.isString=Pe,n.isUndefined=$e,n.lastIndexOf=jn,n.mixin=Qn,n.noConflict=tr,n.noop=er,n.now=vo,n.parseInt=mo,n.random=rr,n.reduce=nn,n.reduceRight=rn,n.result=or,n.runInContext=d,n.size=sn,n.some=cn,n.sortedIndex=An,n.template=ir,n.unescape=ar,n.uniqueId=sr,n.all=qe,n.any=cn,n.detect=Ze,n.findWhere=Ze,n.foldl=nn,n.foldr=rn,n.include=We,n.inject=nn,Qn(function(){var t={};return so(n,function(e,r){n.prototype[r]||(t[r]=e)}),t}(),!1),n.first=vn,n.last=_n,n.sample=un,n.take=vn,n.head=vn,so(n,function(t,e){var o="sample"!==e;n.prototype[e]||(n.prototype[e]=function(e,n){var i=this.__chain__,u=t(this.__wrapped__,e,n);return i||null!=e&&(!n||o&&"function"==typeof e)?new r(u,i):u})}),n.VERSION="2.4.1",n.prototype.chain=lr,n.prototype.toString=pr,n.prototype.value=hr,n.prototype.valueOf=hr,Je(["join","pop","shift"],function(t){var e=Or[t];n.prototype[t]=function(){var t=this.__chain__,n=e.apply(this.__wrapped__,arguments);return t?new r(n,t):n}}),Je(["push","reverse","sort","unshift"],function(t){var e=Or[t];n.prototype[t]=function(){return e.apply(this.__wrapped__,arguments),this}}),Je(["concat","slice","splice"],function(t){var e=Or[t];n.prototype[t]=function(){return new r(e.apply(this.__wrapped__,arguments),this.__chain__)}}),n}var v,m=[],y=[],b=0,w=+new Date+"",_=75,j=40,E=" \f \n\r\u2028\u2029 ᠎              ",O=/\b__p \+= '';/g,S=/\b(__p \+=) '' \+/g,k=/(__e\(.*?\)|\b__t\)) \+\n'';/g,A=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,I=/\w*$/,C=/^\s*function[ \n\r\t]+\w/,x=/<%=([\s\S]+?)%>/g,M=RegExp("^["+E+"]*0+(?=.$)"),R=/($^)/,T=/\bthis\b/,N=/['\n\r\t\u2028\u2029\\]/g,P=["Array","Boolean","Date","Function","Math","Number","Object","RegExp","String","_","attachEvent","clearTimeout","isFinite","isNaN","parseInt","setTimeout"],$=0,B="[object Arguments]",U="[object Array]",L="[object Boolean]",F="[object Date]",D="[object Function]",z="[object Number]",G="[object Object]",H="[object RegExp]",W="[object String]",q={};q[D]=!1,q[B]=q[U]=q[L]=q[F]=q[z]=q[G]=q[H]=q[W]=!0;var K={leading:!1,maxWait:0,trailing:!1},Z={configurable:!1,enumerable:!1,value:null,writable:!1},V={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},J={"\\":"\\","'":"'","\n":"n","\r":"r"," ":"t","\u2028":"u2028","\u2029":"u2029"},Y=V[typeof window]&&window||this,X=V[typeof n]&&n&&!n.nodeType&&n,Q=V[typeof e]&&e&&!e.nodeType&&e,te=Q&&Q.exports===X&&X,ee=V[typeof r]&&r;!ee||ee.global!==ee&&ee.window!==ee||(Y=ee);var ne=d();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(Y._=ne,define(function(){return ne})):X&&Q?te?(Q.exports=ne)._=ne:X._=ne:Y._=ne}).call(this)}).call(this,t("oMfpAn"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../node_modules/lodash/dist/lodash.js","/../../node_modules/lodash/dist")},{buffer:3,oMfpAn:6}],8:[function(t,e,n){(function(){"use strict";Object.defineProperties(n,{"default":{get:function(){return l}},__esModule:{value:!0}});var e,r,o,i,u=(e=t("backbone-events-standalone"),e&&e.__esModule&&e||{"default":e}).default,a=(r=t("lodash"),r&&r.__esModule&&r||{"default":r}).default,s=(o=t("./string"),o&&o.__esModule&&o||{"default":o}).default,c=(i=t("./controller"),i&&i.__esModule&&i||{"default":i}).default,f=function(){this.Controllers={},this.Dispatcher=a.clone(u)};$traceurRuntime.createClass(f,{createController:function(t,e){e=e||{};var n=e.dispatcher||this.Dispatcher;e.dispatcher&&delete e.dispatcher,t=s.constantize(t),e=a.extend(e,{name:t});var r=function(){$traceurRuntime.defaultSuperCall(this,o.prototype,arguments)},o=r;return $traceurRuntime.createClass(r,{},{},c),a.extend(r.prototype,e),this[e.name+"Controller"]=r,this.Controllers[t]=new r(n),this.Controllers[t]}},{});var l=f}).call(this,t("oMfpAn"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/application.js","/")},{"./controller":9,"./string":11,"backbone-events-standalone":2,buffer:3,lodash:7,oMfpAn:6}],9:[function(t,e,n){(function(){"use strict";function e(t){if(!s.isFunction(this[t.method]))throw new Error(this.className+' action "'+t.name+this.eventSeperator+t.method+'" method is undefined')}function r(t){var e=s.isObject(t),n=e?s(t).values().first():t,r=e?s(t).keys().first():t;return{name:r,method:n}}function o(){var t=this;s.each(this.actions,function(n){var o=r(n);e.call(t,o),t.dispatcher.on(t.actionEventName(o.name),t[o.method],t)},this)}function i(){this.name=this.name||"Anonymous",s.defaults(this,{eventSeperator:":",actions:[],channel:"controller",className:c.constantize(this.name)+"Controller",controllerEventName:c.underscore(this.name)})}Object.defineProperties(n,{"default":{get:function(){return l}},__esModule:{value:!0}});var u,a,s=(u=t("lodash"),u&&u.__esModule&&u||{"default":u}).default,c=(a=t("./string"),a&&a.__esModule&&a||{"default":a}).default,f=function(t){if(!t)throw new Error(this.className+": dispatcher is undefined");this.dispatcher=t,s.bindAll.apply(this,[this].concat(s.functions(this))),i.call(this),this.actions.unshift("all"),o.call(this),this.initialize()};$traceurRuntime.createClass(f,{initialize:function(){},all:function(){},actionEventName:function(t){return s.compact([this.namespace,this.channel,this.controllerEventName,t]).join(this.eventSeperator)}},{});var l=f}).call(this,t("oMfpAn"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/controller.js","/")},{"./string":11,buffer:3,lodash:7,oMfpAn:6}],10:[function(t){(function(e,n){"use strict";var r,o,i=(r=t("./application"),r&&r.__esModule&&r||{"default":r}).default,u=(o=t("./test_dispatcher"),o&&o.__esModule&&o||{"default":o}).default;(n||window).JSKit={TestDispatcher:u,createApplication:function(){return new i}}}).call(this,t("oMfpAn"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_8d0dc49e.js","/")},{"./application":8,"./test_dispatcher":12,buffer:3,oMfpAn:6}],11:[function(t,e,n){(function(){"use strict";Object.defineProperties(n,{"default":{get:function(){return o}},__esModule:{value:!0}});var e,r=(e=t("lodash"),e&&e.__esModule&&e||{"default":e}).default,o={camelize:function(){var t=void 0!==arguments[0]?arguments[0]:"";return r(t.split(/_|-|\s/g)).map(function(t,e){return e>0?t.charAt(0).toUpperCase()+t.slice(1):t.toLowerCase()}).join("")},capitalize:function(){var t=void 0!==arguments[0]?arguments[0]:"";return t.charAt(0).toUpperCase()+t.slice(1)},chunk:function(t,e){return t=t||"",e=e?e:t.length,t.match(new RegExp(".{1,"+e+"}","g"))},compact:function(){var t=void 0!==arguments[0]?arguments[0]:"";return t.replace(/\s/g,"")},constantize:function(){var t=void 0!==arguments[0]?arguments[0]:"";if(t.match(/_|-|\s/)){var e=r(t.split(/_|-|\s/g)).map(function(t,e){return e>0?t.charAt(0).toUpperCase()+t.slice(1):t.toLowerCase()}).join("");t=e}else t=t.toString();return t.charAt(0).toUpperCase()+t.slice(1)},dasherize:function(){var t=void 0!==arguments[0]?arguments[0]:"";return t.replace(/_/g,"-").toLowerCase()},humanize:function(){var t=void 0!==arguments[0]?arguments[0]:"",e=t.replace(/_/g," ").replace(/^\s?/,"").toLowerCase();return e.charAt(0).toUpperCase()+e.slice(1)},hyphenate:function(){var t=void 0!==arguments[0]?arguments[0]:"";return t.replace(/([A-Z])/g," $1").toLowerCase().replace(/\s|_/g,"-").toLowerCase()},isBlank:function(){void 0!==arguments[0]?arguments[0]:"";return/^(\s?)+$/.test(this)},isEmpty:function(){var t=void 0!==arguments[0]?arguments[0]:"";return 0===t.length},isNotEmpty:function(){var t=void 0!==arguments[0]?arguments[0]:"";return t.length>0},isPresent:function(){void 0!==arguments[0]?arguments[0]:"";return!/^(\s?)+$/.test(this)},lstrip:function(){var t=void 0!==arguments[0]?arguments[0]:"";return t.replace(/^\s+/,"")},ltrim:function(){var t=void 0!==arguments[0]?arguments[0]:"";return t.replace(/^\s+/,"")},stripTags:function(){var t=void 0!==arguments[0]?arguments[0]:"";return t.replace(/<\w+(\s+("[^"]*"|"[^"]*"|[^>])+)?>|<\/\w+>/gi,"")},strip:function(){var t=void 0!==arguments[0]?arguments[0]:"";return t.replace(/^\s+(.+)\s+$/,"$1")},swapCase:function(){var t=void 0!==arguments[0]?arguments[0]:"";return t.replace(/[A-Za-z]/g,function(t){return/[A-Z]/.test(t)?t.toLowerCase():t.toUpperCase()})},titleCase:function(){var t=void 0!==arguments[0]?arguments[0]:"";return r(t.replace(/([A-Z])/g," $1").replace(/-|_/g," ").split(/\s/)).map(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}).join(" ")},titleize:function(){var t=void 0!==arguments[0]?arguments[0]:"";return r(t.replace(/([A-Z])/g," $1").replace(/-|_/g," ").split(/\s/)).map(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}).join(" ")},toBoolean:function(){var t=void 0!==arguments[0]?arguments[0]:"",e=["true","yes","on","y"],n=["false","no","off","n"];return r(e).contains(t.toLowerCase())?!0:r(n).contains(t.toLowerCase())?!1:t.length>0?!0:!1},toNumber:function(){void 0!==arguments[0]?arguments[0]:"";return 1*this||0},trim:function(){var t=void 0!==arguments[0]?arguments[0]:"";return t.replace(/^\s+(.+)\s+$/,"$1")},truncate:function(t,e){return t=t||"",t.length>e?t.substring(0,e)+"...":this},underscore:function(){var t=void 0!==arguments[0]?arguments[0]:"";return t.replace(/([A-Z])/g," $1").replace(/^\s?/,"").replace(/-|\s/g,"_").toLowerCase()},unescape:function(){void 0!==arguments[0]?arguments[0]:"";return r.unescape.apply(this,[this].concat(r.toArray(arguments)))},unwrap:function(t,e){return t=t||"",t.replace(new RegExp("^"+e+"(.+)"+e+"$"),"$1")},wordCount:function(t,e){t=t||"";var n;return t=t.stripTags(),n=t.match(e?new RegExp(e,"g"):/\b[A-Za-z_]+\b/g),n?n.length:0},wrap:function(t,e){return t=t||"",e.concat(this,e)}}}).call(this,t("oMfpAn"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/string.js","/")},{buffer:3,lodash:7,oMfpAn:6}],12:[function(t,e,n){(function(){"use strict";function e(t){return t.called=!1,t.callCount=0,t.calls=[],t}function r(t){var e,n;return e=a.isString(t)?t:a(t).keys().first(),n=a.isString(t)?t:a(t).values().first(),{name:e,method:n}}function o(t){var e=r(t);return a.isString(t)?'"'+t+'"':"{ "+e.name+': "'+e.method+'" }'}Object.defineProperties(n,{"default":{get:function(){return f}},__esModule:{value:!0}});var i,u,a=(i=t("lodash"),i&&i.__esModule&&i||{"default":i}).default,s=(u=t("backbone-events-standalone"),u&&u.__esModule&&u||{"default":u}).default,c=function(){this.events={},this.shadowDispatcher=a.clone(s)};$traceurRuntime.createClass(c,{on:function(t,n){var r=e(n);this.events[t]=this.events[t]||[],this.events[t].push(r),this.shadowDispatcher.on(t,function(){this.trackSpy(r)},this)},trigger:function(t,e,n){this.shadowDispatcher.trigger(t,e,n)},trackSpy:function(t){t.callCount+=1,t.called=!0,t.calls.push({args:a.toArray(arguments)})},hasAction:function(t,e){var n=!1;if(t.actions.forEach(function(t){o(t)===o(t)&&(n=!0)}),!n)return!1;var i=r(e),u=t[i.method],a=t.actionEventName(i.name),s=u.callCount;return t.dispatcher.trigger(a),u.callCount>s},off:function(){}},{});var f=c}).call(this,t("oMfpAn"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/test_dispatcher.js","/")},{"backbone-events-standalone":2,buffer:3,lodash:7,oMfpAn:6}]},{},[10]);
@@ -1,37 +1,78 @@
1
1
  ApplicationController.class_eval do
2
2
  helper_method :jskit
3
3
 
4
- def jskit(config = { namespace: nil })
5
- view_context.javascript_tag [jskit_global_event, jskit_controller_event].join("\n")
6
- end
4
+ module JSKit
5
+ mattr_reader :action_payload, :app_payload, :controller_payload
6
+ mattr_accessor :event_namespace, :controller_name, :action_name
7
7
 
8
- def set_jskit_payload(*payload)
9
- @jskit_payload = payload
10
- end
8
+ def action_payload=(payload)
9
+ @@action_payload = payload_js([*payload])
10
+ end
11
11
 
12
- private
12
+ def controller_payload=(payload)
13
+ @@controller_payload = payload_js([*payload])
14
+ end
13
15
 
14
- def jskit_payload
15
- @jskit_payload.blank? ? "" : ", #{[*@jskit_payload].map(&:to_json).join(', ')}"
16
- end
16
+ def app_payload=(payload)
17
+ @@app_payload = payload_js([*payload])
18
+ end
17
19
 
18
- def jskit_event_name(config)
19
- [config[:namespace], "controller", controller_name, action_name].compact.join(":")
20
- end
20
+ private
21
+
22
+ def action_event
23
+ [
24
+ JskitRails.configuration.app_namespace,
25
+ "Dispatcher",
26
+ event_trigger(event_name(controller_name, action_name), JSKit.action_payload)
27
+ ].join(".")
28
+ end
29
+
30
+ def controller_event
31
+ [
32
+ JskitRails.configuration.app_namespace,
33
+ "Dispatcher",
34
+ event_trigger(event_name(controller_name, "all"), JSKit.controller_payload)
35
+ ].join(".")
36
+ end
21
37
 
22
- def jskit_global_event
23
- [
24
- JskitRails.configuration.app_namespace,
25
- "Dispatcher",
26
- "trigger(\"controller:all\");"
27
- ].join(".")
38
+
39
+ def application_event
40
+ [
41
+ JskitRails.configuration.app_namespace,
42
+ "Dispatcher",
43
+ event_trigger(event_name("application", "all"), JSKit.app_payload)
44
+ ].join(".")
45
+ end
46
+
47
+ def event_name(controller, action)
48
+ [event_namespace, "controller", controller, action].compact.join(":")
49
+ end
50
+
51
+ def event_trigger(event, payload)
52
+ %Q(trigger("#{event}"#{JSKit.controller_payload});)
53
+ end
54
+
55
+ def payload_js(payload)
56
+ payload.empty? ? "" : ", #{payload.map(&:to_json).join(', ')}"
57
+ end
58
+
59
+ module_function(
60
+ :action_payload=,
61
+ :app_payload=,
62
+ :controller_payload=,
63
+ :payload_js,
64
+ :application_event,
65
+ :action_event,
66
+ :event_name,
67
+ :event_trigger,
68
+ :controller_event)
28
69
  end
29
70
 
30
- def jskit_controller_event
31
- [
32
- JskitRails.configuration.app_namespace,
33
- "Dispatcher",
34
- "trigger(\"#{jskit_event_name(config)}\"#{jskit_payload});"
35
- ].join(".")
71
+ def jskit(config = { namespace: nil })
72
+ JSKit.event_namespace = config[:namespace]
73
+ JSKit.controller_name = controller_name
74
+ JSKit.action_name = action_name
75
+
76
+ view_context.javascript_tag [JSKit.application_event, JSKit.controller_event, JSKit.action_event].join("\n")
36
77
  end
37
78
  end
@@ -1,37 +1,55 @@
1
1
  require "rails_helper"
2
2
 
3
3
  describe ApplicationController, type: :controller do
4
- describe "#set_jskit_payload" do
5
- it "sets the payload to an array of the arguments passed" do
6
- subject.set_jskit_payload("foo")
7
- expect(subject.send(:jskit_payload)).to eq(', "foo"')
8
- subject.set_jskit_payload("foo", "bar", "baz")
9
- expect(subject.send(:jskit_payload)).to eq(', "foo", "bar", "baz"')
4
+ describe "#action_payload" do
5
+ it "sets the action_payload to an array of the arguments passed" do
6
+ ApplicationController::JSKit.action_payload = "foo"
7
+ expect(ApplicationController::JSKit.action_payload).to eq(', "foo"')
8
+ ApplicationController::JSKit.action_payload = ["foo", "bar", "baz"]
9
+ expect(ApplicationController::JSKit.action_payload).to eq(', "foo", "bar", "baz"')
10
10
  end
11
11
  end
12
12
 
13
- describe "#jskit_event_name" do
14
- before do
15
- allow(subject).to receive(:controller_name) { "test_controller" }
16
- allow(subject).to receive(:action_name) { "test_action" }
13
+ describe "#controller_payload" do
14
+ it "sets the controller_payload to an array of the arguments passed" do
15
+ ApplicationController::JSKit.controller_payload = "foo"
16
+ expect(ApplicationController::JSKit.controller_payload).to eq(', "foo"')
17
+ ApplicationController::JSKit.controller_payload = ["foo", "bar", "baz"]
18
+ expect(ApplicationController::JSKit.controller_payload).to eq(', "foo", "bar", "baz"')
17
19
  end
20
+ end
21
+
22
+ describe "#app_payload" do
23
+ it "sets the app_payload to an array of the arguments passed" do
24
+ ApplicationController::JSKit.app_payload = "foo"
25
+ expect(ApplicationController::JSKit.app_payload).to eq(', "foo"')
26
+ ApplicationController::JSKit.app_payload = ["foo", "bar", "baz"]
27
+ expect(ApplicationController::JSKit.app_payload).to eq(', "foo", "bar", "baz"')
28
+ end
29
+ end
18
30
 
31
+ describe "#event_name" do
19
32
  it "returns the event name" do
20
- expect(subject.send(:jskit_event_name, namespace: nil)).to eq("controller:test_controller:test_action")
33
+ expect(ApplicationController::JSKit.send(:event_name, "test_controller", "test_action")).to eq("controller:test_controller:test_action")
21
34
  end
22
35
 
23
36
  context "with namespace" do
24
37
  it "returns the controller event name prefixed with the namespace" do
25
- expect(subject.send(:jskit_event_name, namespace: "test")).to eq("test:controller:test_controller:test_action")
38
+ allow(ApplicationController::JSKit).to receive(:event_namespace) { "test" }
39
+ expect(ApplicationController::JSKit.send(:event_name, "test_controller", "test_action")).to eq("test:controller:test_controller:test_action")
26
40
  end
27
41
  end
28
42
  end
29
43
 
30
44
  describe "#jskit" do
31
45
  it "returns a script tag with the global event and the controller event" do
32
- global_event = subject.send(:jskit_global_event)
33
- controller_event = subject.send(:jskit_controller_event)
34
- expect(subject.jskit).to eq(subject.view_context.javascript_tag([global_event, controller_event].join("\n")))
46
+ subject = ApplicationController.new
47
+ allow(ApplicationController::JSKit).to receive(:controller_name) { "test_controller" }
48
+ allow(ApplicationController::JSKit).to receive(:action_name) { "test_action" }
49
+ application_event = ApplicationController::JSKit.send(:application_event)
50
+ controller_event = ApplicationController::JSKit.send(:controller_event)
51
+ action_event = ApplicationController::JSKit.send(:action_event)
52
+ expect(subject.jskit).to eq(subject.view_context.javascript_tag([application_event, controller_event, action_event].join("\n")))
35
53
  end
36
54
  end
37
55
  end
@@ -2,6 +2,6 @@ require "rails_helper"
2
2
 
3
3
  describe JskitRails::VERSION do
4
4
  it "reads the version from the VERSION file" do
5
- expect(JskitRails::VERSION).to eq(File.read(File.join(File.expand_path("../..", __FILE__), "VERSION")))
5
+ expect(JskitRails::VERSION).to eq(File.read(File.join(File.expand_path("../../..", __FILE__), "VERSION")))
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jskit_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dayton Nolan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-27 00:00:00.000000000 Z
11
+ date: 2014-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '4.1'
19
+ version: '4.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '4.1'
26
+ version: '4.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sqlite3
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -70,16 +70,16 @@ dependencies:
70
70
  name: pry-doc
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0'
75
+ version: '0.6'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '0'
82
+ version: '0.6'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rspec-rails
85
85
  requirement: !ruby/object:Gem::Requirement