From e42d2ca9a133a90a0aceaafd1c435e000a566e69 Mon Sep 17 00:00:00 2001 From: Ethan O'Brien Date: Sat, 30 Apr 2022 00:01:21 +0000 Subject: [PATCH] remove lots of unused code --- data/emu-main.js | 18 +- data/emu-min.js | 2 +- data/emulator.js | 21898 +++++++++++++++++---------------------------- index.html | 104 +- 4 files changed, 8403 insertions(+), 13619 deletions(-) diff --git a/data/emu-main.js b/data/emu-main.js index c77716a..8950013 100644 --- a/data/emu-main.js +++ b/data/emu-main.js @@ -5,9 +5,6 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) { window.EJS_RESET_VARS.push(k); } _0x2c1832.r(_0x17edbf); - _0x2c1832(0xa2); - _0x2c1832(0x16c); - _0x2c1832(0x16d); var _0x39ca5e = { 'volume': 0.5, 'muted': false, @@ -101,7 +98,6 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) { 'tabFocus': 'ejs__tab-focus' } }, - _0x3d61f9 = _0x2c1832(0x38), _0x5127f4 = _0x2c1832(0x9d), _0x48e5ff = _0x2c1832.n(_0x5127f4), _0x406e79 = function(_0x2aa74f) { @@ -4074,7 +4070,6 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) { function gotStreams(stream) { _0xa88a13.elements.buttons.screenRecord.getElementsByClassName('ejs--74c6d4176d27e37a19d2e9e61de8f4')[0].innerHTML = _0xa88a13.localization('Stop Screen Recording'); _0xa88a13.recordData.stream = stream; - //_0xa88a13.recordData.stream.addTrack(); // TODO - find audio element _0xa88a13.recordData.recorder = new MediaRecorder(_0xa88a13.recordData.stream, options); _0xa88a13.recordData.recorder.ondataavailable = function(e) { if (e.data.size > 0) { @@ -4097,9 +4092,11 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) { _0xa88a13.recordData.started = true } _0x27f4c4.Module.pauseMainLoop(); + _0xa88a13.playing = false; alert('please check "share system audio" to have audio in the recording. We only need the audio stream so your entire screen will not be recorded'); var canvasStream = _0x27f4c4.Module.canvas.captureStream(30); var time = setTimeout(function() { + _0xa88a13.playing = true; _0x27f4c4.Module.resumeMainLoop(); }, 20000); navigator.mediaDevices.getDisplayMedia({ @@ -4114,6 +4111,7 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) { canvasStream.addTrack(audio[i]); } gotStreams(canvasStream); + _0xa88a13.playing = true; _0x27f4c4.Module.resumeMainLoop(); }) } else if (_0xa88a13.recordData.started) { //stop recording @@ -6263,19 +6261,16 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) { split1.push(split3[i]) } } - if (! path.startsWith('/') && path.split('://').length == 1 && path.split('http:').length == 1 && path.split('https:').length == 1 && path.split('file:').length == 1 && path.split('blob:').length == 1) { + if (! path.startsWith('/') && path.includes('://') && path.includes('http:') && path.includes('https:') && path.includes('file:') && path.includes('blob:')) { for (var w=0; w 0) { var split1 = function(origpath) { - var fullrequestpath = origpath - var finpath = fullrequestpath.split('/').pop() - var finalpath = fullrequestpath.substring(0, fullrequestpath.length - finpath.length) - if (origpath == '/') { + if (origpath === '/') { return '/' } else { - return finalpath + return origpath.substring(0, origpath.length - origpath.split('/').pop().length); } }(split1.join('/')).split('/'); } @@ -6580,4 +6575,3 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) { _0x3dbc76.defaults = {}; _0x17edbf.default = _0x3dbc76; } - diff --git a/data/emu-min.js b/data/emu-min.js index 9dc13c6..f6224ef 100644 --- a/data/emu-min.js +++ b/data/emu-min.js @@ -1 +1 @@ -var EJS=function(n){e=!0;var e,o={};function r(e){if(o[e])return o[e].exports;var t=o[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}return r.m=n,r.c=o,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=396)}([function(e,t,n){function p(e,t,n){var o,r,i,a=e&p.F,s=e&p.G,c=e&p.P,l=e&p.B,u=s?h:e&p.S?h[t]||(h[t]={}):(h[t]||{}).prototype,d=s?m:m[t]||(m[t]={}),f=d.prototype||(d.prototype={});for(o in n=s?t:n)r=((i=!a&&u&&void 0!==u[o])?u:n)[o],i=l&&i?v(r,h):c&&"function"==typeof r?v(Function.call,r):r,u&&b(u,o,r,e&p.U),d[o]!=r&&g(d,o,i),c&&f[o]!=r&&(f[o]=r)}var h=n(2),m=n(20),g=n(13),b=n(14),v=n(21);h.core=m,p.F=1,p.G=2,p.S=4,p.P=8,p.B=16,p.W=32,p.U=64,p.R=128,e.exports=p},function(e,t,n){var o=n(4);e.exports=function(e){if(o(e))return e;throw TypeError(e+" is not an object!")}},function(e,t){e=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var o=n(58)("wks"),r=n(36),i=n(2).Symbol,a="function"==typeof i;(e.exports=function(e){return o[e]||(o[e]=a&&i[e]||(a?i:r)("Symbol."+e))}).store=o},function(e,t,n){!function(e){"use strict";function o(){}function t(e){var t=this,n=window;this.update=o,this.requestAnimationFrame=e||n.requestAnimationFrame||n.webkitRequestAnimationFrame||n.mozRequestAnimationFrame,this.tickFunction=function(){t.update(),t.startTicker()},this.startTicker=function(){t.requestAnimationFrame.apply(n,[t.tickFunction])}}function n(){}function r(e,t){this.listener=e,this.gamepadGetter=t,this.knownGamepads=[]}function i(t){this.listener=t,window.addEventListener("gamepadconnected",function(e){t._connect(e.gamepad)}),window.addEventListener("gamepaddisconnected",function(e){t._disconnect(e.gamepad)})}function l(e){this.updateStrategy=e||new t,this.gamepads=[],this.listeners={},this.platform=a,this.deadzone=.03,this.maximizeThreshold=.97}var a={getType:function(){return"null"},isSupported:function(){return!1},update:o};t.prototype.start=function(e){this.update=e||o,this.startTicker()},n.prototype.update=o,n.prototype.start=function(e){this.update=e||o},r.factory=function(e){var t=a,n=window&&window.navigator;return n&&(void 0!==n.getGamepads?t=new r(e,function(){return n.getGamepads()}):void 0!==n.webkitGamepads?t=new r(e,function(){return n.webkitGamepads()}):void 0!==n.webkitGetGamepads&&(t=new r(e,function(){return n.webkitGetGamepads()}))),t},r.getType=function(){return"WebKit"},r.prototype.getType=function(){return r.getType()},r.prototype.isSupported=function(){return!0},r.prototype.update=function(){for(var e,t=Array.prototype.slice.call(this.gamepadGetter(),0),n=this.knownGamepads.length-1;0<=n;n--)e=this.knownGamepads[n],t.indexOf(e)<0&&(this.knownGamepads.splice(n,1),this.listener._disconnect(e));for(n=0;n"+e+""}var r=n(0),i=n(3),a=n(25),s=/"/g;e.exports=function(t,e){var n={};n[t]=e(o),r(r.P+r.F*i(function(){var e=""[t]('"');return e!==e.toLowerCase()||3n)throw T("Wrong length!");i=r/l}else i=B(t),c=new C(r=i*l);for(y(e,"_d",{b:c,o:s,l:r,e:i,v:new ae(c)});adocument.F=Object<\/script>"),e.close(),c=e.F;t--;)delete c.prototype[a[t]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(o.prototype=r(e),n=new o,o.prototype=null,n[s]=e):n=c(),void 0===t?n:i(n,t)}},function(e,t,n){var o=n(111),r=n(81).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,r)}},function(e,t,n){"use strict";var o=n(2),r=n(8),i=n(7),a=n(5)("species");e.exports=function(e){e=o[e];i&&e&&!e[a]&&r.f(e,a,{configurable:!0,get:function(){return this}})}},function(e,t){e.exports=function(e,t,n,o){if(!(e instanceof t)||void 0!==o&&o in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var d=n(21),f=n(123),p=n(94),h=n(1),m=n(9),g=n(96),b={},v={};(t=e.exports=function(e,t,n,o,r){var i,a,s,c,r=r?function(){return e}:g(e),l=d(n,o,t?2:1),u=0;if("function"!=typeof r)throw TypeError(e+" is not iterable!");if(p(r)){for(i=m(e.length);u=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|e}function p(e,t){if(d.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;var n=(e="string"!=typeof e?""+e:e).length;if(0===n)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return k(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return M(e).length;default:if(o)return k(e).length;t=(""+t).toLowerCase(),o=!0}}function t(e,t,n){var o,r=!1;if((t=void 0===t||t<0?0:t)>this.length)return"";if((n=void 0===n||n>this.length?this.length:n)<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e=e||"utf8";;)switch(e){case"hex":var i=this,a=t,s=n,c=i.length;(!s||s<0||c=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof t&&(t=d.from(t,o)),d.isBuffer(t))return 0===t.length?-1:m(e,t,n,o,r);if("number"==typeof t)return t&=255,d.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?(r?Uint8Array.prototype.indexOf:Uint8Array.prototype.lastIndexOf).call(e,t,n):m(e,[t],n,o,r);throw new TypeError("val must be string, number or Buffer")}function m(e,t,n,o,r){var i=1,a=e.length,s=t.length;if(void 0!==o&&("ucs2"===(o=String(o).toLowerCase())||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)){if(e.length<2||t.length<2)return-1;a/=i=2,s/=2,n/=2}function c(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(r)for(var l=-1,u=n;u>>10&1023|55296),u=56320|1023&u),o.push(u),r+=d}var f=o,p=f.length;if(p<=g)return String.fromCharCode.apply(String,f);for(var h="",m=0;mt&&(e+=" ... ")),""},d.prototype.compare=function(e,t,n,o,r){if(!d.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===n&&(n=e?e.length:0),void 0===o&&(o=0),void 0===r&&(r=this.length),(t=void 0===t?0:t)<0||n>e.length||o<0||r>this.length)throw new RangeError("out of range index");if(r<=o&&n<=t)return 0;if(r<=o)return-1;if(n<=t)return 1;if(this===e)return 0;for(var i=(r>>>=0)-(o>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(i,a),c=this.slice(o,r),l=e.slice(t,n),u=0;uthis.length)throw new RangeError("Attempt to write outside buffer bounds");o=o||"utf8";for(var i,a,s,c,l,u=!1;;)switch(o){case"hex":var d=this,f=e,p=t,h=n,m=(p=Number(p)||0,d.length-p);if((!h||(h=Number(h))>m)&&(h=m),(m=f.length)%2!=0)throw new TypeError("Invalid hex string");m/2>8,r.push(n%256),r.push(o);return r}(e,(i=this).length-s),i,s,a);default:if(u)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),u=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var g=4096;function b(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(ne.length)throw new RangeError("Index out of range")}function w(e,t,n,o){t<0&&(t=65535+t+1);for(var r=0,i=Math.min(e.length-n,2);r>>8*(o?r:1-r)}function x(e,t,n,o){t<0&&(t=4294967295+t+1);for(var r=0,i=Math.min(e.length-n,4);r>>8*(o?r:3-r)&255}function _(e,t,n,o){if(n+o>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function S(e,t,n,o,r){return r||_(e,0,n,4),i.write(e,t,n,o,23,4),n+4}function E(e,t,n,o,r){return r||_(e,0,n,8),i.write(e,t,n,o,52,8),n+8}d.prototype.slice=function(e,t){var n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):n=(r*=128)&&(o-=Math.pow(2,8*t)),o},d.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||b(e,t,this.length);for(var o=t,r=1,i=this[e+--o];0=(r*=128)&&(i-=Math.pow(2,8*t)),i},d.prototype.readInt8=function(e,t){return t||b(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},d.prototype.readInt16LE=function(e,t){t||b(e,2,this.length);t=this[e]|this[e+1]<<8;return 32768&t?4294901760|t:t},d.prototype.readInt16BE=function(e,t){t||b(e,2,this.length);t=this[e+1]|this[e]<<8;return 32768&t?4294901760|t:t},d.prototype.readInt32LE=function(e,t){return t||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},d.prototype.readInt32BE=function(e,t){return t||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},d.prototype.readFloatLE=function(e,t){return t||b(e,4,this.length),i.read(this,e,!0,23,4)},d.prototype.readFloatBE=function(e,t){return t||b(e,4,this.length),i.read(this,e,!1,23,4)},d.prototype.readDoubleLE=function(e,t){return t||b(e,8,this.length),i.read(this,e,!0,52,8)},d.prototype.readDoubleBE=function(e,t){return t||b(e,8,this.length),i.read(this,e,!1,52,8)},d.prototype.writeUIntLE=function(e,t,n,o){e=+e,t|=0,n|=0,o||y(this,e,t,n,Math.pow(2,8*n)-1,0);var r=1,i=0;for(this[t]=255&e;++i>>8):w(this,e,t,!0),t+2},d.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||y(this,e,t,2,65535,0),d.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):w(this,e,t,!1),t+2},d.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||y(this,e,t,4,4294967295,0),d.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):x(this,e,t,!0),t+4},d.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||y(this,e,t,4,4294967295,0),d.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):x(this,e,t,!1),t+4},d.prototype.writeIntLE=function(e,t,n,o){e=+e,t|=0,o||y(this,e,t,n,(o=Math.pow(2,8*n-1))-1,-o);var r=0,i=1,a=0;for(this[t]=255&e;++r>0)-a&255;return t+n},d.prototype.writeIntBE=function(e,t,n,o){e=+e,t|=0,o||y(this,e,t,n,(o=Math.pow(2,8*n-1))-1,-o);var r=n-1,i=1,a=0;for(this[t+r]=255&e;0<=--r&&(i*=256);)e<0&&0===a&&0!==this[t+r+1]&&(a=1),this[t+r]=(e/i>>0)-a&255;return t+n},d.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||y(this,e,t,1,127,-128),d.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&(e=e<0?255+e+1:e),t+1},d.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||y(this,e,t,2,32767,-32768),d.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):w(this,e,t,!0),t+2},d.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||y(this,e,t,2,32767,-32768),d.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):w(this,e,t,!1),t+2},d.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||y(this,e,t,4,2147483647,-2147483648),d.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):x(this,e,t,!0),t+4},d.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||y(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),d.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):x(this,e,t,!1),t+4},d.prototype.writeFloatLE=function(e,t,n){return S(this,e,t,!0,n)},d.prototype.writeFloatBE=function(e,t,n){return S(this,e,t,!1,n)},d.prototype.writeDoubleLE=function(e,t,n){return E(this,e,t,!0,n)},d.prototype.writeDoubleBE=function(e,t,n){return E(this,e,t,!1,n)},d.prototype.copy=function(e,t,n,o){if(n=n||0,o||0===o||(o=this.length),t>=e.length&&(t=e.length),(o=0=this.length)throw new RangeError("sourceStart out of bounds");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length);var r,i=(o=e.length-t>>=0,n=void 0===n?this.length:n>>>0,"number"==typeof(e=e||0))for(s=t;s>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function M(e){return T.toByteArray(function(e){if((e=((t=e).trim?t.trim():t.replace(/^\s+|\s+$/g,"")).replace(A,"")).length<2)return"";for(var t;e.length%4!=0;)e+="=";return e}(e))}function O(e,t,n,o){for(var r=0;r=t.length||r>=e.length);++r)t[r+n]=e[r];return r}}.call(this,P(31))},function(n,r,o){!function(t){function e(){var e;try{e=r.storage.debug}catch(e){}return e=!e&&void 0!==t&&"env"in t?t.env.DEBUG:e}(r=n.exports=o(374)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},r.formatArgs=function(e){var t,n,o=this.useColors;e[0]=(o?"%c":"")+this.namespace+(o?" %c":" ")+e[0]+(o?"%c ":" ")+"+"+r.humanize(this.diff),o&&(o="color: "+this.color,e.splice(1,0,o,"color: inherit"),e[n=t=0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(t++,"%c"===e&&(n=t))}),e.splice(n,0,o))},r.save=function(e){try{null==e?r.storage.removeItem("debug"):r.storage.debug=e}catch(e){}},r.load=e,r.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&31<=parseInt(RegExp.$1,10)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},r.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),r.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],r.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},r.enable(e())}.call(this,o(49))},function(e,t){t.encode=function(e){var t,n="";for(t in e)e.hasOwnProperty(t)&&(n.length&&(n+="&"),n+=encodeURIComponent(t)+"="+encodeURIComponent(e[t]));return n},t.decode=function(e){for(var t={},n=e.split("&"),o=0,r=n.length;o>>=1)&&(t+=t))1&o&&(n+=t);return n}},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t){var n=Math.expm1;e.exports=!n||22025.465794806718=e.length?(this._t=void 0,r(1)):r(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t,n){function o(){var e,t=+this;b.hasOwnProperty(t)&&(e=b[t],delete b[t],e())}function r(e){o.call(e.data)}var i,a=n(21),s=n(116),c=n(82),l=n(78),u=n(2),d=u.process,f=u.setImmediate,p=u.clearImmediate,h=u.MessageChannel,m=u.Dispatch,g=0,b={};f&&p||(f=function(e){for(var t=[],n=1;n>1,l=23===t?y(2,-24)-y(2,-77):0,u=0,d=e<0||0===e&&1/e<0?1:0;for((e=G(e))!=e||e===b?(r=e!=e?1:0,o=n):(o=V(q(e)/H),e*(i=y(2,-o))<1&&(o--,i*=2),2<=(e+=1<=o+c?l/i:l*y(2,1-c))*i&&(o++,i/=2),n<=o+c?(r=0,o=n):1<=o+c?(r=(e*i-1)*y(2,t),o+=c):(r=e*y(2,c-1)*y(2,t),o=0));8<=t;a[u++]=255&r,r/=256,t-=8);for(o=o<>1,s=r-7,c=n-1,r=e[c--],l=127&r;for(r>>=7;0>=-s,s+=t;0>8&255]}function k(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function W(e){return S(e,52,8)}function Y(e){return S(e,23,4)}function M(e,t,n){U(e[d],t,{get:function(){return this[n]}})}function O(e,t,n,o){n=u(+n);if(n+t>e[x])throw g(f);var r=e[w]._b,n=n+e[_],e=r.slice(n,n+t);return o?e:e.reverse()}function R(e,t,n,o,r,i){n=u(+n);if(n+t>e[x])throw g(f);for(var a=e[w]._b,s=n+e[_],c=o(+r),l=0;lI;)(P=j[I++])in p||a(p,P,v[P]);r||(n.constructor=p)}var m=new h(new p(2)),N=h[d].setInt8;m.setInt8(0,2147483648),m.setInt8(1,2147483649),!m.getInt8(0)&&m.getInt8(1)||s(h[d],{setInt8:function(e,t){N.call(this,e,t<<24>>24)},setUint8:function(e,t){N.call(this,e,t<<24>>24)}},!0)}else p=function(e){l(this,p,"ArrayBuffer");e=u(e);this._b=B.call(new Array(e),0),this[x]=e},h=function(e,t,n){l(this,h,"DataView"),l(e,p,"DataView");var o=e[x],t=F(t);if(t<0||oo)throw g("Wrong length!");this[w]=e,this[_]=t,this[x]=n},o&&(M(p,"byteLength","_l"),M(h,"buffer","_b"),M(h,"byteLength","_l"),M(h,"byteOffset","_o")),s(h[d],{getInt8:function(e){return O(this,1,e)[0]<<24>>24},getUint8:function(e){return O(this,1,e)[0]},getInt16:function(e){e=O(this,2,e,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(e){e=O(this,2,e,arguments[1]);return e[1]<<8|e[0]},getInt32:function(e){return C(O(this,4,e,arguments[1]))},getUint32:function(e){return C(O(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return T(O(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return T(O(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){R(this,1,e,E,t)},setUint8:function(e,t){R(this,1,e,E,t)},setInt16:function(e,t){R(this,2,e,A,t,arguments[2])},setUint16:function(e,t){R(this,2,e,A,t,arguments[2])},setInt32:function(e,t){R(this,4,e,k,t,arguments[2])},setUint32:function(e,t){R(this,4,e,k,t,arguments[2])},setFloat32:function(e,t){R(this,4,e,Y,t,arguments[2])},setFloat64:function(e,t){R(this,8,e,W,t,arguments[2])}});t(p,"ArrayBuffer"),t(h,"DataView"),a(h[d],i.VIEW,!0),e.ArrayBuffer=p,e.DataView=h},function(e,t){var r=36e5,i=864e5;function a(e,t,n){if(!(er;)!a(o,n=t[r++])||~c(i,n)||i.push(n);return i}},function(e,t,n){var a=n(8),s=n(1),c=n(37);e.exports=n(7)?Object.defineProperties:function(e,t){s(e);for(var n,o=c(t),r=o.length,i=0;i>>0||(i.test(e)?16:10))}:o},function(e,t,n){var o=n(2).parseFloat,r=n(46).trim;e.exports=1/o(n(84)+"-0")!=-1/0?function(e){var e=r(String(e),3),t=o(e);return 0===t&&"-"==e.charAt(0)?-0:t}:o},function(e,t,n){var o=n(22);e.exports=function(e,t){if("number"!=typeof e&&"Number"!=o(e))throw TypeError(t);return+e}},function(e,t,n){var o=n(4),r=Math.floor;e.exports=function(e){return!o(e)&&isFinite(e)&&r(e)===e}},function(e,t){e.exports=Math.log1p||function(e){return-1e-8<(e=+e)&&e<1e-8?e-e*e/2:Math.log(1+e)}},function(e,t,n){var o=n(87),n=Math.pow,r=n(2,-52),i=n(2,-23),a=n(2,127)*(2-i),s=n(2,-126);e.exports=Math.fround||function(e){var t,n=Math.abs(e),e=o(e);return na||t!=t?e*(1/0):e*t}},function(e,t,n){var r=n(1);e.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){o=t.return;throw void 0!==o&&r(o.call(t)),e}}},function(e,t,n){var u=n(12),d=n(10),f=n(53),p=n(9);e.exports=function(e,t,n,o,r){u(t);var i=d(e),a=f(i),s=p(i.length),c=r?s-1:0,l=r?-1:1;if(n<2)for(;;){if(c in a){o=a[c],c+=l;break}if(c+=l,r?c<0:s<=c)throw TypeError("Reduce of empty array with no initial value")}for(;r?0<=c:ct&&(r=r.slice(0,t)),o?r+e:e+r}},function(e,t,n){var c=n(37),l=n(17),u=n(54).f;e.exports=function(s){return function(e){for(var t,n=l(e),o=c(n),r=o.length,i=0,a=[];i=this._reconnectionAttempts?(u("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1):(e=this.backoff.duration(),u("will wait %dms before reconnect attempt",e),this.reconnecting=!0,t=setTimeout(function(){n.skipReconnect||(u("attempting reconnect"),n.emitAll("reconnect_attempt",n.backoff.attempts),n.emitAll("reconnecting",n.backoff.attempts),n.skipReconnect||n.open(function(e){e?(u("reconnect attempt error"),n.reconnecting=!1,n.reconnect(),n.emitAll("reconnect_error",e.data)):(u("reconnect success"),n.onreconnect())}))},e),this.subs.push({destroy:function(){clearTimeout(t)}}))},p.prototype.onreconnect=function(){var e=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",e)}},function(e,t,n){var a=n(106),s=n(381),c=n(390),n=n(391);t.polling=function(e){var t,n,o=!1,r=!1,i=!1!==e.jsonp;if("undefined"!=typeof location&&(t="https:"===location.protocol,n=(n=location.port)||(t?443:80),o=e.hostname!==location.hostname||n!==e.port,r=e.secure!==t),e.xdomain=o,e.xscheme=r,"open"in new a(e)&&!e.forceJSONP)return new s(e);if(i)return new c(e);throw new Error("JSONP disabled")},t.websocket=n},function(e,t,n){var o=n(107),r=n(75),i=n(51),a=n(76),s=n(152),c=n(77)("engine.io-client:polling"),l=(e.exports=u,null!=new(n(106))({xdomain:!1}).responseType);function u(e){var t=e&&e.forceBase64;l&&!t||(this.supportsBinary=!1),o.call(this,e)}a(u,o),u.prototype.name="polling",u.prototype.doOpen=function(){this.poll()},u.prototype.pause=function(e){var t,n=this;function o(){c("paused"),n.readyState="paused",e()}this.readyState="pausing",this.polling||!this.writable?(t=0,this.polling&&(c("we are currently polling - waiting to pause"),t++,this.once("pollComplete",function(){c("pre-pause polling complete"),--t||o()})),this.writable||(c("we are currently writing - waiting to pause"),t++,this.once("drain",function(){c("pre-pause writing complete"),--t||o()}))):o()},u.prototype.poll=function(){c("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},u.prototype.onData=function(e){var o=this;c("polling got data %s",e),i.decodePayload(e,this.socket.binaryType,function(e,t,n){if("opening"===o.readyState&&o.onOpen(),"close"===e.type)return o.onClose(),!1;o.onPacket(e)}),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():c('ignoring poll - transport state "%s"',this.readyState))},u.prototype.doClose=function(){var e=this;function t(){c("writing close packet"),e.write([{type:"close"}])}"open"===this.readyState?(c("transport open - closing"),t()):(c("transport not open - deferring close"),this.once("open",t))},u.prototype.write=function(e){function t(){n.writable=!0,n.emit("drain")}var n=this;this.writable=!1;i.encodePayload(e,this.supportsBinary,function(e){n.doWrite(e,t)})},u.prototype.uri=function(){var e=this.query||{},t=this.secure?"https":"http",n="";return!1!==this.timestampRequests&&(e[this.timestampParam]=s()),this.supportsBinary||e.sid||(e.b64=1),e=r.encode(e),this.port&&("https"==t&&443!==Number(this.port)||"http"==t&&80!==Number(this.port))&&(n=":"+this.port),e.length&&(e="?"+e),t+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+e}},function(t,e,n){!function(i){var a=n(383),e=Object.prototype.toString,s="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===e.call(Blob),c="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===e.call(File);t.exports=function e(t){if(!t||"object"!=typeof t)return!1;if(a(t)){for(var n=0,o=t.length;nthis.options.threshold){var s={};for(c in this.direction)this.direction.hasOwnProperty(c)&&(s[c]=this.direction[c]);var c,l={};for(c in this.direction={x:n,y:o,angle:t},e.direction=this.direction,s)s[c]===this.direction[c]&&(l[c]=!0);if(l.x&&l.y&&l.angle)return e;l.x&&l.y||this.trigger("plain",e),l.x||this.trigger("plain:"+n,e),l.y||this.trigger("plain:"+o,e),l.angle||this.trigger("dir dir:"+t,e)}return e},o.prototype=new e,(o.constructor=o).id=0,o.prototype.prepareNipples=function(){var e=this,o=e.nipples;o.on=e.on.bind(e),o.off=e.off.bind(e),o.options=e.options,o.destroy=e.destroy.bind(e),o.ids=e.ids,o.id=e.id,o.processOnMove=e.processOnMove.bind(e),o.processOnEnd=e.processOnEnd.bind(e),o.get=function(e){if(void 0===e)return o[0];for(var t=0,n=o.length;t