kickstart_rails 0.3.411592101473 → 0.3.411666413546

Sign up to get free protection for your applications and to get access to all the features.
@@ -17,7 +17,7 @@ testDebouncer = require('../tests/debouncer');
17
17
 
18
18
 
19
19
 
20
- },{"../tests/debouncer":"/Users/adamkochanowicz/Sites/kickstart/lib/tests/debouncer.coffee","../tests/default":"/Users/adamkochanowicz/Sites/kickstart/lib/tests/default.coffee","../tests/dropdown-buttons":"/Users/adamkochanowicz/Sites/kickstart/lib/tests/dropdown-buttons.coffee","../tests/modal":"/Users/adamkochanowicz/Sites/kickstart/lib/tests/modal.coffee","../tests/navigation":"/Users/adamkochanowicz/Sites/kickstart/lib/tests/navigation.coffee","../tests/status":"/Users/adamkochanowicz/Sites/kickstart/lib/tests/status.coffee","./app":"/Users/adamkochanowicz/Sites/kickstart/lib/coffee/app.coffee"}],"/Users/adamkochanowicz/Sites/kickstart/lib/coffee/app.coffee":[function(require,module,exports){
20
+ },{"../tests/debouncer":"/Users/adamkochanowicz/sites/kickstart/lib/tests/debouncer.coffee","../tests/default":"/Users/adamkochanowicz/sites/kickstart/lib/tests/default.coffee","../tests/dropdown-buttons":"/Users/adamkochanowicz/sites/kickstart/lib/tests/dropdown-buttons.coffee","../tests/modal":"/Users/adamkochanowicz/sites/kickstart/lib/tests/modal.coffee","../tests/navigation":"/Users/adamkochanowicz/sites/kickstart/lib/tests/navigation.coffee","../tests/status":"/Users/adamkochanowicz/sites/kickstart/lib/tests/status.coffee","./app":"/Users/adamkochanowicz/sites/kickstart/lib/coffee/app.coffee"}],"/Users/adamkochanowicz/sites/kickstart/lib/coffee/app.coffee":[function(require,module,exports){
21
21
  var Debounce, Dropdown, KS, Modal, Nav, Status, Throttler;
22
22
 
23
23
  KS = require('./ks');
@@ -38,7 +38,7 @@ k$.dropdown();
38
38
 
39
39
 
40
40
 
41
- },{"./debouncer":"/Users/adamkochanowicz/Sites/kickstart/lib/coffee/debouncer.coffee","./dropdown":"/Users/adamkochanowicz/Sites/kickstart/lib/coffee/dropdown.coffee","./ks":"/Users/adamkochanowicz/Sites/kickstart/lib/coffee/ks.coffee","./modal":"/Users/adamkochanowicz/Sites/kickstart/lib/coffee/modal.coffee","./nav":"/Users/adamkochanowicz/Sites/kickstart/lib/coffee/nav.coffee","./status":"/Users/adamkochanowicz/Sites/kickstart/lib/coffee/status.coffee","./throttler":"/Users/adamkochanowicz/Sites/kickstart/lib/coffee/throttler.coffee"}],"/Users/adamkochanowicz/Sites/kickstart/lib/coffee/debouncer.coffee":[function(require,module,exports){
41
+ },{"./debouncer":"/Users/adamkochanowicz/sites/kickstart/lib/coffee/debouncer.coffee","./dropdown":"/Users/adamkochanowicz/sites/kickstart/lib/coffee/dropdown.coffee","./ks":"/Users/adamkochanowicz/sites/kickstart/lib/coffee/ks.coffee","./modal":"/Users/adamkochanowicz/sites/kickstart/lib/coffee/modal.coffee","./nav":"/Users/adamkochanowicz/sites/kickstart/lib/coffee/nav.coffee","./status":"/Users/adamkochanowicz/sites/kickstart/lib/coffee/status.coffee","./throttler":"/Users/adamkochanowicz/sites/kickstart/lib/coffee/throttler.coffee"}],"/Users/adamkochanowicz/sites/kickstart/lib/coffee/debouncer.coffee":[function(require,module,exports){
42
42
  var debounce;
43
43
 
44
44
  debounce = function(fn, id, delay) {
@@ -62,7 +62,7 @@ module.exports = debounce;
62
62
 
63
63
 
64
64
 
65
- },{}],"/Users/adamkochanowicz/Sites/kickstart/lib/coffee/dropdown.coffee":[function(require,module,exports){
65
+ },{}],"/Users/adamkochanowicz/sites/kickstart/lib/coffee/dropdown.coffee":[function(require,module,exports){
66
66
  var dropdown;
67
67
 
68
68
  dropdown = function() {
@@ -82,7 +82,7 @@ module.exports = dropdown;
82
82
 
83
83
 
84
84
 
85
- },{}],"/Users/adamkochanowicz/Sites/kickstart/lib/coffee/ks.coffee":[function(require,module,exports){
85
+ },{}],"/Users/adamkochanowicz/sites/kickstart/lib/coffee/ks.coffee":[function(require,module,exports){
86
86
  (function (global){
87
87
  global.k$ = new Object();
88
88
 
@@ -116,7 +116,7 @@ module.exports = k$;
116
116
 
117
117
 
118
118
  }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
119
- },{}],"/Users/adamkochanowicz/Sites/kickstart/lib/coffee/modal.coffee":[function(require,module,exports){
119
+ },{}],"/Users/adamkochanowicz/sites/kickstart/lib/coffee/modal.coffee":[function(require,module,exports){
120
120
  var modal;
121
121
 
122
122
  modal = function(el) {
@@ -137,7 +137,7 @@ module.exports = modal;
137
137
 
138
138
 
139
139
 
140
- },{}],"/Users/adamkochanowicz/Sites/kickstart/lib/coffee/nav.coffee":[function(require,module,exports){
140
+ },{}],"/Users/adamkochanowicz/sites/kickstart/lib/coffee/nav.coffee":[function(require,module,exports){
141
141
  var nav;
142
142
 
143
143
  nav = function(el) {
@@ -206,7 +206,7 @@ module.exports = nav;
206
206
 
207
207
 
208
208
 
209
- },{}],"/Users/adamkochanowicz/Sites/kickstart/lib/coffee/status.coffee":[function(require,module,exports){
209
+ },{}],"/Users/adamkochanowicz/sites/kickstart/lib/coffee/status.coffee":[function(require,module,exports){
210
210
  var status;
211
211
 
212
212
  status = function(opts) {
@@ -241,7 +241,7 @@ module.exports = status;
241
241
 
242
242
 
243
243
 
244
- },{}],"/Users/adamkochanowicz/Sites/kickstart/lib/coffee/throttler.coffee":[function(require,module,exports){
244
+ },{}],"/Users/adamkochanowicz/sites/kickstart/lib/coffee/throttler.coffee":[function(require,module,exports){
245
245
  var throttle;
246
246
 
247
247
  throttle = function(fn, id, delay) {};
@@ -252,7 +252,7 @@ module.exports = throttle;
252
252
 
253
253
 
254
254
 
255
- },{}],"/Users/adamkochanowicz/Sites/kickstart/lib/tests/debouncer.coffee":[function(require,module,exports){
255
+ },{}],"/Users/adamkochanowicz/sites/kickstart/lib/tests/debouncer.coffee":[function(require,module,exports){
256
256
  var assert, expect;
257
257
 
258
258
  assert = require("chai").assert;
@@ -317,7 +317,7 @@ describe('Debouncer', function() {
317
317
 
318
318
 
319
319
 
320
- },{"chai":"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/index.js"}],"/Users/adamkochanowicz/Sites/kickstart/lib/tests/default.coffee":[function(require,module,exports){
320
+ },{"chai":"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/index.js"}],"/Users/adamkochanowicz/sites/kickstart/lib/tests/default.coffee":[function(require,module,exports){
321
321
  var assert;
322
322
 
323
323
  assert = require("chai").assert;
@@ -343,7 +343,7 @@ describe('Kickstart main function', function() {
343
343
 
344
344
 
345
345
 
346
- },{"chai":"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/index.js"}],"/Users/adamkochanowicz/Sites/kickstart/lib/tests/dropdown-buttons.coffee":[function(require,module,exports){
346
+ },{"chai":"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/index.js"}],"/Users/adamkochanowicz/sites/kickstart/lib/tests/dropdown-buttons.coffee":[function(require,module,exports){
347
347
  var assert, expect;
348
348
 
349
349
  assert = require("chai").assert;
@@ -361,7 +361,7 @@ describe('k$.dropdown', function() {
361
361
 
362
362
 
363
363
 
364
- },{"chai":"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/index.js"}],"/Users/adamkochanowicz/Sites/kickstart/lib/tests/modal.coffee":[function(require,module,exports){
364
+ },{"chai":"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/index.js"}],"/Users/adamkochanowicz/sites/kickstart/lib/tests/modal.coffee":[function(require,module,exports){
365
365
  var assert, expect;
366
366
 
367
367
  assert = require("chai").assert;
@@ -403,7 +403,7 @@ describe('k$.modal()', function() {
403
403
 
404
404
 
405
405
 
406
- },{"chai":"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/index.js"}],"/Users/adamkochanowicz/Sites/kickstart/lib/tests/navigation.coffee":[function(require,module,exports){
406
+ },{"chai":"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/index.js"}],"/Users/adamkochanowicz/sites/kickstart/lib/tests/navigation.coffee":[function(require,module,exports){
407
407
  var assert, expect;
408
408
 
409
409
  assert = require("chai").assert;
@@ -438,7 +438,7 @@ describe('k$.nav()', function() {
438
438
 
439
439
 
440
440
 
441
- },{"chai":"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/index.js"}],"/Users/adamkochanowicz/Sites/kickstart/lib/tests/status.coffee":[function(require,module,exports){
441
+ },{"chai":"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/index.js"}],"/Users/adamkochanowicz/sites/kickstart/lib/tests/status.coffee":[function(require,module,exports){
442
442
  var assert, expect;
443
443
 
444
444
  assert = require("chai").assert;
@@ -491,7 +491,7 @@ describe('Status', function() {
491
491
 
492
492
 
493
493
 
494
- },{"chai":"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/index.js"}],"/Users/adamkochanowicz/Sites/kickstart/node_modules/browserify/node_modules/buffer/index.js":[function(require,module,exports){
494
+ },{"chai":"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/index.js"}],"/Users/adamkochanowicz/sites/kickstart/node_modules/browserify/node_modules/buffer/index.js":[function(require,module,exports){
495
495
  /*!
496
496
  * The buffer module from node.js, for the browser.
497
497
  *
@@ -1543,7 +1543,7 @@ function decodeUtf8Char (str) {
1543
1543
  }
1544
1544
  }
1545
1545
 
1546
- },{"base64-js":"/Users/adamkochanowicz/Sites/kickstart/node_modules/browserify/node_modules/buffer/node_modules/base64-js/lib/b64.js","ieee754":"/Users/adamkochanowicz/Sites/kickstart/node_modules/browserify/node_modules/buffer/node_modules/ieee754/index.js","is-array":"/Users/adamkochanowicz/Sites/kickstart/node_modules/browserify/node_modules/buffer/node_modules/is-array/index.js"}],"/Users/adamkochanowicz/Sites/kickstart/node_modules/browserify/node_modules/buffer/node_modules/base64-js/lib/b64.js":[function(require,module,exports){
1546
+ },{"base64-js":"/Users/adamkochanowicz/sites/kickstart/node_modules/browserify/node_modules/buffer/node_modules/base64-js/lib/b64.js","ieee754":"/Users/adamkochanowicz/sites/kickstart/node_modules/browserify/node_modules/buffer/node_modules/ieee754/index.js","is-array":"/Users/adamkochanowicz/sites/kickstart/node_modules/browserify/node_modules/buffer/node_modules/is-array/index.js"}],"/Users/adamkochanowicz/sites/kickstart/node_modules/browserify/node_modules/buffer/node_modules/base64-js/lib/b64.js":[function(require,module,exports){
1547
1547
  var lookup = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
1548
1548
 
1549
1549
  ;(function (exports) {
@@ -1665,7 +1665,7 @@ var lookup = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
1665
1665
  exports.fromByteArray = uint8ToBase64
1666
1666
  }(typeof exports === 'undefined' ? (this.base64js = {}) : exports))
1667
1667
 
1668
- },{}],"/Users/adamkochanowicz/Sites/kickstart/node_modules/browserify/node_modules/buffer/node_modules/ieee754/index.js":[function(require,module,exports){
1668
+ },{}],"/Users/adamkochanowicz/sites/kickstart/node_modules/browserify/node_modules/buffer/node_modules/ieee754/index.js":[function(require,module,exports){
1669
1669
  exports.read = function(buffer, offset, isLE, mLen, nBytes) {
1670
1670
  var e, m,
1671
1671
  eLen = nBytes * 8 - mLen - 1,
@@ -1751,7 +1751,7 @@ exports.write = function(buffer, value, offset, isLE, mLen, nBytes) {
1751
1751
  buffer[offset + i - d] |= s * 128;
1752
1752
  };
1753
1753
 
1754
- },{}],"/Users/adamkochanowicz/Sites/kickstart/node_modules/browserify/node_modules/buffer/node_modules/is-array/index.js":[function(require,module,exports){
1754
+ },{}],"/Users/adamkochanowicz/sites/kickstart/node_modules/browserify/node_modules/buffer/node_modules/is-array/index.js":[function(require,module,exports){
1755
1755
 
1756
1756
  /**
1757
1757
  * isArray
@@ -1786,10 +1786,10 @@ module.exports = isArray || function (val) {
1786
1786
  return !! val && '[object Array]' == str.call(val);
1787
1787
  };
1788
1788
 
1789
- },{}],"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/index.js":[function(require,module,exports){
1789
+ },{}],"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/index.js":[function(require,module,exports){
1790
1790
  module.exports = require('./lib/chai');
1791
1791
 
1792
- },{"./lib/chai":"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai.js"}],"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai.js":[function(require,module,exports){
1792
+ },{"./lib/chai":"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai.js"}],"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai.js":[function(require,module,exports){
1793
1793
  /*!
1794
1794
  * chai
1795
1795
  * Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
@@ -1878,7 +1878,7 @@ exports.use(should);
1878
1878
  var assert = require('./chai/interface/assert');
1879
1879
  exports.use(assert);
1880
1880
 
1881
- },{"./chai/assertion":"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/assertion.js","./chai/config":"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/config.js","./chai/core/assertions":"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/core/assertions.js","./chai/interface/assert":"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/interface/assert.js","./chai/interface/expect":"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/interface/expect.js","./chai/interface/should":"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/interface/should.js","./chai/utils":"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/utils/index.js","assertion-error":"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/node_modules/assertion-error/index.js"}],"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/assertion.js":[function(require,module,exports){
1881
+ },{"./chai/assertion":"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/assertion.js","./chai/config":"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/config.js","./chai/core/assertions":"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/core/assertions.js","./chai/interface/assert":"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/interface/assert.js","./chai/interface/expect":"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/interface/expect.js","./chai/interface/should":"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/interface/should.js","./chai/utils":"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/utils/index.js","assertion-error":"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/node_modules/assertion-error/index.js"}],"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/assertion.js":[function(require,module,exports){
1882
1882
  /*!
1883
1883
  * chai
1884
1884
  * http://chaijs.com
@@ -2010,7 +2010,7 @@ module.exports = function (_chai, util) {
2010
2010
  });
2011
2011
  };
2012
2012
 
2013
- },{"./config":"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/config.js"}],"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/config.js":[function(require,module,exports){
2013
+ },{"./config":"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/config.js"}],"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/config.js":[function(require,module,exports){
2014
2014
  module.exports = {
2015
2015
 
2016
2016
  /**
@@ -2062,7 +2062,7 @@ module.exports = {
2062
2062
 
2063
2063
  };
2064
2064
 
2065
- },{}],"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/core/assertions.js":[function(require,module,exports){
2065
+ },{}],"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/core/assertions.js":[function(require,module,exports){
2066
2066
  /*!
2067
2067
  * chai
2068
2068
  * http://chaijs.com
@@ -3378,7 +3378,7 @@ module.exports = function (chai, _) {
3378
3378
  });
3379
3379
  };
3380
3380
 
3381
- },{}],"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/interface/assert.js":[function(require,module,exports){
3381
+ },{}],"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/interface/assert.js":[function(require,module,exports){
3382
3382
  /*!
3383
3383
  * chai
3384
3384
  * Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
@@ -4436,7 +4436,7 @@ module.exports = function (chai, util) {
4436
4436
  ('Throw', 'throws');
4437
4437
  };
4438
4438
 
4439
- },{}],"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/interface/expect.js":[function(require,module,exports){
4439
+ },{}],"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/interface/expect.js":[function(require,module,exports){
4440
4440
  /*!
4441
4441
  * chai
4442
4442
  * Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
@@ -4450,7 +4450,7 @@ module.exports = function (chai, util) {
4450
4450
  };
4451
4451
 
4452
4452
 
4453
- },{}],"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/interface/should.js":[function(require,module,exports){
4453
+ },{}],"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/interface/should.js":[function(require,module,exports){
4454
4454
  /*!
4455
4455
  * chai
4456
4456
  * Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
@@ -4530,7 +4530,7 @@ module.exports = function (chai, util) {
4530
4530
  chai.Should = loadShould;
4531
4531
  };
4532
4532
 
4533
- },{}],"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/utils/addChainableMethod.js":[function(require,module,exports){
4533
+ },{}],"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/utils/addChainableMethod.js":[function(require,module,exports){
4534
4534
  /*!
4535
4535
  * Chai - addChainingMethod utility
4536
4536
  * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
@@ -4643,7 +4643,7 @@ module.exports = function (ctx, name, method, chainingBehavior) {
4643
4643
  });
4644
4644
  };
4645
4645
 
4646
- },{"../config":"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/config.js","./flag":"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/utils/flag.js","./transferFlags":"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/utils/transferFlags.js"}],"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/utils/addMethod.js":[function(require,module,exports){
4646
+ },{"../config":"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/config.js","./flag":"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/utils/flag.js","./transferFlags":"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/utils/transferFlags.js"}],"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/utils/addMethod.js":[function(require,module,exports){
4647
4647
  /*!
4648
4648
  * Chai - addMethod utility
4649
4649
  * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
@@ -4688,7 +4688,7 @@ module.exports = function (ctx, name, method) {
4688
4688
  };
4689
4689
  };
4690
4690
 
4691
- },{"../config":"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/config.js","./flag":"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/utils/flag.js"}],"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/utils/addProperty.js":[function(require,module,exports){
4691
+ },{"../config":"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/config.js","./flag":"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/utils/flag.js"}],"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/utils/addProperty.js":[function(require,module,exports){
4692
4692
  /*!
4693
4693
  * Chai - addProperty utility
4694
4694
  * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
@@ -4730,7 +4730,7 @@ module.exports = function (ctx, name, getter) {
4730
4730
  });
4731
4731
  };
4732
4732
 
4733
- },{}],"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/utils/flag.js":[function(require,module,exports){
4733
+ },{}],"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/utils/flag.js":[function(require,module,exports){
4734
4734
  /*!
4735
4735
  * Chai - flag utility
4736
4736
  * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
@@ -4764,7 +4764,7 @@ module.exports = function (obj, key, value) {
4764
4764
  }
4765
4765
  };
4766
4766
 
4767
- },{}],"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/utils/getActual.js":[function(require,module,exports){
4767
+ },{}],"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/utils/getActual.js":[function(require,module,exports){
4768
4768
  /*!
4769
4769
  * Chai - getActual utility
4770
4770
  * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
@@ -4784,7 +4784,7 @@ module.exports = function (obj, args) {
4784
4784
  return args.length > 4 ? args[4] : obj._obj;
4785
4785
  };
4786
4786
 
4787
- },{}],"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/utils/getEnumerableProperties.js":[function(require,module,exports){
4787
+ },{}],"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/utils/getEnumerableProperties.js":[function(require,module,exports){
4788
4788
  /*!
4789
4789
  * Chai - getEnumerableProperties utility
4790
4790
  * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
@@ -4811,7 +4811,7 @@ module.exports = function getEnumerableProperties(object) {
4811
4811
  return result;
4812
4812
  };
4813
4813
 
4814
- },{}],"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/utils/getMessage.js":[function(require,module,exports){
4814
+ },{}],"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/utils/getMessage.js":[function(require,module,exports){
4815
4815
  /*!
4816
4816
  * Chai - message composition utility
4817
4817
  * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
@@ -4862,7 +4862,7 @@ module.exports = function (obj, args) {
4862
4862
  return flagMsg ? flagMsg + ': ' + msg : msg;
4863
4863
  };
4864
4864
 
4865
- },{"./flag":"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/utils/flag.js","./getActual":"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/utils/getActual.js","./inspect":"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/utils/inspect.js","./objDisplay":"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/utils/objDisplay.js"}],"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/utils/getName.js":[function(require,module,exports){
4865
+ },{"./flag":"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/utils/flag.js","./getActual":"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/utils/getActual.js","./inspect":"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/utils/inspect.js","./objDisplay":"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/utils/objDisplay.js"}],"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/utils/getName.js":[function(require,module,exports){
4866
4866
  /*!
4867
4867
  * Chai - getName utility
4868
4868
  * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
@@ -4884,7 +4884,7 @@ module.exports = function (func) {
4884
4884
  return match && match[1] ? match[1] : "";
4885
4885
  };
4886
4886
 
4887
- },{}],"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/utils/getPathValue.js":[function(require,module,exports){
4887
+ },{}],"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/utils/getPathValue.js":[function(require,module,exports){
4888
4888
  /*!
4889
4889
  * Chai - getPathValue utility
4890
4890
  * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
@@ -4988,7 +4988,7 @@ function _getPathValue (parsed, obj) {
4988
4988
  return res;
4989
4989
  };
4990
4990
 
4991
- },{}],"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/utils/getProperties.js":[function(require,module,exports){
4991
+ },{}],"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/utils/getProperties.js":[function(require,module,exports){
4992
4992
  /*!
4993
4993
  * Chai - getProperties utility
4994
4994
  * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
@@ -5025,7 +5025,7 @@ module.exports = function getProperties(object) {
5025
5025
  return result;
5026
5026
  };
5027
5027
 
5028
- },{}],"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/utils/index.js":[function(require,module,exports){
5028
+ },{}],"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/utils/index.js":[function(require,module,exports){
5029
5029
  /*!
5030
5030
  * chai
5031
5031
  * Copyright(c) 2011 Jake Luer <jake@alogicalparadox.com>
@@ -5141,7 +5141,7 @@ exports.addChainableMethod = require('./addChainableMethod');
5141
5141
  exports.overwriteChainableMethod = require('./overwriteChainableMethod');
5142
5142
 
5143
5143
 
5144
- },{"./addChainableMethod":"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/utils/addChainableMethod.js","./addMethod":"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/utils/addMethod.js","./addProperty":"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/utils/addProperty.js","./flag":"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/utils/flag.js","./getActual":"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/utils/getActual.js","./getMessage":"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/utils/getMessage.js","./getName":"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/utils/getName.js","./getPathValue":"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/utils/getPathValue.js","./inspect":"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/utils/inspect.js","./objDisplay":"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/utils/objDisplay.js","./overwriteChainableMethod":"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/utils/overwriteChainableMethod.js","./overwriteMethod":"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/utils/overwriteMethod.js","./overwriteProperty":"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/utils/overwriteProperty.js","./test":"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/utils/test.js","./transferFlags":"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/utils/transferFlags.js","./type":"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/utils/type.js","deep-eql":"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/node_modules/deep-eql/index.js"}],"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/utils/inspect.js":[function(require,module,exports){
5144
+ },{"./addChainableMethod":"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/utils/addChainableMethod.js","./addMethod":"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/utils/addMethod.js","./addProperty":"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/utils/addProperty.js","./flag":"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/utils/flag.js","./getActual":"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/utils/getActual.js","./getMessage":"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/utils/getMessage.js","./getName":"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/utils/getName.js","./getPathValue":"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/utils/getPathValue.js","./inspect":"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/utils/inspect.js","./objDisplay":"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/utils/objDisplay.js","./overwriteChainableMethod":"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/utils/overwriteChainableMethod.js","./overwriteMethod":"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/utils/overwriteMethod.js","./overwriteProperty":"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/utils/overwriteProperty.js","./test":"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/utils/test.js","./transferFlags":"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/utils/transferFlags.js","./type":"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/utils/type.js","deep-eql":"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/node_modules/deep-eql/index.js"}],"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/utils/inspect.js":[function(require,module,exports){
5145
5145
  // This is (almost) directly from Node.js utils
5146
5146
  // https://github.com/joyent/node/blob/f8c335d0caf47f16d31413f89aa28eda3878e3aa/lib/util.js
5147
5147
 
@@ -5463,7 +5463,7 @@ function objectToString(o) {
5463
5463
  return Object.prototype.toString.call(o);
5464
5464
  }
5465
5465
 
5466
- },{"./getEnumerableProperties":"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/utils/getEnumerableProperties.js","./getName":"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/utils/getName.js","./getProperties":"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/utils/getProperties.js"}],"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/utils/objDisplay.js":[function(require,module,exports){
5466
+ },{"./getEnumerableProperties":"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/utils/getEnumerableProperties.js","./getName":"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/utils/getName.js","./getProperties":"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/utils/getProperties.js"}],"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/utils/objDisplay.js":[function(require,module,exports){
5467
5467
  /*!
5468
5468
  * Chai - flag utility
5469
5469
  * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
@@ -5514,7 +5514,7 @@ module.exports = function (obj) {
5514
5514
  }
5515
5515
  };
5516
5516
 
5517
- },{"../config":"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/config.js","./inspect":"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/utils/inspect.js"}],"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/utils/overwriteChainableMethod.js":[function(require,module,exports){
5517
+ },{"../config":"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/config.js","./inspect":"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/utils/inspect.js"}],"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/utils/overwriteChainableMethod.js":[function(require,module,exports){
5518
5518
  /*!
5519
5519
  * Chai - overwriteChainableMethod utility
5520
5520
  * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
@@ -5569,7 +5569,7 @@ module.exports = function (ctx, name, method, chainingBehavior) {
5569
5569
  };
5570
5570
  };
5571
5571
 
5572
- },{}],"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/utils/overwriteMethod.js":[function(require,module,exports){
5572
+ },{}],"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/utils/overwriteMethod.js":[function(require,module,exports){
5573
5573
  /*!
5574
5574
  * Chai - overwriteMethod utility
5575
5575
  * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
@@ -5622,7 +5622,7 @@ module.exports = function (ctx, name, method) {
5622
5622
  }
5623
5623
  };
5624
5624
 
5625
- },{}],"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/utils/overwriteProperty.js":[function(require,module,exports){
5625
+ },{}],"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/utils/overwriteProperty.js":[function(require,module,exports){
5626
5626
  /*!
5627
5627
  * Chai - overwriteProperty utility
5628
5628
  * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
@@ -5678,7 +5678,7 @@ module.exports = function (ctx, name, getter) {
5678
5678
  });
5679
5679
  };
5680
5680
 
5681
- },{}],"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/utils/test.js":[function(require,module,exports){
5681
+ },{}],"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/utils/test.js":[function(require,module,exports){
5682
5682
  /*!
5683
5683
  * Chai - test utility
5684
5684
  * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
@@ -5706,7 +5706,7 @@ module.exports = function (obj, args) {
5706
5706
  return negate ? !expr : expr;
5707
5707
  };
5708
5708
 
5709
- },{"./flag":"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/utils/flag.js"}],"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/utils/transferFlags.js":[function(require,module,exports){
5709
+ },{"./flag":"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/utils/flag.js"}],"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/utils/transferFlags.js":[function(require,module,exports){
5710
5710
  /*!
5711
5711
  * Chai - transferFlags utility
5712
5712
  * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
@@ -5752,7 +5752,7 @@ module.exports = function (assertion, object, includeAll) {
5752
5752
  }
5753
5753
  };
5754
5754
 
5755
- },{}],"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/lib/chai/utils/type.js":[function(require,module,exports){
5755
+ },{}],"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/lib/chai/utils/type.js":[function(require,module,exports){
5756
5756
  /*!
5757
5757
  * Chai - type utility
5758
5758
  * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
@@ -5799,7 +5799,7 @@ module.exports = function (obj) {
5799
5799
  return typeof obj;
5800
5800
  };
5801
5801
 
5802
- },{}],"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/node_modules/assertion-error/index.js":[function(require,module,exports){
5802
+ },{}],"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/node_modules/assertion-error/index.js":[function(require,module,exports){
5803
5803
  /*!
5804
5804
  * assertion-error
5805
5805
  * Copyright(c) 2013 Jake Luer <jake@qualiancy.com>
@@ -5911,10 +5911,10 @@ AssertionError.prototype.toJSON = function (stack) {
5911
5911
  return props;
5912
5912
  };
5913
5913
 
5914
- },{}],"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/node_modules/deep-eql/index.js":[function(require,module,exports){
5914
+ },{}],"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/node_modules/deep-eql/index.js":[function(require,module,exports){
5915
5915
  module.exports = require('./lib/eql');
5916
5916
 
5917
- },{"./lib/eql":"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/node_modules/deep-eql/lib/eql.js"}],"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/node_modules/deep-eql/lib/eql.js":[function(require,module,exports){
5917
+ },{"./lib/eql":"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/node_modules/deep-eql/lib/eql.js"}],"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/node_modules/deep-eql/lib/eql.js":[function(require,module,exports){
5918
5918
  /*!
5919
5919
  * deep-eql
5920
5920
  * Copyright(c) 2013 Jake Luer <jake@alogicalparadox.com>
@@ -6173,10 +6173,10 @@ function objectEqual(a, b, m) {
6173
6173
  return true;
6174
6174
  }
6175
6175
 
6176
- },{"buffer":"/Users/adamkochanowicz/Sites/kickstart/node_modules/browserify/node_modules/buffer/index.js","type-detect":"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/node_modules/deep-eql/node_modules/type-detect/index.js"}],"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/node_modules/deep-eql/node_modules/type-detect/index.js":[function(require,module,exports){
6176
+ },{"buffer":"/Users/adamkochanowicz/sites/kickstart/node_modules/browserify/node_modules/buffer/index.js","type-detect":"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/node_modules/deep-eql/node_modules/type-detect/index.js"}],"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/node_modules/deep-eql/node_modules/type-detect/index.js":[function(require,module,exports){
6177
6177
  module.exports = require('./lib/type');
6178
6178
 
6179
- },{"./lib/type":"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/node_modules/deep-eql/node_modules/type-detect/lib/type.js"}],"/Users/adamkochanowicz/Sites/kickstart/node_modules/chai/node_modules/deep-eql/node_modules/type-detect/lib/type.js":[function(require,module,exports){
6179
+ },{"./lib/type":"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/node_modules/deep-eql/node_modules/type-detect/lib/type.js"}],"/Users/adamkochanowicz/sites/kickstart/node_modules/chai/node_modules/deep-eql/node_modules/type-detect/lib/type.js":[function(require,module,exports){
6180
6180
  /*!
6181
6181
  * type-detect
6182
6182
  * Copyright(c) 2013 jake luer <jake@alogicalparadox.com>
@@ -6321,4 +6321,4 @@ Library.prototype.test = function (obj, type) {
6321
6321
  };
6322
6322
 
6323
6323
  },{}]},{},["./lib/coffee/tests.coffee"])
6324
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc2Vycy9hZGFta29jaGFub3dpY3ovU2l0ZXMva2lja3N0YXJ0L25vZGVfbW9kdWxlcy9icm93c2VyaWZ5L25vZGVfbW9kdWxlcy9icm93c2VyLXBhY2svX3ByZWx1ZGUuanMiLCIvVXNlcnMvYWRhbWtvY2hhbm93aWN6L1NpdGVzL2tpY2tzdGFydC9saWIvY29mZmVlL3Rlc3RzLmNvZmZlZSIsIi9Vc2Vycy9hZGFta29jaGFub3dpY3ovU2l0ZXMva2lja3N0YXJ0L2xpYi9jb2ZmZWUvYXBwLmNvZmZlZSIsIi9Vc2Vycy9hZGFta29jaGFub3dpY3ovU2l0ZXMva2lja3N0YXJ0L2xpYi9jb2ZmZWUvZ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dGhyb3duJ1xuICAgICAgICAgICwgJ2V4cGVjdGVkICN7dGhpc30gdG8gbm90IHRocm93ICN7ZXhwfSBidXQgI3thY3R9IHdhcyB0aHJvd24nXG4gICAgICAgICAgLCBuYW1lXG4gICAgICAgICAgLCAoZXJyIGluc3RhbmNlb2YgRXJyb3IgPyBlcnIudG9TdHJpbmcoKSA6IGVycilcbiAgICAgICAgKTtcblxuICAgICAgICBpZiAoIWVyck1zZykge1xuICAgICAgICAgIGZsYWcodGhpcywgJ29iamVjdCcsIGVycik7XG4gICAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgICAgIH1cbiAgICAgIH1cblxuICAgICAgLy8gbmV4dCwgY2hlY2sgbWVzc2FnZVxuICAgICAgdmFyIG1lc3NhZ2UgPSAnb2JqZWN0JyA9PT0gXy50eXBlKGVycikgJiYgXCJtZXNzYWdlXCIgaW4gZXJyXG4gICAgICAgID8gZXJyLm1lc3NhZ2VcbiAgICAgICAgOiAnJyArIGVycjtcblxuICAgICAgaWYgKChtZXNzYWdlICE9IG51bGwpICYmIGVyck1zZyAmJiBlcnJNc2cgaW5zdGFuY2VvZiBSZWdFeHApIHtcbiAgICAgICAgdGhpcy5hc3NlcnQoXG4gICAgICAgICAgICBlcnJNc2cuZXhlYyhtZXNzYWdlKVxuICAgICAgICAgICwgJ2V4cGVjdGVkICN7dGhpc30gdG8gdGhyb3cgZXJyb3IgbWF0Y2hpbmcgI3tleHB9IGJ1dCBnb3QgI3thY3R9J1xuICAgICAgICAgICwgJ2V4cGVjdGVkICN7dGhpc30gdG8gdGhyb3cgZXJyb3Igbm90IG1hdGNoaW5nICN7ZXhwfSdcbiAgICAgICAgICAsIGVyck1zZ1xuICAgICAgICAgICwgbWVzc2FnZVxuICAgICAgICApO1xuXG4gICAgICAgIGZsYWcodGhpcywgJ29iamVjdCcsIGVycik7XG4gICAgICAgIHJldHVybiB0aGlzO1xuICAgICAgfSBlbHNlIGlmICgobWVzc2FnZSAhPSBudWxsKSAmJiBlcnJNc2cgJiYgJ3N0cmluZycgPT09IHR5cGVvZiBlcnJNc2cpIHtcbiAgICAgICAgdGhpcy5hc3NlcnQoXG4gICAgICAgICAgICB+bWVzc2FnZS5pbmRleE9mKGVyck1zZylcbiAgICAgICAgICAsICdleHBlY3RlZCAje3RoaXN9IHRvIHRocm93IGVycm9yIGluY2x1ZGluZyAje2V4cH0gYnV0IGdvdCAje2FjdH0nXG4gICAgICAgICAgLCAnZXhwZWN0ZWQgI3t0aGlzfSB0byB0aHJvdyBlcnJvciBub3QgaW5jbHVkaW5nICN7YWN0fSdcbiAgICAgICAgICAsIGVyck1zZ1xuICAgICAgICAgICwgbWVzc2FnZVxuICAgICAgICApO1xuXG4gICAgICAgIGZsYWcodGhpcywgJ29iamVjdCcsIGVycik7XG4gICAgICAgIHJldHVybiB0aGlzO1xuICAgICAgfSBlbHNlIHtcbiAgICAgICAgdGhyb3duID0gdHJ1ZTtcbiAgICAgICAgdGhyb3duRXJyb3IgPSBlcnI7XG4gICAgICB9XG4gICAgfVxuXG4gICAgdmFyIGFjdHVhbGx5R290ID0gJydcbiAgICAgICwgZXhwZWN0ZWRUaHJvd24gPSBuYW1lICE9PSBudWxsXG4gICAgICAgID8gbmFtZVxuICAgICAgICA6IGRlc2lyZWRFcnJvclxuICAgICAgICAgID8gJyN7ZXhwfScgLy9fLmluc3BlY3QoZGVzaXJlZEVycm9yKVxuICAgICAgICAgIDogJ2FuIGVycm9yJztcblxuICAgIGlmICh0aHJvd24pIHtcbiAgICAgIGFjdHVhbGx5R290ID0gJyBidXQgI3thY3R9IHdhcyB0aHJvd24nXG4gICAgfVxuXG4gICAgdGhpcy5hc3NlcnQoXG4gICAgICAgIHRocm93biA9PT0gdHJ1ZVxuICAgICAgLCAnZXhwZWN0ZWQgI3t0aGlzfSB0byB0aHJvdyAnICsgZXhwZWN0ZWRUaHJvd24gKyBhY3R1YWxseUdvdFxuICAgICAgLCAnZXhwZWN0ZWQgI3t0aGlzfSB0byBub3QgdGhyb3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YW1lLm1hdGNoKC9eXCIoW2EtekEtWl9dW2EtekEtWl8wLTldKilcIiQvKSkge1xuICAgICAgbmFtZSA9IG5hbWUuc3Vic3RyKDEsIG5hbWUubGVuZ3RoIC0gMik7XG4gICAgICBuYW1lID0gY3R4LnN0eWxpemUobmFtZSwgJ25hbWUnKTtcbiAgICB9IGVsc2Uge1xuICAgICAgbmFtZSA9IG5hbWUucmVwbGFjZSgvJy9nLCBcIlxcXFwnXCIpXG4gICAgICAgICAgICAgICAgIC5yZXBsYWNlKC9cXFxcXCIvZywgJ1wiJylcbiAgICAgICAgICAgICAgICAgLnJlcGxhY2UoLyheXCJ8XCIkKS9nLCBcIidcIik7XG4gICAgICBuYW1lID0gY3R4LnN0eWxpemUobmFtZSwgJ3N0cmluZycpO1xuICAgIH1cbiAgfVxuXG4gIHJldHVybiBuYW1lICsgJzogJyArIHN0cjtcbn1cblxuXG5mdW5jdGlvbiByZWR1Y2VUb1NpbmdsZVN0cmluZyhvdXRwdXQsIGJhc2UsIGJyYWNlcykge1xuICB2YXIgbnVtTGluZXNFc3QgPSAwO1xuICB2YXIgbGVuZ3RoID0gb3V0cHV0LnJlZHVjZShmdW5jdGlvbihwcmV2LCBjdXIpIHtcbiAgICBudW1MaW5lc0VzdCsrO1xuICAgIGlmIChjdXIuaW5kZXhPZignXFxuJykgPj0gMCkgbnVtTGluZXNFc3QrKztcbiAgICByZXR1cm4gcHJldiArIGN1ci5sZW5ndGggKyAxO1xuICB9LCAwKTtcblxuICBpZiAobGVuZ3RoID4gNjApIHtcbiAgICByZXR1cm4gYnJhY2VzWzBdICtcbiAgICAgICAgICAgKGJhc2UgPT09ICcnID8gJycgOiBiYXNlICsgJ1xcbiAnKSArXG4gICAgICAgICAgICcgJyArXG4gICAgICAgICAgIG91dHB1dC5qb2luKCcsXFxuICAnKSArXG4gICAgICAgICAgICcgJyArXG4gICAgICAgICAgIGJyYWNlc1sxXTtcbiAgfVxuXG4gIHJldHVybiBicmFjZXNbMF0gKyB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XMsICdvYmplY3QnLCBlcnIpO1xuICAgICAgICByZXR1cm4gdGhpcztcbiAgICAgIH1cblxuICAgICAgLy8gbmV4dCwgY2hlY2sgY29uc3RydWN0b3JcbiAgICAgIGlmIChjb25zdHJ1Y3Rvcikge1xuICAgICAgICB0aGlzLmFzc2VydChcbiAgICAgICAgICAgIGVyciBpbnN0YW5jZW9mIGNvbnN0cnVjdG9yXG4gICAgICAgICAgLCAnZXhwZWN0ZWQgI3t0aGlzfSB0byB0aHJvdyAje2V4cH0gYnV0ICN7YWN0fSB3YXMgdGhyb3duJ1xuICAgICAgICAgICwgJ2V4cGVjdGVkICN7dGhpc30gdG8gbm90IHRocm93ICN7ZXhwfSBidXQgI3thY3R9IHdhcyB0aHJvd24nXG4gICAgICAgICAgLCBuYW1lXG4gICAgICAgICAgLCAoZXJyIGluc3RhbmNlb2YgRXJyb3IgPyBlcnIudG9TdHJpbmcoKSA6IGVycilcbiAgICAgICAgKTtcblxuICAgICAgICBpZiAoIWVyck1zZykge1xuICAgICAgICAgIGZsYWcodGhpcywgJ29iamVjdCcsIGVycik7XG4gICAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgICAgIH1cbiAgICAgIH1cblxuICAgICAgLy8gbmV4dCwgY2hlY2sgbWVzc2FnZVxuICAgICAgdmFyIG1lc3NhZ2UgPSAnb2JqZWN0JyA9PT0gXy50eXBlKGVycikgJiYgXCJtZXNzYWdlXCIgaW4gZXJyXG4gICAgICAgID8gZXJyLm1lc3NhZ2VcbiAgICAgICAgOiAnJyArIGVycjtcblxuICAgICAgaWYgKChtZXNzYWdlICE9IG51bGwpICYmIGVyck1zZyAmJiBlcnJNc2cgaW5zdGFuY2VvZiBSZWdFeHApIHtcbiAgICAgICAgdGhpcy5hc3NlcnQoXG4gICAgICAgICAgICBlcnJNc2cuZXhlYyhtZXNzYWdlKVxuICAgICAgICAgICwgJ2V4cGVjdGVkICN7dGhpc30gdG8gdGhyb3cgZXJyb3IgbWF0Y2hpbmcgI3tleHB9IGJ1dCBnb3QgI3thY3R9J1xuICAgICAgICAgICwgJ2V4cGVjdGVkICN7dGhpc30gdG8gdGhyb3cgZXJyb3Igbm90IG1hdGNoaW5nICN7ZXhwfSdcbiAgICAgICAgICAsIGVyck1zZ1xuICAgICAgICAgICwgbWVzc2FnZVxuICAgICAgICApO1xuXG4gICAgICAgIGZsYWcodGhpcywgJ29iamVjdCcsIGVycik7XG4gICAgICAgIHJldHVybiB0aGlzO1xuICAgICAgfSBlbHNlIGlmICgobWVzc2FnZSAhPSBudWxsKSAmJiBlcnJNc2cgJiYgJ3N0cmluZycgPT09IHR5cGVvZiBlcnJNc2cpIHtcbiAgICAgICAgdGhpcy5hc3NlcnQoXG4gICAgICAgICAgICB+bWVzc2FnZS5pbmRleE9mKGVyck1zZylcbiAgICAgICAgICAsICdleHBlY3RlZCAje3RoaXN9IHRvIHRocm93IGVycm9yIGluY2x1ZGluZyAje2V4cH0gYnV0IGdvdCAje2FjdH0nXG4gICAgICAgICAgLCAnZXhwZWN0ZWQgI3t0aGlzfSB0byB0aHJvdyBlcnJvciBub3QgaW5jbHVkaW5nICN7YWN0fSdcbiAgICAgICAgICAsIGVyck1zZ1xuICAgICAgICAgICwgbWVzc2FnZVxuICAgICAgICApO1xuXG4gICAgICAgIGZsYWcodGhpcywgJ29iamVjdCcsIGVycik7XG4gICAgICAgIHJldHVybiB0aGlzO1xuICAgICAgfSBlbHNlIHtcbiAgICAgICAgdGhyb3duID0gdHJ1ZTtcbiAgICAgICAgdGhyb3duRXJyb3IgPSBlcnI7XG4gICAgICB9XG4gICAgfVxuXG4gICAgdmFyIGFjdHVhbGx5R290ID0gJydcbiAgICAgICwgZXhwZWN0ZWRUaHJvd24gPSBuYW1lICE9PSBudWxsXG4gICAgICAgID8gbmFtZVxuICAgICAgICA6IGRlc2lyZWRFcnJvclxuICAgICAgICAgID8gJyN7ZXhwfScgLy9fLmluc3BlY3QoZGVzaXJlZEVycm9yKVxuICAgICAgICAgIDogJ2FuIGV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