@google/earthengine 1.7.0 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/browser.js +248 -236
- package/build/ee_api_js.js +20 -20
- package/build/ee_api_js_debug.js +226 -213
- package/build/ee_api_js_npm.js +248 -236
- package/build/main.js +248 -236
- package/package.json +1 -1
- package/src/apiclient.js +1 -1
package/build/ee_api_js.js
CHANGED
|
@@ -88,11 +88,11 @@ h.dispatchEvent=function(a){Od(this);var b=this.Sf;if(b){var c=[];for(var d=1;b;
|
|
|
88
88
|
e;return e};h.K=function(){J.M.K.call(this);this.Ha&&this.Ha.gd();this.Sf=null};h.Va=function(a,b,c,d){Od(this);return this.Ha.add(String(a),b,!1,c,d)};h.Xc=function(a,b,c,d){return this.Ha.add(String(a),b,!0,c,d)};h.te=function(a,b,c,d){this.Ha.remove(String(a),b,c,d)};var Pd=function(a,b,c,d){b=a.Ha.ga[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,g=0;g<b.length;++g){var f=b[g];if(f&&!f.hd&&f.capture==c){var l=f.listener,m=f.hb||f.src;f.Bd&&zd(a.Ha,f);e=l.call(m,d)!==!1&&e}}return e&&!d.defaultPrevented};
|
|
89
89
|
J.prototype.Nc=function(a,b,c,d){return this.Ha.Nc(String(a),b,c,d)};J.prototype.hasListener=function(a,b){return this.Ha.hasListener(a!==void 0?String(a):void 0,b)};var Od=function(a){E(a.Ha,"Event target is not initialized. Did you call the superclass (goog.events.EventTarget) constructor?")};var Qd=function(a,b){this.Rk=a[t.Symbol.iterator]();this.jl=b};Qd.prototype[Symbol.iterator]=function(){return this};Qd.prototype.next=function(){var a=this.Rk.next();return{value:a.done?void 0:this.jl.call(void 0,a.value),done:a.done}};var Rd=function(a,b){return new Qd(a,b)};var Sd=function(){},Td=function(a){return a};var Ud=function(){};Ud.prototype.next=function(){return Vd};var Vd=qc({done:!0,value:void 0});Ud.prototype.Ca=function(){return this};
|
|
90
90
|
var Wd=function(a){if(a instanceof Ud)return a;if(typeof a.Ca=="function")return a.Ca(!1);if(Aa(a)){var b=0,c=new Ud;c.next=function(){for(;;){if(b>=a.length)return Vd;if(b in a)return{value:a[b++],done:!1};b++}};return c}throw Error("Not implemented");},Xd=function(a,b){if(Aa(a))bc(a,b);else for(a=Wd(a);;){var c=a.next();if(c.done)break;b.call(void 0,c.value,void 0,a)}};var ae=function(a){if(a instanceof Yd||a instanceof Zd||a instanceof $d)return a;if(typeof a.next=="function")return new Yd(function(){return a});if(typeof a[Symbol.iterator]=="function")return new Yd(function(){return a[Symbol.iterator]()});if(typeof a.Ca=="function")return new Yd(function(){return a.Ca()});throw Error("Not an iterator or iterable.");},Yd=function(a){this.sf=a};Yd.prototype.Ca=function(){return new Zd(this.sf())};Yd.prototype[Symbol.iterator]=function(){return new $d(this.sf())};
|
|
91
|
-
Yd.prototype.wg=function(){return new $d(this.sf())};var Zd=function(a){this.Tc=a};q(Zd,Ud);Zd.prototype.next=function(){return this.Tc.next()};Zd.prototype[Symbol.iterator]=function(){return new $d(this.Tc)};Zd.prototype.wg=function(){return new $d(this.Tc)};var $d=function(a){Yd.call(this,function(){return a});this.Tc=a};q($d,Yd);$d.prototype.next=function(){return this.Tc.next()};
|
|
91
|
+
Yd.prototype.wg=function(){return new $d(this.sf())};var Zd=function(a){this.Tc=a};q(Zd,Ud);Zd.prototype.next=function(){return this.Tc.next()};Zd.prototype[Symbol.iterator]=function(){return new $d(this.Tc)};Zd.prototype.wg=function(){return new $d(this.Tc)};var $d=function(a){Yd.call(this,function(){return a});this.Tc=a};q($d,Yd);$d.prototype.next=function(){return this.Tc.next()};function be(a,b){this.B={};this.L=[];this.qd=this.size=0;var c=arguments.length;if(c>1){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=be.prototype;h.T=function(){return this.size};h.ba=function(){ce(this);for(var a=[],b=0;b<this.L.length;b++)a.push(this.B[this.L[b]]);return a};h.rb=function(){ce(this);return this.L.concat()};h.Nb=function(a){return this.has(a)};h.has=function(a){return de(this.B,a)};
|
|
92
92
|
h.Jc=function(a){for(var b=0;b<this.L.length;b++){var c=this.L[b];if(de(this.B,c)&&this.B[c]==a)return!0}return!1};h.equals=function(a,b){if(this===a)return!0;if(this.size!=a.T())return!1;b=b||fe;ce(this);for(var c,d=0;c=this.L[d];d++)if(!b(this.get(c),a.get(c)))return!1;return!0};var fe=function(a,b){return a===b};be.prototype.isEmpty=function(){return this.size==0};be.prototype.clear=function(){this.B={};this.L.length=0;this.kb(0);this.qd=0};be.prototype.remove=function(a){return this.delete(a)};
|
|
93
93
|
be.prototype.delete=function(a){return de(this.B,a)?(delete this.B[a],this.kb(this.size-1),this.qd++,this.L.length>2*this.size&&ce(this),!0):!1};var ce=function(a){if(a.size!=a.L.length){for(var b=0,c=0;b<a.L.length;){var d=a.L[b];de(a.B,d)&&(a.L[c++]=d);b++}a.L.length=c}if(a.size!=a.L.length){b={};for(d=c=0;c<a.L.length;){var e=a.L[c];de(b,e)||(a.L[d++]=e,b[e]=1);c++}a.L.length=d}};h=be.prototype;h.get=function(a,b){return de(this.B,a)?this.B[a]:b};
|
|
94
94
|
h.set=function(a,b){de(this.B,a)||(this.kb(this.size+1),this.L.push(a),this.qd++);this.B[a]=b};h.addAll=function(a){if(a instanceof be)for(var b=a.rb(),c=0;c<b.length;c++)this.set(b[c],a.get(b[c]));else for(b in a)this.set(b,a[b])};h.forEach=function(a,b){for(var c=this.rb(),d=0;d<c.length;d++){var e=c[d],g=this.get(e);a.call(b,g,e,this)}};h.clone=function(){return new be(this)};h.keys=function(){return ae(this.Ca(!0)).wg()};h.values=function(){return ae(this.Ca(!1)).wg()};
|
|
95
|
-
h.entries=function(){var a=this;return Rd(this.keys(),function(b){return[b,a.get(b)]})};h.Ca=function(a){ce(this);var b=0,c=this.qd,d=this,e=new Ud;e.next=function(){if(c!=d.qd)throw Error("The map has changed since the iterator was created");if(b>=d.L.length)return Vd;var g=d.L[b++];return{value:a?g:d.B[g],done:!1}};return e};h.kb=function(a){this.size=a};var de=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
|
|
95
|
+
h.entries=function(){var a=this;return Rd(this.keys(),function(b){return[b,a.get(b)]})};h.Ca=function(a){ce(this);var b=0,c=this.qd,d=this,e=new Ud;e.next=function(){if(c!=d.qd)throw Error("The map has changed since the iterator was created");if(b>=d.L.length)return Vd;var g=d.L[b++];return{value:a?g:d.B[g],done:!1}};return e};h.kb=function(a){this.size=a};var de=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};function ge(a){this.B=new be;this.size=0;a&&this.addAll(a)}var he=function(a){var b=typeof a;return b=="object"&&a||b=="function"?"o"+Ea(a):b.slice(0,1)+a};h=ge.prototype;h.T=function(){return this.B.size};h.add=function(a){this.B.set(he(a),a);this.kb(this.B.size)};h.addAll=function(a){a=Lc(a);for(var b=a.length,c=0;c<b;c++)this.add(a[c]);this.kb(this.B.size)};h.gd=function(a){a=Lc(a);for(var b=a.length,c=0;c<b;c++)this.remove(a[c]);this.kb(this.B.size)};
|
|
96
96
|
h.delete=function(a){a=this.B.remove(he(a));this.kb(this.B.size);return a};h.remove=function(a){return this.delete(a)};h.clear=function(){this.B.clear();this.kb(0)};h.isEmpty=function(){return this.B.size===0};h.has=function(a){return this.B.Nb(he(a))};h.contains=function(a){return this.B.Nb(he(a))};h.intersection=function(a){var b=new ge;a=Lc(a);for(var c=0;c<a.length;c++){var d=a[c];this.contains(d)&&b.add(d)}return b};h.difference=function(a){var b=this.clone();b.gd(a);return b};h.ba=function(){return this.B.ba()};
|
|
97
97
|
h.values=function(){return this.B.values()};h.clone=function(){return new ge(this)};h.equals=function(a){return this.T()==Kc(a)&&this.isSubsetOf(a)};h.isSubsetOf=function(a){var b=Kc(a);if(this.T()>b)return!1;!(a instanceof ge)&&b>5&&(a=new ge(a));return Oc(this,function(c){var d=a;return d.contains&&typeof d.contains=="function"?d.contains(c):d.Jc&&typeof d.Jc=="function"?d.Jc(c):Aa(d)||typeof d==="string"?ic(d,c):eb(d,c)})};h.Ca=function(){return this.B.Ca(!1)};ge.prototype[Symbol.iterator]=function(){return this.values()};
|
|
98
98
|
ge.prototype.kb=function(a){this.size=a};var ie=function(a,b,c){J.call(this);this.kl=b;this.token=c;this.yb=[];this.ug=new ge;this.wb=0;this.url=a};y(ie,J);x("ee_root.third_party.earthengine_api.javascript.abstractoverlay.AbstractOverlay",ie);var je=function(a,b,c){var d=1<<c,e=b.x%d;e<0&&(e+=d);return[a.kl,c,e,b.y].join("/")};ie.prototype.Oc=function(){return this.yb.length};var ke=function(a){nd.call(this,"tileevent");this.count=a};y(ke,nd);var le={Bc:"ADMIN_READ",Cc:"DATA_READ",Dc:"DATA_WRITE",dk:"LOG_TYPE_UNSPECIFIED",values:function(){return[le.dk,le.Bc,le.Dc,le.Cc]}},me={Bc:"ADMIN_READ",we:"ADMIN_WRITE",Cc:"DATA_READ",Dc:"DATA_WRITE",Ee:"PERMISSION_TYPE_UNSPECIFIED",values:function(){return[me.Ee,me.Bc,me.we,me.Cc,me.Dc]}},ne={ej:"AUTO_APPEAL_ELIGIBLE",ij:"CAPABILITY_GROUP_UNSPECIFIED",kj:"CLOUD_ALPHA",Fj:"EXTERNAL",Wj:"INTERNAL",Zj:"LIMITED",lk:"PREAUTHORIZED",nk:"PREVIEW",Fc:"PUBLIC",qk:"RESTRICTED",values:function(){return[ne.ij,
|
|
@@ -455,7 +455,7 @@ Pa(p,f[m]))});return b?b(l):l};return this.callback?(gj(d,null,function(f,l){ret
|
|
|
455
455
|
hj.prototype.send=function(a,b){var c=[a.C+" "+a.path+" HTTP/1.1"];c.push("Content-Type: application/json; charset=utf-8");var d=jj();d!=null&&c.push("Authorization: "+d);kj&&c.push("User-Agent: "+kj);a=a.body?JSON.stringify(a.body):"";return[c.join("\r\n")+"\r\n\r\n"+a,b]};
|
|
456
456
|
var lj=function(a,b,c){a=r(b.split("--"+a.split("; boundary=")[1]));for(b=a.next();!b.done;b=a.next())if(b=b.value.split("\r\n\r\n"),!(b.length<3)){var d=b[0].match(/\r\nContent-ID: <response-([^>]*)>/)[1],e=Number(b[1].match(/^HTTP\S*\s(\d+)\s/)[1]);c(d,e,b.slice(2).join("\r\n\r\n"))}},ej=function(){var a=mj.replace(/\/api$/,"");return"window"in t&&!a.match(/^https?:\/\/content-/)?a.replace(/^(https?:\/\/)(.*\.googleapis\.com)$/,"$1content-$2"):a},oj=function(a,b,c){var d=[];a&&(d=d.concat(nj));
|
|
457
457
|
b&&d.push("https://www.googleapis.com/auth/devstorage.read_write");a=d=d.concat(c);c=b=0;for(var e={};c<a.length;){var g=a[c++],f=u(g)?"o"+Ea(g):(typeof g).charAt(0)+g;Object.prototype.hasOwnProperty.call(e,f)||(e[f]=!0,a[b++]=g)}a.length=b;return d},vj=function(a,b,c){qj&&rj&&qj({client_id:String(rj),scope:sj.join(" "),plugin_name:"earthengine"},function(d){if(d.error=="immediate_failed"&&c)c();else if("window"in t)try{tj(function(){try{uj(a,b,d)}catch(e){b(e.toString())}})}catch(e){b(e.toString())}else uj(a,
|
|
458
|
-
b,d)})},jj=function(){wj&&Date.now()-wj>=0&&xj();return yj},xj=function(){wj=yj=null},bj=function(a,b,c,d){a!=null?mj=a:zj||(mj="https://earthengine.googleapis.com/api");b!=null?Aj=b:zj||(Aj="https://earthengine.googleapis.com");c!==void 0&&(Bj=c);aj=d!=null?d:aj||"earthengine-legacy";zj=!0},gj=function(a,b,c,d,e,g,f){bj();var l=Cj,m="application/x-www-form-urlencoded";e&&(m="application/json",d&&d.startsWith("multipart")&&(m=d,d="POST"));d=d||"POST";m={"Content-Type":m};var p="1.7.
|
|
458
|
+
b,d)})},jj=function(){wj&&Date.now()-wj>=0&&xj();return yj},xj=function(){wj=yj=null},bj=function(a,b,c,d){a!=null?mj=a:zj||(mj="https://earthengine.googleapis.com/api");b!=null?Aj=b:zj||(Aj="https://earthengine.googleapis.com");c!==void 0&&(Bj=c);aj=d!=null?d:aj||"earthengine-legacy";zj=!0},gj=function(a,b,c,d,e,g,f){bj();var l=Cj,m="application/x-www-form-urlencoded";e&&(m="application/json",d&&d.startsWith("multipart")&&(m=d,d="POST"));d=d||"POST";m={"Content-Type":m};var p="1.7.1";p==="1.7.1"&&
|
|
459
459
|
(p="latest");m["x-goog-api-client"]="ee-js/"+p;kj&&(m["User-Agent"]=kj);p=jj();if(p!=null)m.Authorization=p;else if(c&&qj&&rj)return vj(function(){Dj(l,function(){gj(a,b,c,d)})}),null;b=b?b.clone():new Xc;Ej!=null&&b.add("key",Ej);l&&(m["X-Earth-Engine-Computation-Profiling"]="1");aj&&aj!=="earthengine-legacy"&&(m["X-Goog-User-Project"]=aj);b=Fj(b,a);Bj!=null&&(m["X-XSRF-Token"]=Bj);Gj!=null&&(m["X-Earth-Engine-App-ID-Token"]=Gj);p=e||null;var v=b?b.toString():"";d==="POST"&&e===void 0?p=v:/^[\s\xa0]*$/.test(v)||
|
|
460
460
|
(a+=a.indexOf("?")!=-1?"&":"?",a+=v);e=a.startsWith("/")?mj+a:a;if(c)return Hj.push(Ij(e,c,d,p,m,g,f)),Jj.nf(),null;v=function(H,ea){this.setRequestHeader&&this.setRequestHeader(ea,H)};var z=0;for(g=g!=null?g:5;;){var B=new XMLHttpRequest;B.open(d,e,!1);Za(m,v,B);B.send(p);if(B.status!=429||z>g)break;z++}return Kj(B.status,function(H){try{return B.getResponseHeader(H)}catch(ea){return null}},B.responseText,l,void 0,e,d,f)},Ij=function(a,b,c,d,e,g,f){var l=0,m={url:a,method:c,content:d,headers:e},
|
|
461
461
|
p=Cj,v=g!=null?g:10;m.callback=function(z){z=z.target;if(z.getStatus()==429&&l<v)return l++,setTimeout(function(){Hj.push(m);Jj.nf()},Math.min(12E4,Math.pow(2,l)*1E3)),null;var B=Kj,H=z.getStatus(),ea=w(z.getResponseHeader,z);try{var W=z.u?z.u.responseText:""}catch(da){Hc(z.ha,"Can not get responseText: "+da.message),W=""}return B(H,ea,W,p,b,a,c,f)};return m},Dj=function(a,b){var c=Cj;try{Cj=a,b.call(void 0)}finally{Cj=c}},Kj=function(a,b,c,d,e,g,f,l){var m=d?b("X-Earth-Engine-Computation-Profile"):
|
|
@@ -676,7 +676,7 @@ var wp=function(a,b,c,d,e){var g=new XMLHttpRequest;g.open("GET",b,!0);g.respons
|
|
|
676
676
|
x("ee.FloatTileOverlay",vp);var yp=function(){this.ke=new Map};yp.prototype.clear=function(){this.ke.clear()};var zp=function(a,b){a.ke.has(b)||a.ke.set(b,{throttleCount:0,errorCount:0,tileLatencies:[]});return a.ke.get(b)};var Ap=function(a){I.call(this);this.Sb=a;this.L={}};y(Ap,I);var Bp=[];Ap.prototype.Va=function(a,b,c,d){Array.isArray(b)||(b&&(Bp[0]=b.toString()),b=Bp);for(var e=0;e<b.length;e++){var g=Ed(a,b[e],c||this.handleEvent,d||!1,this.Sb||this);if(!g)break;this.L[g.key]=g}return this};Ap.prototype.Xc=function(a,b,c,d){return Cp(this,a,b,c,d)};
|
|
677
677
|
var Cp=function(a,b,c,d,e,g){if(Array.isArray(c))for(var f=0;f<c.length;f++)Cp(a,b,c[f],d,e,g);else{b=Dd(b,c,d||a.handleEvent,e,g||a.Sb||a);if(!b)return a;a.L[b.key]=b}return a};Ap.prototype.te=function(a,b,c,d,e){if(Array.isArray(b))for(var g=0;g<b.length;g++)this.te(a,b[g],c,d,e);else c=c||this.handleEvent,d=u(d)?!!d.capture:!!d,e=e||this.Sb||this,c=Fd(c),d=!!d,b=td(a)?a.Nc(b,c,d,e):a?(a=Hd(a))?a.Nc(b,c,d,e):null:null,b&&(Md(b),delete this.L[b.key])};
|
|
678
678
|
Ap.prototype.gd=function(){Za(this.L,function(a,b){this.L.hasOwnProperty(b)&&Md(a)},this);this.L={}};Ap.prototype.K=function(){Ap.M.K.call(this);this.gd()};Ap.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};var Ep=function(a,b){a.name!==void 0?(this.name=a.name,this.code=gb[a.name]):(this.code=a=Wb(a.code),this.name=Dp(a));Qb.call(this,Ic("%s %s",this.name,b))};y(Ep,Qb);
|
|
679
|
-
var Dp=function(a){var b=fb(function(c){return a==c});if(b===void 0)throw Error("Invalid code: "+a);return b},Fp={},gb=(Fp.AbortError=3,Fp.EncodingError=5,Fp.InvalidModificationError=9,Fp.InvalidStateError=7,Fp.NotFoundError=1,Fp.NotReadableError=4,Fp.NoModificationAllowedError=6,Fp.PathExistsError=12,Fp.QuotaExceededError=10,Fp.SecurityError=2,Fp.SyntaxError=8,Fp.TypeMismatchError=11,Fp);
|
|
679
|
+
var Dp=function(a){var b=fb(function(c){return a==c});if(b===void 0)throw Error("Invalid code: "+a);return b},Fp={},gb=(Fp.AbortError=3,Fp.EncodingError=5,Fp.InvalidModificationError=9,Fp.InvalidStateError=7,Fp.NotFoundError=1,Fp.NotReadableError=4,Fp.NoModificationAllowedError=6,Fp.PathExistsError=12,Fp.QuotaExceededError=10,Fp.SecurityError=2,Fp.SyntaxError=8,Fp.TypeMismatchError=11,Fp);function Gp(a,b){nd.call(this,a.type,b);this.Ia=a}y(Gp,nd);var Hp=function(){J.call(this);this.ca=new FileReader;this.ca.onloadstart=w(this.oc,this);this.ca.onprogress=w(this.oc,this);this.ca.onload=w(this.oc,this);this.ca.onabort=w(this.oc,this);this.ca.onerror=w(this.oc,this);this.ca.onloadend=w(this.oc,this)};y(Hp,J);h=Hp.prototype;h.abort=function(){try{this.ca.abort()}catch(a){throw new Ep(a,"aborting read");}};h.Rb=function(){return this.ca.readyState};h.getError=function(){return this.ca.error&&new Ep(this.ca.error,"reading file")};
|
|
680
680
|
h.oc=function(a){this.dispatchEvent(new Gp(a,this))};h.K=function(){Hp.M.K.call(this);delete this.ca};h.readAsBinaryString=function(a){this.ca.readAsBinaryString(a)};h.readAsArrayBuffer=function(a){this.ca.readAsArrayBuffer(a)};h.readAsText=function(a,b){this.ca.readAsText(a,b)};var Ip=function(a,b){E(a);a=a.style;"opacity"in a?a.opacity=b:"MozOpacity"in a?a.MozOpacity=b:"filter"in a&&(a.filter=b===""?"":"alpha(opacity="+Number(b)*100+")")};var Jp=function(a,b){J.call(this);b=b||{};this.minZoom=b.minZoom||0;this.maxZoom=b.maxZoom||20;if(!window.google||!window.google.maps)throw Error("Google Maps API hasn't been initialized.");this.tileSize=b.tileSize||new google.maps.Size(256,256);this.name=b.name;this.opacity="opacity"in b?b.opacity:1;this.je=new yp(a.getUniqueId());this.xb=new be;this.wb=0;this.tg=a;this.hb=new Ap(this);this.radius=0};q(Jp,J);h=Jp.prototype;h.Me=function(a){return Ed(this,"tile-load",a)};h.Zf=function(a){Md(a)};
|
|
681
681
|
h.Oc=function(){return Kp(this,"throttled")+Kp(this,"loading")+Kp(this,"new")};h.setOpacity=function(a){this.opacity=a;this.xb.forEach(function(b){Ip(b.div,this.opacity)},this)};h.getStats=function(){return this.je};
|
|
682
682
|
h.getTile=function(a,b,c){var d=1<<b;if(b<this.minZoom||a.y<0||a.y>=d)return c.createElement("div");var e=a.x%d;e<0&&(e+=d);d=new google.maps.Point(e,a.y);a=[a.x,a.y,b,this.wb++].join("-");e=this.tg.getUniqueId();a=[a,e].join("-");b=this.bh(d,b,c,a);b.tileSize=this.tileSize;Ip(b.div,this.opacity);this.xb.set(a,b);Lp(this,b);this.dispatchEvent(new Mp(this.Oc()));this.tg.Gf(b,(new Date).getTime()/1E3);return b.div};
|
|
@@ -691,7 +691,7 @@ Wp.prototype.Mc=function(){var a=new Hp;a.Va("loadend",function(){this.Ad=a.ca.r
|
|
|
691
691
|
Xp.prototype.start=function(){var a=this.Sc;db(a).forEach(function(b){var c=a[b];if(c&&(delete a[b],!this.Qa)){if(this.Y){var d=this.Y;d=(d?new oi(ni(d)):Rb||(Rb=new oi)).Tk("IMG")}else d=new Image;c.ah&&(d.crossOrigin=c.ah);this.Sb.Va(d,Yp,this.ci);this.Rc[b]=d;d.id=b;d.src=c.src}},this)};
|
|
692
692
|
Xp.prototype.ci=function(a){var b=a.currentTarget;if(b){if(a.type=="readystatechange")if(b.readyState=="complete")a.type="load";else return;typeof b.naturalWidth=="undefined"&&(a.type=="load"?(b.naturalWidth=b.width,b.naturalHeight=b.height):(b.naturalWidth=0,b.naturalHeight=0));$p(this,b.id);this.dispatchEvent({type:a.type,target:b});!this.Qa&&hb(this.Rc)&&hb(this.Sc)&&!this.We&&(this.We=!0,this.dispatchEvent("complete"))}};Xp.prototype.K=function(){delete this.Sc;delete this.Rc;md(this.Sb);Xp.M.K.call(this)};var aq=function(a,b){Jp.call(this,a,b)};q(aq,Jp);aq.prototype.bh=function(a,b,c,d){return new bq(a,b,c,d)};x("ee_root.third_party.earthengine_api.javascript.layers.imageoverlay.ImageOverlay",aq);var bq=function(a,b,c,d){Rp.call(this,a,b,c,d);this.fe=cq;this.Gh=this.fa=this.Sd=null;this.ad=""};q(bq,Rp);
|
|
693
693
|
bq.prototype.Mc=function(){try{var a=Mb(this.Di);this.ad=Lb(a);var b=this.ad!==Kb.toString()?this.ad:this.Ba}catch(c){b=this.Ba}this.fa=new Xp;Zp(this.fa,this.div.id+"-image",b);this.Gh=Dd(this.fa,dq,function(c){c.type=="load"?(this.Sd=c.target,Rp.prototype.Mc.call(this)):this.jd()},void 0,this);this.fa.start()};bq.prototype.Ic=function(){Rp.prototype.Ic.call(this);this.fa&&(Md(this.Gh),md(this.fa))};bq.prototype.K=function(){Rp.prototype.K.call(this);this.ad&&URL.revokeObjectURL(this.ad)};
|
|
694
|
-
var cq=function(a){a.div.appendChild(a.Sd)},dq=["load","abort","error"];
|
|
694
|
+
var cq=function(a){a.div.appendChild(a.Sd)},dq=["load","abort","error"];function eq(a){for(var b=arguments[0],c=1;c<arguments.length;c++){var d=arguments[c];if(d.lastIndexOf("/",0)==0)b=d;else{var e;(e=b=="")||(e=b.length-1,e=e>=0&&b.indexOf("/",e)==e);b=e?b+d:b+("/"+d)}}return b};var fq=function(a,b,c,d){I.call(this);this.Rg=a;this.Yb=b;this.og=d||"";this.Yd=c};q(fq,Up);fq.prototype.Gf=function(a){if(a.zoom<=this.Yd)a.Ba=this.Nd(a.pb,a.zoom);else{var b=a.zoom-this.Yd,c=Math.pow(2,b);c=new google.maps.Point(Math.floor(a.pb.x/c),Math.floor(a.pb.y/c));a.Ba=this.Nd(c,a.zoom-b);a.fe=Ha(gq,this.Yd)}var d=w(a.jd,a);a.jd=w(function(e){e&&(e.includes("The specified key does not exist.")||e.includes("AccessDenied"))?a.setStatus("loaded"):d(e)},a);Sp(a)};
|
|
695
695
|
fq.prototype.getUniqueId=function(){return[this.Rg,this.Yb,this.Yd,this.og].join("-")};fq.prototype.Nd=function(a,b){a=eq("https://storage.googleapis.com",this.Rg,this.Yb,String(b),String(a.x),String(a.y));this.og&&(a+=this.og);return a};
|
|
696
696
|
var gq=function(a,b){if(!b.Sd)throw Error("Tile must have an image element to be rendered.");a=Math.pow(2,b.zoom-a);var c=b.tileSize.width,d=b.div.ownerDocument.createElement("canvas");d.setAttribute("width",c);d.setAttribute("height",c);b.div.appendChild(d);d=d.getContext("2d");d.imageSmoothingEnabled=!1;d.mozImageSmoothingEnabled=!1;d.webkitImageSmoothingEnabled=!1;d.drawImage(b.Sd,c/a*(b.pb.x%a),c/a*(b.pb.y%a),c/a,c/a,0,0,c,c)};x("ee.layers.CloudStorageTileSource",fq);function hq(){this.Ka=[];this.Pa=[]}h=hq.prototype;h.enqueue=function(a){this.Pa.push(a)};h.Kc=function(){this.Ka.length===0&&(this.Ka=this.Pa,this.Ka.reverse(),this.Pa=[]);return this.Ka.pop()};h.T=function(){return this.Ka.length+this.Pa.length};h.isEmpty=function(){return this.Ka.length===0&&this.Pa.length===0};h.clear=function(){this.Ka=[];this.Pa=[]};h.contains=function(a){return ic(this.Ka,a)||ic(this.Pa,a)};
|
|
697
697
|
h.remove=function(a){var b=this.Ka;var c=ac(b,a);c>=0?(kc(b,c),b=!0):b=!1;return b||jc(this.Pa,a)};h.ba=function(){for(var a=[],b=this.Ka.length-1;b>=0;--b)a.push(this.Ka[b]);b=this.Pa.length;for(var c=0;c<b;++c)a.push(this.Pa[c]);return a};function iq(a,b){I.call(this);this.Uh=a||0;this.Xd=b||10;if(this.Uh>this.Xd)throw Error("[goog.structs.Pool] Min can not be greater than max");this.Ra=new hq;this.sb=new Set;this.delay=0;this.Ef=null;this.td()}y(iq,I);iq.prototype.Pc=function(){var a=Date.now();if(!(this.Ef!=null&&a-this.Ef<this.delay)){for(var b;this.Ra.T()>0&&(b=this.Ra.Kc(),!this.Qf(b));)this.td();!b&&this.T()<this.Xd&&(b=this.Ze());b&&(this.Ef=a,this.sb.add(b));return b}};
|
|
@@ -708,18 +708,18 @@ h.Al=function(){if(!this.lc){var a=w(function(d){this.lc||(Zp(this.fa,this.ea,d)
|
|
|
708
708
|
h.Oi=null;h.Ia=null;h.li=null;var xq=["load","abort","error"],yq=function(){I.call(this);this.Da=!1};q(yq,I);yq.prototype.setActive=function(a){this.Da=a};yq.prototype.isActive=function(){return this.Da};var tq=function(a,b){oq.call(this,a,b)};q(tq,oq);tq.prototype.Ze=function(){return new yq};tq.prototype.Ed=function(a){a.dispose()};tq.prototype.Qf=function(a){return!a.Qa&&!a.isActive()};var zq=function(a,b,c,d,e){ie.call(this,a,b,c,d,e);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.name=d.name;this.vg=new ge;this.Rf=1;this.ta=e||null};q(zq,ie);h=zq.prototype;h.Me=function(a){return Ed(this,"tileevent",a)};h.Zf=function(a){Md(a)};
|
|
709
709
|
h.getTile=function(a,b,c){if(b<this.minZoom||a.y<0||a.y>=1<<b)return a=c.createElement("IMG"),a.style.width="0px",a.style.height="0px",a;b=je(this,a,b);a=[this.url,b].join("/")+"?token="+this.token;this.ta&&this.ta.isEnabled()&&(a+="&profiling=1");b=[b,this.wb,this.token].join("/");this.wb+=1;c=ji("DIV",{id:b});var d=(new Date).getTime()/1E3;this.yb.push(b);ol(uq).send(b,a,d,w(this.Zk,this,c,b));xp(this);return c};h.Oc=function(){return this.yb.length};
|
|
710
710
|
h.releaseTile=function(a){ol(uq).abort(a.id);if(a.firstElementChild!==void 0)var b=a.firstElementChild;else for(b=a.firstChild;b&&b.nodeType!=1;)b=b.nextSibling;this.vg.remove(b);a.id!==""&&(this.ug.remove(a.id),this.ta&&this.ta.rl(a.id))};h.setOpacity=function(a){this.Rf=a;var b=this.vg.Ca();Xd(b,function(c){Ip(c,a)})};
|
|
711
|
-
h.Zk=function(a,b,c,d){c.type=="error"?(jc(this.yb,b),this.ug.add(b),this.dispatchEvent(c)):(jc(this.yb,b),c.target&&c.type=="load"&&(c=c.target,this.vg.add(c),this.Rf!=1&&Ip(c,this.Rf),a.appendChild(c)),xp(this));this.ta&&d!==null&&this.ta.Nk(b,d)};x("ee.MapLayerOverlay",zq);zq.prototype.removeTileCallback=zq.prototype.Zf;zq.prototype.addTileCallback=zq.prototype.Me;zq.prototype.getTile=zq.prototype.getTile;zq.prototype.setOpacity=zq.prototype.setOpacity;zq.prototype.releaseTile=zq.prototype.releaseTile;(function(){var a={},b="ee.ApiFunction._call ee.ApiFunction.
|
|
712
|
-
c=[["name","var_args"],["name"
|
|
713
|
-
"collection
|
|
714
|
-
"
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
["
|
|
718
|
-
"
|
|
719
|
-
|
|
720
|
-
[
|
|
721
|
-
"
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
O.prototype.
|
|
725
|
-
|
|
711
|
+
h.Zk=function(a,b,c,d){c.type=="error"?(jc(this.yb,b),this.ug.add(b),this.dispatchEvent(c)):(jc(this.yb,b),c.target&&c.type=="load"&&(c=c.target,this.vg.add(c),this.Rf!=1&&Ip(c,this.Rf),a.appendChild(c)),xp(this));this.ta&&d!==null&&this.ta.Nk(b,d)};x("ee.MapLayerOverlay",zq);zq.prototype.removeTileCallback=zq.prototype.Zf;zq.prototype.addTileCallback=zq.prototype.Me;zq.prototype.getTile=zq.prototype.getTile;zq.prototype.setOpacity=zq.prototype.setOpacity;zq.prototype.releaseTile=zq.prototype.releaseTile;(function(){var a={},b="ee.ApiFunction._call ee.ApiFunction.lookup ee.ApiFunction._apply ee.batch.Export.table.toCloudStorage ee.batch.Export.table.toBigQuery ee.batch.Export.map.toCloudStorage ee.batch.Export.table.toAsset ee.batch.Export.videoMap.toCloudStorage ee.batch.Export.image.toDrive ee.batch.Export.classifier.toAsset ee.batch.Export.video.toDrive ee.batch.Export.image.toCloudStorage ee.batch.Export.table.toFeatureView ee.batch.Export.image.toAsset ee.batch.Export.table.toDrive ee.batch.Export.video.toCloudStorage ee.Collection.prototype.map ee.Collection.prototype.filterBounds ee.Collection.prototype.filterMetadata ee.Collection.prototype.filter ee.Collection.prototype.sort ee.Collection.prototype.filterDate ee.Collection.prototype.iterate ee.Collection.prototype.limit ee.ComputedObject.prototype.aside ee.ComputedObject.prototype.serialize ee.ComputedObject.prototype.evaluate ee.ComputedObject.prototype.getInfo ee.data.authenticateViaPopup ee.data.makeDownloadUrl ee.data.getTableDownloadId ee.data.setAssetProperties ee.data.listImages ee.data.makeTableDownloadUrl ee.data.authenticateViaPrivateKey ee.data.listBuckets ee.data.getAssetRootQuota ee.data.setAssetAcl ee.data.newTaskId ee.data.createFolder ee.data.getAssetRoots ee.data.getWorkloadTag ee.data.createAssetHome ee.data.getMapId ee.data.setWorkloadTag ee.data.startIngestion ee.data.setDefaultWorkloadTag ee.data.createAsset ee.data.getTileUrl ee.data.getTaskStatus ee.data.resetWorkloadTag ee.data.getTaskList ee.data.getFeatureViewTilesKey ee.data.listOperations ee.data.startTableIngestion ee.data.listFeatures ee.data.copyAsset ee.data.cancelOperation ee.data.getTaskListWithLimit ee.data.getAsset ee.data.renameAsset ee.data.computeValue ee.data.deleteAsset ee.data.getAssetAcl ee.data.getVideoThumbId ee.data.getOperation ee.data.getThumbId ee.data.getInfo ee.data.authenticateViaOauth ee.data.cancelTask ee.data.startProcessing ee.data.getFilmstripThumbId ee.data.getList ee.data.updateTask ee.data.getDownloadId ee.data.authenticate ee.data.updateAsset ee.data.makeThumbUrl ee.data.listAssets ee.Date ee.Deserializer.decodeCloudApi ee.Deserializer.fromCloudApiJSON ee.Deserializer.fromJSON ee.Deserializer.decode ee.Dictionary ee.InitState ee.call ee.initialize ee.apply ee.TILE_SIZE ee.Algorithms ee.reset ee.Element.prototype.set ee.Encodable.SourceFrame ee.Feature.prototype.getMap ee.Feature.prototype.getInfo ee.Feature ee.Feature.prototype.getMapId ee.FeatureCollection ee.FeatureCollection.prototype.getInfo ee.FeatureCollection.prototype.getMap ee.FeatureCollection.prototype.getDownloadURL ee.FeatureCollection.prototype.getMapId ee.FeatureCollection.prototype.select ee.Filter.metadata ee.Filter.gt ee.Filter.neq ee.Filter.inList ee.Filter.lte ee.Filter.lt ee.Filter.and ee.Filter.prototype.not ee.Filter.eq ee.Filter.bounds ee.Filter.or ee.Filter.date ee.Filter.gte ee.Filter ee.Function.prototype.apply ee.Function.prototype.call ee.Geometry.MultiLineString ee.Geometry ee.Geometry.prototype.toGeoJSON ee.Geometry.LineString ee.Geometry.Rectangle ee.Geometry.Point ee.Geometry.prototype.toGeoJSONString ee.Geometry.Polygon ee.Geometry.MultiPolygon ee.Geometry.BBox ee.Geometry.LinearRing ee.Geometry.MultiPoint ee.Geometry.prototype.serialize ee.Image ee.Image.prototype.getMap ee.Image.prototype.getThumbId ee.Image.prototype.getDownloadURL ee.Image.cat ee.Image.prototype.select ee.Image.prototype.getMapId ee.Image.prototype.clip ee.Image.rgb ee.Image.prototype.expression ee.Image.prototype.rename ee.Image.prototype.getInfo ee.Image.prototype.getThumbURL ee.ImageCollection ee.ImageCollection.prototype.getFilmstripThumbURL ee.ImageCollection.prototype.getVideoThumbURL ee.ImageCollection.prototype.linkCollection ee.ImageCollection.prototype.getInfo ee.ImageCollection.prototype.getMapId ee.ImageCollection.prototype.select ee.ImageCollection.prototype.first ee.ImageCollection.prototype.getMap ee.List ee.Number ee.Serializer.toReadableCloudApiJSON ee.Serializer.encodeCloudApi ee.Serializer.encode ee.Serializer.toJSON ee.Serializer.encodeCloudApiPretty ee.Serializer.toReadableJSON ee.Serializer.toCloudApiJSON ee.String ee.Terrain".split(" "),
|
|
712
|
+
c=[["name","var_args"],["name"],["name","namedArgs"],"collection opt_description opt_bucket opt_fileNamePrefix opt_fileFormat opt_selectors opt_maxVertices opt_priority".split(" "),"collection opt_description opt_table opt_overwrite opt_append opt_selectors opt_maxVertices opt_priority".split(" "),"image opt_description opt_bucket opt_fileFormat opt_path opt_writePublicTiles opt_scale opt_maxZoom opt_minZoom opt_region opt_skipEmptyTiles opt_mapsApiKey opt_bucketCorsUris opt_priority".split(" "),
|
|
713
|
+
["collection","opt_description","opt_assetId","opt_maxVertices","opt_priority"],"collection opt_description opt_bucket opt_fileNamePrefix opt_framesPerSecond opt_writePublicTiles opt_minZoom opt_maxZoom opt_scale opt_region opt_skipEmptyTiles opt_minTimeMachineZoomSubset opt_maxTimeMachineZoomSubset opt_tileWidth opt_tileHeight opt_tileStride opt_videoFormat opt_version opt_mapsApiKey opt_bucketCorsUris opt_priority".split(" "),"image opt_description opt_folder opt_fileNamePrefix opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize opt_fileDimensions opt_skipEmptyTiles opt_fileFormat opt_formatOptions opt_priority".split(" "),
|
|
714
|
+
["classifier","opt_description","opt_assetId","opt_priority"],"collection opt_description opt_folder opt_fileNamePrefix opt_framesPerSecond opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_maxFrames opt_priority".split(" "),"image opt_description opt_bucket opt_fileNamePrefix opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize opt_fileDimensions opt_skipEmptyTiles opt_fileFormat opt_formatOptions opt_priority".split(" "),"collection opt_description opt_assetId opt_maxFeaturesPerTile opt_thinningStrategy opt_thinningRanking opt_zOrderRanking opt_priority".split(" "),
|
|
715
|
+
"image opt_description opt_assetId opt_pyramidingPolicy opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize opt_priority".split(" "),"collection opt_description opt_folder opt_fileNamePrefix opt_fileFormat opt_selectors opt_maxVertices opt_priority".split(" "),"collection opt_description opt_bucket opt_fileNamePrefix opt_framesPerSecond opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_maxFrames opt_priority".split(" "),["algorithm",
|
|
716
|
+
"opt_dropNulls"],["geometry"],["name","operator","value"],["filter"],["property","opt_ascending"],["start","opt_end"],["algorithm","opt_first"],["max","opt_property","opt_ascending"],["func","var_args"],["legacy"],["callback"],["opt_callback"],["opt_success","opt_error"],["id"],["params","opt_callback"],["assetId","properties","opt_callback"],["parent","opt_params","opt_callback"],["id"],["privateKey","opt_success","opt_error","opt_extraScopes","opt_suppressDefaultScopes"],["project","opt_callback"],
|
|
717
|
+
["rootId","opt_callback"],["assetId","aclUpdate","opt_callback"],["opt_count","opt_callback"],["path","opt_force","opt_callback"],["opt_callback"],[],["requestedId","opt_callback"],["params","opt_callback"],["tag"],["taskId","request","opt_callback"],["tag"],["value","opt_path","opt_force","opt_properties","opt_callback"],["id","x","y","z"],["taskId","opt_callback"],["opt_resetDefault"],["opt_callback"],["params","opt_callback"],["opt_limit","opt_callback"],["taskId","request","opt_callback"],["asset",
|
|
718
|
+
"params","opt_callback"],["sourceId","destinationId","opt_overwrite","opt_callback"],["operationName","opt_callback"],["opt_limit","opt_callback"],["id","opt_callback"],["sourceId","destinationId","opt_callback"],["obj","opt_callback"],["assetId","opt_callback"],["assetId","opt_callback"],["params","opt_callback"],["operationName","opt_callback"],["params","opt_callback"],["id","opt_callback"],"clientId success opt_error opt_extraScopes opt_onImmediateFailed opt_suppressDefaultScopes".split(" "),
|
|
719
|
+
["taskId","opt_callback"],["taskId","params","opt_callback"],["params","opt_callback"],["params","opt_callback"],["taskId","action","opt_callback"],["params","opt_callback"],["clientId","success","opt_error","opt_extraScopes","opt_onImmediateFailed"],["assetId","asset","updateFields","opt_callback"],["id"],["parent","opt_params","opt_callback"],["date","opt_tz"],["json"],["json"],["json"],["json"],["opt_dict"],[],["func","var_args"],"opt_baseurl opt_tileurl opt_successCallback opt_errorCallback opt_xsrfToken opt_project".split(" "),
|
|
720
|
+
["func","namedArgs"],[],[],[],["var_args"],[],["opt_visParams","opt_callback"],["opt_callback"],["geometry","opt_properties"],["opt_visParams","opt_callback"],["args","opt_column"],["opt_callback"],["opt_visParams","opt_callback"],["opt_format","opt_selectors","opt_filename","opt_callback"],["opt_visParams","opt_callback"],["propertySelectors","opt_newProperties","opt_retainGeometry"],["name","operator","value"],["name","value"],["name","value"],["opt_leftField","opt_rightValue","opt_rightField",
|
|
721
|
+
"opt_leftValue"],["name","value"],["name","value"],["var_args"],[],["name","value"],["geometry","opt_errorMargin"],["var_args"],["start","opt_end"],["name","value"],["opt_filter"],["namedArgs"],["var_args"],["coords","opt_proj","opt_geodesic","opt_maxError"],["geoJson","opt_proj","opt_geodesic","opt_evenOdd"],[],["coords","opt_proj","opt_geodesic","opt_maxError"],["coords","opt_proj","opt_geodesic","opt_evenOdd"],["coords","opt_proj"],[],["coords","opt_proj","opt_geodesic","opt_maxError","opt_evenOdd"],
|
|
722
|
+
["coords","opt_proj","opt_geodesic","opt_maxError","opt_evenOdd"],["west","south","east","north"],["coords","opt_proj","opt_geodesic","opt_maxError"],["coords","opt_proj"],["legacy"],["opt_args"],["opt_visParams","opt_callback"],["params","opt_callback"],["params","opt_callback"],["var_args"],["var_args"],["opt_visParams","opt_callback"],["geometry"],["r","g","b"],["expression","opt_map"],["var_args"],["opt_callback"],["params","opt_callback"],["args"],["params","opt_callback"],["params","opt_callback"],
|
|
723
|
+
["imageCollection","opt_linkedBands","opt_linkedProperties","opt_matchPropertyName"],["opt_callback"],["opt_visParams","opt_callback"],["selectors","opt_names"],[],["opt_visParams","opt_callback"],["list"],["number"],["obj"],["obj"],["obj","opt_isCompound"],["obj"],["obj"],["obj"],["obj"],["string"],[]];[Q,Rm,Sm,vo,zo,uo,xo,Co,to,Do,Bo,so,yo,qo,wo,Ao,V.prototype.map,V.prototype.wh,V.prototype.mf,V.prototype.filter,V.prototype.sort,V.prototype.lf,V.prototype.Lh,V.prototype.limit,O.prototype.Fg,O.prototype.ua,
|
|
724
|
+
O.prototype.evaluate,O.prototype.W,pl,Il,Jl,ym,mm,Kl,sl,nm,zm,xm,Ll,rm,om,vl,pm,xl,Bm,fm,Cm,qm,yl,Ol,Dm,Ql,zl,Rl,hm,Al,tm,Sl,Pl,im,sm,Bl,um,vm,Dl,Tl,Cl,im,ql,Vl,bm,El,km,Ul,Hl,rl,wm,Fl,lm,Uo,Zo,cp,Yo,Xo,dp,qp,rp,mp,sp,256,op,pp,S.prototype.set,Nj,X.prototype.getMap,X.prototype.W,X,X.prototype.S,Y,Y.prototype.W,Y.prototype.getMap,Y.prototype.qb,Y.prototype.S,Y.prototype.select,Qn,Jn,Gn,On,Kn,Hn,Ln,U.prototype.uc,Fn,Pn,Mn,Nn,In,U,Mm.prototype.apply,Mm.prototype.call,vn,T,T.prototype.pe,tn,pn,ln,T.prototype.xg,
|
|
725
|
+
wn,xn,qn,un,on,T.prototype.ua,N,N.prototype.getMap,N.prototype.Md,N.prototype.qb,eo,N.prototype.select,N.prototype.S,N.prototype.clip,co,N.prototype.l,N.prototype.ri,N.prototype.W,N.prototype.uf,Z,Z.prototype.tf,Z.prototype.vf,Z.prototype.Ff,Z.prototype.W,Z.prototype.S,Z.prototype.select,Z.prototype.first,Z.prototype.getMap,fo,Ko,Vk,Pk,Jk,Kk,Tk,Mk,Uk,No,gp].forEach(function(d,e){d&&(a[d.toString()]={name:b[e],paramNames:c[e]})});t.EXPORTED_FN_INFO=a})();}).call(this);
|