From 9f4fd9be53a369e0acd2abb05cd51c7a4ea84e95 Mon Sep 17 00:00:00 2001 From: Chris Blanchard Date: Mon, 20 Jul 2015 23:47:18 +0100 Subject: [PATCH] Added gatherer counter as a react component --- README.md | 29 ++++++++++ config/socketio.js | 34 +++++++++--- index.js | 15 +++-- lib/react/app.jsx | 17 ++++++ npm-debug.log | 28 ++++++++++ package.json | 15 +++-- ...80c6ac9782b94536500ddb350a5a2db6c79c5d0.js | 19 +++++++ ...a3704e0b971d6f8290a3efc871a57617ee0a15a.js | 21 +++++++ ...f7a03f450663801d6dd518f98f0159430a961a2.js | 24 ++++++++ ...18a4cc431c96eec7da652f52e2df24d6e42ed76.js | 18 ++++++ ...227d9a0a98eed5691b8b934fb063dcac5f13229.js | 26 +++++++++ ...228defbf9e48f4397afe98096ac50d35831f4c5.js | 25 +++++++++ ...d1eb608f03c6968254b21820c0e6f5cdc7fca1c.js | 17 ++++++ ...a1c89bcf1d4766dc10811dc8af9e6d5e5c8d669.js | 21 +++++++ ...c77c19cdf0cf3bb958d4d66837ecfea8429a5d6.js | 17 ++++++ ...fae87380d9cbedf1f340e41a1c628ada82fd6cc.js | 45 +++++++++++++++ ...10ea820901d05e2a9359da8adddc9e6cf835bbf.js | 26 +++++++++ ...4e2a72c687db357db0c445f72112ed0ad0401d8.js | 44 +++++++++++++++ ...fd71a95a716773a5542267ff559c1bac2ebd145.js | 25 +++++++++ ...0fb7f3f70110d45ff88674c6cbfcf0466ca557c.js | 17 ++++++ ...d35c87752610737362769003ed6019e24089dea.js | 27 +++++++++ ...1cfd3c15651e482a0ce10069fcf434d420ad98c.js | 28 ++++++++++ ...dd21e9811e1241f0744a7ea32beb42c2ed54fdc.js | 27 +++++++++ ...260a333593fcc33d9027d706c015f2e705c331c.js | 25 +++++++++ ...8b46e2bdadd0334fc1af6e052359eb68b503eb1.js | 27 +++++++++ ...be73b3106cc6f137224bab56add0f7977a5b99d.js | 44 +++++++++++++++ ...30113443f1bba72e5c4c1e2a13223670ae34242.js | 45 +++++++++++++++ ...b9451cc3a7abd2a28be5fa6626539b93402d66e.js | 27 +++++++++ ...3a25a468d2afb76df9d1d8966b5dcc7fd24615e.js | 45 +++++++++++++++ ...4c16abfa314165bd1983e75b460c106a2d99b73.js | 0 ...d8ecfeafcaa8db65383a974e2453381be3612ac.js | 45 +++++++++++++++ ...fb0d8b7cb67d528683cacd6ee470c2d09a977b6.js | 25 +++++++++ ...28d643d1ec29221f3ae842225f079fd9ffd44df.js | 21 +++++++ ...7fa23dd16e23ce4a104450771900f33506daba4.js | 27 +++++++++ ...fb9f21d4b0493b888e844b98a1ab0d4dffa3811.js | 22 ++++++++ ...0020dd1109aa45c3d5802819eb39a06841576c3.js | 45 +++++++++++++++ ...e88f1373c1f06ccee52908b62f8f161fb0d639c.js | 29 ++++++++++ ...f8e0d8551497ff3cf3d7b0ea18565cf0edb955d.js | 44 +++++++++++++++ ...48909f4009e432b2547dce2a1c564f0e21ddd46.js | 27 +++++++++ ...79d327bc320e60fdb01101f85c02adc2b76e98f.js | 55 +++++++++++++++++++ ...dfa618fa4dfdf81625ea52e7bb9239de3744884.js | 28 ++++++++++ ...eed142860f8fe418abdf965eed14561d915bcca.js | 17 ++++++ ...ef246f0d40dc81b6306e2774afdc7d57c51e331.js | 36 ++++++++++++ ...71005362b97fa1f4fe7451d16b9fbc9439501f7.js | 29 ++++++++++ ...c6ac9782b94536500ddb350a5a2db6c79c5d0.json | 1 + ...704e0b971d6f8290a3efc871a57617ee0a15a.json | 1 + ...a03f450663801d6dd518f98f0159430a961a2.json | 1 + ...a4cc431c96eec7da652f52e2df24d6e42ed76.json | 1 + ...7d9a0a98eed5691b8b934fb063dcac5f13229.json | 1 + ...8defbf9e48f4397afe98096ac50d35831f4c5.json | 1 + ...eb608f03c6968254b21820c0e6f5cdc7fca1c.json | 1 + ...c89bcf1d4766dc10811dc8af9e6d5e5c8d669.json | 1 + ...7c19cdf0cf3bb958d4d66837ecfea8429a5d6.json | 1 + ...e87380d9cbedf1f340e41a1c628ada82fd6cc.json | 1 + ...ea820901d05e2a9359da8adddc9e6cf835bbf.json | 1 + ...2a72c687db357db0c445f72112ed0ad0401d8.json | 1 + ...71a95a716773a5542267ff559c1bac2ebd145.json | 1 + ...b7f3f70110d45ff88674c6cbfcf0466ca557c.json | 1 + ...5c87752610737362769003ed6019e24089dea.json | 1 + ...fd3c15651e482a0ce10069fcf434d420ad98c.json | 1 + ...21e9811e1241f0744a7ea32beb42c2ed54fdc.json | 1 + ...0a333593fcc33d9027d706c015f2e705c331c.json | 1 + ...46e2bdadd0334fc1af6e052359eb68b503eb1.json | 1 + ...73b3106cc6f137224bab56add0f7977a5b99d.json | 1 + ...113443f1bba72e5c4c1e2a13223670ae34242.json | 1 + ...451cc3a7abd2a28be5fa6626539b93402d66e.json | 1 + ...25a468d2afb76df9d1d8966b5dcc7fd24615e.json | 1 + ...16abfa314165bd1983e75b460c106a2d99b73.json | 1 + ...ecfeafcaa8db65383a974e2453381be3612ac.json | 1 + ...0d8b7cb67d528683cacd6ee470c2d09a977b6.json | 1 + ...d643d1ec29221f3ae842225f079fd9ffd44df.json | 1 + ...a23dd16e23ce4a104450771900f33506daba4.json | 1 + ...9f21d4b0493b888e844b98a1ab0d4dffa3811.json | 1 + ...20dd1109aa45c3d5802819eb39a06841576c3.json | 1 + ...8f1373c1f06ccee52908b62f8f161fb0d639c.json | 1 + ...e0d8551497ff3cf3d7b0ea18565cf0edb955d.json | 1 + ...909f4009e432b2547dce2a1c564f0e21ddd46.json | 1 + ...d327bc320e60fdb01101f85c02adc2b76e98f.json | 1 + ...a618fa4dfdf81625ea52e7bb9239de3744884.json | 1 + ...d142860f8fe418abdf965eed14561d915bcca.json | 1 + ...246f0d40dc81b6306e2774afdc7d57c51e331.json | 1 + ...005362b97fa1f4fe7451d16b9fbc9439501f7.json | 1 + public/js/app.js | 17 ++++++ public/js/client.js | 13 +++++ public/js/react-0.13.3.min.js | 16 ++++++ public/js/socket.io-1.3.5.js | 3 + public/js/socketio.js | 3 - public/js/theme.js | 14 ++++- ...3480afd5f69e4669e8d9e74b6aacf91ffe7cedc.js | 0 ...80afd5f69e4669e8d9e74b6aacf91ffe7cedc.json | 1 + public/react/app.js | 0 views/index.hbs | 4 +- views/layouts/main.hbs | 1 + views/partials/foot.hbs | 2 + views/partials/head.hbs | 5 +- views/partials/menu.hbs | 24 ++++++-- 96 files changed, 1341 insertions(+), 28 deletions(-) create mode 100644 README.md create mode 100644 lib/react/app.jsx create mode 100644 npm-debug.log create mode 100644 public/js/.module-cache/080c6ac9782b94536500ddb350a5a2db6c79c5d0.js create mode 100644 public/js/.module-cache/0a3704e0b971d6f8290a3efc871a57617ee0a15a.js create mode 100644 public/js/.module-cache/0f7a03f450663801d6dd518f98f0159430a961a2.js create mode 100644 public/js/.module-cache/118a4cc431c96eec7da652f52e2df24d6e42ed76.js create mode 100644 public/js/.module-cache/1227d9a0a98eed5691b8b934fb063dcac5f13229.js create mode 100644 public/js/.module-cache/1228defbf9e48f4397afe98096ac50d35831f4c5.js create mode 100644 public/js/.module-cache/1d1eb608f03c6968254b21820c0e6f5cdc7fca1c.js create mode 100644 public/js/.module-cache/2a1c89bcf1d4766dc10811dc8af9e6d5e5c8d669.js create mode 100644 public/js/.module-cache/2c77c19cdf0cf3bb958d4d66837ecfea8429a5d6.js create mode 100644 public/js/.module-cache/2fae87380d9cbedf1f340e41a1c628ada82fd6cc.js create mode 100644 public/js/.module-cache/310ea820901d05e2a9359da8adddc9e6cf835bbf.js create mode 100644 public/js/.module-cache/34e2a72c687db357db0c445f72112ed0ad0401d8.js create mode 100644 public/js/.module-cache/3fd71a95a716773a5542267ff559c1bac2ebd145.js create mode 100644 public/js/.module-cache/40fb7f3f70110d45ff88674c6cbfcf0466ca557c.js create mode 100644 public/js/.module-cache/4d35c87752610737362769003ed6019e24089dea.js create mode 100644 public/js/.module-cache/51cfd3c15651e482a0ce10069fcf434d420ad98c.js create mode 100644 public/js/.module-cache/5dd21e9811e1241f0744a7ea32beb42c2ed54fdc.js create mode 100644 public/js/.module-cache/6260a333593fcc33d9027d706c015f2e705c331c.js create mode 100644 public/js/.module-cache/68b46e2bdadd0334fc1af6e052359eb68b503eb1.js create mode 100644 public/js/.module-cache/7be73b3106cc6f137224bab56add0f7977a5b99d.js create mode 100644 public/js/.module-cache/830113443f1bba72e5c4c1e2a13223670ae34242.js create mode 100644 public/js/.module-cache/8b9451cc3a7abd2a28be5fa6626539b93402d66e.js create mode 100644 public/js/.module-cache/93a25a468d2afb76df9d1d8966b5dcc7fd24615e.js create mode 100644 public/js/.module-cache/94c16abfa314165bd1983e75b460c106a2d99b73.js create mode 100644 public/js/.module-cache/9d8ecfeafcaa8db65383a974e2453381be3612ac.js create mode 100644 public/js/.module-cache/9fb0d8b7cb67d528683cacd6ee470c2d09a977b6.js create mode 100644 public/js/.module-cache/a28d643d1ec29221f3ae842225f079fd9ffd44df.js create mode 100644 public/js/.module-cache/a7fa23dd16e23ce4a104450771900f33506daba4.js create mode 100644 public/js/.module-cache/afb9f21d4b0493b888e844b98a1ab0d4dffa3811.js create mode 100644 public/js/.module-cache/b0020dd1109aa45c3d5802819eb39a06841576c3.js create mode 100644 public/js/.module-cache/ce88f1373c1f06ccee52908b62f8f161fb0d639c.js create mode 100644 public/js/.module-cache/cf8e0d8551497ff3cf3d7b0ea18565cf0edb955d.js create mode 100644 public/js/.module-cache/d48909f4009e432b2547dce2a1c564f0e21ddd46.js create mode 100644 public/js/.module-cache/d79d327bc320e60fdb01101f85c02adc2b76e98f.js create mode 100644 public/js/.module-cache/ddfa618fa4dfdf81625ea52e7bb9239de3744884.js create mode 100644 public/js/.module-cache/deed142860f8fe418abdf965eed14561d915bcca.js create mode 100644 public/js/.module-cache/def246f0d40dc81b6306e2774afdc7d57c51e331.js create mode 100644 public/js/.module-cache/e71005362b97fa1f4fe7451d16b9fbc9439501f7.js create mode 100644 public/js/.module-cache/manifest/080c6ac9782b94536500ddb350a5a2db6c79c5d0.json create mode 100644 public/js/.module-cache/manifest/0a3704e0b971d6f8290a3efc871a57617ee0a15a.json create mode 100644 public/js/.module-cache/manifest/0f7a03f450663801d6dd518f98f0159430a961a2.json create mode 100644 public/js/.module-cache/manifest/118a4cc431c96eec7da652f52e2df24d6e42ed76.json create mode 100644 public/js/.module-cache/manifest/1227d9a0a98eed5691b8b934fb063dcac5f13229.json create mode 100644 public/js/.module-cache/manifest/1228defbf9e48f4397afe98096ac50d35831f4c5.json create mode 100644 public/js/.module-cache/manifest/1d1eb608f03c6968254b21820c0e6f5cdc7fca1c.json create mode 100644 public/js/.module-cache/manifest/2a1c89bcf1d4766dc10811dc8af9e6d5e5c8d669.json create mode 100644 public/js/.module-cache/manifest/2c77c19cdf0cf3bb958d4d66837ecfea8429a5d6.json create mode 100644 public/js/.module-cache/manifest/2fae87380d9cbedf1f340e41a1c628ada82fd6cc.json create mode 100644 public/js/.module-cache/manifest/310ea820901d05e2a9359da8adddc9e6cf835bbf.json create mode 100644 public/js/.module-cache/manifest/34e2a72c687db357db0c445f72112ed0ad0401d8.json create mode 100644 public/js/.module-cache/manifest/3fd71a95a716773a5542267ff559c1bac2ebd145.json create mode 100644 public/js/.module-cache/manifest/40fb7f3f70110d45ff88674c6cbfcf0466ca557c.json create mode 100644 public/js/.module-cache/manifest/4d35c87752610737362769003ed6019e24089dea.json create mode 100644 public/js/.module-cache/manifest/51cfd3c15651e482a0ce10069fcf434d420ad98c.json create mode 100644 public/js/.module-cache/manifest/5dd21e9811e1241f0744a7ea32beb42c2ed54fdc.json create mode 100644 public/js/.module-cache/manifest/6260a333593fcc33d9027d706c015f2e705c331c.json create mode 100644 public/js/.module-cache/manifest/68b46e2bdadd0334fc1af6e052359eb68b503eb1.json create mode 100644 public/js/.module-cache/manifest/7be73b3106cc6f137224bab56add0f7977a5b99d.json create mode 100644 public/js/.module-cache/manifest/830113443f1bba72e5c4c1e2a13223670ae34242.json create mode 100644 public/js/.module-cache/manifest/8b9451cc3a7abd2a28be5fa6626539b93402d66e.json create mode 100644 public/js/.module-cache/manifest/93a25a468d2afb76df9d1d8966b5dcc7fd24615e.json create mode 100644 public/js/.module-cache/manifest/94c16abfa314165bd1983e75b460c106a2d99b73.json create mode 100644 public/js/.module-cache/manifest/9d8ecfeafcaa8db65383a974e2453381be3612ac.json create mode 100644 public/js/.module-cache/manifest/9fb0d8b7cb67d528683cacd6ee470c2d09a977b6.json create mode 100644 public/js/.module-cache/manifest/a28d643d1ec29221f3ae842225f079fd9ffd44df.json create mode 100644 public/js/.module-cache/manifest/a7fa23dd16e23ce4a104450771900f33506daba4.json create mode 100644 public/js/.module-cache/manifest/afb9f21d4b0493b888e844b98a1ab0d4dffa3811.json create mode 100644 public/js/.module-cache/manifest/b0020dd1109aa45c3d5802819eb39a06841576c3.json create mode 100644 public/js/.module-cache/manifest/ce88f1373c1f06ccee52908b62f8f161fb0d639c.json create mode 100644 public/js/.module-cache/manifest/cf8e0d8551497ff3cf3d7b0ea18565cf0edb955d.json create mode 100644 public/js/.module-cache/manifest/d48909f4009e432b2547dce2a1c564f0e21ddd46.json create mode 100644 public/js/.module-cache/manifest/d79d327bc320e60fdb01101f85c02adc2b76e98f.json create mode 100644 public/js/.module-cache/manifest/ddfa618fa4dfdf81625ea52e7bb9239de3744884.json create mode 100644 public/js/.module-cache/manifest/deed142860f8fe418abdf965eed14561d915bcca.json create mode 100644 public/js/.module-cache/manifest/def246f0d40dc81b6306e2774afdc7d57c51e331.json create mode 100644 public/js/.module-cache/manifest/e71005362b97fa1f4fe7451d16b9fbc9439501f7.json create mode 100644 public/js/client.js create mode 100644 public/js/react-0.13.3.min.js create mode 100644 public/js/socket.io-1.3.5.js delete mode 100644 public/js/socketio.js create mode 100644 public/react/.module-cache/43480afd5f69e4669e8d9e74b6aacf91ffe7cedc.js create mode 100644 public/react/.module-cache/manifest/43480afd5f69e4669e8d9e74b6aacf91ffe7cedc.json create mode 100644 public/react/app.js create mode 100644 views/partials/foot.hbs diff --git a/README.md b/README.md new file mode 100644 index 0000000..533857d --- /dev/null +++ b/README.md @@ -0,0 +1,29 @@ +# SWS Gather App + +## Status + +A stateless, flexible and realtime micro web service to arrange SWS gathers for ENSL.org + +## Run + +```bash +npm install + +npm start +``` + +## Todo + +- ENSL.org: Authentication +- ENSL.org: Pull user data and bans +- ENSL.org: API to allow ENSL to pull current gather status +- Steam Integration: Pull hive stats +- Steam Integration: Outbound steam messaging +- Steam Integration: Pull avatars +- Admin tools +- Add a backend datastore to persist gather data and messages +- Add sounds + +## License + +MIT Licensed diff --git a/config/socketio.js b/config/socketio.js index 1b583c7..5750a6f 100644 --- a/config/socketio.js +++ b/config/socketio.js @@ -1,13 +1,33 @@ "use strict"; module.exports = function (io) { + var root = io.of("/"); + var authorised = io.of("/authorised"); + + var emitCount = function () { + root.emit('gatherCount', { + count: root.sockets.length + }); + }; + + var onConnection = function (socket) { + emitCount(); + }; + + var onDisconnect = function (socket) { + emitCount(); + }; + io.on('connection', function (socket) { - socket.emit('welcome', { hello: 'world' }); - // socket.on('my other event', function (data) { - // console.log(data); - // }); - socket.on('disconnect', function () { - io.emit('user disconnected'); + + onConnection(socket); + + socket.on('disconnect', function (socket) { + onDisconnect(); }); }); -}; \ No newline at end of file +}; + +// socket.on('my other event', function (data) { +// console.log(data); +// }); \ No newline at end of file diff --git a/index.js b/index.js index 9d7557b..5b7f64c 100644 --- a/index.js +++ b/index.js @@ -1,12 +1,12 @@ "use strict"; -var express = require("express"); -var app = express(); var fs = require("fs"); var path = require("path"); -var config = require(path.join(__dirname, "config/config.js")); +var express = require("express"); +var app = express(); var server = require('http').Server(app); var io = require('socket.io')(server); +var config = require(path.join(__dirname, "config/config.js")); // Configure express require(path.join(__dirname, "config/express"))(app); @@ -15,8 +15,15 @@ require(path.join(__dirname, "config/express"))(app); require(path.join(__dirname, "config/routes"))(app); // Configure socket.io server + +server.listen(config.port); + require(path.join(__dirname, "config/socketio"))(io); console.log("Listening on port", config.port); -module.exports = app; \ No newline at end of file +module.exports = { + app: app, + server: server, + io: io +}; \ No newline at end of file diff --git a/lib/react/app.jsx b/lib/react/app.jsx new file mode 100644 index 0000000..8afb6b9 --- /dev/null +++ b/lib/react/app.jsx @@ -0,0 +1,17 @@ +var MenuCounter = React.createClass({ + componentDidMount: function () { + socket.on('gatherCount', this.updateCount) + }, + updateCount: function (data) { + this.setProps({count: data.count}); + }, + render: function () { + return ( +
  • + Gatherers ({this.props.count}) +
  • + ); + } +}); + +React.render(, document.getElementById('side-menu')); \ No newline at end of file diff --git a/npm-debug.log b/npm-debug.log new file mode 100644 index 0000000..24e8f2f --- /dev/null +++ b/npm-debug.log @@ -0,0 +1,28 @@ +0 info it worked if it ends with ok +1 verbose cli [ '/Users/cablanchard/.nvm/v0.10.38/bin/node', +1 verbose cli '/Users/cablanchard/.nvm/v0.10.38/bin/npm', +1 verbose cli 'start' ] +2 info using npm@1.4.28 +3 info using node@v0.10.38 +4 verbose run-script [ 'prestart', 'start', 'poststart' ] +5 info prestart sws_gathers@1.0.0 +6 info start sws_gathers@1.0.0 +7 verbose unsafe-perm in lifecycle true +8 info sws_gathers@1.0.0 Failed to exec start script +9 error sws_gathers@1.0.0 start: `node index.js` +9 error Exit status 8 +10 error Failed at the sws_gathers@1.0.0 start script. +10 error This is most likely a problem with the sws_gathers package, +10 error not with npm itself. +10 error Tell the author that this fails on your system: +10 error node index.js +10 error You can get their info via: +10 error npm owner ls sws_gathers +10 error There is likely additional logging output above. +11 error System Darwin 14.3.0 +12 error command "/Users/cablanchard/.nvm/v0.10.38/bin/node" "/Users/cablanchard/.nvm/v0.10.38/bin/npm" "start" +13 error cwd /Users/cablanchard/Developer/node/sws_gathers +14 error node -v v0.10.38 +15 error npm -v 1.4.28 +16 error code ELIFECYCLE +17 verbose exit [ 1, true ] diff --git a/package.json b/package.json index 4f37ac9..ea40418 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,10 @@ ], "scripts": { "test": "NODE_ENV=test mocha spec/", - "start": "node index.js" + "start": "node index.js", + "compile:dev:react": "node_modules/react-tools/bin/jsx --watch -x jsx lib/react/ public/js/", + "compile:react": "node_modules/react-tools/bin/jsx -x jsx lib/react/ public/js/", + "dev": "nodemon index.js" }, "repository": { "type": "git", @@ -22,14 +25,18 @@ }, "homepage": "https://github.com/cblanc/sws_gathers", "dependencies": { - "chai": "~3.1.0", "express": "~4.13.1", "express-handlebars": "~2.0.1", - "mocha": "~2.2.5", "morgan": "~1.6.1", "node-mysql": "~0.4.2", "socket.io": "~1.3.5", - "supertest": "~1.0.1", + "react-tools": "~0.13.3", "winston": "~1.0.1" + }, + "devDependencies": { + "chai": "~3.1.0", + "mocha": "~2.2.5", + "nodemon": "~1.3.7", + "supertest": "~1.0.1" } } diff --git a/public/js/.module-cache/080c6ac9782b94536500ddb350a5a2db6c79c5d0.js b/public/js/.module-cache/080c6ac9782b94536500ddb350a5a2db6c79c5d0.js new file mode 100644 index 0000000..49d3595 --- /dev/null +++ b/public/js/.module-cache/080c6ac9782b94536500ddb350a5a2db6c79c5d0.js @@ -0,0 +1,19 @@ +var GathererCounter = React.createClass({displayName: "GathererCounter", + render: function () { + return (React.createElement("div", {className: "panel panel-primary"}, + React.createElement("div", {className: "panel-heading"}, + React.createElement("div", {className: "row"}, + React.createElement("div", {className: "col-xs-3"}, + React.createElement("i", {className: "fa fa-users fa-5x"}) + ), + React.createElement("div", {className: "col-xs-9 text-right"}, + React.createElement("div", {className: "huge", id: "gather-counter"}, "#"), + React.createElement("div", null, "Gatherers Online") + ) + ) + ) + )); + } +}); + +React.render(React.createElement(GathererCounter, null), document.getElementById('gatherCounter')); \ No newline at end of file diff --git a/public/js/.module-cache/0a3704e0b971d6f8290a3efc871a57617ee0a15a.js b/public/js/.module-cache/0a3704e0b971d6f8290a3efc871a57617ee0a15a.js new file mode 100644 index 0000000..a3509ff --- /dev/null +++ b/public/js/.module-cache/0a3704e0b971d6f8290a3efc871a57617ee0a15a.js @@ -0,0 +1,21 @@ +var GathererCounter = React.createClass({displayName: "GathererCounter", + render: function () { + return (React.createElement("div", {className: "panel panel-primary"}, + React.createElement("div", {className: "panel-heading"}, + React.createElement("div", {className: "row"}, + React.createElement("div", {className: "col-xs-3"}, + React.createElement("i", {className: "fa fa-users fa-5x"}) + ), + React.createElement("div", {className: "col-xs-9 text-right"}, + React.createElement("div", {className: "huge", id: "gather-counter"}, + this.props.count + ), + React.createElement("div", null, "Gatherers Online") + ) + ) + ) + )); + } +}); + +React.render(React.createElement(GathererCounter, {count: 0}), document.getElementById('gatherCounter')); \ No newline at end of file diff --git a/public/js/.module-cache/0f7a03f450663801d6dd518f98f0159430a961a2.js b/public/js/.module-cache/0f7a03f450663801d6dd518f98f0159430a961a2.js new file mode 100644 index 0000000..4e26e7c --- /dev/null +++ b/public/js/.module-cache/0f7a03f450663801d6dd518f98f0159430a961a2.js @@ -0,0 +1,24 @@ +var GathererCounter = React.createClass({displayName: "GathererCounter", + onComponentDidMount: function () { + socket.on('gatherCount', updateCount) + }, + render: function () { + return (React.createElement("div", {className: "panel panel-primary"}, + React.createElement("div", {className: "panel-heading"}, + React.createElement("div", {className: "row"}, + React.createElement("div", {className: "col-xs-3"}, + React.createElement("i", {className: "fa fa-users fa-5x"}) + ), + React.createElement("div", {className: "col-xs-9 text-right"}, + React.createElement("div", {className: "huge", id: "gather-counter"}, + this.props.count + ), + React.createElement("div", null, "Gatherers Online") + ) + ) + ) + )); + } +}); + +React.render(React.createElement(GathererCounter, {count: 0}), document.getElementById('gatherCounter')); \ No newline at end of file diff --git a/public/js/.module-cache/118a4cc431c96eec7da652f52e2df24d6e42ed76.js b/public/js/.module-cache/118a4cc431c96eec7da652f52e2df24d6e42ed76.js new file mode 100644 index 0000000..e7ec472 --- /dev/null +++ b/public/js/.module-cache/118a4cc431c96eec7da652f52e2df24d6e42ed76.js @@ -0,0 +1,18 @@ +var gathererCounter = React.createClass({displayName: "gathererCounter", + render: function () { + return (React.createElement("div", {className: "panel panel-primary"}, + React.createElement("div", {className: "panel-heading"}, + React.createElement("div", {className: "row"}, + React.createElement("div", {className: "col-xs-3"}, + React.createElement("i", {className: "fa fa-users fa-5x"}) + ), + React.createElement("div", {className: "col-xs-9 text-right"}, + React.createElement("div", {className: "huge", id: "gather-counter"}, "#"), + React.createElement("div", null, "Gatherers Online") + ) + ) + ) + )); + } +}); + diff --git a/public/js/.module-cache/1227d9a0a98eed5691b8b934fb063dcac5f13229.js b/public/js/.module-cache/1227d9a0a98eed5691b8b934fb063dcac5f13229.js new file mode 100644 index 0000000..4acbcf9 --- /dev/null +++ b/public/js/.module-cache/1227d9a0a98eed5691b8b934fb063dcac5f13229.js @@ -0,0 +1,26 @@ +var GathererCounter = React.createClass({displayName: "GathererCounter", + getInitialState: function () { + return { + count: 0 + }; + }, + render: function () { + return (React.createElement("div", {className: "panel panel-primary"}, + React.createElement("div", {className: "panel-heading"}, + React.createElement("div", {className: "row"}, + React.createElement("div", {className: "col-xs-3"}, + React.createElement("i", {className: "fa fa-users fa-5x"}) + ), + React.createElement("div", {className: "col-xs-9 text-right"}, + React.createElement("div", {className: "huge", id: "gather-counter"}, + this.getState('count') + ), + React.createElement("div", null, "Gatherers Online") + ) + ) + ) + )); + } +}); + +React.render(React.createElement(GathererCounter, {count: 0}), document.getElementById('gatherCounter')); \ No newline at end of file diff --git a/public/js/.module-cache/1228defbf9e48f4397afe98096ac50d35831f4c5.js b/public/js/.module-cache/1228defbf9e48f4397afe98096ac50d35831f4c5.js new file mode 100644 index 0000000..eaa6afe --- /dev/null +++ b/public/js/.module-cache/1228defbf9e48f4397afe98096ac50d35831f4c5.js @@ -0,0 +1,25 @@ +var GathererCounter = React.createClass({displayName: "GathererCounter", + getInitialState: { + count: 0 + }, + updateCount: function (count) { + this.setState({ count: count }) + }, + render: function () { + return (React.createElement("div", {className: "panel panel-primary"}, + React.createElement("div", {className: "panel-heading"}, + React.createElement("div", {className: "row"}, + React.createElement("div", {className: "col-xs-3"}, + React.createElement("i", {className: "fa fa-users fa-5x"}) + ), + React.createElement("div", {className: "col-xs-9 text-right"}, + React.createElement("div", {className: "huge", id: "gather-counter"}, "#"), + React.createElement("div", null, "Gatherers Online") + ) + ) + ) + )); + } +}); + +React.render(React.createElement(GathererCounter, null), document.getElementById('gatherCounter')); \ No newline at end of file diff --git a/public/js/.module-cache/1d1eb608f03c6968254b21820c0e6f5cdc7fca1c.js b/public/js/.module-cache/1d1eb608f03c6968254b21820c0e6f5cdc7fca1c.js new file mode 100644 index 0000000..94aa485 --- /dev/null +++ b/public/js/.module-cache/1d1eb608f03c6968254b21820c0e6f5cdc7fca1c.js @@ -0,0 +1,17 @@ +var gathererCounter = React.createClass({displayName: "gathererCounter", + render: function () { + return (React.createElement("div", {className: "panel panel-primary"}, + React.createElement("div", {className: "panel-heading"}, + React.createElement("div", {className: "row"}, + React.createElement("div", {className: "col-xs-3"}, + React.createElement("i", {className: "fa fa-users fa-5x"}) + ), + React.createElement("div", {className: "col-xs-9 text-right"}, + React.createElement("div", {className: "huge", id: "gather-counter"}, "#"), + React.createElement("div", null, "Gatherers Online") + ) + ) + ) + )); + } +}) \ No newline at end of file diff --git a/public/js/.module-cache/2a1c89bcf1d4766dc10811dc8af9e6d5e5c8d669.js b/public/js/.module-cache/2a1c89bcf1d4766dc10811dc8af9e6d5e5c8d669.js new file mode 100644 index 0000000..53bfdb8 --- /dev/null +++ b/public/js/.module-cache/2a1c89bcf1d4766dc10811dc8af9e6d5e5c8d669.js @@ -0,0 +1,21 @@ +var GathererCounter = React.createClass({displayName: "GathererCounter", + render: function () { + return (React.createElement("div", {className: "panel panel-primary"}, + React.createElement("div", {className: "panel-heading"}, + React.createElement("div", {className: "row"}, + React.createElement("div", {className: "col-xs-3"}, + React.createElement("i", {className: "fa fa-users fa-5x"}) + ), + React.createElement("div", {className: "col-xs-9 text-right"}, + React.createElement("div", {className: "huge", id: "gather-counter"}, + this.props.count + ), + React.createElement("div", null, "Gatherers Online") + ) + ) + ) + )); + } +}); + +React.render(React.createElement(GathererCounter, null), document.getElementById('gatherCounter')); \ No newline at end of file diff --git a/public/js/.module-cache/2c77c19cdf0cf3bb958d4d66837ecfea8429a5d6.js b/public/js/.module-cache/2c77c19cdf0cf3bb958d4d66837ecfea8429a5d6.js new file mode 100644 index 0000000..7031260 --- /dev/null +++ b/public/js/.module-cache/2c77c19cdf0cf3bb958d4d66837ecfea8429a5d6.js @@ -0,0 +1,17 @@ +var MenuCounter = React.createClass({displayName: "MenuCounter", + componentDidMount: function () { + socket.on('gatherCount', this.updateCount) + }, + updateCount: function (data) { + this.setProps({count: data.count}); + }, + render: function () { + return ( + React.createElement("li", null, + React.createElement("a", {href: "#"}, React.createElement("i", {className: "fa fa-users fa-fw"}), " Gatherers (", this.props.count, ")") + ) + ); + } +}); + +React.render(React.createElement(MenuCounter, {count: 0}), document.getElementById('side-menu')); \ No newline at end of file diff --git a/public/js/.module-cache/2fae87380d9cbedf1f340e41a1c628ada82fd6cc.js b/public/js/.module-cache/2fae87380d9cbedf1f340e41a1c628ada82fd6cc.js new file mode 100644 index 0000000..b5a3cb4 --- /dev/null +++ b/public/js/.module-cache/2fae87380d9cbedf1f340e41a1c628ada82fd6cc.js @@ -0,0 +1,45 @@ +var GathererCounter = React.createClass({displayName: "GathererCounter", + componentDidMount: function () { + socket.on('gatherCount', this.updateCount) + }, + updateCount: function (data) { + console.log(data); + this.setProps({count: data.count}); + }, + render: function () { + return (React.createElement("div", {className: "panel panel-primary"}, + React.createElement("div", {className: "panel-heading"}, + React.createElement("div", {className: "row"}, + React.createElement("div", {className: "col-xs-3"}, + React.createElement("i", {className: "fa fa-users fa-5x"}) + ), + React.createElement("div", {className: "col-xs-9 text-right"}, + React.createElement("div", {className: "huge", id: "gather-counter"}, + this.props.count + ), + React.createElement("div", null, "Gatherers Online") + ) + ) + ) + )); + } +}); + +var MenuCounter = React.createClass({displayName: "MenuCounter", + componentDidMount: function () { + socket.on('gatherCount', this.updateCount) + }, + updateCount: function (data) { + console.log(data); + this.setProps({count: data.count}); + }, + render: function () { + return ( + React.createElement("li", null, + React.createElement("a", {href: "#"}, React.createElement("i", {className: "fa fa-users fa-fw"}), " Gatherers") + ) + ); + } +}); + +React.render(React.createElement(GathererCounter, {count: 0}), document.getElementById('gatherCounter')); \ No newline at end of file diff --git a/public/js/.module-cache/310ea820901d05e2a9359da8adddc9e6cf835bbf.js b/public/js/.module-cache/310ea820901d05e2a9359da8adddc9e6cf835bbf.js new file mode 100644 index 0000000..6070568 --- /dev/null +++ b/public/js/.module-cache/310ea820901d05e2a9359da8adddc9e6cf835bbf.js @@ -0,0 +1,26 @@ +var GathererCounter = React.createClass({displayName: "GathererCounter", + getInitialState: function () { + return { + count: 0 + }; + }, + render: function () { + return (React.createElement("div", {className: "panel panel-primary"}, + React.createElement("div", {className: "panel-heading"}, + React.createElement("div", {className: "row"}, + React.createElement("div", {className: "col-xs-3"}, + React.createElement("i", {className: "fa fa-users fa-5x"}) + ), + React.createElement("div", {className: "col-xs-9 text-right"}, + React.createElement("div", {className: "huge", id: "gather-counter"}, + this.props.count + ), + React.createElement("div", null, "Gatherers Online") + ) + ) + ) + )); + } +}); + +React.render(React.createElement(GathererCounter, {count: 0}), document.getElementById('gatherCounter')); \ No newline at end of file diff --git a/public/js/.module-cache/34e2a72c687db357db0c445f72112ed0ad0401d8.js b/public/js/.module-cache/34e2a72c687db357db0c445f72112ed0ad0401d8.js new file mode 100644 index 0000000..43f72c7 --- /dev/null +++ b/public/js/.module-cache/34e2a72c687db357db0c445f72112ed0ad0401d8.js @@ -0,0 +1,44 @@ +var GathererCounter = React.createClass({displayName: "GathererCounter", + componentDidMount: function () { + socket.on('gatherCount', this.updateCount) + }, + updateCount: function (data) { + console.log(data); + this.setProps({count: data.count}); + }, + render: function () { + return (React.createElement("div", {className: "panel panel-primary"}, + React.createElement("div", {className: "panel-heading"}, + React.createElement("div", {className: "row"}, + React.createElement("div", {className: "col-xs-3"}, + React.createElement("i", {className: "fa fa-users fa-5x"}) + ), + React.createElement("div", {className: "col-xs-9 text-right"}, + React.createElement("div", {className: "huge", id: "gather-counter"}, + this.props.count + ), + React.createElement("div", null, "Gatherers Online") + ) + ) + ) + )); + } +}); + +var MenuCounter = React.createClass({displayName: "MenuCounter", + componentDidMount: function () { + socket.on('gatherCount', this.updateCount) + }, + updateCount: function (data) { + this.setProps({count: data.count}); + }, + render: function () { + return ( + React.createElement("li", null, + React.createElement("a", {href: "#"}, React.createElement("i", {className: "fa fa-users fa-fw"}), " Gatherers (", this.props.count, ")") + ) + ); + } +}); + +React.render(React.createElement(MenuCounter, {count: 0}), document.getElementById('sideMenu')); \ No newline at end of file diff --git a/public/js/.module-cache/3fd71a95a716773a5542267ff559c1bac2ebd145.js b/public/js/.module-cache/3fd71a95a716773a5542267ff559c1bac2ebd145.js new file mode 100644 index 0000000..0157167 --- /dev/null +++ b/public/js/.module-cache/3fd71a95a716773a5542267ff559c1bac2ebd145.js @@ -0,0 +1,25 @@ +var GathererCounter = React.createClass({displayName: "GathererCounter", + getInitialState: { + count: 0 + }, + updateCount: function (count) { + this.setState({ count: count }); + }, + render: function () { + return (React.createElement("div", {className: "panel panel-primary"}, + React.createElement("div", {className: "panel-heading"}, + React.createElement("div", {className: "row"}, + React.createElement("div", {className: "col-xs-3"}, + React.createElement("i", {className: "fa fa-users fa-5x"}) + ), + React.createElement("div", {className: "col-xs-9 text-right"}, + React.createElement("div", {className: "huge", id: "gather-counter"}, "#"), + React.createElement("div", null, "Gatherers Online") + ) + ) + ) + )); + } +}); + +React.render(React.createElement(GathererCounter, null), document.getElementById('gatherCounter')); \ No newline at end of file diff --git a/public/js/.module-cache/40fb7f3f70110d45ff88674c6cbfcf0466ca557c.js b/public/js/.module-cache/40fb7f3f70110d45ff88674c6cbfcf0466ca557c.js new file mode 100644 index 0000000..4d1212c --- /dev/null +++ b/public/js/.module-cache/40fb7f3f70110d45ff88674c6cbfcf0466ca557c.js @@ -0,0 +1,17 @@ +var gathererCounter = React.createClass({displayName: "gathererCounter", + render: function () { + return (React.createElement("div", {class: "panel panel-primary"}, + React.createElement("div", {class: "panel-heading"}, + React.createElement("div", {class: "row"}, + React.createElement("div", {class: "col-xs-3"}, + React.createElement("i", {class: "fa fa-users fa-5x"}) + ), + React.createElement("div", {class: "col-xs-9 text-right"}, + React.createElement("div", {class: "huge", id: "gather-counter"}, "#"), + React.createElement("div", null, "Gatherers Online") + ) + ) + ) + )); + } +}) \ No newline at end of file diff --git a/public/js/.module-cache/4d35c87752610737362769003ed6019e24089dea.js b/public/js/.module-cache/4d35c87752610737362769003ed6019e24089dea.js new file mode 100644 index 0000000..cc19cc9 --- /dev/null +++ b/public/js/.module-cache/4d35c87752610737362769003ed6019e24089dea.js @@ -0,0 +1,27 @@ +var GathererCounter = React.createClass({displayName: "GathererCounter", + onComponentDidMount: function () { + socket.on('gatherCount', this.updateCount) + }, + updateCount: function (data) { + + }, + render: function () { + return (React.createElement("div", {className: "panel panel-primary"}, + React.createElement("div", {className: "panel-heading"}, + React.createElement("div", {className: "row"}, + React.createElement("div", {className: "col-xs-3"}, + React.createElement("i", {className: "fa fa-users fa-5x"}) + ), + React.createElement("div", {className: "col-xs-9 text-right"}, + React.createElement("div", {className: "huge", id: "gather-counter"}, + this.props.count + ), + React.createElement("div", null, "Gatherers Online") + ) + ) + ) + )); + } +}); + +React.render(React.createElement(GathererCounter, {count: 0}), document.getElementById('gatherCounter')); \ No newline at end of file diff --git a/public/js/.module-cache/51cfd3c15651e482a0ce10069fcf434d420ad98c.js b/public/js/.module-cache/51cfd3c15651e482a0ce10069fcf434d420ad98c.js new file mode 100644 index 0000000..dfb302a --- /dev/null +++ b/public/js/.module-cache/51cfd3c15651e482a0ce10069fcf434d420ad98c.js @@ -0,0 +1,28 @@ +var GathererCounter = React.createClass({displayName: "GathererCounter", + onComponentDidMount: function () { + socket.on('gatherCount', this.updateCount) + }, + updateCount: function (data) { + console.log(data); + this.setProps({count: data.count}); + }, + render: function () { + return (React.createElement("div", {className: "panel panel-primary"}, + React.createElement("div", {className: "panel-heading"}, + React.createElement("div", {className: "row"}, + React.createElement("div", {className: "col-xs-3"}, + React.createElement("i", {className: "fa fa-users fa-5x"}) + ), + React.createElement("div", {className: "col-xs-9 text-right"}, + React.createElement("div", {className: "huge", id: "gather-counter"}, + this.props.count + ), + React.createElement("div", null, "Gatherers Online") + ) + ) + ) + )); + } +}); + +React.render(React.createElement(GathererCounter, {count: 0}), document.getElementById('gatherCounter')); \ No newline at end of file diff --git a/public/js/.module-cache/5dd21e9811e1241f0744a7ea32beb42c2ed54fdc.js b/public/js/.module-cache/5dd21e9811e1241f0744a7ea32beb42c2ed54fdc.js new file mode 100644 index 0000000..eb84054 --- /dev/null +++ b/public/js/.module-cache/5dd21e9811e1241f0744a7ea32beb42c2ed54fdc.js @@ -0,0 +1,27 @@ +var GathererCounter = React.createClass({displayName: "GathererCounter", + onComponentDidMount: function () { + socket.on('gatherCount', this.updateCount) + }, + updateCount: function () { + + }, + render: function () { + return (React.createElement("div", {className: "panel panel-primary"}, + React.createElement("div", {className: "panel-heading"}, + React.createElement("div", {className: "row"}, + React.createElement("div", {className: "col-xs-3"}, + React.createElement("i", {className: "fa fa-users fa-5x"}) + ), + React.createElement("div", {className: "col-xs-9 text-right"}, + React.createElement("div", {className: "huge", id: "gather-counter"}, + this.props.count + ), + React.createElement("div", null, "Gatherers Online") + ) + ) + ) + )); + } +}); + +React.render(React.createElement(GathererCounter, {count: 0}), document.getElementById('gatherCounter')); \ No newline at end of file diff --git a/public/js/.module-cache/6260a333593fcc33d9027d706c015f2e705c331c.js b/public/js/.module-cache/6260a333593fcc33d9027d706c015f2e705c331c.js new file mode 100644 index 0000000..2b07359 --- /dev/null +++ b/public/js/.module-cache/6260a333593fcc33d9027d706c015f2e705c331c.js @@ -0,0 +1,25 @@ +var GathererCounter = React.createClass({displayName: "GathererCounter", + getInitialState: { + count: 0 + }, + updateCount: function (count) { + this.setState({ count: count }); + }, + render: function () { + return (React.createElement("div", {className: "panel panel-primary"}, + React.createElement("div", {className: "panel-heading"}, + React.createElement("div", {className: "row"}, + React.createElement("div", {className: "col-xs-3"}, + React.createElement("i", {className: "fa fa-users fa-5x"}) + ), + React.createElement("div", {className: "col-xs-9 text-right"}, + React.createElement("div", {className: "huge", id: "gather-counter"}, count), + React.createElement("div", null, "Gatherers Online") + ) + ) + ) + )); + } +}); + +React.render(React.createElement(GathererCounter, null), document.getElementById('gatherCounter')); \ No newline at end of file diff --git a/public/js/.module-cache/68b46e2bdadd0334fc1af6e052359eb68b503eb1.js b/public/js/.module-cache/68b46e2bdadd0334fc1af6e052359eb68b503eb1.js new file mode 100644 index 0000000..ccbd8c7 --- /dev/null +++ b/public/js/.module-cache/68b46e2bdadd0334fc1af6e052359eb68b503eb1.js @@ -0,0 +1,27 @@ +var GathererCounter = React.createClass({displayName: "GathererCounter", + onComponentDidMount: function () { + socket.on('gatherCount', this.updateCount) + }, + updateCount: function (data) { + this.setProps({count: data.count}); + }, + render: function () { + return (React.createElement("div", {className: "panel panel-primary"}, + React.createElement("div", {className: "panel-heading"}, + React.createElement("div", {className: "row"}, + React.createElement("div", {className: "col-xs-3"}, + React.createElement("i", {className: "fa fa-users fa-5x"}) + ), + React.createElement("div", {className: "col-xs-9 text-right"}, + React.createElement("div", {className: "huge", id: "gather-counter"}, + this.props.count + ), + React.createElement("div", null, "Gatherers Online") + ) + ) + ) + )); + } +}); + +React.render(React.createElement(GathererCounter, {count: 0}), document.getElementById('gatherCounter')); \ No newline at end of file diff --git a/public/js/.module-cache/7be73b3106cc6f137224bab56add0f7977a5b99d.js b/public/js/.module-cache/7be73b3106cc6f137224bab56add0f7977a5b99d.js new file mode 100644 index 0000000..eb70e6d --- /dev/null +++ b/public/js/.module-cache/7be73b3106cc6f137224bab56add0f7977a5b99d.js @@ -0,0 +1,44 @@ +// var GathererCounter = React.createClass({ +// componentDidMount: function () { +// socket.on('gatherCount', this.updateCount) +// }, +// updateCount: function (data) { +// console.log(data); +// this.setProps({count: data.count}); +// }, +// render: function () { +// return (
    +//
    +//
    +//
    +// +//
    +//
    +//
    +// {this.props.count} +//
    +//
    Gatherers Online
    +//
    +//
    +//
    +//
    ); +// } +// }); + +var MenuCounter = React.createClass({displayName: "MenuCounter", + componentDidMount: function () { + socket.on('gatherCount', this.updateCount) + }, + updateCount: function (data) { + this.setProps({count: data.count}); + }, + render: function () { + return ( + React.createElement("li", null, + React.createElement("a", {href: "#"}, React.createElement("i", {className: "fa fa-users fa-fw"}), " Gatherers (", this.props.count, ")") + ) + ); + } +}); + +React.render(React.createElement(MenuCounter, {count: 0}), document.getElementById('side-menu')); \ No newline at end of file diff --git a/public/js/.module-cache/830113443f1bba72e5c4c1e2a13223670ae34242.js b/public/js/.module-cache/830113443f1bba72e5c4c1e2a13223670ae34242.js new file mode 100644 index 0000000..c9e12c4 --- /dev/null +++ b/public/js/.module-cache/830113443f1bba72e5c4c1e2a13223670ae34242.js @@ -0,0 +1,45 @@ +var GathererCounter = React.createClass({displayName: "GathererCounter", + componentDidMount: function () { + socket.on('gatherCount', this.updateCount) + }, + updateCount: function (data) { + console.log(data); + this.setProps({count: data.count}); + }, + render: function () { + return (React.createElement("div", {className: "panel panel-primary"}, + React.createElement("div", {className: "panel-heading"}, + React.createElement("div", {className: "row"}, + React.createElement("div", {className: "col-xs-3"}, + React.createElement("i", {className: "fa fa-users fa-5x"}) + ), + React.createElement("div", {className: "col-xs-9 text-right"}, + React.createElement("div", {className: "huge", id: "gather-counter"}, + this.props.count + ), + React.createElement("div", null, "Gatherers Online") + ) + ) + ) + )); + } +}); + +var MenuCounter = React.createClass({displayName: "MenuCounter", + componentDidMount: function () { + socket.on('gatherCount', this.updateCount) + }, + updateCount: function (data) { + console.log(data); + this.setProps({count: data.count}); + }, + render: function () { + return ( + React.createElement("li", null, + React.createElement("a", {href: "#"}, React.createElement("i", {className: "fa fa-users fa-fw"}), " Gatherers (", this.props.count, ")") + ) + ); + } +}); + +React.render(React.createElement(MenuCounter, {count: 0}), document.getElementById('gatherCounter')); \ No newline at end of file diff --git a/public/js/.module-cache/8b9451cc3a7abd2a28be5fa6626539b93402d66e.js b/public/js/.module-cache/8b9451cc3a7abd2a28be5fa6626539b93402d66e.js new file mode 100644 index 0000000..e51039a --- /dev/null +++ b/public/js/.module-cache/8b9451cc3a7abd2a28be5fa6626539b93402d66e.js @@ -0,0 +1,27 @@ +var GathererCounter = React.createClass({displayName: "GathererCounter", + onComponentDidMount: function () { + socket.on('gatherCount', this.updateCount) + }, + updateCount: function (data) { + this.setProps({count: data.count}) + }, + render: function () { + return (React.createElement("div", {className: "panel panel-primary"}, + React.createElement("div", {className: "panel-heading"}, + React.createElement("div", {className: "row"}, + React.createElement("div", {className: "col-xs-3"}, + React.createElement("i", {className: "fa fa-users fa-5x"}) + ), + React.createElement("div", {className: "col-xs-9 text-right"}, + React.createElement("div", {className: "huge", id: "gather-counter"}, + this.props.count + ), + React.createElement("div", null, "Gatherers Online") + ) + ) + ) + )); + } +}); + +React.render(React.createElement(GathererCounter, {count: 0}), document.getElementById('gatherCounter')); \ No newline at end of file diff --git a/public/js/.module-cache/93a25a468d2afb76df9d1d8966b5dcc7fd24615e.js b/public/js/.module-cache/93a25a468d2afb76df9d1d8966b5dcc7fd24615e.js new file mode 100644 index 0000000..3ad836e --- /dev/null +++ b/public/js/.module-cache/93a25a468d2afb76df9d1d8966b5dcc7fd24615e.js @@ -0,0 +1,45 @@ +var GathererCounter = React.createClass({displayName: "GathererCounter", + componentDidMount: function () { + socket.on('gatherCount', this.updateCount) + }, + updateCount: function (data) { + console.log(data); + this.setProps({count: data.count}); + }, + render: function () { + return (React.createElement("div", {className: "panel panel-primary"}, + React.createElement("div", {className: "panel-heading"}, + React.createElement("div", {className: "row"}, + React.createElement("div", {className: "col-xs-3"}, + React.createElement("i", {className: "fa fa-users fa-5x"}) + ), + React.createElement("div", {className: "col-xs-9 text-right"}, + React.createElement("div", {className: "huge", id: "gather-counter"}, + this.props.count + ), + React.createElement("div", null, "Gatherers Online") + ) + ) + ) + )); + } +}); + +var MenuCounter = React.createClass({displayName: "MenuCounter", + componentDidMount: function () { + socket.on('gatherCount', this.updateCount) + }, + updateCount: function (data) { + console.log(data); + this.setProps({count: data.count}); + }, + render: function () { + return ( + React.createElement("li", null, + React.createElement("a", {href: "#"}, React.createElement("i", {class: "fa fa-users fa-fw"}), " Gatherers") + ) + ); + } +}); + +React.render(React.createElement(GathererCounter, {count: 0}), document.getElementById('gatherCounter')); \ No newline at end of file diff --git a/public/js/.module-cache/94c16abfa314165bd1983e75b460c106a2d99b73.js b/public/js/.module-cache/94c16abfa314165bd1983e75b460c106a2d99b73.js new file mode 100644 index 0000000..e69de29 diff --git a/public/js/.module-cache/9d8ecfeafcaa8db65383a974e2453381be3612ac.js b/public/js/.module-cache/9d8ecfeafcaa8db65383a974e2453381be3612ac.js new file mode 100644 index 0000000..49d30f3 --- /dev/null +++ b/public/js/.module-cache/9d8ecfeafcaa8db65383a974e2453381be3612ac.js @@ -0,0 +1,45 @@ +var GathererCounter = React.createClass({displayName: "GathererCounter", + componentDidMount: function () { + socket.on('gatherCount', this.updateCount) + }, + updateCount: function (data) { + console.log(data); + this.setProps({count: data.count}); + }, + render: function () { + return (React.createElement("div", {className: "panel panel-primary"}, + React.createElement("div", {className: "panel-heading"}, + React.createElement("div", {className: "row"}, + React.createElement("div", {className: "col-xs-3"}, + React.createElement("i", {className: "fa fa-users fa-5x"}) + ), + React.createElement("div", {className: "col-xs-9 text-right"}, + React.createElement("div", {className: "huge", id: "gather-counter"}, + this.props.count + ), + React.createElement("div", null, "Gatherers Online") + ) + ) + ) + )); + } +}); + +var MenuCounter = React.createClass({displayName: "MenuCounter", + componentDidMount: function () { + socket.on('gatherCount', this.updateCount) + }, + updateCount: function (data) { + console.log(data); + this.setProps({count: data.count}); + }, + render: function () { + return ( + React.createElement("li", null, + React.createElement("a", {href: "#"}, React.createElement("i", {className: "fa fa-users fa-fw"}), " Gatherers (", this.props.count, ")") + ) + ); + } +}); + +React.render(React.createElement(MenuCounter, {count: 0}), document.getElementById('sideMenu')); \ No newline at end of file diff --git a/public/js/.module-cache/9fb0d8b7cb67d528683cacd6ee470c2d09a977b6.js b/public/js/.module-cache/9fb0d8b7cb67d528683cacd6ee470c2d09a977b6.js new file mode 100644 index 0000000..1cdef32 --- /dev/null +++ b/public/js/.module-cache/9fb0d8b7cb67d528683cacd6ee470c2d09a977b6.js @@ -0,0 +1,25 @@ +var GathererCounter = React.createClass({displayName: "GathererCounter", + onComponentDidMount: function () { + socket.on('gatherCount', this.updateCount) + }, + + render: function () { + return (React.createElement("div", {className: "panel panel-primary"}, + React.createElement("div", {className: "panel-heading"}, + React.createElement("div", {className: "row"}, + React.createElement("div", {className: "col-xs-3"}, + React.createElement("i", {className: "fa fa-users fa-5x"}) + ), + React.createElement("div", {className: "col-xs-9 text-right"}, + React.createElement("div", {className: "huge", id: "gather-counter"}, + this.props.count + ), + React.createElement("div", null, "Gatherers Online") + ) + ) + ) + )); + } +}); + +React.render(React.createElement(GathererCounter, {count: 0}), document.getElementById('gatherCounter')); \ No newline at end of file diff --git a/public/js/.module-cache/a28d643d1ec29221f3ae842225f079fd9ffd44df.js b/public/js/.module-cache/a28d643d1ec29221f3ae842225f079fd9ffd44df.js new file mode 100644 index 0000000..32eb09c --- /dev/null +++ b/public/js/.module-cache/a28d643d1ec29221f3ae842225f079fd9ffd44df.js @@ -0,0 +1,21 @@ +var GathererCounter = React.createClass({displayName: "GathererCounter", + render: function () { + return (React.createElement("div", {className: "panel panel-primary"}, + React.createElement("div", {className: "panel-heading"}, + React.createElement("div", {className: "row"}, + React.createElement("div", {className: "col-xs-3"}, + React.createElement("i", {className: "fa fa-users fa-5x"}) + ), + React.createElement("div", {className: "col-xs-9 text-right"}, + React.createElement("div", {className: "huge", id: "gather-counter"}, + this.state.count + ), + React.createElement("div", null, "Gatherers Online") + ) + ) + ) + )); + } +}); + +React.render(React.createElement(GathererCounter, null), document.getElementById('gatherCounter')); \ No newline at end of file diff --git a/public/js/.module-cache/a7fa23dd16e23ce4a104450771900f33506daba4.js b/public/js/.module-cache/a7fa23dd16e23ce4a104450771900f33506daba4.js new file mode 100644 index 0000000..28a2ba0 --- /dev/null +++ b/public/js/.module-cache/a7fa23dd16e23ce4a104450771900f33506daba4.js @@ -0,0 +1,27 @@ +var GathererCounter = React.createClass({displayName: "GathererCounter", + onComponentDidMount: function () { + socket.on('gatherCount', this.updateCount) + }, + updateCount: function () { + + }, + render: function () { + return (React.createElement("div", {className: "panel panel-primary"}, + React.createElement("div", {className: "panel-heading"}, + React.createElement("div", {className: "row"}, + React.createElement("div", {className: "col-xs-3"}, + React.createElement("i", {className: "fa fa-users fa-5x"}) + ), + React.createElement("div", {className: "col-xs-9 text-right"}, + React.createElement("div", {className: "huge", id: "gather-counter"}, + this.props.count + ), + React.createElement("div", null, "Gatherers Online") + ) + ) + ) + )); + } +}); + +React.render(React.createElement(GathererCounter, {count: 0}), document.getElementById('gatherCounter')); \ No newline at end of file diff --git a/public/js/.module-cache/afb9f21d4b0493b888e844b98a1ab0d4dffa3811.js b/public/js/.module-cache/afb9f21d4b0493b888e844b98a1ab0d4dffa3811.js new file mode 100644 index 0000000..6baf153 --- /dev/null +++ b/public/js/.module-cache/afb9f21d4b0493b888e844b98a1ab0d4dffa3811.js @@ -0,0 +1,22 @@ +var GathererCounter = React.createClass({displayName: "GathererCounter", + getInitialState: { + count: 0 + }, + render: function () { + return (React.createElement("div", {className: "panel panel-primary"}, + React.createElement("div", {className: "panel-heading"}, + React.createElement("div", {className: "row"}, + React.createElement("div", {className: "col-xs-3"}, + React.createElement("i", {className: "fa fa-users fa-5x"}) + ), + React.createElement("div", {className: "col-xs-9 text-right"}, + React.createElement("div", {className: "huge", id: "gather-counter"}, "#"), + React.createElement("div", null, "Gatherers Online") + ) + ) + ) + )); + } +}); + +React.render(React.createElement(GathererCounter, null), document.getElementById('gatherCounter')); \ No newline at end of file diff --git a/public/js/.module-cache/b0020dd1109aa45c3d5802819eb39a06841576c3.js b/public/js/.module-cache/b0020dd1109aa45c3d5802819eb39a06841576c3.js new file mode 100644 index 0000000..d40cbce --- /dev/null +++ b/public/js/.module-cache/b0020dd1109aa45c3d5802819eb39a06841576c3.js @@ -0,0 +1,45 @@ +var GathererCounter = React.createClass({displayName: "GathererCounter", + componentDidMount: function () { + socket.on('gatherCount', this.updateCount) + }, + updateCount: function (data) { + console.log(data); + this.setProps({count: data.count}); + }, + render: function () { + return (React.createElement("div", {className: "panel panel-primary"}, + React.createElement("div", {className: "panel-heading"}, + React.createElement("div", {className: "row"}, + React.createElement("div", {className: "col-xs-3"}, + React.createElement("i", {className: "fa fa-users fa-5x"}) + ), + React.createElement("div", {className: "col-xs-9 text-right"}, + React.createElement("div", {className: "huge", id: "gather-counter"}, + this.props.count + ), + React.createElement("div", null, "Gatherers Online") + ) + ) + ) + )); + } +}); + +var MenuCounter = React.createClass({displayName: "MenuCounter", + componentDidMount: function () { + socket.on('gatherCount', this.updateCount) + }, + updateCount: function (data) { + console.log(data); + this.setProps({count: data.count}); + }, + render: function () { + return ( + React.createElement("li", null, + React.createElement("a", {href: "#"}, React.createElement("i", {className: "fa fa-users fa-fw"}), " Gatherers (", this.props.count, ")") + ) + ); + } +}); + +React.render(React.createElement(GathererCounter, {count: 0}), document.getElementById('gatherCounter')); \ No newline at end of file diff --git a/public/js/.module-cache/ce88f1373c1f06ccee52908b62f8f161fb0d639c.js b/public/js/.module-cache/ce88f1373c1f06ccee52908b62f8f161fb0d639c.js new file mode 100644 index 0000000..a1a852a --- /dev/null +++ b/public/js/.module-cache/ce88f1373c1f06ccee52908b62f8f161fb0d639c.js @@ -0,0 +1,29 @@ +var GathererCounter = React.createClass({displayName: "GathererCounter", + getInitialState: function () { + return { + count: 0 + }; + }, + updateCount: function (count) { + this.setState({ count: count }); + }, + render: function () { + return (React.createElement("div", {className: "panel panel-primary"}, + React.createElement("div", {className: "panel-heading"}, + React.createElement("div", {className: "row"}, + React.createElement("div", {className: "col-xs-3"}, + React.createElement("i", {className: "fa fa-users fa-5x"}) + ), + React.createElement("div", {className: "col-xs-9 text-right"}, + React.createElement("div", {className: "huge", id: "gather-counter"}, + this.state.count + ), + React.createElement("div", null, "Gatherers Online") + ) + ) + ) + )); + } +}); + +React.render(React.createElement(GathererCounter, null), document.getElementById('gatherCounter')); \ No newline at end of file diff --git a/public/js/.module-cache/cf8e0d8551497ff3cf3d7b0ea18565cf0edb955d.js b/public/js/.module-cache/cf8e0d8551497ff3cf3d7b0ea18565cf0edb955d.js new file mode 100644 index 0000000..2fad3ad --- /dev/null +++ b/public/js/.module-cache/cf8e0d8551497ff3cf3d7b0ea18565cf0edb955d.js @@ -0,0 +1,44 @@ +// var GathererCounter = React.createClass({ +// componentDidMount: function () { +// socket.on('gatherCount', this.updateCount) +// }, +// updateCount: function (data) { +// console.log(data); +// this.setProps({count: data.count}); +// }, +// render: function () { +// return (
    +//
    +//
    +//
    +// +//
    +//
    +//
    +// {this.props.count} +//
    +//
    Gatherers Online
    +//
    +//
    +//
    +//
    ); +// } +// }); + +var MenuCounter = React.createClass({displayName: "MenuCounter", + componentDidMount: function () { + socket.on('gatherCount', this.updateCount) + }, + updateCount: function (data) { + this.setProps({count: data.count}); + }, + render: function () { + return ( + React.createElement("li", null, + React.createElement("a", {href: "#"}, React.createElement("i", {className: "fa fa-users fa-fw"}), " Gatherers (", this.props.count, ")") + ) + ); + } +}); + +React.render(React.createElement(MenuCounter, {count: 0}), document.getElementById('sideMenu')); \ No newline at end of file diff --git a/public/js/.module-cache/d48909f4009e432b2547dce2a1c564f0e21ddd46.js b/public/js/.module-cache/d48909f4009e432b2547dce2a1c564f0e21ddd46.js new file mode 100644 index 0000000..f735eb9 --- /dev/null +++ b/public/js/.module-cache/d48909f4009e432b2547dce2a1c564f0e21ddd46.js @@ -0,0 +1,27 @@ +var GathererCounter = React.createClass({displayName: "GathererCounter", + getInitialState: { + count: 0 + }, + updateCount: function (count) { + this.setState({ count: count }); + }, + render: function () { + return (React.createElement("div", {className: "panel panel-primary"}, + React.createElement("div", {className: "panel-heading"}, + React.createElement("div", {className: "row"}, + React.createElement("div", {className: "col-xs-3"}, + React.createElement("i", {className: "fa fa-users fa-5x"}) + ), + React.createElement("div", {className: "col-xs-9 text-right"}, + React.createElement("div", {className: "huge", id: "gather-counter"}, + count + ), + React.createElement("div", null, "Gatherers Online") + ) + ) + ) + )); + } +}); + +React.render(React.createElement(GathererCounter, null), document.getElementById('gatherCounter')); \ No newline at end of file diff --git a/public/js/.module-cache/d79d327bc320e60fdb01101f85c02adc2b76e98f.js b/public/js/.module-cache/d79d327bc320e60fdb01101f85c02adc2b76e98f.js new file mode 100644 index 0000000..f76b08a --- /dev/null +++ b/public/js/.module-cache/d79d327bc320e60fdb01101f85c02adc2b76e98f.js @@ -0,0 +1,55 @@ +var GathererCounter = React.createClass({displayName: "GathererCounter", + componentDidMount: function () { + socket.on('gatherCount', this.updateCount) + }, + updateCount: function (data) { + console.log(data); + this.setProps({count: data.count}); + }, + render: function () { + return (React.createElement("div", {className: "panel panel-primary"}, + React.createElement("div", {className: "panel-heading"}, + React.createElement("div", {className: "row"}, + React.createElement("div", {className: "col-xs-3"}, + React.createElement("i", {className: "fa fa-users fa-5x"}) + ), + React.createElement("div", {className: "col-xs-9 text-right"}, + React.createElement("div", {className: "huge", id: "gather-counter"}, + this.props.count + ), + React.createElement("div", null, "Gatherers Online") + ) + ) + ) + )); + } +}); + +var MenuCounter = React.createClass({displayName: "MenuCounter", + componentDidMount: function () { + socket.on('gatherCount', this.updateCount) + }, + updateCount: function (data) { + console.log(data); + this.setProps({count: data.count}); + }, + render: function () { + return (React.createElement("div", {className: "panel panel-primary"}, + React.createElement("div", {className: "panel-heading"}, + React.createElement("div", {className: "row"}, + React.createElement("div", {className: "col-xs-3"}, + React.createElement("i", {className: "fa fa-users fa-5x"}) + ), + React.createElement("div", {className: "col-xs-9 text-right"}, + React.createElement("div", {className: "huge", id: "gather-counter"}, + this.props.count + ), + React.createElement("div", null, "Gatherers Online") + ) + ) + ) + )); + } +}); + +React.render(React.createElement(GathererCounter, {count: 0}), document.getElementById('gatherCounter')); \ No newline at end of file diff --git a/public/js/.module-cache/ddfa618fa4dfdf81625ea52e7bb9239de3744884.js b/public/js/.module-cache/ddfa618fa4dfdf81625ea52e7bb9239de3744884.js new file mode 100644 index 0000000..432d041 --- /dev/null +++ b/public/js/.module-cache/ddfa618fa4dfdf81625ea52e7bb9239de3744884.js @@ -0,0 +1,28 @@ +var GathererCounter = React.createClass({displayName: "GathererCounter", + componentDidMount: function () { + socket.on('gatherCount', this.updateCount) + }, + updateCount: function (data) { + console.log(data); + this.setProps({count: data.count}); + }, + render: function () { + return (React.createElement("div", {className: "panel panel-primary"}, + React.createElement("div", {className: "panel-heading"}, + React.createElement("div", {className: "row"}, + React.createElement("div", {className: "col-xs-3"}, + React.createElement("i", {className: "fa fa-users fa-5x"}) + ), + React.createElement("div", {className: "col-xs-9 text-right"}, + React.createElement("div", {className: "huge", id: "gather-counter"}, + this.props.count + ), + React.createElement("div", null, "Gatherers Online") + ) + ) + ) + )); + } +}); + +React.render(React.createElement(GathererCounter, {count: 0}), document.getElementById('gatherCounter')); \ No newline at end of file diff --git a/public/js/.module-cache/deed142860f8fe418abdf965eed14561d915bcca.js b/public/js/.module-cache/deed142860f8fe418abdf965eed14561d915bcca.js new file mode 100644 index 0000000..d180a93 --- /dev/null +++ b/public/js/.module-cache/deed142860f8fe418abdf965eed14561d915bcca.js @@ -0,0 +1,17 @@ +var gathererCounter = React.createClass({displayName: "gathererCounter", + render: function () { + return React.createElement("div", {class: "panel panel-primary"}, + React.createElement("div", {class: "panel-heading"}, + React.createElement("div", {class: "row"}, + React.createElement("div", {class: "col-xs-3"}, + React.createElement("i", {class: "fa fa-users fa-5x"}) + ), + React.createElement("div", {class: "col-xs-9 text-right"}, + React.createElement("div", {class: "huge", id: "gather-counter"}, "#"), + React.createElement("div", null, "Gatherers Online") + ) + ) + ) + ) + } +}) \ No newline at end of file diff --git a/public/js/.module-cache/def246f0d40dc81b6306e2774afdc7d57c51e331.js b/public/js/.module-cache/def246f0d40dc81b6306e2774afdc7d57c51e331.js new file mode 100644 index 0000000..2661177 --- /dev/null +++ b/public/js/.module-cache/def246f0d40dc81b6306e2774afdc7d57c51e331.js @@ -0,0 +1,36 @@ +var TodoList = React.createClass({displayName: "TodoList", + render: function() { + var createItem = function(itemText, index) { + return React.createElement("li", {key: index + itemText}, itemText); + }; + return React.createElement("ul", null, this.props.items.map(createItem)); + } +}); +var TodoApp = React.createClass({displayName: "TodoApp", + getInitialState: function() { + return {items: [], text: ''}; + }, + onChange: function(e) { + this.setState({text: e.target.value}); + }, + handleSubmit: function(e) { + e.preventDefault(); + var nextItems = this.state.items.concat([this.state.text]); + var nextText = ''; + this.setState({items: nextItems, text: nextText}); + }, + render: function() { + return ( + React.createElement("div", null, + React.createElement("h3", null, "TODO"), + React.createElement(TodoList, {items: this.state.items}), + React.createElement("form", {onSubmit: this.handleSubmit}, + React.createElement("input", {onChange: this.onChange, value: this.state.text}), + React.createElement("button", null, 'Add #' + (this.state.items.length + 1)) + ) + ) + ); + } +}); + +; \ No newline at end of file diff --git a/public/js/.module-cache/e71005362b97fa1f4fe7451d16b9fbc9439501f7.js b/public/js/.module-cache/e71005362b97fa1f4fe7451d16b9fbc9439501f7.js new file mode 100644 index 0000000..60509ca --- /dev/null +++ b/public/js/.module-cache/e71005362b97fa1f4fe7451d16b9fbc9439501f7.js @@ -0,0 +1,29 @@ +var GathererCounter = React.createClass({displayName: "GathererCounter", + getInitialState: function () { + return { + count: 0 + }; + }, + updateCount: function (count) { + this.setState({ count: count }); + }, + render: function () { + return (React.createElement("div", {className: "panel panel-primary"}, + React.createElement("div", {className: "panel-heading"}, + React.createElement("div", {className: "row"}, + React.createElement("div", {className: "col-xs-3"}, + React.createElement("i", {className: "fa fa-users fa-5x"}) + ), + React.createElement("div", {className: "col-xs-9 text-right"}, + React.createElement("div", {className: "huge", id: "gather-counter"}, + count + ), + React.createElement("div", null, "Gatherers Online") + ) + ) + ) + )); + } +}); + +React.render(React.createElement(GathererCounter, null), document.getElementById('gatherCounter')); \ No newline at end of file diff --git a/public/js/.module-cache/manifest/080c6ac9782b94536500ddb350a5a2db6c79c5d0.json b/public/js/.module-cache/manifest/080c6ac9782b94536500ddb350a5a2db6c79c5d0.json new file mode 100644 index 0000000..6a910d8 --- /dev/null +++ b/public/js/.module-cache/manifest/080c6ac9782b94536500ddb350a5a2db6c79c5d0.json @@ -0,0 +1 @@ +{".js":"080c6ac9782b94536500ddb350a5a2db6c79c5d0.js"} \ No newline at end of file diff --git a/public/js/.module-cache/manifest/0a3704e0b971d6f8290a3efc871a57617ee0a15a.json b/public/js/.module-cache/manifest/0a3704e0b971d6f8290a3efc871a57617ee0a15a.json new file mode 100644 index 0000000..f07f938 --- /dev/null +++ b/public/js/.module-cache/manifest/0a3704e0b971d6f8290a3efc871a57617ee0a15a.json @@ -0,0 +1 @@ +{".js":"0a3704e0b971d6f8290a3efc871a57617ee0a15a.js"} \ No newline at end of file diff --git a/public/js/.module-cache/manifest/0f7a03f450663801d6dd518f98f0159430a961a2.json b/public/js/.module-cache/manifest/0f7a03f450663801d6dd518f98f0159430a961a2.json new file mode 100644 index 0000000..705f1f8 --- /dev/null +++ b/public/js/.module-cache/manifest/0f7a03f450663801d6dd518f98f0159430a961a2.json @@ -0,0 +1 @@ +{".js":"0f7a03f450663801d6dd518f98f0159430a961a2.js"} \ No newline at end of file diff --git a/public/js/.module-cache/manifest/118a4cc431c96eec7da652f52e2df24d6e42ed76.json b/public/js/.module-cache/manifest/118a4cc431c96eec7da652f52e2df24d6e42ed76.json new file mode 100644 index 0000000..0658904 --- /dev/null +++ b/public/js/.module-cache/manifest/118a4cc431c96eec7da652f52e2df24d6e42ed76.json @@ -0,0 +1 @@ +{".js":"118a4cc431c96eec7da652f52e2df24d6e42ed76.js"} \ No newline at end of file diff --git a/public/js/.module-cache/manifest/1227d9a0a98eed5691b8b934fb063dcac5f13229.json b/public/js/.module-cache/manifest/1227d9a0a98eed5691b8b934fb063dcac5f13229.json new file mode 100644 index 0000000..9a87b0c --- /dev/null +++ b/public/js/.module-cache/manifest/1227d9a0a98eed5691b8b934fb063dcac5f13229.json @@ -0,0 +1 @@ +{".js":"1227d9a0a98eed5691b8b934fb063dcac5f13229.js"} \ No newline at end of file diff --git a/public/js/.module-cache/manifest/1228defbf9e48f4397afe98096ac50d35831f4c5.json b/public/js/.module-cache/manifest/1228defbf9e48f4397afe98096ac50d35831f4c5.json new file mode 100644 index 0000000..b66d5e1 --- /dev/null +++ b/public/js/.module-cache/manifest/1228defbf9e48f4397afe98096ac50d35831f4c5.json @@ -0,0 +1 @@ +{".js":"1228defbf9e48f4397afe98096ac50d35831f4c5.js"} \ No newline at end of file diff --git a/public/js/.module-cache/manifest/1d1eb608f03c6968254b21820c0e6f5cdc7fca1c.json b/public/js/.module-cache/manifest/1d1eb608f03c6968254b21820c0e6f5cdc7fca1c.json new file mode 100644 index 0000000..079bcdd --- /dev/null +++ b/public/js/.module-cache/manifest/1d1eb608f03c6968254b21820c0e6f5cdc7fca1c.json @@ -0,0 +1 @@ +{".js":"1d1eb608f03c6968254b21820c0e6f5cdc7fca1c.js"} \ No newline at end of file diff --git a/public/js/.module-cache/manifest/2a1c89bcf1d4766dc10811dc8af9e6d5e5c8d669.json b/public/js/.module-cache/manifest/2a1c89bcf1d4766dc10811dc8af9e6d5e5c8d669.json new file mode 100644 index 0000000..1cb00d4 --- /dev/null +++ b/public/js/.module-cache/manifest/2a1c89bcf1d4766dc10811dc8af9e6d5e5c8d669.json @@ -0,0 +1 @@ +{".js":"2a1c89bcf1d4766dc10811dc8af9e6d5e5c8d669.js"} \ No newline at end of file diff --git a/public/js/.module-cache/manifest/2c77c19cdf0cf3bb958d4d66837ecfea8429a5d6.json b/public/js/.module-cache/manifest/2c77c19cdf0cf3bb958d4d66837ecfea8429a5d6.json new file mode 100644 index 0000000..bb61565 --- /dev/null +++ b/public/js/.module-cache/manifest/2c77c19cdf0cf3bb958d4d66837ecfea8429a5d6.json @@ -0,0 +1 @@ +{".js":"2c77c19cdf0cf3bb958d4d66837ecfea8429a5d6.js"} \ No newline at end of file diff --git a/public/js/.module-cache/manifest/2fae87380d9cbedf1f340e41a1c628ada82fd6cc.json b/public/js/.module-cache/manifest/2fae87380d9cbedf1f340e41a1c628ada82fd6cc.json new file mode 100644 index 0000000..b567f35 --- /dev/null +++ b/public/js/.module-cache/manifest/2fae87380d9cbedf1f340e41a1c628ada82fd6cc.json @@ -0,0 +1 @@ +{".js":"2fae87380d9cbedf1f340e41a1c628ada82fd6cc.js"} \ No newline at end of file diff --git a/public/js/.module-cache/manifest/310ea820901d05e2a9359da8adddc9e6cf835bbf.json b/public/js/.module-cache/manifest/310ea820901d05e2a9359da8adddc9e6cf835bbf.json new file mode 100644 index 0000000..4d955fe --- /dev/null +++ b/public/js/.module-cache/manifest/310ea820901d05e2a9359da8adddc9e6cf835bbf.json @@ -0,0 +1 @@ +{".js":"310ea820901d05e2a9359da8adddc9e6cf835bbf.js"} \ No newline at end of file diff --git a/public/js/.module-cache/manifest/34e2a72c687db357db0c445f72112ed0ad0401d8.json b/public/js/.module-cache/manifest/34e2a72c687db357db0c445f72112ed0ad0401d8.json new file mode 100644 index 0000000..49f3de3 --- /dev/null +++ b/public/js/.module-cache/manifest/34e2a72c687db357db0c445f72112ed0ad0401d8.json @@ -0,0 +1 @@ +{".js":"34e2a72c687db357db0c445f72112ed0ad0401d8.js"} \ No newline at end of file diff --git a/public/js/.module-cache/manifest/3fd71a95a716773a5542267ff559c1bac2ebd145.json b/public/js/.module-cache/manifest/3fd71a95a716773a5542267ff559c1bac2ebd145.json new file mode 100644 index 0000000..fc5deee --- /dev/null +++ b/public/js/.module-cache/manifest/3fd71a95a716773a5542267ff559c1bac2ebd145.json @@ -0,0 +1 @@ +{".js":"3fd71a95a716773a5542267ff559c1bac2ebd145.js"} \ No newline at end of file diff --git a/public/js/.module-cache/manifest/40fb7f3f70110d45ff88674c6cbfcf0466ca557c.json b/public/js/.module-cache/manifest/40fb7f3f70110d45ff88674c6cbfcf0466ca557c.json new file mode 100644 index 0000000..3b574fa --- /dev/null +++ b/public/js/.module-cache/manifest/40fb7f3f70110d45ff88674c6cbfcf0466ca557c.json @@ -0,0 +1 @@ +{".js":"40fb7f3f70110d45ff88674c6cbfcf0466ca557c.js"} \ No newline at end of file diff --git a/public/js/.module-cache/manifest/4d35c87752610737362769003ed6019e24089dea.json b/public/js/.module-cache/manifest/4d35c87752610737362769003ed6019e24089dea.json new file mode 100644 index 0000000..5140dcf --- /dev/null +++ b/public/js/.module-cache/manifest/4d35c87752610737362769003ed6019e24089dea.json @@ -0,0 +1 @@ +{".js":"4d35c87752610737362769003ed6019e24089dea.js"} \ No newline at end of file diff --git a/public/js/.module-cache/manifest/51cfd3c15651e482a0ce10069fcf434d420ad98c.json b/public/js/.module-cache/manifest/51cfd3c15651e482a0ce10069fcf434d420ad98c.json new file mode 100644 index 0000000..fe37d8b --- /dev/null +++ b/public/js/.module-cache/manifest/51cfd3c15651e482a0ce10069fcf434d420ad98c.json @@ -0,0 +1 @@ +{".js":"51cfd3c15651e482a0ce10069fcf434d420ad98c.js"} \ No newline at end of file diff --git a/public/js/.module-cache/manifest/5dd21e9811e1241f0744a7ea32beb42c2ed54fdc.json b/public/js/.module-cache/manifest/5dd21e9811e1241f0744a7ea32beb42c2ed54fdc.json new file mode 100644 index 0000000..8982248 --- /dev/null +++ b/public/js/.module-cache/manifest/5dd21e9811e1241f0744a7ea32beb42c2ed54fdc.json @@ -0,0 +1 @@ +{".js":"5dd21e9811e1241f0744a7ea32beb42c2ed54fdc.js"} \ No newline at end of file diff --git a/public/js/.module-cache/manifest/6260a333593fcc33d9027d706c015f2e705c331c.json b/public/js/.module-cache/manifest/6260a333593fcc33d9027d706c015f2e705c331c.json new file mode 100644 index 0000000..6e94362 --- /dev/null +++ b/public/js/.module-cache/manifest/6260a333593fcc33d9027d706c015f2e705c331c.json @@ -0,0 +1 @@ +{".js":"6260a333593fcc33d9027d706c015f2e705c331c.js"} \ No newline at end of file diff --git a/public/js/.module-cache/manifest/68b46e2bdadd0334fc1af6e052359eb68b503eb1.json b/public/js/.module-cache/manifest/68b46e2bdadd0334fc1af6e052359eb68b503eb1.json new file mode 100644 index 0000000..058d1d3 --- /dev/null +++ b/public/js/.module-cache/manifest/68b46e2bdadd0334fc1af6e052359eb68b503eb1.json @@ -0,0 +1 @@ +{".js":"68b46e2bdadd0334fc1af6e052359eb68b503eb1.js"} \ No newline at end of file diff --git a/public/js/.module-cache/manifest/7be73b3106cc6f137224bab56add0f7977a5b99d.json b/public/js/.module-cache/manifest/7be73b3106cc6f137224bab56add0f7977a5b99d.json new file mode 100644 index 0000000..48247d8 --- /dev/null +++ b/public/js/.module-cache/manifest/7be73b3106cc6f137224bab56add0f7977a5b99d.json @@ -0,0 +1 @@ +{".js":"7be73b3106cc6f137224bab56add0f7977a5b99d.js"} \ No newline at end of file diff --git a/public/js/.module-cache/manifest/830113443f1bba72e5c4c1e2a13223670ae34242.json b/public/js/.module-cache/manifest/830113443f1bba72e5c4c1e2a13223670ae34242.json new file mode 100644 index 0000000..a000b78 --- /dev/null +++ b/public/js/.module-cache/manifest/830113443f1bba72e5c4c1e2a13223670ae34242.json @@ -0,0 +1 @@ +{".js":"830113443f1bba72e5c4c1e2a13223670ae34242.js"} \ No newline at end of file diff --git a/public/js/.module-cache/manifest/8b9451cc3a7abd2a28be5fa6626539b93402d66e.json b/public/js/.module-cache/manifest/8b9451cc3a7abd2a28be5fa6626539b93402d66e.json new file mode 100644 index 0000000..39d78fb --- /dev/null +++ b/public/js/.module-cache/manifest/8b9451cc3a7abd2a28be5fa6626539b93402d66e.json @@ -0,0 +1 @@ +{".js":"8b9451cc3a7abd2a28be5fa6626539b93402d66e.js"} \ No newline at end of file diff --git a/public/js/.module-cache/manifest/93a25a468d2afb76df9d1d8966b5dcc7fd24615e.json b/public/js/.module-cache/manifest/93a25a468d2afb76df9d1d8966b5dcc7fd24615e.json new file mode 100644 index 0000000..4d8ffec --- /dev/null +++ b/public/js/.module-cache/manifest/93a25a468d2afb76df9d1d8966b5dcc7fd24615e.json @@ -0,0 +1 @@ +{".js":"93a25a468d2afb76df9d1d8966b5dcc7fd24615e.js"} \ No newline at end of file diff --git a/public/js/.module-cache/manifest/94c16abfa314165bd1983e75b460c106a2d99b73.json b/public/js/.module-cache/manifest/94c16abfa314165bd1983e75b460c106a2d99b73.json new file mode 100644 index 0000000..3291278 --- /dev/null +++ b/public/js/.module-cache/manifest/94c16abfa314165bd1983e75b460c106a2d99b73.json @@ -0,0 +1 @@ +{".js":"94c16abfa314165bd1983e75b460c106a2d99b73.js"} \ No newline at end of file diff --git a/public/js/.module-cache/manifest/9d8ecfeafcaa8db65383a974e2453381be3612ac.json b/public/js/.module-cache/manifest/9d8ecfeafcaa8db65383a974e2453381be3612ac.json new file mode 100644 index 0000000..1dafb76 --- /dev/null +++ b/public/js/.module-cache/manifest/9d8ecfeafcaa8db65383a974e2453381be3612ac.json @@ -0,0 +1 @@ +{".js":"9d8ecfeafcaa8db65383a974e2453381be3612ac.js"} \ No newline at end of file diff --git a/public/js/.module-cache/manifest/9fb0d8b7cb67d528683cacd6ee470c2d09a977b6.json b/public/js/.module-cache/manifest/9fb0d8b7cb67d528683cacd6ee470c2d09a977b6.json new file mode 100644 index 0000000..c95e075 --- /dev/null +++ b/public/js/.module-cache/manifest/9fb0d8b7cb67d528683cacd6ee470c2d09a977b6.json @@ -0,0 +1 @@ +{".js":"9fb0d8b7cb67d528683cacd6ee470c2d09a977b6.js"} \ No newline at end of file diff --git a/public/js/.module-cache/manifest/a28d643d1ec29221f3ae842225f079fd9ffd44df.json b/public/js/.module-cache/manifest/a28d643d1ec29221f3ae842225f079fd9ffd44df.json new file mode 100644 index 0000000..b3351ce --- /dev/null +++ b/public/js/.module-cache/manifest/a28d643d1ec29221f3ae842225f079fd9ffd44df.json @@ -0,0 +1 @@ +{".js":"a28d643d1ec29221f3ae842225f079fd9ffd44df.js"} \ No newline at end of file diff --git a/public/js/.module-cache/manifest/a7fa23dd16e23ce4a104450771900f33506daba4.json b/public/js/.module-cache/manifest/a7fa23dd16e23ce4a104450771900f33506daba4.json new file mode 100644 index 0000000..866dd97 --- /dev/null +++ b/public/js/.module-cache/manifest/a7fa23dd16e23ce4a104450771900f33506daba4.json @@ -0,0 +1 @@ +{".js":"a7fa23dd16e23ce4a104450771900f33506daba4.js"} \ No newline at end of file diff --git a/public/js/.module-cache/manifest/afb9f21d4b0493b888e844b98a1ab0d4dffa3811.json b/public/js/.module-cache/manifest/afb9f21d4b0493b888e844b98a1ab0d4dffa3811.json new file mode 100644 index 0000000..51b3180 --- /dev/null +++ b/public/js/.module-cache/manifest/afb9f21d4b0493b888e844b98a1ab0d4dffa3811.json @@ -0,0 +1 @@ +{".js":"afb9f21d4b0493b888e844b98a1ab0d4dffa3811.js"} \ No newline at end of file diff --git a/public/js/.module-cache/manifest/b0020dd1109aa45c3d5802819eb39a06841576c3.json b/public/js/.module-cache/manifest/b0020dd1109aa45c3d5802819eb39a06841576c3.json new file mode 100644 index 0000000..74e5719 --- /dev/null +++ b/public/js/.module-cache/manifest/b0020dd1109aa45c3d5802819eb39a06841576c3.json @@ -0,0 +1 @@ +{".js":"b0020dd1109aa45c3d5802819eb39a06841576c3.js"} \ No newline at end of file diff --git a/public/js/.module-cache/manifest/ce88f1373c1f06ccee52908b62f8f161fb0d639c.json b/public/js/.module-cache/manifest/ce88f1373c1f06ccee52908b62f8f161fb0d639c.json new file mode 100644 index 0000000..55c33c9 --- /dev/null +++ b/public/js/.module-cache/manifest/ce88f1373c1f06ccee52908b62f8f161fb0d639c.json @@ -0,0 +1 @@ +{".js":"ce88f1373c1f06ccee52908b62f8f161fb0d639c.js"} \ No newline at end of file diff --git a/public/js/.module-cache/manifest/cf8e0d8551497ff3cf3d7b0ea18565cf0edb955d.json b/public/js/.module-cache/manifest/cf8e0d8551497ff3cf3d7b0ea18565cf0edb955d.json new file mode 100644 index 0000000..269a5bc --- /dev/null +++ b/public/js/.module-cache/manifest/cf8e0d8551497ff3cf3d7b0ea18565cf0edb955d.json @@ -0,0 +1 @@ +{".js":"cf8e0d8551497ff3cf3d7b0ea18565cf0edb955d.js"} \ No newline at end of file diff --git a/public/js/.module-cache/manifest/d48909f4009e432b2547dce2a1c564f0e21ddd46.json b/public/js/.module-cache/manifest/d48909f4009e432b2547dce2a1c564f0e21ddd46.json new file mode 100644 index 0000000..702cb62 --- /dev/null +++ b/public/js/.module-cache/manifest/d48909f4009e432b2547dce2a1c564f0e21ddd46.json @@ -0,0 +1 @@ +{".js":"d48909f4009e432b2547dce2a1c564f0e21ddd46.js"} \ No newline at end of file diff --git a/public/js/.module-cache/manifest/d79d327bc320e60fdb01101f85c02adc2b76e98f.json b/public/js/.module-cache/manifest/d79d327bc320e60fdb01101f85c02adc2b76e98f.json new file mode 100644 index 0000000..29ca05d --- /dev/null +++ b/public/js/.module-cache/manifest/d79d327bc320e60fdb01101f85c02adc2b76e98f.json @@ -0,0 +1 @@ +{".js":"d79d327bc320e60fdb01101f85c02adc2b76e98f.js"} \ No newline at end of file diff --git a/public/js/.module-cache/manifest/ddfa618fa4dfdf81625ea52e7bb9239de3744884.json b/public/js/.module-cache/manifest/ddfa618fa4dfdf81625ea52e7bb9239de3744884.json new file mode 100644 index 0000000..febb403 --- /dev/null +++ b/public/js/.module-cache/manifest/ddfa618fa4dfdf81625ea52e7bb9239de3744884.json @@ -0,0 +1 @@ +{".js":"ddfa618fa4dfdf81625ea52e7bb9239de3744884.js"} \ No newline at end of file diff --git a/public/js/.module-cache/manifest/deed142860f8fe418abdf965eed14561d915bcca.json b/public/js/.module-cache/manifest/deed142860f8fe418abdf965eed14561d915bcca.json new file mode 100644 index 0000000..253828d --- /dev/null +++ b/public/js/.module-cache/manifest/deed142860f8fe418abdf965eed14561d915bcca.json @@ -0,0 +1 @@ +{".js":"deed142860f8fe418abdf965eed14561d915bcca.js"} \ No newline at end of file diff --git a/public/js/.module-cache/manifest/def246f0d40dc81b6306e2774afdc7d57c51e331.json b/public/js/.module-cache/manifest/def246f0d40dc81b6306e2774afdc7d57c51e331.json new file mode 100644 index 0000000..b1f8bde --- /dev/null +++ b/public/js/.module-cache/manifest/def246f0d40dc81b6306e2774afdc7d57c51e331.json @@ -0,0 +1 @@ +{".js":"def246f0d40dc81b6306e2774afdc7d57c51e331.js"} \ No newline at end of file diff --git a/public/js/.module-cache/manifest/e71005362b97fa1f4fe7451d16b9fbc9439501f7.json b/public/js/.module-cache/manifest/e71005362b97fa1f4fe7451d16b9fbc9439501f7.json new file mode 100644 index 0000000..3dc37ec --- /dev/null +++ b/public/js/.module-cache/manifest/e71005362b97fa1f4fe7451d16b9fbc9439501f7.json @@ -0,0 +1 @@ +{".js":"e71005362b97fa1f4fe7451d16b9fbc9439501f7.js"} \ No newline at end of file diff --git a/public/js/app.js b/public/js/app.js index e69de29..7031260 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -0,0 +1,17 @@ +var MenuCounter = React.createClass({displayName: "MenuCounter", + componentDidMount: function () { + socket.on('gatherCount', this.updateCount) + }, + updateCount: function (data) { + this.setProps({count: data.count}); + }, + render: function () { + return ( + React.createElement("li", null, + React.createElement("a", {href: "#"}, React.createElement("i", {className: "fa fa-users fa-fw"}), " Gatherers (", this.props.count, ")") + ) + ); + } +}); + +React.render(React.createElement(MenuCounter, {count: 0}), document.getElementById('side-menu')); \ No newline at end of file diff --git a/public/js/client.js b/public/js/client.js new file mode 100644 index 0000000..b14af92 --- /dev/null +++ b/public/js/client.js @@ -0,0 +1,13 @@ +var socket = io("http://localhost:8000/"); + +socket.on("connect", function () { + console.log("Connected!"); +}); + +socket.on("reconnect", function () { + +}); + +socket.on("disconnect", function () { + +}); diff --git a/public/js/react-0.13.3.min.js b/public/js/react-0.13.3.min.js new file mode 100644 index 0000000..64aca4b --- /dev/null +++ b/public/js/react-0.13.3.min.js @@ -0,0 +1,16 @@ +/** + * React v0.13.3 + * + * Copyright 2013-2015, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + * + */ +!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.React=e()}}(function(){return function e(t,n,r){function o(a,u){if(!n[a]){if(!t[a]){var s="function"==typeof require&&require;if(!u&&s)return s(a,!0);if(i)return i(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[a]={exports:{}};t[a][0].call(c.exports,function(e){var n=t[a][1][e];return o(n?n:e)},c,c.exports,e,t,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a8&&11>=x),N=32,I=String.fromCharCode(N),T=f.topLevelTypes,P={beforeInput:{phasedRegistrationNames:{bubbled:C({onBeforeInput:null}),captured:C({onBeforeInputCapture:null})},dependencies:[T.topCompositionEnd,T.topKeyPress,T.topTextInput,T.topPaste]},compositionEnd:{phasedRegistrationNames:{bubbled:C({onCompositionEnd:null}),captured:C({onCompositionEndCapture:null})},dependencies:[T.topBlur,T.topCompositionEnd,T.topKeyDown,T.topKeyPress,T.topKeyUp,T.topMouseDown]},compositionStart:{phasedRegistrationNames:{bubbled:C({onCompositionStart:null}),captured:C({onCompositionStartCapture:null})},dependencies:[T.topBlur,T.topCompositionStart,T.topKeyDown,T.topKeyPress,T.topKeyUp,T.topMouseDown]},compositionUpdate:{phasedRegistrationNames:{bubbled:C({onCompositionUpdate:null}),captured:C({onCompositionUpdateCapture:null})},dependencies:[T.topBlur,T.topCompositionUpdate,T.topKeyDown,T.topKeyPress,T.topKeyUp,T.topMouseDown]}},R=!1,w=null,O={eventTypes:P,extractEvents:function(e,t,n,r){return[l(e,t,n,r),d(e,t,n,r)]}};t.exports=O},{139:139,15:15,20:20,21:21,22:22,91:91,95:95}],4:[function(e,t,n){"use strict";function r(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var o={boxFlex:!0,boxFlexGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0},i=["Webkit","ms","Moz","O"];Object.keys(o).forEach(function(e){i.forEach(function(t){o[r(t,e)]=o[e]})});var a={background:{backgroundImage:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundColor:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0}},u={isUnitlessNumber:o,shorthandPropertyExpansions:a};t.exports=u},{}],5:[function(e,t,n){"use strict";var r=e(4),o=e(21),i=(e(106),e(111)),a=e(131),u=e(141),s=(e(150),u(function(e){return a(e)})),l="cssFloat";o.canUseDOM&&void 0===document.documentElement.style.cssFloat&&(l="styleFloat");var c={createMarkupForStyles:function(e){var t="";for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];null!=r&&(t+=s(n)+":",t+=i(n,r)+";")}return t||null},setValueForStyles:function(e,t){var n=e.style;for(var o in t)if(t.hasOwnProperty(o)){var a=i(o,t[o]);if("float"===o&&(o=l),a)n[o]=a;else{var u=r.shorthandPropertyExpansions[o];if(u)for(var s in u)n[s]="";else n[o]=""}}}};t.exports=c},{106:106,111:111,131:131,141:141,150:150,21:21,4:4}],6:[function(e,t,n){"use strict";function r(){this._callbacks=null,this._contexts=null}var o=e(28),i=e(27),a=e(133);i(r.prototype,{enqueue:function(e,t){this._callbacks=this._callbacks||[],this._contexts=this._contexts||[],this._callbacks.push(e),this._contexts.push(t)},notifyAll:function(){var e=this._callbacks,t=this._contexts;if(e){a(e.length===t.length),this._callbacks=null,this._contexts=null;for(var n=0,r=e.length;r>n;n++)e[n].call(t[n]);e.length=0,t.length=0}},reset:function(){this._callbacks=null,this._contexts=null},destructor:function(){this.reset()}}),o.addPoolingTo(r),t.exports=r},{133:133,27:27,28:28}],7:[function(e,t,n){"use strict";function r(e){return"SELECT"===e.nodeName||"INPUT"===e.nodeName&&"file"===e.type}function o(e){var t=x.getPooled(T.change,R,e);E.accumulateTwoPhaseDispatches(t),_.batchedUpdates(i,t)}function i(e){C.enqueueEvents(e),C.processEventQueue()}function a(e,t){P=e,R=t,P.attachEvent("onchange",o)}function u(){P&&(P.detachEvent("onchange",o),P=null,R=null)}function s(e,t,n){return e===I.topChange?n:void 0}function l(e,t,n){e===I.topFocus?(u(),a(t,n)):e===I.topBlur&&u()}function c(e,t){P=e,R=t,w=e.value,O=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(P,"value",k),P.attachEvent("onpropertychange",d)}function p(){P&&(delete P.value,P.detachEvent("onpropertychange",d),P=null,R=null,w=null,O=null)}function d(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==w&&(w=t,o(e))}}function f(e,t,n){return e===I.topInput?n:void 0}function h(e,t,n){e===I.topFocus?(p(),c(t,n)):e===I.topBlur&&p()}function m(e,t,n){return e!==I.topSelectionChange&&e!==I.topKeyUp&&e!==I.topKeyDown||!P||P.value===w?void 0:(w=P.value,R)}function v(e){return"INPUT"===e.nodeName&&("checkbox"===e.type||"radio"===e.type)}function g(e,t,n){return e===I.topClick?n:void 0}var y=e(15),C=e(17),E=e(20),b=e(21),_=e(85),x=e(93),D=e(134),M=e(136),N=e(139),I=y.topLevelTypes,T={change:{phasedRegistrationNames:{bubbled:N({onChange:null}),captured:N({onChangeCapture:null})},dependencies:[I.topBlur,I.topChange,I.topClick,I.topFocus,I.topInput,I.topKeyDown,I.topKeyUp,I.topSelectionChange]}},P=null,R=null,w=null,O=null,S=!1;b.canUseDOM&&(S=D("change")&&(!("documentMode"in document)||document.documentMode>8));var A=!1;b.canUseDOM&&(A=D("input")&&(!("documentMode"in document)||document.documentMode>9));var k={get:function(){return O.get.call(this)},set:function(e){w=""+e,O.set.call(this,e)}},L={eventTypes:T,extractEvents:function(e,t,n,o){var i,a;if(r(t)?S?i=s:a=l:M(t)?A?i=f:(i=m,a=h):v(t)&&(i=g),i){var u=i(e,t,n);if(u){var c=x.getPooled(T.change,u,o);return E.accumulateTwoPhaseDispatches(c),c}}a&&a(e,t,n)}};t.exports=L},{134:134,136:136,139:139,15:15,17:17,20:20,21:21,85:85,93:93}],8:[function(e,t,n){"use strict";var r=0,o={createReactRootIndex:function(){return r++}};t.exports=o},{}],9:[function(e,t,n){"use strict";function r(e,t,n){e.insertBefore(t,e.childNodes[n]||null)}var o=e(12),i=e(70),a=e(145),u=e(133),s={dangerouslyReplaceNodeWithMarkup:o.dangerouslyReplaceNodeWithMarkup,updateTextContent:a,processUpdates:function(e,t){for(var n,s=null,l=null,c=0;ct||o.hasOverloadedBooleanValue[e]&&t===!1}var o=e(10),i=e(143),a=(e(150),{createMarkupForID:function(e){return o.ID_ATTRIBUTE_NAME+"="+i(e)},createMarkupForProperty:function(e,t){if(o.isStandardName.hasOwnProperty(e)&&o.isStandardName[e]){if(r(e,t))return"";var n=o.getAttributeName[e];return o.hasBooleanValue[e]||o.hasOverloadedBooleanValue[e]&&t===!0?n:n+"="+i(t)}return o.isCustomAttribute(e)?null==t?"":e+"="+i(t):null},setValueForProperty:function(e,t,n){if(o.isStandardName.hasOwnProperty(t)&&o.isStandardName[t]){var i=o.getMutationMethod[t];if(i)i(e,n);else if(r(t,n))this.deleteValueForProperty(e,t);else if(o.mustUseAttribute[t])e.setAttribute(o.getAttributeName[t],""+n);else{var a=o.getPropertyName[t];o.hasSideEffects[t]&&""+e[a]==""+n||(e[a]=n)}}else o.isCustomAttribute(t)&&(null==n?e.removeAttribute(t):e.setAttribute(t,""+n))},deleteValueForProperty:function(e,t){if(o.isStandardName.hasOwnProperty(t)&&o.isStandardName[t]){var n=o.getMutationMethod[t];if(n)n(e,void 0);else if(o.mustUseAttribute[t])e.removeAttribute(o.getAttributeName[t]);else{var r=o.getPropertyName[t],i=o.getDefaultValueForProperty(e.nodeName,r);o.hasSideEffects[t]&&""+e[r]===i||(e[r]=i)}}else o.isCustomAttribute(t)&&e.removeAttribute(t)}});t.exports=a},{10:10,143:143,150:150}],12:[function(e,t,n){"use strict";function r(e){return e.substring(1,e.indexOf(" "))}var o=e(21),i=e(110),a=e(112),u=e(125),s=e(133),l=/^(<[^ \/>]+)/,c="data-danger-index",p={dangerouslyRenderMarkup:function(e){s(o.canUseDOM);for(var t,n={},p=0;ps;s++){var c=u[s];if(c){var p=c.extractEvents(e,t,n,o);p&&(a=i(a,p))}}return a},enqueueEvents:function(e){e&&(l=i(l,e))},processEventQueue:function(){var e=l;l=null,a(e,c),u(!l)},__purge:function(){s={}},__getListenerBank:function(){return s}};t.exports=d},{103:103,118:118,133:133,18:18,19:19}],18:[function(e,t,n){"use strict";function r(){if(u)for(var e in s){var t=s[e],n=u.indexOf(e);if(a(n>-1),!l.plugins[n]){a(t.extractEvents),l.plugins[n]=t;var r=t.eventTypes;for(var i in r)a(o(r[i],t,i))}}}function o(e,t,n){a(!l.eventNameDispatchConfigs.hasOwnProperty(n)),l.eventNameDispatchConfigs[n]=e;var r=e.phasedRegistrationNames;if(r){for(var o in r)if(r.hasOwnProperty(o)){var u=r[o];i(u,t,n)}return!0}return e.registrationName?(i(e.registrationName,t,n),!0):!1}function i(e,t,n){a(!l.registrationNameModules[e]),l.registrationNameModules[e]=t,l.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var a=e(133),u=null,s={},l={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},injectEventPluginOrder:function(e){a(!u),u=Array.prototype.slice.call(e),r()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];s.hasOwnProperty(n)&&s[n]===o||(a(!s[n]),s[n]=o,t=!0)}t&&r()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return l.registrationNameModules[t.registrationName]||null;for(var n in t.phasedRegistrationNames)if(t.phasedRegistrationNames.hasOwnProperty(n)){var r=l.registrationNameModules[t.phasedRegistrationNames[n]];if(r)return r}return null},_resetEventPlugins:function(){u=null;for(var e in s)s.hasOwnProperty(e)&&delete s[e];l.plugins.length=0;var t=l.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var r=l.registrationNameModules;for(var o in r)r.hasOwnProperty(o)&&delete r[o]}};t.exports=l},{133:133}],19:[function(e,t,n){"use strict";function r(e){return e===v.topMouseUp||e===v.topTouchEnd||e===v.topTouchCancel}function o(e){return e===v.topMouseMove||e===v.topTouchMove}function i(e){return e===v.topMouseDown||e===v.topTouchStart}function a(e,t){var n=e._dispatchListeners,r=e._dispatchIDs;if(Array.isArray(n))for(var o=0;oe&&n[e]===o[e];e++);var a=r-e;for(t=1;a>=t&&n[r-t]===o[i-t];t++);var u=t>1?1-t:void 0;return this._fallbackText=o.slice(e,u),this._fallbackText}}),o.addPoolingTo(r),t.exports=r},{128:128,27:27,28:28}],23:[function(e,t,n){"use strict";var r,o=e(10),i=e(21),a=o.injection.MUST_USE_ATTRIBUTE,u=o.injection.MUST_USE_PROPERTY,s=o.injection.HAS_BOOLEAN_VALUE,l=o.injection.HAS_SIDE_EFFECTS,c=o.injection.HAS_NUMERIC_VALUE,p=o.injection.HAS_POSITIVE_NUMERIC_VALUE,d=o.injection.HAS_OVERLOADED_BOOLEAN_VALUE;if(i.canUseDOM){var f=document.implementation;r=f&&f.hasFeature&&f.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}var h={isCustomAttribute:RegExp.prototype.test.bind(/^(data|aria)-[a-z_][a-z\d_.\-]*$/),Properties:{accept:null,acceptCharset:null,accessKey:null,action:null,allowFullScreen:a|s,allowTransparency:a,alt:null,async:s,autoComplete:null,autoPlay:s,cellPadding:null,cellSpacing:null,charSet:a,checked:u|s,classID:a,className:r?a:u,cols:a|p,colSpan:null,content:null,contentEditable:null,contextMenu:a,controls:u|s,coords:null,crossOrigin:null,data:null,dateTime:a,defer:s,dir:null,disabled:a|s,download:d,draggable:null,encType:null,form:a,formAction:a,formEncType:a,formMethod:a,formNoValidate:s,formTarget:a,frameBorder:a,headers:null,height:a,hidden:a|s,high:null,href:null,hrefLang:null,htmlFor:null,httpEquiv:null,icon:null,id:u,label:null,lang:null,list:a,loop:u|s,low:null,manifest:a,marginHeight:null,marginWidth:null,max:null,maxLength:a,media:a,mediaGroup:null,method:null,min:null,multiple:u|s,muted:u|s,name:null,noValidate:s,open:s,optimum:null,pattern:null,placeholder:null,poster:null,preload:null,radioGroup:null,readOnly:u|s,rel:null,required:s,role:a,rows:a|p,rowSpan:null,sandbox:null,scope:null,scoped:s,scrolling:null,seamless:a|s,selected:u|s,shape:null,size:a|p,sizes:a,span:p,spellCheck:null,src:null,srcDoc:u,srcSet:a,start:c,step:null,style:null,tabIndex:null,target:null,title:null,type:null,useMap:null,value:u|l,width:a,wmode:a,autoCapitalize:null,autoCorrect:null,itemProp:a,itemScope:a|s,itemType:a,itemID:a,itemRef:a,property:null,unselectable:a},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{autoCapitalize:"autocapitalize",autoComplete:"autocomplete",autoCorrect:"autocorrect",autoFocus:"autofocus",autoPlay:"autoplay",encType:"encoding",hrefLang:"hreflang",radioGroup:"radiogroup",spellCheck:"spellcheck",srcDoc:"srcdoc",srcSet:"srcset"}};t.exports=h},{10:10,21:21}],24:[function(e,t,n){"use strict";function r(e){l(null==e.props.checkedLink||null==e.props.valueLink)}function o(e){r(e),l(null==e.props.value&&null==e.props.onChange)}function i(e){r(e),l(null==e.props.checked&&null==e.props.onChange)}function a(e){this.props.valueLink.requestChange(e.target.value)}function u(e){this.props.checkedLink.requestChange(e.target.checked)}var s=e(76),l=e(133),c={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},p={Mixin:{propTypes:{value:function(e,t,n){return!e[t]||c[e.type]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")},checked:function(e,t,n){return!e[t]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")},onChange:s.func}},getValue:function(e){return e.props.valueLink?(o(e),e.props.valueLink.value):e.props.value},getChecked:function(e){return e.props.checkedLink?(i(e),e.props.checkedLink.value):e.props.checked},getOnChange:function(e){return e.props.valueLink?(o(e),a):e.props.checkedLink?(i(e),u):e.props.onChange}};t.exports=p},{133:133,76:76}],25:[function(e,t,n){"use strict";function r(e){e.remove()}var o=e(30),i=e(103),a=e(118),u=e(133),s={trapBubbledEvent:function(e,t){u(this.isMounted());var n=this.getDOMNode();u(n);var r=o.trapBubbledEvent(e,t,n);this._localEventListeners=i(this._localEventListeners,r)},componentWillUnmount:function(){this._localEventListeners&&a(this._localEventListeners,r)}};t.exports=s},{103:103,118:118,133:133,30:30}],26:[function(e,t,n){"use strict";var r=e(15),o=e(112),i=r.topLevelTypes,a={eventTypes:null,extractEvents:function(e,t,n,r){if(e===i.topTouchStart){var a=r.target;a&&!a.onclick&&(a.onclick=o)}}};t.exports=a},{112:112,15:15}],27:[function(e,t,n){"use strict";function r(e,t){if(null==e)throw new TypeError("Object.assign target cannot be null or undefined");for(var n=Object(e),r=Object.prototype.hasOwnProperty,o=1;ol;l++){var d=u[l];i.hasOwnProperty(d)&&i[d]||(d===s.topWheel?c("wheel")?v.ReactEventListener.trapBubbledEvent(s.topWheel,"wheel",n):c("mousewheel")?v.ReactEventListener.trapBubbledEvent(s.topWheel,"mousewheel",n):v.ReactEventListener.trapBubbledEvent(s.topWheel,"DOMMouseScroll",n):d===s.topScroll?c("scroll",!0)?v.ReactEventListener.trapCapturedEvent(s.topScroll,"scroll",n):v.ReactEventListener.trapBubbledEvent(s.topScroll,"scroll",v.ReactEventListener.WINDOW_HANDLE):d===s.topFocus||d===s.topBlur?(c("focus",!0)?(v.ReactEventListener.trapCapturedEvent(s.topFocus,"focus",n),v.ReactEventListener.trapCapturedEvent(s.topBlur,"blur",n)):c("focusin")&&(v.ReactEventListener.trapBubbledEvent(s.topFocus,"focusin",n),v.ReactEventListener.trapBubbledEvent(s.topBlur,"focusout",n)),i[s.topBlur]=!0,i[s.topFocus]=!0):h.hasOwnProperty(d)&&v.ReactEventListener.trapBubbledEvent(d,h[d],n),i[d]=!0)}},trapBubbledEvent:function(e,t,n){ +return v.ReactEventListener.trapBubbledEvent(e,t,n)},trapCapturedEvent:function(e,t,n){return v.ReactEventListener.trapCapturedEvent(e,t,n)},ensureScrollValueMonitoring:function(){if(!d){var e=s.refreshScrollValues;v.ReactEventListener.monitorScrollValue(e),d=!0}},eventNameDispatchConfigs:i.eventNameDispatchConfigs,registrationNameModules:i.registrationNameModules,putListener:i.putListener,getListener:i.getListener,deleteListener:i.deleteListener,deleteAllListeners:i.deleteAllListeners});t.exports=v},{102:102,134:134,15:15,17:17,18:18,27:27,59:59}],31:[function(e,t,n){"use strict";var r=e(79),o=e(116),i=e(132),a=e(147),u={instantiateChildren:function(e,t,n){var r=o(e);for(var a in r)if(r.hasOwnProperty(a)){var u=r[a],s=i(u,null);r[a]=s}return r},updateChildren:function(e,t,n,u){var s=o(t);if(!s&&!e)return null;var l;for(l in s)if(s.hasOwnProperty(l)){var c=e&&e[l],p=c&&c._currentElement,d=s[l];if(a(p,d))r.receiveComponent(c,d,n,u),s[l]=c;else{c&&r.unmountComponent(c,l);var f=i(d,null);s[l]=f}}for(l in e)!e.hasOwnProperty(l)||s&&s.hasOwnProperty(l)||r.unmountComponent(e[l]);return s},unmountChildren:function(e){for(var t in e){var n=e[t];r.unmountComponent(n)}}};t.exports=u},{116:116,132:132,147:147,79:79}],32:[function(e,t,n){"use strict";function r(e,t){this.forEachFunction=e,this.forEachContext=t}function o(e,t,n,r){var o=e;o.forEachFunction.call(o.forEachContext,t,r)}function i(e,t,n){if(null==e)return e;var i=r.getPooled(t,n);f(e,o,i),r.release(i)}function a(e,t,n){this.mapResult=e,this.mapFunction=t,this.mapContext=n}function u(e,t,n,r){var o=e,i=o.mapResult,a=!i.hasOwnProperty(n);if(a){var u=o.mapFunction.call(o.mapContext,t,r);i[n]=u}}function s(e,t,n){if(null==e)return e;var r={},o=a.getPooled(r,t,n);return f(e,u,o),a.release(o),d.create(r)}function l(e,t,n,r){return null}function c(e,t){return f(e,l,null)}var p=e(28),d=e(61),f=e(149),h=(e(150),p.twoArgumentPooler),m=p.threeArgumentPooler;p.addPoolingTo(r,h),p.addPoolingTo(a,m);var v={forEach:i,map:s,count:c};t.exports=v},{149:149,150:150,28:28,61:61}],33:[function(e,t,n){"use strict";function r(e,t){var n=D.hasOwnProperty(t)?D[t]:null;N.hasOwnProperty(t)&&y(n===_.OVERRIDE_BASE),e.hasOwnProperty(t)&&y(n===_.DEFINE_MANY||n===_.DEFINE_MANY_MERGED)}function o(e,t){if(t){y("function"!=typeof t),y(!d.isValidElement(t));var n=e.prototype;t.hasOwnProperty(b)&&M.mixins(e,t.mixins);for(var o in t)if(t.hasOwnProperty(o)&&o!==b){var i=t[o];if(r(n,o),M.hasOwnProperty(o))M[o](e,i);else{var a=D.hasOwnProperty(o),l=n.hasOwnProperty(o),c=i&&i.__reactDontBind,p="function"==typeof i,f=p&&!a&&!l&&!c;if(f)n.__reactAutoBindMap||(n.__reactAutoBindMap={}),n.__reactAutoBindMap[o]=i,n[o]=i;else if(l){var h=D[o];y(a&&(h===_.DEFINE_MANY_MERGED||h===_.DEFINE_MANY)),h===_.DEFINE_MANY_MERGED?n[o]=u(n[o],i):h===_.DEFINE_MANY&&(n[o]=s(n[o],i))}else n[o]=i}}}}function i(e,t){if(t)for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){var o=n in M;y(!o);var i=n in e;y(!i),e[n]=r}}}function a(e,t){y(e&&t&&"object"==typeof e&&"object"==typeof t);for(var n in t)t.hasOwnProperty(n)&&(y(void 0===e[n]),e[n]=t[n]);return e}function u(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var o={};return a(o,n),a(o,r),o}}function s(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function l(e,t){var n=t.bind(e);return n}function c(e){for(var t in e.__reactAutoBindMap)if(e.__reactAutoBindMap.hasOwnProperty(t)){var n=e.__reactAutoBindMap[t];e[t]=l(e,f.guard(n,e.constructor.displayName+"."+t))}}var p=e(34),d=(e(39),e(55)),f=e(58),h=e(65),m=e(66),v=(e(75),e(74),e(84)),g=e(27),y=e(133),C=e(138),E=e(139),b=(e(150),E({mixins:null})),_=C({DEFINE_ONCE:null,DEFINE_MANY:null,OVERRIDE_BASE:null,DEFINE_MANY_MERGED:null}),x=[],D={mixins:_.DEFINE_MANY,statics:_.DEFINE_MANY,propTypes:_.DEFINE_MANY,contextTypes:_.DEFINE_MANY,childContextTypes:_.DEFINE_MANY,getDefaultProps:_.DEFINE_MANY_MERGED,getInitialState:_.DEFINE_MANY_MERGED,getChildContext:_.DEFINE_MANY_MERGED,render:_.DEFINE_ONCE,componentWillMount:_.DEFINE_MANY,componentDidMount:_.DEFINE_MANY,componentWillReceiveProps:_.DEFINE_MANY,shouldComponentUpdate:_.DEFINE_ONCE,componentWillUpdate:_.DEFINE_MANY,componentDidUpdate:_.DEFINE_MANY,componentWillUnmount:_.DEFINE_MANY,updateComponent:_.OVERRIDE_BASE},M={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n";return this._createOpenTagMarkupAndPutListeners(t)+this._createContentMarkup(t,n)+o},_createOpenTagMarkupAndPutListeners:function(e){var t=this._currentElement.props,n="<"+this._tag;for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];if(null!=i)if(b.hasOwnProperty(r))o(this._rootNodeID,r,i,e);else{r===x&&(i&&(i=this._previousStyleCopy=m({},t.style)),i=u.createMarkupForStyles(i));var a=l.createMarkupForProperty(r,i);a&&(n+=" "+a)}}if(e.renderToStaticMarkup)return n+">";var s=l.createMarkupForID(this._rootNodeID);return n+" "+s+">"},_createContentMarkup:function(e,t){var n="";("listing"===this._tag||"pre"===this._tag||"textarea"===this._tag)&&(n="\n");var r=this._currentElement.props,o=r.dangerouslySetInnerHTML;if(null!=o){if(null!=o.__html)return n+o.__html}else{var i=_[typeof r.children]?r.children:null,a=null!=i?null:r.children;if(null!=i)return n+v(i);if(null!=a){var u=this.mountChildren(a,e,t);return n+u.join("")}}return n},receiveComponent:function(e,t,n){var r=this._currentElement;this._currentElement=e,this.updateComponent(t,r,e,n)},updateComponent:function(e,t,n,o){r(this._currentElement.props),this._updateDOMProperties(t.props,e),this._updateDOMChildren(t.props,e,o)},_updateDOMProperties:function(e,t){var n,r,i,a=this._currentElement.props;for(n in e)if(!a.hasOwnProperty(n)&&e.hasOwnProperty(n))if(n===x){var u=this._previousStyleCopy;for(r in u)u.hasOwnProperty(r)&&(i=i||{},i[r]="");this._previousStyleCopy=null}else b.hasOwnProperty(n)?C(this._rootNodeID,n):(s.isStandardName[n]||s.isCustomAttribute(n))&&M.deletePropertyByID(this._rootNodeID,n);for(n in a){var l=a[n],c=n===x?this._previousStyleCopy:e[n];if(a.hasOwnProperty(n)&&l!==c)if(n===x)if(l?l=this._previousStyleCopy=m({},l):this._previousStyleCopy=null,c){for(r in c)!c.hasOwnProperty(r)||l&&l.hasOwnProperty(r)||(i=i||{},i[r]="");for(r in l)l.hasOwnProperty(r)&&c[r]!==l[r]&&(i=i||{},i[r]=l[r])}else i=l;else b.hasOwnProperty(n)?o(this._rootNodeID,n,l,t):(s.isStandardName[n]||s.isCustomAttribute(n))&&M.updatePropertyByID(this._rootNodeID,n,l)}i&&M.updateStylesByID(this._rootNodeID,i)},_updateDOMChildren:function(e,t,n){var r=this._currentElement.props,o=_[typeof e.children]?e.children:null,i=_[typeof r.children]?r.children:null,a=e.dangerouslySetInnerHTML&&e.dangerouslySetInnerHTML.__html,u=r.dangerouslySetInnerHTML&&r.dangerouslySetInnerHTML.__html,s=null!=o?null:e.children,l=null!=i?null:r.children,c=null!=o||null!=a,p=null!=i||null!=u;null!=s&&null==l?this.updateChildren(null,t,n):c&&!p&&this.updateTextContent(""),null!=i?o!==i&&this.updateTextContent(""+i):null!=u?a!==u&&M.updateInnerHTMLByID(this._rootNodeID,u):null!=l&&this.updateChildren(l,t,n)},unmountComponent:function(){this.unmountChildren(),c.deleteAllListeners(this._rootNodeID),p.unmountIDFromEnvironment(this._rootNodeID),this._rootNodeID=null}},h.measureMethods(a,"ReactDOMComponent",{mountComponent:"mountComponent",updateComponent:"updateComponent"}),m(a.prototype,a.Mixin,f.Mixin),a.injection={injectIDOperations:function(e){a.BackendIDOperations=M=e}},t.exports=a},{10:10,11:11,114:114,133:133,134:134,139:139,150:150,27:27,30:30,35:35,5:5,68:68,69:69,73:73}],43:[function(e,t,n){"use strict";var r=e(15),o=e(25),i=e(29),a=e(33),u=e(55),s=u.createFactory("form"),l=a.createClass({displayName:"ReactDOMForm",tagName:"FORM",mixins:[i,o],render:function(){return s(this.props)},componentDidMount:function(){this.trapBubbledEvent(r.topLevelTypes.topReset,"reset"),this.trapBubbledEvent(r.topLevelTypes.topSubmit,"submit")}});t.exports=l},{15:15,25:25,29:29,33:33,55:55}],44:[function(e,t,n){"use strict";var r=e(5),o=e(9),i=e(11),a=e(68),u=e(73),s=e(133),l=e(144),c={dangerouslySetInnerHTML:"`dangerouslySetInnerHTML` must be set using `updateInnerHTMLByID()`.",style:"`style` must be set using `updateStylesByID()`."},p={updatePropertyByID:function(e,t,n){var r=a.getNode(e);s(!c.hasOwnProperty(t)),null!=n?i.setValueForProperty(r,t,n):i.deleteValueForProperty(r,t)},deletePropertyByID:function(e,t,n){var r=a.getNode(e);s(!c.hasOwnProperty(t)),i.deleteValueForProperty(r,t,n)},updateStylesByID:function(e,t){var n=a.getNode(e);r.setValueForStyles(n,t)},updateInnerHTMLByID:function(e,t){var n=a.getNode(e);l(n,t)},updateTextContentByID:function(e,t){var n=a.getNode(e);o.updateTextContent(n,t)},dangerouslyReplaceNodeWithMarkupByID:function(e,t){var n=a.getNode(e);o.dangerouslyReplaceNodeWithMarkup(n,t)},dangerouslyProcessChildrenUpdates:function(e,t){for(var n=0;nl;l++){var h=s[l];if(h!==i&&h.form===i.form){var v=c.getID(h);f(v);var g=m[v];f(g),p.asap(r,g)}}}return t}});t.exports=v},{11:11,133:133,2:2,24:24,27:27,29:29,33:33,55:55,68:68,85:85}],48:[function(e,t,n){"use strict";var r=e(29),o=e(33),i=e(55),a=(e(150),i.createFactory("option")),u=o.createClass({displayName:"ReactDOMOption",tagName:"OPTION",mixins:[r],componentWillMount:function(){},render:function(){return a(this.props,this.props.children)}});t.exports=u},{150:150,29:29,33:33,55:55}],49:[function(e,t,n){"use strict";function r(){if(this._pendingUpdate){this._pendingUpdate=!1;var e=u.getValue(this);null!=e&&this.isMounted()&&i(this,e)}}function o(e,t,n){if(null==e[t])return null;if(e.multiple){if(!Array.isArray(e[t]))return new Error("The `"+t+"` prop supplied to must be a scalar value if `multiple` is false.")}function i(e,t){var n,r,o,i=e.getDOMNode().options;if(e.props.multiple){for(n={},r=0,o=t.length;o>r;r++)n[""+t[r]]=!0;for(r=0,o=i.length;o>r;r++){var a=n.hasOwnProperty(i[r].value);i[r].selected!==a&&(i[r].selected=a)}}else{for(n=""+t,r=0,o=i.length;o>r;r++)if(i[r].value===n)return void(i[r].selected=!0);i.length&&(i[0].selected=!0)}}var a=e(2),u=e(24),s=e(29),l=e(33),c=e(55),p=e(85),d=e(27),f=c.createFactory("select"),h=l.createClass({displayName:"ReactDOMSelect",tagName:"SELECT",mixins:[a,u.Mixin,s],propTypes:{defaultValue:o,value:o},render:function(){var e=d({},this.props);return e.onChange=this._handleChange,e.value=null,f(e,this.props.children)},componentWillMount:function(){this._pendingUpdate=!1},componentDidMount:function(){var e=u.getValue(this);null!=e?i(this,e):null!=this.props.defaultValue&&i(this,this.props.defaultValue)},componentDidUpdate:function(e){var t=u.getValue(this);null!=t?(this._pendingUpdate=!1,i(this,t)):!e.multiple!=!this.props.multiple&&(null!=this.props.defaultValue?i(this,this.props.defaultValue):i(this,this.props.multiple?[]:""))},_handleChange:function(e){var t,n=u.getOnChange(this);return n&&(t=n.call(this,e)),this._pendingUpdate=!0,p.asap(r,this),t}});t.exports=h},{2:2,24:24,27:27,29:29,33:33,55:55,85:85}],50:[function(e,t,n){"use strict";function r(e,t,n,r){return e===n&&t===r}function o(e){var t=document.selection,n=t.createRange(),r=n.text.length,o=n.duplicate();o.moveToElementText(e),o.setEndPoint("EndToStart",n);var i=o.text.length,a=i+r;return{start:i,end:a}}function i(e){var t=window.getSelection&&window.getSelection();if(!t||0===t.rangeCount)return null;var n=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,u=t.getRangeAt(0),s=r(t.anchorNode,t.anchorOffset,t.focusNode,t.focusOffset),l=s?0:u.toString().length,c=u.cloneRange();c.selectNodeContents(e),c.setEnd(u.startContainer,u.startOffset);var p=r(c.startContainer,c.startOffset,c.endContainer,c.endOffset),d=p?0:c.toString().length,f=d+l,h=document.createRange();h.setStart(n,o),h.setEnd(i,a);var m=h.collapsed;return{start:m?f:d,end:m?d:f}}function a(e,t){var n,r,o=document.selection.createRange().duplicate();"undefined"==typeof t.end?(n=t.start,r=n):t.start>t.end?(n=t.end,r=t.start):(n=t.start,r=t.end),o.moveToElementText(e),o.moveStart("character",n),o.setEndPoint("EndToStart",o),o.moveEnd("character",r-n),o.select()}function u(e,t){if(window.getSelection){var n=window.getSelection(),r=e[c()].length,o=Math.min(t.start,r),i="undefined"==typeof t.end?o:Math.min(t.end,r);if(!n.extend&&o>i){var a=i;i=o,o=a}var u=l(e,o),s=l(e,i);if(u&&s){var p=document.createRange();p.setStart(u.node,u.offset),n.removeAllRanges(),o>i?(n.addRange(p),n.extend(s.node,s.offset)):(p.setEnd(s.node,s.offset),n.addRange(p))}}}var s=e(21),l=e(126),c=e(128),p=s.canUseDOM&&"selection"in document&&!("getSelection"in window),d={getOffsets:p?o:i,setOffsets:p?a:u};t.exports=d},{126:126,128:128,21:21}],51:[function(e,t,n){"use strict";var r=e(11),o=e(35),i=e(42),a=e(27),u=e(114),s=function(e){};a(s.prototype,{construct:function(e){this._currentElement=e,this._stringText=""+e,this._rootNodeID=null,this._mountIndex=0},mountComponent:function(e,t,n){this._rootNodeID=e;var o=u(this._stringText);return t.renderToStaticMarkup?o:""+o+""},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;n!==this._stringText&&(this._stringText=n,i.BackendIDOperations.updateTextContentByID(this._rootNodeID,n))}},unmountComponent:function(){o.unmountIDFromEnvironment(this._rootNodeID)}}),t.exports=s},{11:11,114:114,27:27,35:35,42:42}],52:[function(e,t,n){"use strict";function r(){this.isMounted()&&this.forceUpdate()}var o=e(2),i=e(11),a=e(24),u=e(29),s=e(33),l=e(55),c=e(85),p=e(27),d=e(133),f=(e(150),l.createFactory("textarea")),h=s.createClass({displayName:"ReactDOMTextarea",tagName:"TEXTAREA",mixins:[o,a.Mixin,u],getInitialState:function(){var e=this.props.defaultValue,t=this.props.children;null!=t&&(d(null==e),Array.isArray(t)&&(d(t.length<=1),t=t[0]),e=""+t),null==e&&(e="");var n=a.getValue(this);return{initialValue:""+(null!=n?n:e)}},render:function(){var e=p({},this.props);return d(null==e.dangerouslySetInnerHTML),e.defaultValue=null,e.value=null,e.onChange=this._handleChange,f(e,this.state.initialValue)},componentDidUpdate:function(e,t,n){var r=a.getValue(this);if(null!=r){var o=this.getDOMNode();i.setValueForProperty(o,"value",""+r)}},_handleChange:function(e){var t,n=a.getOnChange(this);return n&&(t=n.call(this,e)),c.asap(r,this),t}});t.exports=h},{11:11,133:133,150:150,2:2,24:24,27:27,29:29,33:33,55:55,85:85}],53:[function(e,t,n){"use strict";function r(){this.reinitializeTransaction()}var o=e(85),i=e(101),a=e(27),u=e(112),s={initialize:u,close:function(){d.isBatchingUpdates=!1}},l={initialize:u,close:o.flushBatchedUpdates.bind(o)},c=[l,s];a(r.prototype,i.Mixin,{getTransactionWrappers:function(){return c}});var p=new r,d={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,r,o){var i=d.isBatchingUpdates;d.isBatchingUpdates=!0,i?e(t,n,r,o):p.perform(e,null,t,n,r,o)}};t.exports=d},{101:101,112:112,27:27,85:85}],54:[function(e,t,n){"use strict";function r(e){return h.createClass({tagName:e.toUpperCase(),render:function(){return new T(e,null,null,null,null,this.props)}})}function o(){R.EventEmitter.injectReactEventListener(P),R.EventPluginHub.injectEventPluginOrder(s),R.EventPluginHub.injectInstanceHandle(w),R.EventPluginHub.injectMount(O),R.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:L,EnterLeaveEventPlugin:l,ChangeEventPlugin:a,MobileSafariClickEventPlugin:d,SelectEventPlugin:A,BeforeInputEventPlugin:i}),R.NativeComponent.injectGenericComponentClass(g),R.NativeComponent.injectTextComponentClass(I),R.NativeComponent.injectAutoWrapper(r),R.Class.injectMixin(f),R.NativeComponent.injectComponentClasses({button:y,form:C,iframe:_,img:E,input:x,option:D,select:M,textarea:N,html:F("html"),head:F("head"),body:F("body")}),R.DOMProperty.injectDOMPropertyConfig(p),R.DOMProperty.injectDOMPropertyConfig(U),R.EmptyComponent.injectEmptyComponent("noscript"),R.Updates.injectReconcileTransaction(S),R.Updates.injectBatchingStrategy(v),R.RootIndex.injectCreateReactRootIndex(c.canUseDOM?u.createReactRootIndex:k.createReactRootIndex),R.Component.injectEnvironment(m),R.DOMComponent.injectIDOperations(b)}var i=e(3),a=e(7),u=e(8),s=e(13),l=e(14),c=e(21),p=e(23),d=e(26),f=e(29),h=e(33),m=e(35),v=e(53),g=e(42),y=e(41),C=e(43),E=e(46),b=e(44),_=e(45),x=e(47),D=e(48),M=e(49),N=e(52),I=e(51),T=e(55),P=e(60),R=e(62),w=e(64),O=e(68),S=e(78),A=e(87),k=e(88),L=e(89),U=e(86),F=e(109); + +t.exports={inject:o}},{109:109,13:13,14:14,21:21,23:23,26:26,29:29,3:3,33:33,35:35,41:41,42:42,43:43,44:44,45:45,46:46,47:47,48:48,49:49,51:51,52:52,53:53,55:55,60:60,62:62,64:64,68:68,7:7,78:78,8:8,86:86,87:87,88:88,89:89}],55:[function(e,t,n){"use strict";var r=e(38),o=e(39),i=e(27),a=(e(150),{key:!0,ref:!0}),u=function(e,t,n,r,o,i){this.type=e,this.key=t,this.ref=n,this._owner=r,this._context=o,this.props=i};u.prototype={_isReactElement:!0},u.createElement=function(e,t,n){var i,s={},l=null,c=null;if(null!=t){c=void 0===t.ref?null:t.ref,l=void 0===t.key?null:""+t.key;for(i in t)t.hasOwnProperty(i)&&!a.hasOwnProperty(i)&&(s[i]=t[i])}var p=arguments.length-2;if(1===p)s.children=n;else if(p>1){for(var d=Array(p),f=0;p>f;f++)d[f]=arguments[f+2];s.children=d}if(e&&e.defaultProps){var h=e.defaultProps;for(i in h)"undefined"==typeof s[i]&&(s[i]=h[i])}return new u(e,l,c,o.current,r.current,s)},u.createFactory=function(e){var t=u.createElement.bind(null,e);return t.type=e,t},u.cloneAndReplaceProps=function(e,t){var n=new u(e.type,e.key,e.ref,e._owner,e._context,t);return n},u.cloneElement=function(e,t,n){var r,s=i({},e.props),l=e.key,c=e.ref,p=e._owner;if(null!=t){void 0!==t.ref&&(c=t.ref,p=o.current),void 0!==t.key&&(l=""+t.key);for(r in t)t.hasOwnProperty(r)&&!a.hasOwnProperty(r)&&(s[r]=t[r])}var d=arguments.length-2;if(1===d)s.children=n;else if(d>1){for(var f=Array(d),h=0;d>h;h++)f[h]=arguments[h+2];s.children=f}return new u(e.type,l,c,p,e._context,s)},u.isValidElement=function(e){var t=!(!e||!e._isReactElement);return t},t.exports=u},{150:150,27:27,38:38,39:39}],56:[function(e,t,n){"use strict";function r(){if(y.current){var e=y.current.getName();if(e)return" Check the render method of `"+e+"`."}return""}function o(e){var t=e&&e.getPublicInstance();if(!t)return void 0;var n=t.constructor;return n?n.displayName||n.name||void 0:void 0}function i(){var e=y.current;return e&&o(e)||void 0}function a(e,t){e._store.validated||null!=e.key||(e._store.validated=!0,s('Each child in an array or iterator should have a unique "key" prop.',e,t))}function u(e,t,n){D.test(e)&&s("Child objects should have non-numeric keys so ordering is preserved.",t,n)}function s(e,t,n){var r=i(),a="string"==typeof n?n:n.displayName||n.name,u=r||a,s=_[e]||(_[e]={});if(!s.hasOwnProperty(u)){s[u]=!0;var l="";if(t&&t._owner&&t._owner!==y.current){var c=o(t._owner);l=" It was passed a child from "+c+"."}}}function l(e,t){if(Array.isArray(e))for(var n=0;n");var u="";o&&(u=" The element was created by "+o+".")}}function d(e,t){return e!==e?t!==t:0===e&&0===t?1/e===1/t:e===t}function f(e){if(e._store){var t=e._store.originalProps,n=e.props;for(var r in n)n.hasOwnProperty(r)&&(t.hasOwnProperty(r)&&d(t[r],n[r])||(p(r,e),t[r]=n[r]))}}function h(e){if(null!=e.type){var t=C.getComponentClassForElement(e),n=t.displayName||t.name;t.propTypes&&c(n,t.propTypes,e.props,g.prop),"function"==typeof t.getDefaultProps}}var m=e(55),v=e(61),g=e(75),y=(e(74),e(39)),C=e(71),E=e(124),b=e(133),_=(e(150),{}),x={},D=/^\d+$/,M={},N={checkAndWarnForMutatedProps:f,createElement:function(e,t,n){var r=m.createElement.apply(this,arguments);if(null==r)return r;for(var o=2;oo;o++){t=e.ancestors[o];var a=p.getID(t)||"";v._handleTopLevel(e.topLevelType,t,a,e.nativeEvent)}}function a(e){var t=m(window);e(t)}var u=e(16),s=e(21),l=e(28),c=e(64),p=e(68),d=e(85),f=e(27),h=e(123),m=e(129);f(o.prototype,{destructor:function(){this.topLevelType=null,this.nativeEvent=null,this.ancestors.length=0}}),l.addPoolingTo(o,l.twoArgumentPooler);var v={_enabled:!0,_handleTopLevel:null,WINDOW_HANDLE:s.canUseDOM?window:null,setHandleTopLevel:function(e){v._handleTopLevel=e},setEnabled:function(e){v._enabled=!!e},isEnabled:function(){return v._enabled},trapBubbledEvent:function(e,t,n){var r=n;return r?u.listen(r,t,v.dispatchEvent.bind(null,e)):null},trapCapturedEvent:function(e,t,n){var r=n;return r?u.capture(r,t,v.dispatchEvent.bind(null,e)):null},monitorScrollValue:function(e){var t=a.bind(null,e);u.listen(window,"scroll",t)},dispatchEvent:function(e,t){if(v._enabled){var n=o.getPooled(e,t);try{d.batchedUpdates(i,n)}finally{o.release(n)}}}};t.exports=v},{123:123,129:129,16:16,21:21,27:27,28:28,64:64,68:68,85:85}],61:[function(e,t,n){"use strict";var r=(e(55),e(150),{create:function(e){return e},extract:function(e){return e},extractIfFragment:function(e){return e}});t.exports=r},{150:150,55:55}],62:[function(e,t,n){"use strict";var r=e(10),o=e(17),i=e(36),a=e(33),u=e(57),s=e(30),l=e(71),c=e(42),p=e(73),d=e(81),f=e(85),h={Component:i.injection,Class:a.injection,DOMComponent:c.injection,DOMProperty:r.injection,EmptyComponent:u.injection,EventPluginHub:o.injection,EventEmitter:s.injection,NativeComponent:l.injection,Perf:p.injection,RootIndex:d.injection,Updates:f.injection};t.exports=h},{10:10,17:17,30:30,33:33,36:36,42:42,57:57,71:71,73:73,81:81,85:85}],63:[function(e,t,n){"use strict";function r(e){return i(document.documentElement,e)}var o=e(50),i=e(107),a=e(117),u=e(119),s={hasSelectionCapabilities:function(e){return e&&("INPUT"===e.nodeName&&"text"===e.type||"TEXTAREA"===e.nodeName||"true"===e.contentEditable)},getSelectionInformation:function(){var e=u();return{focusedElem:e,selectionRange:s.hasSelectionCapabilities(e)?s.getSelection(e):null}},restoreSelection:function(e){var t=u(),n=e.focusedElem,o=e.selectionRange;t!==n&&r(n)&&(s.hasSelectionCapabilities(n)&&s.setSelection(n,o),a(n))},getSelection:function(e){var t;if("selectionStart"in e)t={start:e.selectionStart,end:e.selectionEnd};else if(document.selection&&"INPUT"===e.nodeName){var n=document.selection.createRange();n.parentElement()===e&&(t={start:-n.moveStart("character",-e.value.length),end:-n.moveEnd("character",-e.value.length)})}else t=o.getOffsets(e);return t||{start:0,end:0}},setSelection:function(e,t){var n=t.start,r=t.end;if("undefined"==typeof r&&(r=n),"selectionStart"in e)e.selectionStart=n,e.selectionEnd=Math.min(r,e.value.length);else if(document.selection&&"INPUT"===e.nodeName){var i=e.createTextRange();i.collapse(!0),i.moveStart("character",n),i.moveEnd("character",r-n),i.select()}else o.setOffsets(e,t)}};t.exports=s},{107:107,117:117,119:119,50:50}],64:[function(e,t,n){"use strict";function r(e){return f+e.toString(36)}function o(e,t){return e.charAt(t)===f||t===e.length}function i(e){return""===e||e.charAt(0)===f&&e.charAt(e.length-1)!==f}function a(e,t){return 0===t.indexOf(e)&&o(t,e.length)}function u(e){return e?e.substr(0,e.lastIndexOf(f)):""}function s(e,t){if(d(i(e)&&i(t)),d(a(e,t)),e===t)return e;var n,r=e.length+h;for(n=r;n=a;a++)if(o(e,a)&&o(t,a))r=a;else if(e.charAt(a)!==t.charAt(a))break;var u=e.substr(0,r);return d(i(u)),u}function c(e,t,n,r,o,i){e=e||"",t=t||"",d(e!==t);var l=a(t,e);d(l||a(e,t));for(var c=0,p=l?u:s,f=e;;f=p(f,t)){var h;if(o&&f===e||i&&f===t||(h=n(f,l,r)),h===!1||f===t)break;d(c++1){var t=e.indexOf(f,1);return t>-1?e.substr(0,t):e}return null},traverseEnterLeave:function(e,t,n,r,o){var i=l(e,t);i!==e&&c(e,i,n,r,!1,!0),i!==t&&c(i,t,n,o,!0,!1)},traverseTwoPhase:function(e,t,n){e&&(c("",e,t,n,!0,!1),c(e,"",t,n,!1,!0))},traverseAncestors:function(e,t,n){c("",e,t,n,!0,!1)},_getFirstCommonAncestorID:l,_getNextDescendantID:s,isAncestorIDOf:a,SEPARATOR:f};t.exports=v},{133:133,81:81}],65:[function(e,t,n){"use strict";var r={remove:function(e){e._reactInternalInstance=void 0},get:function(e){return e._reactInternalInstance},has:function(e){return void 0!==e._reactInternalInstance},set:function(e,t){e._reactInternalInstance=t}};t.exports=r},{}],66:[function(e,t,n){"use strict";var r={currentlyMountingInstance:null,currentlyUnmountingInstance:null};t.exports=r},{}],67:[function(e,t,n){"use strict";var r=e(104),o={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=r(e);return e.replace(">"," "+o.CHECKSUM_ATTR_NAME+'="'+t+'">')},canReuseMarkup:function(e,t){var n=t.getAttribute(o.CHECKSUM_ATTR_NAME);n=n&&parseInt(n,10);var i=r(e);return i===n}};t.exports=o},{104:104}],68:[function(e,t,n){"use strict";function r(e,t){for(var n=Math.min(e.length,t.length),r=0;n>r;r++)if(e.charAt(r)!==t.charAt(r))return r;return e.length===t.length?-1:n}function o(e){var t=P(e);return t&&K.getID(t)}function i(e){var t=a(e);if(t)if(L.hasOwnProperty(t)){var n=L[t];n!==e&&(w(!c(n,t)),L[t]=e)}else L[t]=e;return t}function a(e){return e&&e.getAttribute&&e.getAttribute(k)||""}function u(e,t){var n=a(e);n!==t&&delete L[n],e.setAttribute(k,t),L[t]=e}function s(e){return L.hasOwnProperty(e)&&c(L[e],e)||(L[e]=K.findReactNodeByID(e)),L[e]}function l(e){var t=b.get(e)._rootNodeID;return C.isNullComponentID(t)?null:(L.hasOwnProperty(t)&&c(L[t],t)||(L[t]=K.findReactNodeByID(t)),L[t])}function c(e,t){if(e){w(a(e)===t);var n=K.findReactContainerForID(t);if(n&&T(n,e))return!0}return!1}function p(e){delete L[e]}function d(e){var t=L[e];return t&&c(t,e)?void(W=t):!1}function f(e){W=null,E.traverseAncestors(e,d);var t=W;return W=null,t}function h(e,t,n,r,o){var i=D.mountComponent(e,t,r,I);e._isTopLevel=!0,K._mountImageIntoNode(i,n,o)}function m(e,t,n,r){var o=N.ReactReconcileTransaction.getPooled();o.perform(h,null,e,t,n,o,r),N.ReactReconcileTransaction.release(o)}var v=e(10),g=e(30),y=(e(39),e(55)),C=(e(56),e(57)),E=e(64),b=e(65),_=e(67),x=e(73),D=e(79),M=e(84),N=e(85),I=e(113),T=e(107),P=e(127),R=e(132),w=e(133),O=e(144),S=e(147),A=(e(150),E.SEPARATOR),k=v.ID_ATTRIBUTE_NAME,L={},U=1,F=9,B={},V={},j=[],W=null,K={_instancesByReactRootID:B,scrollMonitor:function(e,t){t()},_updateRootComponent:function(e,t,n,r){return K.scrollMonitor(n,function(){M.enqueueElementInternal(e,t),r&&M.enqueueCallbackInternal(e,r)}),e},_registerComponent:function(e,t){w(t&&(t.nodeType===U||t.nodeType===F)),g.ensureScrollValueMonitoring();var n=K.registerContainer(t);return B[n]=e,n},_renderNewRootComponent:function(e,t,n){var r=R(e,null),o=K._registerComponent(r,t);return N.batchedUpdates(m,r,o,t,n),r},render:function(e,t,n){w(y.isValidElement(e));var r=B[o(t)];if(r){var i=r._currentElement;if(S(i,e))return K._updateRootComponent(r,e,t,n).getPublicInstance();K.unmountComponentAtNode(t)}var a=P(t),u=a&&K.isRenderedByReact(a),s=u&&!r,l=K._renderNewRootComponent(e,t,s).getPublicInstance();return n&&n.call(l),l},constructAndRenderComponent:function(e,t,n){var r=y.createElement(e,t);return K.render(r,n)},constructAndRenderComponentByID:function(e,t,n){var r=document.getElementById(n);return w(r),K.constructAndRenderComponent(e,t,r)},registerContainer:function(e){var t=o(e);return t&&(t=E.getReactRootIDFromNodeID(t)),t||(t=E.createReactRootID()),V[t]=e,t},unmountComponentAtNode:function(e){w(e&&(e.nodeType===U||e.nodeType===F));var t=o(e),n=B[t];return n?(K.unmountComponentFromNode(n,e),delete B[t],delete V[t],!0):!1},unmountComponentFromNode:function(e,t){for(D.unmountComponent(e),t.nodeType===F&&(t=t.documentElement);t.lastChild;)t.removeChild(t.lastChild)},findReactContainerForID:function(e){var t=E.getReactRootIDFromNodeID(e),n=V[t];return n},findReactNodeByID:function(e){var t=K.findReactContainerForID(e);return K.findComponentRoot(t,e)},isRenderedByReact:function(e){if(1!==e.nodeType)return!1;var t=K.getID(e);return t?t.charAt(0)===A:!1},getFirstReactDOM:function(e){for(var t=e;t&&t.parentNode!==t;){if(K.isRenderedByReact(t))return t;t=t.parentNode}return null},findComponentRoot:function(e,t){var n=j,r=0,o=f(t)||e;for(n[0]=o.firstChild,n.length=1;r>",_=u(),x=d(),D={array:o("array"),bool:o("boolean"),func:o("function"),number:o("number"),object:o("object"),string:o("string"),any:i(),arrayOf:a,element:_,instanceOf:s,node:x,objectOf:c,oneOf:l,oneOfType:p,shape:f};t.exports=D},{112:112,55:55,61:61,74:74}],77:[function(e,t,n){"use strict";function r(){this.listenersToPut=[]}var o=e(28),i=e(30),a=e(27);a(r.prototype,{enqueuePutListener:function(e,t,n){this.listenersToPut.push({rootNodeID:e,propKey:t,propValue:n})},putListeners:function(){for(var e=0;en;n++){var r=g[n],o=r._pendingCallbacks;if(r._pendingCallbacks=null,f.performUpdateIfNecessary(r,e.reconcileTransaction),o)for(var i=0;i":">","<":"<",'"':""","'":"'"},a=/[&><"']/g;t.exports=o},{}],115:[function(e,t,n){"use strict";function r(e){return null==e?null:u(e)?e:o.has(e)?i.getNodeFromInstance(e):(a(null==e.render||"function"!=typeof e.render),void a(!1))}{var o=(e(39),e(65)),i=e(68),a=e(133),u=e(135);e(150)}t.exports=r},{133:133,135:135,150:150,39:39,65:65,68:68}],116:[function(e,t,n){"use strict";function r(e,t,n){var r=e,o=!r.hasOwnProperty(n);o&&null!=t&&(r[n]=t)}function o(e){if(null==e)return e;var t={};return i(e,r,t),t}{var i=e(149);e(150)}t.exports=o},{149:149,150:150}],117:[function(e,t,n){"use strict";function r(e){try{e.focus()}catch(t){}}t.exports=r},{}],118:[function(e,t,n){"use strict";var r=function(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)};t.exports=r},{}],119:[function(e,t,n){function r(){try{return document.activeElement||document.body}catch(e){return document.body}}t.exports=r},{}],120:[function(e,t,n){"use strict";function r(e){var t,n=e.keyCode;return"charCode"in e?(t=e.charCode,0===t&&13===n&&(t=13)):t=n,t>=32||13===t?t:0}t.exports=r},{}],121:[function(e,t,n){"use strict";function r(e){if(e.key){var t=i[e.key]||e.key;if("Unidentified"!==t)return t}if("keypress"===e.type){var n=o(e);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===e.type||"keyup"===e.type?a[e.keyCode]||"Unidentified":""}var o=e(120),i={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},a={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};t.exports=r},{120:120}],122:[function(e,t,n){"use strict";function r(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var r=i[e];return r?!!n[r]:!1}function o(e){return r}var i={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};t.exports=o},{}],123:[function(e,t,n){"use strict";function r(e){var t=e.target||e.srcElement||window;return 3===t.nodeType?t.parentNode:t}t.exports=r},{}],124:[function(e,t,n){"use strict";function r(e){var t=e&&(o&&e[o]||e[i]);return"function"==typeof t?t:void 0}var o="function"==typeof Symbol&&Symbol.iterator,i="@@iterator";t.exports=r},{}],125:[function(e,t,n){function r(e){return i(!!a),d.hasOwnProperty(e)||(e="*"),u.hasOwnProperty(e)||("*"===e?a.innerHTML="":a.innerHTML="<"+e+">",u[e]=!a.firstChild),u[e]?d[e]:null}var o=e(21),i=e(133),a=o.canUseDOM?document.createElement("div"):null,u={circle:!0,clipPath:!0,defs:!0,ellipse:!0,g:!0,line:!0,linearGradient:!0,path:!0,polygon:!0,polyline:!0,radialGradient:!0,rect:!0,stop:!0,text:!0},s=[1,'"],l=[1,"","
    "],c=[3,"","
    "],p=[1,"",""],d={"*":[1,"?
    ","
    "],area:[1,"",""],col:[2,"","
    "],legend:[1,"
    ","
    "],param:[1,"",""],tr:[2,"","
    "],optgroup:s,option:s,caption:l,colgroup:l,tbody:l,tfoot:l,thead:l,td:c,th:c,circle:p,clipPath:p,defs:p,ellipse:p,g:p,line:p,linearGradient:p,path:p,polygon:p,polyline:p,radialGradient:p,rect:p,stop:p,text:p};t.exports=r},{133:133,21:21}],126:[function(e,t,n){"use strict";function r(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function o(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function i(e,t){for(var n=r(e),i=0,a=0;n;){if(3===n.nodeType){if(a=i+n.textContent.length,t>=i&&a>=t)return{node:n,offset:t-i};i=a}n=r(o(n))}}t.exports=i},{}],127:[function(e,t,n){"use strict";function r(e){return e?e.nodeType===o?e.documentElement:e.firstChild:null}var o=9;t.exports=r},{}],128:[function(e,t,n){"use strict";function r(){return!i&&o.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var o=e(21),i=null;t.exports=r},{21:21}],129:[function(e,t,n){"use strict";function r(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}t.exports=r},{}],130:[function(e,t,n){function r(e){return e.replace(o,"-$1").toLowerCase()}var o=/([A-Z])/g;t.exports=r},{}],131:[function(e,t,n){"use strict";function r(e){return o(e).replace(i,"-ms-")}var o=e(130),i=/^ms-/;t.exports=r},{130:130}],132:[function(e,t,n){"use strict";function r(e){return"function"==typeof e&&"undefined"!=typeof e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function o(e,t){var n;if((null===e||e===!1)&&(e=a.emptyElement),"object"==typeof e){var o=e;n=t===o.type&&"string"==typeof o.type?u.createInternalComponent(o):r(o.type)?new o.type(o):new c}else"string"==typeof e||"number"==typeof e?n=u.createInstanceForText(e):l(!1);return n.construct(e),n._mountIndex=0,n._mountImage=null,n}var i=e(37),a=e(57),u=e(71),s=e(27),l=e(133),c=(e(150),function(){});s(c.prototype,i.Mixin,{_instantiateReactComponent:o}),t.exports=o},{133:133,150:150,27:27,37:37,57:57,71:71}],133:[function(e,t,n){"use strict";var r=function(e,t,n,r,o,i,a,u){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,o,i,a,u],c=0;s=new Error("Invariant Violation: "+t.replace(/%s/g,function(){return l[c++]}))}throw s.framesToPop=1,s}};t.exports=r},{}],134:[function(e,t,n){"use strict";function r(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var a=document.createElement("div");a.setAttribute(n,"return;"),r="function"==typeof a[n]}return!r&&o&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var o,i=e(21);i.canUseDOM&&(o=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),t.exports=r},{21:21}],135:[function(e,t,n){function r(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}t.exports=r},{}],136:[function(e,t,n){"use strict";function r(e){return e&&("INPUT"===e.nodeName&&o[e.type]||"TEXTAREA"===e.nodeName)}var o={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};t.exports=r},{}],137:[function(e,t,n){function r(e){return o(e)&&3==e.nodeType}var o=e(135);t.exports=r},{135:135}],138:[function(e,t,n){"use strict";var r=e(133),o=function(e){var t,n={};r(e instanceof Object&&!Array.isArray(e));for(t in e)e.hasOwnProperty(t)&&(n[t]=t);return n};t.exports=o},{133:133}],139:[function(e,t,n){var r=function(e){var t;for(t in e)if(e.hasOwnProperty(t))return t;return null};t.exports=r},{}],140:[function(e,t,n){"use strict";function r(e,t,n){if(!e)return null;var r={};for(var i in e)o.call(e,i)&&(r[i]=t.call(n,e[i],i,e));return r}var o=Object.prototype.hasOwnProperty;t.exports=r},{}],141:[function(e,t,n){"use strict";function r(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}t.exports=r},{}],142:[function(e,t,n){"use strict";function r(e){return i(o.isValidElement(e)),e}var o=e(55),i=e(133);t.exports=r},{133:133,55:55}],143:[function(e,t,n){"use strict";function r(e){return'"'+o(e)+'"'}var o=e(114);t.exports=r},{114:114}],144:[function(e,t,n){"use strict";var r=e(21),o=/^[ \r\n\t\f]/,i=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,a=function(e,t){e.innerHTML=t};if("undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction&&(a=function(e,t){MSApp.execUnsafeLocalFunction(function(){e.innerHTML=t})}),r.canUseDOM){var u=document.createElement("div");u.innerHTML=" ",""===u.innerHTML&&(a=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),o.test(t)||"<"===t[0]&&i.test(t)){e.innerHTML="\ufeff"+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t})}t.exports=a},{21:21}],145:[function(e,t,n){"use strict";var r=e(21),o=e(114),i=e(144),a=function(e,t){e.textContent=t};r.canUseDOM&&("textContent"in document.documentElement||(a=function(e,t){i(e,o(t))})),t.exports=a},{114:114,144:144,21:21}],146:[function(e,t,n){"use strict";function r(e,t){if(e===t)return!0;var n;for(n in e)if(e.hasOwnProperty(n)&&(!t.hasOwnProperty(n)||e[n]!==t[n]))return!1;for(n in t)if(t.hasOwnProperty(n)&&!e.hasOwnProperty(n))return!1;return!0}t.exports=r},{}],147:[function(e,t,n){"use strict";function r(e,t){if(null!=e&&null!=t){var n=typeof e,r=typeof t;if("string"===n||"number"===n)return"string"===r||"number"===r;if("object"===r&&e.type===t.type&&e.key===t.key){var o=e._owner===t._owner;return o}}return!1}e(150);t.exports=r},{150:150}],148:[function(e,t,n){function r(e){var t=e.length;if(o(!Array.isArray(e)&&("object"==typeof e||"function"==typeof e)),o("number"==typeof t),o(0===t||t-1 in e),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(n){}for(var r=Array(t),i=0;t>i;i++)r[i]=e[i];return r}var o=e(133);t.exports=r},{133:133}],149:[function(e,t,n){"use strict";function r(e){return v[e]}function o(e,t){return e&&null!=e.key?a(e.key):t.toString(36)}function i(e){return(""+e).replace(g,r)}function a(e){return"$"+i(e)}function u(e,t,n,r,i){var s=typeof e;if(("undefined"===s||"boolean"===s)&&(e=null),null===e||"string"===s||"number"===s||l.isValidElement(e))return r(i,e,""===t?h+o(e,0):t,n),1;var p,v,g,y=0;if(Array.isArray(e))for(var C=0;C0&&!this.encoding){var pack=this.packetBuffer.shift();this.packet(pack)}};Manager.prototype.cleanup=function(){var sub;while(sub=this.subs.shift())sub.destroy();this.packetBuffer=[];this.encoding=false;this.decoder.destroy()};Manager.prototype.close=Manager.prototype.disconnect=function(){this.skipReconnect=true;this.backoff.reset();this.readyState="closed";this.engine&&this.engine.close()};Manager.prototype.onclose=function(reason){debug("close");this.cleanup();this.backoff.reset();this.readyState="closed";this.emit("close",reason);if(this._reconnection&&!this.skipReconnect){this.reconnect()}};Manager.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var self=this;if(this.backoff.attempts>=this._reconnectionAttempts){debug("reconnect failed");this.backoff.reset();this.emitAll("reconnect_failed");this.reconnecting=false}else{var delay=this.backoff.duration();debug("will wait %dms before reconnect attempt",delay);this.reconnecting=true;var timer=setTimeout(function(){if(self.skipReconnect)return;debug("attempting reconnect");self.emitAll("reconnect_attempt",self.backoff.attempts);self.emitAll("reconnecting",self.backoff.attempts);if(self.skipReconnect)return;self.open(function(err){if(err){debug("reconnect attempt error");self.reconnecting=false;self.reconnect();self.emitAll("reconnect_error",err.data)}else{debug("reconnect success");self.onreconnect()}})},delay);this.subs.push({destroy:function(){clearTimeout(timer)}})}};Manager.prototype.onreconnect=function(){var attempt=this.backoff.attempts;this.reconnecting=false;this.backoff.reset();this.updateSocketIds();this.emitAll("reconnect",attempt)}},{"./on":4,"./socket":5,"./url":6,backo2:7,"component-bind":8,"component-emitter":9,debug:10,"engine.io-client":11,indexof:42,"object-component":43,"socket.io-parser":46}],4:[function(_dereq_,module,exports){module.exports=on;function on(obj,ev,fn){obj.on(ev,fn);return{destroy:function(){obj.removeListener(ev,fn)}}}},{}],5:[function(_dereq_,module,exports){var parser=_dereq_("socket.io-parser");var Emitter=_dereq_("component-emitter");var toArray=_dereq_("to-array");var on=_dereq_("./on");var bind=_dereq_("component-bind");var debug=_dereq_("debug")("socket.io-client:socket");var hasBin=_dereq_("has-binary");module.exports=exports=Socket;var events={connect:1,connect_error:1,connect_timeout:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1};var emit=Emitter.prototype.emit;function Socket(io,nsp){this.io=io;this.nsp=nsp;this.json=this;this.ids=0;this.acks={};if(this.io.autoConnect)this.open();this.receiveBuffer=[];this.sendBuffer=[];this.connected=false;this.disconnected=true}Emitter(Socket.prototype);Socket.prototype.subEvents=function(){if(this.subs)return;var io=this.io;this.subs=[on(io,"open",bind(this,"onopen")),on(io,"packet",bind(this,"onpacket")),on(io,"close",bind(this,"onclose"))]};Socket.prototype.open=Socket.prototype.connect=function(){if(this.connected)return this;this.subEvents();this.io.open();if("open"==this.io.readyState)this.onopen();return this};Socket.prototype.send=function(){var args=toArray(arguments);args.unshift("message");this.emit.apply(this,args);return this};Socket.prototype.emit=function(ev){if(events.hasOwnProperty(ev)){emit.apply(this,arguments);return this}var args=toArray(arguments);var parserType=parser.EVENT;if(hasBin(args)){parserType=parser.BINARY_EVENT}var packet={type:parserType,data:args};if("function"==typeof args[args.length-1]){debug("emitting packet with ack id %d",this.ids);this.acks[this.ids]=args.pop();packet.id=this.ids++}if(this.connected){this.packet(packet)}else{this.sendBuffer.push(packet)}return this};Socket.prototype.packet=function(packet){packet.nsp=this.nsp;this.io.packet(packet)};Socket.prototype.onopen=function(){debug("transport is open - connecting");if("/"!=this.nsp){this.packet({type:parser.CONNECT})}};Socket.prototype.onclose=function(reason){debug("close (%s)",reason);this.connected=false;this.disconnected=true;delete this.id;this.emit("disconnect",reason)};Socket.prototype.onpacket=function(packet){if(packet.nsp!=this.nsp)return;switch(packet.type){case parser.CONNECT:this.onconnect();break;case parser.EVENT:this.onevent(packet);break;case parser.BINARY_EVENT:this.onevent(packet);break;case parser.ACK:this.onack(packet);break;case parser.BINARY_ACK:this.onack(packet);break;case parser.DISCONNECT:this.ondisconnect();break;case parser.ERROR:this.emit("error",packet.data);break}};Socket.prototype.onevent=function(packet){var args=packet.data||[];debug("emitting event %j",args);if(null!=packet.id){debug("attaching ack callback to event");args.push(this.ack(packet.id))}if(this.connected){emit.apply(this,args)}else{this.receiveBuffer.push(args)}};Socket.prototype.ack=function(id){var self=this;var sent=false;return function(){if(sent)return;sent=true;var args=toArray(arguments);debug("sending ack %j",args);var type=hasBin(args)?parser.BINARY_ACK:parser.ACK;self.packet({type:type,id:id,data:args})}};Socket.prototype.onack=function(packet){debug("calling ack %s with %j",packet.id,packet.data);var fn=this.acks[packet.id];fn.apply(this,packet.data);delete this.acks[packet.id]};Socket.prototype.onconnect=function(){this.connected=true;this.disconnected=false;this.emit("connect");this.emitBuffered()};Socket.prototype.emitBuffered=function(){var i;for(i=0;i0&&opts.jitter<=1?opts.jitter:0;this.attempts=0}Backoff.prototype.duration=function(){var ms=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var rand=Math.random();var deviation=Math.floor(rand*this.jitter*ms);ms=(Math.floor(rand*10)&1)==0?ms-deviation:ms+deviation}return Math.min(ms,this.max)|0};Backoff.prototype.reset=function(){this.attempts=0};Backoff.prototype.setMin=function(min){this.ms=min};Backoff.prototype.setMax=function(max){this.max=max};Backoff.prototype.setJitter=function(jitter){this.jitter=jitter}},{}],8:[function(_dereq_,module,exports){var slice=[].slice;module.exports=function(obj,fn){if("string"==typeof fn)fn=obj[fn];if("function"!=typeof fn)throw new Error("bind() requires a function");var args=slice.call(arguments,2);return function(){return fn.apply(obj,args.concat(slice.call(arguments)))}}},{}],9:[function(_dereq_,module,exports){module.exports=Emitter;function Emitter(obj){if(obj)return mixin(obj)}function mixin(obj){for(var key in Emitter.prototype){obj[key]=Emitter.prototype[key]}return obj}Emitter.prototype.on=Emitter.prototype.addEventListener=function(event,fn){this._callbacks=this._callbacks||{};(this._callbacks[event]=this._callbacks[event]||[]).push(fn);return this};Emitter.prototype.once=function(event,fn){var self=this;this._callbacks=this._callbacks||{};function on(){self.off(event,on);fn.apply(this,arguments)}on.fn=fn;this.on(event,on);return this};Emitter.prototype.off=Emitter.prototype.removeListener=Emitter.prototype.removeAllListeners=Emitter.prototype.removeEventListener=function(event,fn){this._callbacks=this._callbacks||{};if(0==arguments.length){this._callbacks={};return this}var callbacks=this._callbacks[event];if(!callbacks)return this;if(1==arguments.length){delete this._callbacks[event];return this}var cb;for(var i=0;i=hour)return(ms/hour).toFixed(1)+"h";if(ms>=min)return(ms/min).toFixed(1)+"m";if(ms>=sec)return(ms/sec|0)+"s";return ms+"ms"};debug.enabled=function(name){for(var i=0,len=debug.skips.length;i';iframe=document.createElement(html)}catch(e){iframe=document.createElement("iframe");iframe.name=self.iframeId;iframe.src="javascript:0"}iframe.id=self.iframeId;self.form.appendChild(iframe);self.iframe=iframe}initIframe();data=data.replace(rEscapedNewline,"\\\n");this.area.value=data.replace(rNewline,"\\n");try{this.form.submit()}catch(e){}if(this.iframe.attachEvent){this.iframe.onreadystatechange=function(){if(self.iframe.readyState=="complete"){complete()}}}else{this.iframe.onload=complete}}}).call(this,typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"./polling":18,"component-inherit":21}],17:[function(_dereq_,module,exports){(function(global){var XMLHttpRequest=_dereq_("xmlhttprequest");var Polling=_dereq_("./polling");var Emitter=_dereq_("component-emitter");var inherit=_dereq_("component-inherit");var debug=_dereq_("debug")("engine.io-client:polling-xhr");module.exports=XHR;module.exports.Request=Request;function empty(){}function XHR(opts){Polling.call(this,opts);if(global.location){var isSSL="https:"==location.protocol;var port=location.port;if(!port){port=isSSL?443:80}this.xd=opts.hostname!=global.location.hostname||port!=opts.port;this.xs=opts.secure!=isSSL}}inherit(XHR,Polling);XHR.prototype.supportsBinary=true;XHR.prototype.request=function(opts){opts=opts||{};opts.uri=this.uri();opts.xd=this.xd;opts.xs=this.xs;opts.agent=this.agent||false;opts.supportsBinary=this.supportsBinary;opts.enablesXDR=this.enablesXDR;opts.pfx=this.pfx;opts.key=this.key;opts.passphrase=this.passphrase;opts.cert=this.cert;opts.ca=this.ca;opts.ciphers=this.ciphers;opts.rejectUnauthorized=this.rejectUnauthorized;return new Request(opts)};XHR.prototype.doWrite=function(data,fn){var isBinary=typeof data!=="string"&&data!==undefined;var req=this.request({method:"POST",data:data,isBinary:isBinary});var self=this;req.on("success",fn);req.on("error",function(err){self.onError("xhr post error",err)});this.sendXhr=req};XHR.prototype.doPoll=function(){debug("xhr poll");var req=this.request();var self=this;req.on("data",function(data){self.onData(data)});req.on("error",function(err){self.onError("xhr poll error",err)});this.pollXhr=req};function Request(opts){this.method=opts.method||"GET";this.uri=opts.uri;this.xd=!!opts.xd;this.xs=!!opts.xs;this.async=false!==opts.async;this.data=undefined!=opts.data?opts.data:null;this.agent=opts.agent;this.isBinary=opts.isBinary;this.supportsBinary=opts.supportsBinary;this.enablesXDR=opts.enablesXDR;this.pfx=opts.pfx;this.key=opts.key;this.passphrase=opts.passphrase;this.cert=opts.cert;this.ca=opts.ca;this.ciphers=opts.ciphers;this.rejectUnauthorized=opts.rejectUnauthorized;this.create()}Emitter(Request.prototype);Request.prototype.create=function(){var opts={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};opts.pfx=this.pfx;opts.key=this.key;opts.passphrase=this.passphrase;opts.cert=this.cert;opts.ca=this.ca;opts.ciphers=this.ciphers;opts.rejectUnauthorized=this.rejectUnauthorized;var xhr=this.xhr=new XMLHttpRequest(opts);var self=this;try{debug("xhr open %s: %s",this.method,this.uri);xhr.open(this.method,this.uri,this.async);if(this.supportsBinary){xhr.responseType="arraybuffer"}if("POST"==this.method){try{if(this.isBinary){xhr.setRequestHeader("Content-type","application/octet-stream")}else{xhr.setRequestHeader("Content-type","text/plain;charset=UTF-8")}}catch(e){}}if("withCredentials"in xhr){xhr.withCredentials=true}if(this.hasXDR()){xhr.onload=function(){self.onLoad()};xhr.onerror=function(){self.onError(xhr.responseText)}}else{xhr.onreadystatechange=function(){if(4!=xhr.readyState)return;if(200==xhr.status||1223==xhr.status){self.onLoad()}else{setTimeout(function(){self.onError(xhr.status)},0)}}}debug("xhr data %s",this.data);xhr.send(this.data)}catch(e){setTimeout(function(){self.onError(e)},0);return}if(global.document){this.index=Request.requestsCount++;Request.requests[this.index]=this}};Request.prototype.onSuccess=function(){this.emit("success");this.cleanup()};Request.prototype.onData=function(data){this.emit("data",data);this.onSuccess()};Request.prototype.onError=function(err){this.emit("error",err);this.cleanup(true)};Request.prototype.cleanup=function(fromError){if("undefined"==typeof this.xhr||null===this.xhr){return}if(this.hasXDR()){this.xhr.onload=this.xhr.onerror=empty}else{this.xhr.onreadystatechange=empty}if(fromError){try{this.xhr.abort()}catch(e){}}if(global.document){delete Request.requests[this.index]}this.xhr=null};Request.prototype.onLoad=function(){var data;try{var contentType;try{contentType=this.xhr.getResponseHeader("Content-Type").split(";")[0]}catch(e){}if(contentType==="application/octet-stream"){data=this.xhr.response}else{if(!this.supportsBinary){data=this.xhr.responseText}else{data="ok"}}}catch(e){this.onError(e)}if(null!=data){this.onData(data)}};Request.prototype.hasXDR=function(){return"undefined"!==typeof global.XDomainRequest&&!this.xs&&this.enablesXDR};Request.prototype.abort=function(){this.cleanup()};if(global.document){Request.requestsCount=0;Request.requests={};if(global.attachEvent){global.attachEvent("onunload",unloadHandler)}else if(global.addEventListener){global.addEventListener("beforeunload",unloadHandler,false)}}function unloadHandler(){for(var i in Request.requests){if(Request.requests.hasOwnProperty(i)){Request.requests[i].abort()}}}}).call(this,typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"./polling":18,"component-emitter":9,"component-inherit":21,debug:22,xmlhttprequest:20}],18:[function(_dereq_,module,exports){var Transport=_dereq_("../transport");var parseqs=_dereq_("parseqs");var parser=_dereq_("engine.io-parser");var inherit=_dereq_("component-inherit");var debug=_dereq_("debug")("engine.io-client:polling");module.exports=Polling;var hasXHR2=function(){var XMLHttpRequest=_dereq_("xmlhttprequest");var xhr=new XMLHttpRequest({xdomain:false});return null!=xhr.responseType}();function Polling(opts){var forceBase64=opts&&opts.forceBase64;if(!hasXHR2||forceBase64){this.supportsBinary=false}Transport.call(this,opts)}inherit(Polling,Transport);Polling.prototype.name="polling";Polling.prototype.doOpen=function(){this.poll()};Polling.prototype.pause=function(onPause){var pending=0;var self=this;this.readyState="pausing";function pause(){debug("paused");self.readyState="paused";onPause()}if(this.polling||!this.writable){var total=0;if(this.polling){debug("we are currently polling - waiting to pause");total++;this.once("pollComplete",function(){debug("pre-pause polling complete");--total||pause()})}if(!this.writable){debug("we are currently writing - waiting to pause");total++;this.once("drain",function(){debug("pre-pause writing complete");--total||pause()})}}else{pause()}};Polling.prototype.poll=function(){debug("polling");this.polling=true;this.doPoll();this.emit("poll")};Polling.prototype.onData=function(data){var self=this;debug("polling got data %s",data);var callback=function(packet,index,total){if("opening"==self.readyState){self.onOpen()}if("close"==packet.type){self.onClose();return false}self.onPacket(packet)};parser.decodePayload(data,this.socket.binaryType,callback);if("closed"!=this.readyState){this.polling=false;this.emit("pollComplete");if("open"==this.readyState){this.poll()}else{debug('ignoring poll - transport state "%s"',this.readyState)}}};Polling.prototype.doClose=function(){var self=this;function close(){debug("writing close packet");self.write([{type:"close"}])}if("open"==this.readyState){debug("transport open - closing");close()}else{debug("transport not open - deferring close");this.once("open",close)}};Polling.prototype.write=function(packets){var self=this;this.writable=false;var callbackfn=function(){self.writable=true;self.emit("drain")};var self=this;parser.encodePayload(packets,this.supportsBinary,function(data){self.doWrite(data,callbackfn)})};Polling.prototype.uri=function(){var query=this.query||{};var schema=this.secure?"https":"http";var port="";if(false!==this.timestampRequests){query[this.timestampParam]=+new Date+"-"+Transport.timestamps++}if(!this.supportsBinary&&!query.sid){query.b64=1}query=parseqs.encode(query);if(this.port&&("https"==schema&&this.port!=443||"http"==schema&&this.port!=80)){port=":"+this.port}if(query.length){query="?"+query}return schema+"://"+this.hostname+port+this.path+query}},{"../transport":14,"component-inherit":21,debug:22,"engine.io-parser":25,parseqs:35,xmlhttprequest:20}],19:[function(_dereq_,module,exports){var Transport=_dereq_("../transport");var parser=_dereq_("engine.io-parser");var parseqs=_dereq_("parseqs");var inherit=_dereq_("component-inherit");var debug=_dereq_("debug")("engine.io-client:websocket");var WebSocket=_dereq_("ws");module.exports=WS;function WS(opts){var forceBase64=opts&&opts.forceBase64;if(forceBase64){this.supportsBinary=false}Transport.call(this,opts)}inherit(WS,Transport);WS.prototype.name="websocket";WS.prototype.supportsBinary=true;WS.prototype.doOpen=function(){if(!this.check()){return}var self=this;var uri=this.uri();var protocols=void 0;var opts={agent:this.agent};opts.pfx=this.pfx;opts.key=this.key;opts.passphrase=this.passphrase;opts.cert=this.cert;opts.ca=this.ca;opts.ciphers=this.ciphers;opts.rejectUnauthorized=this.rejectUnauthorized;this.ws=new WebSocket(uri,protocols,opts);if(this.ws.binaryType===undefined){this.supportsBinary=false}this.ws.binaryType="arraybuffer";this.addEventListeners()};WS.prototype.addEventListeners=function(){var self=this;this.ws.onopen=function(){self.onOpen()};this.ws.onclose=function(){self.onClose()};this.ws.onmessage=function(ev){self.onData(ev.data)};this.ws.onerror=function(e){self.onError("websocket error",e)}};if("undefined"!=typeof navigator&&/iPad|iPhone|iPod/i.test(navigator.userAgent)){WS.prototype.onData=function(data){var self=this;setTimeout(function(){Transport.prototype.onData.call(self,data)},0)}}WS.prototype.write=function(packets){var self=this;this.writable=false;for(var i=0,l=packets.length;i=31}exports.formatters.j=function(v){return JSON.stringify(v)};function formatArgs(){var args=arguments;var useColors=this.useColors;args[0]=(useColors?"%c":"")+this.namespace+(useColors?" %c":" ")+args[0]+(useColors?"%c ":" ")+"+"+exports.humanize(this.diff);if(!useColors)return args;var c="color: "+this.color;args=[args[0],c,"color: inherit"].concat(Array.prototype.slice.call(args,1));var index=0;var lastC=0;args[0].replace(/%[a-z%]/g,function(match){if("%"===match)return;index++;if("%c"===match){lastC=index}});args.splice(lastC,0,c);return args}function log(){return"object"==typeof console&&"function"==typeof console.log&&Function.prototype.apply.call(console.log,console,arguments)}function save(namespaces){try{if(null==namespaces){localStorage.removeItem("debug")}else{localStorage.debug=namespaces}}catch(e){}}function load(){var r;try{r=localStorage.debug}catch(e){}return r}exports.enable(load())},{"./debug":23}],23:[function(_dereq_,module,exports){exports=module.exports=debug;exports.coerce=coerce;exports.disable=disable;exports.enable=enable;exports.enabled=enabled;exports.humanize=_dereq_("ms");exports.names=[];exports.skips=[];exports.formatters={};var prevColor=0;var prevTime;function selectColor(){return exports.colors[prevColor++%exports.colors.length]}function debug(namespace){function disabled(){}disabled.enabled=false;function enabled(){var self=enabled;var curr=+new Date;var ms=curr-(prevTime||curr);self.diff=ms;self.prev=prevTime;self.curr=curr;prevTime=curr;if(null==self.useColors)self.useColors=exports.useColors();if(null==self.color&&self.useColors)self.color=selectColor();var args=Array.prototype.slice.call(arguments);args[0]=exports.coerce(args[0]);if("string"!==typeof args[0]){args=["%o"].concat(args)}var index=0;args[0]=args[0].replace(/%([a-z%])/g,function(match,format){if(match==="%")return match;index++;var formatter=exports.formatters[format];if("function"===typeof formatter){var val=args[index];match=formatter.call(self,val);args.splice(index,1);index--}return match});if("function"===typeof exports.formatArgs){args=exports.formatArgs.apply(self,args)}var logFn=enabled.log||exports.log||console.log.bind(console);logFn.apply(self,args)}enabled.enabled=true;var fn=exports.enabled(namespace)?enabled:disabled;fn.namespace=namespace;return fn}function enable(namespaces){exports.save(namespaces);var split=(namespaces||"").split(/[\s,]+/);var len=split.length;for(var i=0;i=d)return Math.round(ms/d)+"d";if(ms>=h)return Math.round(ms/h)+"h";if(ms>=m)return Math.round(ms/m)+"m";if(ms>=s)return Math.round(ms/s)+"s";return ms+"ms"}function long(ms){return plural(ms,d,"day")||plural(ms,h,"hour")||plural(ms,m,"minute")||plural(ms,s,"second")||ms+" ms"}function plural(ms,n,name){if(ms1){return{type:packetslist[type],data:data.substring(1)}}else{return{type:packetslist[type]}}}var asArray=new Uint8Array(data);var type=asArray[0];var rest=sliceBuffer(data,1);if(Blob&&binaryType==="blob"){rest=new Blob([rest])}return{type:packetslist[type],data:rest}};exports.decodeBase64Packet=function(msg,binaryType){var type=packetslist[msg.charAt(0)];if(!global.ArrayBuffer){return{type:type,data:{base64:true,data:msg.substr(1)}}}var data=base64encoder.decode(msg.substr(1));if(binaryType==="blob"&&Blob){data=new Blob([data])}return{type:type,data:data}};exports.encodePayload=function(packets,supportsBinary,callback){if(typeof supportsBinary=="function"){callback=supportsBinary;supportsBinary=null}var isBinary=hasBinary(packets);if(supportsBinary&&isBinary){if(Blob&&!dontSendBlobs){return exports.encodePayloadAsBlob(packets,callback)}return exports.encodePayloadAsArrayBuffer(packets,callback)}if(!packets.length){return callback("0:")}function setLengthHeader(message){return message.length+":"+message}function encodeOne(packet,doneCallback){exports.encodePacket(packet,!isBinary?false:supportsBinary,true,function(message){doneCallback(null,setLengthHeader(message))})}map(packets,encodeOne,function(err,results){return callback(results.join(""))})};function map(ary,each,done){var result=new Array(ary.length);var next=after(ary.length,done);var eachWithIndex=function(i,el,cb){each(el,function(error,msg){result[i]=msg;cb(error,result)})};for(var i=0;i0){var tailArray=new Uint8Array(bufferTail);var isString=tailArray[0]===0;var msgLength="";for(var i=1;;i++){if(tailArray[i]==255)break;if(msgLength.length>310){numberTooLong=true;break}msgLength+=tailArray[i]}if(numberTooLong)return callback(err,0,1);bufferTail=sliceBuffer(bufferTail,2+msgLength.length);msgLength=parseInt(msgLength);var msg=sliceBuffer(bufferTail,0,msgLength);if(isString){try{msg=String.fromCharCode.apply(null,new Uint8Array(msg))}catch(e){var typed=new Uint8Array(msg);msg="";for(var i=0;ibytes){end=bytes}if(start>=bytes||start>=end||bytes===0){return new ArrayBuffer(0)}var abv=new Uint8Array(arraybuffer);var result=new Uint8Array(end-start);for(var i=start,ii=0;i>2];base64+=chars[(bytes[i]&3)<<4|bytes[i+1]>>4];base64+=chars[(bytes[i+1]&15)<<2|bytes[i+2]>>6];base64+=chars[bytes[i+2]&63]}if(len%3===2){base64=base64.substring(0,base64.length-1)+"="}else if(len%3===1){base64=base64.substring(0,base64.length-2)+"=="}return base64};exports.decode=function(base64){var bufferLength=base64.length*.75,len=base64.length,i,p=0,encoded1,encoded2,encoded3,encoded4;if(base64[base64.length-1]==="="){bufferLength--;if(base64[base64.length-2]==="="){bufferLength--}}var arraybuffer=new ArrayBuffer(bufferLength),bytes=new Uint8Array(arraybuffer);for(i=0;i>4;bytes[p++]=(encoded2&15)<<4|encoded3>>2;bytes[p++]=(encoded3&3)<<6|encoded4&63}return arraybuffer}})("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")},{}],30:[function(_dereq_,module,exports){(function(global){var BlobBuilder=global.BlobBuilder||global.WebKitBlobBuilder||global.MSBlobBuilder||global.MozBlobBuilder;var blobSupported=function(){try{var b=new Blob(["hi"]);return b.size==2}catch(e){return false}}();var blobBuilderSupported=BlobBuilder&&BlobBuilder.prototype.append&&BlobBuilder.prototype.getBlob;function BlobBuilderConstructor(ary,options){options=options||{};var bb=new BlobBuilder;for(var i=0;i=55296&&value<=56319&&counter65535){value-=65536; +output+=stringFromCharCode(value>>>10&1023|55296);value=56320|value&1023}output+=stringFromCharCode(value)}return output}function createByte(codePoint,shift){return stringFromCharCode(codePoint>>shift&63|128)}function encodeCodePoint(codePoint){if((codePoint&4294967168)==0){return stringFromCharCode(codePoint)}var symbol="";if((codePoint&4294965248)==0){symbol=stringFromCharCode(codePoint>>6&31|192)}else if((codePoint&4294901760)==0){symbol=stringFromCharCode(codePoint>>12&15|224);symbol+=createByte(codePoint,6)}else if((codePoint&4292870144)==0){symbol=stringFromCharCode(codePoint>>18&7|240);symbol+=createByte(codePoint,12);symbol+=createByte(codePoint,6)}symbol+=stringFromCharCode(codePoint&63|128);return symbol}function utf8encode(string){var codePoints=ucs2decode(string);var length=codePoints.length;var index=-1;var codePoint;var byteString="";while(++index=byteCount){throw Error("Invalid byte index")}var continuationByte=byteArray[byteIndex]&255;byteIndex++;if((continuationByte&192)==128){return continuationByte&63}throw Error("Invalid continuation byte")}function decodeSymbol(){var byte1;var byte2;var byte3;var byte4;var codePoint;if(byteIndex>byteCount){throw Error("Invalid byte index")}if(byteIndex==byteCount){return false}byte1=byteArray[byteIndex]&255;byteIndex++;if((byte1&128)==0){return byte1}if((byte1&224)==192){var byte2=readContinuationByte();codePoint=(byte1&31)<<6|byte2;if(codePoint>=128){return codePoint}else{throw Error("Invalid continuation byte")}}if((byte1&240)==224){byte2=readContinuationByte();byte3=readContinuationByte();codePoint=(byte1&15)<<12|byte2<<6|byte3;if(codePoint>=2048){return codePoint}else{throw Error("Invalid continuation byte")}}if((byte1&248)==240){byte2=readContinuationByte();byte3=readContinuationByte();byte4=readContinuationByte();codePoint=(byte1&15)<<18|byte2<<12|byte3<<6|byte4;if(codePoint>=65536&&codePoint<=1114111){return codePoint}}throw Error("Invalid UTF-8 detected")}var byteArray;var byteCount;var byteIndex;function utf8decode(byteString){byteArray=ucs2decode(byteString);byteCount=byteArray.length;byteIndex=0;var codePoints=[];var tmp;while((tmp=decodeSymbol())!==false){codePoints.push(tmp)}return ucs2encode(codePoints)}var utf8={version:"2.0.0",encode:utf8encode,decode:utf8decode};if(typeof define=="function"&&typeof define.amd=="object"&&define.amd){define(function(){return utf8})}else if(freeExports&&!freeExports.nodeType){if(freeModule){freeModule.exports=utf8}else{var object={};var hasOwnProperty=object.hasOwnProperty;for(var key in utf8){hasOwnProperty.call(utf8,key)&&(freeExports[key]=utf8[key])}}}else{root.utf8=utf8}})(this)}).call(this,typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{}],34:[function(_dereq_,module,exports){(function(global){var rvalidchars=/^[\],:{}\s]*$/;var rvalidescape=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g;var rvalidtokens=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g;var rvalidbraces=/(?:^|:|,)(?:\s*\[)+/g;var rtrimLeft=/^\s+/;var rtrimRight=/\s+$/;module.exports=function parsejson(data){if("string"!=typeof data||!data){return null}data=data.replace(rtrimLeft,"").replace(rtrimRight,"");if(global.JSON&&JSON.parse){return JSON.parse(data)}if(rvalidchars.test(data.replace(rvalidescape,"@").replace(rvalidtokens,"]").replace(rvalidbraces,""))){return new Function("return "+data)()}}}).call(this,typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{}],35:[function(_dereq_,module,exports){exports.encode=function(obj){var str="";for(var i in obj){if(obj.hasOwnProperty(i)){if(str.length)str+="&";str+=encodeURIComponent(i)+"="+encodeURIComponent(obj[i])}}return str};exports.decode=function(qs){var qry={};var pairs=qs.split("&");for(var i=0,l=pairs.length;i1)))/4)-floor((year-1901+month)/100)+floor((year-1601+month)/400)}}if(!(isProperty={}.hasOwnProperty)){isProperty=function(property){var members={},constructor;if((members.__proto__=null,members.__proto__={toString:1},members).toString!=getClass){isProperty=function(property){var original=this.__proto__,result=property in(this.__proto__=null,this);this.__proto__=original;return result}}else{constructor=members.constructor;isProperty=function(property){var parent=(this.constructor||constructor).prototype;return property in this&&!(property in parent&&this[property]===parent[property])}}members=null;return isProperty.call(this,property)}}var PrimitiveTypes={"boolean":1,number:1,string:1,undefined:1};var isHostType=function(object,property){var type=typeof object[property];return type=="object"?!!object[property]:!PrimitiveTypes[type]};forEach=function(object,callback){var size=0,Properties,members,property;(Properties=function(){this.valueOf=0}).prototype.valueOf=0;members=new Properties;for(property in members){if(isProperty.call(members,property)){size++}}Properties=members=null;if(!size){members=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"];forEach=function(object,callback){var isFunction=getClass.call(object)==functionClass,property,length;var hasProperty=!isFunction&&typeof object.constructor!="function"&&isHostType(object,"hasOwnProperty")?object.hasOwnProperty:isProperty;for(property in object){if(!(isFunction&&property=="prototype")&&hasProperty.call(object,property)){callback(property)}}for(length=members.length;property=members[--length];hasProperty.call(object,property)&&callback(property));}}else if(size==2){forEach=function(object,callback){var members={},isFunction=getClass.call(object)==functionClass,property;for(property in object){if(!(isFunction&&property=="prototype")&&!isProperty.call(members,property)&&(members[property]=1)&&isProperty.call(object,property)){callback(property)}}}}else{forEach=function(object,callback){var isFunction=getClass.call(object)==functionClass,property,isConstructor;for(property in object){if(!(isFunction&&property=="prototype")&&isProperty.call(object,property)&&!(isConstructor=property==="constructor")){callback(property)}}if(isConstructor||isProperty.call(object,property="constructor")){callback(property)}}}return forEach(object,callback)};if(!has("json-stringify")){var Escapes={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"};var leadingZeroes="000000";var toPaddedString=function(width,value){return(leadingZeroes+(value||0)).slice(-width)};var unicodePrefix="\\u00";var quote=function(value){var result='"',index=0,length=value.length,isLarge=length>10&&charIndexBuggy,symbols;if(isLarge){symbols=value.split("")}for(;index-1/0&&value<1/0){if(getDay){date=floor(value/864e5);for(year=floor(date/365.2425)+1970-1;getDay(year+1,0)<=date;year++);for(month=floor((date-getDay(year,0))/30.42);getDay(year,month+1)<=date;month++);date=1+date-getDay(year,month);time=(value%864e5+864e5)%864e5;hours=floor(time/36e5)%24;minutes=floor(time/6e4)%60;seconds=floor(time/1e3)%60;milliseconds=time%1e3}else{year=value.getUTCFullYear();month=value.getUTCMonth();date=value.getUTCDate();hours=value.getUTCHours();minutes=value.getUTCMinutes();seconds=value.getUTCSeconds();milliseconds=value.getUTCMilliseconds()}value=(year<=0||year>=1e4?(year<0?"-":"+")+toPaddedString(6,year<0?-year:year):toPaddedString(4,year))+"-"+toPaddedString(2,month+1)+"-"+toPaddedString(2,date)+"T"+toPaddedString(2,hours)+":"+toPaddedString(2,minutes)+":"+toPaddedString(2,seconds)+"."+toPaddedString(3,milliseconds)+"Z"}else{value=null}}else if(typeof value.toJSON=="function"&&(className!=numberClass&&className!=stringClass&&className!=arrayClass||isProperty.call(value,"toJSON"))){value=value.toJSON(property)}}if(callback){value=callback.call(object,property,value)}if(value===null){return"null"}className=getClass.call(value);if(className==booleanClass){return""+value}else if(className==numberClass){return value>-1/0&&value<1/0?""+value:"null"}else if(className==stringClass){return quote(""+value)}if(typeof value=="object"){for(length=stack.length;length--;){if(stack[length]===value){throw TypeError()}}stack.push(value);results=[];prefix=indentation;indentation+=whitespace;if(className==arrayClass){for(index=0,length=value.length;index0){for(whitespace="",width>10&&(width=10);whitespace.length=48&&charCode<=57||charCode>=97&&charCode<=102||charCode>=65&&charCode<=70)){abort()}}value+=fromCharCode("0x"+source.slice(begin,Index));break;default:abort()}}else{if(charCode==34){break}charCode=source.charCodeAt(Index);begin=Index;while(charCode>=32&&charCode!=92&&charCode!=34){charCode=source.charCodeAt(++Index)}value+=source.slice(begin,Index)}}if(source.charCodeAt(Index)==34){Index++;return value}abort();default:begin=Index;if(charCode==45){isSigned=true;charCode=source.charCodeAt(++Index)}if(charCode>=48&&charCode<=57){if(charCode==48&&(charCode=source.charCodeAt(Index+1),charCode>=48&&charCode<=57)){abort()}isSigned=false;for(;Index=48&&charCode<=57);Index++);if(source.charCodeAt(Index)==46){position=++Index;for(;position=48&&charCode<=57);position++);if(position==Index){abort()}Index=position}charCode=source.charCodeAt(Index);if(charCode==101||charCode==69){charCode=source.charCodeAt(++Index);if(charCode==43||charCode==45){Index++}for(position=Index;position=48&&charCode<=57);position++);if(position==Index){abort()}Index=position}return+source.slice(begin,Index)}if(isSigned){abort()}if(source.slice(Index,Index+4)=="true"){Index+=4;return true}else if(source.slice(Index,Index+5)=="false"){Index+=5;return false}else if(source.slice(Index,Index+4)=="null"){Index+=4;return null}abort()}}return"$"};var get=function(value){var results,hasMembers;if(value=="$"){abort()}if(typeof value=="string"){if((charIndexBuggy?value.charAt(0):value[0])=="@"){return value.slice(1)}if(value=="["){results=[];for(;;hasMembers||(hasMembers=true)){value=lex();if(value=="]"){break}if(hasMembers){if(value==","){value=lex();if(value=="]"){abort()}}else{abort()}}if(value==","){abort()}results.push(get(value))}return results}else if(value=="{"){results={};for(;;hasMembers||(hasMembers=true)){value=lex();if(value=="}"){break}if(hasMembers){if(value==","){value=lex();if(value=="}"){abort()}}else{abort()}}if(value==","||typeof value!="string"||(charIndexBuggy?value.charAt(0):value[0])!="@"||lex()!=":"){abort()}results[value.slice(1)]=get(lex())}return results}abort()}return value};var update=function(source,property,callback){var element=walk(source,property,callback);if(element===undef){delete source[property]}else{source[property]=element}};var walk=function(source,property,callback){var value=source[property],length;if(typeof value=="object"&&value){if(getClass.call(value)==arrayClass){for(length=value.length;length--;){update(value,length,callback)}}else{forEach(value,function(property){update(value,property,callback)})}}return callback.call(source,property,value)};JSON3.parse=function(source,callback){var result,value;Index=0;Source=""+source;result=get(lex());if(lex()!="$"){abort()}Index=Source=null;return callback&&getClass.call(callback)==functionClass?walk((value={},value[""]=result,value),"",callback):result}}}if(isLoader){define(function(){return JSON3})}})(this)},{}],50:[function(_dereq_,module,exports){module.exports=toArray;function toArray(list,index){var array=[];index=index||0;for(var i=index||0;i
    -
    +
    +
    +
    diff --git a/views/layouts/main.hbs b/views/layouts/main.hbs index eb7cc5a..ba1e0aa 100644 --- a/views/layouts/main.hbs +++ b/views/layouts/main.hbs @@ -5,5 +5,6 @@ {{>menu}} {{{ body }}}
    + {{>foot}} \ No newline at end of file diff --git a/views/partials/foot.hbs b/views/partials/foot.hbs new file mode 100644 index 0000000..0ba0976 --- /dev/null +++ b/views/partials/foot.hbs @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/views/partials/head.hbs b/views/partials/head.hbs index 1006671..720f8ef 100644 --- a/views/partials/head.hbs +++ b/views/partials/head.hbs @@ -13,8 +13,7 @@ - + - - + \ No newline at end of file diff --git a/views/partials/menu.hbs b/views/partials/menu.hbs index 5f6b688..01bc7e7 100644 --- a/views/partials/menu.hbs +++ b/views/partials/menu.hbs @@ -12,10 +12,14 @@