(function(){var h,aa="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},ba="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this,ca=function(){ca=function(){};ba.Symbol||(ba.Symbol=da)},da=function(){var a=0;return function(b){return"jscomp_symbol_"+(b||"")+a++}}(),fa=function(){ca();var a=ba.Symbol.iterator;a||(a=ba.Symbol.iterator=ba.Symbol("iterator"));"function"!=typeof Array.prototype[a]&& aa(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return ea(this)}});fa=function(){}},ea=function(a){var b=0;return ha(function(){return b>>0),sa=0,ta=function(a,b,c){return a.call.apply(a.bind,arguments)},ua=function(a,b,c){if(!a)throw Error();if(2")&&(a=a.replace(Da,">"));-1!=a.indexOf('"')&&(a=a.replace(Ea,"""));-1!=a.indexOf("'")&& (a=a.replace(Fa,"'"));-1!=a.indexOf("\x00")&&(a=a.replace(Ga,"�"));return a},Ba=/&/g,Ca=//g,Ea=/"/g,Fa=/'/g,Ga=/\x00/g,Aa=/[\x00&<>"']/,Ia=function(a,b){return ab?1:0};var Ja=function(a,b){b.unshift(a);x.call(this,ya.apply(null,b));b.shift()};v(Ja,x);Ja.prototype.name="AssertionError"; var Ka=function(a,b,c,d){var e="Assertion failed";if(c){e+=": "+c;var f=d}else a&&(e+=": "+a,f=b);throw new Ja(""+e,f||[]);},y=function(a,b,c){a||Ka("",null,b,Array.prototype.slice.call(arguments,2));return a},La=function(a,b){throw new Ja("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1));},Na=function(a,b,c){la(a)||Ka("Expected number but got %s: %s.",[na(a),a],b,Array.prototype.slice.call(arguments,2));return a},Oa=function(a,b,c){q(a)||Ka("Expected function but got %s: %s.",[na(a), a],b,Array.prototype.slice.call(arguments,2))},Pa=function(a,b,c){r(a)||Ka("Expected object but got %s: %s.",[na(a),a],b,Array.prototype.slice.call(arguments,2))},Qa=function(a,b,c){p(a)||Ka("Expected array but got %s: %s.",[na(a),a],b,Array.prototype.slice.call(arguments,2))};var Ra=Array.prototype.indexOf?function(a,b,c){y(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(;cc&&(c=Math.max(0,a.length+c));if(n(a))return n(b)&&1== b.length?a.lastIndexOf(b,c):-1;for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1},Ta=Array.prototype.forEach?function(a,b,c){y(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;fb?null:n(a)?a.charAt(b):a[b]},ab=function(a){if(!p(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0},cb= function(a,b){b=Ra(a,b);var c;(c=0<=b)&&bb(a,b);return c},bb=function(a,b){y(null!=a.length);Array.prototype.splice.call(a,b,1)},db=function(a){return Array.prototype.concat.apply([],arguments)},eb=function(a){var b=a.length;if(0=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)},hb=function(a){for(var b={},c=0,d=0;dparseFloat(Lb)){Kb=String(Nb);break a}}Kb=Lb} var Ob=Kb,Cb={},Pb=function(a){return Db(a,function(){for(var b=0,c=za(String(Ob)).split("."),d=za(String(a)).split("."),e=Math.max(c.length,d.length),f=0;0==b&&f=a.keyCode)a.keyCode=-1}catch(b){}};var Yb="closure_listenable_"+(1E6*Math.random()|0),Zb=function(a){return!(!a||!a[Yb])},$b=0;var ac=function(a,b,c,d,e){this.listener=a;this.Lb=null;this.src=b;this.type=c;this.capture=!!d;this.da=e;this.key=++$b;this.Ma=this.qb=!1},bc=function(a){a.Ma=!0;a.listener=null;a.Lb=null;a.src=null;a.da=null};var cc=function(a){this.src=a;this.D={};this.lb=0};cc.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.D[f];a||(a=this.D[f]=[],this.lb++);var g=dc(a,b,d,e);-1d.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.xa&&0<=e;e--){b.currentTarget=d[e];var f=tc(d[e],a,!0,b);c=c&&f}for(e=0;!b.xa&&e>>0),kc=function(a){y(a,"Listener can not be null.");if(q(a))return a;y(a.handleEvent,"An object listener must have handleEvent method.");a[uc]||(a[uc]=function(b){return a.handleEvent(b)}); return a[uc]};var vc=function(a){z.call(this);this.ua=a;this.h={}};v(vc,z);var wc=[];vc.prototype.aa=function(a,b,c,d){p(b)||(b&&(wc[0]=b.toString()),b=wc);for(var e=0;e++d,"infinite loop")}b=this.Wd;d=a.type||a;if(n(a))a=new A(a,b);else if(a instanceof A)a.target=a.target||b;else{var e=a;a=new A(d,b);Ab(a,e)}e=!0;if(c)for(var f=c.length-1;!a.xa&&0<=f;f--){var g=a.currentTarget=c[f];e=zc(g,d,!0,a)&&e}a.xa||(g=a.currentTarget=b,e=zc(g,d,!0,a)&&e,a.xa||(e=zc(g,d,!1,a)&&e));if(c)for(f=0;!a.xa&&f=b.gc&&b.cancel())}this.Fd?this.Fd.call(this.gd,this):this.Mc=!0;this.Ia||jd(this,new kd)}};id.prototype.dd=function(a,b){this.fc=!1;ld(this,a,b)}; var ld=function(a,b,c){a.Ia=!0;a.ga=c;a.$a=!b;md(a)},od=function(a){if(a.Ia){if(!a.Mc)throw new nd;a.Mc=!1}};id.prototype.hc=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){y(!(a instanceof id),"An execution sequence may not be initiated with a blocking Deferred.")},qd=function(a,b,c){y(!a.Zc,"Blocking Deferreds can not be re-used");a.Pb.push([b,c,void 0]);a.Ia&&md(a)}; id.prototype.then=function(a,b,c){var d,e,f=new Vc(function(a,b){d=a;e=b});qd(this,d,function(a){a instanceof kd?f.cancel():e(a)});return f.then(a,b,c)};Rc(id); var rd=function(a){return Wa(a.Pb,function(a){return q(a[1])})},md=function(a){if(a.Wb&&a.Ia&&rd(a)){var b=a.Wb,c=sd[b];c&&(k.clearTimeout(c.ea),delete sd[b]);a.Wb=0}a.u&&(a.u.gc--,delete a.u);b=a.ga;for(var d=c=!1;a.Pb.length&&!a.fc;){var e=a.Pb.shift(),f=e[0],g=e[1];e=e[2];if(f=a.$a?g:f)try{var l=f.call(e||a.gd,b);m(l)&&(a.$a=a.$a&&(l==b||l instanceof Error),a.ga=b=l);if(Sc(b)||"function"===typeof k.Promise&&b instanceof k.Promise)d=!0,a.fc=!0}catch(w){b=w,a.$a=!0,rd(a)||(c=!0)}}a.ga=b;d&&(l=t(a.dd, a,!0),d=t(a.dd,a,!1),b instanceof id?(qd(b,l,d),b.Zc=!0):b.then(l,d));c&&(b=new td(b),sd[b.ea]=b,a.Wb=b.ea)},nd=function(){x.call(this)};v(nd,x);nd.prototype.message="Deferred has already fired";nd.prototype.name="AlreadyCalledError";var kd=function(){x.call(this)};v(kd,x);kd.prototype.message="Deferred was canceled";kd.prototype.name="CanceledError";var td=function(a){this.ea=k.setTimeout(t(this.Be,this),0);this.ub=a}; td.prototype.Be=function(){y(sd[this.ea],"Cannot throw an error that is not scheduled.");delete sd[this.ea];throw this.ub;};var sd={};var ud=function(){C.call(this);this.F=new FileReader;this.F.onloadstart=t(this.Ga,this);this.F.onprogress=t(this.Ga,this);this.F.onload=t(this.Ga,this);this.F.onabort=t(this.Ga,this);this.F.onerror=t(this.Ga,this);this.F.onloadend=t(this.Ga,this)};v(ud,C);h=ud.prototype;h.abort=function(){try{this.F.abort()}catch(a){throw new Pc(a,"aborting read");}};h.ka=function(){return this.F.readyState};h.getError=function(){return this.F.error&&new Pc(this.F.error,"reading file")}; h.Ga=function(a){this.dispatchEvent(new Qc(a,this))};h.f=function(){ud.l.f.call(this);delete this.F};h.readAsBinaryString=function(a){this.F.readAsBinaryString(a)};h.readAsArrayBuffer=function(a){this.F.readAsArrayBuffer(a)};h.readAsText=function(a,b){this.F.readAsText(a,b)};var vd=function(a){switch(a){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var wd=function(a,b,c,d,e){this.reset(a,b,c,d,e)};wd.prototype.kd=null;var xd=0;wd.prototype.reset=function(a,b,c,d,e){"number"==typeof e||xd++;d||wa();this.eb=a;delete this.kd};wd.prototype.Qd=function(a){this.eb=a};var yd=function(a){this.Ed=a;this.td=this.ic=this.eb=this.u=null},zd=function(a,b){this.name=a;this.value=b};zd.prototype.toString=function(){return this.name};var Ad=new zd("SEVERE",1E3),Bd=new zd("INFO",800),Cd=new zd("CONFIG",700),Dd=new zd("FINE",500);yd.prototype.getName=function(){return this.Ed};yd.prototype.getParent=function(){return this.u};yd.prototype.pd=function(){this.ic||(this.ic={});return this.ic};yd.prototype.Qd=function(a){this.eb=a}; var Ed=function(a){if(a.eb)return a.eb;if(a.u)return Ed(a.u);La("Root logger has no level set.");return null};yd.prototype.log=function(a,b,c){if(a.value>=Ed(this).value)for(q(b)&&(b=b()),a=new wd(a,String(b),this.Ed),c&&(a.kd=c),c=this;c;){var d=c,e=a;if(d.td)for(var f=0;b=d.td[f];f++)b(e);c=c.getParent()}};yd.prototype.info=function(a,b){this.log(Bd,a,b)}; var Fd={},Gd=null,Hd=function(a){Gd||(Gd=new yd(""),Fd[""]=Gd,Gd.Qd(Cd));var b;if(!(b=Fd[a])){b=new yd(a);var c=a.lastIndexOf("."),d=a.substr(c+1);c=Hd(a.substr(0,c));c.pd()[d]=b;b.u=c;Fd[a]=b}return b};var Id="StopIteration"in k?k.StopIteration:{message:"StopIteration",stack:""},Jd=function(){};Jd.prototype.next=function(){throw Id;};Jd.prototype.Ca=function(){return this}; var Kd=function(a){if(a instanceof Jd)return a;if("function"==typeof a.Ca)return a.Ca(!1);if(pa(a)){var b=0,c=new Jd;c.next=function(){for(;;){if(b>=a.length)throw Id;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");},Ld=function(a,b){if(pa(a))try{Ta(a,b,void 0)}catch(c){if(c!==Id)throw c;}else{a=Kd(a);try{for(;;)b.call(void 0,a.next(),void 0,a)}catch(c){if(c!==Id)throw c;}}};var Nd=function(a){return(new Md(void 0)).A(a)},Md=function(a){this.Nb=a};Md.prototype.A=function(a){var b=[];Od(this,a,b);return b.join("")}; var Od=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(p(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f2*this.j&&Yd(this),!0):!1};var Yd=function(a){if(a.j!=a.h.length){for(var b=0,c=0;b=d.h.length)throw Id;var e=d.h[b++];return a?e:d.s[e]};return e};var Zd=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var ae=function(a){if(a.m&&"function"==typeof a.m)a=a.m();else if(pa(a)||n(a))a=a.length;else{var b=0,c;for(c in a)b++;a=b}return a},be=function(a){if(a.w&&"function"==typeof a.w)return a.w();if(n(a))return a.split("");if(pa(a)){for(var b=[],c=a.length,d=0;d");c=c.join("")}c=a.createElement(c);d&&(n(d)?c.className=d:p(d)?c.className=d.join(" "):Ne(c,d));2a.y||a.y>=d)return c.createElement("div");var e=a.x%d;0>e&&(e+=d);d=new google.maps.Point(e,a.y);a=[[a.x,a.y,b,this.oa].join("-"),this.Qc.sd()].join("-");var f=this.fd(d,b,c,a);f.tileSize=this.tileSize;We(f.J,this.opacity);this.pa.set(a,f);this.da.aa(f,"status-changed",function(){switch(f.getStatus()){case "loaded":this.dispatchEvent(new Ze(this.uc()));break;case "throttled":this.dispatchEvent(new $e);break;case "failed":this.dispatchEvent(new af)}}); this.Qc.Bd(f,(new Date).getTime()/1E3);return f.J};h.releaseTile=function(a){var b=this.pa.get(a.id);this.pa.remove(a.id);b&&(b.abort(),ib(b))};h.f=function(){Xe.l.f.call(this);this.pa.forEach(ib);this.pa.clear();this.pa=null;ib(this.da);this.Qc=this.da=null};var Ye=function(a,b){return Ya(a.pa.w(),function(a){return a.getStatus()==b})},Ze=function(){A.call(this,"tile-load")};v(Ze,A);var $e=function(){A.call(this,"tile-throttle")};v($e,A);var af=function(){A.call(this,"tile-fail")};v(af,A); var bf=function(a,b,c,d){C.call(this);this.Fa=a;this.zoom=b;this.J=c.createElement("div");this.J.id=d;this.re=5;this.Mb=function(){};this.Nc="new";this.Md=0;this.Cc=!1};v(bf,C); var df=function(a){if(!a.Cc&&"loading"==a.getStatus())throw Error("startLoad() can only be invoked once. Use retryLoad() after the first attempt.");cf(a,"loading");a.ha=new E;a.ha.Oa="blob";a.ha.aa("complete",function(){var a=ve(this.ha),c=this.ha.getStatus();429==c&&cf(this,"throttled");if(vd(c)){var d={};mb(we(this.ha),function(a,b){d[b.toLowerCase()]=a});this.ze=d;this.Rd=a;this.Wa()}else if(a){var e=new ud;e.aa("loadend",function(){this.ib(e.F.result)},void 0,this);e.readAsText(a)}else this.ib("Failed to load tile.")}, !1,a);a.ha.fb("ready",va(ib,a.ha));a.ha.send(a.Qb,"GET")};h=bf.prototype;h.Wa=function(){this.Mb(this);cf(this,"loaded")};h.Ta=function(){ib(this.ha)};h.ib=function(a){if(this.Md>=this.re){try{JSON.parse(a)}catch(b){}cf(this,"failed")}else this.Ta(),setTimeout(t(function(){this.Y||(this.Cc=!0,df(this),this.Cc=!1)},this),1E3*Math.pow(2,this.Md++))};h.abort=function(){this.Ta();cf(this,"aborted")};h.getStatus=function(){return this.Nc}; var cf=function(a,b){a.Nc=b;a.dispatchEvent("status-changed")},ef={aborted:!0,failed:!0,loaded:!0};bf.prototype.f=function(){bf.l.f.call(this);this.Ta();this.J.remove();this.Mb=null};var ff=function(){z.call(this)};v(ff,z);var gf=function(a,b){Xe.call(this,a,b);this.ad=new D;this.jd=new D};v(gf,Xe);u("ee.layers.BinaryOverlay",gf);gf.prototype.fd=function(a,b,c,d){var e=new hf(a,b,c,d);this.da.aa(e,"status-changed",function(){"loaded"==e.getStatus()&&(this.ad.set(a,new Float32Array(e.$d)),this.jd.set(a,e.J))});return e};gf.prototype.f=function(){gf.l.f.call(this);this.jd=this.ad=null};var hf=function(a,b,c,d){bf.call(this,a,b,c,d)};v(hf,bf); hf.prototype.Wa=function(){var a=new ud;a.aa("loadend",function(){this.$d=a.F.result;bf.prototype.Wa.call(this)},void 0,this);a.readAsArrayBuffer(this.Rd)};var jf=function(a){for(var b=arguments[0],c=1;cb)throw Error("Bad port number "+b);a.La=b}else a.La=null}; tf.prototype.getPath=function(){return this.fa};tf.prototype.setPath=function(a,b){vf(this);this.fa=b?yf(a,!0):a;return this};var xf=function(a,b,c){vf(a);b instanceof zf?(a.V=b,a.V.Lc(a.N)):(c||(b=Af(b,Ff)),a.V=new zf(b,0,a.N))};tf.prototype.removeParameter=function(a){vf(this);this.V.remove(a);return this};var vf=function(a){if(a.ne)throw Error("Tried to modify a read-only Uri");};tf.prototype.Lc=function(a){this.N=a;this.V&&this.V.Lc(a);return this}; var Gf=function(a){return a instanceof tf?a.clone():new tf(a,void 0)},yf=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},Af=function(a,b,c){return n(a)?(a=encodeURI(a).replace(b,Hf),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},Hf=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},Bf=/[#\/\?@]/g,Df=/[#\?:]/g,Cf=/[#\?]/g,Ff=/[#\?@]/g,Ef=/#/g,zf=function(a,b,c){this.j=this.o=null;this.K=a||null;this.N=!!c},If=function(a){a.o|| (a.o=new D,a.j=0,a.K&&ie(a.K,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))};h=zf.prototype;h.m=function(){If(this);return this.j};h.add=function(a,b){If(this);this.K=null;a=Jf(this,a);var c=this.o.get(a);c||this.o.set(a,c=[]);c.push(b);this.j=Na(this.j)+1;return this};h.remove=function(a){If(this);a=Jf(this,a);return this.o.ja(a)?(this.K=null,this.j=Na(this.j)-this.o.get(a).length,this.o.remove(a)):!1};h.clear=function(){this.o=this.K=null;this.j=0}; h.isEmpty=function(){If(this);return 0==this.j};h.ja=function(a){If(this);a=Jf(this,a);return this.o.ja(a)};h.Ua=function(a){var b=this.w();return 0<=Ra(b,a)};h.forEach=function(a,b){If(this);this.o.forEach(function(c,d){Ta(c,function(c){a.call(b,c,d,this)},this)},this)};h.U=function(){If(this);for(var a=this.o.w(),b=this.o.U(),c=[],d=0;db&&(b+=e);return[dg,"map",a.mapid,d,b,c].join("/")+"?token="+a.token};u("ee.data.getTileUrl",og);var pg=function(a,b){a=xb(a);return F("/value",G(a),b)};u("ee.data.getValue",pg); var qg=function(a,b){a=xb(a);p(a.dimensions)&&(a.dimensions=a.dimensions.join("x"));a=G(a).add("getid","1");return F("/thumb",a,b)};u("ee.data.getThumbId",qg);var rg=function(a){return dg+"/api/thumb?thumbid="+a.thumbid+"&token="+a.token};u("ee.data.makeThumbUrl",rg);var sg=function(a,b){a=xb(a);return F("/download",G(a),b)};u("ee.data.getDownloadId",sg);var tg=function(a){return dg+"/api/download?docid="+a.docid+"&token="+a.token};u("ee.data.makeDownloadUrl",tg); var ug=function(a,b){a=xb(a);return F("/table",G(a),b)};u("ee.data.getTableDownloadId",ug);var vg=function(a){return dg+"/api/table?docid="+a.docid+"&token="+a.token};u("ee.data.makeTableDownloadUrl",vg);var xg=function(a,b,c){var d=wg;try{return wg=a,b.call(c)}finally{wg=d}};u("ee.data.withProfiling",xg);u("ee.data.newTaskId",function(a,b){var c={};la(a)&&(c.count=a);return F("/newtaskid",G(c),b)}); u("ee.data.getTaskStatus",function(a,b){if(n(a))a=[a];else if(!p(a))throw Error("Invalid taskId: expected a string or an array of strings.");return F("/taskstatus?q="+a.join(),null,b,"GET")});u("ee.data.getTaskList",function(a){return F("/tasklist",null,a,"GET")});u("ee.data.cancelTask",function(a,b){return yg(a,"CANCEL",b)}); var yg=function(a,b,c){if(n(a))a=[a];else if(!p(a))throw Error("Invalid taskId: expected a string or an array of strings.");if(!sb(zg,b))throw Error("Invalid action: "+b);return F("/updatetask",G({id:a,action:b}),c,"POST")};u("ee.data.updateTask",yg);u("ee.data.startProcessing",function(a,b,c){b=xb(b);b.id=a;return F("/processingrequest",G(b),c)});u("ee.data.startIngestion",function(a,b,c){a={id:a,request:Nd(b)};return F("/ingestionrequest",G(a),c)}); u("ee.data.startTableIngestion",function(a,b,c){a={id:a,tableRequest:Nd(b)};return F("/ingestionrequest",G(a),c)});var Ag=function(a,b){return F("/info",(new zf).add("id",a),b)};u("ee.data.getInfo",Ag);var Bg=function(a,b){a=G(a);return F("/list",a,b)};u("ee.data.getList",Bg);u("ee.data.getAssetRoots",function(a){return F("/buckets",null,a,"GET")});u("ee.data.createAssetHome",function(a,b){a=G({id:a});F("/createbucket",a,b)}); u("ee.data.createAsset",function(a,b,c,d,e){n(a)||(a=Nd(a));a={value:a};void 0!==b&&(a.id=b);a.force=c||!1;void 0!=d&&(a.properties=Nd(d));return F("/create",G(a),e)});u("ee.data.createFolder",function(a,b,c){return F("/createfolder",G({id:a,force:b||!1}),c)});u("ee.data.renameAsset",function(a,b,c){F("/rename",G({sourceId:a,destinationId:b}),c)});u("ee.data.copyAsset",function(a,b,c){F("/copy",G({sourceId:a,destinationId:b}),c)});u("ee.data.deleteAsset",function(a,b){F("/delete",G({id:a}),b)}); u("ee.data.getAssetAcl",function(a,b){return F("/getacl",G({id:a}),b,"GET")});u("ee.data.setAssetAcl",function(a,b,c){a={id:a,value:Nd(b)};F("/setacl",G(a),c)});u("ee.data.setAssetProperties",function(a,b,c){a={id:a,properties:Nd(b)};F("/setproperties",G(a),c)});u("ee.data.getAssetRootQuota",function(a,b){return F("/quota",G({id:a}),b,"GET")}); var zg={Fe:"CANCEL",Ie:"UPDATE"},F=function(a,b,c,d){fg();var e=wg,f={"Content-Type":"application/x-www-form-urlencoded"},g=Zf();if(null!=g)f.Authorization=g;else if(c&&Tf&&Kf)return Of(function(){xg(e,function(){F(a,b,c,d)})}),null;g=d||"POST";b=b?b.clone():new zf;e&&b.add("profiling","1");b=ig(b,a);null!=eg&&(f["X-XSRF-Token"]=eg);var l=b?b.toString():"";"GET"!=g||/^[\s\xa0]*$/.test(l)||(a+=-1!=a.indexOf("?")?"&":"?",a+=l,l=null);var w=bg+a;if(c)return f=Cg(w,c,g,l,f),Dg.push(f),Eg.sc(),null;for(var qa= function(a,b){this.setRequestHeader&&this.setRequestHeader(b,a)},Ma,Ug=0;;){Ma=Wd();Ma.open(g,w,!1);mb(f,qa,Ma);Ma.send(l);if(429!=Ma.status||5f)return f++,setTimeout(function(){Dg.push(g);Eg.sc()},Math.min(12E4,1E3*Math.pow(2,f))),null;var c=a.getStatus(), d=t(a.getResponseHeader,a);try{var e=a.a?a.a.responseText:""}catch(ij){Sd(a.I,"Can not get responseText: "+ij.message),e=""}return Fg(c,d,e,l,b)};return g},Fg=function(a,b,c,d,e){var f=b("X-Earth-Engine-Computation-Profile");f&&d&&d(f);b=(b=b("Content-Type"))?b.replace(/;.*/,""):"application/json";if("application/json"==b||"text/json"==b)try{var g=JSON.parse(c);var l=g.data}catch(qa){var w="Invalid JSON: "+c}else w="Response was unexpectedly not JSON, but "+b;if(r(g))"error"in g&&"message"in g.error? w=g.error.message:"data"in g||(w="Malformed response: "+c);else if(0===a)w="Failed to contact Earth Engine servers. Please check your connection, firewall, or browser extension settings.";else if(200>a||300<=a)w="Server returned HTTP code: "+a;if(e)return e(l,w),null;if(!w)return l;throw Error(w);},Nf=function(a){var b=function(){k.gapi.config.update("client/cors",!0);Tf||(Tf=k.gapi.auth.authorize);a()};if(r(k.gapi)&&r(k.gapi.auth)&&q(k.gapi.auth.authorize))b();else{for(var c=wa().toString(36);c in k;)c+="_";k[c]=function(){delete k[c];b()};sf(Ke({onload:c}))}},Sf=function(a,b,c){c.access_token?(b=c.token_type+" "+c.access_token,isFinite(c.expires_in)&&(c=900*c.expires_in,setTimeout(Of,.9*c),Xf=wa()+c),Mf=b,a&&a()):b&&b(c.error||"Unknown error.")},G=function(a){var b=new zf;a=ia(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=ia(c.value);c=d.next().value;d=d.next().value;b.set(c,d)}return b},Dg=[],Eg=new mf(function(){var a=Dg.shift();if(a){var b=a.url,c=a.hc,d=a.method,e=a.content; a=a.headers;var f=gg,g=new E;ne.push(g);c&&g.aa("complete",c);g.fb("ready",g.ce);f&&(g.Ra=Math.max(0,f));g.send(b,d,e,a)}0==Dg.length||Eg.sc()},350),bg=null,dg=null,eg=null,ig=Bc,Mf=null,Xf=null,Kf=null,Lf=[],Tf=null,Ge=Ce("https://apis.google.com/js/client.js?onload=%{onload}"),cg=!1,gg=0,wg=null;var Gg=function(a,b){this.zd=a;this.Zb=b};Gg.prototype.getKey=function(){return this.zd};Gg.prototype.clone=function(){return new Gg(this.zd,this.Zb)};var Hg=function(a){this.O=[];if(a)a:{if(a instanceof Hg){var b=a.U();a=a.w();if(0>=this.m()){for(var c=this.O,d=0;d>1,a[d].getKey()>c.getKey())a[b]=a[d],b=d;else break;a[b]=c};h=Hg.prototype; h.remove=function(){var a=this.O,b=a.length,c=a[0];if(!(0>=b)){if(1==b)ab(a);else{a[0]=a.pop();a=0;b=this.O;for(var d=b.length,e=b[a];a>1;){var f=2*a+1,g=2*a+2;f=ge.getKey())break;b[a]=b[f];a=f}b[a]=e}return c.Zb}};h.w=function(){for(var a=this.O,b=[],c=a.length,d=0;dc)return!1;!(b instanceof H)&&5this.Fb)throw Error("[goog.structs.Pool] Min can not be greater than max");this.Z=new Jg;this.la=new H;this.lc=0;this.Dc=null;this.ob()};v(Og,z);Og.prototype.Ya=function(){var a=wa();if(!(null!=this.Dc&&a-this.Dcthis.Fb&&0e&&(e+=d);return[a.qe,c,e,b.y].join("/")};dh.prototype.uc=function(){return this.qa.length};var fh=function(a){A.call(this,"tileevent");this.count=a};v(fh,A);var gh=function(){};var hh=function(){this.ia=-1};var ih=function(){this.ia=64;this.C=Array(4);this.Yd=Array(this.ia);this.Ub=this.Sa=0;this.reset()};v(ih,hh);ih.prototype.reset=function(){this.C[0]=1732584193;this.C[1]=4023233417;this.C[2]=2562383102;this.C[3]=271733878;this.Ub=this.Sa=0}; var jh=function(a,b,c){c||(c=0);var d=Array(16);if(n(b))for(var e=0;16>e;++e)d[e]=b.charCodeAt(c++)|b.charCodeAt(c++)<<8|b.charCodeAt(c++)<<16|b.charCodeAt(c++)<<24;else for(e=0;16>e;++e)d[e]=b[c++]|b[c++]<<8|b[c++]<<16|b[c++]<<24;b=a.C[0];c=a.C[1];e=a.C[2];var f=a.C[3];var g=b+(f^c&(e^f))+d[0]+3614090360&4294967295;b=c+(g<<7&4294967295|g>>>25);g=f+(e^b&(c^e))+d[1]+3905402710&4294967295;f=b+(g<<12&4294967295|g>>>20);g=e+(c^f&(b^c))+d[2]+606105819&4294967295;e=f+(g<<17&4294967295|g>>>15);g=c+(b^e& (f^b))+d[3]+3250441966&4294967295;c=e+(g<<22&4294967295|g>>>10);g=b+(f^c&(e^f))+d[4]+4118548399&4294967295;b=c+(g<<7&4294967295|g>>>25);g=f+(e^b&(c^e))+d[5]+1200080426&4294967295;f=b+(g<<12&4294967295|g>>>20);g=e+(c^f&(b^c))+d[6]+2821735955&4294967295;e=f+(g<<17&4294967295|g>>>15);g=c+(b^e&(f^b))+d[7]+4249261313&4294967295;c=e+(g<<22&4294967295|g>>>10);g=b+(f^c&(e^f))+d[8]+1770035416&4294967295;b=c+(g<<7&4294967295|g>>>25);g=f+(e^b&(c^e))+d[9]+2336552879&4294967295;f=b+(g<<12&4294967295|g>>>20);g= e+(c^f&(b^c))+d[10]+4294925233&4294967295;e=f+(g<<17&4294967295|g>>>15);g=c+(b^e&(f^b))+d[11]+2304563134&4294967295;c=e+(g<<22&4294967295|g>>>10);g=b+(f^c&(e^f))+d[12]+1804603682&4294967295;b=c+(g<<7&4294967295|g>>>25);g=f+(e^b&(c^e))+d[13]+4254626195&4294967295;f=b+(g<<12&4294967295|g>>>20);g=e+(c^f&(b^c))+d[14]+2792965006&4294967295;e=f+(g<<17&4294967295|g>>>15);g=c+(b^e&(f^b))+d[15]+1236535329&4294967295;c=e+(g<<22&4294967295|g>>>10);g=b+(e^f&(c^e))+d[1]+4129170786&4294967295;b=c+(g<<5&4294967295| g>>>27);g=f+(c^e&(b^c))+d[6]+3225465664&4294967295;f=b+(g<<9&4294967295|g>>>23);g=e+(b^c&(f^b))+d[11]+643717713&4294967295;e=f+(g<<14&4294967295|g>>>18);g=c+(f^b&(e^f))+d[0]+3921069994&4294967295;c=e+(g<<20&4294967295|g>>>12);g=b+(e^f&(c^e))+d[5]+3593408605&4294967295;b=c+(g<<5&4294967295|g>>>27);g=f+(c^e&(b^c))+d[10]+38016083&4294967295;f=b+(g<<9&4294967295|g>>>23);g=e+(b^c&(f^b))+d[15]+3634488961&4294967295;e=f+(g<<14&4294967295|g>>>18);g=c+(f^b&(e^f))+d[4]+3889429448&4294967295;c=e+(g<<20&4294967295| g>>>12);g=b+(e^f&(c^e))+d[9]+568446438&4294967295;b=c+(g<<5&4294967295|g>>>27);g=f+(c^e&(b^c))+d[14]+3275163606&4294967295;f=b+(g<<9&4294967295|g>>>23);g=e+(b^c&(f^b))+d[3]+4107603335&4294967295;e=f+(g<<14&4294967295|g>>>18);g=c+(f^b&(e^f))+d[8]+1163531501&4294967295;c=e+(g<<20&4294967295|g>>>12);g=b+(e^f&(c^e))+d[13]+2850285829&4294967295;b=c+(g<<5&4294967295|g>>>27);g=f+(c^e&(b^c))+d[2]+4243563512&4294967295;f=b+(g<<9&4294967295|g>>>23);g=e+(b^c&(f^b))+d[7]+1735328473&4294967295;e=f+(g<<14&4294967295| g>>>18);g=c+(f^b&(e^f))+d[12]+2368359562&4294967295;c=e+(g<<20&4294967295|g>>>12);g=b+(c^e^f)+d[5]+4294588738&4294967295;b=c+(g<<4&4294967295|g>>>28);g=f+(b^c^e)+d[8]+2272392833&4294967295;f=b+(g<<11&4294967295|g>>>21);g=e+(f^b^c)+d[11]+1839030562&4294967295;e=f+(g<<16&4294967295|g>>>16);g=c+(e^f^b)+d[14]+4259657740&4294967295;c=e+(g<<23&4294967295|g>>>9);g=b+(c^e^f)+d[1]+2763975236&4294967295;b=c+(g<<4&4294967295|g>>>28);g=f+(b^c^e)+d[4]+1272893353&4294967295;f=b+(g<<11&4294967295|g>>>21);g=e+(f^ b^c)+d[7]+4139469664&4294967295;e=f+(g<<16&4294967295|g>>>16);g=c+(e^f^b)+d[10]+3200236656&4294967295;c=e+(g<<23&4294967295|g>>>9);g=b+(c^e^f)+d[13]+681279174&4294967295;b=c+(g<<4&4294967295|g>>>28);g=f+(b^c^e)+d[0]+3936430074&4294967295;f=b+(g<<11&4294967295|g>>>21);g=e+(f^b^c)+d[3]+3572445317&4294967295;e=f+(g<<16&4294967295|g>>>16);g=c+(e^f^b)+d[6]+76029189&4294967295;c=e+(g<<23&4294967295|g>>>9);g=b+(c^e^f)+d[9]+3654602809&4294967295;b=c+(g<<4&4294967295|g>>>28);g=f+(b^c^e)+d[12]+3873151461&4294967295; f=b+(g<<11&4294967295|g>>>21);g=e+(f^b^c)+d[15]+530742520&4294967295;e=f+(g<<16&4294967295|g>>>16);g=c+(e^f^b)+d[2]+3299628645&4294967295;c=e+(g<<23&4294967295|g>>>9);g=b+(e^(c|~f))+d[0]+4096336452&4294967295;b=c+(g<<6&4294967295|g>>>26);g=f+(c^(b|~e))+d[7]+1126891415&4294967295;f=b+(g<<10&4294967295|g>>>22);g=e+(b^(f|~c))+d[14]+2878612391&4294967295;e=f+(g<<15&4294967295|g>>>17);g=c+(f^(e|~b))+d[5]+4237533241&4294967295;c=e+(g<<21&4294967295|g>>>11);g=b+(e^(c|~f))+d[12]+1700485571&4294967295;b=c+ (g<<6&4294967295|g>>>26);g=f+(c^(b|~e))+d[3]+2399980690&4294967295;f=b+(g<<10&4294967295|g>>>22);g=e+(b^(f|~c))+d[10]+4293915773&4294967295;e=f+(g<<15&4294967295|g>>>17);g=c+(f^(e|~b))+d[1]+2240044497&4294967295;c=e+(g<<21&4294967295|g>>>11);g=b+(e^(c|~f))+d[8]+1873313359&4294967295;b=c+(g<<6&4294967295|g>>>26);g=f+(c^(b|~e))+d[15]+4264355552&4294967295;f=b+(g<<10&4294967295|g>>>22);g=e+(b^(f|~c))+d[6]+2734768916&4294967295;e=f+(g<<15&4294967295|g>>>17);g=c+(f^(e|~b))+d[13]+1309151649&4294967295; c=e+(g<<21&4294967295|g>>>11);g=b+(e^(c|~f))+d[4]+4149444226&4294967295;b=c+(g<<6&4294967295|g>>>26);g=f+(c^(b|~e))+d[11]+3174756917&4294967295;f=b+(g<<10&4294967295|g>>>22);g=e+(b^(f|~c))+d[2]+718787259&4294967295;e=f+(g<<15&4294967295|g>>>17);g=c+(f^(e|~b))+d[9]+3951481745&4294967295;a.C[0]=a.C[0]+b&4294967295;a.C[1]=a.C[1]+(e+(g<<21&4294967295|g>>>11))&4294967295;a.C[2]=a.C[2]+e&4294967295;a.C[3]=a.C[3]+f&4294967295}; ih.prototype.update=function(a,b){m(b)||(b=a.length);for(var c=b-this.ia,d=this.Yd,e=this.Sa,f=0;fthis.Sa?this.ia:2*this.ia)-this.Sa);a[0]=128;for(var b=1;bb;++b)for(var d=0;32>d;d+=8)a[c++]=this.C[b]>>>d&255;return a};var kh=function(a){this.nb="__ee_hash__";this.Bc=!1!==a;this.Pa=[];this.Ha={};this.Wc=[]};u("ee.Serializer",kh);var lh=new Md,mh=new ih,oh=function(a,b){return nh(new kh(m(b)?b:!0),a)};u("ee.Serializer.encode",oh);var ph=function(a){return lh.A(oh(a))};u("ee.Serializer.toJSON",ph);var qh=function(a){a=nh(new kh(!1),a);return"JSON"in k?k.JSON.stringify(a,null," "):lh.A(a)};u("ee.Serializer.toReadableJSON",qh); var nh=function(a,b){b=a.tb(b);a.Bc&&(b=r(b)&&"ValueRef"==b.type&&1==a.Pa.length?a.Pa[0][1]:{type:"CompoundValue",scope:a.Pa,value:b},a.Pa=[],Ta(a.Wc,t(function(a){delete a[this.nb]},a)),a.Wc=[],a.Ha={});return b}; kh.prototype.tb=function(a){if(!m(a))throw Error("Can't encode an undefined value.");var b=r(a)?a[this.nb]:null;if(this.Bc&&null!=b&&this.Ha[b])return{type:"ValueRef",value:this.Ha[b]};if(null===a||"boolean"==typeof a||la(a)||n(a))return a;if(r(a)&&"function"==typeof a.getFullYear)return{type:"Invocation",functionName:"Date",arguments:{value:Math.floor(a.getTime())}};if(a instanceof gh){var c=a.encode(t(this.tb,this));if(!(p(c)||r(c)&&"ArgumentRef"!=c.type))return c}else if(p(a))c=Va(a,function(a){return this.tb(a)}, this);else if(r(a)&&!q(a))c=ob(a,function(a){if(!q(a))return this.tb(a)},this),wb(c,this.nb),c={type:"Dictionary",value:c};else throw Error("Can't encode object: "+a);if(this.Bc){mh.reset();mh.update(lh.A(c));b=mh.digest().toString();if(this.Ha[b])var d=this.Ha[b];else d=String(this.Pa.length),this.Pa.push([d,c]),this.Ha[b]=d;a[this.nb]=b;this.Wc.push(a);return{type:"ValueRef",value:d}}return c};var I=function(a,b,c){if(!(this instanceof I))return J(I,arguments);if(c&&(a||b))throw Error('When "opt_varName" is specified, "func" and "args" must be null.');if(a&&!b)throw Error('When "func" is specified, "args" must not be null.');this.i=a;this.args=b;this.B=c||null};v(I,gh);u("ee.ComputedObject",I);I.prototype.evaluate=function(a){if(!a||!q(a))throw Error("evaluate() requires a callback function.");pg({json:this.A()},a)};I.prototype.evaluate=I.prototype.evaluate; I.prototype.$=function(a){return pg({json:this.A()},a)};I.prototype.getInfo=I.prototype.$;I.prototype.encode=function(a){if(null===this.i&&null===this.args)return{type:"ArgumentRef",value:this.B};var b={},c;for(c in this.args)m(this.args[c])&&(b[c]=a(this.args[c]));b={type:"Invocation",arguments:b};a=a(this.i);b[n(a)?"functionName":"function"]=a;return b};I.prototype.A=function(){return ph(this)};I.prototype.serialize=I.prototype.A; I.prototype.toString=function(){return"ee."+this.name()+"("+qh(this)+")"};u("ee.ComputedObject.prototype.toString",I.prototype.toString);I.prototype.name=function(){return"ComputedObject"};I.prototype.Xc=function(a,b){var c=eb(arguments);c[0]=this;a.apply(k,c);return this};I.prototype.aside=I.prototype.Xc; var rh=function(a,b){if(b instanceof a.constructor)return b;var c=function(){};c.prototype=a.constructor.prototype;a=new c;a.i=b.i;a.args=b.args;a.B=b.B;return a},J=function(a,b){function c(){return a.apply(this,b)}c.prototype=a.prototype;return new c};var sh={},th=function(a){return a.prototype instanceof I?a.prototype.name.call(null):a==Number?"Number":a==String?"String":a==Array?"Array":a==Date?"Date":"Object"},uh=function(a,b){if(b==a)return!0;switch(a){case "Element":return"Element"==b||"Image"==b||"Feature"==b||"Collection"==b||"ImageCollection"==b||"FeatureCollection"==b;case "FeatureCollection":case "Collection":return"Collection"==b||"ImageCollection"==b||"FeatureCollection"==b;case "Object":return!0;default:return!1}},vh=function(a){return la(a)|| a instanceof I&&"Number"==a.name()},wh=function(a){return n(a)||a instanceof I&&"String"==a.name()},xh=function(a){return r(a)&&!q(a)?(a=Object.getPrototypeOf(a),null!==a&&null===Object.getPrototypeOf(a)):!1};var K=function(){if(!(this instanceof K))return new K};v(K,gh);u("ee.Function",K);var yh=Bc;K.prototype.call=function(a){return this.apply(zh(this,Array.prototype.slice.call(arguments,0)))};K.prototype.call=K.prototype.call;K.prototype.apply=function(a){a=new I(this,Ah(this,a));return yh(a,this.H().returns)};K.prototype.apply=K.prototype.apply; var Bh=function(a,b,c){var d=m(b),e=a.H(),f=!1;if(1==c.length&&xh(c[0])){var g=e.args;d&&(g=g.slice(1));g.length&&(f=!((1==g.length||g[1].optional)&&"Dictionary"==g[0].type))}if(f){if(c=xb(c[0]),d){d=e.args[0].name;if(d in c)throw Error("Named args for "+e.name+" can't contain keyword "+d);c[d]=b}}else c=zh(a,d?[b].concat(c):c);return a.apply(c)},Ah=function(a,b){for(var c=a.H().args,d={},e={},f=0;f/,"");for(var c=0;c/,"");return new L(b,a)}),a&&a())};a?mg(c):c(mg())}},N=function(a,b,c,d){Gh();var e=d||"";mb(Eh,function(d,g){var f=g.split(".");if(2==f.length&&f[0]==b){f=e+f[1];var w=d.H();Fh[g]=!0;var qa=!1;w.args.length&&(g=w.args[0].type,qa="Object"!=g&&uh(g, c));g=qa?a.prototype:a;f in g&&!g[f].signature||(g[f]=function(a){return Bh(d,qa?this:void 0,Array.prototype.slice.call(arguments,0))},g[f].toString=t(d.toString,d,f,qa),g[f].signature=w)}})},O=function(a){var b=function(a){for(var b in a)q(a[b])&&a[b].signature&&delete a[b]};b(a);b(a.prototype)};var P=function(a,b){var c=Kh(a),d=Va(c,function(a){return a.replace(/^opt_/,"")});a=(a=Lh(a))?" to function "+a:"";var e={},f=b[0],g=r(f)&&!q(f)&&!p(f)&&!(f instanceof I);if(1d.length)throw Error("Received too many arguments"+a+". Expected at most "+d.length+" but got "+b.length+".");for(f=0;f=arguments.length){var c=arguments[0];if(b=xh(c))a:{b=rb(c);var d=["properties"];if(pa(b)&&pa(d)&&b.length==d.length){for(var e=b.length,f=0;fc||4/,"");c[e]=!0}var f=k.ee,g;for(g in b)g in c&&!(g in f)&&(f[g]=qj(g),kj.push(g),a[g]?(f[g].signature=a[g],f[g].signature.isConstructor=!0,Fh[g]=!0):f[g].signature={});sh=f;rj()}catch(l){hj(l);return}dj="ready";for(ej=[];0a.se)return!1;a.Yc++;Zg(a.G,a.ea);setTimeout(t(a.Ae,a),0);return!0}; wj.prototype.Ae=function(){if(!this.Da){var a=t(function(a){this.Da||(Yg(this.G,this.ea,a),ic(this.G,zj,t(this.ke,this)),this.G.start())},this),b=this.getUrl();if(Gf(b).V.ja("profiling")){var c=new E;c.Oa="blob";c.aa("complete",t(function(){this.Jd=c.getResponseHeader("X-Earth-Engine-Computation-Profile")||null;if(200<=c.getStatus()&&300>c.getStatus())try{var d=URL.createObjectURL(ve(c))}catch(e){}a(d||b)},this));c.fb("ready",t(c.X,c));c.send(b,"GET")}else a(b)}};var Aj=function(){this.P=!1}; v(Aj,z);Aj.prototype.setActive=function(a){this.P=a};Aj.prototype.xd=function(){return this.P};var vj=function(a,b){Rg.call(this,a,b)};v(vj,Rg);vj.prototype.kc=function(){return new Aj};vj.prototype.rb=function(a){a.X()};vj.prototype.Gc=function(a){return!a.Y&&!a.xd()};var Z=function(a,b,c,d,e){dh.call(this,a,b,c);this.minZoom=d.minZoom||0;this.maxZoom=d.maxZoom||20;if(!window.google||!window.google.maps)throw Error("Google Maps API hasn't been initialized.");this.tileSize=d.tileSize||new google.maps.Size(256,256);this.Db=m(d.Db)?d.Db:!0;this.name=d.name;this.Sc=new H;this.Hc=1;this.L=e||null};v(Z,dh);u("ee.MapLayerOverlay",Z);Z.prototype.dc=function(a){return jc(this,"tileevent",a)};Z.prototype.addTileCallback=Z.prototype.dc;Z.prototype.Kc=function(a){rc(a)}; Z.prototype.removeTileCallback=Z.prototype.Kc;Z.prototype.getTile=function(a,b,c){if(ba.y||a.y>=1<