text: var firebase = require('./app');
  /*! @license Firebase v3.5.1
      Build: 3.5.1-rc.1
      Terms: https://developers.google.com/terms */
  (function(){var h,aa=aa||{},l=this,ba=function(){},ca=function(){throw Error("unimplemented abstract method");},m=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=
  typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"==b&&"undefined"==typeof a.call)return"object";return b},da=function(a){return null===a},ea=function(a){return"array"==m(a)},fa=function(a){var b=m(a);return"array"==b||"object"==b&&"number"==typeof a.length},n=function(a){return"string"==typeof a},ga=function(a){return"number"==typeof a},p=function(a){return"function"==m(a)},ha=function(a){var b=typeof a;
  return"object"==b&&null!=a||"function"==b},ia=function(a,b,c){return a.call.apply(a.bind,arguments)},ja=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}},q=function(a,b,c){q=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ia:ja;return q.apply(null,
  arguments)},ka=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=c.slice();b.push.apply(b,arguments);return a.apply(this,b)}},la=Date.now||function(){return+new Date},r=function(a,b){function c(){}c.prototype=b.prototype;a.Vc=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.df=function(a,c,f){for(var d=Array(arguments.length-2),e=2;e<arguments.length;e++)d[e-2]=arguments[e];return b.prototype[c].apply(a,d)}};var u=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,u);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};r(u,Error);u.prototype.name="CustomError";var ma=function(a,b){for(var c=a.split("%s"),d="",e=Array.prototype.slice.call(arguments,1);e.length&&1<c.length;)d+=c.shift()+e.shift();return d+c.join("%s")},na=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},oa=/&/g,pa=/</g,qa=/>/g,ra=/"/g,sa=/'/g,ta=/\x00/g,va=/[\x00&<>"']/,v=function(a,b){return-1!=a.indexOf(b)},wa=function(a,b){return a<b?-1:a>b?1:0};var xa=function(a,b){b.unshift(a);u.call(this,ma.apply(null,b));b.shift()};r(xa,u);xa.prototype.name="AssertionError";
  var ya=function(a,b,c,d){var e="Assertion failed";if(c)var e=e+(": "+c),f=d;else a&&(e+=": "+a,f=b);throw new xa(""+e,f||[]);},w=function(a,b,c){a||ya("",null,b,Array.prototype.slice.call(arguments,2))},za=function(a,b){throw new xa("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1));},Aa=function(a,b,c){ga(a)||ya("Expected number but got %s: %s.",[m(a),a],b,Array.prototype.slice.call(arguments,2));return a},Ba=function(a,b,c){n(a)||ya("Expected string but got %s: %s.",[m(a),a],b,Array.prototype.slice.call(arguments,
  2))},Ca=function(a,b,c){p(a)||ya("Expected function but got %s: %s.",[m(a),a],b,Array.prototype.slice.call(arguments,2))};var Da=Array.prototype.indexOf?function(a,b,c){w(null!=a.length);return Array.prototype.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(n(a))return n(b)&&1==b.length?a.indexOf(b,c):-1;for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},x=Array.prototype.forEach?function(a,b,c){w(null!=a.length);Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=n(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},Ea=function(a,b){for(var c=n(a)?
  a.split(""):a,d=a.length-1;0<=d;--d)d in c&&b.call(void 0,c[d],d,a)},Fa=Array.prototype.map?function(a,b,c){w(null!=a.length);return Array.prototype.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=n(a)?a.split(""):a,g=0;g<d;g++)g in f&&(e[g]=b.call(c,f[g],g,a));return e},Ga=Array.prototype.some?function(a,b,c){w(null!=a.length);return Array.prototype.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=n(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return!0;return!1},
  Ia=function(a){var b;a:{b=Ha;for(var c=a.length,d=n(a)?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a)){b=e;break a}b=-1}return 0>b?null:n(a)?a.charAt(b):a[b]},Ja=function(a,b){return 0<=Da(a,b)},La=function(a,b){b=Da(a,b);var c;(c=0<=b)&&Ka(a,b);return c},Ka=function(a,b){w(null!=a.length);return 1==Array.prototype.splice.call(a,b,1).length},Ma=function(a,b){var c=0;Ea(a,function(d,e){b.call(void 0,d,e,a)&&Ka(a,e)&&c++})},Na=function(a){return Array.prototype.concat.apply(Array.prototype,
  arguments)},Oa=function(a){return Array.prototype.concat.apply(Array.prototype,arguments)},Pa=function(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]},Qa=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(fa(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var g=0;g<f;g++)a[e+g]=d[g]}else a.push(d)}};var Ra=function(a,b){for(var c in a)b.call(void 0,a[c],c,a)},Sa=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b},Ta=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b},Ua=function(a){for(var b in a)return!1;return!0},Va=function(a,b){for(var c in a)if(!(c in b)||a[c]!==b[c])return!1;for(c in b)if(!(c in a))return!1;return!0},Wa=function(a){var b={},c;for(c in a)b[c]=a[c];return b},Xa="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),
  Ya=function(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<Xa.length;f++)c=Xa[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};var Za;a:{var $a=l.navigator;if($a){var ab=$a.userAgent;if(ab){Za=ab;break a}}Za=""}var y=function(a){return v(Za,a)};var bb=function(a){bb[" "](a);return a};bb[" "]=ba;var db=function(a,b){var c=cb;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};var eb=y("Opera"),z=y("Trident")||y("MSIE"),fb=y("Edge"),gb=fb||z,hb=y("Gecko")&&!(v(Za.toLowerCase(),"webkit")&&!y("Edge"))&&!(y("Trident")||y("MSIE"))&&!y("Edge"),ib=v(Za.toLowerCase(),"webkit")&&!y("Edge"),jb=function(){var a=l.document;return a?a.documentMode:void 0},kb;
  a:{var lb="",mb=function(){var a=Za;if(hb)return/rv\:([^\);]+)(\)|;)/.exec(a);if(fb)return/Edge\/([\d\.]+)/.exec(a);if(z)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(ib)return/WebKit\/(\S+)/.exec(a);if(eb)return/(?:Version)[ \/]?(\S+)/.exec(a)}();mb&&(lb=mb?mb[1]:"");if(z){var nb=jb();if(null!=nb&&nb>parseFloat(lb)){kb=String(nb);break a}}kb=lb}
  var ob=kb,cb={},A=function(a){return db(a,function(){for(var b=0,c=na(String(ob)).split("."),d=na(String(a)).split("."),e=Math.max(c.length,d.length),f=0;0==b&&f<e;f++){var g=c[f]||"",k=d[f]||"";do{g=/(\d*)(\D*)(.*)/.exec(g)||["","","",""];k=/(\d*)(\D*)(.*)/.exec(k)||["","","",""];if(0==g[0].length&&0==k[0].length)break;b=wa(0==g[1].length?0:parseInt(g[1],10),0==k[1].length?0:parseInt(k[1],10))||wa(0==g[2].length,0==k[2].length)||wa(g[2],k[2]);g=g[3];k=k[3]}while(0==b)}return 0<=b})},pb;var qb=l.document;
  pb=qb&&z?jb()||("CSS1Compat"==qb.compatMode?parseInt(ob,10):5):void 0;var rb=null,sb=null,ub=function(a){var b="";tb(a,function(a){b+=String.fromCharCode(a)});return b},tb=function(a,b){function c(b){for(;d<a.length;){var c=a.charAt(d++),e=sb[c];if(null!=e)return e;if(!/^[\s\xa0]*$/.test(c))throw Error("Unknown base64 encoding at char: "+c);}return b}vb();for(var d=0;;){var e=c(-1),f=c(0),g=c(64),k=c(64);if(64===k&&-1===e)break;b(e<<2|f>>4);64!=g&&(b(f<<4&240|g>>2),64!=k&&b(g<<6&192|k))}},vb=function(){if(!rb){rb={};sb={};for(var a=0;65>a;a++)rb[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(a),
  sb[rb[a]]=a,62<=a&&(sb["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(a)]=a)}};var wb=!z||9<=Number(pb),xb=z&&!A("9");!ib||A("528");hb&&A("1.9b")||z&&A("8")||eb&&A("9.5")||ib&&A("528");hb&&!A("8")||z&&A("9");var yb=function(){this.Ba=this.Ba;this.Wb=this.Wb};yb.prototype.Ba=!1;yb.prototype.isDisposed=function(){return this.Ba};yb.prototype.Ra=function(){if(this.Wb)for(;this.Wb.length;)this.Wb.shift()()};var zb=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.Ya=!1;this.Bd=!0};zb.prototype.preventDefault=function(){this.defaultPrevented=!0;this.Bd=!1};var Ab=function(a,b){zb.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.charCode=this.keyCode=this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.ob=this.state=null;a&&this.init(a,b)};r(Ab,zb);
  Ab.prototype.init=function(a,b){var c=this.type=a.type,d=a.changedTouches?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=b;if(b=a.relatedTarget){if(hb){var e;a:{try{bb(b.nodeName);e=!0;break a}catch(f){}e=!1}e||(b=null)}}else"mouseover"==c?b=a.fromElement:"mouseout"==c&&(b=a.toElement);this.relatedTarget=b;null===d?(this.offsetX=ib||void 0!==a.offsetX?a.offsetX:a.layerX,this.offsetY=ib||void 0!==a.offsetY?a.offsetY:a.layerY,this.clientX=void 0!==a.clientX?a.clientX:
  a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0):(this.clientX=void 0!==d.clientX?d.clientX:d.pageX,this.clientY=void 0!==d.clientY?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.state=a.state;this.ob=a;a.defaultPrevented&&
  this.preventDefault()};Ab.prototype.preventDefault=function(){Ab.Vc.preventDefault.call(this);var a=this.ob;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,xb)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};Ab.prototype.le=function(){return this.ob};var Bb="closure_listenable_"+(1E6*Math.random()|0),Cb=0;var Db=function(a,b,c,d,e){this.listener=a;this.ac=null;this.src=b;this.type=c;this.Gb=!!d;this.Nb=e;this.key=++Cb;this.cb=this.Fb=!1},Eb=function(a){a.cb=!0;a.listener=null;a.ac=null;a.src=null;a.Nb=null};var Fb=function(a){this.src=a;this.A={};this.Cb=0};Fb.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.A[f];a||(a=this.A[f]=[],this.Cb++);var g=Gb(a,b,d,e);-1<g?(b=a[g],c||(b.Fb=!1)):(b=new Db(b,this.src,f,!!d,e),b.Fb=c,a.push(b));return b};Fb.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.A))return!1;var e=this.A[a];b=Gb(e,b,c,d);return-1<b?(Eb(e[b]),Ka(e,b),0==e.length&&(delete this.A[a],this.Cb--),!0):!1};
  var Hb=function(a,b){var c=b.type;c in a.A&&La(a.A[c],b)&&(Eb(b),0==a.A[c].length&&(delete a.A[c],a.Cb--))};Fb.prototype.Ac=function(a,b,c,d){a=this.A[a.toString()];var e=-1;a&&(e=Gb(a,b,c,d));return-1<e?a[e]:null};var Gb=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.cb&&f.listener==b&&f.Gb==!!c&&f.Nb==d)return e}return-1};var Ib="closure_lm_"+(1E6*Math.random()|0),Jb={},Kb=0,Lb=function(a,b,c,d,e){if(ea(b))for(var f=0;f<b.length;f++)Lb(a,b[f],c,d,e);else c=Mb(c),a&&a[Bb]?a.listen(b,c,d,e):Nb(a,b,c,!1,d,e)},Nb=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var g=!!e,k=Ob(a);k||(a[Ib]=k=new Fb(a));c=k.add(b,c,d,e,f);if(!c.ac){d=Pb();c.ac=d;d.src=a;d.listener=c;if(a.addEventListener)a.addEventListener(b.toString(),d,g);else if(a.attachEvent)a.attachEvent(Qb(b.toString()),d);else throw Error("addEventListener and attachEvent are unavailable.");
  Kb++}},Pb=function(){var a=Rb,b=wb?function(c){return a.call(b.src,b.listener,c)}:function(c){c=a.call(b.src,b.listener,c);if(!c)return c};return b},Sb=function(a,b,c,d,e){if(ea(b))for(var f=0;f<b.length;f++)Sb(a,b[f],c,d,e);else c=Mb(c),a&&a[Bb]?Tb(a,b,c,d,e):Nb(a,b,c,!0,d,e)},Ub=function(a,b,c,d,e){if(ea(b))for(var f=0;f<b.length;f++)Ub(a,b[f],c,d,e);else c=Mb(c),a&&a[Bb]?a.ba.remove(String(b),c,d,e):a&&(a=Ob(a))&&(b=a.Ac(b,c,!!d,e))&&Vb(b)},Vb=function(a){if(!ga(a)&&a&&!a.cb){var b=a.src;if(b&&
  b[Bb])Hb(b.ba,a);else{var c=a.type,d=a.ac;b.removeEventListener?b.removeEventListener(c,d,a.Gb):b.detachEvent&&b.detachEvent(Qb(c),d);Kb--;(c=Ob(b))?(Hb(c,a),0==c.Cb&&(c.src=null,b[Ib]=null)):Eb(a)}}},Qb=function(a){return a in Jb?Jb[a]:Jb[a]="on"+a},Xb=function(a,b,c,d){var e=!0;if(a=Ob(a))if(b=a.A[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var f=b[a];f&&f.Gb==c&&!f.cb&&(f=Wb(f,d),e=e&&!1!==f)}return e},Wb=function(a,b){var c=a.listener,d=a.Nb||a.src;a.Fb&&Vb(a);return c.call(d,b)},Rb=function(a,
  b){if(a.cb)return!0;if(!wb){if(!b)a:{b=["window","event"];for(var c=l,d;d=b.shift();)if(null!=c[d])c=c[d];else{b=null;break a}b=c}d=b;b=new Ab(d,this);c=!0;if(!(0>d.keyCode||void 0!=d.returnValue)){a:{var e=!1;if(0==d.keyCode)try{d.keyCode=-1;break a}catch(g){e=!0}if(e||void 0==d.returnValue)d.returnValue=!0}d=[];for(e=b.currentTarget;e;e=e.parentNode)d.push(e);a=a.type;for(e=d.length-1;!b.Ya&&0<=e;e--){b.currentTarget=d[e];var f=Xb(d[e],a,!0,b),c=c&&f}for(e=0;!b.Ya&&e<d.length;e++)b.currentTarget=
  d[e],f=Xb(d[e],a,!1,b),c=c&&f}return c}return Wb(a,new Ab(b,this))},Ob=function(a){a=a[Ib];return a instanceof Fb?a:null},Yb="__closure_events_fn_"+(1E9*Math.random()>>>0),Mb=function(a){w(a,"Listener can not be null.");if(p(a))return a;w(a.handleEvent,"An object listener must have handleEvent method.");a[Yb]||(a[Yb]=function(b){return a.handleEvent(b)});return a[Yb]};var Zb=/^[+a-zA-Z0-9_.!#$%&'*\/=?^`{|}~-]+@([a-zA-Z0-9-]+\.)+[a-zA-Z0-9]{2,63}$/;var ac=function(){this.kc="";this.Td=$b};ac.prototype.Qb=!0;ac.prototype.Lb=function(){return this.kc};ac.prototype.toString=function(){return"Const{"+this.kc+"}"};var bc=function(a){if(a instanceof ac&&a.constructor===ac&&a.Td===$b)return a.kc;za("expected object of type Const, got '"+a+"'");return"type_error:Const"},$b={},cc=function(a){var b=new ac;b.kc=a;return b};cc("");var B=function(){this.la="";this.Sd=dc};B.prototype.Qb=!0;B.prototype.Lb=function(){return this.la};B.prototype.toString=function(){return"SafeUrl{"+this.la+"}"};
  var ec=function(a){if(a instanceof B&&a.constructor===B&&a.Sd===dc)return a.la;za("expected object of type SafeUrl, got '"+a+"' of type "+m(a));return"type_error:SafeUrl"},fc=/^(?:(?:https?|mailto|ftp):|[^&:/?#]*(?:[/?#]|$))/i,hc=function(a){if(a instanceof B)return a;a=a.Qb?a.Lb():String(a);fc.test(a)||(a="about:invalid#zClosurez");return gc(a)},dc={},gc=function(a){var b=new B;b.la=a;return b};gc("about:blank");var ic=function(a){return/^\s*$/.test(a)?!1:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/(?:"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)[\s\u2028\u2029]*(?=:|,|]|}|$)/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,""))},jc=function(a){a=String(a);if(ic(a))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);},mc=function(a){var b=[];kc(new lc,a,b);return b.join("")},lc=function(){this.ec=void 0},
  kc=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(ea(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),e=d[f],kc(a,a.ec?a.ec.call(d,String(f),e):e,c),e=",";c.push("]");return}if(b instanceof String||b instanceof Number||b instanceof Boolean)b=b.valueOf();else{c.push("{");f="";for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(e=b[d],"function"!=typeof e&&(c.push(f),nc(d,c),c.push(":"),kc(a,a.ec?a.ec.call(b,d,e):e,c),f=","));c.push("}");return}}switch(typeof b){case "string":nc(b,
  c);break;case "number":c.push(isFinite(b)&&!isNaN(b)?String(b):"null");break;case "boolean":c.push(String(b));break;case "function":c.push("null");break;default:throw Error("Unknown type: "+typeof b);}}},oc={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},pc=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g,nc=function(a,b){b.push('"',a.replace(pc,function(a){var b=oc[a];b||(b="\\u"+(a.charCodeAt(0)|65536).toString(16).substr(1),
  oc[a]=b);return b}),'"')};var qc=function(){};qc.prototype.Zc=null;qc.prototype.nb=ca;var rc=function(a){return a.Zc||(a.Zc=a.Tb())};qc.prototype.Tb=ca;var sc,tc=function(){};r(tc,qc);tc.prototype.nb=function(){var a=uc(this);return a?new ActiveXObject(a):new XMLHttpRequest};tc.prototype.Tb=function(){var a={};uc(this)&&(a[0]=!0,a[1]=!0);return a};
  var uc=function(a){if(!a.od&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new ActiveXObject(d),a.od=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.od};sc=new tc;var vc=function(){};r(vc,qc);vc.prototype.nb=function(){var a=new XMLHttpRequest;if("withCredentials"in a)return a;if("undefined"!=typeof XDomainRequest)return new wc;throw Error("Unsupported browser");};vc.prototype.Tb=function(){return{}};
  var wc=function(){this.qa=new XDomainRequest;this.readyState=0;this.onreadystatechange=null;this.responseText="";this.status=-1;this.statusText=this.responseXML=null;this.qa.onload=q(this.pe,this);this.qa.onerror=q(this.md,this);this.qa.onprogress=q(this.qe,this);this.qa.ontimeout=q(this.re,this)};h=wc.prototype;h.open=function(a,b,c){if(null!=c&&!c)throw Error("Only async requests are supported.");this.qa.open(a,b)};
  h.send=function(a){if(a)if("string"==typeof a)this.qa.send(a);else throw Error("Only string data is supported");else this.qa.send()};h.abort=function(){this.qa.abort()};h.setRequestHeader=function(){};h.pe=function(){this.status=200;this.responseText=this.qa.responseText;xc(this,4)};h.md=function(){this.status=500;this.responseText="";xc(this,4)};h.re=function(){this.md()};h.qe=function(){this.status=200;xc(this,1)};var xc=function(a,b){a.readyState=b;if(a.onreadystatechange)a.onreadystatechange()};var C=function(a,b){this.h=[];this.g=b;for(var c=!0,d=a.length-1;0<=d;d--){var e=a[d]|0;c&&e==b||(this.h[d]=e,c=!1)}},yc={},zc=function(a){if(-128<=a&&128>a){var b=yc[a];if(b)return b}b=new C([a|0],0>a?-1:0);-128<=a&&128>a&&(yc[a]=b);return b},F=function(a){if(isNaN(a)||!isFinite(a))return D;if(0>a)return E(F(-a));for(var b=[],c=1,d=0;a>=c;d++)b[d]=a/c|0,c*=4294967296;return new C(b,0)},Ac=function(a,b){if(0==a.length)throw Error("number format error: empty string");b=b||10;if(2>b||36<b)throw Error("radix out of range: "+
  b);if("-"==a.charAt(0))return E(Ac(a.substring(1),b));if(0<=a.indexOf("-"))throw Error('number format error: interior "-" character');for(var c=F(Math.pow(b,8)),d=D,e=0;e<a.length;e+=8){var f=Math.min(8,a.length-e),g=parseInt(a.substring(e,e+f),b);8>f?(f=F(Math.pow(b,f)),d=d.multiply(f).add(F(g))):(d=d.multiply(c),d=d.add(F(g)))}return d},D=zc(0),Bc=zc(1),Cc=zc(16777216),Dc=function(a){if(-1==a.g)return-Dc(E(a));for(var b=0,c=1,d=0;d<a.h.length;d++)b+=Ec(a,d)*c,c*=4294967296;return b};
  C.prototype.toString=function(a){a=a||10;if(2>a||36<a)throw Error("radix out of range: "+a);if(Fc(this))return"0";if(-1==this.g)return"-"+E(this).toString(a);for(var b=F(Math.pow(a,6)),c=this,d="";;){var e=Gc(c,b),c=Hc(c,e.multiply(b)),f=((0<c.h.length?c.h[0]:c.g)>>>0).toString(a),c=e;if(Fc(c))return f+d;for(;6>f.length;)f="0"+f;d=""+f+d}};
  var G=function(a,b){return 0>b?0:b<a.h.length?a.h[b]:a.g},Ec=function(a,b){a=G(a,b);return 0<=a?a:4294967296+a},Fc=function(a){if(0!=a.g)return!1;for(var b=0;b<a.h.length;b++)if(0!=a.h[b])return!1;return!0};C.prototype.Ib=function(a){if(this.g!=a.g)return!1;for(var b=Math.max(this.h.length,a.h.length),c=0;c<b;c++)if(G(this,c)!=G(a,c))return!1;return!0};C.prototype.compare=function(a){a=Hc(this,a);return-1==a.g?-1:Fc(a)?0:1};
  var E=function(a){for(var b=a.h.length,c=[],d=0;d<b;d++)c[d]=~a.h[d];return(new C(c,~a.g)).add(Bc)};C.prototype.add=function(a){for(var b=Math.max(this.h.length,a.h.length),c=[],d=0,e=0;e<=b;e++){var f=d+(G(this,e)&65535)+(G(a,e)&65535),g=(f>>>16)+(G(this,e)>>>16)+(G(a,e)>>>16),d=g>>>16,f=f&65535,g=g&65535;c[e]=g<<16|f}return new C(c,c[c.length-1]&-2147483648?-1:0)};var Hc=function(a,b){return a.add(E(b))};
  C.prototype.multiply=function(a){if(Fc(this)||Fc(a))return D;if(-1==this.g)return-1==a.g?E(this).multiply(E(a)):E(E(this).multiply(a));if(-1==a.g)return E(this.multiply(E(a)));if(0>this.compare(Cc)&&0>a.compare(Cc))return F(Dc(this)*Dc(a));for(var b=this.h.length+a.h.length,c=[],d=0;d<2*b;d++)c[d]=0;for(d=0;d<this.h.length;d++)for(var e=0;e<a.h.length;e++){var f=G(this,d)>>>16,g=G(this,d)&65535,k=G(a,e)>>>16,t=G(a,e)&65535;c[2*d+2*e]+=g*t;Ic(c,2*d+2*e);c[2*d+2*e+1]+=f*t;Ic(c,2*d+2*e+1);c[2*d+2*e+
  1]+=g*k;Ic(c,2*d+2*e+1);c[2*d+2*e+2]+=f*k;Ic(c,2*d+2*e+2)}for(d=0;d<b;d++)c[d]=c[2*d+1]<<16|c[2*d];for(d=b;d<2*b;d++)c[d]=0;return new C(c,0)};
  var Ic=function(a,b){for(;(a[b]&65535)!=a[b];)a[b+1]+=a[b]>>>16,a[b]&=65535,b++},Gc=function(a,b){if(Fc(b))throw Error("division by zero");if(Fc(a))return D;if(-1==a.g)return-1==b.g?Gc(E(a),E(b)):E(Gc(E(a),b));if(-1==b.g)return E(Gc(a,E(b)));if(30<a.h.length){if(-1==a.g||-1==b.g)throw Error("slowDivide_ only works with positive integers.");for(var c=Bc;0>=b.compare(a);)c=c.shiftLeft(1),b=b.shiftLeft(1);var d=Jc(c,1),e=Jc(b,1),f;b=Jc(b,2);for(c=Jc(c,2);!Fc(b);)f=e.add(b),0>=f.compare(a)&&(d=d.add(c),
  e=f),b=Jc(b,1),c=Jc(c,1);return d}for(c=D;0<=a.compare(b);){d=Math.max(1,Math.floor(Dc(a)/Dc(b)));e=Math.ceil(Math.log(d)/Math.LN2);e=48>=e?1:Math.pow(2,e-48);f=F(d);for(var g=f.multiply(b);-1==g.g||0<g.compare(a);)d-=e,f=F(d),g=f.multiply(b);Fc(f)&&(f=Bc);c=c.add(f);a=Hc(a,g)}return c},Kc=function(a,b){for(var c=Math.max(a.h.length,b.h.length),d=[],e=0;e<c;e++)d[e]=G(a,e)|G(b,e);return new C(d,a.g|b.g)};
  C.prototype.shiftLeft=function(a){var b=a>>5;a%=32;for(var c=this.h.length+b+(0<a?1:0),d=[],e=0;e<c;e++)d[e]=0<a?G(this,e-b)<<a|G(this,e-b-1)>>>32-a:G(this,e-b);return new C(d,this.g)};var Jc=function(a,b){var c=b>>5;b%=32;for(var d=a.h.length-c,e=[],f=0;f<d;f++)e[f]=0<b?G(a,f+c)>>>b|G(a,f+c+1)<<32-b:G(a,f+c);return new C(e,a.g)};var Lc=function(a,b){this.sb=a;this.pa=b};Lc.prototype.Ib=function(a){return this.pa==a.pa&&this.sb.Ib(Wa(a.sb))};Lc.prototype.toString=ca;
  var Oc=function(a){try{var b;if(b=0==a.lastIndexOf("[",0)){var c=a.length-1;b=0<=c&&a.indexOf("]",c)==c}return b?new Mc(a.substring(1,a.length-1)):new Nc(a)}catch(d){return null}},Nc=function(a){var b=D;if(a instanceof C){if(0!=a.g||0>a.compare(D)||0<a.compare(Pc))throw Error("The address does not look like an IPv4.");b=Wa(a)}else{if(!Qc.test(a))throw Error(a+" does not look like an IPv4 address.");var c=a.split(".");if(4!=c.length)throw Error(a+" does not look like an IPv4 address.");for(var d=0;d<
  c.length;d++){var e;e=c[d];var f=Number(e);e=0==f&&/^[\s\xa0]*$/.test(e)?NaN:f;if(isNaN(e)||0>e||255<e||1!=c[d].length&&0==c[d].lastIndexOf("0",0))throw Error("In "+a+", octet "+d+" is not valid");e=F(e);b=Kc(b.shiftLeft(8),e)}}Lc.call(this,b,4)};r(Nc,Lc);var Qc=/^[0-9.]*$/,Pc=Hc(Bc.shiftLeft(32),Bc);Nc.prototype.toString=function(){if(this.Ea)return this.Ea;for(var a=Ec(this.sb,0),b=[],c=3;0<=c;c--)b[c]=String(a&255),a>>>=8;return this.Ea=b.join(".")};
  var Mc=function(a){var b=D;if(a instanceof C){if(0!=a.g||0>a.compare(D)||0<a.compare(Rc))throw Error("The address does not look like a valid IPv6.");b=Wa(a)}else{if(!Sc.test(a))throw Error(a+" is not a valid IPv6 address.");var c=a.split(":");if(-1!=c[c.length-1].indexOf(".")){a=Ec(Wa((new Nc(c[c.length-1])).sb),0);var d=[];d.push((a>>>16&65535).toString(16));d.push((a&65535).toString(16));Ka(c,c.length-1);Qa(c,d);a=c.join(":")}d=a.split("::");if(2<d.length||1==d.length&&8!=c.length)throw Error(a+
  " is not a valid IPv6 address.");if(1<d.length){c=d[0].split(":");d=d[1].split(":");1==c.length&&""==c[0]&&(c=[]);1==d.length&&""==d[0]&&(d=[]);var e=8-(c.length+d.length);if(1>e)c=[];else{for(var f=[],g=0;g<e;g++)f[g]="0";c=Oa(c,f,d)}}if(8!=c.length)throw Error(a+" is not a valid IPv6 address");for(d=0;d<c.length;d++){e=Ac(c[d],16);if(0>e.compare(D)||0<e.compare(Tc))throw Error(c[d]+" in "+a+" is not a valid hextet.");b=Kc(b.shiftLeft(16),e)}}Lc.call(this,b,6)};r(Mc,Lc);
  var Sc=/^([a-fA-F0-9]*:){2}[a-fA-F0-9:.]*$/,Tc=zc(65535),Rc=Hc(Bc.shiftLeft(128),Bc);Mc.prototype.toString=function(){if(this.Ea)return this.Ea;for(var a=[],b=3;0<=b;b--){var c=Ec(this.sb,b),d=c&65535;a.push((c>>>16).toString(16));a.push(d.toString(16))}for(var c=b=-1,e=d=0,f=0;f<a.length;f++)"0"==a[f]?(e++,-1==c&&(c=f),e>d&&(d=e,b=c)):(c=-1,e=0);0<d&&(b+d==a.length&&a.push(""),a.splice(b,d,""),0==b&&(a=[""].concat(a)));return this.Ea=a.join(":")};var Vc=function(){this.Zb="";this.Ud=Uc};Vc.prototype.Qb=!0;Vc.prototype.Lb=function(){return this.Zb};Vc.prototype.toString=function(){return"TrustedResourceUrl{"+this.Zb+"}"};var Uc={};var Xc=function(){this.la="";this.Rd=Wc};Xc.prototype.Qb=!0;Xc.prototype.Lb=function(){return this.la};Xc.prototype.toString=function(){return"SafeHtml{"+this.la+"}"};var Yc=function(a){if(a instanceof Xc&&a.constructor===Xc&&a.Rd===Wc)return a.la;za("expected object of type SafeHtml, got '"+a+"' of type "+m(a));return"type_error:SafeHtml"},Wc={};Xc.prototype.ye=function(a){this.la=a;return this};!hb&&!z||z&&9<=Number(pb)||hb&&A("1.9.1");z&&A("9");var $c=function(a,b){Ra(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:Zc.hasOwnProperty(d)?a.setAttribute(Zc[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})},Zc={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};var ad=function(a,b,c){this.Ae=c;this.ae=a;this.Le=b;this.Vb=0;this.Ob=null};ad.prototype.get=function(){var a;0<this.Vb?(this.Vb--,a=this.Ob,this.Ob=a.next,a.next=null):a=this.ae();return a};ad.prototype.put=function(a){this.Le(a);this.Vb<this.Ae&&(this.Vb++,a.next=this.Ob,this.Ob=a)};var bd=function(a){l.setTimeout(function(){throw a;},0)},cd,dd=function(){var a=l.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!y("Presto")&&(a=function(){var a=document.createElement("IFRAME");a.style.display="none";a.src="";document.documentElement.appendChild(a);var b=a.contentWindow,a=b.document;a.open();a.write("");a.close();var c="callImmediate"+Math.random(),d="file:"==b.location.protocol?"*":b.location.protocol+"//"+b.location.host,
  a=q(function(a){if(("*"==d||a.origin==d)&&a.data==c)this.port1.onmessage()},this);b.addEventListener("message",a,!1);this.port1={};this.port2={postMessage:function(){b.postMessage(c,d)}}});if("undefined"!==typeof a&&!y("Trident")&&!y("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var a=c.cd;c.cd=null;a()}};return function(a){d.next={cd:a};d=d.next;b.port2.postMessage(0)}}return"undefined"!==typeof document&&"onreadystatechange"in document.createElement("SCRIPT")?
  function(a){var b=document.createElement("SCRIPT");b.onreadystatechange=function(){b.onreadystatechange=null;b.parentNode.removeChild(b);b=null;a();a=null};document.documentElement.appendChild(b)}:function(a){l.setTimeout(a,0)}};var ed=function(){this.pc=this.Ma=null},gd=new ad(function(){return new fd},function(a){a.reset()},100);ed.prototype.add=function(a,b){var c=gd.get();c.set(a,b);this.pc?this.pc.next=c:(w(!this.Ma),this.Ma=c);this.pc=c};ed.prototype.remove=function(){var a=null;this.Ma&&(a=this.Ma,this.Ma=this.Ma.next,this.Ma||(this.pc=null),a.next=null);return a};var fd=function(){this.next=this.scope=this.zc=null};fd.prototype.set=function(a,b){this.zc=a;this.scope=b;this.next=null};
  fd.prototype.reset=function(){this.next=this.scope=this.zc=null};var ld=function(a,b){hd||id();jd||(hd(),jd=!0);kd.add(a,b)},hd,id=function(){var a=l.Promise;if(-1!=String(a).indexOf("[native code]")){var b=a.resolve(void 0);hd=function(){b.then(md)}}else hd=function(){var a=md;!p(l.setImmediate)||l.Window&&l.Window.prototype&&!y("Edge")&&l.Window.prototype.setImmediate==l.setImmediate?(cd||(cd=dd()),cd(a)):l.setImmediate(a)}},jd=!1,kd=new ed,md=function(){for(var a;a=kd.remove();){try{a.zc.call(a.scope)}catch(b){bd(b)}gd.put(a)}jd=!1};var nd=function(a){a.prototype.then=a.prototype.then;a.prototype.$goog_Thenable=!0},od=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};var H=function(a,b){this.J=0;this.ma=void 0;this.Pa=this.ha=this.s=null;this.Mb=this.yc=!1;if(a!=ba)try{var c=this;a.call(b,function(a){pd(c,2,a)},function(a){if(!(a instanceof qd))try{if(a instanceof Error)throw a;throw Error("Promise rejected.");}catch(e){}pd(c,3,a)})}catch(d){pd(this,3,d)}},rd=function(){this.next=this.context=this.Va=this.Ga=this.child=null;this.lb=!1};rd.prototype.reset=function(){this.context=this.Va=this.Ga=this.child=null;this.lb=!1};
  var sd=new ad(function(){return new rd},function(a){a.reset()},100),td=function(a,b,c){var d=sd.get();d.Ga=a;d.Va=b;d.context=c;return d},I=function(a){if(a instanceof H)return a;var b=new H(ba);pd(b,2,a);return b},J=function(a){return new H(function(b,c){c(a)})},vd=function(a,b,c){ud(a,b,c,null)||ld(ka(b,a))},wd=function(a){return new H(function(b){var c=a.length,d=[];if(c)for(var e=function(a,e,f){c--;d[a]=e?{ke:!0,value:f}:{ke:!1,reason:f};0==c&&b(d)},f=0,g;f<a.length;f++)g=a[f],vd(g,ka(e,f,!0),
  ka(e,f,!1));else b(d)})};H.prototype.then=function(a,b,c){null!=a&&Ca(a,"opt_onFulfilled should be a function.");null!=b&&Ca(b,"opt_onRejected should be a function. Did you pass opt_context as the second argument instead of the third?");return xd(this,p(a)?a:null,p(b)?b:null,c)};nd(H);var zd=function(a,b){b=td(b,b,void 0);b.lb=!0;yd(a,b);return a};H.prototype.l=function(a,b){return xd(this,null,a,b)};H.prototype.cancel=function(a){0==this.J&&ld(function(){var b=new qd(a);Ad(this,b)},this)};
  var Ad=function(a,b){if(0==a.J)if(a.s){var c=a.s;if(c.ha){for(var d=0,e=null,f=null,g=c.ha;g&&(g.lb||(d++,g.child==a&&(e=g),!(e&&1<d)));g=g.next)e||(f=g);e&&(0==c.J&&1==d?Ad(c,b):(f?(d=f,w(c.ha),w(null!=d),d.next==c.Pa&&(c.Pa=d),d.next=d.next.next):Bd(c),Cd(c,e,3,b)))}a.s=null}else pd(a,3,b)},yd=function(a,b){a.ha||2!=a.J&&3!=a.J||Dd(a);w(null!=b.Ga);a.Pa?a.Pa.next=b:a.ha=b;a.Pa=b},xd=function(a,b,c,d){var e=td(null,null,null);e.child=new H(function(a,g){e.Ga=b?function(c){try{var e=b.call(d,c);a(e)}catch(ua){g(ua)}}:
  a;e.Va=c?function(b){try{var e=c.call(d,b);void 0===e&&b instanceof qd?g(b):a(e)}catch(ua){g(ua)}}:g});e.child.s=a;yd(a,e);return e.child};H.prototype.Ue=function(a){w(1==this.J);this.J=0;pd(this,2,a)};H.prototype.Ve=function(a){w(1==this.J);this.J=0;pd(this,3,a)};
  var pd=function(a,b,c){0==a.J&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.J=1,ud(c,a.Ue,a.Ve,a)||(a.ma=c,a.J=b,a.s=null,Dd(a),3!=b||c instanceof qd||Ed(a,c)))},ud=function(a,b,c,d){if(a instanceof H)return null!=b&&Ca(b,"opt_onFulfilled should be a function."),null!=c&&Ca(c,"opt_onRejected should be a function. Did you pass opt_context as the second argument instead of the third?"),yd(a,td(b||ba,c||null,d)),!0;if(od(a))return a.then(b,c,d),!0;if(ha(a))try{var e=a.then;if(p(e))return Fd(a,
  e,b,c,d),!0}catch(f){return c.call(d,f),!0}return!1},Fd=function(a,b,c,d,e){var f=!1,g=function(a){f||(f=!0,c.call(e,a))},k=function(a){f||(f=!0,d.call(e,a))};try{b.call(a,g,k)}catch(t){k(t)}},Dd=function(a){a.yc||(a.yc=!0,ld(a.fe,a))},Bd=function(a){var b=null;a.ha&&(b=a.ha,a.ha=b.next,b.next=null);a.ha||(a.Pa=null);null!=b&&w(null!=b.Ga);return b};H.prototype.fe=function(){for(var a;a=Bd(this);)Cd(this,a,this.J,this.ma);this.yc=!1};
  var Cd=function(a,b,c,d){if(3==c&&b.Va&&!b.lb)for(;a&&a.Mb;a=a.s)a.Mb=!1;if(b.child)b.child.s=null,Gd(b,c,d);else try{b.lb?b.Ga.call(b.context):Gd(b,c,d)}catch(e){Hd.call(null,e)}sd.put(b)},Gd=function(a,b,c){2==b?a.Ga.call(a.context,c):a.Va&&a.Va.call(a.context,c)},Ed=function(a,b){a.Mb=!0;ld(function(){a.Mb&&Hd.call(null,b)})},Hd=bd,qd=function(a){u.call(this,a)};r(qd,u);qd.prototype.name="cancel";/*
   Portions of this code are from MochiKit, received by
   The Closure Authors under the MIT license. All other code is Copyright
   2005-2009 The Closure Authors. All Rights Reserved.
  */
  var Id=function(a,b){this.gc=[];this.ud=a;this.fd=b||null;this.qb=this.Ta=!1;this.ma=void 0;this.Tc=this.Yc=this.tc=!1;this.nc=0;this.s=null;this.uc=0};Id.prototype.cancel=function(a){if(this.Ta)this.ma instanceof Id&&this.ma.cancel();else{if(this.s){var b=this.s;delete this.s;a?b.cancel(a):(b.uc--,0>=b.uc&&b.cancel())}this.ud?this.ud.call(this.fd,this):this.Tc=!0;this.Ta||Jd(this,new Kd)}};Id.prototype.dd=function(a,b){this.tc=!1;Ld(this,a,b)};
  var Ld=function(a,b,c){a.Ta=!0;a.ma=c;a.qb=!b;Md(a)},Od=function(a){if(a.Ta){if(!a.Tc)throw new Nd;a.Tc=!1}};Id.prototype.callback=function(a){Od(this);Pd(a);Ld(this,!0,a)};
  var Jd=function(a,b){Od(a);Pd(b);Ld(a,!1,b)},Pd=function(a){w(!(a instanceof Id),"An execution sequence may not be initiated with a blocking Deferred.")},Td=function(a){var b=Qd("https://apis.google.com/js/client.js?onload="+Rd);Sd(b,null,a,void 0)},Sd=function(a,b,c,d){w(!a.Yc,"Blocking Deferreds can not be re-used");a.gc.push([b,c,d]);a.Ta&&Md(a)};Id.prototype.then=function(a,b,c){var d,e,f=new H(function(a,b){d=a;e=b});Sd(this,d,function(a){a instanceof Kd?f.cancel():e(a)});return f.then(a,b,c)};
  nd(Id);
  var Ud=function(a){return Ga(a.gc,function(a){return p(a[1])})},Md=function(a){if(a.nc&&a.Ta&&Ud(a)){var b=a.nc,c=Vd[b];c&&(l.clearTimeout(c.rb),delete Vd[b]);a.nc=0}a.s&&(a.s.uc--,delete a.s);for(var b=a.ma,d=c=!1;a.gc.length&&!a.tc;){var e=a.gc.shift(),f=e[0],g=e[1],e=e[2];if(f=a.qb?g:f)try{var k=f.call(e||a.fd,b);void 0!==k&&(a.qb=a.qb&&(k==b||k instanceof Error),a.ma=b=k);if(od(b)||"function"===typeof l.Promise&&b instanceof l.Promise)d=!0,a.tc=!0}catch(t){b=t,a.qb=!0,Ud(a)||(c=!0)}}a.ma=b;d&&
  (k=q(a.dd,a,!0),d=q(a.dd,a,!1),b instanceof Id?(Sd(b,k,d),b.Yc=!0):b.then(k,d));c&&(b=new Wd(b),Vd[b.rb]=b,a.nc=b.rb)},Nd=function(){u.call(this)};r(Nd,u);Nd.prototype.message="Deferred has already fired";Nd.prototype.name="AlreadyCalledError";var Kd=function(){u.call(this)};r(Kd,u);Kd.prototype.message="Deferred was canceled";Kd.prototype.name="CanceledError";var Wd=function(a){this.rb=l.setTimeout(q(this.Te,this),0);this.N=a};
  Wd.prototype.Te=function(){w(Vd[this.rb],"Cannot throw an error that is not scheduled.");delete Vd[this.rb];throw this.N;};var Vd={};var Qd=function(a){var b=new Vc;b.Zb=a;return Xd(b)},Xd=function(a){var b={},c=b.document||document,d;a instanceof Vc&&a.constructor===Vc&&a.Ud===Uc?d=a.Zb:(za("expected object of type TrustedResourceUrl, got '"+a+"' of type "+m(a)),d="type_error:TrustedResourceUrl");var e=document.createElement("SCRIPT");a={Cd:e,Bb:void 0};var f=new Id(Yd,a),g=null,k=null!=b.timeout?b.timeout:5E3;0<k&&(g=window.setTimeout(function(){Zd(e,!0);Jd(f,new $d(1,"Timeout reached for loading script "+d))},k),a.Bb=g);e.onload=
  e.onreadystatechange=function(){e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(Zd(e,b.ef||!1,g),f.callback(null))};e.onerror=function(){Zd(e,!0,g);Jd(f,new $d(0,"Error while loading script "+d))};a=b.attributes||{};Ya(a,{type:"text/javascript",charset:"UTF-8",src:d});$c(e,a);ae(c).appendChild(e);return f},ae=function(a){var b;return(b=(a||document).getElementsByTagName("HEAD"))&&0!=b.length?b[0]:a.documentElement},Yd=function(){if(this&&this.Cd){var a=this.Cd;a&&"SCRIPT"==a.tagName&&
  Zd(a,!0,this.Bb)}},Zd=function(a,b,c){null!=c&&l.clearTimeout(c);a.onload=ba;a.onerror=ba;a.onreadystatechange=ba;b&&window.setTimeout(function(){a&&a.parentNode&&a.parentNode.removeChild(a)},0)},$d=function(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);u.call(this,c);this.code=a};r($d,u);var be=function(){yb.call(this);this.ba=new Fb(this);this.Xd=this;this.Ic=null};r(be,yb);be.prototype[Bb]=!0;h=be.prototype;h.addEventListener=function(a,b,c,d){Lb(this,a,b,c,d)};h.removeEventListener=function(a,b,c,d){Ub(this,a,b,c,d)};
  h.dispatchEvent=function(a){ce(this);var b,c=this.Ic;if(c){b=[];for(var d=1;c;c=c.Ic)b.push(c),w(1E3>++d,"infinite loop")}c=this.Xd;d=a.type||a;if(n(a))a=new zb(a,c);else if(a instanceof zb)a.target=a.target||c;else{var e=a;a=new zb(d,c);Ya(a,e)}var e=!0,f;if(b)for(var g=b.length-1;!a.Ya&&0<=g;g--)f=a.currentTarget=b[g],e=de(f,d,!0,a)&&e;a.Ya||(f=a.currentTarget=c,e=de(f,d,!0,a)&&e,a.Ya||(e=de(f,d,!1,a)&&e));if(b)for(g=0;!a.Ya&&g<b.length;g++)f=a.currentTarget=b[g],e=de(f,d,!1,a)&&e;return e};
  h.Ra=function(){be.Vc.Ra.call(this);if(this.ba){var a=this.ba,b=0,c;for(c in a.A){for(var d=a.A[c],e=0;e<d.length;e++)++b,Eb(d[e]);delete a.A[c];a.Cb--}}this.Ic=null};h.listen=function(a,b,c,d){ce(this);return this.ba.add(String(a),b,!1,c,d)};
  var Tb=function(a,b,c,d,e){a.ba.add(String(b),c,!0,d,e)},de=function(a,b,c,d){b=a.ba.A[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var g=b[f];if(g&&!g.cb&&g.Gb==c){var k=g.listener,t=g.Nb||g.src;g.Fb&&Hb(a.ba,g);e=!1!==k.call(t,d)&&e}}return e&&0!=d.Bd};be.prototype.Ac=function(a,b,c,d){return this.ba.Ac(String(a),b,c,d)};var ce=function(a){w(a.ba,"Event target is not initialized. Did you call the superclass (goog.events.EventTarget) constructor?")};var ee="StopIteration"in l?l.StopIteration:{message:"StopIteration",stack:""},fe=function(){};fe.prototype.next=function(){throw ee;};fe.prototype.Wd=function(){return this};var ge=function(a,b){this.ca={};this.v=[];this.pa=this.i=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else a&&this.addAll(a)};h=ge.prototype;h.ld=function(){return this.i};h.X=function(){he(this);for(var a=[],b=0;b<this.v.length;b++)a.push(this.ca[this.v[b]]);return a};h.ja=function(){he(this);return this.v.concat()};h.mb=function(a){return ie(this.ca,a)};
  h.Ib=function(a,b){if(this===a)return!0;if(this.i!=a.ld())return!1;b=b||je;he(this);for(var c,d=0;c=this.v[d];d++)if(!b(this.get(c),a.get(c)))return!1;return!0};var je=function(a,b){return a===b};ge.prototype.remove=function(a){return ie(this.ca,a)?(delete this.ca[a],this.i--,this.pa++,this.v.length>2*this.i&&he(this),!0):!1};
  var he=function(a){if(a.i!=a.v.length){for(var b=0,c=0;b<a.v.length;){var d=a.v[b];ie(a.ca,d)&&(a.v[c++]=d);b++}a.v.length=c}if(a.i!=a.v.length){for(var e={},c=b=0;b<a.v.length;)d=a.v[b],ie(e,d)||(a.v[c++]=d,e[d]=1),b++;a.v.length=c}};h=ge.prototype;h.get=function(a,b){return ie(this.ca,a)?this.ca[a]:b};h.set=function(a,b){ie(this.ca,a)||(this.i++,this.v.push(a),this.pa++);this.ca[a]=b};
  h.addAll=function(a){var b;a instanceof ge?(b=a.ja(),a=a.X()):(b=Ta(a),a=Sa(a));for(var c=0;c<b.length;c++)this.set(b[c],a[c])};h.forEach=function(a,b){for(var c=this.ja(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};h.clone=function(){return new ge(this)};h.Wd=function(a){he(this);var b=0,c=this.pa,d=this,e=new fe;e.next=function(){if(c!=d.pa)throw Error("The map has changed since the iterator was created");if(b>=d.v.length)throw ee;var e=d.v[b++];return a?e:d.ca[e]};return e};
  var ie=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var ke=function(a){if(a.X&&"function"==typeof a.X)return a.X();if(n(a))return a.split("");if(fa(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Sa(a)},le=function(a){if(a.ja&&"function"==typeof a.ja)return a.ja();if(!a.X||"function"!=typeof a.X){if(fa(a)||n(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return Ta(a)}},me=function(a,b){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,void 0);else if(fa(a)||n(a))x(a,b,void 0);else for(var c=le(a),d=ke(a),e=
  d.length,f=0;f<e;f++)b.call(void 0,d[f],c&&c[f],a)};var ne=function(a,b,c,d,e){this.reset(a,b,c,d,e)};ne.prototype.hd=null;var oe=0;ne.prototype.reset=function(a,b,c,d,e){"number"==typeof e||oe++;d||la();this.ub=a;this.Ee=b;delete this.hd};ne.prototype.Fd=function(a){this.ub=a};var pe=function(a){this.Fe=a;this.nd=this.vc=this.ub=this.s=null},qe=function(a,b){this.name=a;this.value=b};qe.prototype.toString=function(){return this.name};var re=new qe("SEVERE",1E3),se=new qe("CONFIG",700),te=new qe("FINE",500);pe.prototype.getParent=function(){return this.s};pe.prototype.Fd=function(a){this.ub=a};var ue=function(a){if(a.ub)return a.ub;if(a.s)return ue(a.s);za("Root logger has no level set.");return null};
  pe.prototype.log=function(a,b,c){if(a.value>=ue(this).value)for(p(b)&&(b=b()),a=new ne(a,String(b),this.Fe),c&&(a.hd=c),c="log:"+a.Ee,l.console&&(l.console.timeStamp?l.console.timeStamp(c):l.console.markTimeline&&l.console.markTimeline(c)),l.msWriteProfilerMark&&l.msWriteProfilerMark(c),c=this;c;){b=c;var d=a;if(b.nd)for(var e=0,f;f=b.nd[e];e++)f(d);c=c.getParent()}};
  var ve={},we=null,xe=function(a){we||(we=new pe(""),ve[""]=we,we.Fd(se));var b;if(!(b=ve[a])){b=new pe(a);var c=a.lastIndexOf("."),d=a.substr(c+1),c=xe(a.substr(0,c));c.vc||(c.vc={});c.vc[d]=b;b.s=c;ve[a]=b}return b};var K=function(a,b){a&&a.log(te,b,void 0)};var ye=function(a,b,c){if(p(a))c&&(a=q(a,c));else if(a&&"function"==typeof a.handleEvent)a=q(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:l.setTimeout(a,b||0)},ze=function(a){var b=null;return(new H(function(c,d){b=ye(function(){c(void 0)},a);-1==b&&d(Error("Failed to schedule timer."))})).l(function(a){l.clearTimeout(b);throw a;})};var Ae=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/,Be=function(a,b){if(a){a=a.split("&");for(var c=0;c<a.length;c++){var d=a[c].indexOf("="),e,f=null;0<=d?(e=a[c].substring(0,d),f=a[c].substring(d+1)):e=a[c];b(e,f?decodeURIComponent(f.replace(/\+/g," ")):"")}}};var L=function(a){be.call(this);this.headers=new ge;this.rc=a||null;this.ra=!1;this.qc=this.b=null;this.tb=this.sd=this.Ub="";this.Da=this.Dc=this.Rb=this.xc=!1;this.ib=0;this.mc=null;this.Ad="";this.oc=this.Ke=this.Nd=!1};r(L,be);var Ce=L.prototype,De=xe("goog.net.XhrIo");Ce.T=De;var Ee=/^https?$/i,Fe=["POST","PUT"];
  L.prototype.send=function(a,b,c,d){if(this.b)throw Error("[goog.net.XhrIo] Object is active with another request="+this.Ub+"; newUri="+a);b=b?b.toUpperCase():"GET";this.Ub=a;this.tb="";this.sd=b;this.xc=!1;this.ra=!0;this.b=this.rc?this.rc.nb():sc.nb();this.qc=this.rc?rc(this.rc):rc(sc);this.b.onreadystatechange=q(this.xd,this);this.Ke&&"onprogress"in this.b&&(this.b.onprogress=q(function(a){this.wd(a,!0)},this),this.b.upload&&(this.b.upload.onprogress=q(this.wd,this)));try{K(this.T,Ge(this,"Opening Xhr")),
  this.Dc=!0,this.b.open(b,String(a),!0),this.Dc=!1}catch(f){K(this.T,Ge(this,"Error opening Xhr: "+f.message));this.N(5,f);return}a=c||"";var e=this.headers.clone();d&&me(d,function(a,b){e.set(b,a)});d=Ia(e.ja());c=l.FormData&&a instanceof l.FormData;!Ja(Fe,b)||d||c||e.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");e.forEach(function(a,b){this.b.setRequestHeader(b,a)},this);this.Ad&&(this.b.responseType=this.Ad);"withCredentials"in this.b&&this.b.withCredentials!==this.Nd&&(this.b.withCredentials=
  this.Nd);try{He(this),0<this.ib&&(this.oc=Ie(this.b),K(this.T,Ge(this,"Will abort after "+this.ib+"ms if incomplete, xhr2 "+this.oc)),this.oc?(this.b.timeout=this.ib,this.b.ontimeout=q(this.Bb,this)):this.mc=ye(this.Bb,this.ib,this)),K(this.T,Ge(this,"Sending request")),this.Rb=!0,this.b.send(a),this.Rb=!1}catch(f){K(this.T,Ge(this,"Send error: "+f.message)),this.N(5,f)}};var Ie=function(a){return z&&A(9)&&ga(a.timeout)&&void 0!==a.ontimeout},Ha=function(a){return"content-type"==a.toLowerCase()};
  L.prototype.Bb=function(){"undefined"!=typeof aa&&this.b&&(this.tb="Timed out after "+this.ib+"ms, aborting",K(this.T,Ge(this,this.tb)),this.dispatchEvent("timeout"),this.abort(8))};L.prototype.N=function(a,b){this.ra=!1;this.b&&(this.Da=!0,this.b.abort(),this.Da=!1);this.tb=b;Je(this);Ke(this)};var Je=function(a){a.xc||(a.xc=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
  L.prototype.abort=function(){this.b&&this.ra&&(K(this.T,Ge(this,"Aborting")),this.ra=!1,this.Da=!0,this.b.abort(),this.Da=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Ke(this))};L.prototype.Ra=function(){this.b&&(this.ra&&(this.ra=!1,this.Da=!0,this.b.abort(),this.Da=!1),Ke(this,!0));L.Vc.Ra.call(this)};L.prototype.xd=function(){this.isDisposed()||(this.Dc||this.Rb||this.Da?Le(this):this.Ie())};L.prototype.Ie=function(){Le(this)};
  var Le=function(a){if(a.ra&&"undefined"!=typeof aa)if(a.qc[1]&&4==Me(a)&&2==Ne(a))K(a.T,Ge(a,"Local request error detected and ignored"));else if(a.Rb&&4==Me(a))ye(a.xd,0,a);else if(a.dispatchEvent("readystatechange"),4==Me(a)){K(a.T,Ge(a,"Request complete"));a.ra=!1;try{var b=Ne(a),c;a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:c=!0;break a;default:c=!1}var d;if(!(d=c)){var e;if(e=0===b){var f=String(a.Ub).match(Ae)[1]||null;if(!f&&l.self&&l.self.location)var g=l.self.location.protocol,
  f=g.substr(0,g.length-1);e=!Ee.test(f?f.toLowerCase():"")}d=e}if(d)a.dispatchEvent("complete"),a.dispatchEvent("success");else{var k;try{k=2<Me(a)?a.b.statusText:""}catch(t){K(a.T,"Can not get status: "+t.message),k=""}a.tb=k+" ["+Ne(a)+"]";Je(a)}}finally{Ke(a)}}};L.prototype.wd=function(a,b){w("progress"===a.type,"goog.net.EventType.PROGRESS is of the same type as raw XHR progress.");this.dispatchEvent(Oe(a,"progress"));this.dispatchEvent(Oe(a,b?"downloadprogress":"uploadprogress"))};
  var Oe=function(a,b){return{type:b,lengthComputable:a.lengthComputable,loaded:a.loaded,total:a.total}},Ke=function(a,b){if(a.b){He(a);var c=a.b,d=a.qc[0]?ba:null;a.b=null;a.qc=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){(a=a.T)&&a.log(re,"Problem encountered resetting onreadystatechange: "+e.message,void 0)}}},He=function(a){a.b&&a.oc&&(a.b.ontimeout=null);ga(a.mc)&&(l.clearTimeout(a.mc),a.mc=null)},Me=function(a){return a.b?a.b.readyState:0},Ne=function(a){try{return 2<Me(a)?
  a.b.status:-1}catch(b){return-1}},Pe=function(a){try{return a.b?a.b.responseText:""}catch(b){return K(a.T,"Can not get responseText: "+b.message),""}},Ge=function(a,b){return b+" ["+a.sd+" "+a.Ub+" "+Ne(a)+"]"};var Qe=function(a,b){this.ia=this.Ka=this.na="";this.Xa=null;this.Ca=this.ta="";this.P=this.ze=!1;var c;a instanceof Qe?(this.P=void 0!==b?b:a.P,Re(this,a.na),c=a.Ka,M(this),this.Ka=c,Se(this,a.ia),Te(this,a.Xa),Ue(this,a.ta),Ve(this,a.$.clone()),a=a.Ca,M(this),this.Ca=a):a&&(c=String(a).match(Ae))?(this.P=!!b,Re(this,c[1]||"",!0),a=c[2]||"",M(this),this.Ka=We(a),Se(this,c[3]||"",!0),Te(this,c[4]),Ue(this,c[5]||"",!0),Ve(this,c[6]||"",!0),a=c[7]||"",M(this),this.Ca=We(a)):(this.P=!!b,this.$=new N(null,
  0,this.P))};Qe.prototype.toString=function(){var a=[],b=this.na;b&&a.push(Xe(b,Ye,!0),":");var c=this.ia;if(c||"file"==b)a.push("//"),(b=this.Ka)&&a.push(Xe(b,Ye,!0),"@"),a.push(encodeURIComponent(String(c)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.Xa,null!=c&&a.push(":",String(c));if(c=this.ta)this.ia&&"/"!=c.charAt(0)&&a.push("/"),a.push(Xe(c,"/"==c.charAt(0)?Ze:$e,!0));(c=this.$.toString())&&a.push("?",c);(c=this.Ca)&&a.push("#",Xe(c,af));return a.join("")};
  Qe.prototype.resolve=function(a){var b=this.clone(),c=!!a.na;c?Re(b,a.na):c=!!a.Ka;if(c){var d=a.Ka;M(b);b.Ka=d}else c=!!a.ia;c?Se(b,a.ia):c=null!=a.Xa;d=a.ta;if(c)Te(b,a.Xa);else if(c=!!a.ta){if("/"!=d.charAt(0))if(this.ia&&!this.ta)d="/"+d;else{var e=b.ta.lastIndexOf("/");-1!=e&&(d=b.ta.substr(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(v(e,"./")||v(e,"/.")){for(var d=0==e.lastIndexOf("/",0),e=e.split("/"),f=[],g=0;g<e.length;){var k=e[g++];"."==k?d&&g==e.length&&f.push(""):".."==k?((1<f.length||
  1==f.length&&""!=f[0])&&f.pop(),d&&g==e.length&&f.push("")):(f.push(k),d=!0)}d=f.join("/")}else d=e}c?Ue(b,d):c=""!==a.$.toString();c?Ve(b,We(a.$.toString())):c=!!a.Ca;c&&(a=a.Ca,M(b),b.Ca=a);return b};Qe.prototype.clone=function(){return new Qe(this)};
  var Re=function(a,b,c){M(a);a.na=c?We(b,!0):b;a.na&&(a.na=a.na.replace(/:$/,""))},Se=function(a,b,c){M(a);a.ia=c?We(b,!0):b},Te=function(a,b){M(a);if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.Xa=b}else a.Xa=null},Ue=function(a,b,c){M(a);a.ta=c?We(b,!0):b},Ve=function(a,b,c){M(a);b instanceof N?(a.$=b,a.$.Sc(a.P)):(c||(b=Xe(b,bf)),a.$=new N(b,0,a.P))},O=function(a,b,c){M(a);a.$.set(b,c)},cf=function(a,b){M(a);a.$.remove(b)},M=function(a){if(a.ze)throw Error("Tried to modify a read-only Uri");
  };Qe.prototype.Sc=function(a){this.P=a;this.$&&this.$.Sc(a);return this};
  var df=function(a){return a instanceof Qe?a.clone():new Qe(a,void 0)},ef=function(a,b){var c=new Qe(null,void 0);Re(c,"https");a&&Se(c,a);b&&Ue(c,b);return c},We=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},Xe=function(a,b,c){return n(a)?(a=encodeURI(a).replace(b,ff),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},ff=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},Ye=/[#\/\?@]/g,$e=/[\#\?:]/g,Ze=/[\#\?]/g,bf=/[\#\?@]/g,
  af=/#/g,N=function(a,b,c){this.i=this.j=null;this.M=a||null;this.P=!!c},gf=function(a){a.j||(a.j=new ge,a.i=0,a.M&&Be(a.M,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))},jf=function(a){var b=le(a);if("undefined"==typeof b)throw Error("Keys are undefined");var c=new N(null,0,void 0);a=ke(a);for(var d=0;d<b.length;d++){var e=b[d],f=a[d];ea(f)?hf(c,e,f):c.add(e,f)}return c};h=N.prototype;h.ld=function(){gf(this);return this.i};
  h.add=function(a,b){gf(this);this.M=null;a=this.O(a);var c=this.j.get(a);c||this.j.set(a,c=[]);c.push(b);this.i=Aa(this.i)+1;return this};h.remove=function(a){gf(this);a=this.O(a);return this.j.mb(a)?(this.M=null,this.i=Aa(this.i)-this.j.get(a).length,this.j.remove(a)):!1};h.mb=function(a){gf(this);a=this.O(a);return this.j.mb(a)};h.ja=function(){gf(this);for(var a=this.j.X(),b=this.j.ja(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
  h.X=function(a){gf(this);var b=[];if(n(a))this.mb(a)&&(b=Na(b,this.j.get(this.O(a))));else{a=this.j.X();for(var c=0;c<a.length;c++)b=Na(b,a[c])}return b};h.set=function(a,b){gf(this);this.M=null;a=this.O(a);this.mb(a)&&(this.i=Aa(this.i)-this.j.get(a).length);this.j.set(a,[b]);this.i=Aa(this.i)+1;return this};h.get=function(a,b){a=a?this.X(a):[];return 0<a.length?String(a[0]):b};var hf=function(a,b,c){a.remove(b);0<c.length&&(a.M=null,a.j.set(a.O(b),Pa(c)),a.i=Aa(a.i)+c.length)};
  N.prototype.toString=function(){if(this.M)return this.M;if(!this.j)return"";for(var a=[],b=this.j.ja(),c=0;c<b.length;c++)for(var d=b[c],e=encodeURIComponent(String(d)),d=this.X(d),f=0;f<d.length;f++){var g=e;""!==d[f]&&(g+="="+encodeURIComponent(String(d[f])));a.push(g)}return this.M=a.join("&")};N.prototype.clone=function(){var a=new N;a.M=this.M;this.j&&(a.j=this.j.clone(),a.i=this.i);return a};N.prototype.O=function(a){a=String(a);this.P&&(a=a.toLowerCase());return a};
  N.prototype.Sc=function(a){a&&!this.P&&(gf(this),this.M=null,this.j.forEach(function(a,c){var b=c.toLowerCase();c!=b&&(this.remove(c),hf(this,b,a))},this));this.P=a};var lf=function(){var a=kf();return z&&!!pb&&11==pb||/Edge\/\d+/.test(a)},mf=function(){return l.window&&l.window.location.href||""},nf=function(a,b){var c=[],d;for(d in a)d in b?typeof a[d]!=typeof b[d]?c.push(d):ea(a[d])?Va(a[d],b[d])||c.push(d):"object"==typeof a[d]&&null!=a[d]&&null!=b[d]?0<nf(a[d],b[d]).length&&c.push(d):a[d]!==b[d]&&c.push(d):c.push(d);for(d in b)d in a||c.push(d);return c},pf=function(){var a;a=kf();a="Chrome"!=of(a)?null:(a=a.match(/\sChrome\/(\d+)/i))&&2==a.length?parseInt(a[1],
  10):null;return a&&30>a?!1:!z||!pb||9<pb},qf=function(a){a=a||l.window;try{a.close()}catch(b){}},rf=function(a,b,c){var d=Math.floor(1E9*Math.random()).toString();b=b||500;c=c||600;var e=(window.screen.availHeight-c)/2,f=(window.screen.availWidth-b)/2;b={width:b,height:c,top:0<e?e:0,left:0<f?f:0,location:!0,resizable:!0,statusbar:!0,toolbar:!1};d&&(b.target=d);"Firefox"==of(kf())&&(a=a||"http://localhost",b.scrollbars=!0);var g;c=a||"about:blank";(d=b)||(d={});a=window;b=c instanceof B?c:hc("undefined"!=
  typeof c.href?c.href:String(c));c=d.target||c.target;e=[];for(g in d)switch(g){case "width":case "height":case "top":case "left":e.push(g+"="+d[g]);break;case "target":case "noreferrer":break;default:e.push(g+"="+(d[g]?1:0))}g=e.join(",");(y("iPhone")&&!y("iPod")&&!y("iPad")||y("iPad")||y("iPod"))&&a.navigator&&a.navigator.standalone&&c&&"_self"!=c?(g=a.document.createElement("A"),"undefined"!=typeof HTMLAnchorElement&&"undefined"!=typeof Location&&"undefined"!=typeof Element&&(e=g&&(g instanceof
  HTMLAnchorElement||!(g instanceof Location||g instanceof Element)),f=ha(g)?g.constructor.displayName||g.constructor.name||Object.prototype.toString.call(g):void 0===g?"undefined":null===g?"null":typeof g,w(e,"Argument is not a HTMLAnchorElement (or a non-Element mock); got: %s",f)),b=b instanceof B?b:hc(b),g.href=ec(b),g.setAttribute("target",c),d.noreferrer&&g.setAttribute("rel","noreferrer"),d=document.createEvent("MouseEvent"),d.initMouseEvent("click",!0,!0,a,1),g.dispatchEvent(d),g={}):d.noreferrer?
  (g=a.open("",c,g),d=ec(b),g&&(gb&&v(d,";")&&(d="'"+d.replace(/'/g,"%27")+"'"),g.opener=null,a=cc("b/12014412, meta tag with sanitized URL"),va.test(d)&&(-1!=d.indexOf("&")&&(d=d.replace(oa,"&amp;")),-1!=d.indexOf("<")&&(d=d.replace(pa,"&lt;")),-1!=d.indexOf(">")&&(d=d.replace(qa,"&gt;")),-1!=d.indexOf('"')&&(d=d.replace(ra,"&quot;")),-1!=d.indexOf("'")&&(d=d.replace(sa,"&#39;")),-1!=d.indexOf("\x00")&&(d=d.replace(ta,"&#0;"))),d='<META HTTP-EQUIV="refresh" content="0; url='+d+'">',Ba(bc(a),"must provide justification"),
  w(!/^[\s\xa0]*$/.test(bc(a)),"must provide non-empty justification"),g.document.write(Yc((new Xc).ye(d))),g.document.close())):g=a.open(ec(b),c,g);if(g)try{g.focus()}catch(k){}return g},sf=function(a){return new H(function(b){var c=function(){ze(2E3).then(function(){if(!a||a.closed)b();else return c()})};return c()})},tf=function(){var a=null;return(new H(function(b){"complete"==l.document.readyState?b():(a=function(){b()},Sb(window,"load",a))})).l(function(b){Ub(window,"load",a);throw b;})},uf=function(a){switch(a||
  l.navigator&&l.navigator.product||""){case "ReactNative":return"ReactNative";default:return"undefined"!==typeof l.process?"Node":"Browser"}},vf=function(){var a=uf();return"ReactNative"===a||"Node"===a},of=function(a){var b=a.toLowerCase();if(v(b,"opera/")||v(b,"opr/")||v(b,"opios/"))return"Opera";if(v(b,"iemobile"))return"IEMobile";if(v(b,"msie")||v(b,"trident/"))return"IE";if(v(b,"edge/"))return"Edge";if(v(b,"firefox/"))return"Firefox";if(v(b,"silk/"))return"Silk";if(v(b,"blackberry"))return"Blackberry";
  if(v(b,"webos"))return"Webos";if(!v(b,"safari/")||v(b,"chrome/")||v(b,"crios/")||v(b,"android"))if(!v(b,"chrome/")&&!v(b,"crios/")||v(b,"edge/")){if(v(b,"android"))return"Android";if((a=a.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/))&&2==a.length)return a[1]}else return"Chrome";else return"Safari";return"Other"},wf=function(a){var b=uf(void 0);return("Browser"===b?of(kf()):b)+"/JsCore/"+a},kf=function(){return l.navigator&&l.navigator.userAgent||""},xf=function(a){a=a.split(".");for(var b=l,c=0;c<a.length&&
  "object"==typeof b&&null!=b;c++)b=b[a[c]];c!=a.length&&(b=void 0);return b},zf=function(){var a;if(!(a=!l.location||!l.location.protocol||"http:"!=l.location.protocol&&"https:"!=l.location.protocol||vf())){var b;a:{try{var c=l.localStorage,d=yf();if(c){c.setItem(d,"1");c.removeItem(d);b=lf()?!!l.indexedDB:!0;break a}}catch(e){}b=!1}a=!b}return!a},Af=function(a){a=a||kf();var b=(a||kf()).toLowerCase();return b.match(/android/)||b.match(/webos/)||b.match(/iphone|ipad|ipod/)||b.match(/blackberry/)||
  b.match(/windows phone/)||b.match(/iemobile/)||"Firefox"==of(a)?!1:!0},Bf=function(a){return"undefined"===typeof a?null:mc(a)},Cf=function(a){var b={},c;for(c in a)a.hasOwnProperty(c)&&null!==a[c]&&void 0!==a[c]&&(b[c]=a[c]);return b},Df=function(a){if(null!==a){var b;try{b=jc(a)}catch(c){try{b=JSON.parse(a)}catch(d){throw c;}}return b}},yf=function(a){return a?a:""+Math.floor(1E9*Math.random()).toString()},Ef=function(a){a=a||kf();return"Safari"==of(a)||a.toLowerCase().match(/iphone|ipad|ipod/)?
  !1:!0},Ff=function(){var a=l.___jsl;if(a&&a.H)for(var b in a.H)if(a.H[b].r=a.H[b].r||[],a.H[b].L=a.H[b].L||[],a.H[b].r=a.H[b].L.concat(),a.CP)for(var c=0;c<a.CP.length;c++)a.CP[c]=null};var Gf;try{var Hf={};Object.defineProperty(Hf,"abcd",{configurable:!0,enumerable:!0,value:1});Object.defineProperty(Hf,"abcd",{configurable:!0,enumerable:!0,value:2});Gf=2==Hf.abcd}catch(a){Gf=!1}
  var P=function(a,b,c){Gf?Object.defineProperty(a,b,{configurable:!0,enumerable:!0,value:c}):a[b]=c},If=function(a,b){if(b)for(var c in b)b.hasOwnProperty(c)&&P(a,c,b[c])},Jf=function(a){var b={},c;for(c in a)a.hasOwnProperty(c)&&(b[c]=a[c]);return b},Kf=function(a,b){if(!b||!b.length)return!0;if(!a)return!1;for(var c=0;c<b.length;c++){var d=a[b[c]];if(void 0===d||null===d||""===d)return!1}return!0};var Lf=["client_id","response_type","scope","redirect_uri","state"],Mf={Od:{xb:500,wb:600,providerId:"facebook.com",fc:Lf},Pd:{xb:500,wb:620,providerId:"github.com",fc:Lf},Qd:{xb:515,wb:680,providerId:"google.com",fc:Lf},Vd:{xb:485,wb:705,providerId:"twitter.com",fc:"oauth_consumer_key oauth_nonce oauth_signature oauth_signature_method oauth_timestamp oauth_token oauth_version".split(" ")}},Nf=function(a){for(var b in Mf)if(Mf[b].providerId==a)return Mf[b];return null},Of=function(a){return(a=Nf(a))&&
  a.fc||[]};var Q=function(a,b){this.code="auth/"+a;this.message=b||Pf[a]||""};r(Q,Error);Q.prototype.K=function(){return{name:this.code,code:this.code,message:this.message}};
  var Pf={"argument-error":"","app-not-authorized":"This app, identified by the domain where it's hosted, is not authorized to use Firebase Authentication with the provided API key. Review your key configuration in the Google API console.","cors-unsupported":"This browser is not supported.","credential-already-in-use":"This credential is already associated with a different user account.","custom-token-mismatch":"The custom token corresponds to a different audience.","requires-recent-login":"This operation is sensitive and requires recent authentication. Log in again before retrying this request.",
  "email-already-in-use":"The email address is already in use by another account.","expired-action-code":"The action code has expired. ","cancelled-popup-request":"This operation has been cancelled due to another conflicting popup being opened.","internal-error":"An internal error has occurred.","invalid-user-token":"The user's credential is no longer valid. The user must sign in again.","invalid-auth-event":"An internal error has occurred.","invalid-custom-token":"The custom token format is incorrect. Please check the documentation.",
  "invalid-email":"The email address is badly formatted.","invalid-api-key":"Your API key is invalid, please check you have copied it correctly.","invalid-credential":"The supplied auth credential is malformed or has expired.","invalid-oauth-provider":"EmailAuthProvider is not supported for this operation. This operation only supports OAuth providers.","unauthorized-domain":"This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console.",
  "invalid-action-code":"The action code is invalid. This can happen if the code is malformed, expired, or has already been used.","wrong-password":"The password is invalid or the user does not have a password.","missing-iframe-start":"An internal error has occurred.","auth-domain-config-required":"Be sure to include authDomain when calling firebase.initializeApp(), by following the instructions in the Firebase console.","app-deleted":"This instance of FirebaseApp has been deleted.","account-exists-with-different-credential":"An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address.",
  "network-request-failed":"A network error (such as timeout, interrupted connection or unreachable host) has occurred.","no-auth-event":"An internal error has occurred.","no-such-provider":"User was not linked to an account with the given provider.","operation-not-allowed":"The given sign-in provider is disabled for this Firebase project. Enable it in the Firebase console, under the sign-in method tab of the Auth section.","operation-not-supported-in-this-environment":'This operation is not supported in the environment this application is running on. "location.protocol" must be http or https and web storage must be enabled.',
  "popup-blocked":"Unable to establish a connection with the popup. It may have been blocked by the browser.","popup-closed-by-user":"The popup has been closed by the user before finalizing the operation.","provider-already-linked":"User can only be linked to one identity for the given provider.",timeout:"The operation has timed out.","user-token-expired":"The user's credential is no longer valid. The user must sign in again.","too-many-requests":"We have blocked all requests from this device due to unusual activity. Try again later.",
  "user-cancelled":"User did not grant your application the permissions it requested.","user-not-found":"There is no user record corresponding to this identifier. The user may have been deleted.","user-disabled":"The user account has been disabled by an administrator.","user-mismatch":"The supplied credentials do not correspond to the previously signed in user.","user-signed-out":"","weak-password":"The password must be 6 characters long or more.","web-storage-unsupported":"This browser is not supported."};var Qf=function(a,b,c,d,e){this.ya=a;this.W=b||null;this.kb=c||null;this.hc=d||null;this.N=e||null;if(this.kb||this.N){if(this.kb&&this.N)throw new Q("invalid-auth-event");if(this.kb&&!this.hc)throw new Q("invalid-auth-event");}else throw new Q("invalid-auth-event");};Qf.prototype.getError=function(){return this.N};Qf.prototype.K=function(){return{type:this.ya,eventId:this.W,urlResponse:this.kb,sessionId:this.hc,error:this.N&&this.N.K()}};var Rf=function(a){var b="unauthorized-domain",c=void 0,d=df(a);a=d.ia;d=d.na;"http"!=d&&"https"!=d?b="operation-not-supported-in-this-environment":c=ma("This domain (%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",a);Q.call(this,b,c)};r(Rf,Q);var Sf=function(a){this.De=a.sub;la();this.Hb=a.email||null};var Tf=function(a,b,c,d){var e={};ha(c)?e=c:b&&n(c)&&n(d)?e={oauthToken:c,oauthTokenSecret:d}:!b&&n(c)&&(e={accessToken:c});if(b||!e.idToken&&!e.accessToken)if(b&&e.oauthToken&&e.oauthTokenSecret)P(this,"accessToken",e.oauthToken),P(this,"secret",e.oauthTokenSecret);else{if(b)throw new Q("argument-error","credential failed: expected 2 arguments (the OAuth access token and secret).");throw new Q("argument-error","credential failed: expected 1 argument (the OAuth access token).");}else e.idToken&&P(this,
  "idToken",e.idToken),e.accessToken&&P(this,"accessToken",e.accessToken);P(this,"provider",a)};Tf.prototype.Kb=function(a){return Uf(a,Vf(this))};Tf.prototype.td=function(a,b){var c=Vf(this);c.idToken=b;return Wf(a,c)};var Vf=function(a){var b={};a.idToken&&(b.id_token=a.idToken);a.accessToken&&(b.access_token=a.accessToken);a.secret&&(b.oauth_token_secret=a.secret);b.providerId=a.provider;return{postBody:jf(b).toString(),requestUri:zf()?mf():"http://localhost"}};
  Tf.prototype.K=function(){var a={provider:this.provider};this.idToken&&(a.oauthIdToken=this.idToken);this.accessToken&&(a.oauthAccessToken=this.accessToken);this.secret&&(a.oauthTokenSecret=this.secret);return a};
  var Xf=function(a,b,c){var d=!!b,e=c||[];b=function(){If(this,{providerId:a,isOAuthProvider:!0});this.Rc=[];this.ed={};"google.com"==a&&this.addScope("profile")};d||(b.prototype.addScope=function(a){Ja(this.Rc,a)||this.Rc.push(a)});b.prototype.setCustomParameters=function(a){this.ed=Wa(a)};b.prototype.me=function(){var a=Cf(this.ed),b;for(b in a)a[b]=a[b].toString();a=Wa(a);for(b=0;b<e.length;b++){var c=e[b];c in a&&delete a[c]}return a};b.prototype.ne=function(){return Pa(this.Rc)};b.credential=
  function(b,c){return new Tf(a,d,b,c)};If(b,{PROVIDER_ID:a});return b},Yf=Xf("facebook.com",!1,Of("facebook.com"));Yf.prototype.addScope=Yf.prototype.addScope||void 0;var Zf=Xf("github.com",!1,Of("github.com"));Zf.prototype.addScope=Zf.prototype.addScope||void 0;var $f=Xf("google.com",!1,Of("google.com"));$f.prototype.addScope=$f.prototype.addScope||void 0;
  $f.credential=function(a,b){if(!a&&!b)throw new Q("argument-error","credential failed: must provide the ID token and/or the access token.");return new Tf("google.com",!1,ha(a)?a:{idToken:a||null,accessToken:b||null})};var ag=Xf("twitter.com",!0,Of("twitter.com")),bg=function(a,b){this.Hb=a;this.Jc=b;P(this,"provider","password")};bg.prototype.Kb=function(a){return R(a,cg,{email:this.Hb,password:this.Jc})};bg.prototype.td=function(a,b){return R(a,dg,{idToken:b,email:this.Hb,password:this.Jc})};
  bg.prototype.K=function(){return{email:this.Hb,password:this.Jc}};var eg=function(){If(this,{providerId:"password",isOAuthProvider:!1})};If(eg,{PROVIDER_ID:"password"});var fg={cf:eg,Od:Yf,Qd:$f,Pd:Zf,Vd:ag},gg=function(a){var b=a&&a.providerId;if(!b)return null;var c=a&&a.oauthAccessToken,d=a&&a.oauthTokenSecret;a=a&&a.oauthIdToken;for(var e in fg)if(fg[e].PROVIDER_ID==b)try{return fg[e].credential({accessToken:c,idToken:a,oauthToken:c,oauthTokenSecret:d})}catch(f){break}return null};var hg=function(a,b,c,d){Q.call(this,a,d);P(this,"email",b);P(this,"credential",c)};r(hg,Q);hg.prototype.K=function(){var a={code:this.code,message:this.message,email:this.email},b=this.credential&&this.credential.K();b&&(Ya(a,b),a.providerId=b.provider,delete a.provider);return a};var ig=function(a){if(a.code){var b=a.code||"";0==b.indexOf("auth/")&&(b=b.substring(5));return a.email?new hg(b,a.email,gg(a),a.message):new Q(b,a.message||void 0)}return null};var jg=function(a){this.bf=a};r(jg,qc);jg.prototype.nb=function(){return new this.bf};jg.prototype.Tb=function(){return{}};
  var S=function(a,b,c){var d;d="Node"==uf();d=l.XMLHttpRequest||d&&firebase.INTERNAL.node&&firebase.INTERNAL.node.XMLHttpRequest;if(!d)throw new Q("internal-error","The XMLHttpRequest compatibility library was not found.");this.m=a;a=b||{};this.Ne=a.secureTokenEndpoint||"https://securetoken.googleapis.com/v1/token";this.Oe=a.secureTokenTimeout||1E4;this.Dd=Wa(a.secureTokenHeaders||kg);this.ie=a.firebaseEndpoint||"https://www.googleapis.com/identitytoolkit/v3/relyingparty/";this.je=a.firebaseTimeout||
  1E4;this.kd=Wa(a.firebaseHeaders||lg);c&&(this.kd["X-Client-Version"]=c,this.Dd["X-Client-Version"]=c);this.$d=new vc;this.af=new jg(d)},mg,kg={"Content-Type":"application/x-www-form-urlencoded"},lg={"Content-Type":"application/json"},og=function(a,b,c,d,e,f,g){pf()?a=q(a.Qe,a):(mg||(mg=new H(function(a,b){ng(a,b)})),a=q(a.Pe,a));a(b,c,d,e,f,g)};
  S.prototype.Qe=function(a,b,c,d,e,f){var g="Node"==uf(),k=vf()?g?new L(this.af):new L:new L(this.$d),t;f&&(k.ib=Math.max(0,f),t=setTimeout(function(){k.dispatchEvent("timeout")},f));k.listen("complete",function(){t&&clearTimeout(t);var a=null;try{var c;c=this.b?jc(this.b.responseText):void 0;a=c||null}catch(Wi){try{a=JSON.parse(Pe(this))||null}catch(Xi){a=null}}b&&b(a)});Tb(k,"ready",function(){t&&clearTimeout(t);this.Ba||(this.Ba=!0,this.Ra())});Tb(k,"timeout",function(){t&&clearTimeout(t);this.Ba||
  (this.Ba=!0,this.Ra());b&&b(null)});k.send(a,c,d,e)};var Rd="__fcb"+Math.floor(1E6*Math.random()).toString(),ng=function(a,b){((window.gapi||{}).client||{}).request?a():(l[Rd]=function(){((window.gapi||{}).client||{}).request?a():b(Error("CORS_UNSUPPORTED"))},Td(function(){b(Error("CORS_UNSUPPORTED"))}))};
  S.prototype.Pe=function(a,b,c,d,e){var f=this;mg.then(function(){window.gapi.client.setApiKey(f.m);var g=window.gapi.auth.getToken();window.gapi.auth.setToken(null);window.gapi.client.request({path:a,method:c,body:d,headers:e,authType:"none",callback:function(a){window.gapi.auth.setToken(g);b&&b(a)}})}).l(function(a){b&&b({error:{message:a&&a.message||"CORS_UNSUPPORTED"}})})};
  var qg=function(a,b){return new H(function(c,d){"refresh_token"==b.grant_type&&b.refresh_token||"authorization_code"==b.grant_type&&b.code?og(a,a.Ne+"?key="+encodeURIComponent(a.m),function(a){a?a.error?d(pg(a)):a.access_token&&a.refresh_token?c(a):d(new Q("internal-error")):d(new Q("network-request-failed"))},"POST",jf(b).toString(),a.Dd,a.Oe):d(new Q("internal-error"))})},rg=function(a,b,c,d,e){var f=a.ie+b+"?key="+encodeURIComponent(a.m);e&&(f+="&cb="+la().toString());return new H(function(b,e){og(a,
  f,function(a){a?a.error?e(pg(a)):b(a):e(new Q("network-request-failed"))},c,mc(Cf(d)),a.kd,a.je)})},sg=function(a){if(!Zb.test(a.email))throw new Q("invalid-email");},tg=function(a){"email"in a&&sg(a)},vg=function(a,b){var c=zf()?mf():"http://localhost";return R(a,ug,{identifier:b,continueUri:c}).then(function(a){return a.allProviders||[]})},xg=function(a){return R(a,wg,{}).then(function(a){return a.authorizedDomains||[]})},yg=function(a){if(!a.idToken)throw new Q("internal-error");};
  S.prototype.signInAnonymously=function(){return R(this,zg,{})};S.prototype.updateEmail=function(a,b){return R(this,Ag,{idToken:a,email:b})};S.prototype.updatePassword=function(a,b){return R(this,dg,{idToken:a,password:b})};var Bg={displayName:"DISPLAY_NAME",photoUrl:"PHOTO_URL"};S.prototype.updateProfile=function(a,b){var c={idToken:a},d=[];Ra(Bg,function(a,f){var e=b[f];null===e?d.push(a):f in b&&(c[f]=e)});d.length&&(c.deleteAttribute=d);return R(this,Ag,c)};
  S.prototype.sendPasswordResetEmail=function(a){return R(this,Cg,{requestType:"PASSWORD_RESET",email:a})};S.prototype.sendEmailVerification=function(a){return R(this,Dg,{requestType:"VERIFY_EMAIL",idToken:a})};
  var Fg=function(a,b,c){return R(a,Eg,{idToken:b,deleteProvider:c})},Gg=function(a){if(!a.requestUri||!a.sessionId&&!a.postBody)throw new Q("internal-error");},Hg=function(a){var b=null;a.needConfirmation?(a.code="account-exists-with-different-credential",b=ig(a)):"FEDERATED_USER_ID_ALREADY_LINKED"==a.errorMessage?(a.code="credential-already-in-use",b=ig(a)):"EMAIL_EXISTS"==a.errorMessage&&(a.code="email-already-in-use",b=ig(a));if(b)throw b;if(!a.idToken)throw new Q("internal-error");},Uf=function(a,
  b){b.returnIdpCredential=!0;return R(a,Ig,b)},Wf=function(a,b){b.returnIdpCredential=!0;return R(a,Jg,b)},Kg=function(a){if(!a.oobCode)throw new Q("invalid-action-code");};S.prototype.confirmPasswordReset=function(a,b){return R(this,Lg,{oobCode:a,newPassword:b})};S.prototype.checkActionCode=function(a){return R(this,Mg,{oobCode:a})};S.prototype.applyActionCode=function(a){return R(this,Ng,{oobCode:a})};
  var Ng={endpoint:"setAccountInfo",I:Kg,gb:"email"},Mg={endpoint:"resetPassword",I:Kg,wa:function(a){if(!Zb.test(a.email))throw new Q("internal-error");}},Og={endpoint:"signupNewUser",I:function(a){sg(a);if(!a.password)throw new Q("weak-password");},wa:yg,xa:!0},ug={endpoint:"createAuthUri"},Pg={endpoint:"deleteAccount",eb:["idToken"]},Eg={endpoint:"setAccountInfo",eb:["idToken","deleteProvider"],I:function(a){if(!ea(a.deleteProvider))throw new Q("internal-error");}},Qg={endpoint:"getAccountInfo"},
  Dg={endpoint:"getOobConfirmationCode",eb:["idToken","requestType"],I:function(a){if("VERIFY_EMAIL"!=a.requestType)throw new Q("internal-error");},gb:"email"},Cg={endpoint:"getOobConfirmationCode",eb:["requestType"],I:function(a){if("PASSWORD_RESET"!=a.requestType)throw new Q("internal-error");sg(a)},gb:"email"},wg={Zd:!0,endpoint:"getProjectConfig",ue:"GET"},Lg={endpoint:"resetPassword",I:Kg,gb:"email"},Ag={endpoint:"setAccountInfo",eb:["idToken"],I:tg,xa:!0},dg={endpoint:"setAccountInfo",eb:["idToken"],
  I:function(a){tg(a);if(!a.password)throw new Q("weak-password");},wa:yg,xa:!0},zg={endpoint:"signupNewUser",wa:yg,xa:!0},Ig={endpoint:"verifyAssertion",I:Gg,wa:Hg,xa:!0},Jg={endpoint:"verifyAssertion",I:function(a){Gg(a);if(!a.idToken)throw new Q("internal-error");},wa:Hg,xa:!0},Rg={endpoint:"verifyCustomToken",I:function(a){if(!a.token)throw new Q("invalid-custom-token");},wa:yg,xa:!0},cg={endpoint:"verifyPassword",I:function(a){sg(a);if(!a.password)throw new Q("wrong-password");},wa:yg,xa:!0},R=
  function(a,b,c){if(!Kf(c,b.eb))return J(new Q("internal-error"));var d=b.ue||"POST",e;return I(c).then(b.I).then(function(){b.xa&&(c.returnSecureToken=!0);return rg(a,b.endpoint,d,c,b.Zd||!1)}).then(function(a){return e=a}).then(b.wa).then(function(){if(!b.gb)return e;if(!(b.gb in e))throw new Q("internal-error");return e[b.gb]})},pg=function(a){var b,c;c=(a.error&&a.error.errors&&a.error.errors[0]||{}).reason||"";var d={keyInvalid:"invalid-api-key",ipRefererBlocked:"app-not-authorized"};if(c=d[c]?
  new Q(d[c]):null)return c;c=a.error&&a.error.message||"";d={INVALID_CUSTOM_TOKEN:"invalid-custom-token",CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_EMAIL:"invalid-email",INVALID_PASSWORD:"wrong-password",USER_DISABLED:"user-disabled",MISSING_PASSWORD:"internal-error",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",
  FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",EMAIL_NOT_FOUND:"user-not-found",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",CORS_UNSUPPORTED:"cors-unsupported",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",WEAK_PASSWORD:"weak-password",OPERATION_NOT_ALLOWED:"operation-not-allowed",
  USER_CANCELLED:"user-cancelled"};b=(b=c.match(/^[^\s]+\s*:\s*(.*)$/))&&1<b.length?b[1]:void 0;for(var e in d)if(0===c.indexOf(e))return new Q(d[e],b);!b&&a&&(b=Bf(a));return new Q("internal-error",b)};var Sg=function(a){this.U=a};Sg.prototype.value=function(){return this.U};Sg.prototype.Gd=function(a){this.U.style=a;return this};var Tg=function(a){this.U=a||{}};Tg.prototype.value=function(){return this.U};Tg.prototype.Gd=function(a){this.U.style=a;return this};var Vg=function(a){this.$e=a;this.Cc=null;this.vd=Ug(this)};Vg.prototype.Hc=function(){return this.vd};
  var Wg=function(a){var b=new Tg;b.U.where=document.body;b.U.url=a.$e;b.U.messageHandlersFilter=xf("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER");b.U.attributes=b.U.attributes||{};(new Sg(b.U.attributes)).Gd({position:"absolute",top:"-100px",width:"1px",height:"1px"});b.U.dontclear=!0;return b},Ug=function(a){return Xg().then(function(){return new H(function(b,c){xf("gapi.iframes.getContext")().open(Wg(a).value(),function(d){a.Cc=d;a.Cc.restyle({setHideOnLeave:!1});var e=setTimeout(function(){c(Error("Network Error"))},
  5E3),f=function(){clearTimeout(e);b()};d.ping(f).then(f,function(){c(Error("Network Error"))})})})})},Yg=function(a,b){a.vd.then(function(){a.Cc.register("authEvent",b,xf("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))})},Xg=function(){return new H(function(a,b){var c=function(){Ff();xf("gapi.load")("gapi.iframes",{callback:a,ontimeout:function(){Ff();b(Error("Network Error"))},timeout:3E3})};if(xf("gapi.iframes.Iframe"))a();else if(xf("gapi.load"))c();else{var d="__iframefcb"+Math.floor(1E6*Math.random()).toString();
  l[d]=function(){xf("gapi.load")?c():b(Error("Network Error"))};I(Qd("https://apis.google.com/js/api.js?onload="+d)).l(function(){b(Error("Network Error"))})}})};var Zg=function(a,b,c){this.C=a;this.m=b;this.F=c;this.La=null;this.u=ef(this.C,"/__/auth/iframe");O(this.u,"apiKey",this.m);O(this.u,"appName",this.F)};Zg.prototype.setVersion=function(a){this.La=a;return this};Zg.prototype.toString=function(){this.La?O(this.u,"v",this.La):cf(this.u,"v");return this.u.toString()};
  var $g=function(a,b,c,d,e){this.C=a;this.m=b;this.F=c;this.Yd=d;this.La=this.W=this.Pc=null;this.$b=e;this.u=ef(this.C,"/__/auth/handler");O(this.u,"apiKey",this.m);O(this.u,"appName",this.F);O(this.u,"authType",this.Yd)};$g.prototype.setVersion=function(a){this.La=a;return this};
  $g.prototype.toString=function(){if(this.$b.isOAuthProvider){O(this.u,"providerId",this.$b.providerId);var a=this.$b.ne();a&&a.length&&O(this.u,"scopes",a.join(","));a=this.$b.me();Ua(a)||O(this.u,"customParameters",Bf(a))}this.Pc?O(this.u,"redirectUrl",this.Pc):cf(this.u,"redirectUrl");this.W?O(this.u,"eventId",this.W):cf(this.u,"eventId");this.La?O(this.u,"v",this.La):cf(this.u,"v");return this.u.toString()};
  var bh=function(a,b,c,d){this.C=a;this.m=b;this.F=c;d=this.Aa=d||null;this.ve=(new Zg(a,b,c)).setVersion(d).toString();this.pd=new Vg(this.ve);this.Db=[];ah(this)};bh.prototype.Hc=function(){return this.pd.Hc()};
  var ch=function(a,b,c,d,e,f,g,k){a=new $g(a,b,c,d,e);a.Pc=f;a.W=g;return a.setVersion(k).toString()},ah=function(a){Yg(a.pd,function(b){var c={};if(b&&b.authEvent){var d=!1;b=b.authEvent||{};if(b.type){if(c=b.error)var e=(c=b.error)&&(c.name||c.code),c=e?new Q(e.substring(5),c.message):null;b=new Qf(b.type,b.eventId,b.urlResponse,b.sessionId,c)}else b=null;for(c=0;c<a.Db.length;c++)d=a.Db[c](b)||d;c={};c.status=d?"ACK":"ERROR";return I(c)}c.status="ERROR";return I(c)})},dh=function(a,b){Ma(a.Db,function(a){return a==
  b})};var eh=function(a){this.w=a||firebase.INTERNAL.reactNative&&firebase.INTERNAL.reactNative.AsyncStorage;if(!this.w)throw new Q("internal-error","The React Native compatibility library was not found.");};h=eh.prototype;h.get=function(a){return I(this.w.getItem(a)).then(function(a){return a&&Df(a)})};h.set=function(a,b){return I(this.w.setItem(a,Bf(b)))};h.remove=function(a){return I(this.w.removeItem(a))};h.Na=function(){};h.bb=function(){};var fh=function(){this.w={}};h=fh.prototype;h.get=function(a){return I(this.w[a])};h.set=function(a,b){this.w[a]=b;return I()};h.remove=function(a){delete this.w[a];return I()};h.Na=function(){};h.bb=function(){};var hh=function(){if(!gh()){if("Node"==uf())throw new Q("internal-error","The LocalStorage compatibility library was not found.");throw new Q("web-storage-unsupported");}this.w=l.localStorage||firebase.INTERNAL.node.localStorage},gh=function(){var a="Node"==uf(),a=l.localStorage||a&&firebase.INTERNAL.node&&firebase.INTERNAL.node.localStorage;if(!a)return!1;try{return a.setItem("__sak","1"),a.removeItem("__sak"),!0}catch(b){return!1}};h=hh.prototype;
  h.get=function(a){var b=this;return I().then(function(){var c=b.w.getItem(a);return Df(c)})};h.set=function(a,b){var c=this;return I().then(function(){var d=Bf(b);null===d?c.remove(a):c.w.setItem(a,d)})};h.remove=function(a){var b=this;return I().then(function(){b.w.removeItem(a)})};h.Na=function(a){l.window&&Lb(l.window,"storage",a)};h.bb=function(a){l.window&&Ub(l.window,"storage",a)};var ih=function(){this.w={}};h=ih.prototype;h.get=function(){return I(null)};h.set=function(){return I()};h.remove=function(){return I()};h.Na=function(){};h.bb=function(){};var kh=function(){if(!jh()){if("Node"==uf())throw new Q("internal-error","The SessionStorage compatibility library was not found.");throw new Q("web-storage-unsupported");}this.w=l.sessionStorage||firebase.INTERNAL.node.sessionStorage},jh=function(){var a="Node"==uf(),a=l.sessionStorage||a&&firebase.INTERNAL.node&&firebase.INTERNAL.node.sessionStorage;if(!a)return!1;try{return a.setItem("__sak","1"),a.removeItem("__sak"),!0}catch(b){return!1}};h=kh.prototype;
  h.get=function(a){var b=this;return I().then(function(){var c=b.w.getItem(a);return Df(c)})};h.set=function(a,b){var c=this;return I().then(function(){var d=Bf(b);null===d?c.remove(a):c.w.setItem(a,d)})};h.remove=function(a){var b=this;return I().then(function(){b.w.removeItem(a)})};h.Na=function(){};h.bb=function(){};var lh=function(a,b,c,d,e,f){if(!window.indexedDB)throw new Q("web-storage-unsupported");this.be=a;this.Gc=b;this.wc=c;this.Md=d;this.pa=e;this.S={};this.zb=[];this.vb=0;this.we=f||l.indexedDB},mh,nh=function(a){return new H(function(b,c){var d=a.we.open(a.be,a.pa);d.onerror=function(a){c(Error(a.target.errorCode))};d.onupgradeneeded=function(b){b=b.target.result;try{b.createObjectStore(a.Gc,{keyPath:a.wc})}catch(f){c(f)}};d.onsuccess=function(a){b(a.target.result)}})},oh=function(a){a.qd||(a.qd=
  nh(a));return a.qd},ph=function(a,b){return b.objectStore(a.Gc)},qh=function(a,b,c){return b.transaction([a.Gc],c?"readwrite":"readonly")},rh=function(a){return new H(function(b,c){a.onsuccess=function(a){a&&a.target?b(a.target.result):b()};a.onerror=function(a){c(Error(a.target.errorCode))}})};h=lh.prototype;
  h.set=function(a,b){var c=!1,d,e=this;return zd(oh(this).then(function(b){d=b;b=ph(e,qh(e,d,!0));return rh(b.get(a))}).then(function(f){var g=ph(e,qh(e,d,!0));if(f)return f.value=b,rh(g.put(f));e.vb++;c=!0;f={};f[e.wc]=a;f[e.Md]=b;return rh(g.add(f))}).then(function(){e.S[a]=b}),function(){c&&e.vb--})};h.get=function(a){var b=this;return oh(this).then(function(c){return rh(ph(b,qh(b,c,!1)).get(a))}).then(function(a){return a&&a.value})};
  h.remove=function(a){var b=!1,c=this;return zd(oh(this).then(function(d){b=!0;c.vb++;return rh(ph(c,qh(c,d,!0))["delete"](a))}).then(function(){delete c.S[a]}),function(){b&&c.vb--})};
  h.Se=function(){var a=this;return oh(this).then(function(b){var c=ph(a,qh(a,b,!1));return c.getAll?rh(c.getAll()):new H(function(a,b){var d=[],e=c.openCursor();e.onsuccess=function(b){(b=b.target.result)?(d.push(b.value),b["continue"]()):a(d)};e.onerror=function(a){b(Error(a.target.errorCode))}})}).then(function(b){var c={},d=[];if(0==a.vb){for(d=0;d<b.length;d++)c[b[d][a.wc]]=b[d][a.Md];d=nf(a.S,c);a.S=c}return d})};h.Na=function(a){0==this.zb.length&&this.Uc();this.zb.push(a)};
  h.bb=function(a){Ma(this.zb,function(b){return b==a});0==this.zb.length&&this.jc()};h.Uc=function(){var a=this;this.jc();var b=function(){a.Lc=ze(800).then(q(a.Se,a)).then(function(b){0<b.length&&x(a.zb,function(a){a(b)})}).then(b).l(function(a){"STOP_EVENT"!=a.message&&b()});return a.Lc};b()};h.jc=function(){this.Lc&&this.Lc.cancel("STOP_EVENT")};var vh=function(){this.gd={Browser:sh,Node:th,ReactNative:uh}[uf()]},wh,sh={Z:hh,Wc:kh},th={Z:hh,Wc:kh},uh={Z:eh,Wc:ih};var xh="First Second Third Fourth Fifth Sixth Seventh Eighth Ninth".split(" "),T=function(a,b){return{name:a||"",fa:"a valid string",optional:!!b,ga:n}},U=function(a){return{name:a||"",fa:"a valid object",optional:!1,ga:ha}},yh=function(a,b){return{name:a||"",fa:"a function",optional:!!b,ga:p}},zh=function(){return{name:"",fa:"null",optional:!1,ga:da}},Ah=function(){return{name:"credential",fa:"a valid credential",optional:!1,ga:function(a){return!(!a||!a.Kb)}}},Bh=function(){return{name:"authProvider",
  fa:"a valid Auth provider",optional:!1,ga:function(a){return!!(a&&a.providerId&&a.hasOwnProperty&&a.hasOwnProperty("isOAuthProvider"))}}},Ch=function(a,b,c,d){return{name:c||"",fa:a.fa+" or "+b.fa,optional:!!d,ga:function(c){return a.ga(c)||b.ga(c)}}};var Eh=function(a,b){for(var c in b){var d=b[c].name;a[d]=Dh(d,a[c],b[c].a)}},V=function(a,b,c,d){a[b]=Dh(b,c,d)},Dh=function(a,b,c){if(!c)return b;var d=Fh(a);a=function(){var a=Array.prototype.slice.call(arguments),e;a:{e=Array.prototype.slice.call(a);var k;k=0;for(var t=!1,ua=0;ua<c.length;ua++)if(c[ua].optional)t=!0;else{if(t)throw new Q("internal-error","Argument validator encountered a required argument after an optional argument.");k++}t=c.length;if(e.length<k||t<e.length)e="Expected "+(k==
  t?1==k?"1 argument":k+" arguments":k+"-"+t+" arguments")+" but got "+e.length+".";else{for(k=0;k<e.length;k++)if(t=c[k].optional&&void 0===e[k],!c[k].ga(e[k])&&!t){e=c[k];if(0>k||k>=xh.length)throw new Q("internal-error","Argument validator received an unsupported number of arguments.");e=xh[k]+" argument "+(e.name?'"'+e.name+'" ':"")+"must be "+e.fa+".";break a}e=null}}if(e)throw new Q("argument-error",d+" failed: "+e);return b.apply(this,a)};for(var e in b)a[e]=b[e];for(e in b.prototype)a.prototype[e]=
  b.prototype[e];return a},Fh=function(a){a=a.split(".");return a[a.length-1]};var Gh=function(a,b,c,d){this.Ge=a;this.Ed=b;this.Me=c;this.hb=d;this.R={};wh||(wh=new vh);a=wh;try{var e;lf()?(mh||(mh=new lh("firebaseLocalStorageDb","firebaseLocalStorage","fbase_key","value",1)),e=mh):e=new a.gd.Z;this.Wa=e}catch(f){this.Wa=new fh,this.hb=!0}try{this.lc=new a.gd.Wc}catch(f){this.lc=new fh}this.Hd=q(this.Id,this);this.S={}},Hh,Ih=function(){Hh||(Hh=new Gh("firebase",":",!Ef(kf())&&l.window&&l.window!=l.window.top?!0:!1,Af()));return Hh};h=Gh.prototype;
  h.O=function(a,b){return this.Ge+this.Ed+a.name+(b?this.Ed+b:"")};h.get=function(a,b){return(a.Z?this.Wa:this.lc).get(this.O(a,b))};h.remove=function(a,b){b=this.O(a,b);a.Z&&!this.hb&&(this.S[b]=null);return(a.Z?this.Wa:this.lc).remove(b)};h.set=function(a,b,c){var d=this.O(a,c),e=this,f=a.Z?this.Wa:this.lc;return f.set(d,b).then(function(){return f.get(d)}).then(function(b){a.Z&&!this.hb&&(e.S[d]=b)})};
  h.addListener=function(a,b,c){a=this.O(a,b);this.hb||(this.S[a]=l.localStorage.getItem(a));Ua(this.R)&&this.Uc();this.R[a]||(this.R[a]=[]);this.R[a].push(c)};h.removeListener=function(a,b,c){a=this.O(a,b);this.R[a]&&(Ma(this.R[a],function(a){return a==c}),0==this.R[a].length&&delete this.R[a]);Ua(this.R)&&this.jc()};h.Uc=function(){this.Wa.Na(this.Hd);this.hb||Jh(this)};
  var Jh=function(a){Kh(a);a.Fc=setInterval(function(){for(var b in a.R){var c=l.localStorage.getItem(b);c!=a.S[b]&&(a.S[b]=c,c=new Ab({type:"storage",key:b,target:window,oldValue:a.S[b],newValue:c}),a.Id(c))}},1E3)},Kh=function(a){a.Fc&&(clearInterval(a.Fc),a.Fc=null)};Gh.prototype.jc=function(){this.Wa.bb(this.Hd);this.hb||Kh(this)};
  Gh.prototype.Id=function(a){if(a&&a.le){var b=a.ob.key;if(this.Me){var c=l.localStorage.getItem(b);a=a.ob.newValue;a!=c&&(a?l.localStorage.setItem(b,a):a||l.localStorage.removeItem(b))}this.S[b]=l.localStorage.getItem(b);this.ad(b)}else x(a,q(this.ad,this))};Gh.prototype.ad=function(a){this.R[a]&&x(this.R[a],function(a){a()})};var Lh=function(a){this.D=a;this.B=Ih()},Mh={name:"pendingRedirect",Z:!1},Nh=function(a){return a.B.set(Mh,"pending",a.D)},Oh=function(a){return a.B.remove(Mh,a.D)},Ph=function(a){return a.B.get(Mh,a.D).then(function(a){return"pending"==a})};var Sh=function(a,b,c){var d=this,e=(this.Aa=firebase.SDK_VERSION||null)?wf(this.Aa):null;this.f=new S(b,null,e);this.sa=null;this.C=a;this.m=b;this.F=c;this.Ab=[];this.Sb=!1;this.Xc=q(this.oe,this);this.Za=new Qh(this);this.yd=new Rh(this);this.Kc=new Lh(this.m+":"+this.F);this.jb={};this.jb.unknown=this.Za;this.jb.signInViaRedirect=this.Za;this.jb.linkViaRedirect=this.Za;this.jb.signInViaPopup=this.yd;this.jb.linkViaPopup=this.yd;this.dc=this.fb=null;this.Xb=new H(function(a,b){d.fb=a;d.dc=b})};
  Sh.prototype.reset=function(){var a=this;this.sa=null;this.Xb.cancel();this.Sb=!1;this.dc=this.fb=null;this.Pb&&dh(this.Pb,this.Xc);this.Xb=new H(function(b,c){a.fb=b;a.dc=c})};
  var Th=function(a){var b=mf();return xg(a).then(function(a){a:{for(var c=df(b).ia,e=0;e<a.length;e++){var f;var g=a[e];f=c;var k=Oc(g);k?f=(f=Oc(f))?k.Ib(f):!1:(k=g.split(".").join("\\."),f=(new RegExp("^(.+\\."+k+"|"+k+")$","i")).test(f));if(f){a=!0;break a}}a=!1}if(!a)throw new Rf(mf());})},Uh=function(a){a.Sb||(a.Sb=!0,tf().then(function(){a.Pb=new bh(a.C,a.m,a.F,a.Aa);a.Pb.Hc().l(function(){a.dc(new Q("network-request-failed"));a.reset()});a.Pb.Db.push(a.Xc)}));return a.Xb};
  Sh.prototype.subscribe=function(a){Ja(this.Ab,a)||this.Ab.push(a);if(!this.Sb){var b=this,c=function(){var a=kf();Af(a)||Ef(a)||Uh(b);Vh(b.Za)};Ph(this.Kc).then(function(a){a?Oh(b.Kc).then(function(){Uh(b)}):c()}).l(function(){c()})}};Sh.prototype.unsubscribe=function(a){Ma(this.Ab,function(b){return b==a})};
  Sh.prototype.oe=function(a){if(!a)throw new Q("invalid-auth-event");this.fb&&(this.fb(),this.fb=null);for(var b=!1,c=0;c<this.Ab.length;c++){var d=this.Ab[c];if(d.bd(a.ya,a.W)){(b=this.jb[a.ya])&&b.zd(a,d);b=!0;break}}Vh(this.Za);return b};Sh.prototype.getRedirectResult=function(){return this.Za.getRedirectResult()};
  var Xh=function(a,b,c,d,e,f){if(!b)return J(new Q("popup-blocked"));if(f)return Uh(a),I();a.sa||(a.sa=Th(a.f));return a.sa.then(function(){return Uh(a)}).then(function(){Wh(d);var f=ch(a.C,a.m,a.F,c,d,null,e,a.Aa);(b||l.window).location.href=ec(hc(f))}).l(function(b){"auth/network-request-failed"==b.code&&(a.sa=null);throw b;})},Yh=function(a,b,c,d){a.sa||(a.sa=Th(a.f));return a.sa.then(function(){Wh(c);var e=ch(a.C,a.m,a.F,b,c,mf(),d,a.Aa);Nh(a.Kc).then(function(){l.window.location.href=ec(hc(e))})})},
  Zh=function(a,b,c,d,e){var f=new Q("popup-closed-by-user");return a.Xb.l(function(){}).then(function(){return sf(d)}).then(function(){return ze(2E3).then(function(){b.Ja(c,null,f,e)})})},Wh=function(a){if(!a.isOAuthProvider)throw new Q("invalid-oauth-provider");},$h={},ai=function(a,b,c){var d=b+":"+c;$h[d]||($h[d]=new Sh(a,b,c));return $h[d]},Qh=function(a){this.B=a;this.yb=this.cc=this.$a=this.aa=null;this.Oc=!1};
  Qh.prototype.zd=function(a,b){if(!a)return J(new Q("invalid-auth-event"));this.Oc=!0;var c=a.ya,d=a.W;"unknown"==c?(this.aa||bi(this,!1,null,null),a=I()):a=a.N?this.Mc(a,b):b.pb(c,d)?this.Nc(a,b):J(new Q("invalid-auth-event"));return a};var Vh=function(a){a.Oc||(a.Oc=!0,bi(a,!1,null,null))};Qh.prototype.Mc=function(a){this.aa||bi(this,!0,null,a.getError());return I()};
  Qh.prototype.Nc=function(a,b){var c=this,d=a.ya;b=b.pb(d,a.W);var e=a.kb;a=a.hc;var f="signInViaRedirect"==d||"linkViaRedirect"==d;if(this.aa)return I();this.yb&&this.yb.cancel();return b(e,a).then(function(a){c.aa||bi(c,f,a,null)}).l(function(a){c.aa||bi(c,f,null,a)})};var bi=function(a,b,c,d){b?d?(a.aa=function(){return J(d)},a.cc&&a.cc(d)):(a.aa=function(){return I(c)},a.$a&&a.$a(c)):(a.aa=function(){return I({user:null})},a.$a&&a.$a({user:null}));a.$a=null;a.cc=null};
  Qh.prototype.getRedirectResult=function(){var a=this;this.$c||(this.$c=new H(function(b,c){a.aa?a.aa().then(b,c):(a.$a=b,a.cc=c,ci(a))}));return this.$c};var ci=function(a){var b=new Q("timeout");a.yb&&a.yb.cancel();a.yb=ze(1E4).then(function(){a.aa||bi(a,!0,null,b)})},Rh=function(a){this.B=a};Rh.prototype.zd=function(a,b){if(!a)return J(new Q("invalid-auth-event"));var c=a.ya,d=a.W;return a.N?this.Mc(a,b):b.pb(c,d)?this.Nc(a,b):J(new Q("invalid-auth-event"))};
  Rh.prototype.Mc=function(a,b){b.Ja(a.ya,null,a.getError(),a.W);return I()};Rh.prototype.Nc=function(a,b){var c=a.W,d=a.ya;return b.pb(d,c)(a.kb,a.hc).then(function(a){b.Ja(d,a,null,c)}).l(function(a){b.Ja(d,null,a,c)})};var di=function(a){this.f=a;this.za=this.V=null;this.Sa=0};di.prototype.K=function(){return{apiKey:this.f.m,refreshToken:this.V,accessToken:this.za,expirationTime:this.Sa}};
  var fi=function(a,b){var c=b.idToken,d=b.refreshToken;b=ei(b.expiresIn);a.za=c;a.Sa=b;a.V=d},ei=function(a){return la()+1E3*parseInt(a,10)},gi=function(a,b){return qg(a.f,b).then(function(b){a.za=b.access_token;a.Sa=ei(b.expires_in);a.V=b.refresh_token;return{accessToken:a.za,expirationTime:a.Sa,refreshToken:a.V}}).l(function(b){"auth/user-token-expired"==b.code&&(a.V=null);throw b;})},hi=function(a){return!(!a.za||a.V)};
  di.prototype.getToken=function(a){a=!!a;return hi(this)?J(new Q("user-token-expired")):a||!this.za||la()>this.Sa-3E4?this.V?gi(this,{grant_type:"refresh_token",refresh_token:this.V}):I(null):I({accessToken:this.za,expirationTime:this.Sa,refreshToken:this.V})};var ii=function(a,b,c,d,e){If(this,{uid:a,displayName:d||null,photoURL:e||null,email:c||null,providerId:b})},ji=function(a,b){zb.call(this,a);for(var c in b)this[c]=b[c]};r(ji,zb);
  var W=function(a,b,c){this.Y=[];this.m=a.apiKey;this.F=a.appName;this.C=a.authDomain||null;a=firebase.SDK_VERSION?wf(firebase.SDK_VERSION):null;this.f=new S(this.m,null,a);this.ea=new di(this.f);ki(this,b.idToken);fi(this.ea,b);P(this,"refreshToken",this.ea.V);li(this,c||{});be.call(this);this.Yb=!1;this.C&&zf()&&(this.o=ai(this.C,this.m,this.F));this.ic=[];this.sc=I()};r(W,be);
  W.prototype.ua=function(a,b){var c=Array.prototype.slice.call(arguments,1),d=this;return this.sc=this.sc.then(function(){return a.apply(d,c)},function(){return a.apply(d,c)})};
  var ki=function(a,b){a.rd=b;P(a,"_lat",b)},mi=function(a,b){Ma(a.ic,function(a){return a==b})},ni=function(a){for(var b=[],c=0;c<a.ic.length;c++)b.push(a.ic[c](a));return wd(b).then(function(){return a})},oi=function(a){a.o&&!a.Yb&&(a.Yb=!0,a.o.subscribe(a))},li=function(a,b){If(a,{uid:b.uid,displayName:b.displayName||null,photoURL:b.photoURL||null,email:b.email||null,emailVerified:b.emailVerified||!1,isAnonymous:b.isAnonymous||!1,providerData:[]})};P(W.prototype,"providerId","firebase");
  var pi=function(){},qi=function(a){return I().then(function(){if(a.de)throw new Q("app-deleted");})},ri=function(a){return Fa(a.providerData,function(a){return a.providerId})},ti=function(a,b){b&&(si(a,b.providerId),a.providerData.push(b))},si=function(a,b){Ma(a.providerData,function(a){return a.providerId==b})},ui=function(a,b,c){("uid"!=b||c)&&a.hasOwnProperty(b)&&P(a,b,c)};
  W.prototype.copy=function(a){var b=this;b!=a&&(If(this,{uid:a.uid,displayName:a.displayName,photoURL:a.photoURL,email:a.email,emailVerified:a.emailVerified,isAnonymous:a.isAnonymous,providerData:[]}),x(a.providerData,function(a){ti(b,a)}),this.ea=a.ea,P(this,"refreshToken",this.ea.V))};W.prototype.reload=function(){var a=this;return qi(this).then(function(){return vi(a).then(function(){return ni(a)}).then(pi)})};
  var vi=function(a){return a.getToken().then(function(b){var c=a.isAnonymous;return wi(a,b).then(function(){c||ui(a,"isAnonymous",!1);return b}).l(function(b){"auth/user-token-expired"==b.code&&(a.dispatchEvent(new ji("userDeleted")),xi(a));throw b;})})};
  W.prototype.getToken=function(a){var b=this,c=hi(this.ea);return qi(this).then(function(){return b.ea.getToken(a)}).then(function(a){if(!a)throw new Q("internal-error");a.accessToken!=b.rd&&(ki(b,a.accessToken),b.Fa());ui(b,"refreshToken",a.refreshToken);return a.accessToken}).l(function(a){if("auth/user-token-expired"==a.code&&!c)return ni(b).then(function(){ui(b,"refreshToken",null);throw a;});throw a;})};
  var yi=function(a,b){b.idToken&&a.rd!=b.idToken&&(fi(a.ea,b),a.Fa(),ki(a,b.idToken),ui(a,"refreshToken",a.ea.V))};W.prototype.Fa=function(){this.dispatchEvent(new ji("tokenChanged"))};var wi=function(a,b){return R(a.f,Qg,{idToken:b}).then(q(a.Je,a))};
  W.prototype.Je=function(a){a=a.users;if(!a||!a.length)throw new Q("internal-error");a=a[0];li(this,{uid:a.localId,displayName:a.displayName,photoURL:a.photoUrl,email:a.email,emailVerified:!!a.emailVerified});for(var b=zi(a),c=0;c<b.length;c++)ti(this,b[c]);ui(this,"isAnonymous",!(this.email&&a.passwordHash)&&!(this.providerData&&this.providerData.length))};
  var zi=function(a){return(a=a.providerUserInfo)&&a.length?Fa(a,function(a){return new ii(a.rawId,a.providerId,a.email,a.displayName,a.photoUrl)}):[]};W.prototype.reauthenticate=function(a){var b=this;return this.c(a.Kb(this.f).then(function(a){var c;a:{var e=a.idToken.split(".");if(3==e.length){for(var e=e[1],f=(4-e.length%4)%4,g=0;g<f;g++)e+=".";try{var k=jc(ub(e));if(k.sub&&k.iss&&k.aud&&k.exp){c=new Sf(k);break a}}catch(t){}}c=null}if(!c||b.uid!=c.De)throw new Q("user-mismatch");yi(b,a);return b.reload()}))};
  var Ai=function(a,b){return vi(a).then(function(){if(Ja(ri(a),b))return ni(a).then(function(){throw new Q("provider-already-linked");})})};h=W.prototype;h.Be=function(a){var b=this;return this.c(Ai(this,a.provider).then(function(){return b.getToken()}).then(function(c){return a.td(b.f,c)}).then(q(this.jd,this)))};h.link=function(a){return this.ua(this.Be,a)};h.jd=function(a){yi(this,a);var b=this;return this.reload().then(function(){return b})};
  h.Xe=function(a){var b=this;return this.c(this.getToken().then(function(c){return b.f.updateEmail(c,a)}).then(function(a){yi(b,a);return b.reload()}))};h.updateEmail=function(a){return this.ua(this.Xe,a)};h.Ye=function(a){var b=this;return this.c(this.getToken().then(function(c){return b.f.updatePassword(c,a)}).then(function(a){yi(b,a);return b.reload()}))};h.updatePassword=function(a){return this.ua(this.Ye,a)};
  h.Ze=function(a){if(void 0===a.displayName&&void 0===a.photoURL)return qi(this);var b=this;return this.c(this.getToken().then(function(c){return b.f.updateProfile(c,{displayName:a.displayName,photoUrl:a.photoURL})}).then(function(a){yi(b,a);ui(b,"displayName",a.displayName||null);ui(b,"photoURL",a.photoUrl||null);return ni(b)}).then(pi))};h.updateProfile=function(a){return this.ua(this.Ze,a)};
  h.We=function(a){var b=this;return this.c(vi(this).then(function(c){return Ja(ri(b),a)?Fg(b.f,c,[a]).then(function(a){var c={};x(a.providerUserInfo||[],function(a){c[a.providerId]=!0});x(ri(b),function(a){c[a]||si(b,a)});return ni(b)}):ni(b).then(function(){throw new Q("no-such-provider");})}))};h.unlink=function(a){return this.ua(this.We,a)};h.ce=function(){var a=this;return this.c(this.getToken().then(function(b){return R(a.f,Pg,{idToken:b})}).then(function(){a.dispatchEvent(new ji("userDeleted"))})).then(function(){xi(a)})};
  h.delete=function(){return this.ua(this.ce)};h.bd=function(a,b){return"linkViaPopup"==a&&(this.ka||null)==b&&this.da||"linkViaRedirect"==a&&(this.bc||null)==b?!0:!1};h.Ja=function(a,b,c,d){"linkViaPopup"==a&&d==(this.ka||null)&&(c&&this.Ha?this.Ha(c):b&&!c&&this.da&&this.da(b),this.G&&(this.G.cancel(),this.G=null),delete this.da,delete this.Ha)};h.pb=function(a,b){return"linkViaPopup"==a&&b==(this.ka||null)||"linkViaRedirect"==a&&(this.bc||null)==b?q(this.ge,this):null};
  h.Jb=function(){return yf(this.uid+":::")};
  var Ci=function(a,b){if(!zf())return J(new Q("operation-not-supported-in-this-environment"));var c=Nf(b.providerId),d=a.Jb(),e=null;!Af()&&a.C&&b.isOAuthProvider&&(e=ch(a.C,a.m,a.F,"linkViaPopup",b,null,d,firebase.SDK_VERSION||null));var f=rf(e,c&&c.xb,c&&c.wb),c=Ai(a,b.providerId).then(function(){return ni(a)}).then(function(){Bi(a);return a.getToken()}).then(function(){return Xh(a.o,f,"linkViaPopup",b,d,!!e)}).then(function(){return new H(function(b,c){a.Ja("linkViaPopup",null,new Q("cancelled-popup-request"),
  a.ka||null);a.da=b;a.Ha=c;a.ka=d;a.G=Zh(a.o,a,"linkViaPopup",f,d)})}).then(function(a){f&&qf(f);return a}).l(function(a){f&&qf(f);throw a;});return a.c(c)};W.prototype.linkWithPopup=function(a){var b=Ci(this,a);return this.ua(function(){return b})};
  W.prototype.Ce=function(a){if(!zf())return J(new Q("operation-not-supported-in-this-environment"));var b=this,c=null,d=this.Jb(),e=Ai(this,a.providerId).then(function(){Bi(b);return b.getToken()}).then(function(){b.bc=d;return ni(b)}).then(function(a){b.Ia&&(a=b.Ia,a=a.B.set(Di,b.K(),a.D));return a}).then(function(){return Yh(b.o,"linkViaRedirect",a,d)}).l(function(a){c=a;if(b.Ia)return Ei(b.Ia);throw c;}).then(function(){if(c)throw c;});return this.c(e)};
  W.prototype.linkWithRedirect=function(a){return this.ua(this.Ce,a)};var Bi=function(a){if(!a.o||!a.Yb){if(a.o&&!a.Yb)throw new Q("internal-error");throw new Q("auth-domain-config-required");}};W.prototype.ge=function(a,b){var c=this;this.G&&(this.G.cancel(),this.G=null);var d=null,e=this.getToken().then(function(d){return Wf(c.f,{requestUri:a,sessionId:b,idToken:d})}).then(function(a){d=gg(a);return c.jd(a)}).then(function(a){return{user:a,credential:d}});return this.c(e)};
  W.prototype.sendEmailVerification=function(){var a=this;return this.c(this.getToken().then(function(b){return a.f.sendEmailVerification(b)}).then(function(b){if(a.email!=b)return a.reload()}).then(function(){}))};var xi=function(a){for(var b=0;b<a.Y.length;b++)a.Y[b].cancel("app-deleted");a.Y=[];a.de=!0;P(a,"refreshToken",null);a.o&&a.o.unsubscribe(a)};W.prototype.c=function(a){var b=this;this.Y.push(a);zd(a,function(){La(b.Y,a)});return a};W.prototype.toJSON=function(){return this.K()};
  W.prototype.K=function(){var a={uid:this.uid,displayName:this.displayName,photoURL:this.photoURL,email:this.email,emailVerified:this.emailVerified,isAnonymous:this.isAnonymous,providerData:[],apiKey:this.m,appName:this.F,authDomain:this.C,stsTokenManager:this.ea.K(),redirectEventId:this.bc||null};x(this.providerData,function(b){a.providerData.push(Jf(b))});return a};
  var Fi=function(a){if(!a.apiKey)return null;var b={apiKey:a.apiKey,authDomain:a.authDomain,appName:a.appName},c={};if(a.stsTokenManager&&a.stsTokenManager.accessToken&&a.stsTokenManager.expirationTime)c.idToken=a.stsTokenManager.accessToken,c.refreshToken=a.stsTokenManager.refreshToken||null,c.expiresIn=(a.stsTokenManager.expirationTime-la())/1E3;else return null;var d=new W(b,c,a);a.providerData&&x(a.providerData,function(a){if(a){var b={};If(b,a);ti(d,b)}});a.redirectEventId&&(d.bc=a.redirectEventId);
  return d},Gi=function(a,b,c){var d=new W(a,b);c&&(d.Ia=c);return d.reload().then(function(){return d})};var Hi=function(a){this.D=a;this.B=Ih()},Di={name:"redirectUser",Z:!1},Ei=function(a){return a.B.remove(Di,a.D)},Ii=function(a,b){return a.B.get(Di,a.D).then(function(a){a&&b&&(a.authDomain=b);return Fi(a||{})})};var Ji=function(a){this.D=a;this.B=Ih()},Ki={name:"authUser",Z:!0},Li=function(a,b){return a.B.set(Ki,b.K(),a.D)},Mi=function(a){return a.B.remove(Ki,a.D)},Ni=function(a,b){return a.B.get(Ki,a.D).then(function(a){a&&b&&(a.authDomain=b);return Fi(a||{})})};var Y=function(a){this.Qa=!1;P(this,"app",a);if(X(this).options&&X(this).options.apiKey)a=firebase.SDK_VERSION?wf(firebase.SDK_VERSION):null,this.f=new S(X(this).options&&X(this).options.apiKey,null,a);else throw new Q("invalid-api-key");this.Y=[];this.Oa=[];this.He=firebase.INTERNAL.createSubscribe(q(this.xe,this));Oi(this,null);this.oa=new Ji(X(this).options.apiKey+":"+X(this).name);this.ab=new Hi(X(this).options.apiKey+":"+X(this).name);this.Eb=this.c(Pi(this));this.va=this.c(Qi(this));this.Ec=
  !1;this.Bc=q(this.Re,this);this.Kd=q(this.Ua,this);this.Ld=q(this.te,this);this.Jd=q(this.se,this);Ri(this);this.INTERNAL={};this.INTERNAL.delete=q(this.delete,this)};Y.prototype.toJSON=function(){return{apiKey:X(this).options.apiKey,authDomain:X(this).options.authDomain,appName:X(this).name,currentUser:Z(this)&&Z(this).K()}};
  var Si=function(a){return a.ee||J(new Q("auth-domain-config-required"))},Ri=function(a){var b=X(a).options.authDomain,c=X(a).options.apiKey;b&&zf()&&(a.ee=a.Eb.then(function(){if(!a.Qa)return a.o=ai(b,c,X(a).name),a.o.subscribe(a),Z(a)&&oi(Z(a)),a.Qc&&(oi(a.Qc),a.Qc=null),a.o}))};h=Y.prototype;h.bd=function(a,b){switch(a){case "unknown":case "signInViaRedirect":return!0;case "signInViaPopup":return this.ka==b&&!!this.da;default:return!1}};
  h.Ja=function(a,b,c,d){"signInViaPopup"==a&&this.ka==d&&(c&&this.Ha?this.Ha(c):b&&!c&&this.da&&this.da(b),this.G&&(this.G.cancel(),this.G=null),delete this.da,delete this.Ha)};h.pb=function(a,b){return"signInViaRedirect"==a||"signInViaPopup"==a&&this.ka==b&&this.da?q(this.he,this):null};
  h.he=function(a,b){var c=this;a={requestUri:a,sessionId:b};this.G&&(this.G.cancel(),this.G=null);var d=null,e=Uf(c.f,a).then(function(a){d=gg(a);return a});a=c.Eb.then(function(){return e}).then(function(a){return Ti(c,a)}).then(function(){return{user:Z(c),credential:d}});return this.c(a)};h.Jb=function(){return yf()};
  h.signInWithPopup=function(a){if(!zf())return J(new Q("operation-not-supported-in-this-environment"));var b=this,c=Nf(a.providerId),d=this.Jb(),e=null;!Af()&&X(this).options.authDomain&&a.isOAuthProvider&&(e=ch(X(this).options.authDomain,X(this).options.apiKey,X(this).name,"signInViaPopup",a,null,d,firebase.SDK_VERSION||null));var f=rf(e,c&&c.xb,c&&c.wb),c=Si(this).then(function(b){return Xh(b,f,"signInViaPopup",a,d,!!e)}).then(function(){return new H(function(a,c){b.Ja("signInViaPopup",null,new Q("cancelled-popup-request"),
  b.ka);b.da=a;b.Ha=c;b.ka=d;b.G=Zh(b.o,b,"signInViaPopup",f,d)})}).then(function(a){f&&qf(f);return a}).l(function(a){f&&qf(f);throw a;});return this.c(c)};h.signInWithRedirect=function(a){if(!zf())return J(new Q("operation-not-supported-in-this-environment"));var b=this,c=Si(this).then(function(){return Yh(b.o,"signInViaRedirect",a)});return this.c(c)};
  h.getRedirectResult=function(){if(!zf())return J(new Q("operation-not-supported-in-this-environment"));var a=this,b=Si(this).then(function(){return a.o.getRedirectResult()});return this.c(b)};
  var Ti=function(a,b){var c={};c.apiKey=X(a).options.apiKey;c.authDomain=X(a).options.authDomain;c.appName=X(a).name;return a.Eb.then(function(){return Gi(c,b,a.ab)}).then(function(b){if(Z(a)&&b.uid==Z(a).uid)return Z(a).copy(b),a.Ua(b);Oi(a,b);oi(b);return a.Ua(b)}).then(function(){a.Fa()})},Oi=function(a,b){Z(a)&&(mi(Z(a),a.Kd),Ub(Z(a),"tokenChanged",a.Ld),Ub(Z(a),"userDeleted",a.Jd));b&&(b.ic.push(a.Kd),Lb(b,"tokenChanged",a.Ld),Lb(b,"userDeleted",a.Jd));P(a,"currentUser",b)};
  Y.prototype.signOut=function(){var a=this,b=this.va.then(function(){if(!Z(a))return I();Oi(a,null);return Mi(a.oa).then(function(){a.Fa()})});return this.c(b)};
  var Ui=function(a){var b=Ii(a.ab,X(a).options.authDomain).then(function(b){if(a.Qc=b)b.Ia=a.ab;return Ei(a.ab)});return a.c(b)},Pi=function(a){var b=X(a).options.authDomain,c=Ui(a).then(function(){return Ni(a.oa,b)}).then(function(b){return b?(b.Ia=a.ab,b.reload().then(function(){return Li(a.oa,b).then(function(){return b})}).l(function(c){return"auth/network-request-failed"==c.code?b:Mi(a.oa)})):null}).then(function(b){Oi(a,b||null)});return a.c(c)},Qi=function(a){return a.Eb.then(function(){return a.getRedirectResult()}).l(function(){}).then(function(){if(!a.Qa)return a.Bc()}).l(function(){}).then(function(){if(!a.Qa){a.Ec=
  !0;var b=a.oa;b.B.addListener(Ki,b.D,a.Bc)}})};Y.prototype.Re=function(){var a=this;return Ni(this.oa,X(this).options.authDomain).then(function(b){if(!a.Qa){var c;if(c=Z(a)&&b){c=Z(a).uid;var d=b.uid;c=void 0===c||null===c||""===c||void 0===d||null===d||""===d?!1:c==d}if(c)return Z(a).copy(b),Z(a).getToken();if(Z(a)||b)Oi(a,b),b&&(oi(b),b.Ia=a.ab),a.o&&a.o.subscribe(a),a.Fa()}})};Y.prototype.Ua=function(a){return Li(this.oa,a)};Y.prototype.te=function(){this.Fa();this.Ua(Z(this))};
  Y.prototype.se=function(){this.signOut()};var Vi=function(a,b){return a.c(b.then(function(b){return Ti(a,b)}).then(function(){return Z(a)}))};h=Y.prototype;h.xe=function(a){var b=this;this.addAuthTokenListener(function(){a.next(Z(b))})};h.onAuthStateChanged=function(a,b,c){var d=this;this.Ec&&firebase.Promise.resolve().then(function(){p(a)?a(Z(d)):p(a.next)&&a.next(Z(d))});return this.He(a,b,c)};
  h.getToken=function(a){var b=this,c=this.va.then(function(){return Z(b)?Z(b).getToken(a).then(function(a){return{accessToken:a}}):null});return this.c(c)};h.signInWithCustomToken=function(a){var b=this;return this.va.then(function(){return Vi(b,R(b.f,Rg,{token:a}))}).then(function(a){ui(a,"isAnonymous",!1);return b.Ua(a)}).then(function(){return Z(b)})};h.signInWithEmailAndPassword=function(a,b){var c=this;return this.va.then(function(){return Vi(c,R(c.f,cg,{email:a,password:b}))})};
  h.createUserWithEmailAndPassword=function(a,b){var c=this;return this.va.then(function(){return Vi(c,R(c.f,Og,{email:a,password:b}))})};h.signInWithCredential=function(a){var b=this;return this.va.then(function(){return Vi(b,a.Kb(b.f))})};h.signInAnonymously=function(){var a=Z(this),b=this;return a&&a.isAnonymous?I(a):this.va.then(function(){return Vi(b,b.f.signInAnonymously())}).then(function(a){ui(a,"isAnonymous",!0);return b.Ua(a)}).then(function(){return Z(b)})};
  var X=function(a){return a.app},Z=function(a){return a.currentUser};h=Y.prototype;h.Fa=function(){if(this.Ec)for(var a=0;a<this.Oa.length;a++)if(this.Oa[a])this.Oa[a](Z(this)&&Z(this)._lat||null)};h.addAuthTokenListener=function(a){var b=this;this.Oa.push(a);this.c(this.va.then(function(){b.Qa||Ja(b.Oa,a)&&a(Z(b)&&Z(b)._lat||null)}))};h.removeAuthTokenListener=function(a){Ma(this.Oa,function(b){return b==a})};
  h.delete=function(){this.Qa=!0;for(var a=0;a<this.Y.length;a++)this.Y[a].cancel("app-deleted");this.Y=[];this.oa&&(a=this.oa,a.B.removeListener(Ki,a.D,this.Bc));this.o&&this.o.unsubscribe(this);return firebase.Promise.resolve()};h.c=function(a){var b=this;this.Y.push(a);zd(a,function(){La(b.Y,a)});return a};h.fetchProvidersForEmail=function(a){return this.c(vg(this.f,a))};h.verifyPasswordResetCode=function(a){return this.checkActionCode(a).then(function(a){return a.data.email})};
  h.confirmPasswordReset=function(a,b){return this.c(this.f.confirmPasswordReset(a,b).then(function(){}))};h.checkActionCode=function(a){return this.c(this.f.checkActionCode(a).then(function(a){return{data:{email:a.email}}}))};h.applyActionCode=function(a){return this.c(this.f.applyActionCode(a).then(function(){}))};h.sendPasswordResetEmail=function(a){return this.c(this.f.sendPasswordResetEmail(a).then(function(){}))};Eh(Y.prototype,{applyActionCode:{name:"applyActionCode",a:[T("code")]},checkActionCode:{name:"checkActionCode",a:[T("code")]},confirmPasswordReset:{name:"confirmPasswordReset",a:[T("code"),T("newPassword")]},createUserWithEmailAndPassword:{name:"createUserWithEmailAndPassword",a:[T("email"),T("password")]},fetchProvidersForEmail:{name:"fetchProvidersForEmail",a:[T("email")]},getRedirectResult:{name:"getRedirectResult",a:[]},onAuthStateChanged:{name:"onAuthStateChanged",a:[Ch(U(),yh(),"nextOrObserver"),
  yh("opt_error",!0),yh("opt_completed",!0)]},sendPasswordResetEmail:{name:"sendPasswordResetEmail",a:[T("email")]},signInAnonymously:{name:"signInAnonymously",a:[]},signInWithCredential:{name:"signInWithCredential",a:[Ah()]},signInWithCustomToken:{name:"signInWithCustomToken",a:[T("token")]},signInWithEmailAndPassword:{name:"signInWithEmailAndPassword",a:[T("email"),T("password")]},signInWithPopup:{name:"signInWithPopup",a:[Bh()]},signInWithRedirect:{name:"signInWithRedirect",a:[Bh()]},signOut:{name:"signOut",
  a:[]},toJSON:{name:"toJSON",a:[T(null,!0)]},verifyPasswordResetCode:{name:"verifyPasswordResetCode",a:[T("code")]}});
  Eh(W.prototype,{"delete":{name:"delete",a:[]},getToken:{name:"getToken",a:[{name:"opt_forceRefresh",fa:"a boolean",optional:!0,ga:function(a){return"boolean"==typeof a}}]},link:{name:"link",a:[Ah()]},linkWithPopup:{name:"linkWithPopup",a:[Bh()]},linkWithRedirect:{name:"linkWithRedirect",a:[Bh()]},reauthenticate:{name:"reauthenticate",a:[Ah()]},reload:{name:"reload",a:[]},sendEmailVerification:{name:"sendEmailVerification",a:[]},toJSON:{name:"toJSON",a:[T(null,!0)]},unlink:{name:"unlink",a:[T("provider")]},
  updateEmail:{name:"updateEmail",a:[T("email")]},updatePassword:{name:"updatePassword",a:[T("password")]},updateProfile:{name:"updateProfile",a:[U("profile")]}});Eh(H.prototype,{l:{name:"catch"},then:{name:"then"}});V(eg,"credential",function(a,b){return new bg(a,b)},[T("email"),T("password")]);Eh(Yf.prototype,{addScope:{name:"addScope",a:[T("scope")]},setCustomParameters:{name:"setCustomParameters",a:[U("customOAuthParameters")]}});V(Yf,"credential",Yf.credential,[Ch(T(),U(),"token")]);
  Eh(Zf.prototype,{addScope:{name:"addScope",a:[T("scope")]},setCustomParameters:{name:"setCustomParameters",a:[U("customOAuthParameters")]}});V(Zf,"credential",Zf.credential,[Ch(T(),U(),"token")]);Eh($f.prototype,{addScope:{name:"addScope",a:[T("scope")]},setCustomParameters:{name:"setCustomParameters",a:[U("customOAuthParameters")]}});V($f,"credential",$f.credential,[Ch(T(),Ch(U(),zh()),"idToken"),Ch(T(),zh(),"accessToken",!0)]);Eh(ag.prototype,{setCustomParameters:{name:"setCustomParameters",a:[U("customOAuthParameters")]}});
  V(ag,"credential",ag.credential,[Ch(T(),U(),"token"),T("secret",!0)]);
  (function(){if("undefined"!==typeof firebase&&firebase.INTERNAL&&firebase.INTERNAL.registerService){var a={Auth:Y,Error:Q};V(a,"EmailAuthProvider",eg,[]);V(a,"FacebookAuthProvider",Yf,[]);V(a,"GithubAuthProvider",Zf,[]);V(a,"GoogleAuthProvider",$f,[]);V(a,"TwitterAuthProvider",ag,[]);firebase.INTERNAL.registerService("auth",function(a,c){a=new Y(a);c({INTERNAL:{getToken:q(a.getToken,a),addAuthTokenListener:q(a.addAuthTokenListener,a),removeAuthTokenListener:q(a.removeAuthTokenListener,a)}});return a},
  a,function(a,c){if("create"===a)try{c.auth()}catch(d){}});firebase.INTERNAL.extendNamespace({User:W})}else throw Error("Cannot find the firebase namespace; be sure to include firebase-app.js before this library.");})();})();
  module.exports = firebase.auth;
  