webpackJsonp([0],{123:function(t,e){t.exports={inactive:"inactive","inactive--visible":"inactive--visible",inactive__message:"inactive__message","map__info-bar":"map__info-bar"}},124:function(t,e,n){(function(e,n){var r=function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=11)}([function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var r=void 0;if(void 0!==t)r=t;else if("undefined"!=typeof self)r=self;else try{r=Function("return this")()}catch(t){throw new Error("polyfill failed because global object is unavailable in this environment")}var i=r.Promise||n(8);e.local={Promise:i,GoogPromise:i}}).call(e,n(1))},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5),i=(0,r.createFirebaseNamespace)();e.default=i,t.exports=e.default},function(t,e,n){"use strict";function r(t){return i(void 0,t)}function i(t,e){if(!(e instanceof Object))return e;switch(e.constructor){case Date:return new Date(e.getTime());case Object:void 0===t&&(t={});break;case Array:t=[];break;default:return e}for(var n in e)e.hasOwnProperty(n)&&(t[n]=i(t[n],e[n]));return t}function o(t,e,n){t[e]=n}Object.defineProperty(e,"__esModule",{value:!0}),e.deepCopy=r,e.deepExtend=i,e.patchProperty=o},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t){var e=a;return a=t,e}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n"}),i=this.serviceName+": "+i+" ("+r+").";var o=new s(r,i);for(var a in e)e.hasOwnProperty(a)&&"_"!==a.slice(-1)&&(o[a]=e[a]);return o}}]),t}()},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(){function t(t){t=t||h;var e=r[t];return void 0===e&&o("no-app",{name:t}),e}function e(t,e){Object.keys(a).forEach(function(r){var i=n(t,r);null!==i&&d[i]&&d[i](e,t)})}function n(t,e){if("serverAuth"===e)return null;var n=e,r=t.options;return"auth"===e&&(r.serviceAccount||r.credential)&&(n="serverAuth","serverAuth"in a||o("sa-not-supported")),n}var r={},a={},d={},b={__esModule:!0,initializeApp:function(t,n){void 0===n?n=h:"string"==typeof n&&""!==n||o("bad-app-name",{name:n+""}),void 0!==r[n]&&o("duplicate-app",{name:n});var i=new p(t,n,b);return r[n]=i,e(i,"create"),void 0!=i.INTERNAL&&void 0!=i.INTERNAL.getToken||(0,s.deepExtend)(i,{INTERNAL:{getUid:function(){return null},getToken:function(){return l.resolve(null)},addAuthTokenListener:function(){},removeAuthTokenListener:function(){}}}),i},app:t,apps:null,Promise:l,SDK_VERSION:"3.9.0",INTERNAL:{registerService:function(e,n,r,i,u){a[e]&&o("duplicate-service",{name:e}),a[e]=u?n:function(t,e){return n(t,e,h)},i&&(d[e]=i);var c=void 0;return c=function(n){return void 0===n&&(n=t()),"function"!=typeof n[e]&&o("invalid-app-argument",{name:e}),n[e]()},void 0!==r&&(0,s.deepExtend)(c,r),b[e]=c,c},createFirebaseNamespace:i,extendNamespace:function(t){(0,s.deepExtend)(b,t)},createSubscribe:u.createSubscribe,ErrorFactory:c.ErrorFactory,removeApp:function(t){e(r[t],"delete"),delete r[t]},factories:a,useAsService:n,Promise:f.local.GoogPromise,deepExtend:s.deepExtend}};return(0,s.patchProperty)(b,"default",b),Object.defineProperty(b,"apps",{get:function(){return Object.keys(r).map(function(t){return r[t]})}}),(0,s.patchProperty)(t,"App",p),b}function o(t,e){throw b.create(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n1)for(var n=1;n=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},i(9),r.setImmediate=e,r.clearImmediate=n},function(t,e,n){t.exports=n(2)}]);t.exports=r}).call(e,n(130).setImmediate,n(130).clearImmediate)},125:function(t,e,n){"use strict";var r=n(338),i=r.a.Symbol;e.a=i},126:function(t,e,n){"use strict";function r(t){if(!n.i(a.a)(t)||n.i(i.a)(t)!=s)return!1;var e=n.i(o.a)(t);if(null===e)return!0;var r=l.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&f.call(r)==h}var i=n(332),o=n(334),a=n(339),s="[object Object]",u=Function.prototype,c=Object.prototype,f=u.toString,l=c.hasOwnProperty,h=f.call(Object);e.a=r},127:function(t,e,n){"use strict";function r(){for(var t=arguments.length,e=Array(t),n=0;n=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(345),e.setImmediate=setImmediate,e.clearImmediate=clearImmediate},131:function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a,s,u=n(10),c=(n.n(u),n(143)),f=n(138),l=n(92),h=n(137),p=n(94),d=n(91),b=(n.n(d),n(146)),g=n(145),v=function(t){return{status:t.status,count:t.count}},y=(a=n.i(d.connect)(v,n.i(b.a)(g)))(s=function(t){function e(){var n,o,a;r(this,e);for(var s=arguments.length,u=Array(s),c=0;c0&&void 0!==arguments[0]&&arguments[0],n=c.a.database().ref("/points"),r=c.a.database().ref("/status"),i=c.a.database().ref("/total");e?(n.off(),r.off(),i.off()):(r.on("value",function(e){var n=e.val();t.props.setStatus(n)}),i.on("value",function(e){var n=e.val();t.props.setCount(n)}),n.limitToLast(2).orderByKey().on("child_added",function(t){var e=t.val();p.a.addMarker(e,t.key)}))},e.prototype.startInactiveTimer=function(){setTimeout(this.setInactive,18e4)},e.prototype.componentDidMount=function(){var t=this;document.addEventListener("visibilitychange",function(){t.state.inactive||t.getFirebaseUpdates(document.hidden)}),this.startInactiveTimer(),this.getFirebaseUpdates()},e.prototype.render=function(t,e){var r=t.status,i=t.count,o=e.inactive;return n.i(u.h)("div",{class:"app"},n.i(u.h)(l.a,{status:r,count:i}),n.i(u.h)(f.a,null,n.i(u.h)("div",{class:"map__info-bar"},"Autoaddress FindAddress API Real-Time Traffic.")),n.i(u.h)(h.a,{inactive:o,refresh:this.refresh}))},e}(u.Component))||s;e.default=y},132:function(t,e,n){"use strict";var r=n(89),i=n(147),o={status:null,count:0},a=n.i(r.combineReducers)({status:i.a,count:i.b});e.a=n.i(r.createStore)(a,o)},134:function(t,e){t.exports={app:"app",map:"map",twitter:"twitter","flex--center":"flex--center",button:"button",link:"link",hide:"hide","js--visible":"js--visible",title:"title",section:"section",spinner:"spinner","double-bounce1":"double-bounce1","double-bounce2":"double-bounce2","sk-bounce":"sk-bounce"}},135:function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(10),s=(n.n(a),n(136)),u=function(t){return function(e){return function(u){function c(){return r(this,c),i(this,u.apply(this,arguments))}return o(c,u),c.prototype.isEmpty=function(t){return null===t||void 0===t||t.hasOwnProperty("length")&&0===t.length||t.constructor===Object&&0===Object.keys(t).length},c.prototype.render=function(r){return this.isEmpty(r[t])?n.i(a.h)(s.a,null):n.i(a.h)(e,r)},c}(a.Component)}};e.a=u},136:function(t,e,n){"use strict";var r=n(10);n.n(r),e.a=function(){return n.i(r.h)("div",{class:"flex--center"},n.i(r.h)("div",{class:"spinner"},n.i(r.h)("div",{class:"double-bounce1"}),n.i(r.h)("div",{class:"double-bounce2"})))}},137:function(t,e,n){"use strict";var r=n(10),i=(n.n(r),n(47)),o=n.n(i),a=n(123),s=(n.n(a),function(t){var e=t.inactive,i=t.refresh;return n.i(r.h)("section",{class:o()("inactive",e&&"inactive--visible")},n.i(r.h)("div",{class:"inactive__message"},n.i(r.h)("span",null,"Click on the refresh button to see API status."),n.i(r.h)("button",{class:"button",onClick:i},"Refresh")))});e.a=s},138:function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(10),s=(n.n(a),n(123)),u=n.n(s),c=(n(92),n(47)),f=(n.n(c),n(94)),l=function(t){function e(){var n,o,a;r(this,e);for(var s=arguments.length,u=Array(s),c=0;c0&&void 0!==arguments[0]?arguments[0]:0,e=arguments[1];switch(e.type){case r.a:return e.count;default:return t}},a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments[1];switch(e.type){case r.b:return i({},e.status);default:return t}}},329:function(t,e){t.exports={header__status:"header__status",status__description:"status__description",status__description__down:"status__description__down",status__uptime:"status__uptime",status__intro:"status__intro",status__message:"status__message"}},330:function(t,e,n){t.exports=n.p+"assets/logo.png"},331:function(module,exports,__webpack_require__){(function(global){var firebase=__webpack_require__(124);(function(){!function(){function n(t){return void 0!==t}function ba(){}function ca(t){t.Vb=function(){return t.Ye?t.Ye:t.Ye=new t}}function da(t){var e=typeof t;if("object"==e){if(!t)return"null";if(t instanceof Array)return"array";if(t instanceof Object)return e;var n=Object.prototype.toString.call(t);if("[object Window]"==n)return"object";if("[object Array]"==n||"number"==typeof t.length&&void 0!==t.splice&&void 0!==t.propertyIsEnumerable&&!t.propertyIsEnumerable("splice"))return"array";if("[object Function]"==n||void 0!==t.call&&void 0!==t.propertyIsEnumerable&&!t.propertyIsEnumerable("call"))return"function"}else if("function"==e&&void 0===t.call)return"object";return e}function ea(t){return"array"==da(t)}function fa(t){var e=da(t);return"array"==e||"object"==e&&"number"==typeof t.length}function p(t){return"string"==typeof t}function ga(t){return"number"==typeof t}function ha(t){return"function"==da(t)}function ia(t){var e=typeof t;return"object"==e&&null!=t||"function"==e}function ja(t,e,n){return t.call.apply(t.bind,arguments)}function ka(t,e,n){if(!t)throw Error();if(2e?n+="000":256>e?n+="00":4096>e&&(n+="0"),qa[t]=n+e.toString(16)}),'"')}function sa(){this.Wa=-1}function ta(){this.Wa=-1,this.Wa=64,this.M=[],this.Wd=[],this.Af=[],this.zd=[],this.zd[0]=128;for(var t=1;ti;i++)r[i]=e.charCodeAt(n)<<24|e.charCodeAt(n+1)<<16|e.charCodeAt(n+2)<<8|e.charCodeAt(n+3),n+=4;else for(i=0;16>i;i++)r[i]=e[n]<<24|e[n+1]<<16|e[n+2]<<8|e[n+3],n+=4;for(i=16;80>i;i++){var o=r[i-3]^r[i-8]^r[i-14]^r[i-16];r[i]=4294967295&(o<<1|o>>>31)}e=t.M[0],n=t.M[1];for(var a,s=t.M[2],u=t.M[3],c=t.M[4],i=0;80>i;i++)40>i?20>i?(o=u^n&(s^u),a=1518500249):(o=n^s^u,a=1859775393):60>i?(o=n&s|u&(n|s),a=2400959708):(o=n^s^u,a=3395469782),o=(e<<5|e>>>27)+o+c+a+r[i]&4294967295,c=u,u=s,s=4294967295&(n<<30|n>>>2),n=e,e=o;t.M[0]=t.M[0]+e&4294967295,t.M[1]=t.M[1]+n&4294967295,t.M[2]=t.M[2]+s&4294967295,t.M[3]=t.M[3]+u&4294967295,t.M[4]=t.M[4]+c&4294967295}function Da(t,e){var n=Ea(t,e,void 0);return 0>n?null:p(t)?t.charAt(n):t[n]}function Ea(t,e,n){for(var r=t.length,i=p(t)?t.split(""):t,o=0;o=arguments.length?t.slice.call(e,n):t.slice.call(e,n,r)}function Ha(t,e){t.sort(e||Ia)}function Ia(t,e){return t>e?1:t>2,o=(3&o)<<4|s>>4,s=(15&s)<<2|c>>6,c=63&c;u||(c=64,a||(s=64)),r.push(n[f],n[o],n[s],n[c])}return r.join("")}function bb(){if(!Ya){Ya={},Za={},$a={};for(var t=0;65>t;t++)Ya[t]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(t),Za[t]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(t),$a[Za[t]]=t,62<=t&&($a["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(t)]=t)}}function cb(t,e){if(!t)throw db(e)}function db(t){return Error("Firebase Database ("+firebase.SDK_VERSION+") INTERNAL ASSERT FAILED: "+t)}function eb(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function w(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]}function fb(t,e){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e(n,t[n])}function gb(t){var e=[];return fb(t,function(t,n){ea(n)?ya(n,function(n){e.push(encodeURIComponent(t)+"="+encodeURIComponent(n))}):e.push(encodeURIComponent(t)+"="+encodeURIComponent(n))}),e.length?"&"+e.join("&"):""}function ib(){var t=this;this.reject=this.resolve=null,this.ra=new hb(function(e,n){t.resolve=e,t.reject=n})}function jb(t,e){return function(n,r){n?t.reject(n):t.resolve(r),ha(e)&&(kb(t.ra),1===e.length?e(n):e(n,r))}}function kb(t){t.then(void 0,ba)}function lb(t){return"undefined"!=typeof JSON&&n(JSON.parse)?JSON.parse(t):ma(t)}function x(t){if("undefined"!=typeof JSON&&n(JSON.stringify))t=JSON.stringify(t);else{var e=[];oa(new na,t,e),t=e.join("")}return t}function mb(t){for(var e=[],n=0,r=0;r=i&&(i-=55296,r++,cb(ri?e[n++]=i:(2048>i?e[n++]=i>>6|192:(65536>i?e[n++]=i>>12|224:(e[n++]=i>>18|240,e[n++]=i>>12&63|128),e[n++]=i>>6&63|128),e[n++]=63&i|128)}return e}function nb(t){for(var e=0,n=0;nr?e++:2048>r?e+=2:55296<=r&&56319>=r?(e+=4,n++):e+=3}return e}function y(t,e,n,r){var i;if(rn&&(i=0===n?"none":"no more than "+n),i)throw Error(t+" failed: Was called with "+r+(1===r?" argument.":" arguments.")+" Expects "+i+".")}function A(t,e,n){var r="";switch(e){case 1:r=n?"first":"First";break;case 2:r=n?"second":"Second";break;case 3:r=n?"third":"Third";break;case 4:r=n?"fourth":"Fourth";break;default:throw Error("errorPrefix called with argumentNumber > 4. Need to update it?")}return t=t+" failed: "+r+" argument "}function B(t,e,r,i){if((!i||n(r))&&!ha(r))throw Error(A(t,e,i)+"must be a valid function.")}function ob(t,e,r){if(n(r)&&(!ia(r)||null===r))throw Error(A(t,e,!0)+"must be a valid context object.")}function pb(){return"undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test("undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:"")}function C(t,e){this.name=t,this.R=e}function qb(t,e){return new C(t,e)}function rb(t,e){return sb(t.name,e.name)}function tb(t,e){return sb(t,e)}function ub(t){this.uc=t,this.Cd="firebase:"}function vb(){this.pc={}}function wb(t){try{if("undefined"!=typeof window&&void 0!==window[t]){var e=window[t];return e.setItem("firebase:sentinel","cache"),e.removeItem("firebase:sentinel"),new ub(e)}}catch(t){}return new vb}function zb(t,e,n,r,i){this.host=t.toLowerCase(),this.domain=this.host.substr(this.host.indexOf(".")+1),this.Sc=e,this.pe=n,this.qg=r,this.gf=i||"",this.$a=xb.get("host:"+t)||this.host}function Ab(t,e){e!==t.$a&&(t.$a=e,"s-"===t.$a.substr(0,2)&&xb.set("host:"+t.host,t.$a))}function Bb(t,e,n){if(D("string"==typeof e,"typeof type must == string"),D("object"==typeof n,"typeof params must == object"),e===Cb)e=(t.Sc?"wss://":"ws://")+t.$a+"/.ws?";else{if(e!==Db)throw Error("Unknown connection type: "+e);e=(t.Sc?"https://":"http://")+t.$a+"/.lp?"}t.host!==t.$a&&(n.ns=t.pe);var r=[];return v(n,function(t,e){r.push(e+"="+t)}),e+r.join("&")}function Eb(t,e){return t&&"object"==typeof t?(D(".sv"in t,"Unexpected leaf node or priority contents"),e[t[".sv"]]):t}function Fb(t,e){var n=new Gb;return Hb(t,new E(""),function(t,r){Ib(n,t,Jb(r,e))}),n}function Jb(t,e){var n,r=t.C().H(),r=Eb(r,e);if(t.J()){var i=Eb(t.Ca(),e);return i!==t.Ca()||r!==t.C().H()?new Kb(i,G(r)):t}return n=t,r!==t.C().H()&&(n=n.fa(new Kb(r))),t.O(H,function(t,r){var i=Jb(r,e);i!==r&&(n=n.T(t,i))}),n}function Nb(t){try{var e;bb();for(var n=$a,r=[],i=0;i>4),64!=s&&(r.push(a<<4&240|s>>2),64!=u&&r.push(s<<6&192|u))}if(8192>r.length)e=String.fromCharCode.apply(null,r);else{for(t="",n=0;nt.$b?t.update(t.zd,56-t.$b):t.update(t.zd,t.Wa-(t.$b-56));for(var r=t.Wa-1;56<=r;r--)t.Wd[r]=255&n,n/=256;for(ua(t,t.Wd),r=n=0;5>r;r++)for(var i=24;0<=i;i-=8)e[n]=t.M[r]>>i&255,++n;return ab(e)}function Pb(t){for(var e="",n=0;n.firebaseio.com instead"),n&&"undefined"!=n||Vb("Cannot parse Firebase url. Please use https://.firebaseio.com"),r||"undefined"!=typeof window&&window.location&&window.location.protocol&&-1!==window.location.protocol.indexOf("https:")&&J("Insecure Firebase access from a secure page. Please use https in calls to new Firebase()."),{jc:new zb(e,r,n,"ws"===i||"wss"===i),path:new E(o)}}function Xb(t){return ga(t)&&(t!=t||t==Number.POSITIVE_INFINITY||t==Number.NEGATIVE_INFINITY)}function Yb(t){if("complete"===document.readyState)t();else{var e=!1,n=function(){document.body?e||(e=!0,t()):setTimeout(n,Math.floor(10))};document.addEventListener?(document.addEventListener("DOMContentLoaded",n,!1),window.addEventListener("load",n,!1)):document.attachEvent&&(document.attachEvent("onreadystatechange",function(){"complete"===document.readyState&&n()}),window.attachEvent("onload",n))}}function sb(t,e){if(t===e)return 0;if("[MIN_NAME]"===t||"[MAX_NAME]"===e)return-1;if("[MIN_NAME]"===e||"[MAX_NAME]"===t)return 1;var n=Zb(t),r=Zb(e);return null!==n?null!==r?0==n-r?t.length-e.length:n-r:-1:null!==r?1:tt?n.push(t.substring(r,t.length)):n.push(t.substring(r,r+e));return n}function cc(t,e){if(ea(t))for(var n=0;nt,t=Math.abs(t),t>=Math.pow(2,-1022)?(r=Math.min(Math.floor(Math.log(t)/Math.LN2),1023),n=r+1023,r=Math.round(t*Math.pow(2,52-r)-Math.pow(2,52))):(n=0,r=Math.round(t/Math.pow(2,-1074)))),i=[],t=52;t;--t)i.push(r%2?1:0),r=Math.floor(r/2);for(t=11;t;--t)i.push(n%2?1:0),n=Math.floor(n/2);for(i.push(e?1:0),i.reverse(),e=i.join(""),n="",t=0;64>t;t+=8)r=parseInt(e.substr(t,8),2).toString(16),1===r.length&&(r="0"+r),n+=r;return n.toLowerCase()}function Zb(t){return ec.test(t)&&-2147483648<=(t=Number(t))&&2147483647>=t?t:null}function fc(t){try{t()}catch(t){setTimeout(function(){throw J("Exception was thrown by user callback.",t.stack||""),t},Math.floor(0))}}function gc(t,e,n){Object.defineProperty(t,e,{get:n})}function hc(t,e){var n=setTimeout(t,e);return"object"==typeof n&&n.unref&&n.unref(),n}function ic(t){var e={},n={},r={},i="";try{var o=t.split("."),e=lb(Nb(o[0])||""),n=lb(Nb(o[1])||""),i=o[2],r=n.d||{};delete n.d}catch(t){}return{tg:e,Je:n,data:r,mg:i}}function jc(t){t=ic(t);var e=t.Je;return!!t.mg&&!!e&&"object"==typeof e&&e.hasOwnProperty("iat")}function kc(t){return"object"==typeof(t=ic(t).Je)&&!0===w(t,"admin")}function lc(){}function nc(t){return q(t.compare,t)}function pc(t){D(!t.e()&&".priority"!==K(t),"Can't create PathIndex with empty path or .priority key"),this.bc=t}function rc(){}function sc(){}function uc(){}function xc(t,e){this.od=t,this.cc=e}function yc(t,e,n){return new xc(Ja(t.od,function(r,i){var o=w(t.cc,i);if(D(o,"Missing index implementation for "+i),r===mc){if(o.xc(e.R)){for(var a=[],s=n.Wb(qb),u=M(s);u;)u.name!=e.name&&a.push(u),u=M(s);return a.push(e),zc(a,nc(o))}return mc}return o=n.get(e.name),a=r,o&&(a=a.remove(new C(e.name,o))),a.Oa(e,e.R)}),t.cc)}function Ac(t,e,n){return new xc(Ja(t.od,function(t){if(t===mc)return t;var r=n.get(e.name);return r?t.remove(new C(e.name,r)):t}),t.cc)}function Kb(t,e){this.B=t,D(n(this.B)&&null!==this.B,"LeafNode shouldn't be created with null/undefined value."),this.aa=e||L,Cc(this.aa),this.Db=null}function Gc(){this.set={}}function Hc(t,e){v(t.set,function(t,n){e(n,t)})}function Ic(t){D(ea(t)&&0=t.o.length?null:t.o[t.Y]}function Ec(t){return t.o.length-t.Y}function N(t){var e=t.Y;return en?r=r.left:0i)t=this.le?t.left:t.right;else{if(0===i){this.Pa.push(t);break}this.Pa.push(t),t=this.le?t.right:t.left}}function M(t){if(0===t.Pa.length)return null;var e,n=t.Pa.pop();if(e=t.Hd?t.Hd(n.key,n.value):{key:n.key,value:n.value},t.le)for(n=n.left;!n.e();)t.Pa.push(n),n=n.right;else for(n=n.right;!n.e();)t.Pa.push(n),n=n.left;return e}function cd(t){if(0===t.Pa.length)return null;var e;return e=t.Pa,e=e[e.length-1],t.Hd?t.Hd(e.key,e.value):{key:e.key,value:e.value}}function dd(t,e,n,r,i){this.key=t,this.value=e,this.color=null==n||n,this.left=null!=r?r:$c,this.right=null!=i?i:$c}function ed(t){return t.left.e()?t:ed(t.left)}function hd(t){return t.left.e()?$c:(t.left.ea()||t.left.left.ea()||(t=id(t)),t=t.X(null,null,null,hd(t.left),null),gd(t))}function gd(t){return t.right.ea()&&!t.left.ea()&&(t=ld(t)),t.left.ea()&&t.left.left.ea()&&(t=jd(t)),t.left.ea()&&t.right.ea()&&(t=kd(t)),t}function id(t){return t=kd(t),t.right.left.ea()&&(t=t.X(null,null,null,null,jd(t.right)),t=ld(t),t=kd(t)),t}function ld(t){return t.right.X(null,null,t.color,t.X(null,null,!0,null,t.right.left),null)}function jd(t){return t.left.X(null,null,t.color,null,t.X(null,null,!0,t.left.right,null))}function kd(t){return t.X(null,null,!t.color,t.left.X(null,null,!t.left.color,null,null),t.right.X(null,null,!t.right.color,null,null))}function md(){}function O(t,e,n){this.k=t,(this.aa=e)&&Cc(this.aa),t.e()&&D(!this.aa||this.aa.e(),"An empty node cannot have a priority"),this.yb=n,this.Db=null}function pd(t,e){var n;return n=(n=od(t,e))?(n=n.Gc())&&n.name:t.k.Gc(),n?new C(n,t.k.get(n)):null}function qd(t,e){var n;return n=(n=od(t,e))?(n=n.ec())&&n.name:t.k.ec(),n?new C(n,t.k.get(n)):null}function od(t,e){return e===tc?null:t.yb.get(e.toString())}function G(t,e){if(null===t)return L;var n=null;if("object"==typeof t&&".priority"in t?n=t[".priority"]:void 0!==e&&(n=e),D(null===n||"string"==typeof n||"number"==typeof n||"object"==typeof n&&".sv"in n,"Invalid priority type found: "+typeof n),"object"==typeof t&&".value"in t&&null!==t[".value"]&&(t=t[".value"]),"object"!=typeof t||".sv"in t)return new Kb(t,G(n));if(t instanceof Array){var r=L,i=t;return v(i,function(t,e){if(eb(i,e)&&"."!==e.substring(0,1)){var n=G(t);!n.J()&&n.e()||(r=r.T(e,n))}}),r.fa(G(n))}var o=[],a=!1,s=t;if(fb(s,function(t){if("string"!=typeof t||"."!==t.substring(0,1)){var e=G(s[t]);e.e()||(a=a||!e.C().e(),o.push(new C(t,e)))}}),0==o.length)return L;var u=zc(o,rb,function(t){return t.name},tb);if(a){var c=zc(o,nc(H));return new O(u,G(n),new xc({".priority":c},{".priority":H}))}return new O(u,G(n),Bc)}function sd(t){this.count=parseInt(Math.log(t+1)/rd,10),this.Oe=this.count-1,this.Cf=t+1&parseInt(Array(this.count+1).join("1"),2)}function td(t){var e=!(t.Cf&1<10485760/3&&10485760a.status){try{e=lb(a.responseText)}catch(t){J("Failed to parse JSON response for "+o+": "+a.responseText)}r(null,e)}else 401!==a.status&&404!==a.status&&J("Got unsuccessful REST response for "+o+" Status: "+a.status),r(a.status);r=null}},a.open("GET",o,!0),a.send()})}function Uf(t){this.te=t,this.Bd=[],this.Qb=0,this.Yd=-1,this.Fb=null}function Vf(t,e,n){t.Yd=e,t.Fb=n,t.Yddocument.domain="'+document.domain+'";<\/script>'),t=""+t+"";try{this.Ea.gb.open(),this.Ea.gb.write(t),this.Ea.gb.close()}catch(t){I("frame writing exception"),t.stack&&I(t.stack),I(t)}}function ig(t){if(t.Ud&&t.Kd&&t.ve.count()<(0=t.Qc[0].Pe.length+30+n.length;){var i=t.Qc.shift(),n=n+"&seg"+r+"="+i.jg+"&ts"+r+"="+i.pg+"&d"+r+"="+i.Pe;r++}return jg(t,e+n,t.$d),!0}return!1}function jg(t,e,n){function r(){t.ve.remove(n),ig(t)}t.ve.add(n,1);var i=setTimeout(r,Math.floor(25e3));hg(t,e,function(){clearTimeout(i),r()})}function hg(t,e,n){setTimeout(function(){try{if(t.Kd){var r=t.Ea.gb.createElement("script");r.type="text/javascript",r.async=!0,r.src=e,r.onload=r.onreadystatechange=function(){var t=r.readyState;t&&"loaded"!==t&&"complete"!==t||(r.onload=r.onreadystatechange=null,r.parentNode&&r.parentNode.removeChild(r),n())},r.onerror=function(){I("Long-poll script failed to load: "+e),t.Kd=!1,t.close()},t.Ea.gb.body.appendChild(r)}}catch(t){}},Math.floor(1))}function kg(t){lg(this,t)}function lg(t,e){var n=Yf&&Yf.isAvailable(),r=n&&!(xb.Ze||!0===xb.get("previous_websocket_failure"));if(e.qg&&(n||J("wss:// URL used, but browser isn't known to support websockets. Trying anyway."),r=!0),r)t.Wc=[Yf];else{var i=t.Wc=[];cc(mg,function(t,e){e&&e.isAvailable()&&i.push(e)})}}function ng(t){if(0=t.pf?(t.f("Secondary connection is healthy."),t.Bb=!0,t.D.sd(),t.D.start(),t.f("sending client ack on secondary"),t.D.send({t:"c",d:{t:"a",d:{}}}),t.f("Ending transmission on primary"),t.I.send({t:"c",d:{t:"n",d:{}}}),t.Xc=t.D,ug(t)):(t.f("sending ping on secondary."),t.D.send({t:"c",d:{t:"p",d:{}}}))}function wg(t){t.Bb||0>=--t.xe&&(t.f("Primary connection is healthy."),t.Bb=!0,t.I.sd())}function tg(t,e){t.D=new e("c:"+t.id+":"+t.Le++,t.L,t.qf),t.pf=e.responsesRequiredToBeHealthy||0,t.D.open(qg(t,t.D),rg(t,t.D)),hc(function(){t.D&&(t.f("Timed out trying to upgrade."),t.D.close())},Math.floor(6e4))}function sg(t,e,n){t.f("Realtime connection established."),t.I=e,t.Ua=1,t.Lc&&(t.Lc(n,t.qf),t.Lc=null),0===t.xe?(t.f("Primary connection is healthy."),t.Bb=!0):hc(function(){xg(t)},Math.floor(5e3))}function xg(t){t.Bb||1!==t.Ua||(t.f("sending ping on primary."),zg(t,{t:"c",d:{t:"p",d:{}}}))}function zg(t,e){if(1!==t.Ua)throw"Connection is not connected";t.Xc.send(e)}function vg(t){t.f("Shutting down all connections"),t.I&&(t.I.close(),t.I=null),t.D&&(t.D.close(),t.D=null),t.md&&(clearTimeout(t.md),t.md=null)}function Ag(t,e,n,r,i,o){if(this.id=Bg++,this.f=Tb("p:"+this.id+":"),this.qd={},this.$={},this.pa=[],this.Oc=0,this.Kc=[],this.ma=!1,this.Sa=1e3,this.td=3e5,this.Gb=e,this.Jc=n,this.ue=r,this.L=t,this.ob=this.Fa=this.Cb=this.ze=null,this.$c=i,this.de=!1,this.ke=0,o)throw Error("Auth override specified in options, but not supported on non Node.js platforms");this.Vd=o,this.ub=null,this.Mb=!1,this.Gd={},this.ig=0,this.Re=!0,this.Ac=this.me=null,Cg(this,0),Mc.Vb().gc("visible",this.Zf,this),-1===t.host.indexOf("fblocal")&&Lc.Vb().gc("online",this.Yf,this)}function Eg(t,e){var n=e.eg,r=n.path.toString(),i=n.ja();t.f("Listen on "+r+" for "+i);var o={p:r};e.tag&&(o.q=pf(n.m),o.t=e.tag),o.h=e.ld(),t.ua("q",o,function(o){var a=o.d,s=o.s;if(a&&"object"==typeof a&&eb(a,"w")){var u=w(a,"w");ea(u)&&0<=xa(u,"no_index")&&J('Using an unspecified index. Consider adding ".indexOn": "'+n.m.g.toString()+'" at '+n.path.toString()+" to your security rules for better performance")}(t.$[r]&&t.$[r][i])===e&&(t.f("listen response",o),"ok"!==s&&Fg(t,r,i),e.G&&e.G(s,a))})}function Gg(t){if(t.ma&&t.ob){var e=t.ob,n=jc(e)?"auth":"gauth",r={cred:e};null===t.Vd?r.noauth=!0:"object"==typeof t.Vd&&(r.authvar=t.Vd),t.ua(n,r,function(n){var r=n.s;n=n.d||"error",t.ob===e&&("ok"===r?t.ke=0:Hg(t,r,n))})}}function Ig(t,e,n,r,i){n={p:n,d:r},t.f("onDisconnect "+e,n),t.ua(e,n,function(t){i&&setTimeout(function(){i(t.s,t.d)},Math.floor(0))})}function Jg(t,e,r,i,o,a){i={p:r,d:i},n(a)&&(i.h=a),t.pa.push({action:e,mf:i,G:o}),t.Oc++,e=t.pa.length-1,t.ma?Kg(t,e):t.f("Buffering put: "+r)}function Kg(t,e){var n=t.pa[e].action,r=t.pa[e].mf,i=t.pa[e].G;t.pa[e].fg=t.ma,t.ua(n,r,function(r){t.f(n+" response",r),delete t.pa[e],t.Oc--,0===t.Oc&&(t.pa=[]),i&&i(r.s,r.d)})}function Cg(t,e){D(!t.Fa,"Scheduling a connect when we're already connected/ing?"),t.ub&&clearTimeout(t.ub),t.ub=setTimeout(function(){t.ub=null,Ng(t)},Math.floor(e))}function Ng(t){if(Og(t)){t.f("Making a connection attempt"),t.me=(new Date).getTime(),t.Ac=null;var e=q(t.wd,t),n=q(t.Lc,t),r=q(t.df,t),i=t.id+":"+Dg++,o=t.Cb,a=!1,s=null,u=function(){s?s.close():(a=!0,r())};t.Fa={close:u,ua:function(t){D(s,"sendRequest call when we're not connected not allowed."),s.ua(t)}};var c=t.de;t.de=!1,t.$c.getToken(c).then(function(u){a?I("getToken() completed but was canceled"):(I("getToken() completed. Creating connection."),t.ob=u&&u.accessToken,s=new og(i,t.L,e,n,r,function(e){J(e+" ("+t.L.toString()+")"),t.ab("server_kill")},o))}).then(null,function(e){t.f("Failed to get token: "+e),a||u()})}}function Lg(t,e,n){n=n?Aa(n,function(t){return ac(t)}).join("$"):"default",(t=Fg(t,e,n))&&t.G&&t.G("permission_denied")}function Fg(t,e,r){e=new E(e).toString();var i;return n(t.$[e])?(i=t.$[e][r],delete t.$[e][r],0===La(t.$[e])&&delete t.$[e]):i=void 0,i}function Hg(t,e,n){I("Auth token revoked: "+e+"/"+n),t.ob=null,t.de=!0,t.Fa.close(),"invalid_token"!==e&&"permission_denied"!==e||3<=++t.ke&&(t.Sa=3e4,t=t.$c,e='Provided authentication credentials for the app named "'+t.oc.name+'" are invalid. This usually indicates your app was not initialized correctly. ',e="credential"in t.oc.options?e+'Make sure the "credential" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':"serviceAccount"in t.oc.options?e+'Make sure the "serviceAccount" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':e+'Make sure the "apiKey" and "databaseURL" properties provided to initializeApp() match the values provided for your app at https://console.firebase.google.com/.',J(e))}function Mg(t){Gg(t),v(t.$,function(e){v(e,function(e){Eg(t,e)})});for(var e=0;ea.Bc,"Stacking an older write on top of newer ones"),n(s)||(s=!0),a.la.push({path:e,Ga:r,Zc:i,visible:s}),s&&(a.S=uf(a.S,e,r)),a.Bc=i,o?ch(t,new ce(fe,e,r)):[]}function dh(t,e,n,r){var i=t.jb;return D(r>i.Bc,"Stacking an older merge on top of newer ones"),i.la.push({path:e,children:n,Zc:r,visible:!0}),i.S=vf(i.S,e,n),i.Bc=r,n=xd(n),ch(t,new ae(fe,e,n))}function eh(t,e,n){n=n||!1;var r=Ef(t.jb,e);if(t.jb.Ed(e)){var i=R;return null!=r.Ga?i=i.set(Q,!0):fb(r.children,function(t,e){i=i.set(new E(t),e)}),ch(t,new de(r.path,i,n))}return[]}function fh(t,e,n){return n=xd(n),ch(t,new ae(ie,e,n))}function gh(t,e,n,r){if(null!=(r=hh(t,r))){var i=ih(r);return r=i.path,i=i.Hb,e=P(r,e),n=new ce(new he(!1,!0,i,!0),e,n),jh(t,r,n)}return[]}function kh(t,e,n,r){if(r=hh(t,r)){var i=ih(r);return r=i.path,i=i.Hb,e=P(r,e),n=xd(n),n=new ae(new he(!1,!0,i,!0),e,n),jh(t,r,n)}return[]}function oh(t){return Bd(t,function(t,e,n){if(e&&null!=Yg(e))return[Yg(e)];var r=[];return e&&(r=Zg(e)),v(n,function(t){r=r.concat(t)}),r})}function sh(t,e){for(var n=0;nn?Math.max(0,t.length+n):n,p(t))return p(e)&&1==e.length?t.indexOf(e,n):-1;for(;nparseFloat(e)&&String(t))}();var Ya=null,Za=null,$a=null,hb=firebase.Promise;g=ub.prototype,g.set=function(t,e){null==e?this.uc.removeItem(this.Cd+t):this.uc.setItem(this.Cd+t,x(e))},g.get=function(t){return t=this.uc.getItem(this.Cd+t),null==t?null:lb(t)},g.remove=function(t){this.uc.removeItem(this.Cd+t)},g.Ze=!1,g.toString=function(){return this.uc.toString()},vb.prototype.set=function(t,e){null==e?delete this.pc[t]:this.pc[t]=e},vb.prototype.get=function(t){return eb(this.pc,t)?this.pc[t]:null},vb.prototype.remove=function(t){delete this.pc[t]},vb.prototype.Ze=!0;var xb=wb("localStorage"),yb=wb("sessionStorage");zb.prototype.toString=function(){var t=(this.Sc?"https://":"http://")+this.host;return this.gf&&(t+="<"+this.gf+">"),t};var Lb=function(){var t=1;return function(){return t++}}(),D=cb,Mb=db,Qb=null,Rb=!0,ec=/^-?\d{1,10}$/,mc={};lc.prototype.nd=function(t,e){return 0!==this.compare(new C("[MIN_NAME]",t),new C("[MIN_NAME]",e))},lc.prototype.Hc=function(){return oc},la(pc,lc),g=pc.prototype,g.xc=function(t){return!t.P(this.bc).e()},g.compare=function(t,e){var n=t.R.P(this.bc),r=e.R.P(this.bc),n=n.sc(r);return 0===n?sb(t.name,e.name):n},g.Ec=function(t,e){var n=G(t),n=L.F(this.bc,n);return new C(e,n)},g.Fc=function(){return new C("[MAX_NAME]",L.F(this.bc,qc))},g.toString=function(){return this.bc.slice().join("/")},la(rc,lc),g=rc.prototype,g.compare=function(t,e){var n=t.R.C(),r=e.R.C(),n=n.sc(r);return 0===n?sb(t.name,e.name):n},g.xc=function(t){return!t.C().e()},g.nd=function(t,e){return!t.C().Z(e.C())},g.Hc=function(){return oc},g.Fc=function(){return new C("[MAX_NAME]",new Kb("[PRIORITY-POST]",qc))},g.Ec=function(t,e){return new C(e,new Kb("[PRIORITY-POST]",G(t)))},g.toString=function(){return".priority"};var H=new rc;la(sc,lc),g=sc.prototype,g.compare=function(t,e){return sb(t.name,e.name)},g.xc=function(){throw Mb("KeyIndex.isDefinedOn not expected to be called.")},g.nd=function(){return!1},g.Hc=function(){return oc},g.Fc=function(){return new C("[MAX_NAME]",L)},g.Ec=function(t){return D(p(t),"KeyIndex indexValue must always be a string."),new C(t,L)},g.toString=function(){return".key"};var tc=new sc;la(uc,lc),g=uc.prototype,g.compare=function(t,e){var n=t.R.sc(e.R);return 0===n?sb(t.name,e.name):n},g.xc=function(){return!0},g.nd=function(t,e){return!t.Z(e)},g.Hc=function(){return oc},g.Fc=function(){return vc},g.Ec=function(t,e){return new C(e,G(t))},g.toString=function(){return".value"};var wc=new uc;xc.prototype.get=function(t){var e=w(this.od,t);if(!e)throw Error("No index defined for "+t);return e===mc?null:e};var Bc=new xc({".priority":mc},{".priority":H}),Dc=["object","boolean","number","string"];g=Kb.prototype,g.J=function(){return!0},g.C=function(){return this.aa},g.fa=function(t){return new Kb(this.B,t)},g.Q=function(t){return".priority"===t?this.aa:L},g.P=function(t){return t.e()?this:".priority"===K(t)?this.aa:L},g.Da=function(){return!1},g.Ve=function(){return null},g.T=function(t,e){return".priority"===t?this.fa(e):e.e()&&".priority"!==t?this:L.T(t,e).fa(this.aa)},g.F=function(t,e){var n=K(t);return null===n?e:e.e()&&".priority"!==n?this:(D(".priority"!==n||1===Ec(t),".priority must be the last token in a path"),this.T(n,L.F(N(t),e)))},g.e=function(){return!1},g.Eb=function(){return 0},g.O=function(){return!1},g.H=function(t){return t&&!this.C().e()?{".value":this.Ca(),".priority":this.C().H()}:this.Ca()},g.hash=function(){if(null===this.Db){var t="";this.aa.e()||(t+="priority:"+Fc(this.aa.H())+":");var e=typeof this.B,t=t+(e+":"),t="number"===e?t+dc(this.B):t+this.B;this.Db=Ob(t)}return this.Db},g.Ca=function(){return this.B},g.sc=function(t){if(t===L)return 1;if(t instanceof O)return-1;D(t.J(),"Unknown node type");var e=typeof t.B,n=typeof this.B,r=xa(Dc,e),i=xa(Dc,n);return D(0<=r,"Unknown leaf type: "+e),D(0<=i,"Unknown leaf type: "+n),r===i?"object"===n?0:this.Bo;o++)e[o]=Math.floor(64*Math.random());for(o=0;12>o;o++)n+="-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz".charAt(e[o]);return D(20===n.length,"nextPushId: Length should be 20."),n}}();la(Lc,Ic),Lc.prototype.Ue=function(t){return D("online"===t,"Unknown event type: "+t),[this.hc]},ca(Lc),la(Mc,Ic),Mc.prototype.Ue=function(t){return D("visible"===t,"Unknown event type: "+t),[this.Mb]},ca(Mc),g=E.prototype,g.toString=function(){for(var t="",e=this.Y;e=this.o.length)return null;for(var t=[],e=this.Y;e=this.o.length},g.Z=function(t){if(Ec(this)!==Ec(t))return!1;for(var e=this.Y,n=t.Y;e<=this.o.length;e++,n++)if(this.o[e]!==t.o[n])return!1;return!0},g.contains=function(t){var e=this.Y,n=t.Y;if(Ec(this)>Ec(t))return!1;for(;ee?n=n.left:0r?i.X(null,null,null,i.left.Oa(t,e,n),null):0===r?i.X(null,e,null,null,null):i.X(null,null,null,null,i.right.Oa(t,e,n)),gd(i)},g.remove=function(t,e){var n,r;if(n=this,0>e(t,n.key))n.left.e()||n.left.ea()||n.left.left.ea()||(n=id(n)),n=n.X(null,null,null,n.left.remove(t,e),null);else{if(n.left.ea()&&(n=jd(n)),n.right.e()||n.right.ea()||n.right.left.ea()||(n=kd(n),n.left.left.ea()&&(n=jd(n),n=kd(n))),0===e(t,n.key)){if(n.right.e())return $c;r=ed(n.right),n=n.X(r.key,r.value,null,null,hd(n.right))}n=n.X(null,null,null,null,n.right.remove(t,e))}return gd(n)},g.ea=function(){return this.color},g=md.prototype,g.X=function(){return this},g.Oa=function(t,e){return new dd(t,e,null)},g.remove=function(){return this},g.count=function(){return 0},g.e=function(){return!0},g.ha=function(){return!1},g.Gc=function(){return null},g.ec=function(){return null},g.ea=function(){return!1};var $c=new md;g=O.prototype,g.J=function(){return!1},g.C=function(){return this.aa||L},g.fa=function(t){return this.k.e()?this:new O(this.k,t,this.yb)},g.Q=function(t){return".priority"===t?this.C():(t=this.k.get(t),null===t?L:t)},g.P=function(t){var e=K(t);return null===e?this:this.Q(e).P(N(t))},g.Da=function(t){return null!==this.k.get(t)},g.T=function(t,e){if(D(e,"We should always be passing snapshot nodes"),".priority"===t)return this.fa(e);var n,r,i=new C(t,e);return e.e()?(n=this.k.remove(t),i=Ac(this.yb,i,this.k)):(n=this.k.Oa(t,e),i=yc(this.yb,i,this.k)),r=n.e()?L:this.aa,new O(n,r,i)},g.F=function(t,e){var n=K(t);if(null===n)return e;D(".priority"!==K(t)||1===Ec(t),".priority must be the last token in a path");var r=this.Q(n).F(N(t),e);return this.T(n,r)},g.e=function(){return this.k.e()},g.Eb=function(){return this.k.count()};var nd=/^(0|[1-9]\d*)$/;g=O.prototype,g.H=function(t){if(this.e())return null;var e={},n=0,r=0,i=!0;if(this.O(H,function(o,a){e[o]=a.H(t),n++,i&&nd.test(o)?r=Math.max(r,Number(o)):i=!1}),!t&&i&&r<2*n){var o,a=[];for(o in e)a[o]=e[o];return a}return t&&!this.C().e()&&(e[".priority"]=this.C().H()),e},g.hash=function(){if(null===this.Db){var t="";this.C().e()||(t+="priority:"+Fc(this.C().H())+":"),this.O(H,function(e,n){var r=n.hash();""!==r&&(t+=":"+e+":"+r)}),this.Db=""===t?"":Ob(t)}return this.Db},g.Ve=function(t,e,n){return(n=od(this,n))?(t=ad(n,new C(t,e)))?t.name:null:ad(this.k,t)},g.O=function(t,e){var n=od(this,t);return n?n.ha(function(t){return e(t.name,t.R)}):this.k.ha(e)},g.Wb=function(t){return this.Xb(t.Hc(),t)},g.Xb=function(t,e){var n=od(this,e);if(n)return n.Xb(t,function(t){return t});for(var n=this.k.Xb(t.name,qb),r=cd(n);null!=r&&0>e.compare(r,t);)M(n),r=cd(n);return n},g.We=function(t){return this.Zb(t.Fc(),t)},g.Zb=function(t,e){var n=od(this,e);if(n)return n.Zb(t,function(t){return t});for(var n=this.k.Zb(t.name,qb),r=cd(n);null!=r&&0=this.g.compare(this.Uc,t)&&0>=this.g.compare(t,this.vc)},g.F=function(t,e,n,r,i,o){return this.matches(new C(e,n))||(n=L),this.he.F(t,e,n,r,i,o)},g.ya=function(t,e,n){e.J()&&(e=L);var r=e.nb(this.g),r=r.fa(L),i=this;return e.O(H,function(t,e){i.matches(new C(t,e))||(r=r.T(t,L))}),this.he.ya(t,r,n)},g.fa=function(t){return t},g.Na=function(){return!0},g.Ub=function(){return this.he},g=Re.prototype,g.F=function(t,e,n,r,i,o){return this.sa.matches(new C(e,n))||(n=L),t.Q(e).Z(n)?t:t.Eb()=this.g.compare(this.sa.Uc,o):0>=this.g.compare(o,this.sa.vc)))break;r=r.T(o.name,o.R),i++}}else{r=e.nb(this.g),r=r.fa(L);var a,s,u;if(this.Ib){e=r.We(this.g),a=this.sa.vc,s=this.sa.Uc;var c=nc(this.g);u=function(t,e){return c(e,t)}}else e=r.Wb(this.g),a=this.sa.Uc,s=this.sa.vc,u=nc(this.g);for(var i=0,f=!1;0=u(a,o)&&(f=!0),f&&i=u(o,s)?i++:r=r.T(o.name,L)}return this.sa.Ub().ya(t,r,n)},g.fa=function(t){return t},g.Na=function(){return!0},g.Ub=function(){return this.sa.Ub()};var Me="child_added",Le="child_removed",Ie="child_changed",Je="child_moved",Ne="value",mf=new lf;g=lf.prototype,g.ne=function(t){var e=nf(this);return e.xa=!0,e.oa=t,e.mb="l",e},g.oe=function(t){var e=nf(this);return e.xa=!0,e.oa=t,e.mb="r",e},g.Nd=function(t,e){var r=nf(this);return r.ka=!0,n(t)||(t=null),r.dc=t,null!=e?(r.Kb=!0,r.zb=e):(r.Kb=!1,r.zb=""),r},g.gd=function(t,e){var r=nf(this);return r.na=!0,n(t)||(t=null),r.ac=t,n(e)?(r.Rb=!0,r.xb=e):(r.vg=!1,r.xb=""),r},g.toString=function(){return x(pf(this))};var tf=new sf(new vd(null));sf.prototype.Ed=function(t){return t.e()?tf:(t=Ad(this.W,t,R),new sf(t))},sf.prototype.e=function(){return this.W.e()},sf.prototype.apply=function(t){return zf(Q,this.W,t)},Af.prototype.j=function(t){return this.Jd.P(t)},Af.prototype.toString=function(){return this.Jd.toString()},Bf.prototype.getToken=function(t){return this.oc.INTERNAL.getToken(t).then(null,function(t){return t&&"auth/token-not-initialized"===t.code?(I("Got auth/token-not-initialized error. Treating as null token."),null):Promise.reject(t)})},g=Df.prototype,g.Ed=function(t){var e=Ea(this.la,function(e){return e.Zc===t});D(0<=e,"removeWrite called with nonexistent writeId.");var n=this.la[e];this.la.splice(e,1);for(var r=n.visible,i=!1,o=this.la.length-1;r&&0<=o;){var a=this.la[o];a.visible&&(o>=e&&Ff(a,n.path)?r=!1:n.path.contains(a.path)&&(i=!0)),o--}if(r){if(i)this.S=Gf(this.la,Hf,Q),this.Bc=0=t.length){var e=Number(t);if(!isNaN(e)){r.Fe=e,r.frames=[],t=null;break t}}r.Fe=1,r.frames=[]}null!==t&&ag(r,t)}},this.Ia.onerror=function(t){r.f("WebSocket error. Closing connection."),(t=t.message||t.data)&&r.f(t),r.bb()}},Yf.prototype.start=function(){},Yf.isAvailable=function(){var t=!1;if("undefined"!=typeof navigator&&navigator.userAgent){var e=navigator.userAgent.match(/Android ([0-9]{0,}\.[0-9]{0,})/);e&&1parseFloat(e[1])&&(t=!0)}return!t&&null!==Xf&&!Zf},Yf.responsesRequiredToBeHealthy=2,Yf.healthyTimeout=3e4,g=Yf.prototype,g.sd=function(){xb.remove("previous_websocket_failure")},g.send=function(t){$f(this),t=x(t),this.qb+=t.length,Mf(this.Va,"bytes_sent",t.length),t=bc(t,16384),1=t)throw Error("Query.limitToFirst: First argument must be a positive integer.");if(this.m.xa)throw Error("Query.limitToFirst: Limit was already set (by another call to limit, limitToFirst, or limitToLast).");return new X(this.u,this.path,this.m.ne(t),this.Nc)},g.oe=function(t){if(y("Query.limitToLast",1,1,arguments.length),!ga(t)||Math.floor(t)!==t||0>=t)throw Error("Query.limitToLast: First argument must be a positive integer.");if(this.m.xa)throw Error("Query.limitToLast: Limit was already set (by another call to limit, limitToFirst, or limitToLast).");return new X(this.u,this.path,this.m.oe(t),this.Nc)},g.ag=function(t){if(y("Query.orderByChild",1,1,arguments.length),"$key"===t)throw Error('Query.orderByChild: "$key" is invalid. Use Query.orderByKey() instead.');if("$priority"===t)throw Error('Query.orderByChild: "$priority" is invalid. Use Query.orderByPriority() instead.');if("$value"===t)throw Error('Query.orderByChild: "$value" is invalid. Use Query.orderByValue() instead.');Vd("Query.orderByChild",t),Sh(this,"Query.orderByChild");var e=new E(t);if(e.e())throw Error("Query.orderByChild: cannot pass in empty path. Use Query.orderByValue() instead.");return e=new pc(e),e=of(this.m,e),Qh(e),new X(this.u,this.path,e,!0)},g.bg=function(){y("Query.orderByKey",0,0,arguments.length),Sh(this,"Query.orderByKey");var t=of(this.m,tc);return Qh(t),new X(this.u,this.path,t,!0)},g.cg=function(){y("Query.orderByPriority",0,0,arguments.length),Sh(this,"Query.orderByPriority");var t=of(this.m,H);return Qh(t),new X(this.u,this.path,t,!0)},g.dg=function(){y("Query.orderByValue",0,0,arguments.length),Sh(this,"Query.orderByValue");var t=of(this.m,wc);return Qh(t),new X(this.u,this.path,t,!0)},g.Nd=function(t,e){y("Query.startAt",0,2,arguments.length),Od("Query.startAt",t,this.path,!0),Ud("Query.startAt",e);var r=this.m.Nd(t,e);if(Rh(r),Qh(r),this.m.ka)throw Error("Query.startAt: Starting point was already set (by another call to startAt or equalTo).");return n(t)||(e=t=null),new X(this.u,this.path,r,this.Nc)},g.gd=function(t,e){y("Query.endAt",0,2,arguments.length),Od("Query.endAt",t,this.path,!0),Ud("Query.endAt",e);var n=this.m.gd(t,e);if(Rh(n),Qh(n),this.m.na)throw Error("Query.endAt: Ending point was already set (by another call to endAt or equalTo).");return new X(this.u,this.path,n,this.Nc)},g.If=function(t,e){if(y("Query.equalTo",1,2,arguments.length),Od("Query.equalTo",t,this.path,!1),Ud("Query.equalTo",e),this.m.ka)throw Error("Query.equalTo: Starting point was already set (by another call to startAt or equalTo).");if(this.m.na)throw Error("Query.equalTo: Ending point was already set (by another call to endAt or equalTo).");return this.Nd(t,e).gd(t,e)},g.toString=function(){y("Query.toString",0,0,arguments.length);for(var t=this.path,e="",n=t.Y;n1)for(var n=1;n0&&void 0!==arguments[0]?arguments[0]:{},e=arguments[1];if(u)throw u;for(var i=!1,o={},a=0;a',"check_6f362e783daf27935327305f0b1156fa")},348:function(t,e,n){var r=n(129);t.exports=r.add('',"error_6d30a9bbad4441fa9f56d5f649097e85")},349:function(t,e,n){function r(t){return Array.prototype.slice.call(t,0)}function i(t){return t.replace(/\(|\)/g,"\\$&")}function o(t,e,n){var o=t.querySelectorAll(f);o&&r(o).forEach(function(t){t.attributes&&r(t.attributes).forEach(function(r){var o=r.localName.toLowerCase();if(-1!==c.indexOf(o)){var a=l.exec(t.getAttribute(o));if(a&&0===a[1].indexOf(e)){var s=i(n+a[1].split(e)[1]);t.setAttribute(o,"url("+s+")")}}})})}function a(t){try{if(document.importNode)return document.importNode(t,!0)}catch(t){}return t}function s(){var t=document.getElementsByTagName("base")[0],e=window.location.href.split("#")[0],n=t&&t.href;this.urlPrefix=n&&n!==e?e+p:p;var i=new u;i.sniff(),this.browser=i.browser,this.content=[],"ie"!==this.browser.name&&n&&window.addEventListener("spriteLoaderLocationUpdated",function(t){var e=this.urlPrefix,n=t.detail.newUrl.split(p)[0]+p;o(this.svg,e,n),this.urlPrefix=n,("chrome"!==this.browser.name||this.browser.version[0]>=49)&&r(document.querySelectorAll("use[*|href]")).forEach(function(t){var r=t.getAttribute(d);r&&0===r.indexOf(e)&&t.setAttributeNS(b,d,n+r.split(p)[1])})}.bind(this))}var u=n(346),c=["clipPath","colorProfile","src","cursor","fill","filter","marker","markerStart","markerMid","markerEnd","mask","stroke"],f="["+c.join("],[")+"]",l=/^url\((.*)\)$/,h=function(t){for(var e=t.querySelector("defs"),n=t.querySelectorAll("symbol linearGradient, symbol radialGradient, symbol pattern"),r=0,i=n.length;r{content}'},s.symbolTemplate=function(){return g+">{content}"},s.prototype.content=null,s.prototype.add=function(t,e){return this.svg&&this.appendSymbol(t),this.content.push(t),p+e},s.prototype.wrapSVG=function(t,e){var n=e.replace("{content}",t),r=(new DOMParser).parseFromString(n,"image/svg+xml").documentElement,i=a(r);return"ie"!==this.browser.name&&this.urlPrefix&&o(i,p,this.urlPrefix),i},s.prototype.appendSymbol=function(t){var e=this.wrapSVG(t,s.symbolTemplate()).childNodes[0];this.svg.querySelector("defs").appendChild(e),"firefox"===this.browser.name&&h(this.svg)},s.prototype.toString=function(){var t=document.createElement("div");return t.appendChild(this.render()),t.innerHTML},s.prototype.render=function(t,e){t=t||null,e="boolean"!=typeof e||e;var n=this.wrapSVG(this.content.join(""),s.spriteTemplate());return"firefox"===this.browser.name&&h(n),t&&(e&&t.childNodes[0]?t.insertBefore(n,t.childNodes[0]):t.appendChild(n)),this.svg=n,n},t.exports=s},350:function(t,e,n){t.exports=n(351)},351:function(t,e,n){"use strict";(function(t,r){Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(352),a=function(t){return t&&t.__esModule?t:{default:t}}(o);i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:r;var s=(0,a.default)(i);e.default=s}).call(e,n(46),n(353)(t))},352:function(t,e,n){"use strict";function r(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r},353:function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},88:function(t,e){t.exports={header__logo:"header__logo",header__count:"header__count",count__title:"count__title",count__figure:"count__figure",header__footer:"header__footer",help:"help",count__message:"count__message",header__info:"header__info",slideIn:"slideIn",popDown:"popDown"}},89:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(128),i=n(343),o=n(342),a=n(341),s=n(127);n(90),n.d(e,"createStore",function(){return r.a}),n.d(e,"combineReducers",function(){return i.a}),n.d(e,"bindActionCreators",function(){return o.a}),n.d(e,"applyMiddleware",function(){return a.a}),n.d(e,"compose",function(){return s.a})},90:function(t,e,n){"use strict";function r(t){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(t);try{throw new Error(t)}catch(t){}}e.a=r},91:function(t,e,n){!function(e,r){t.exports=function(t,e){function n(){}function r(){var t=[],e=[];return{clear:function(){e=Q,t=Q},notify:function(){for(var n=t=e,r=0;r does not support changing `store` on the fly. It is most likely that you see this error because you updated to Redux 2.x and React Redux 2.x which no longer hot reload reducers automatically. See https://github.com/reactjs/react-redux/releases/tag/v2.0.0 for the migration instructions."))}function a(e){var n,r,i=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=i.getDisplayName,a=void 0===o?function(t){return"ConnectAdvanced("+t+")"}:o,s=i.methodName,u=void 0===s?"connectAdvanced":s,c=i.renderCountProp,f=void 0===c?void 0:c,l=i.shouldHandleStateChanges,h=void 0===l||l,p=i.storeKey,d=void 0===p?"store":p,b=i.withRef,g=void 0!==b&&b,v=R(i,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),y=d+"Subscription",m=Y++,w=(n={},n[d]=B,n[y]=D.instanceOf(q),n),S=(r={},r[y]=D.instanceOf(q),r);return function(n){z("function"==typeof n,"You must pass a component to the function returned by connect. Instead received "+n);var r=n.displayName||n.name||"Component",i=a(r),o=F({},v,{getDisplayName:a,methodName:u,renderCountProp:f,shouldHandleStateChanges:h,storeKey:d,withRef:g,displayName:i,wrappedComponentName:r,WrappedComponent:n}),s=function(r){function a(t,e){N(this,a);var n=U(this,r.call(this,t,e));return n.version=m,n.state={},n.renderCount=0,n.store=n.props[d]||n.context[d],n.parentSub=t[y]||e[y],n.setWrappedInstance=n.setWrappedInstance.bind(n),z(n.store,'Could not find "'+d+'" in either the context or props of "'+i+'". Either wrap the root component in a , or explicitly pass "'+d+'" as a prop to "'+i+'".'),n.getState=n.store.getState.bind(n.store),n.initSelector(),n.initSubscription(),n}return L(a,r),a.prototype.getChildContext=function(){var t;return t={},t[y]=this.subscription||this.parentSub,t},a.prototype.componentDidMount=function(){h&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},a.prototype.componentWillReceiveProps=function(t){this.selector.run(t)},a.prototype.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},a.prototype.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.store=null,this.parentSub=null,this.selector.run=function(){}},a.prototype.getWrappedInstance=function(){return z(g,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+u+"() call."),this.wrappedInstance},a.prototype.setWrappedInstance=function(t){this.wrappedInstance=t},a.prototype.initSelector=function(){var t=this.store.dispatch,n=this.getState,r=e(t,o),i=this.selector={shouldComponentUpdate:!0,props:r(n(),this.props),run:function(t){try{var e=r(n(),t);(i.error||e!==i.props)&&(i.shouldComponentUpdate=!0,i.props=e,i.error=null)}catch(t){i.shouldComponentUpdate=!0,i.error=t}}}},a.prototype.initSubscription=function(){var t=this;h&&function(){var e=t.subscription=new q(t.store,t.parentSub),n={};e.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=function(){this.componentDidUpdate=void 0,e.notifyNestedSubs()},this.setState(n)):e.notifyNestedSubs()}.bind(t)}()},a.prototype.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},a.prototype.addExtraProps=function(t){if(!g&&!f)return t;var e=F({},t);return g&&(e.ref=this.setWrappedInstance),f&&(e[f]=this.renderCount++),e},a.prototype.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return t.h(n,this.addExtraProps(e.props))},a}(t.Component);return s.WrappedComponent=n,s.displayName=i,s.childContextTypes=S,s.contextTypes=w,s.prototype.componentWillUpdate=function(){this.version!==m&&(this.version=m,this.initSelector(),this.subscription&&this.subscription.tryUnsubscribe(),this.initSubscription(),h&&this.subscription.trySubscribe())},J(s,n)}}function s(t,e){if(t===e)return!0;var n=0,r=0;for(var i in t){if($.call(t,i)&&t[i]!==e[i])return!1;n++}for(var o in e)$.call(e,o)&&r++;return n===r}function u(t){return Z(Object(t))}function c(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function f(t){return!!t&&"object"==(void 0===t?"undefined":M(t))}function l(t){if(!f(t)||ot.call(t)!=tt||c(t))return!1;var e=u(t);if(null===e)return!0;var n=rt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&nt.call(n)==it}function h(t,e,n){l(t)||i(n+"() in "+e+" must return a plain object. Instead received "+t+".")}function p(t){return function(e,n){function r(){return i}var i=t(e,n);return r.dependsOnOwnProps=!1,r}}function d(t){return null!==t.dependsOnOwnProps&&void 0!==t.dependsOnOwnProps?Boolean(t.dependsOnOwnProps):1!==t.length}function b(t,e){return function(n,r){var i=r.displayName,o=function(t,e){return o.dependsOnOwnProps?o.mapToProps(t,e):o.mapToProps(t)};return o.dependsOnOwnProps=d(t),o.mapToProps=function(n,r){o.mapToProps=t;var a=o(n,r);return"function"==typeof a&&(o.mapToProps=a,o.dependsOnOwnProps=d(a),a=o(n,r)),h(a,i,e),a},o}}function g(t){return"function"==typeof t?b(t,"mapDispatchToProps"):void 0}function v(t){return t?void 0:p(function(t){return{dispatch:t}})}function y(t){return t&&"object"===(void 0===t?"undefined":M(t))?p(function(n){return e.bindActionCreators(t,n)}):void 0}function m(t){return"function"==typeof t?b(t,"mapStateToProps"):void 0}function w(t){return t?void 0:p(function(){return{}})}function S(t,e,n){return F({},n,t,e)}function E(t){return function(e,n){var r=n.displayName,i=n.pure,o=n.areMergedPropsEqual,a=!1,s=void 0;return function(e,n,u){var c=t(e,n,u);return a?i&&o(c,s)||(s=c):(a=!0,s=c,h(s,r,"mergeProps")),s}}}function k(t){return"function"==typeof t?E(t):void 0}function T(t){return t?void 0:function(){return S}}function O(t,e,n){if(!t)throw new Error("Unexpected value for "+e+" in "+n+".");"mapStateToProps"!==e&&"mapDispatchToProps"!==e||t.hasOwnProperty("dependsOnOwnProps")||i("The selector for "+e+" of "+n+" did not specify a value for dependsOnOwnProps.")}function _(t,e,n,r){O(t,"mapStateToProps",r),O(e,"mapDispatchToProps",r),O(n,"mergeProps",r)}function j(t,e,n,r){return function(i,o){return n(t(i,o),e(r,o),o)}}function A(t,e,n,r,i){function o(i,o){return d=i,b=o,g=t(d,b),v=e(r,b),y=n(g,v,b),p=!0,y}function a(){return g=t(d,b),e.dependsOnOwnProps&&(v=e(r,b)),y=n(g,v,b)}function s(){return t.dependsOnOwnProps&&(g=t(d,b)),e.dependsOnOwnProps&&(v=e(r,b)),y=n(g,v,b)}function u(){var e=t(d,b),r=!h(e,g);return g=e,r&&(y=n(g,v,b)),y}function c(t,e){var n=!l(e,b),r=!f(t,d);return d=t,b=e,n&&r?a():n?s():r?u():y}var f=i.areStatesEqual,l=i.areOwnPropsEqual,h=i.areStatePropsEqual,p=!1,d=void 0,b=void 0,g=void 0,v=void 0,y=void 0;return function(t,e){return p?c(t,e):o(t,e)}}function x(t,e){var n=e.initMapStateToProps,r=e.initMapDispatchToProps,i=e.initMergeProps,o=R(e,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(t,o),s=r(t,o),u=i(t,o);return _(a,s,u,o.displayName),(o.pure?A:j)(a,s,u,t,o)}function P(t,e,n){for(var r=e.length-1;r>=0;r--){var i=e[r](t);if(i)return i}return function(e,r){throw new Error("Invalid value of type "+(void 0===t?"undefined":M(t))+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function C(t,e){return t===e}var I={only:function(t){return t&&t[0]||null}};n.isRequired=n;var D={element:n,func:n,shape:function(){return n},instanceOf:function(){return n}},M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},N=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},F=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},U=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e},Q=null,W={notify:function(){}},q=function(){function t(e,n){N(this,t),this.store=e,this.parentSub=n,this.unsubscribe=null,this.listeners=W}return t.prototype.addNestedSub=function(t){return this.trySubscribe(),this.listeners.subscribe(t)},t.prototype.notifyNestedSubs=function(){this.listeners.notify()},t.prototype.isSubscribed=function(){return Boolean(this.unsubscribe)},t.prototype.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=r())},t.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=W)},t}(),B=D.shape({subscribe:D.func.isRequired,dispatch:D.func.isRequired,getState:D.func.isRequired}),K=!1,V=function(t){function e(n,r){N(this,e);var i=U(this,t.call(this,n,r));return i.store=n.store,i}return L(e,t),e.prototype.getChildContext=function(){return{store:this.store,storeSubscription:null}},e.prototype.render=function(){return I.only(this.props.children)},e}(t.Component);V.prototype.componentWillReceiveProps=function(t){this.store!==t.store&&o()},V.childContextTypes={store:B.isRequired,storeSubscription:D.instanceOf(q)},V.displayName="Provider";var H={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},G={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0},X="function"==typeof Object.getOwnPropertySymbols,J=function(t,e,n){if("string"!=typeof e){var r=Object.getOwnPropertyNames(e);X&&(r=r.concat(Object.getOwnPropertySymbols(e)));for(var i=0;i