@google/earthengine 1.6.0 → 1.6.2

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.
@@ -28,9 +28,9 @@ var ua=function(a,b,c){if(a==null)throw new TypeError("The 'this' value for Stri
28
28
  n("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=ua(this,b,"endsWith");b+="";c===void 0&&(c=d.length);c=Math.max(0,Math.min(c|0,d.length));for(var e=b.length;e>0&&c>0;)if(d[--c]!=b[--e])return!1;return e<=0}});n("String.prototype.repeat",function(a){return a?a:function(b){var c=ua(this,null,"repeat");if(b<0||b>1342177279)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});
29
29
  n("Array.prototype.values",function(a){return a?a:function(){return ta(this,function(b,c){return c})}});n("Array.from",function(a){return a?a:function(b,c,d){c=c!=null?c:function(l){return l};var e=[],g=typeof Symbol!="undefined"&&Symbol.iterator&&b[Symbol.iterator];if(typeof g=="function"){b=g.call(b);for(var f=0;!(g=b.next()).done;)e.push(c.call(d,g.value,f++))}else for(g=b.length,f=0;f<g;f++)e.push(c.call(d,b[f],f));return e}});
30
30
  n("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)qa(b,d)&&c.push([d,b[d]]);return c}});n("Object.is",function(a){return a?a:function(b,c){return b===c?b!==0||1/b===1/c:b!==b&&c!==c}});n("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(c<0&&(c=Math.max(c+e,0));c<e;c++){var g=d[c];if(g===b||Object.is(g,b))return!0}return!1}});
31
- n("String.prototype.includes",function(a){return a?a:function(b,c){return ua(this,b,"includes").indexOf(b,c||0)!==-1}});n("Array.prototype.find",function(a){return a?a:function(b,c){a:{var d=this;d instanceof String&&(d=String(d));for(var e=d.length,g=0;g<e;g++){var f=d[g];if(b.call(c,f,g,d)){b=f;break a}}b=void 0}return b}});
32
- n("Set.prototype.difference",function(a){return a?a:function(b){va(this);wa(b);var c=xa(this,b);b=new Set(this);var d=c.lg;c=c.Df;for(var e=d.next();!e.done;)c.has(e.value)&&b.delete(e.value),e=d.next();return b}});n("Set.prototype.intersection",function(a){return a?a:function(b){va(this);wa(b);var c=new Set,d=xa(this,b);b=d.lg;d=d.Df;for(var e=b.next();!e.done;)d.has(e.value)&&c.add(e.value),e=b.next();return c}});
33
- n("Set.prototype.isSubsetOf",function(a){return a?a:function(b){va(this);wa(b);if(this.size>b.size)return!1;for(var c=this.keys(),d=c.next();!d.done;){if(!b.has(d.value))return!1;d=c.next()}return!0}});
31
+ n("String.prototype.includes",function(a){return a?a:function(b,c){return ua(this,b,"includes").indexOf(b,c||0)!==-1}});n("Promise.prototype.finally",function(a){return a?a:function(b){return this.then(function(c){return Promise.resolve(b()).then(function(){return c})},function(c){return Promise.resolve(b()).then(function(){throw c;})})}});
32
+ n("Array.prototype.find",function(a){return a?a:function(b,c){a:{var d=this;d instanceof String&&(d=String(d));for(var e=d.length,g=0;g<e;g++){var f=d[g];if(b.call(c,f,g,d)){b=f;break a}}b=void 0}return b}});n("Set.prototype.difference",function(a){return a?a:function(b){va(this);wa(b);var c=xa(this,b);b=new Set(this);var d=c.lg;c=c.Df;for(var e=d.next();!e.done;)c.has(e.value)&&b.delete(e.value),e=d.next();return b}});
33
+ n("Set.prototype.intersection",function(a){return a?a:function(b){va(this);wa(b);var c=new Set,d=xa(this,b);b=d.lg;d=d.Df;for(var e=b.next();!e.done;)d.has(e.value)&&c.add(e.value),e=b.next();return c}});n("Set.prototype.isSubsetOf",function(a){return a?a:function(b){va(this);wa(b);if(this.size>b.size)return!1;for(var c=this.keys(),d=c.next();!d.done;){if(!b.has(d.value))return!1;d=c.next()}return!0}});
34
34
  var wa=function(a){if(typeof a!=="object"||a===null||typeof a.size!=="number"||a.size<0||typeof a.keys!=="function"||typeof a.has!=="function")throw new TypeError("Argument must be set-like");},xa=function(a,b){if(a.size<=b.size)a={lg:a.keys(),Df:b};else{b=b.keys();if(typeof b!=="object"||b===null||typeof b.next!=="function")throw new TypeError("Invalid iterator.");a={lg:b,Df:a}}return a},va=function(a){if(!(a instanceof Set))throw new TypeError("Method must be called on an instance of Set.");};
35
35
  n("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)qa(b,d)&&c.push(b[d]);return c}});n("String.prototype.padStart",function(a){return a?a:function(b,c){var d=ua(this,null,"padStart");b-=d.length;c=c!==void 0?String(c):" ";return(b>0&&c?c.repeat(Math.ceil(b/c.length)).substring(0,b):"")+d}});/*
36
36
 
@@ -75,7 +75,7 @@ function(a){a.O||(a.O=new Map,a.Z=0,a.sa&&Qc(a.sa,function(b,c){a.add(decodeURIC
75
75
  h.isEmpty=function(){fd(this);return this.Z==0};h.Nb=function(a){fd(this);a=gd(this,a);return this.O.has(a)};h.Jc=function(a){var b=this.ba();return ic(b,a)};h.forEach=function(a,b){fd(this);this.O.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};h.rb=function(){fd(this);for(var a=Array.from(this.O.values()),b=Array.from(this.O.keys()),c=[],d=0;d<b.length;d++)for(var e=a[d],g=0;g<e.length;g++)c.push(b[d]);return c};
76
76
  h.ba=function(a){fd(this);var b=[];if(typeof a==="string")this.Nb(a)&&(b=b.concat(this.O.get(gd(this,a))));else{a=Array.from(this.O.values());for(var c=0;c<a.length;c++)b=b.concat(a[c])}return b};h.set=function(a,b){fd(this);this.sa=null;a=gd(this,a);this.Nb(a)&&(this.Z=Wb(this.Z)-this.O.get(a).length);this.O.set(a,[b]);this.Z=Wb(this.Z)+1;return this};h.get=function(a,b){if(!a)return b;a=this.ba(a);return a.length>0?String(a[0]):b};
77
77
  h.setValues=function(a,b){this.remove(a);b.length>0&&(this.sa=null,this.O.set(gd(this,a),lc(b)),this.Z=Wb(this.Z)+b.length)};h.toString=function(){if(this.sa)return this.sa;if(!this.O)return"";for(var a=[],b=Array.from(this.O.keys()),c=0;c<b.length;c++){var d=b[c],e=encodeURIComponent(String(d));d=this.ba(d);for(var g=0;g<d.length;g++){var f=e;d[g]!==""&&(f+="="+encodeURIComponent(String(d[g])));a.push(f)}}return this.sa=a.join("&")};
78
- h.clone=function(){var a=new Xc;a.sa=this.sa;this.O&&(a.O=new Map(this.O),a.Z=this.Z);return a};var gd=function(a,b){b=String(b);a.ya&&(b=b.toLowerCase());return b};Xc.prototype.fg=function(a){a&&!this.ya&&(fd(this),this.sa=null,this.O.forEach(function(b,c){var d=c.toLowerCase();c!=d&&(this.remove(c),this.setValues(d,b))},this));this.ya=a};Xc.prototype.extend=function(a){for(var b=0;b<arguments.length;b++)Nc(arguments[b],function(c,d){this.add(d,c)},this)};function hd(a){if(a.A!=null){var b={},c;for(c in a.A)a.A[c]!==void 0&&(b[c]=a.A[c]);a.A=b}}function F(a,b){var c=id;b=b===void 0?{}:b;c=r(Object.entries(c));for(var d=c.next();!d.done;d=c.next()){var e=r(d.value);d=e.next().value;e=e.next().value;d in a&&(b[e]=a[d])}return b};var jd=function(a,b){this.N=a;this.cl=b===void 0?null:b};q(jd,Xa);var kd=function(a,b,c){var d=Ya(a.cl,b);if(d==null)return c;d.Ol();return c.then(function(e){d.Ql(e);return e},function(e){d.Pl(e);throw e;})},G=function(a,b){var c=b.H||void 0,d=a.N,e=d.send,g=b.body instanceof A?Qa(b.body,Ma,Na,Oa):b.body;return kd(a,b,e.call(d,{path:b.path,C:b.C,F:b.F,body:g,A:b.A,Fi:b.Fi&&b.Fi},c))};var ld=function(){};ld.prototype.send=function(a,b){hd(a);return(void 0).then(function(c){return b?Pa(b,c):c})};function md(a){a&&typeof a.dispose=="function"&&a.dispose()};var I=function(){this.Qa=this.Qa;this.ae=this.ae};I.prototype.Qa=!1;I.prototype.dispose=function(){this.Qa||(this.Qa=!0,this.K())};I.prototype[Symbol.dispose]=function(){this.dispose()};I.prototype.K=function(){if(this.ae)for(;this.ae.length;)this.ae.shift()()};var nd=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.fd=!1};nd.prototype.stopPropagation=function(){this.fd=!0};nd.prototype.preventDefault=function(){this.defaultPrevented=!0};var od=function(){if(!t.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});try{var c=function(){};t.addEventListener("test",c,b);t.removeEventListener("test",c,b)}catch(d){}return a}();function pd(){var a=t.navigator;return a&&(a=a.userAgent)?a:""};var qd=pd().toLowerCase().indexOf("webkit")!=-1&&pd().indexOf("Edge")==-1;var rd=function(a,b){nd.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.timeStamp=0;this.Ia=null;a&&this.init(a,b)};y(rd,nd);
78
+ h.clone=function(){var a=new Xc;a.sa=this.sa;this.O&&(a.O=new Map(this.O),a.Z=this.Z);return a};var gd=function(a,b){b=String(b);a.ya&&(b=b.toLowerCase());return b};Xc.prototype.fg=function(a){a&&!this.ya&&(fd(this),this.sa=null,this.O.forEach(function(b,c){var d=c.toLowerCase();c!=d&&(this.remove(c),this.setValues(d,b))},this));this.ya=a};Xc.prototype.extend=function(a){for(var b=0;b<arguments.length;b++)Nc(arguments[b],function(c,d){this.add(d,c)},this)};function hd(a){if(a.A!=null){var b={},c;for(c in a.A)a.A[c]!==void 0&&(b[c]=a.A[c]);a.A=b}}function F(a,b){var c=id;b=b===void 0?{}:b;c=r(Object.entries(c));for(var d=c.next();!d.done;d=c.next()){var e=r(d.value);d=e.next().value;e=e.next().value;d in a&&(b[e]=a[d])}return b};var jd=function(a,b){this.N=a;this.cl=b===void 0?null:b};q(jd,Xa);var kd=function(a,b,c){var d=Ya(a.cl,b);if(d==null)return c;d.Ol();return c.then(function(e){d.Rl(e);return e},function(e){d.Pl(e);throw e;}).finally(function(){var e;(e=d.Ql)==null||e.call(d)})},G=function(a,b){var c=b.H||void 0,d=a.N,e=d.send,g=b.body instanceof A?Qa(b.body,Ma,Na,Oa):b.body;return kd(a,b,e.call(d,{path:b.path,C:b.C,F:b.F,body:g,A:b.A,Fi:b.Fi&&b.Fi},c))};var ld=function(){};ld.prototype.send=function(a,b){hd(a);return(void 0).then(function(c){return b?Pa(b,c):c})};function md(a){a&&typeof a.dispose=="function"&&a.dispose()};var I=function(){this.Qa=this.Qa;this.ae=this.ae};I.prototype.Qa=!1;I.prototype.dispose=function(){this.Qa||(this.Qa=!0,this.K())};I.prototype[Symbol.dispose]=function(){this.dispose()};I.prototype.K=function(){if(this.ae)for(;this.ae.length;)this.ae.shift()()};var nd=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.fd=!1};nd.prototype.stopPropagation=function(){this.fd=!0};nd.prototype.preventDefault=function(){this.defaultPrevented=!0};var od=function(){if(!t.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});try{var c=function(){};t.addEventListener("test",c,b);t.removeEventListener("test",c,b)}catch(d){}return a}();function pd(){var a=t.navigator;return a&&(a=a.userAgent)?a:""};var qd=pd().toLowerCase().indexOf("webkit")!=-1&&pd().indexOf("Edge")==-1;var rd=function(a,b){nd.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.timeStamp=0;this.Ia=null;a&&this.init(a,b)};y(rd,nd);
79
79
  rd.prototype.init=function(a,b){var c=this.type=a.type,d=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=b;b=a.relatedTarget;b||(c=="mouseover"?b=a.fromElement:c=="mouseout"&&(b=a.toElement));this.relatedTarget=b;d?(this.clientX=d.clientX!==void 0?d.clientX:d.pageX,this.clientY=d.clientY!==void 0?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0):(this.offsetX=qd||a.offsetX!==void 0?a.offsetX:a.layerX,this.offsetY=
80
80
  qd||a.offsetY!==void 0?a.offsetY:a.layerY,this.clientX=a.clientX!==void 0?a.clientX:a.pageX,this.clientY=a.clientY!==void 0?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.key=a.key||"";this.charCode=a.charCode||(c=="keypress"?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=a.pointerId||0;this.pointerType=a.pointerType;this.state=a.state;this.timeStamp=
81
81
  a.timeStamp;this.Ia=a;a.defaultPrevented&&rd.M.preventDefault.call(this)};rd.prototype.stopPropagation=function(){rd.M.stopPropagation.call(this);this.Ia.stopPropagation?this.Ia.stopPropagation():this.Ia.cancelBubble=!0};rd.prototype.preventDefault=function(){rd.M.preventDefault.call(this);var a=this.Ia;a.preventDefault?a.preventDefault():a.returnValue=!1};var sd="closure_listenable_"+(Math.random()*1E6|0),td=function(a){return!(!a||!a[sd])};var ud=0;var vd=function(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.hb=e;this.key=++ud;this.hd=this.Bd=!1},wd=function(a){a.hd=!0;a.listener=null;a.proxy=null;a.src=null;a.hb=null};function xd(a){this.src=a;this.ga={};this.od=0}xd.prototype.add=function(a,b,c,d,e){var g=a.toString();a=this.ga[g];a||(a=this.ga[g]=[],this.od++);var f=yd(a,b,d,e);f>-1?(b=a[f],c||(b.Bd=!1)):(b=new vd(b,this.src,g,!!d,e),b.Bd=c,a.push(b));return b};xd.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.ga))return!1;var e=this.ga[a];b=yd(e,b,c,d);return b>-1?(wd(e[b]),kc(e,b),e.length==0&&(delete this.ga[a],this.od--),!0):!1};
@@ -425,70 +425,70 @@ h.removeNode=mi;h.contains=function(a,b){if(!a||!b)return!1;if(a.contains&&b.nod
425
425
  Copyright The Closure Library Authors.
426
426
  SPDX-License-Identifier: MIT
427
427
  */
428
- var qi=function(a){var b=pi;this.ie=[];this.bi=b;this.mh=a||null;this.Qc=this.rc=!1;this.ia=void 0;this.ig=this.Pg=this.Qe=!1;this.se=0;this.Y=null;this.Re=0};qi.prototype.cancel=function(a){if(this.rc)this.ia instanceof qi&&this.ia.cancel();else{if(this.Y){var b=this.Y;delete this.Y;a?b.cancel(a):(b.Re--,b.Re<=0&&b.cancel())}this.bi?this.bi.call(this.mh,this):this.ig=!0;this.rc||ri(this,new si(this))}};qi.prototype.Yg=function(a,b){this.Qe=!1;ti(this,a,b)};
429
- var ti=function(a,b,c){a.rc=!0;a.ia=c;a.Qc=!b;ui(a)},wi=function(a){if(a.rc){if(!a.ig)throw new vi(a);a.ig=!1}};qi.prototype.callback=function(a){wi(this);xi(a);ti(this,!0,a)};var ri=function(a,b){wi(a);xi(b);ti(a,!1,b)},xi=function(a){E(!(a instanceof qi),"An execution sequence may not be initiated with a blocking Deferred.")},Ai=function(a){var b=yi();zi(b,a,null)};qi.prototype.finally=function(a){var b=this;return new Promise(function(c,d){zi(b,function(e){a();c(e)},function(e){a();d(e)})})};
430
- var zi=function(a,b,c,d){E(!a.Pg,"Blocking Deferreds can not be re-used");var e=a.rc;e||(b===c?b=c=Ia(b):(b=Ia(b),c=Ia(c)));a.ie.push([b,c,d]);e&&ui(a)};qi.prototype.then=function(a,b,c){var d,e,g=new Oh(function(f,l){e=f;d=l});zi(this,e,function(f){f instanceof si?g.cancel():d(f);return Bi},this);return g.then(a,b,c)};qi.prototype.$goog_Thenable=!0;
431
- var Ci=function(a){return ec(a.ie,function(b){return typeof b[1]==="function"})},Bi={},ui=function(a){if(a.se&&a.rc&&Ci(a)){var b=a.se,c=Di[b];c&&(t.clearTimeout(c.ea),delete Di[b]);a.se=0}a.Y&&(a.Y.Re--,delete a.Y);b=a.ia;for(var d=c=!1;a.ie.length&&!a.Qe;){var e=a.ie.shift(),g=e[0],f=e[1];e=e[2];if(g=a.Qc?f:g)try{var l=g.call(e||a.mh,b);l===Bi&&(l=void 0);l!==void 0&&(a.Qc=a.Qc&&(l==b||l instanceof Error),a.ia=b=l);if(Lh(b)||typeof t.Promise==="function"&&b instanceof t.Promise)d=!0,a.Qe=!0}catch(m){b=
432
- m,a.Qc=!0,Ci(a)||(c=!0)}}a.ia=b;d&&(l=w(a.Yg,a,!0),d=w(a.Yg,a,!1),b instanceof qi?(zi(b,l,d),b.Pg=!0):b.then(l,d));c&&(b=new Ei(b),Di[b.ea]=b,a.se=b.ea)},vi=function(){Qb.call(this)};y(vi,Qb);vi.prototype.message="Deferred has already fired";vi.prototype.name="AlreadyCalledError";var si=function(){Qb.call(this)};y(si,Qb);si.prototype.message="Deferred was canceled";si.prototype.name="CanceledError";var Ei=function(a){this.ea=t.setTimeout(w(this.Cl,this),0);this.Id=a};
433
- Ei.prototype.Cl=function(){E(Di[this.ea],"Cannot throw an error that is not scheduled.");delete Di[this.ea];throw this.Id;};var Di={};var yi=function(){var a=fi(Fi),b={},c=b.document||document,d=ub(a).toString(),e=(new oi(c)).createElement("SCRIPT"),g={xi:e,oe:void 0},f=new qi(g),l=null,m=b.timeout!=null?b.timeout:5E3;m>0&&(l=window.setTimeout(function(){Gi(e,!0);ri(f,new Hi(1,"Timeout reached for loading script "+d))},m),g.oe=l);e.onload=e.onreadystatechange=function(){e.readyState&&e.readyState!="loaded"&&e.readyState!="complete"||(Gi(e,b.Ll||!1,l),f.callback(null))};e.onerror=function(){Gi(e,!0,l);ri(f,new Hi(0,"Error while loading script "+
434
- d))};g=b.attributes||{};mb(g,{type:"text/javascript",charset:"UTF-8"});hi(e,g);Pb(e,a);Ii(c).appendChild(e);return f},Ii=function(a){var b;return(b=(a||document).getElementsByTagName("HEAD"))&&b.length!==0?b[0]:a.documentElement},pi=function(){if(this&&this.xi){var a=this.xi;a&&a.tagName=="SCRIPT"&&Gi(a,!0,this.oe)}},Gi=function(a,b,c){c!=null&&t.clearTimeout(c);a.onload=function(){};a.onerror=function(){};a.onreadystatechange=function(){};b&&window.setTimeout(function(){mi(a)},0)},Hi=function(a,
435
- b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);Qb.call(this,c);this.code=a};y(Hi,Qb);var Ji=function(){this.ge=void 0};Ji.prototype.ua=function(a){var b=[];Ki(this,a,b);return b.join("")};
436
- var Ki=function(a,b,c){if(b==null)c.push("null");else{if(typeof b=="object"){if(Array.isArray(b)){var d=b;b=d.length;c.push("[");for(var e="",g=0;g<b;g++)c.push(e),e=d[g],Ki(a,a.ge?a.ge.call(d,String(g),e):e,c),e=",";c.push("]");return}if(b instanceof String||b instanceof Number||b instanceof Boolean)b=b.valueOf();else{c.push("{");g="";for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(e=b[d],typeof e!="function"&&(c.push(g),Li(d,c),c.push(":"),Ki(a,a.ge?a.ge.call(b,d,e):e,c),g=","));c.push("}");
437
- return}}switch(typeof b){case "string":Li(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);}}},Mi={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},Ni=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g,Li=function(a,b){b.push('"',a.replace(Ni,function(c){var d=Mi[c];
438
- d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).slice(1),Mi[c]=d);return d}),'"')};var Oi=function(a){switch(a){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var Pi=function(){J.call(this);this.headers=new Map;this.Da=!1;this.u=null;this.Uc=this.Nh=this.Vd="";this.Tb=this.zf=this.Td=this.gf=!1;this.nd=0;this.ec=null;this.zc="";this.ql=this.Ti=!1;this.Oe=this.Ag=null};y(Pi,J);Pi.prototype.ha=Ec(Fc(),"goog.net.XhrIo").il;var Qi=/^https?$/i,Ri=["POST","PUT"],Si=[];h=Pi.prototype;h.Sk=function(){this.dispose();jc(Si,this)};h.setTrustToken=function(a){this.Ag=a};h.setAttributionReporting=function(a){this.Oe=a};
439
- h.send=function(a,b,c,d){if(this.u)throw Error("[goog.net.XhrIo] Object is active with another request="+this.Vd+"; newUri="+a);b=b?b.toUpperCase():"GET";this.Vd=a;this.Uc="";this.Nh=b;this.gf=!1;this.Da=!0;this.u=new XMLHttpRequest;this.u.onreadystatechange=Ia(w(this.ei,this));this.ql&&"onprogress"in this.u&&(this.u.onprogress=Ia(w(function(f){this.di(f,!0)},this)),this.u.upload&&(this.u.upload.onprogress=Ia(w(this.di,this))));try{Hc(this.ha,Ti(this,"Opening Xhr")),this.zf=!0,this.u.open(b,String(a),
440
- !0),this.zf=!1}catch(f){Hc(this.ha,Ti(this,"Error opening Xhr: "+f.message));this.Id(5,f);return}a=c||"";c=new Map(this.headers);if(d)if(Object.getPrototypeOf(d)===Object.prototype)for(var e in d)c.set(e,d[e]);else if(typeof d.keys==="function"&&typeof d.get==="function"){e=r(d.keys());for(var g=e.next();!g.done;g=e.next())g=g.value,c.set(g,d.get(g))}else throw Error("Unknown input type for opt_headers: "+String(d));d=Array.from(c.keys()).find(function(f){return"content-type"==f.toLowerCase()});e=
441
- t.FormData&&a instanceof t.FormData;!ic(Ri,b)||d||e||c.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");b=r(c);for(d=b.next();!d.done;d=b.next())c=r(d.value),d=c.next().value,c=c.next().value,this.u.setRequestHeader(d,c);this.zc&&(this.u.responseType=this.zc);"withCredentials"in this.u&&this.u.withCredentials!==this.Ti&&(this.u.withCredentials=this.Ti);if("setTrustToken"in this.u&&this.Ag)try{this.u.setTrustToken(this.Ag)}catch(f){Hc(this.ha,Ti(this,"Error SetTrustToken: "+f.message))}if("setAttributionReporting"in
442
- this.u&&this.Oe)try{this.u.setAttributionReporting(this.Oe)}catch(f){Hc(this.ha,Ti(this,"Error SetAttributionReporting: "+f.message))}try{this.ec&&(clearTimeout(this.ec),this.ec=null),this.nd>0&&(Hc(this.ha,Ti(this,"Will abort after "+this.nd+"ms if incomplete")),this.ec=setTimeout(this.oe.bind(this),this.nd)),Hc(this.ha,Ti(this,"Sending request")),this.Td=!0,this.u.send(a),this.Td=!1}catch(f){Hc(this.ha,Ti(this,"Send error: "+f.message)),this.Id(5,f)}};
443
- h.oe=function(){typeof ya!="undefined"&&this.u&&(this.Uc="Timed out after "+this.nd+"ms, aborting",Hc(this.ha,Ti(this,this.Uc)),this.dispatchEvent("timeout"),this.abort(8))};h.Id=function(a,b){this.Da=!1;this.u&&(this.Tb=!0,this.u.abort(),this.Tb=!1);this.Uc=b;Ui(this);Vi(this)};var Ui=function(a){a.gf||(a.gf=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
444
- Pi.prototype.abort=function(){this.u&&this.Da&&(Hc(this.ha,Ti(this,"Aborting")),this.Da=!1,this.Tb=!0,this.u.abort(),this.Tb=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Vi(this))};Pi.prototype.K=function(){this.u&&(this.Da&&(this.Da=!1,this.Tb=!0,this.u.abort(),this.Tb=!1),Vi(this,!0));Pi.M.K.call(this)};Pi.prototype.ei=function(){this.Qa||(this.zf||this.Td||this.Tb?Wi(this):this.pl())};Pi.prototype.pl=function(){Wi(this)};
445
- var Wi=function(a){if(a.Da&&typeof ya!="undefined")if(a.Td&&a.Rb()==4)setTimeout(a.ei.bind(a),0);else if(a.dispatchEvent("readystatechange"),a.Rb()==4){Hc(a.ha,Ti(a,"Request complete"));a.Da=!1;try{var b=a.getStatus(),c;if(!(c=Oi(b))){var d;if(d=b===0){var e=String(a.Vd).match(Pc)[1]||null;!e&&t.self&&t.self.location&&(e=t.self.location.protocol.slice(0,-1));d=!Qi.test(e?e.toLowerCase():"")}c=d}if(c)a.dispatchEvent("complete"),a.dispatchEvent("success");else{try{var g=a.Rb()>2?a.u.statusText:""}catch(f){Hc(a.ha,
446
- "Can not get status: "+f.message),g=""}a.Uc=g+" ["+a.getStatus()+"]";Ui(a)}}finally{Vi(a)}}};Pi.prototype.di=function(a,b){E(a.type==="progress","goog.net.EventType.PROGRESS is of the same type as raw XHR progress.");this.dispatchEvent(Xi(a,"progress"));this.dispatchEvent(Xi(a,b?"downloadprogress":"uploadprogress"))};
447
- var Xi=function(a,b){return{type:b,lengthComputable:a.lengthComputable,loaded:a.loaded,total:a.total}},Vi=function(a,b){if(a.u){a.ec&&(clearTimeout(a.ec),a.ec=null);var c=a.u;a.u=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=null}catch(d){(a=a.ha)&&Gc(a,tc,"Problem encountered resetting onreadystatechange: "+d.message)}}};Pi.prototype.isActive=function(){return!!this.u};Pi.prototype.Rb=function(){return this.u?this.u.readyState:0};
448
- Pi.prototype.getStatus=function(){try{return this.Rb()>2?this.u.status:-1}catch(a){return-1}};var Yi=function(a){try{if(!a.u)return null;if("response"in a.u)return a.u.response;switch(a.zc){case "":case "text":return a.u.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in a.u)return a.u.mozResponseArrayBuffer}var b=a.ha;b&&Gc(b,tc,"Response type "+a.zc+" is not supported on this browser");return null}catch(c){return Hc(a.ha,"Can not get response: "+c.message),null}};
449
- Pi.prototype.getResponseHeader=function(a){if(this.u&&this.Rb()==4)return a=this.u.getResponseHeader(a),a===null?void 0:a};Pi.prototype.getAllResponseHeaders=function(){return this.u&&this.Rb()>=2?this.u.getAllResponseHeaders()||"":""};
450
- var Zi=function(a){var b={};a=a.getAllResponseHeaders().split("\r\n");for(var c=0;c<a.length;c++)if(!/^[\s\xa0]*$/.test(a[c])){var d=Jc(a[c]),e=d[0];d=d[1];if(typeof d==="string"){d=d.trim();var g=b[e]||[];b[e]=g;g.push(d)}}return ab(b,function(f){return f.join(", ")})},Ti=function(a,b){return b+" ["+a.Nh+" "+a.Vd+" "+a.getStatus()+"]"};var Fi=pa(["https://accounts.google.com/gsi/client"]),$i,K=function(a,b){aj();this.callback=a;this.N=new bj(!a,b)};K.prototype.rd=function(a){this.N.Pb=a;return this};K.prototype.handle=function(a){var b=this;if(a instanceof Promise){if(this.callback){var c=function(d,e){try{return b.callback(d,e)}catch(g){setTimeout(function(){throw g;},0)}};a.then(c,function(d){return c(void 0,d)})}}else a.then(function(d){a=d});return a};var cj=function(){return"projects/"+$i};h=K.prototype;h.Gc=function(){return new eh(this.N)};
451
- h.assets=function(){return new gh(this.N)};h.Ma=function(){return new nh(this.N)};h.value=function(){return new rh(this.N)};h.maps=function(){return new mh(this.N)};h.map=function(){return new lh(this.N)};h.image=function(){return new kh(this.N)};h.table=function(){return new oh(this.N)};h.video=function(){return new th(this.N)};var bj=function(a,b){this.sync=a=a===void 0?!1:a;this.Pb=void 0;this.ti=b!=null?b:a?5:10};q(bj,ld);
452
- bj.prototype.send=function(a,b){var c=this;hd(a);var d=a.path||"",e=dj()+d,g=ej(a.A||{}),f=a.body?JSON.stringify(a.body):void 0;if(this.sync){d=fj(e,g,void 0,a.C,f,this.ti,this.Pb);d=b?Pa(b,d):d;var l=function(m){return{then:function(p){return l(p(m))}}};return l(d)}return(new Promise(function(m,p){fj(e,g,function(v,z){z?p(z):m(v)},a.C,f,c.ti,c.Pb)})).then(function(m){return b?Pa(b,m):m})};var hj=function(a){K.call(this,a);this.N=new gj;this.Pb=void 0};q(hj,K);
453
- hj.prototype.rd=function(a){this.Pb=a;return this};
454
- hj.prototype.send=function(a,b){var c=this,d=dj()+"/batch",e=a.map(function(f){var l=r(f);f=l.next().value;var m=r(l.next().value);l=m.next().value;m.next();return"--batch_EARTHENGINE_batch\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nMIME-Version: 1.0\r\nContent-ID: <"+f+">\r\n\r\n"+l+"\r\n"}).join("")+"--batch_EARTHENGINE_batch--\r\n",g=function(f){var l={};a.forEach(function(m){var p=r(m);m=p.next().value;p=r(p.next().value);p.next();p=p.next().value;f[m]!=null&&(l[m]=
455
- Pa(p,f[m]))});return b?b(l):l};return this.callback?(fj(d,null,function(f,l){return c.callback(l?f:g(f),l)},"multipart/mixed; boundary=batch_EARTHENGINE_batch",e,void 0,this.Pb),null):g(fj(d,null,void 0,"multipart/mixed; boundary=batch_EARTHENGINE_batch",e,void 0,this.Pb))};var gj=function(){};q(gj,ld);
456
- gj.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=ij();d!=null&&c.push("Authorization: "+d);a=a.body?JSON.stringify(a.body):"";return[c.join("\r\n")+"\r\n\r\n"+a,b]};
457
- var jj=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"))}},dj=function(){var a=kj.replace(/\/api$/,"");return"window"in t&&!a.match(/^https?:\/\/content-/)?a.replace(/^(https?:\/\/)(.*\.googleapis\.com)$/,"$1content-$2"):a},mj=function(a,b,c){var d=[];a&&(d=d.concat(lj));
458
- 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},tj=function(a,b,c){nj&&oj&&nj({client_id:String(oj),scope:qj.join(" "),plugin_name:"earthengine"},function(d){if(d.error=="immediate_failed"&&c)c();else if("window"in t)try{rj(function(){try{sj(a,b,d)}catch(e){b(e.toString())}})}catch(e){b(e.toString())}else sj(a,
459
- b,d)})},ij=function(){uj&&Date.now()-uj>=0&&vj();return wj},vj=function(){uj=wj=null},aj=function(a,b,c,d){a!=null?kj=a:xj||(kj="https://earthengine.googleapis.com/api");b!=null?yj=b:xj||(yj="https://earthengine.googleapis.com");c!==void 0&&(zj=c);$i=d!=null?d:$i||"earthengine-legacy";xj=!0},fj=function(a,b,c,d,e,g,f){aj();var l=Aj,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.6.0";p==="1.6.0"&&
460
- (p="latest");m["x-goog-api-client"]="ee-js/"+p;p=ij();if(p!=null)m.Authorization=p;else if(c&&nj&&oj)return tj(function(){Bj(l,function(){fj(a,b,c,d)})}),null;b=b?b.clone():new Xc;Cj!=null&&b.add("key",Cj);l&&(m["X-Earth-Engine-Computation-Profiling"]="1");$i&&$i!=="earthengine-legacy"&&(m["X-Goog-User-Project"]=$i);b=Dj(b,a);zj!=null&&(m["X-XSRF-Token"]=zj);Ej!=null&&(m["X-Earth-Engine-App-ID-Token"]=Ej);p=e||null;var v=b?b.toString():"";d==="POST"&&e===void 0?p=v:/^[\s\xa0]*$/.test(v)||(a+=a.indexOf("?")!=
461
- -1?"&":"?",a+=v);e=a.startsWith("/")?kj+a:a;if(c)return Fj.push(Gj(e,c,d,p,m,g,f)),Hj.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 Ij(B.status,function(H){try{return B.getResponseHeader(H)}catch(ea){return null}},B.responseText,l,void 0,e,d,f)},Gj=function(a,b,c,d,e,g,f){var l=0,m={url:a,method:c,content:d,headers:e},p=Aj,v=g!=null?g:10;
462
- m.callback=function(z){z=z.target;if(z.getStatus()==429&&l<v)return l++,setTimeout(function(){Fj.push(m);Hj.nf()},Math.min(12E4,Math.pow(2,l)*1E3)),null;var B=Ij,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},Bj=function(a,b){var c=Aj;try{Aj=a,b.call(void 0)}finally{Aj=c}},Ij=function(a,b,c,d,e,g,f,l){var m=d?b("X-Earth-Engine-Computation-Profile"):"";m&&d&&d(m);var p=
428
+ var pi=function(a,b){this.ie=[];this.bi=a;this.mh=b||null;this.Qc=this.rc=!1;this.ia=void 0;this.ig=this.Pg=this.Qe=!1;this.se=0;this.Y=null;this.Re=0};pi.prototype.cancel=function(a){if(this.rc)this.ia instanceof pi&&this.ia.cancel();else{if(this.Y){var b=this.Y;delete this.Y;a?b.cancel(a):(b.Re--,b.Re<=0&&b.cancel())}this.bi?this.bi.call(this.mh,this):this.ig=!0;this.rc||qi(this,new ri(this))}};pi.prototype.Yg=function(a,b){this.Qe=!1;si(this,a,b)};
429
+ var si=function(a,b,c){a.rc=!0;a.ia=c;a.Qc=!b;ti(a)},vi=function(a){if(a.rc){if(!a.ig)throw new ui(a);a.ig=!1}};pi.prototype.callback=function(a){vi(this);wi(a);si(this,!0,a)};var qi=function(a,b){vi(a);wi(b);si(a,!1,b)},wi=function(a){E(!(a instanceof pi),"An execution sequence may not be initiated with a blocking Deferred.")},zi=function(a){var b=xi();yi(b,a,null)};pi.prototype.finally=function(a){var b=this;return Ai(new Promise(function(c,d){yi(b,function(e){a();c(e)},function(e){a();d(e)})}))};
430
+ var yi=function(a,b,c,d){E(!a.Pg,"Blocking Deferreds can not be re-used");var e=a.rc;e||(b===c?b=c=Ia(b):(b=Ia(b),c=Ia(c)));a.ie.push([b,c,d]);e&&ti(a)};pi.prototype.then=function(a,b,c){var d,e,g=new Oh(function(f,l){e=f;d=l});yi(this,e,function(f){f instanceof ri?g.cancel():d(f);return Bi},this);return g.then(a,b,c)};pi.prototype.$goog_Thenable=!0;
431
+ var Ci=function(a){return ec(a.ie,function(b){return typeof b[1]==="function"})},Bi={},ti=function(a){if(a.se&&a.rc&&Ci(a)){var b=a.se,c=Di[b];c&&(t.clearTimeout(c.ea),delete Di[b]);a.se=0}a.Y&&(a.Y.Re--,delete a.Y);b=a.ia;for(var d=c=!1;a.ie.length&&!a.Qe;){var e=a.ie.shift(),g=e[0],f=e[1];e=e[2];if(g=a.Qc?f:g)try{var l=g.call(e||a.mh,b);l===Bi&&(l=void 0);l!==void 0&&(a.Qc=a.Qc&&(l==b||l instanceof Error),a.ia=b=l);if(Lh(b)||typeof t.Promise==="function"&&b instanceof t.Promise)d=!0,a.Qe=!0}catch(m){b=
432
+ m,a.Qc=!0,Ci(a)||(c=!0)}}a.ia=b;d&&(l=w(a.Yg,a,!0),d=w(a.Yg,a,!1),b instanceof pi?(yi(b,l,d),b.Pg=!0):b.then(l,d));c&&(b=new Ei(b),Di[b.ea]=b,a.se=b.ea)},Ai=function(a){var b=new pi;a.then(function(c){b.callback(c)},function(c){qi(b,c)});return b},ui=function(){Qb.call(this)};y(ui,Qb);ui.prototype.message="Deferred has already fired";ui.prototype.name="AlreadyCalledError";var ri=function(){Qb.call(this)};y(ri,Qb);ri.prototype.message="Deferred was canceled";ri.prototype.name="CanceledError";
433
+ var Ei=function(a){this.ea=t.setTimeout(w(this.Cl,this),0);this.Id=a};Ei.prototype.Cl=function(){E(Di[this.ea],"Cannot throw an error that is not scheduled.");delete Di[this.ea];throw this.Id;};var Di={};var xi=function(){var a=fi(Fi),b={},c=b.document||document,d=ub(a).toString(),e=(new oi(c)).createElement("SCRIPT"),g={xi:e,oe:void 0},f=new pi(Gi,g),l=null,m=b.timeout!=null?b.timeout:5E3;m>0&&(l=window.setTimeout(function(){Hi(e,!0);qi(f,new Ii(1,"Timeout reached for loading script "+d))},m),g.oe=l);e.onload=e.onreadystatechange=function(){e.readyState&&e.readyState!="loaded"&&e.readyState!="complete"||(Hi(e,b.Ll||!1,l),f.callback(null))};e.onerror=function(){Hi(e,!0,l);qi(f,new Ii(0,"Error while loading script "+
434
+ d))};g=b.attributes||{};mb(g,{type:"text/javascript",charset:"UTF-8"});hi(e,g);Pb(e,a);Ji(c).appendChild(e);return f},Ji=function(a){var b;return(b=(a||document).getElementsByTagName("HEAD"))&&b.length!==0?b[0]:a.documentElement},Gi=function(){if(this&&this.xi){var a=this.xi;a&&a.tagName=="SCRIPT"&&Hi(a,!0,this.oe)}},Hi=function(a,b,c){c!=null&&t.clearTimeout(c);a.onload=function(){};a.onerror=function(){};a.onreadystatechange=function(){};b&&window.setTimeout(function(){mi(a)},0)},Ii=function(a,
435
+ b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);Qb.call(this,c);this.code=a};y(Ii,Qb);var Ki=function(){this.ge=void 0};Ki.prototype.ua=function(a){var b=[];Li(this,a,b);return b.join("")};
436
+ var Li=function(a,b,c){if(b==null)c.push("null");else{if(typeof b=="object"){if(Array.isArray(b)){var d=b;b=d.length;c.push("[");for(var e="",g=0;g<b;g++)c.push(e),e=d[g],Li(a,a.ge?a.ge.call(d,String(g),e):e,c),e=",";c.push("]");return}if(b instanceof String||b instanceof Number||b instanceof Boolean)b=b.valueOf();else{c.push("{");g="";for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(e=b[d],typeof e!="function"&&(c.push(g),Mi(d,c),c.push(":"),Li(a,a.ge?a.ge.call(b,d,e):e,c),g=","));c.push("}");
437
+ return}}switch(typeof b){case "string":Mi(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);}}},Ni={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},Oi=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g,Mi=function(a,b){b.push('"',a.replace(Oi,function(c){var d=Ni[c];
438
+ d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).slice(1),Ni[c]=d);return d}),'"')};var Pi=function(a){switch(a){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var Qi=function(){J.call(this);this.headers=new Map;this.Da=!1;this.u=null;this.Uc=this.Nh=this.Vd="";this.Tb=this.zf=this.Td=this.gf=!1;this.nd=0;this.ec=null;this.zc="";this.ql=this.Ti=!1;this.Oe=this.Ag=null};y(Qi,J);Qi.prototype.ha=Ec(Fc(),"goog.net.XhrIo").il;var Ri=/^https?$/i,Si=["POST","PUT"],Ti=[];h=Qi.prototype;h.Sk=function(){this.dispose();jc(Ti,this)};h.setTrustToken=function(a){this.Ag=a};h.setAttributionReporting=function(a){this.Oe=a};
439
+ h.send=function(a,b,c,d){if(this.u)throw Error("[goog.net.XhrIo] Object is active with another request="+this.Vd+"; newUri="+a);b=b?b.toUpperCase():"GET";this.Vd=a;this.Uc="";this.Nh=b;this.gf=!1;this.Da=!0;this.u=new XMLHttpRequest;this.u.onreadystatechange=Ia(w(this.ei,this));this.ql&&"onprogress"in this.u&&(this.u.onprogress=Ia(w(function(f){this.di(f,!0)},this)),this.u.upload&&(this.u.upload.onprogress=Ia(w(this.di,this))));try{Hc(this.ha,Ui(this,"Opening Xhr")),this.zf=!0,this.u.open(b,String(a),
440
+ !0),this.zf=!1}catch(f){Hc(this.ha,Ui(this,"Error opening Xhr: "+f.message));this.Id(5,f);return}a=c||"";c=new Map(this.headers);if(d)if(Object.getPrototypeOf(d)===Object.prototype)for(var e in d)c.set(e,d[e]);else if(typeof d.keys==="function"&&typeof d.get==="function"){e=r(d.keys());for(var g=e.next();!g.done;g=e.next())g=g.value,c.set(g,d.get(g))}else throw Error("Unknown input type for opt_headers: "+String(d));d=Array.from(c.keys()).find(function(f){return"content-type"==f.toLowerCase()});e=
441
+ t.FormData&&a instanceof t.FormData;!ic(Si,b)||d||e||c.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");b=r(c);for(d=b.next();!d.done;d=b.next())c=r(d.value),d=c.next().value,c=c.next().value,this.u.setRequestHeader(d,c);this.zc&&(this.u.responseType=this.zc);"withCredentials"in this.u&&this.u.withCredentials!==this.Ti&&(this.u.withCredentials=this.Ti);if("setTrustToken"in this.u&&this.Ag)try{this.u.setTrustToken(this.Ag)}catch(f){Hc(this.ha,Ui(this,"Error SetTrustToken: "+f.message))}if("setAttributionReporting"in
442
+ this.u&&this.Oe)try{this.u.setAttributionReporting(this.Oe)}catch(f){Hc(this.ha,Ui(this,"Error SetAttributionReporting: "+f.message))}try{this.ec&&(clearTimeout(this.ec),this.ec=null),this.nd>0&&(Hc(this.ha,Ui(this,"Will abort after "+this.nd+"ms if incomplete")),this.ec=setTimeout(this.oe.bind(this),this.nd)),Hc(this.ha,Ui(this,"Sending request")),this.Td=!0,this.u.send(a),this.Td=!1}catch(f){Hc(this.ha,Ui(this,"Send error: "+f.message)),this.Id(5,f)}};
443
+ h.oe=function(){typeof ya!="undefined"&&this.u&&(this.Uc="Timed out after "+this.nd+"ms, aborting",Hc(this.ha,Ui(this,this.Uc)),this.dispatchEvent("timeout"),this.abort(8))};h.Id=function(a,b){this.Da=!1;this.u&&(this.Tb=!0,this.u.abort(),this.Tb=!1);this.Uc=b;Vi(this);Wi(this)};var Vi=function(a){a.gf||(a.gf=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
444
+ Qi.prototype.abort=function(){this.u&&this.Da&&(Hc(this.ha,Ui(this,"Aborting")),this.Da=!1,this.Tb=!0,this.u.abort(),this.Tb=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Wi(this))};Qi.prototype.K=function(){this.u&&(this.Da&&(this.Da=!1,this.Tb=!0,this.u.abort(),this.Tb=!1),Wi(this,!0));Qi.M.K.call(this)};Qi.prototype.ei=function(){this.Qa||(this.zf||this.Td||this.Tb?Xi(this):this.pl())};Qi.prototype.pl=function(){Xi(this)};
445
+ var Xi=function(a){if(a.Da&&typeof ya!="undefined")if(a.Td&&a.Rb()==4)setTimeout(a.ei.bind(a),0);else if(a.dispatchEvent("readystatechange"),a.Rb()==4){Hc(a.ha,Ui(a,"Request complete"));a.Da=!1;try{var b=a.getStatus(),c;if(!(c=Pi(b))){var d;if(d=b===0){var e=String(a.Vd).match(Pc)[1]||null;!e&&t.self&&t.self.location&&(e=t.self.location.protocol.slice(0,-1));d=!Ri.test(e?e.toLowerCase():"")}c=d}if(c)a.dispatchEvent("complete"),a.dispatchEvent("success");else{try{var g=a.Rb()>2?a.u.statusText:""}catch(f){Hc(a.ha,
446
+ "Can not get status: "+f.message),g=""}a.Uc=g+" ["+a.getStatus()+"]";Vi(a)}}finally{Wi(a)}}};Qi.prototype.di=function(a,b){E(a.type==="progress","goog.net.EventType.PROGRESS is of the same type as raw XHR progress.");this.dispatchEvent(Yi(a,"progress"));this.dispatchEvent(Yi(a,b?"downloadprogress":"uploadprogress"))};
447
+ var Yi=function(a,b){return{type:b,lengthComputable:a.lengthComputable,loaded:a.loaded,total:a.total}},Wi=function(a,b){if(a.u){a.ec&&(clearTimeout(a.ec),a.ec=null);var c=a.u;a.u=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=null}catch(d){(a=a.ha)&&Gc(a,tc,"Problem encountered resetting onreadystatechange: "+d.message)}}};Qi.prototype.isActive=function(){return!!this.u};Qi.prototype.Rb=function(){return this.u?this.u.readyState:0};
448
+ Qi.prototype.getStatus=function(){try{return this.Rb()>2?this.u.status:-1}catch(a){return-1}};var Zi=function(a){try{if(!a.u)return null;if("response"in a.u)return a.u.response;switch(a.zc){case "":case "text":return a.u.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in a.u)return a.u.mozResponseArrayBuffer}var b=a.ha;b&&Gc(b,tc,"Response type "+a.zc+" is not supported on this browser");return null}catch(c){return Hc(a.ha,"Can not get response: "+c.message),null}};
449
+ Qi.prototype.getResponseHeader=function(a){if(this.u&&this.Rb()==4)return a=this.u.getResponseHeader(a),a===null?void 0:a};Qi.prototype.getAllResponseHeaders=function(){return this.u&&this.Rb()>=2?this.u.getAllResponseHeaders()||"":""};
450
+ var $i=function(a){var b={};a=a.getAllResponseHeaders().split("\r\n");for(var c=0;c<a.length;c++)if(!/^[\s\xa0]*$/.test(a[c])){var d=Jc(a[c]),e=d[0];d=d[1];if(typeof d==="string"){d=d.trim();var g=b[e]||[];b[e]=g;g.push(d)}}return ab(b,function(f){return f.join(", ")})},Ui=function(a,b){return b+" ["+a.Nh+" "+a.Vd+" "+a.getStatus()+"]"};var Fi=pa(["https://accounts.google.com/gsi/client"]),aj,K=function(a,b){bj();this.callback=a;this.N=new cj(!a,b)};K.prototype.rd=function(a){this.N.Pb=a;return this};K.prototype.handle=function(a){var b=this;if(a instanceof Promise){if(this.callback){var c=function(d,e){try{return b.callback(d,e)}catch(g){setTimeout(function(){throw g;},0)}};a.then(c,function(d){return c(void 0,d)})}}else a.then(function(d){a=d});return a};var dj=function(){return"projects/"+aj};h=K.prototype;h.Gc=function(){return new eh(this.N)};
451
+ h.assets=function(){return new gh(this.N)};h.Ma=function(){return new nh(this.N)};h.value=function(){return new rh(this.N)};h.maps=function(){return new mh(this.N)};h.map=function(){return new lh(this.N)};h.image=function(){return new kh(this.N)};h.table=function(){return new oh(this.N)};h.video=function(){return new th(this.N)};var cj=function(a,b){this.sync=a=a===void 0?!1:a;this.Pb=void 0;this.ti=b!=null?b:a?5:10};q(cj,ld);
452
+ cj.prototype.send=function(a,b){var c=this;hd(a);var d=a.path||"",e=ej()+d,g=fj(a.A||{}),f=a.body?JSON.stringify(a.body):void 0;if(this.sync){d=gj(e,g,void 0,a.C,f,this.ti,this.Pb);d=b?Pa(b,d):d;var l=function(m){return{then:function(p){return l(p(m))}}};return l(d)}return(new Promise(function(m,p){gj(e,g,function(v,z){z?p(z):m(v)},a.C,f,c.ti,c.Pb)})).then(function(m){return b?Pa(b,m):m})};var ij=function(a){K.call(this,a);this.N=new hj;this.Pb=void 0};q(ij,K);
453
+ ij.prototype.rd=function(a){this.Pb=a;return this};
454
+ ij.prototype.send=function(a,b){var c=this,d=ej()+"/batch",e=a.map(function(f){var l=r(f);f=l.next().value;var m=r(l.next().value);l=m.next().value;m.next();return"--batch_EARTHENGINE_batch\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nMIME-Version: 1.0\r\nContent-ID: <"+f+">\r\n\r\n"+l+"\r\n"}).join("")+"--batch_EARTHENGINE_batch--\r\n",g=function(f){var l={};a.forEach(function(m){var p=r(m);m=p.next().value;p=r(p.next().value);p.next();p=p.next().value;f[m]!=null&&(l[m]=
455
+ Pa(p,f[m]))});return b?b(l):l};return this.callback?(gj(d,null,function(f,l){return c.callback(l?f:g(f),l)},"multipart/mixed; boundary=batch_EARTHENGINE_batch",e,void 0,this.Pb),null):g(gj(d,null,void 0,"multipart/mixed; boundary=batch_EARTHENGINE_batch",e,void 0,this.Pb))};var hj=function(){};q(hj,ld);
456
+ 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);a=a.body?JSON.stringify(a.body):"";return[c.join("\r\n")+"\r\n\r\n"+a,b]};
457
+ var kj=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=lj.replace(/\/api$/,"");return"window"in t&&!a.match(/^https?:\/\/content-/)?a.replace(/^(https?:\/\/)(.*\.googleapis\.com)$/,"$1content-$2"):a},nj=function(a,b,c){var d=[];a&&(d=d.concat(mj));
458
+ 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},uj=function(a,b,c){oj&&qj&&oj({client_id:String(qj),scope:rj.join(" "),plugin_name:"earthengine"},function(d){if(d.error=="immediate_failed"&&c)c();else if("window"in t)try{sj(function(){try{tj(a,b,d)}catch(e){b(e.toString())}})}catch(e){b(e.toString())}else tj(a,
459
+ b,d)})},jj=function(){vj&&Date.now()-vj>=0&&wj();return xj},wj=function(){vj=xj=null},bj=function(a,b,c,d){a!=null?lj=a:yj||(lj="https://earthengine.googleapis.com/api");b!=null?zj=b:yj||(zj="https://earthengine.googleapis.com");c!==void 0&&(Aj=c);aj=d!=null?d:aj||"earthengine-legacy";yj=!0},gj=function(a,b,c,d,e,g,f){bj();var l=Bj,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.6.2";p==="1.6.2"&&
460
+ (p="latest");m["x-goog-api-client"]="ee-js/"+p;p=jj();if(p!=null)m.Authorization=p;else if(c&&oj&&qj)return uj(function(){Cj(l,function(){gj(a,b,c,d)})}),null;b=b?b.clone():new Xc;Dj!=null&&b.add("key",Dj);l&&(m["X-Earth-Engine-Computation-Profiling"]="1");aj&&aj!=="earthengine-legacy"&&(m["X-Goog-User-Project"]=aj);b=Ej(b,a);Aj!=null&&(m["X-XSRF-Token"]=Aj);Fj!=null&&(m["X-Earth-Engine-App-ID-Token"]=Fj);p=e||null;var v=b?b.toString():"";d==="POST"&&e===void 0?p=v:/^[\s\xa0]*$/.test(v)||(a+=a.indexOf("?")!=
461
+ -1?"&":"?",a+=v);e=a.startsWith("/")?lj+a:a;if(c)return Gj.push(Hj(e,c,d,p,m,g,f)),Ij.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 Jj(B.status,function(H){try{return B.getResponseHeader(H)}catch(ea){return null}},B.responseText,l,void 0,e,d,f)},Hj=function(a,b,c,d,e,g,f){var l=0,m={url:a,method:c,content:d,headers:e},p=Bj,v=g!=null?g:10;
462
+ m.callback=function(z){z=z.target;if(z.getStatus()==429&&l<v)return l++,setTimeout(function(){Gj.push(m);Ij.nf()},Math.min(12E4,Math.pow(2,l)*1E3)),null;var B=Jj,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},Cj=function(a,b){var c=Bj;try{Bj=a,b.call(void 0)}finally{Bj=c}},Jj=function(a,b,c,d,e,g,f,l){var m=d?b("X-Earth-Engine-Computation-Profile"):"";m&&d&&d(m);var p=
463
463
  function(W){try{var da=JSON.parse(W);return!(u(da)&&"error"in da&&"message"in da.error)||l&&l(da)?{parsed:da}:da.error.message}catch(Jb){return W===""?"":"Invalid JSON: "+W}},v=function(W){return W===0?"Failed to contact Earth Engine servers. Please check your connection, firewall, or browser extension settings.":W<200||W>=300?"Server returned HTTP code: "+W+" for "+f+" "+g:""},z,B;b=b("Content-Type")||"application/json";d=b.replace(/;.*/,"");if(d==="application/json"||d==="text/json")c=p(c),c.parsed?
464
- B=c.parsed:z=c||v(a)||"Response was too large to parse. Hint: Use limit() to fetch less elements of a collection.";else if(d==="multipart/mixed"){B={};var H=[];jj(b,c,function(W,da,Jb){Jb=p(Jb);Jb.parsed&&(B[W]=Jb.parsed);(da=(Jb.parsed?"":Jb)||v(da))&&H.push(W+": "+da)});H.length&&(z=H.join("\n"))}else var ea="Response was unexpectedly not JSON, but "+d;z=z||v(a)||ea;if(e)return e(B,z),null;if(!z)return B;throw Error(z);},rj=function(a){var b=function(){nj||(nj=function(c,d){t.google.accounts.oauth2.initTokenClient({client_id:c.client_id,
465
- callback:d,scope:c.scope}).requestAccessToken()});a()};u(t.default_gsi)?b():Ai(b)},sj=function(a,b,c){if(c.access_token){b=c.token_type+" "+c.access_token;if(c.expires_in||c.expires_in===0){c=c.expires_in*1E3*.9;var d=setTimeout(tj,c*.9);d.unref!==void 0&&d.unref();uj=Date.now()+c}wj=b;a&&a()}else b&&b(c.error||"Unknown error.")},ej=function(a){var b=new Xc;a=r(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=r(c.value);c=d.next().value;d=d.next().value;b.set(c,d)}return b},Fj=[],Hj=
466
- new di(function(){var a=Fj.shift();if(a){var b=a.url,c=a.callback,d=a.method,e=a.content;a=a.headers;var g=Jj,f=new Pi;Si.push(f);c&&f.Va("complete",c);f.Xc("ready",f.Sk);g&&(f.nd=Math.max(0,g));f.send(b,d,e,a)}Fj.length==0||Hj.nf()},350),kj=null,yj=null,zj=null,Ej=null,Dj=Td,wj=null,uj=null,oj=null,qj=[],nj=null,lj=["https://www.googleapis.com/auth/earthengine","https://www.googleapis.com/auth/cloud-platform","https://www.googleapis.com/auth/drive"],Cj=null,xj=!1,Jj=0,Aj=null;
467
- x("ee.api.ListAssetsResponse",Fg);x("ee.api.EarthEngineAsset",Bf);x("ee.api.Operation",Ig);x("ee.api.ListFeaturesResponse",Gg);x("ee.api.FeatureViewLocation",Ef);var Kj=function(){};Kj.prototype.Dh=function(){return null};var Lj=function(){};x("ee.Encodable.SourceFrame",Lj);
468
- var Mj=function(a){if(a===void 0||a===null)a=Ka;return new af({fb:a})},Nj=function(a){return new af({Na:a})},Oj=function(a){return new af({Ea:new $e({values:a})})},Pj=function(a){return new af({Fa:new yf({values:a})})},Qj=function(a,b){return new af({xa:new lg({functionName:a,arguments:b})})},Rj=function(a,b){return new af({xa:new lg({Ta:a,arguments:b})})},Sj=function(a,b){return new af({Sa:new kg({mc:a,body:b})})},Tj=function(a){if(!a)return"AUTO_JPEG_PNG";a=a.toUpperCase();switch(a){case "JPG":return"JPEG";
469
- case "AUTO":return"AUTO_JPEG_PNG";case "TIF":case "TIFF":case "GEOTIF":case "GEOTIFF":return"GEO_TIFF";case "TF_RECORD":case "TFRECORD":return"TF_RECORD_IMAGE";case "NUMPY":return"NPY";case "ZIPPED_TIF":case "ZIPPED_TIFF":case "ZIPPED_GEOTIF":case "ZIPPED_GEOTIFF":return"ZIPPED_GEO_TIFF";case "ZIPPED_TIF_PER_BAND":case "ZIPPED_TIFF_PER_BAND":case "ZIPPED_GEOTIF_PER_BAND":case "ZIPPED_GEOTIFF_PER_BAND":return"ZIPPED_GEO_TIFF_PER_BAND";default:return a}},Uj=function(a){if(!a)return"CSV";a=a.toUpperCase();
470
- switch(a){case "TF_RECORD":case "TFRECORD":return"TF_RECORD_TABLE";case "JSON":case "GEOJSON":return"GEO_JSON";default:return a}},Vj=function(a){if(!a)return"VERTICAL";a=a.toUpperCase();if(a!=="HORIZONTAL"&&a!=="VERTICAL")throw Error('Orientation must be "horizontal" or "vertical"');return a},Wj=function(a){if(!a)return[];if(typeof a==="string")return a.split(",");if(Array.isArray(a))return a;throw Error("Invalid band list "+a);},Zj=function(a){var b=new Jf,c=!1;"palette"in a&&(c=a.palette,b.bd=typeof c===
471
- "string"?c.split(","):c,c=!0);var d=[];if("gain"in a||"bias"in a){if("min"in a||"max"in a)throw Error("Gain and bias can't be specified with min and max");var e=b.bd?b.bd.length-1:255;d=Xj(a,"bias","gain").map(function(g){var f=-g.bias/g.gain;return{min:f,max:e/g.gain+f}})}else if("min"in a||"max"in a)d=Xj(a,"min","max");d.length!==0&&(b.Uf=d.map(function(g){return new zf(g)}),c=!0);a=Yj(a.gamma);if(a.length>1)throw Error("Only one gamma value is supported");a.length===1&&(b.gamma=a[0],c=!0);return c?
472
- b:null},Yj=function(a){return a?a.split(",").map(Number):[]},Xj=function(a,b,c){var d=Yj(a[b]),e=Yj(a[c]);if(d.length===0)return e.map(function(g){var f={};return f[b]=0,f[c]=g,f});if(e.length===0)return d.map(function(g){var f={};return f[b]=g,f[c]=1,f});if(d.length!==e.length)throw Error("Length of "+b+" and "+c+" must match.");return d.map(function(g,f){var l={};return l[b]=g,l[c]=e[f],l})},ak=function(a){var b=function(f){var l={};l.description=f.description||"";l.type=f.type||"";f.wd!=null&&
464
+ B=c.parsed:z=c||v(a)||"Response was too large to parse. Hint: Use limit() to fetch less elements of a collection.";else if(d==="multipart/mixed"){B={};var H=[];kj(b,c,function(W,da,Jb){Jb=p(Jb);Jb.parsed&&(B[W]=Jb.parsed);(da=(Jb.parsed?"":Jb)||v(da))&&H.push(W+": "+da)});H.length&&(z=H.join("\n"))}else var ea="Response was unexpectedly not JSON, but "+d;z=z||v(a)||ea;if(e)return e(B,z),null;if(!z)return B;throw Error(z);},sj=function(a){var b=function(){oj||(oj=function(c,d){t.google.accounts.oauth2.initTokenClient({client_id:c.client_id,
465
+ callback:d,scope:c.scope}).requestAccessToken()});a()};u(t.default_gsi)?b():zi(b)},tj=function(a,b,c){if(c.access_token){b=c.token_type+" "+c.access_token;if(c.expires_in||c.expires_in===0){c=c.expires_in*1E3*.9;var d=setTimeout(uj,c*.9);d.unref!==void 0&&d.unref();vj=Date.now()+c}xj=b;a&&a()}else b&&b(c.error||"Unknown error.")},fj=function(a){var b=new Xc;a=r(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=r(c.value);c=d.next().value;d=d.next().value;b.set(c,d)}return b},Gj=[],Ij=
466
+ new di(function(){var a=Gj.shift();if(a){var b=a.url,c=a.callback,d=a.method,e=a.content;a=a.headers;var g=Kj,f=new Qi;Ti.push(f);c&&f.Va("complete",c);f.Xc("ready",f.Sk);g&&(f.nd=Math.max(0,g));f.send(b,d,e,a)}Gj.length==0||Ij.nf()},350),lj=null,zj=null,Aj=null,Fj=null,Ej=Td,xj=null,vj=null,qj=null,rj=[],oj=null,mj=["https://www.googleapis.com/auth/earthengine","https://www.googleapis.com/auth/cloud-platform","https://www.googleapis.com/auth/drive"],Dj=null,yj=!1,Kj=0,Bj=null;
467
+ x("ee.api.ListAssetsResponse",Fg);x("ee.api.EarthEngineAsset",Bf);x("ee.api.Operation",Ig);x("ee.api.ListFeaturesResponse",Gg);x("ee.api.FeatureViewLocation",Ef);var Lj=function(){};Lj.prototype.Dh=function(){return null};var Mj=function(){};x("ee.Encodable.SourceFrame",Mj);
468
+ var Nj=function(a){if(a===void 0||a===null)a=Ka;return new af({fb:a})},Oj=function(a){return new af({Na:a})},Pj=function(a){return new af({Ea:new $e({values:a})})},Qj=function(a){return new af({Fa:new yf({values:a})})},Rj=function(a,b){return new af({xa:new lg({functionName:a,arguments:b})})},Sj=function(a,b){return new af({xa:new lg({Ta:a,arguments:b})})},Tj=function(a,b){return new af({Sa:new kg({mc:a,body:b})})},Uj=function(a){if(!a)return"AUTO_JPEG_PNG";a=a.toUpperCase();switch(a){case "JPG":return"JPEG";
469
+ case "AUTO":return"AUTO_JPEG_PNG";case "TIF":case "TIFF":case "GEOTIF":case "GEOTIFF":return"GEO_TIFF";case "TF_RECORD":case "TFRECORD":return"TF_RECORD_IMAGE";case "NUMPY":return"NPY";case "ZIPPED_TIF":case "ZIPPED_TIFF":case "ZIPPED_GEOTIF":case "ZIPPED_GEOTIFF":return"ZIPPED_GEO_TIFF";case "ZIPPED_TIF_PER_BAND":case "ZIPPED_TIFF_PER_BAND":case "ZIPPED_GEOTIF_PER_BAND":case "ZIPPED_GEOTIFF_PER_BAND":return"ZIPPED_GEO_TIFF_PER_BAND";default:return a}},Vj=function(a){if(!a)return"CSV";a=a.toUpperCase();
470
+ switch(a){case "TF_RECORD":case "TFRECORD":return"TF_RECORD_TABLE";case "JSON":case "GEOJSON":return"GEO_JSON";default:return a}},Wj=function(a){if(!a)return"VERTICAL";a=a.toUpperCase();if(a!=="HORIZONTAL"&&a!=="VERTICAL")throw Error('Orientation must be "horizontal" or "vertical"');return a},Xj=function(a){if(!a)return[];if(typeof a==="string")return a.split(",");if(Array.isArray(a))return a;throw Error("Invalid band list "+a);},ak=function(a){var b=new Jf,c=!1;"palette"in a&&(c=a.palette,b.bd=typeof c===
471
+ "string"?c.split(","):c,c=!0);var d=[];if("gain"in a||"bias"in a){if("min"in a||"max"in a)throw Error("Gain and bias can't be specified with min and max");var e=b.bd?b.bd.length-1:255;d=Yj(a,"bias","gain").map(function(g){var f=-g.bias/g.gain;return{min:f,max:e/g.gain+f}})}else if("min"in a||"max"in a)d=Yj(a,"min","max");d.length!==0&&(b.Uf=d.map(function(g){return new zf(g)}),c=!0);a=Zj(a.gamma);if(a.length>1)throw Error("Only one gamma value is supported");a.length===1&&(b.gamma=a[0],c=!0);return c?
472
+ b:null},Zj=function(a){return a?a.split(",").map(Number):[]},Yj=function(a,b,c){var d=Zj(a[b]),e=Zj(a[c]);if(d.length===0)return e.map(function(g){var f={};return f[b]=0,f[c]=g,f});if(e.length===0)return d.map(function(g){var f={};return f[b]=g,f[c]=1,f});if(d.length!==e.length)throw Error("Length of "+b+" and "+c+" must match.");return d.map(function(g,f){var l={};return l[b]=g,l[c]=e[f],l})},bk=function(a){var b=function(f){var l={};l.description=f.description||"";l.type=f.type||"";f.wd!=null&&
473
473
  (l.name=f.wd);f.defaultValue!==void 0&&(l["default"]=f.defaultValue);f.optional!=null&&(l.optional=f.optional);return l},c=function(f){var l={};l.args=(f.arguments||[]).map(b);l.description=f.description||"";l.returns=f.ag||"";f.hidden!=null&&(l.hidden=f.hidden);f.preview&&(l.preview=f.preview);f.deprecated&&(l.deprecated=f.df);f.sourceCodeUri&&(l.sourceCodeUri=f.sourceCodeUri);return l},d={};a=r(a.Gc||[]);for(var e=a.next();!e.done;e=a.next()){e=e.value;var g=e.name.replace(/^algorithms\//,"");d[g]=
474
- c(e)}return d},bk=/^projects\/((?:\w+(?:[\w\-]+\.[\w\-]+)*?\.\w+:)?[a-z][a-z0-9\-]{4,28}[a-z0-9])\/.+/,ck=/^projects\/((?:\w+(?:[\w\-]+\.[\w\-]+)*?\.\w+:)?[a-z][a-z0-9\-]{4,28}[a-z0-9])\/assets\/(.*)$/,dk=/^projects\/((?:\w+(?:[\w\-]+\.[\w\-]+)*?\.\w+:)?[a-z][a-z0-9\-]{4,28}[a-z0-9])\/assets\/?$/,ek=function(a){return(a=bk.exec(a))?a[1]:"earthengine-legacy"},fk=function(a){return ck.exec(a)?a:/^(users|projects)\/.*/.exec(a)?"projects/earthengine-legacy/assets/"+a:"projects/earthengine-public/assets/"+
475
- a},hk=function(a){return(a.assets||[]).map(gk)},ik=function(a){switch(a){case "ALGORITHM":return"Algorithm";case "FOLDER":return"Folder";case "IMAGE":return"Image";case "IMAGE_COLLECTION":return"ImageCollection";case "TABLE":return"Table";case "CLASSIFIER":return"Classifier";case "FEATURE_VIEW":return"FeatureView";default:return"Unknown"}},gk=function(a){var b=jk(ik(a.type),a.name),c=Object.assign({},a.properties||{});a.sizeBytes&&(c["system:asset_size"]=Number(a.sizeBytes));a.startTime&&(c["system:time_start"]=
474
+ c(e)}return d},ck=/^projects\/((?:\w+(?:[\w\-]+\.[\w\-]+)*?\.\w+:)?[a-z][a-z0-9\-]{4,28}[a-z0-9])\/.+/,dk=/^projects\/((?:\w+(?:[\w\-]+\.[\w\-]+)*?\.\w+:)?[a-z][a-z0-9\-]{4,28}[a-z0-9])\/assets\/(.*)$/,ek=/^projects\/((?:\w+(?:[\w\-]+\.[\w\-]+)*?\.\w+:)?[a-z][a-z0-9\-]{4,28}[a-z0-9])\/assets\/?$/,fk=function(a){return(a=ck.exec(a))?a[1]:"earthengine-legacy"},gk=function(a){return dk.exec(a)?a:/^(users|projects)\/.*/.exec(a)?"projects/earthengine-legacy/assets/"+a:"projects/earthengine-public/assets/"+
475
+ a},ik=function(a){return(a.assets||[]).map(hk)},jk=function(a){switch(a){case "ALGORITHM":return"Algorithm";case "FOLDER":return"Folder";case "IMAGE":return"Image";case "IMAGE_COLLECTION":return"ImageCollection";case "TABLE":return"Table";case "CLASSIFIER":return"Classifier";case "FEATURE_VIEW":return"FeatureView";default:return"Unknown"}},hk=function(a){var b=kk(jk(a.type),a.name),c=Object.assign({},a.properties||{});a.sizeBytes&&(c["system:asset_size"]=Number(a.sizeBytes));a.startTime&&(c["system:time_start"]=
476
476
  Date.parse(a.startTime));a.endTime&&(c["system:time_end"]=Date.parse(a.endTime));a.geometry&&(c["system:footprint"]=a.geometry);typeof a.title==="string"?c["system:title"]=a.title:typeof c.title==="string"&&(c["system:title"]=c.title);typeof a.description==="string"?c["system:description"]=a.description:typeof c.description==="string"&&(c["system:description"]=c.description);a.updateTime&&(b.version=Date.parse(a.updateTime)*1E3);b.properties=c;a.bands&&(b.bands=a.bands.map(function(d){var e={id:d.id,
477
477
  crs:d.grid.cf,dimensions:void 0,crs_transform:void 0};if(d.grid){if(d.grid.Jb!=null){var g=d.grid.Jb;e.crs_transform=[g.bg||0,g.gg||0,g.yg||0,g.hg||0,g.cg||0,g.zg||0]}d.grid.dimensions!=null&&(e.dimensions=[d.grid.dimensions.width,d.grid.dimensions.height])}d.dataType&&(g={type:"PixelType"},g.precision=(d.dataType.precision||"").toLowerCase(),d.dataType.range&&(g.min=d.dataType.range.min||0,g.max=d.dataType.range.max),e.data_type=g);return e}));a.Jd&&(b.mapLocation=a.Jd);a.featureCount&&(b.featureCount=
478
- a.featureCount);return b},kk=function(a){var b=new Bf,c=function(g){return g===null?Ka:void 0},d=Object.assign({},a),e;a=function(g){e=d[g];delete d[g];return e};a("system:asset_size")!==void 0&&(b.sizeBytes=c(e)||String(e));a("system:time_start")!==void 0&&(b.startTime=c(e)||(new Date(Number(e))).toISOString());a("system:time_end")!==void 0&&(b.endTime=c(e)||(new Date(Number(e))).toISOString());a("system:footprint")!==void 0&&(b.geometry=c(e)||e);a("system:title");typeof e!=="string"&&e!==null||
479
- d.title!=null||(d.title=c(e)||e);a("system:description");typeof e!=="string"&&e!==null||d.description!=null||(d.description=c(e)||e);Object.entries(d).forEach(function(g){var f=r(g);g=f.next().value;f=f.next().value;d[g]=c(f)||f});b.properties=d;return b},jk=function(a,b){var c={};c.type=a;b!=null&&(a=b.split("/"),b=a[0]==="projects"&&a[2]==="assets"&&["earthengine-legacy","earthengine-public"].includes(a[1])?a.slice(3).join("/"):b,c.id=b);return c},nk=function(a){var b={};a.num&&(b.pageSize=a.num);
480
- a.starttime&&(b.startTime=(new Date(a.starttime)).toISOString());a.endtime&&(b.endTime=(new Date(a.endtime)).toISOString());a.bbox&&(b.region=lk(a.bbox));a.region&&(b.region=a.region);a.bbox&&a.region&&console.warn("Multiple request parameters converted to region");var c="id num starttime endtime bbox region".split(" ");a=r(Object.keys(a).filter(function(e){return!c.includes(e)}));for(var d=a.next();!d.done;d=a.next())console.warn("Unrecognized key "+d.value+" ignored");return mk(b)},lk=function(a){return'{"type":"Polygon","coordinates":[[['+
481
- [[0,1],[2,1],[2,3],[0,3],[0,1]].map(function(b){return a[b[0]]+","+a[b[1]]}).join("],[")+"]]]}"},ok=function(a){var b={};(a.zd||[]).forEach(function(g){b[g.role]=g.Wb});var c=new Set,d=function(g){var f=g.replace(/^domain:|^group:|^serviceAccount:|^user:/,"");g.startsWith("group:")&&c.add(f);return f};a=b["roles/viewer"]||[];var e=a.filter(function(g){return g!=="allUsers"});d={owners:(b["roles/owner"]||[]).map(d),writers:(b["roles/editor"]||[]).map(d),readers:e.map(d)};c.size>0&&(d.groups=c);a.length!=
482
- e.length&&(d.all_users_can_read=!0);return d},pk=function(a){var b=function(d){return(a[d]||[]).map(function(e){if(e.includes(":"))return e;var g="user:";e.includes("@")?a.groups&&a.groups.has(e)?g="group:":e.match(/[@|\.]gserviceaccount\.com$/)&&(g="serviceAccount:"):g="domain:";return g+e})},c=a.all_users_can_read?["allUsers"]:[];b=[{role:"roles/owner",Wb:b("owners")},{role:"roles/viewer",Wb:b("readers").concat(c)},{role:"roles/editor",Wb:b("writers")}].map(function(d){return new gf(d)});return new Wf({zd:b.filter(function(d){return d.Wb.length}),
483
- hf:null})},rk=function(a){var b=/^projects\/(.+)\/operations\/.+$/.exec(a);return"projects/"+(b?b[1]:"earthengine-legacy")+"/operations/"+qk(a)},qk=function(a){var b=/^.*operations\/(.*)$/.exec(a);return b?b[1]:a},sk=function(a){var b={},c=function(g,f){f!=null&&(b[g]=Date.parse(f))},d=function(g){switch(g){case "PENDING":return"READY";case "RUNNING":return"RUNNING";case "CANCELLING":return"CANCEL_REQUESTED";case "SUCCEEDED":return"COMPLETED";case "CANCELLED":return"CANCELLED";case "FAILED":return"FAILED";
484
- default:return"UNKNOWN"}},e=Pa(Mg,a.metadata||{});e.description!=null&&(b.description=e.description);e.state!=null&&(b.state=d(e.state));c("creation_timestamp_ms",e.bf);c("update_timestamp_ms",e.updateTime);c("start_timestamp_ms",e.startTime);b.attempt=e.attempt;a.done&&a.error!=null&&(b.error_message=a.error.message);a.name!=null&&(b.id=qk(a.name),b.name=a.name);b.task_type=e.type||"UNKNOWN";b.output_url=e.ef;b.source_url=e.dg;e.xd!=null&&(b.batch_eecu_usage_seconds=e.xd);return b},tk=function(a){var b=
485
- {started:"OK"};a.name&&(b.taskId=qk(a.name),b.name=a.name);a.error&&(b.note=a.error.message);return b},uk=function(a){return a.primaryPath?[a.primaryPath].concat(na(a.additionalPaths||[])):null},xk=function(a){var b=function(g){var f=Pa(Ag,g);f.uris=uk(g);return f},c=Pa(wg,a);c.name=fk(a.id);c.tilesets=(a.tilesets||[]).map(function(g){var f=Pa(Df,g);f.sources=(g.sources||[]).map(b);return f});c.bands=(a.bands||[]).map(function(g){var f=Pa(xg,g);f.missingData=vk(g.missingData);return f});c.missingData=
486
- vk(a.missingData);c.Kf=pc((a.tilesets||[]).map(wk));c.pyramidingPolicy=a.pyramidingPolicy||null;if(a.properties){var d=Object.assign({},a.properties),e;a=function(g){e=d[g];delete d[g];return e};a("system:time_start")&&(c.startTime=(new Date(Number(e))).toISOString());a("system:time_end")&&(c.endTime=(new Date(Number(e))).toISOString());c.properties=d}return c},wk=function(a){var b=[];if(!Array.isArray(a.fileBands))return b;var c=function(d){var e=[];d!=null&&Array.isArray(d.bandId)&&(e=d.bandId.map(function(g){return g||
487
- ""}));return new yg({lb:a.id||"",da:e})};a.fileBands.forEach(function(d){d.maskForAllBands?b.push(c(null)):d.maskForBands!=null&&b.push(c(d.maskForBands))});return b},yk=function(a){var b=Pa(Dg,a);b.name=fk(a.id);b.sources=(a.sources||[]).map(function(e){var g=Pa(Zg,e);g.uris=uk(e);e.maxError&&(g.Ub=e.maxError);return g});if(a.properties){var c=Object.assign({},a.properties),d;a=function(e){d=c[e];delete c[e];return d};a("system:time_start")&&(b.startTime=(new Date(Number(d))).toISOString());a("system:time_end")&&
488
- (b.endTime=(new Date(Number(d))).toISOString());b.properties=c}return b},vk=function(a){if(a==null)return null;var b=new ug({values:[]});a.value!=null&&typeof a.value==="number"&&b.values.push(a.value);Array.isArray(a.values)&&a.values.map(function(c){typeof c==="number"&&b.values.push(c)});return b.values.length==0?null:b},zk=function(a){var b=[];"startTime"in a&&(b.push('startTime >= "'+(new Date(a.startTime)).toISOString()+'"'),delete a.startTime);"endTime"in a&&(b.push('endTime < "'+(new Date(a.endTime)).toISOString()+
478
+ a.featureCount);return b},lk=function(a){var b=new Bf,c=function(g){return g===null?Ka:void 0},d=Object.assign({},a),e;a=function(g){e=d[g];delete d[g];return e};a("system:asset_size")!==void 0&&(b.sizeBytes=c(e)||String(e));a("system:time_start")!==void 0&&(b.startTime=c(e)||(new Date(Number(e))).toISOString());a("system:time_end")!==void 0&&(b.endTime=c(e)||(new Date(Number(e))).toISOString());a("system:footprint")!==void 0&&(b.geometry=c(e)||e);a("system:title");typeof e!=="string"&&e!==null||
479
+ d.title!=null||(d.title=c(e)||e);a("system:description");typeof e!=="string"&&e!==null||d.description!=null||(d.description=c(e)||e);Object.entries(d).forEach(function(g){var f=r(g);g=f.next().value;f=f.next().value;d[g]=c(f)||f});b.properties=d;return b},kk=function(a,b){var c={};c.type=a;b!=null&&(a=b.split("/"),b=a[0]==="projects"&&a[2]==="assets"&&["earthengine-legacy","earthengine-public"].includes(a[1])?a.slice(3).join("/"):b,c.id=b);return c},ok=function(a){var b={};a.num&&(b.pageSize=a.num);
480
+ a.starttime&&(b.startTime=(new Date(a.starttime)).toISOString());a.endtime&&(b.endTime=(new Date(a.endtime)).toISOString());a.bbox&&(b.region=mk(a.bbox));a.region&&(b.region=a.region);a.bbox&&a.region&&console.warn("Multiple request parameters converted to region");var c="id num starttime endtime bbox region".split(" ");a=r(Object.keys(a).filter(function(e){return!c.includes(e)}));for(var d=a.next();!d.done;d=a.next())console.warn("Unrecognized key "+d.value+" ignored");return nk(b)},mk=function(a){return'{"type":"Polygon","coordinates":[[['+
481
+ [[0,1],[2,1],[2,3],[0,3],[0,1]].map(function(b){return a[b[0]]+","+a[b[1]]}).join("],[")+"]]]}"},pk=function(a){var b={};(a.zd||[]).forEach(function(g){b[g.role]=g.Wb});var c=new Set,d=function(g){var f=g.replace(/^domain:|^group:|^serviceAccount:|^user:/,"");g.startsWith("group:")&&c.add(f);return f};a=b["roles/viewer"]||[];var e=a.filter(function(g){return g!=="allUsers"});d={owners:(b["roles/owner"]||[]).map(d),writers:(b["roles/editor"]||[]).map(d),readers:e.map(d)};c.size>0&&(d.groups=c);a.length!=
482
+ e.length&&(d.all_users_can_read=!0);return d},qk=function(a){var b=function(d){return(a[d]||[]).map(function(e){if(e.includes(":"))return e;var g="user:";e.includes("@")?a.groups&&a.groups.has(e)?g="group:":e.match(/[@|\.]gserviceaccount\.com$/)&&(g="serviceAccount:"):g="domain:";return g+e})},c=a.all_users_can_read?["allUsers"]:[];b=[{role:"roles/owner",Wb:b("owners")},{role:"roles/viewer",Wb:b("readers").concat(c)},{role:"roles/editor",Wb:b("writers")}].map(function(d){return new gf(d)});return new Wf({zd:b.filter(function(d){return d.Wb.length}),
483
+ hf:null})},sk=function(a){var b=/^projects\/(.+)\/operations\/.+$/.exec(a);return"projects/"+(b?b[1]:"earthengine-legacy")+"/operations/"+rk(a)},rk=function(a){var b=/^.*operations\/(.*)$/.exec(a);return b?b[1]:a},tk=function(a){var b={},c=function(g,f){f!=null&&(b[g]=Date.parse(f))},d=function(g){switch(g){case "PENDING":return"READY";case "RUNNING":return"RUNNING";case "CANCELLING":return"CANCEL_REQUESTED";case "SUCCEEDED":return"COMPLETED";case "CANCELLED":return"CANCELLED";case "FAILED":return"FAILED";
484
+ default:return"UNKNOWN"}},e=Pa(Mg,a.metadata||{});e.description!=null&&(b.description=e.description);e.state!=null&&(b.state=d(e.state));c("creation_timestamp_ms",e.bf);c("update_timestamp_ms",e.updateTime);c("start_timestamp_ms",e.startTime);b.attempt=e.attempt;a.done&&a.error!=null&&(b.error_message=a.error.message);a.name!=null&&(b.id=rk(a.name),b.name=a.name);b.task_type=e.type||"UNKNOWN";b.output_url=e.ef;b.source_url=e.dg;e.xd!=null&&(b.batch_eecu_usage_seconds=e.xd);return b},uk=function(a){var b=
485
+ {started:"OK"};a.name&&(b.taskId=rk(a.name),b.name=a.name);a.error&&(b.note=a.error.message);return b},vk=function(a){return a.primaryPath?[a.primaryPath].concat(na(a.additionalPaths||[])):null},yk=function(a){var b=function(g){var f=Pa(Ag,g);f.uris=vk(g);return f},c=Pa(wg,a);c.name=gk(a.id);c.tilesets=(a.tilesets||[]).map(function(g){var f=Pa(Df,g);f.sources=(g.sources||[]).map(b);return f});c.bands=(a.bands||[]).map(function(g){var f=Pa(xg,g);f.missingData=wk(g.missingData);return f});c.missingData=
486
+ wk(a.missingData);c.Kf=pc((a.tilesets||[]).map(xk));c.pyramidingPolicy=a.pyramidingPolicy||null;if(a.properties){var d=Object.assign({},a.properties),e;a=function(g){e=d[g];delete d[g];return e};a("system:time_start")&&(c.startTime=(new Date(Number(e))).toISOString());a("system:time_end")&&(c.endTime=(new Date(Number(e))).toISOString());c.properties=d}return c},xk=function(a){var b=[];if(!Array.isArray(a.fileBands))return b;var c=function(d){var e=[];d!=null&&Array.isArray(d.bandId)&&(e=d.bandId.map(function(g){return g||
487
+ ""}));return new yg({lb:a.id||"",da:e})};a.fileBands.forEach(function(d){d.maskForAllBands?b.push(c(null)):d.maskForBands!=null&&b.push(c(d.maskForBands))});return b},zk=function(a){var b=Pa(Dg,a);b.name=gk(a.id);b.sources=(a.sources||[]).map(function(e){var g=Pa(Zg,e);g.uris=vk(e);e.maxError&&(g.Ub=e.maxError);return g});if(a.properties){var c=Object.assign({},a.properties),d;a=function(e){d=c[e];delete c[e];return d};a("system:time_start")&&(b.startTime=(new Date(Number(d))).toISOString());a("system:time_end")&&
488
+ (b.endTime=(new Date(Number(d))).toISOString());b.properties=c}return b},wk=function(a){if(a==null)return null;var b=new ug({values:[]});a.value!=null&&typeof a.value==="number"&&b.values.push(a.value);Array.isArray(a.values)&&a.values.map(function(c){typeof c==="number"&&b.values.push(c)});return b.values.length==0?null:b},Ak=function(a){var b=[];"startTime"in a&&(b.push('startTime >= "'+(new Date(a.startTime)).toISOString()+'"'),delete a.startTime);"endTime"in a&&(b.push('endTime < "'+(new Date(a.endTime)).toISOString()+
489
489
  '"'),delete a.endTime);if("region"in a){var c=a.region;if(typeof c==="object")try{c=JSON.stringify(c)}catch(e){throw Error('Filter parameter "region" must be a GeoJSON or WKT string.');}else if(typeof c!=="string")throw Error('Filter parameter "region" must be a GeoJSON or WKT string.');c=c.replace(/"/g,"'");b.push('intersects("'+c+'")');delete a.region}if("properties"in a){if(!Array.isArray(a.properties)&&a.properties.some(function(e){return typeof e!=="string"}))throw Error('Filter parameter "properties" must be an array of strings');
490
- c=r(a.properties);for(var d=c.next();!d.done;d=c.next())b.push(d.value.trim().replace(/^(properties\.)?/,"properties."));delete a.properties}return b.join(" AND ")},mk=function(a){a=Object.assign({},a);var b=zk(a);b&&(a.filter=a.filter?a.filter+" AND "+b:b);return a};function Ak(){this.blockSize=-1};function Bk(){this.blockSize=-1;this.blockSize=64;this.X=Array(4);this.Pk=Array(this.blockSize);this.re=this.Hc=0;this.reset()}y(Bk,Ak);Bk.prototype.reset=function(){this.X[0]=1732584193;this.X[1]=4023233417;this.X[2]=2562383102;this.X[3]=271733878;this.re=this.Hc=0};
491
- var Ck=function(a,b,c){c||(c=0);var d=Array(16);if(typeof b==="string")for(var e=0;e<16;++e)d[e]=b.charCodeAt(c++)|b.charCodeAt(c++)<<8|b.charCodeAt(c++)<<16|b.charCodeAt(c++)<<24;else for(e=0;e<16;++e)d[e]=b[c++]|b[c++]<<8|b[c++]<<16|b[c++]<<24;b=a.X[0];c=a.X[1];e=a.X[2];var g=a.X[3];var f=b+(g^c&(e^g))+d[0]+3614090360&4294967295;b=c+(f<<7&4294967295|f>>>25);f=g+(e^b&(c^e))+d[1]+3905402710&4294967295;g=b+(f<<12&4294967295|f>>>20);f=e+(c^g&(b^c))+d[2]+606105819&4294967295;e=g+(f<<17&4294967295|f>>>
490
+ c=r(a.properties);for(var d=c.next();!d.done;d=c.next())b.push(d.value.trim().replace(/^(properties\.)?/,"properties."));delete a.properties}return b.join(" AND ")},nk=function(a){a=Object.assign({},a);var b=Ak(a);b&&(a.filter=a.filter?a.filter+" AND "+b:b);return a};function Bk(){this.blockSize=-1};function Ck(){this.blockSize=-1;this.blockSize=64;this.X=Array(4);this.Pk=Array(this.blockSize);this.re=this.Hc=0;this.reset()}y(Ck,Bk);Ck.prototype.reset=function(){this.X[0]=1732584193;this.X[1]=4023233417;this.X[2]=2562383102;this.X[3]=271733878;this.re=this.Hc=0};
491
+ var Dk=function(a,b,c){c||(c=0);var d=Array(16);if(typeof b==="string")for(var e=0;e<16;++e)d[e]=b.charCodeAt(c++)|b.charCodeAt(c++)<<8|b.charCodeAt(c++)<<16|b.charCodeAt(c++)<<24;else for(e=0;e<16;++e)d[e]=b[c++]|b[c++]<<8|b[c++]<<16|b[c++]<<24;b=a.X[0];c=a.X[1];e=a.X[2];var g=a.X[3];var f=b+(g^c&(e^g))+d[0]+3614090360&4294967295;b=c+(f<<7&4294967295|f>>>25);f=g+(e^b&(c^e))+d[1]+3905402710&4294967295;g=b+(f<<12&4294967295|f>>>20);f=e+(c^g&(b^c))+d[2]+606105819&4294967295;e=g+(f<<17&4294967295|f>>>
492
492
  15);f=c+(b^e&(g^b))+d[3]+3250441966&4294967295;c=e+(f<<22&4294967295|f>>>10);f=b+(g^c&(e^g))+d[4]+4118548399&4294967295;b=c+(f<<7&4294967295|f>>>25);f=g+(e^b&(c^e))+d[5]+1200080426&4294967295;g=b+(f<<12&4294967295|f>>>20);f=e+(c^g&(b^c))+d[6]+2821735955&4294967295;e=g+(f<<17&4294967295|f>>>15);f=c+(b^e&(g^b))+d[7]+4249261313&4294967295;c=e+(f<<22&4294967295|f>>>10);f=b+(g^c&(e^g))+d[8]+1770035416&4294967295;b=c+(f<<7&4294967295|f>>>25);f=g+(e^b&(c^e))+d[9]+2336552879&4294967295;g=b+(f<<12&4294967295|
493
493
  f>>>20);f=e+(c^g&(b^c))+d[10]+4294925233&4294967295;e=g+(f<<17&4294967295|f>>>15);f=c+(b^e&(g^b))+d[11]+2304563134&4294967295;c=e+(f<<22&4294967295|f>>>10);f=b+(g^c&(e^g))+d[12]+1804603682&4294967295;b=c+(f<<7&4294967295|f>>>25);f=g+(e^b&(c^e))+d[13]+4254626195&4294967295;g=b+(f<<12&4294967295|f>>>20);f=e+(c^g&(b^c))+d[14]+2792965006&4294967295;e=g+(f<<17&4294967295|f>>>15);f=c+(b^e&(g^b))+d[15]+1236535329&4294967295;c=e+(f<<22&4294967295|f>>>10);f=b+(e^g&(c^e))+d[1]+4129170786&4294967295;b=c+(f<<
494
494
  5&4294967295|f>>>27);f=g+(c^e&(b^c))+d[6]+3225465664&4294967295;g=b+(f<<9&4294967295|f>>>23);f=e+(b^c&(g^b))+d[11]+643717713&4294967295;e=g+(f<<14&4294967295|f>>>18);f=c+(g^b&(e^g))+d[0]+3921069994&4294967295;c=e+(f<<20&4294967295|f>>>12);f=b+(e^g&(c^e))+d[5]+3593408605&4294967295;b=c+(f<<5&4294967295|f>>>27);f=g+(c^e&(b^c))+d[10]+38016083&4294967295;g=b+(f<<9&4294967295|f>>>23);f=e+(b^c&(g^b))+d[15]+3634488961&4294967295;e=g+(f<<14&4294967295|f>>>18);f=c+(g^b&(e^g))+d[4]+3889429448&4294967295;c=
@@ -498,229 +498,229 @@ f>>>21);f=e+(g^b^c)+d[7]+4139469664&4294967295;e=g+(f<<16&4294967295|f>>>16);f=c
498
498
  3873151461&4294967295;g=b+(f<<11&4294967295|f>>>21);f=e+(g^b^c)+d[15]+530742520&4294967295;e=g+(f<<16&4294967295|f>>>16);f=c+(e^g^b)+d[2]+3299628645&4294967295;c=e+(f<<23&4294967295|f>>>9);f=b+(e^(c|~g))+d[0]+4096336452&4294967295;b=c+(f<<6&4294967295|f>>>26);f=g+(c^(b|~e))+d[7]+1126891415&4294967295;g=b+(f<<10&4294967295|f>>>22);f=e+(b^(g|~c))+d[14]+2878612391&4294967295;e=g+(f<<15&4294967295|f>>>17);f=c+(g^(e|~b))+d[5]+4237533241&4294967295;c=e+(f<<21&4294967295|f>>>11);f=b+(e^(c|~g))+d[12]+1700485571&
499
499
  4294967295;b=c+(f<<6&4294967295|f>>>26);f=g+(c^(b|~e))+d[3]+2399980690&4294967295;g=b+(f<<10&4294967295|f>>>22);f=e+(b^(g|~c))+d[10]+4293915773&4294967295;e=g+(f<<15&4294967295|f>>>17);f=c+(g^(e|~b))+d[1]+2240044497&4294967295;c=e+(f<<21&4294967295|f>>>11);f=b+(e^(c|~g))+d[8]+1873313359&4294967295;b=c+(f<<6&4294967295|f>>>26);f=g+(c^(b|~e))+d[15]+4264355552&4294967295;g=b+(f<<10&4294967295|f>>>22);f=e+(b^(g|~c))+d[6]+2734768916&4294967295;e=g+(f<<15&4294967295|f>>>17);f=c+(g^(e|~b))+d[13]+1309151649&
500
500
  4294967295;c=e+(f<<21&4294967295|f>>>11);f=b+(e^(c|~g))+d[4]+4149444226&4294967295;b=c+(f<<6&4294967295|f>>>26);f=g+(c^(b|~e))+d[11]+3174756917&4294967295;g=b+(f<<10&4294967295|f>>>22);f=e+(b^(g|~c))+d[2]+718787259&4294967295;e=g+(f<<15&4294967295|f>>>17);f=c+(g^(e|~b))+d[9]+3951481745&4294967295;a.X[0]=a.X[0]+b&4294967295;a.X[1]=a.X[1]+(e+(f<<21&4294967295|f>>>11))&4294967295;a.X[2]=a.X[2]+e&4294967295;a.X[3]=a.X[3]+g&4294967295};
501
- Bk.prototype.update=function(a,b){b===void 0&&(b=a.length);for(var c=b-this.blockSize,d=this.Pk,e=this.Hc,g=0;g<b;){if(e==0)for(;g<=c;)Ck(this,a,g),g+=this.blockSize;if(typeof a==="string")for(;g<b;){if(d[e++]=a.charCodeAt(g++),e==this.blockSize){Ck(this,d);e=0;break}}else for(;g<b;)if(d[e++]=a[g++],e==this.blockSize){Ck(this,d);e=0;break}}this.Hc=e;this.re+=b};
502
- Bk.prototype.digest=function(){var a=Array((this.Hc<56?this.blockSize:this.blockSize*2)-this.Hc);a[0]=128;for(var b=1;b<a.length-8;++b)a[b]=0;b=this.re*8;for(var c=a.length-8;c<a.length;++c)a[c]=b&255,b/=256;this.update(a);a=Array(16);for(c=b=0;c<4;++c)for(var d=0;d<32;d+=8)a[b++]=this.X[c]>>>d&255;return a};var Dk=function(a){this.sd="__ee_hash__";this.Ud=a!==!1;this.Wa=[];this.va={};this.Cg=[];this.Qd=new WeakMap;this.mg=new WeakMap;this.Ri=void 0};x("ee.Serializer",Dk);var Ek=new Ji,Fk=new Bk,Hk=function(a,b){return Gk(new Dk(b!==void 0?b:!0),a)};x("ee.Serializer.encode",Hk);var Ik=function(a){return Ek.ua(Hk(a))};x("ee.Serializer.toJSON",Ik);var Kk=function(a){return Jk(Hk(a,!1))};x("ee.Serializer.toReadableJSON",Kk);
503
- var Jk=function(a){return"JSON"in t?t.JSON.stringify(a,null," "):Ek.ua(a)},Gk=function(a,b){b=a.Hd(b);a.Ud&&(b=u(b)&&b.type=="ValueRef"&&a.Wa.length==1?a.Wa[0][1]:{type:"CompoundValue",scope:a.Wa,value:b},a.Wa=[],bc(a.Cg,w(function(c){delete c[this.sd]},a)),a.Cg=[],a.va={});return b};
504
- Dk.prototype.Hd=function(a){if(a===void 0)throw Error("Can't encode an undefined value.");var b=u(a)?a[this.sd]:null;if(this.Ud&&b!=null&&this.va[b])return{type:"ValueRef",value:this.va[b]};if(a===null||typeof a==="boolean"||typeof a==="number"||typeof a==="string")return a;if(Ba(a))return{type:"Invocation",functionName:"Date",arguments:{value:Math.floor(a.getTime())}};if(a instanceof Kj){var c=a.encode(w(this.Hd,this));if(!(Array.isArray(c)||u(c)&&c.type!="ArgumentRef"))return c}else if(Array.isArray(a))c=
505
- dc(a,function(e){return this.Hd(e)},this);else if(u(a)&&typeof a!=="function")c=ab(a,function(e){if(typeof e!=="function")return this.Hd(e)},this),ib(c,this.sd),c={type:"Dictionary",value:c};else throw Error("Can't encode object: "+a);if(this.Ud){b=Lk(c);if(this.va[b])var d=this.va[b];else d=String(this.Wa.length),this.Wa.push([d,c]),this.va[b]=d;a[this.sd]=b;this.Cg.push(a);return{type:"ValueRef",value:d}}return c};
506
- var Lk=function(a){Fk.reset();Fk.update(Ek.ua(a));return Fk.digest().toString()},Nk=function(a){a=Mk(a);return Qa(a,Ma,Na,Oa)};x("ee.Serializer.encodeCloudApi",Nk);
507
- var Mk=function(a,b){return Ok(new Dk(!0),a,b)},Ok=function(a,b,c){a.Ri=c;return Pk(a,b)},Qk=function(a,b){var c={};b=b.values;for(var d in b){var e=a.mg.get(b[d]);c[d]=Object.assign({},e)}return c},Rk=function(a){a=Pk(new Dk(!1),a);var b=a.values,c=function(d){if(!u(d))return d;var e=Array.isArray(d)?[]:{},g=d instanceof Object.getPrototypeOf(af);d=r(Object.entries(g?d.h:d));for(var f=d.next();!f.done;f=d.next()){var l=r(f.value);f=l.next().value;l=l.next().value;g?l!==null&&(e[f]=f==="functionDefinitionValue"&&
508
- l.body!=null?{argumentNames:l.mc,body:c(b[l.body])}:f==="functionInvocationValue"&&l.Ta!=null?{arguments:ab(l.arguments,c),functionReference:c(b[l.Ta])}:f==="constantValue"?l===Ka?null:l:c(l)):e[f]=c(l)}return e};return a.result&&c(b[a.result])};x("ee.Serializer.encodeCloudApiPretty",Rk);var Sk=function(a){return Ek.ua(Nk(a))};x("ee.Serializer.toCloudApiJSON",Sk);var Tk=function(a){return Jk(Rk(a))};x("ee.Serializer.toReadableCloudApiJSON",Tk);
509
- var Pk=function(a,b){try{var c=Uk(a,b),d=new Vk(c,a.Wa,a.Ud,a.mg),e=Wk(d,d.wi);return new rf({result:e,values:d.gi})}finally{a.Qd=new WeakMap,a.va={},a.Wa=[]}},Uk=function(a,b){var c=function(f){var l=Lk(f);u(b)&&a.Qd.set(b,l);if(a.va[l])return a.va[l];var m=String(a.Wa.length);a.Wa.push([m,f]);return a.va[l]=m};if(u(b)&&a.va[a.Qd.get(b)])return a.va[a.Qd.get(b)];if(b===null||typeof b==="boolean"||typeof b==="string"||typeof b==="number")return c(Mj(b));if(Ba(b))return c(Qj("Date",{value:Mj(Math.floor(b.getTime()))}));
510
- if(b instanceof Kj){var d=b.ma(a),e=b.Dh();e!==null&&a.mg.set(d,e);return c(d)}if(Array.isArray(b))return c(Oj(b.map(function(f){return Nj(Uk(a,f))})));if(u(b)&&typeof b!=="function"){var g={};Object.keys(b).sort().forEach(function(f){g[f]=Nj(Uk(a,b[f]))});return c(Pj(g))}throw Error("Can't encode object: "+b);},Vk=function(a,b,c,d){var e=this;this.wi=a;this.values={};b.forEach(function(g){return e.values[g[0]]=g[1]});this.oi=c?Xk(this):null;this.gi={};this.Xf={};this.nl=0;this.kd=d},Wk=function(a,
511
- b){if(b in a.Xf)return a.Xf[b];var c=String(a.nl++);a.Xf[b]=c;a.gi[c]=Yk(a,a.values[b],0);return c},Yk=function(a,b,c){var d=function(z){return z.fb!==null},e=function(z){return z===Ka?null:z},g=function(z,B){a.kd&&a.kd.has(z)&&!a.kd.has(B)&&a.kd.set(B,a.kd.get(z));return B};if(d(b)||b.Ua!=null||b.ob!=null||b.Kb!=null)return b;if(b.Na!=null){d=a.values[b.Na];if(a.oi===null||c<50&&a.oi[b.Na]===1)return d=Yk(a,d,c),g(b,d);if(Zk(d))return g(b,d);d=Nj(Wk(a,b.Na));return g(b,d)}if(b.Ea!=null){var f=b.Ea.values.map(function(z){return Yk(a,
512
- z,c+3)});d=f.every(d)?Mj(f.map(function(z){return e(z.fb)})):Oj(f);return g(b,d)}if(b.Fa!=null){f={};for(var l={},m=r(Object.entries(b.Fa.values||{})),p=m.next();!p.done;p=m.next()){var v=r(p.value);p=v.next().value;v=v.next().value;f[p]=Yk(a,v,c+3);l!==null&&d(f[p])?l[p]=e(f[p].fb):l=null}return l!==null?g(b,Mj(l)):g(f,Pj(f))}if(b.Sa!=null)return d=b.Sa,d=Sj(d.mc||[],Wk(a,d.body||"")),g(b,d);if(b.xa!=null){d=b.xa;f={};l=r(Object.keys(d.arguments||{}));for(m=l.next();!m.done;m=l.next())m=m.value,
513
- f[m]=Yk(a,d.arguments[m],c+3);d=d.functionName?Qj(d.functionName,f):Rj(Wk(a,d.Ta||""),f);return g(b,d)}throw Error("Can't optimize value: "+b);},Zk=function(a){var b=a.fb;return b!==null?b===Ka||typeof b==="number"||typeof b==="boolean":a.Kb!=null},Xk=function(a){var b={},c=function(e){b[e]?b[e]++:(b[e]=1,d(a.values[e]))},d=function(e){e.Ea!=null?e.Ea.values.forEach(d):e.Fa!=null?Object.values(e.Fa.values).forEach(d):e.Sa!=null?c(e.Sa.body):e.xa!=null?(e=e.xa,e.Ta!=null&&c(e.Ta),Object.values(e.arguments).forEach(d)):
514
- e.Na!=null&&c(e.Na)};c(a.wi);return b};var el=function(a){if(a.element==null)throw Error('"element" not found in params '+a);var b=a.selectors||null;b!=null&&typeof b==="string"&&(b=b.split(","));b=new Sf({l:Mk(a.element),description:L(a.description),na:null,ra:null,Kd:null,yd:null,selectors:b,Ub:M(a.maxErrorMeters),requestId:L(a.id),maxVertices:M(a.maxVertices),P:M(a.maxWorkers),priority:M(a.priority)});var c=$k(a);switch(c){case "GOOGLE_CLOUD_STORAGE":case "DRIVE":var d=new Vf({ja:null,la:null,G:Uj(a.fileFormat)});c==="GOOGLE_CLOUD_STORAGE"?
515
- d.ja=al(a):d.la=bl(a);b.na=d;break;case "ASSET":b.ra=new Tf({Ga:cl(a)});break;case "FEATURE_VIEW":c=new cg({name:fk(a.mapName)});d=a==null?null:new hg({Mf:M(a.maxFeaturesPerTile),sg:a.thinningStrategy});var e=a==null?null:new gg({Dg:dl(a.zOrderRanking),rg:dl(a.thinningRanking)});d=new dg({qg:d,Wf:e});c=new Uf({kf:c,tc:d});b.Kd=c;break;case "BIGQUERY":b.yd=new ff({Pe:new ef({table:L(a.table),overwrite:!!a.overwrite,append:!!a.append})});break;default:throw Error('Export destination "'+c+'" unknown');
501
+ Ck.prototype.update=function(a,b){b===void 0&&(b=a.length);for(var c=b-this.blockSize,d=this.Pk,e=this.Hc,g=0;g<b;){if(e==0)for(;g<=c;)Dk(this,a,g),g+=this.blockSize;if(typeof a==="string")for(;g<b;){if(d[e++]=a.charCodeAt(g++),e==this.blockSize){Dk(this,d);e=0;break}}else for(;g<b;)if(d[e++]=a[g++],e==this.blockSize){Dk(this,d);e=0;break}}this.Hc=e;this.re+=b};
502
+ Ck.prototype.digest=function(){var a=Array((this.Hc<56?this.blockSize:this.blockSize*2)-this.Hc);a[0]=128;for(var b=1;b<a.length-8;++b)a[b]=0;b=this.re*8;for(var c=a.length-8;c<a.length;++c)a[c]=b&255,b/=256;this.update(a);a=Array(16);for(c=b=0;c<4;++c)for(var d=0;d<32;d+=8)a[b++]=this.X[c]>>>d&255;return a};var Ek=function(a){this.sd="__ee_hash__";this.Ud=a!==!1;this.Wa=[];this.va={};this.Cg=[];this.Qd=new WeakMap;this.mg=new WeakMap;this.Ri=void 0};x("ee.Serializer",Ek);var Fk=new Ki,Gk=new Ck,Ik=function(a,b){return Hk(new Ek(b!==void 0?b:!0),a)};x("ee.Serializer.encode",Ik);var Jk=function(a){return Fk.ua(Ik(a))};x("ee.Serializer.toJSON",Jk);var Lk=function(a){return Kk(Ik(a,!1))};x("ee.Serializer.toReadableJSON",Lk);
503
+ var Kk=function(a){return"JSON"in t?t.JSON.stringify(a,null," "):Fk.ua(a)},Hk=function(a,b){b=a.Hd(b);a.Ud&&(b=u(b)&&b.type=="ValueRef"&&a.Wa.length==1?a.Wa[0][1]:{type:"CompoundValue",scope:a.Wa,value:b},a.Wa=[],bc(a.Cg,w(function(c){delete c[this.sd]},a)),a.Cg=[],a.va={});return b};
504
+ Ek.prototype.Hd=function(a){if(a===void 0)throw Error("Can't encode an undefined value.");var b=u(a)?a[this.sd]:null;if(this.Ud&&b!=null&&this.va[b])return{type:"ValueRef",value:this.va[b]};if(a===null||typeof a==="boolean"||typeof a==="number"||typeof a==="string")return a;if(Ba(a))return{type:"Invocation",functionName:"Date",arguments:{value:Math.floor(a.getTime())}};if(a instanceof Lj){var c=a.encode(w(this.Hd,this));if(!(Array.isArray(c)||u(c)&&c.type!="ArgumentRef"))return c}else if(Array.isArray(a))c=
505
+ dc(a,function(e){return this.Hd(e)},this);else if(u(a)&&typeof a!=="function")c=ab(a,function(e){if(typeof e!=="function")return this.Hd(e)},this),ib(c,this.sd),c={type:"Dictionary",value:c};else throw Error("Can't encode object: "+a);if(this.Ud){b=Mk(c);if(this.va[b])var d=this.va[b];else d=String(this.Wa.length),this.Wa.push([d,c]),this.va[b]=d;a[this.sd]=b;this.Cg.push(a);return{type:"ValueRef",value:d}}return c};
506
+ var Mk=function(a){Gk.reset();Gk.update(Fk.ua(a));return Gk.digest().toString()},Ok=function(a){a=Nk(a);return Qa(a,Ma,Na,Oa)};x("ee.Serializer.encodeCloudApi",Ok);
507
+ var Nk=function(a,b){return Pk(new Ek(!0),a,b)},Pk=function(a,b,c){a.Ri=c;return Qk(a,b)},Rk=function(a,b){var c={};b=b.values;for(var d in b){var e=a.mg.get(b[d]);c[d]=Object.assign({},e)}return c},Sk=function(a){a=Qk(new Ek(!1),a);var b=a.values,c=function(d){if(!u(d))return d;var e=Array.isArray(d)?[]:{},g=d instanceof Object.getPrototypeOf(af);d=r(Object.entries(g?d.h:d));for(var f=d.next();!f.done;f=d.next()){var l=r(f.value);f=l.next().value;l=l.next().value;g?l!==null&&(e[f]=f==="functionDefinitionValue"&&
508
+ l.body!=null?{argumentNames:l.mc,body:c(b[l.body])}:f==="functionInvocationValue"&&l.Ta!=null?{arguments:ab(l.arguments,c),functionReference:c(b[l.Ta])}:f==="constantValue"?l===Ka?null:l:c(l)):e[f]=c(l)}return e};return a.result&&c(b[a.result])};x("ee.Serializer.encodeCloudApiPretty",Sk);var Tk=function(a){return Fk.ua(Ok(a))};x("ee.Serializer.toCloudApiJSON",Tk);var Uk=function(a){return Kk(Sk(a))};x("ee.Serializer.toReadableCloudApiJSON",Uk);
509
+ var Qk=function(a,b){try{var c=Vk(a,b),d=new Wk(c,a.Wa,a.Ud,a.mg),e=Xk(d,d.wi);return new rf({result:e,values:d.gi})}finally{a.Qd=new WeakMap,a.va={},a.Wa=[]}},Vk=function(a,b){var c=function(f){var l=Mk(f);u(b)&&a.Qd.set(b,l);if(a.va[l])return a.va[l];var m=String(a.Wa.length);a.Wa.push([m,f]);return a.va[l]=m};if(u(b)&&a.va[a.Qd.get(b)])return a.va[a.Qd.get(b)];if(b===null||typeof b==="boolean"||typeof b==="string"||typeof b==="number")return c(Nj(b));if(Ba(b))return c(Rj("Date",{value:Nj(Math.floor(b.getTime()))}));
510
+ if(b instanceof Lj){var d=b.ma(a),e=b.Dh();e!==null&&a.mg.set(d,e);return c(d)}if(Array.isArray(b))return c(Pj(b.map(function(f){return Oj(Vk(a,f))})));if(u(b)&&typeof b!=="function"){var g={};Object.keys(b).sort().forEach(function(f){g[f]=Oj(Vk(a,b[f]))});return c(Qj(g))}throw Error("Can't encode object: "+b);},Wk=function(a,b,c,d){var e=this;this.wi=a;this.values={};b.forEach(function(g){return e.values[g[0]]=g[1]});this.oi=c?Yk(this):null;this.gi={};this.Xf={};this.nl=0;this.kd=d},Xk=function(a,
511
+ b){if(b in a.Xf)return a.Xf[b];var c=String(a.nl++);a.Xf[b]=c;a.gi[c]=Zk(a,a.values[b],0);return c},Zk=function(a,b,c){var d=function(z){return z.fb!==null},e=function(z){return z===Ka?null:z},g=function(z,B){a.kd&&a.kd.has(z)&&!a.kd.has(B)&&a.kd.set(B,a.kd.get(z));return B};if(d(b)||b.Ua!=null||b.ob!=null||b.Kb!=null)return b;if(b.Na!=null){d=a.values[b.Na];if(a.oi===null||c<50&&a.oi[b.Na]===1)return d=Zk(a,d,c),g(b,d);if($k(d))return g(b,d);d=Oj(Xk(a,b.Na));return g(b,d)}if(b.Ea!=null){var f=b.Ea.values.map(function(z){return Zk(a,
512
+ z,c+3)});d=f.every(d)?Nj(f.map(function(z){return e(z.fb)})):Pj(f);return g(b,d)}if(b.Fa!=null){f={};for(var l={},m=r(Object.entries(b.Fa.values||{})),p=m.next();!p.done;p=m.next()){var v=r(p.value);p=v.next().value;v=v.next().value;f[p]=Zk(a,v,c+3);l!==null&&d(f[p])?l[p]=e(f[p].fb):l=null}return l!==null?g(b,Nj(l)):g(f,Qj(f))}if(b.Sa!=null)return d=b.Sa,d=Tj(d.mc||[],Xk(a,d.body||"")),g(b,d);if(b.xa!=null){d=b.xa;f={};l=r(Object.keys(d.arguments||{}));for(m=l.next();!m.done;m=l.next())m=m.value,
513
+ f[m]=Zk(a,d.arguments[m],c+3);d=d.functionName?Rj(d.functionName,f):Sj(Xk(a,d.Ta||""),f);return g(b,d)}throw Error("Can't optimize value: "+b);},$k=function(a){var b=a.fb;return b!==null?b===Ka||typeof b==="number"||typeof b==="boolean":a.Kb!=null},Yk=function(a){var b={},c=function(e){b[e]?b[e]++:(b[e]=1,d(a.values[e]))},d=function(e){e.Ea!=null?e.Ea.values.forEach(d):e.Fa!=null?Object.values(e.Fa.values).forEach(d):e.Sa!=null?c(e.Sa.body):e.xa!=null?(e=e.xa,e.Ta!=null&&c(e.Ta),Object.values(e.arguments).forEach(d)):
514
+ e.Na!=null&&c(e.Na)};c(a.wi);return b};var fl=function(a){if(a.element==null)throw Error('"element" not found in params '+a);var b=a.selectors||null;b!=null&&typeof b==="string"&&(b=b.split(","));b=new Sf({l:Nk(a.element),description:L(a.description),na:null,ra:null,Kd:null,yd:null,selectors:b,Ub:M(a.maxErrorMeters),requestId:L(a.id),maxVertices:M(a.maxVertices),P:M(a.maxWorkers),priority:M(a.priority)});var c=al(a);switch(c){case "GOOGLE_CLOUD_STORAGE":case "DRIVE":var d=new Vf({ja:null,la:null,G:Vj(a.fileFormat)});c==="GOOGLE_CLOUD_STORAGE"?
515
+ d.ja=bl(a):d.la=cl(a);b.na=d;break;case "ASSET":b.ra=new Tf({Ga:dl(a)});break;case "FEATURE_VIEW":c=new cg({name:gk(a.mapName)});d=a==null?null:new hg({Mf:M(a.maxFeaturesPerTile),sg:a.thinningStrategy});var e=a==null?null:new gg({Dg:el(a.zOrderRanking),rg:el(a.thinningRanking)});d=new dg({qg:d,Wf:e});c=new Uf({kf:c,tc:d});b.Kd=c;break;case "BIGQUERY":b.yd=new ff({Pe:new ef({table:L(a.table),overwrite:!!a.overwrite,append:!!a.append})});break;default:throw Error('Export destination "'+c+'" unknown');
516
516
  }a.workloadTag&&(b.workloadTag=a.workloadTag);return b};function L(a){return a!=null?String(a):null}function M(a){return a!=null?Number(a):null}
517
- var $k=function(a){var b="DRIVE";if(a==null)return b;a.outputBucket!=null||a.outputPrefix!=null?b="GOOGLE_CLOUD_STORAGE":a.assetId!=null?b="ASSET":a.mapName!=null&&(b="FEATURE_VIEW");a.table!=null&&(b="BIGQUERY");return b},gl=function(a){var b=new vg({Xe:!!a.tfrecordCompressed,Vb:L(a.tfrecordMaxFileSize),eg:!!a.tfrecordSequenceData,Ve:!!a.tfrecordCollapseBands,Nf:M(a.tfrecordMaskedThreshold),defaultValue:M(a.tfrecordDefaultValue),bc:fl(a.tfrecordPatchDimensions),Jf:fl(a.tfrecordKernelSize),me:null});
518
- a=a.tfrecordTensorDepths;if(a!=null)if(u(a)){var c={};Za(a,function(d,e){if(typeof e!=="string"||typeof d!=="number")throw Error('"tensorDepths" option must be an object of type Object<string, number>');c[e]=d});b.me=c}else throw Error('"tensorDepths" option needs to have the form Object<string, number>.');return b},hl=function(a,b){var c=new Of({ja:null,la:null,Ld:null,ne:null,G:Tj(a.fileFormat)});if(c.G==="GEO_TIFF"){if(a.fileDimensions&&a.tiffFileDimensions)throw Error('Export cannot set both "fileDimensions" and "tiffFileDimensions".');
519
- var d=a.tiffShardSize||a.shardSize;var e=!!a.tiffCloudOptimized;var g=!(!a.skipEmptyTiles&&!a.tiffSkipEmptyFiles),f=fl(a.fileDimensions||a.tiffFileDimensions);d=M(d);var l=a.tiffNoData;l=l!=null?new ng({pf:Number(l)}):null;e=new mg({Ue:e,kg:g,bc:f,tileSize:d,Pf:l});c.Ld=e}else c.G==="TF_RECORD_IMAGE"&&(c.ne=gl(a));b==="GOOGLE_CLOUD_STORAGE"?c.ja=al(a):c.la=bl(a);return c},il=function(a,b){var c=new Yf({ja:null,la:null,G:"MP4"});b==="GOOGLE_CLOUD_STORAGE"?c.ja=al(a):c.la=bl(a);return c},jl=function(a){var b,
520
- c,d,e,g=M((b=a.endZoom)!=null?b:a.maxZoom);b=M((c=a.startZoom)!=null?c:a.minZoom);c=M(a.scale);var f=!((d=a.skipEmpty)!=null?!d:!a.skipEmptyTiles);d=L(a.mapsApiKey);var l=fl((e=a.dimensions)!=null?e:a.tileDimensions);e=M(a.stride);var m=M(a.minTimeMachineZoomSubset);a=M(a.maxTimeMachineZoomSubset);a=m==null&&a==null?null:new ah({start:m!=null?m:0,end:a});return new Rf({ff:g,ng:b,scale:c,jg:f,If:d,dimensions:l,stride:e,Eg:a})},fl=function(a){if(a==null)return null;var b=new og({height:0,width:0});
517
+ var al=function(a){var b="DRIVE";if(a==null)return b;a.outputBucket!=null||a.outputPrefix!=null?b="GOOGLE_CLOUD_STORAGE":a.assetId!=null?b="ASSET":a.mapName!=null&&(b="FEATURE_VIEW");a.table!=null&&(b="BIGQUERY");return b},hl=function(a){var b=new vg({Xe:!!a.tfrecordCompressed,Vb:L(a.tfrecordMaxFileSize),eg:!!a.tfrecordSequenceData,Ve:!!a.tfrecordCollapseBands,Nf:M(a.tfrecordMaskedThreshold),defaultValue:M(a.tfrecordDefaultValue),bc:gl(a.tfrecordPatchDimensions),Jf:gl(a.tfrecordKernelSize),me:null});
518
+ a=a.tfrecordTensorDepths;if(a!=null)if(u(a)){var c={};Za(a,function(d,e){if(typeof e!=="string"||typeof d!=="number")throw Error('"tensorDepths" option must be an object of type Object<string, number>');c[e]=d});b.me=c}else throw Error('"tensorDepths" option needs to have the form Object<string, number>.');return b},il=function(a,b){var c=new Of({ja:null,la:null,Ld:null,ne:null,G:Uj(a.fileFormat)});if(c.G==="GEO_TIFF"){if(a.fileDimensions&&a.tiffFileDimensions)throw Error('Export cannot set both "fileDimensions" and "tiffFileDimensions".');
519
+ var d=a.tiffShardSize||a.shardSize;var e=!!a.tiffCloudOptimized;var g=!(!a.skipEmptyTiles&&!a.tiffSkipEmptyFiles),f=gl(a.fileDimensions||a.tiffFileDimensions);d=M(d);var l=a.tiffNoData;l=l!=null?new ng({pf:Number(l)}):null;e=new mg({Ue:e,kg:g,bc:f,tileSize:d,Pf:l});c.Ld=e}else c.G==="TF_RECORD_IMAGE"&&(c.ne=hl(a));b==="GOOGLE_CLOUD_STORAGE"?c.ja=bl(a):c.la=cl(a);return c},jl=function(a,b){var c=new Yf({ja:null,la:null,G:"MP4"});b==="GOOGLE_CLOUD_STORAGE"?c.ja=bl(a):c.la=cl(a);return c},kl=function(a){var b,
520
+ c,d,e,g=M((b=a.endZoom)!=null?b:a.maxZoom);b=M((c=a.startZoom)!=null?c:a.minZoom);c=M(a.scale);var f=!((d=a.skipEmpty)!=null?!d:!a.skipEmptyTiles);d=L(a.mapsApiKey);var l=gl((e=a.dimensions)!=null?e:a.tileDimensions);e=M(a.stride);var m=M(a.minTimeMachineZoomSubset);a=M(a.maxTimeMachineZoomSubset);a=m==null&&a==null?null:new ah({start:m!=null?m:0,end:a});return new Rf({ff:g,ng:b,scale:c,jg:f,If:d,dimensions:l,stride:e,Eg:a})},gl=function(a){if(a==null)return null;var b=new og({height:0,width:0});
521
521
  typeof a==="string"&&(a.indexOf("x")!==-1?a=a.split("x").map(Number):a.indexOf(",")!==-1&&(a=a.split(",").map(Number)));if(Array.isArray(a))if(a.length===2)b.height=a[0],b.width=a[1];else if(a.length===1)b.height=a[0],b.width=a[0];else throw Error("Unable to construct grid from dimensions: "+a);else if(typeof a!=="number"||isNaN(a))if(u(a)&&a.height!=null&&a.width!=null)b.height=a.height,b.width=a.width;else throw Error("Unable to construct grid from dimensions: "+a);else b.height=a,b.width=a;return b},
522
- al=function(a){var b=null;a.writePublicTiles!=null&&(b=a.writePublicTiles?"PUBLIC":"DEFAULT_OBJECT_ACL");return new of({Se:L(a.outputBucket),wa:L(a.outputPrefix),Te:a.bucketCorsUris||null,permissions:b})},bl=function(a){return new Af({rf:L(a.driveFolder),wa:L(a.driveFileNamePrefix)})},cl=function(a){return new mf({name:fk(a.assetId)})},dl=function(a){if(!a)return null;var b=a;typeof a==="string"&&(a=a.split(","));if(Array.isArray(a))return new Wg({Vf:(a||[]).map(kl)});throw Error("Unable to build ranking rule from rules: "+
523
- JSON.stringify(b)+". Rules should either be a comma-separated string or list of strings.");},kl=function(a){var b=new Vg({direction:null,be:null,de:null,ce:null});a=a.trim();a=a.match(/^([\S]+.*)\s+(ASC|DESC)$/);if(a==null)throw Error("Ranking rule format is invalid. Each rule should be defined by a rule type and a direction (ASC or DESC), separated by a space. Valid rule types are: .geometryType, .minZoomLevel, or a feature property name.");var c=r(a);c.next();a=c.next().value;c=c.next().value;switch(c.toUpperCase()){case "ASC":b.direction=
524
- "ASCENDING";break;case "DESC":b.direction="DESCENDING";break;default:throw Error("Ranking rule direction '"+c+"' is invalid. Directions are: ASC, DESC.");}switch(a.trim()){case ".geometryType":b.ce=new Sg({});break;case ".minZoomLevel":b.de=new Ug({});break;default:b.be=new Rg({attributeName:L(a)})}return b};var ll=[],ml=function(a){E(!Object.isSealed(a),"Cannot use getInstance() with a sealed constructor.");var b="Bf";if(a.Bf&&a.hasOwnProperty(b))return a.Bf;ll.push(a);var c=new a;a.Bf=c;E(a.hasOwnProperty(b),"Could not instantiate singleton.");return c};var ol=function(a,b,c,d,e,g){d=mj(!g,!1,d||[]);oj=a;qj=d;a===null?vj():rj(function(){tj(b,c,e||Ha(nl,b,c))})};x("ee.data.authenticateViaOauth",ol);var pl=function(a,b,c,d,e){ol(a,b,c,d,e)};x("ee.data.authenticate",pl);var nl=function(a,b){t.google.accounts.oauth2.initTokenClient({client_id:oj,callback:Ha(sj,a,b),scope:qj.join(" ")}).requestAccessToken()};x("ee.data.authenticateViaPopup",nl);
525
- var ql=function(a,b,c,d,e){if("window"in t)throw Error("Use of private key authentication in the browser is insecure. Consider using OAuth, instead.");d=mj(!e,!e,d||[]);oj=a.client_email;qj=d;var g=new google.auth.JWT(a.client_email,null,a.private_key,d,null);nj=function(f,l){g.authorize(function(m,p){m?l({error:m}):l({access_token:p.access_token,token_type:p.token_type,expires_in:(p.expiry_date-Date.now())/1E3})})};tj(b,c)};x("ee.data.authenticateViaPrivateKey",ql);
526
- x("ee.data.setExpressionAugmenter",function(a){rl=a||Td});var rl=Td;x("ee.data.setAuthToken",function(a,b,c,d,e,g,f,l){e=mj(!l,!1,e||[]);oj=a;qj=e;sj(void 0,void 0,{token_type:b,access_token:c,state:e.join(" "),expires_in:d});f===!1?g&&g():rj(function(){g&&g()})});x("ee.data.refreshAuthToken",tj);x("ee.data.setAuthTokenRefresher",function(a){nj=a});x("ee.data.getAuthToken",ij);x("ee.data.clearAuthToken",vj);x("ee.data.getAuthClientId",function(){return oj});x("ee.data.getAuthScopes",function(){return qj});
527
- x("ee.data.setDeadline",function(a){Jj=a});x("ee.data.setParamAugmenter",function(a){Dj=a||Td});
528
- var sl=function(a){a=new K(a);return a.handle(a.Gc().list(cj(),{prettyPrint:!1}).then(ak))},vl=function(a,b){if(typeof a.image==="string")throw Error("Image as JSON string not supported.");if(a.version!==void 0)throw Error("Image version specification not supported.");a=new If({name:null,l:rl(Mk(a.image)),G:Tj(a.format),da:Wj(a.bands),jc:Zj(a)});var c={fields:"name"},d=tl();d&&(c.workloadTag=d);b=new K(b);return b.handle(b.maps().create(cj(),a,c).then(function(e){return ul(e.name,"")}))};
529
- x("ee.data.getMapId",vl);var wl=function(a,b,c,d){if(!a.formatTileUrl){var e=ul(a.mapid,a.token,a.urlFormat);a.urlFormat=e.urlFormat;a.formatTileUrl=e.formatTileUrl}return a.formatTileUrl(b,c,d)};x("ee.data.getTileUrl",wl);
530
- var ul=function(a,b,c){var d=c===void 0?"":c;d||(aj(),c=yj,d=b?c+"/map/"+a+"/{z}/{x}/{y}?token="+b:c+"/v1/"+a+"/tiles/{z}/{x}/{y}");return{mapid:a,token:b,formatTileUrl:function(e,g,f){var l=Math.pow(2,f);e%=l;e=String(e<0?e+l:e);return d.replace("{x}",e).replace("{y}",g).replace("{z}",f)},urlFormat:d}},xl=function(a,b){var c=a.visParams?rl(Mk(a.visParams)):null;a=new bg({name:null,Lb:a.assetId,mapName:a.mapName,Bg:c});b=new K(b);return b.handle((new ih(b.N)).create(cj(),a,{fields:["name"]}).then(function(d){var e=
531
- d.name.split("/").pop();return{token:e,formatTileUrl:function(g,f,l){return yj+"/v1/"+d.name+"/tiles/"+l+"/"+g+"/"+f},rawTilesKey:e.substring(0,e.lastIndexOf("-"))}}))};x("ee.data.getFeatureViewTilesKey",xl);
532
- var yl=function(a,b,c){c=new K(c);var d=fk(a);a=c.handle;var e=c.assets();b=b===void 0?{}:b;var g=g===void 0?{}:g;e.j.D(d,RegExp("^projects/[^/]+/assets/.*$"));g=G(e.j,{body:null,C:"GET",F:"earthengine.projects.assets.listFeatures",path:"/"+e.m+"/"+d+":listFeatures",A:F(b,g),H:Gg});return a.call(c,g)};x("ee.data.listFeatures",yl);
533
- var zl=function(a,b){var c=new Dk(!0);a=Ok(c,a);var d={};c=Qk(c,a);Object.keys(c).length&&(d={__source_code_nodes__:c});c={l:rl(a,d)};if(a=tl())c.workloadTag=a;b=new K(b);return b.handle(sh(b.value(),cj(),new qf(c)).then(function(e){return e.result}))};x("ee.data.computeValue",zl);
534
- var Al=function(a,b){if(typeof a.image==="string")throw Error("Image as JSON string not supported.");if(a.version!==void 0)throw Error("Image version specification not supported.");if(a.region!==void 0)throw Error('"region" not supported in call to ee.data.getThumbId. Use ee.Image.getThumbURL.');if(a.dimensions!==void 0)throw Error('"dimensions" is not supported in call to ee.data.getThumbId. Use ee.Image.getThumbURL.');a=new $g({name:null,l:rl(Mk(a.image)),G:Tj(a.format),wa:a.name,da:Wj(a.bands),
535
- jc:Zj(a),grid:null});var c={fields:"name"},d=tl();d&&(c.workloadTag=d);b=new K(b);return b.handle((new qh(b.N)).create(cj(),a,c).then(function(e){return{thumbid:e.name,token:""}}))};x("ee.data.getThumbId",Al);
536
- var Bl=function(a,b){var c=new Zf({framesPerSecond:a.framesPerSecond||null,maxFrames:a.maxFrames||null,maxPixelsPerFrame:a.maxPixelsPerFrame||null});a=new dh({name:null,l:rl(Mk(a.imageCollection)),G:Tj(a.format),Oa:c,grid:null});c={fields:"name"};var d=tl();d&&(c.workloadTag=d);b=new K(b);return b.handle((new vh(b.N)).create(cj(),a,c).then(function(e){return{thumbid:e.name,token:""}}))};x("ee.data.getVideoThumbId",Bl);
537
- var Cl=function(a,b){a=new jg({name:null,l:rl(Mk(a.imageCollection)),G:Tj(a.format),orientation:Vj(a.orientation),grid:null});var c={fields:"name"},d=tl();d&&(c.workloadTag=d);b=new K(b);return b.handle((new jh(b.N)).create(cj(),a,c).then(function(e){return{thumbid:e.name,token:""}}))};x("ee.data.getFilmstripThumbId",Cl);var Dl=function(a){return yj+"/v1/"+a.thumbid+":getPixels"};x("ee.data.makeThumbUrl",Dl);
538
- var Fl=function(a,b){a=Object.assign({},a);a.id&&(a.image=new N(a.id));if(typeof a.image==="string")throw Error("Image as serialized JSON string not supported.");if(!a.image)throw Error("Missing ID or image parameter.");a.filePerBand=a.filePerBand!==!1;a.format=a.format||(a.filePerBand?"ZIPPED_GEO_TIFF_PER_BAND":"ZIPPED_GEO_TIFF");if(a.region!=null&&(a.scale!=null||a.crs_transform!=null)&&a.dimensions!=null)throw Error("Cannot specify (bounding region, crs_transform/scale, dimensions) simultaneously.");
539
- if(typeof a.bands==="string")try{a.bands=JSON.parse(a.bands)}catch(e){a.bands=Wj(a.bands)}if(a.bands&&!Array.isArray(a.bands))throw Error("Bands parameter must be an array.");a.bands&&a.bands.every(function(e){return typeof e==="string"})&&(a.bands=a.bands.map(function(e){return{id:e}}));if(a.bands&&a.bands.some(function(e){return e.id==null}))throw Error("Each band dictionary must have an id.");typeof a.region==="string"&&(a.region=JSON.parse(a.region));if(typeof a.crs_transform==="string")try{a.crs_transform=
540
- JSON.parse(a.crs_transform)}catch(e){}var c=El(a.image,a);a=new $g({name:null,l:rl(Mk(c)),G:Tj(a.format),wa:a.name,da:a.bands&&Wj(a.bands.map(function(e){return e.id})),grid:null});c={fields:"name"};var d=tl();d&&(c.workloadTag=d);b=new K(b);return b.handle((new qh(b.N)).create(cj(),a,c).then(function(e){return{docid:e.name,token:""}}))};x("ee.data.getDownloadId",Fl);var Gl=function(a){aj();return yj+"/v1/"+a.docid+":getPixels"};x("ee.data.makeDownloadUrl",Gl);
541
- var Hl=function(a,b){b=new K(b);var c=Uj(a.format),d=rl(Mk(a.table)),e=null;if(a.selectors!=null)if(typeof a.selectors==="string")e=a.selectors.split(",");else if(Array.isArray(a.selectors)&&a.selectors.every(function(g){return typeof g==="string"}))e=a.selectors;else throw Error("'selectors' parameter must be an array of strings.");a=new Yg({name:null,l:d,G:c,selectors:e,filename:a.filename||null});c={fields:"name"};if(d=tl())c.workloadTag=d;return b.handle((new ph(b.N)).create(cj(),a,c).then(function(g){return{docid:g.name||
542
- "",token:""}}))};x("ee.data.getTableDownloadId",Hl);var Il=function(a){return yj+"/v1/"+a.docid+":getFeatures"};x("ee.data.makeTableDownloadUrl",Il);var Jl=function(a,b){var c=function(d){return Math.floor(Math.random()*Math.pow(2,d*4)).toString(16).padStart(d,"0")};a=oc(a||1).map(function(){return[c(8),c(4),"4"+c(3),(8+Math.floor(Math.random()*4)).toString(16)+c(3),c(12)].join("-")});return b?b(a):a};x("ee.data.newTaskId",Jl);
543
- var Kl=function(a){return a.name&&a.done&&a.error},Ml=function(a,b){var c=Ll(a).map(rk);if(c.length===1)return a=(new K(b)).rd(Kl),a.handle(a.Ma().get(c[0]).then(function(e){return[sk(e)]}));a=(new hj(b)).rd(Kl);var d=a.Ma();return a.send(c.map(function(e){return[e,d.get(e)]}),function(e){return c.map(function(g){return sk(e[g])})})};x("ee.data.getTaskStatus",Ml);
544
- var Ll=function(a){if(typeof a==="string")return[a];if(Array.isArray(a))return a;throw Error("Invalid value: expected a string or an array of strings.");},Ol=function(a){return Nl(void 0,a)};x("ee.data.getTaskList",Ol);var Nl=function(a,b){return b?(Pl(a,function(c,d){return b(c?{tasks:c.map(sk)}:null,d)}),null):{tasks:Pl(a).map(sk)}};x("ee.data.getTaskListWithLimit",Nl);
545
- var Pl=function(a,b){var c=[],d={pageSize:500},e=function(l){mc(c,l.Ma||[]);!l.nextPageToken||a&&c.length>=a?b&&b(a?c.slice(0,a):c):(d.pageToken=l.nextPageToken,g.handle(f.list(cj(),d).then(e)));return null},g=new K(b?function(l,m){return m&&b(l,m)}:void 0),f=g.Ma();g.handle(f.list(cj(),d).then(e));return b?null:a?c.slice(0,a):c};x("ee.data.listOperations",Pl);
546
- var Ql=function(a,b){a=Ll(a).map(rk);var c=new jf;if(a.length===1)b=new K(b),b.handle(b.Ma().cancel(a[0],c));else{b=new hj(b);var d=b.Ma();b.send(a.map(function(e){return[e,d.cancel(e,c)]}))}};x("ee.data.cancelOperation",Ql);var Rl=function(a,b){var c=Ll(a).map(rk);if(!Array.isArray(a))return a=(new K(b)).rd(Kl),a.handle(a.Ma().get(c[0]));a=(new hj(b)).rd(Kl);var d=a.Ma();return a.send(c.map(function(e){return[e,d.get(e)]}))};x("ee.data.getOperation",Rl);
547
- var Tl=function(a,b){return Sl(a,"CANCEL",b)};x("ee.data.cancelTask",Tl);var Sl=function(a,b,c){if(!eb(Ul,b))throw Error("Invalid action: "+b);a=Ll(a);a=a.map(rk);Ql(a,c);return null};x("ee.data.updateTask",Sl);
548
- var $l=function(a,b,c){b.id=a;var d=b.type;a=b.sourceUrl!=null?{__source_url__:b.sourceUrl}:{};if("workloadTag"in b)b.workloadTag||delete b.workloadTag;else{var e=tl();e&&(b.workloadTag=e)}var g=new K(c);c=function(f){return g.handle(f.then(tk))};switch(d){case "EXPORT_IMAGE":return b=Vl(b,a),c(g.image().Ja(cj(),b));case "EXPORT_FEATURES":return b=el(b),b.l=rl(b.l,a),c(g.table().Ja(cj(),b));case "EXPORT_VIDEO":return b=Wl(b,a),c(g.video().Ja(cj(),b));case "EXPORT_TILES":return b=Xl(b,a),c(g.map().Ja(cj(),
549
- b));case "EXPORT_VIDEO_MAP":return b=Yl(b),c((new uh(g.N)).Ja(cj(),b));case "EXPORT_CLASSIFIER":return b=Zl(b,a),c((new hh(g.N)).Ja(cj(),b));default:throw Error("Unable to start processing for task of type "+d);}};x("ee.data.startProcessing",$l);
550
- var Vl=function(a,b){var c=am(a);if(c.element==null)throw Error('"element" not found in params '+c);var d=new Mf({l:Mk(c.element),description:L(c.description),na:null,ra:null,grid:null,Of:L(c.maxPixels),requestId:L(c.id),P:M(c.maxWorkers),priority:M(c.priority)}),e=$k(c);switch(e){case "GOOGLE_CLOUD_STORAGE":case "DRIVE":d.na=hl(c,e);break;case "ASSET":e=c.pyramidingPolicy||{};try{e=JSON.parse(e)}catch(f){}var g="PYRAMIDING_POLICY_UNSPECIFIED";typeof e==="string"?(g=e,e={}):e[".default"]&&(g=e[".default"],
551
- delete e[".default"]);c=new Nf({Ga:cl(c),pyramidingPolicy:g,Tf:hb(e)?null:e,tileSize:M(c.shardSize)});d.ra=c;break;default:throw Error('Export destination "'+e+'" unknown');}d.l=rl(d.l,b);a.workloadTag&&(d.workloadTag=a.workloadTag);return d},Wl=function(a,b){var c=bm(a);if(c.element==null)throw Error('"element" not found in params '+c);var d=new $f({l:Mk(c.element),description:L(c.description),Oa:new Zf({framesPerSecond:M(c.framesPerSecond),maxFrames:M(c.maxFrames),maxPixelsPerFrame:L(c.maxPixels)}),
552
- na:null,requestId:L(c.id),P:M(c.maxWorkers),priority:M(c.priority)});d.na=il(c,$k(c));d.l=rl(d.l,b);a.workloadTag&&(d.workloadTag=a.workloadTag);return d},Xl=function(a,b){var c=a.scale;delete a.scale;var d=am(a);d.scale=c;if(d.element==null)throw Error('"element" not found in params '+d);c=new Qf({l:Mk(d.element),description:L(d.description),dc:jl(d),cc:hl(d,"GOOGLE_CLOUD_STORAGE"),requestId:L(d.id),P:M(d.maxWorkers),priority:M(d.priority)});c.l=rl(c.l,b);a.workloadTag&&(c.workloadTag=a.workloadTag);
553
- return c},Yl=function(a){var b=a.scale;delete a.scale;var c=bm(a);c.scale=b;if(c.element==null)throw Error('"element" not found in params '+c);b=new Xf({l:Mk(c.element),description:L(c.description),Oa:new Zf({framesPerSecond:M(c.framesPerSecond),maxFrames:M(c.maxFrames),maxPixelsPerFrame:null}),dc:jl(c),cc:il(c,"GOOGLE_CLOUD_STORAGE"),requestId:L(c.id),version:L(c.version),P:M(c.maxWorkers),priority:M(c.priority)});b.l=rl(b.l);a.workloadTag&&(b.workloadTag=a.workloadTag);return b},Zl=function(a,b){if(a.element==
554
- null)throw Error('"element" not found in params '+a);var c=$k(a);if(c!="ASSET")throw Error('Export destination "'+c+'" unknown');c=new Lf({l:Mk(a.element),description:L(a.description),requestId:L(a.id),ra:new lf({Ga:cl(a)}),P:M(a.maxWorkers),priority:M(a.priority)});c.l=rl(c.l,b);a.workloadTag&&(c.workloadTag=a.workloadTag);return c},dm=function(a,b,c){b=xk(b);var d=function(e){return e?tk(e):null};return d(cm(a,b,c&&function(e,g){return c(d(e),g)}))};x("ee.data.startIngestion",dm);
555
- var cm=function(a,b,c){b=new Bg({yf:b,requestId:a,overwrite:null,description:null});a=new K(c,a?void 0:0);return a.handle(a.image().import(cj(),b))},em=function(a,b,c){b=new Cg({pg:b,requestId:a,overwrite:null,description:null});a=new K(c,a?void 0:0);return a.handle(a.table().import(cj(),b))},fm=function(a,b,c){b=yk(b);var d=function(e){return e?tk(e):null};return d(em(a,b,c&&function(e,g){return c(d(e),g)}))};x("ee.data.startTableIngestion",fm);
556
- var gm=function(a,b){b=new K(b);a=fk(a);return b.handle(b.assets().get(a,{prettyPrint:!1}).then(gk))};x("ee.data.getAsset",gm);x("ee.data.getInfo",gm);
557
- var hm=function(a,b,c,d){b=b===void 0?{}:b;d=d===void 0?Td:d;var e=Object.assign({},b),g=new K(c),f=(b=dk.test(a))?new fh(g.N):g.assets();a=b?"projects/"+ek(a):fk(a);var l=function(m){if(e.pageSize!=null||!m.nextPageToken)return m;var p=m.assets||[];e.pageToken=m.nextPageToken;m=f.Vc(a,e).then(function(v){v.assets=p.concat(v.assets);return v}).then(l);return c?m:g.handle(m)};return g.handle(f.Vc(a,e).then(l).then(d))},im=function(a,b){var c=nk(a);c.pageSize||(c.pageSize=1E3);return hm(a.id,c,b,function(d){return d==
558
- null?null:hk(d)})};x("ee.data.getList",im);var jm=function(a,b,c){b=b===void 0?{}:b;return hm(a,b,c)};x("ee.data.listAssets",jm);var km=function(a,b,c){b=b===void 0?{}:b;b=mk(b);return hm(a,b,c,function(d){if(d==null)return null;var e={};d.assets&&(e.images=d.assets);d.nextPageToken&&(e.nextPageToken=d.nextPageToken);return e})};x("ee.data.listImages",km);var lm=function(a,b){b=new K(b);return b.handle((new fh(b.N)).Vc(a||cj()))};x("ee.data.listBuckets",lm);var mm=function(a){a=new K(a);return a.handle((new fh(a.N)).Vc(cj()).then(hk))};
559
- x("ee.data.getAssetRoots",mm);var nm=function(a,b){var c="projects/"+ek(a);a=c==="projects/earthengine-legacy"?a:void 0;var d=new Bf({type:"Folder"});b=new K(b);b.handle(b.assets().create(c,d,{assetId:a}).then(gk))};x("ee.data.createAssetHome",nm);
560
- var om=function(a,b,c,d,e){if(c)throw Error("Asset overwrite not supported.");if(typeof a==="string")throw Error("Asset cannot be specified as string.");b=a.name||b&&fk(b);if(!b)throw Error("Either asset name or opt_path must be specified.");c=b.indexOf("/assets/");if(c===-1)throw Error("Asset name must contain /assets/.");a=Object.assign({},a);a.tilestoreEntry&&!a.tilestoreLocation&&(a.tilestoreLocation=a.tilestoreEntry,delete a.tilestoreEntry);a.tilestoreLocation&&(a.tilestoreLocation=new Hf(a.tilestoreLocation));
522
+ bl=function(a){var b=null;a.writePublicTiles!=null&&(b=a.writePublicTiles?"PUBLIC":"DEFAULT_OBJECT_ACL");return new of({Se:L(a.outputBucket),wa:L(a.outputPrefix),Te:a.bucketCorsUris||null,permissions:b})},cl=function(a){return new Af({rf:L(a.driveFolder),wa:L(a.driveFileNamePrefix)})},dl=function(a){return new mf({name:gk(a.assetId)})},el=function(a){if(!a)return null;var b=a;typeof a==="string"&&(a=a.split(","));if(Array.isArray(a))return new Wg({Vf:(a||[]).map(ll)});throw Error("Unable to build ranking rule from rules: "+
523
+ JSON.stringify(b)+". Rules should either be a comma-separated string or list of strings.");},ll=function(a){var b=new Vg({direction:null,be:null,de:null,ce:null});a=a.trim();a=a.match(/^([\S]+.*)\s+(ASC|DESC)$/);if(a==null)throw Error("Ranking rule format is invalid. Each rule should be defined by a rule type and a direction (ASC or DESC), separated by a space. Valid rule types are: .geometryType, .minZoomLevel, or a feature property name.");var c=r(a);c.next();a=c.next().value;c=c.next().value;switch(c.toUpperCase()){case "ASC":b.direction=
524
+ "ASCENDING";break;case "DESC":b.direction="DESCENDING";break;default:throw Error("Ranking rule direction '"+c+"' is invalid. Directions are: ASC, DESC.");}switch(a.trim()){case ".geometryType":b.ce=new Sg({});break;case ".minZoomLevel":b.de=new Ug({});break;default:b.be=new Rg({attributeName:L(a)})}return b};var ml=[],nl=function(a){E(!Object.isSealed(a),"Cannot use getInstance() with a sealed constructor.");var b="Bf";if(a.Bf&&a.hasOwnProperty(b))return a.Bf;ml.push(a);var c=new a;a.Bf=c;E(a.hasOwnProperty(b),"Could not instantiate singleton.");return c};var pl=function(a,b,c,d,e,g){d=nj(!g,!1,d||[]);qj=a;rj=d;a===null?wj():sj(function(){uj(b,c,e||Ha(ol,b,c))})};x("ee.data.authenticateViaOauth",pl);var ql=function(a,b,c,d,e){pl(a,b,c,d,e)};x("ee.data.authenticate",ql);var ol=function(a,b){t.google.accounts.oauth2.initTokenClient({client_id:qj,callback:Ha(tj,a,b),scope:rj.join(" ")}).requestAccessToken()};x("ee.data.authenticateViaPopup",ol);
525
+ var rl=function(a,b,c,d,e){if("window"in t)throw Error("Use of private key authentication in the browser is insecure. Consider using OAuth, instead.");d=nj(!e,!e,d||[]);qj=a.client_email;rj=d;var g=new google.auth.JWT(a.client_email,null,a.private_key,d,null);oj=function(f,l){g.authorize(function(m,p){m?l({error:m}):l({access_token:p.access_token,token_type:p.token_type,expires_in:(p.expiry_date-Date.now())/1E3})})};uj(b,c)};x("ee.data.authenticateViaPrivateKey",rl);
526
+ x("ee.data.setExpressionAugmenter",function(a){sl=a||Td});var sl=Td;x("ee.data.setAuthToken",function(a,b,c,d,e,g,f,l){e=nj(!l,!1,e||[]);qj=a;rj=e;tj(void 0,void 0,{token_type:b,access_token:c,state:e.join(" "),expires_in:d});f===!1?g&&g():sj(function(){g&&g()})});x("ee.data.refreshAuthToken",uj);x("ee.data.setAuthTokenRefresher",function(a){oj=a});x("ee.data.getAuthToken",jj);x("ee.data.clearAuthToken",wj);x("ee.data.getAuthClientId",function(){return qj});x("ee.data.getAuthScopes",function(){return rj});
527
+ x("ee.data.setDeadline",function(a){Kj=a});x("ee.data.setParamAugmenter",function(a){Ej=a||Td});
528
+ var tl=function(a){a=new K(a);return a.handle(a.Gc().list(dj(),{prettyPrint:!1}).then(bk))},wl=function(a,b){if(typeof a.image==="string")throw Error("Image as JSON string not supported.");if(a.version!==void 0)throw Error("Image version specification not supported.");a=new If({name:null,l:sl(Nk(a.image)),G:Uj(a.format),da:Xj(a.bands),jc:ak(a)});var c={fields:"name"},d=ul();d&&(c.workloadTag=d);b=new K(b);return b.handle(b.maps().create(dj(),a,c).then(function(e){return vl(e.name,"")}))};
529
+ x("ee.data.getMapId",wl);var xl=function(a,b,c,d){if(!a.formatTileUrl){var e=vl(a.mapid,a.token,a.urlFormat);a.urlFormat=e.urlFormat;a.formatTileUrl=e.formatTileUrl}return a.formatTileUrl(b,c,d)};x("ee.data.getTileUrl",xl);
530
+ var vl=function(a,b,c){var d=c===void 0?"":c;d||(bj(),c=zj,d=b?c+"/map/"+a+"/{z}/{x}/{y}?token="+b:c+"/v1/"+a+"/tiles/{z}/{x}/{y}");return{mapid:a,token:b,formatTileUrl:function(e,g,f){var l=Math.pow(2,f);e%=l;e=String(e<0?e+l:e);return d.replace("{x}",e).replace("{y}",g).replace("{z}",f)},urlFormat:d}},yl=function(a,b){var c=a.visParams?sl(Nk(a.visParams)):null;a=new bg({name:null,Lb:a.assetId,mapName:a.mapName,Bg:c});b=new K(b);return b.handle((new ih(b.N)).create(dj(),a,{fields:["name"]}).then(function(d){var e=
531
+ d.name.split("/").pop();return{token:e,formatTileUrl:function(g,f,l){return zj+"/v1/"+d.name+"/tiles/"+l+"/"+g+"/"+f},rawTilesKey:e.substring(0,e.lastIndexOf("-"))}}))};x("ee.data.getFeatureViewTilesKey",yl);
532
+ var zl=function(a,b,c){c=new K(c);var d=gk(a);a=c.handle;var e=c.assets();b=b===void 0?{}:b;var g=g===void 0?{}:g;e.j.D(d,RegExp("^projects/[^/]+/assets/.*$"));g=G(e.j,{body:null,C:"GET",F:"earthengine.projects.assets.listFeatures",path:"/"+e.m+"/"+d+":listFeatures",A:F(b,g),H:Gg});return a.call(c,g)};x("ee.data.listFeatures",zl);
533
+ var Al=function(a,b){var c=new Ek(!0);a=Pk(c,a);var d={};c=Rk(c,a);Object.keys(c).length&&(d={__source_code_nodes__:c});c={l:sl(a,d)};if(a=ul())c.workloadTag=a;b=new K(b);return b.handle(sh(b.value(),dj(),new qf(c)).then(function(e){return e.result}))};x("ee.data.computeValue",Al);
534
+ var Bl=function(a,b){if(typeof a.image==="string")throw Error("Image as JSON string not supported.");if(a.version!==void 0)throw Error("Image version specification not supported.");if(a.region!==void 0)throw Error('"region" not supported in call to ee.data.getThumbId. Use ee.Image.getThumbURL.');if(a.dimensions!==void 0)throw Error('"dimensions" is not supported in call to ee.data.getThumbId. Use ee.Image.getThumbURL.');a=new $g({name:null,l:sl(Nk(a.image)),G:Uj(a.format),wa:a.name,da:Xj(a.bands),
535
+ jc:ak(a),grid:null});var c={fields:"name"},d=ul();d&&(c.workloadTag=d);b=new K(b);return b.handle((new qh(b.N)).create(dj(),a,c).then(function(e){return{thumbid:e.name,token:""}}))};x("ee.data.getThumbId",Bl);
536
+ var Cl=function(a,b){var c=new Zf({framesPerSecond:a.framesPerSecond||null,maxFrames:a.maxFrames||null,maxPixelsPerFrame:a.maxPixelsPerFrame||null});a=new dh({name:null,l:sl(Nk(a.imageCollection)),G:Uj(a.format),Oa:c,grid:null});c={fields:"name"};var d=ul();d&&(c.workloadTag=d);b=new K(b);return b.handle((new vh(b.N)).create(dj(),a,c).then(function(e){return{thumbid:e.name,token:""}}))};x("ee.data.getVideoThumbId",Cl);
537
+ var Dl=function(a,b){a=new jg({name:null,l:sl(Nk(a.imageCollection)),G:Uj(a.format),orientation:Wj(a.orientation),grid:null});var c={fields:"name"},d=ul();d&&(c.workloadTag=d);b=new K(b);return b.handle((new jh(b.N)).create(dj(),a,c).then(function(e){return{thumbid:e.name,token:""}}))};x("ee.data.getFilmstripThumbId",Dl);var El=function(a){return zj+"/v1/"+a.thumbid+":getPixels"};x("ee.data.makeThumbUrl",El);
538
+ var Gl=function(a,b){a=Object.assign({},a);a.id&&(a.image=new N(a.id));if(typeof a.image==="string")throw Error("Image as serialized JSON string not supported.");if(!a.image)throw Error("Missing ID or image parameter.");a.filePerBand=a.filePerBand!==!1;a.format=a.format||(a.filePerBand?"ZIPPED_GEO_TIFF_PER_BAND":"ZIPPED_GEO_TIFF");if(a.region!=null&&(a.scale!=null||a.crs_transform!=null)&&a.dimensions!=null)throw Error("Cannot specify (bounding region, crs_transform/scale, dimensions) simultaneously.");
539
+ if(typeof a.bands==="string")try{a.bands=JSON.parse(a.bands)}catch(e){a.bands=Xj(a.bands)}if(a.bands&&!Array.isArray(a.bands))throw Error("Bands parameter must be an array.");a.bands&&a.bands.every(function(e){return typeof e==="string"})&&(a.bands=a.bands.map(function(e){return{id:e}}));if(a.bands&&a.bands.some(function(e){return e.id==null}))throw Error("Each band dictionary must have an id.");typeof a.region==="string"&&(a.region=JSON.parse(a.region));if(typeof a.crs_transform==="string")try{a.crs_transform=
540
+ JSON.parse(a.crs_transform)}catch(e){}var c=Fl(a.image,a);a=new $g({name:null,l:sl(Nk(c)),G:Uj(a.format),wa:a.name,da:a.bands&&Xj(a.bands.map(function(e){return e.id})),grid:null});c={fields:"name"};var d=ul();d&&(c.workloadTag=d);b=new K(b);return b.handle((new qh(b.N)).create(dj(),a,c).then(function(e){return{docid:e.name,token:""}}))};x("ee.data.getDownloadId",Gl);var Hl=function(a){bj();return zj+"/v1/"+a.docid+":getPixels"};x("ee.data.makeDownloadUrl",Hl);
541
+ var Il=function(a,b){b=new K(b);var c=Vj(a.format),d=sl(Nk(a.table)),e=null;if(a.selectors!=null)if(typeof a.selectors==="string")e=a.selectors.split(",");else if(Array.isArray(a.selectors)&&a.selectors.every(function(g){return typeof g==="string"}))e=a.selectors;else throw Error("'selectors' parameter must be an array of strings.");a=new Yg({name:null,l:d,G:c,selectors:e,filename:a.filename||null});c={fields:"name"};if(d=ul())c.workloadTag=d;return b.handle((new ph(b.N)).create(dj(),a,c).then(function(g){return{docid:g.name||
542
+ "",token:""}}))};x("ee.data.getTableDownloadId",Il);var Jl=function(a){return zj+"/v1/"+a.docid+":getFeatures"};x("ee.data.makeTableDownloadUrl",Jl);var Kl=function(a,b){var c=function(d){return Math.floor(Math.random()*Math.pow(2,d*4)).toString(16).padStart(d,"0")};a=oc(a||1).map(function(){return[c(8),c(4),"4"+c(3),(8+Math.floor(Math.random()*4)).toString(16)+c(3),c(12)].join("-")});return b?b(a):a};x("ee.data.newTaskId",Kl);
543
+ var Ll=function(a){return a.name&&a.done&&a.error},Nl=function(a,b){var c=Ml(a).map(sk);if(c.length===1)return a=(new K(b)).rd(Ll),a.handle(a.Ma().get(c[0]).then(function(e){return[tk(e)]}));a=(new ij(b)).rd(Ll);var d=a.Ma();return a.send(c.map(function(e){return[e,d.get(e)]}),function(e){return c.map(function(g){return tk(e[g])})})};x("ee.data.getTaskStatus",Nl);
544
+ var Ml=function(a){if(typeof a==="string")return[a];if(Array.isArray(a))return a;throw Error("Invalid value: expected a string or an array of strings.");},Pl=function(a){return Ol(void 0,a)};x("ee.data.getTaskList",Pl);var Ol=function(a,b){return b?(Ql(a,function(c,d){return b(c?{tasks:c.map(tk)}:null,d)}),null):{tasks:Ql(a).map(tk)}};x("ee.data.getTaskListWithLimit",Ol);
545
+ var Ql=function(a,b){var c=[],d={pageSize:500},e=function(l){mc(c,l.Ma||[]);!l.nextPageToken||a&&c.length>=a?b&&b(a?c.slice(0,a):c):(d.pageToken=l.nextPageToken,g.handle(f.list(dj(),d).then(e)));return null},g=new K(b?function(l,m){return m&&b(l,m)}:void 0),f=g.Ma();g.handle(f.list(dj(),d).then(e));return b?null:a?c.slice(0,a):c};x("ee.data.listOperations",Ql);
546
+ var Rl=function(a,b){a=Ml(a).map(sk);var c=new jf;if(a.length===1)b=new K(b),b.handle(b.Ma().cancel(a[0],c));else{b=new ij(b);var d=b.Ma();b.send(a.map(function(e){return[e,d.cancel(e,c)]}))}};x("ee.data.cancelOperation",Rl);var Sl=function(a,b){var c=Ml(a).map(sk);if(!Array.isArray(a))return a=(new K(b)).rd(Ll),a.handle(a.Ma().get(c[0]));a=(new ij(b)).rd(Ll);var d=a.Ma();return a.send(c.map(function(e){return[e,d.get(e)]}))};x("ee.data.getOperation",Sl);
547
+ var Ul=function(a,b){return Tl(a,"CANCEL",b)};x("ee.data.cancelTask",Ul);var Tl=function(a,b,c){if(!eb(Vl,b))throw Error("Invalid action: "+b);a=Ml(a);a=a.map(sk);Rl(a,c);return null};x("ee.data.updateTask",Tl);
548
+ var am=function(a,b,c){b.id=a;var d=b.type;a=b.sourceUrl!=null?{__source_url__:b.sourceUrl}:{};if("workloadTag"in b)b.workloadTag||delete b.workloadTag;else{var e=ul();e&&(b.workloadTag=e)}var g=new K(c);c=function(f){return g.handle(f.then(uk))};switch(d){case "EXPORT_IMAGE":return b=Wl(b,a),c(g.image().Ja(dj(),b));case "EXPORT_FEATURES":return b=fl(b),b.l=sl(b.l,a),c(g.table().Ja(dj(),b));case "EXPORT_VIDEO":return b=Xl(b,a),c(g.video().Ja(dj(),b));case "EXPORT_TILES":return b=Yl(b,a),c(g.map().Ja(dj(),
549
+ b));case "EXPORT_VIDEO_MAP":return b=Zl(b),c((new uh(g.N)).Ja(dj(),b));case "EXPORT_CLASSIFIER":return b=$l(b,a),c((new hh(g.N)).Ja(dj(),b));default:throw Error("Unable to start processing for task of type "+d);}};x("ee.data.startProcessing",am);
550
+ var Wl=function(a,b){var c=bm(a);if(c.element==null)throw Error('"element" not found in params '+c);var d=new Mf({l:Nk(c.element),description:L(c.description),na:null,ra:null,grid:null,Of:L(c.maxPixels),requestId:L(c.id),P:M(c.maxWorkers),priority:M(c.priority)}),e=al(c);switch(e){case "GOOGLE_CLOUD_STORAGE":case "DRIVE":d.na=il(c,e);break;case "ASSET":e=c.pyramidingPolicy||{};try{e=JSON.parse(e)}catch(f){}var g="PYRAMIDING_POLICY_UNSPECIFIED";typeof e==="string"?(g=e,e={}):e[".default"]&&(g=e[".default"],
551
+ delete e[".default"]);c=new Nf({Ga:dl(c),pyramidingPolicy:g,Tf:hb(e)?null:e,tileSize:M(c.shardSize)});d.ra=c;break;default:throw Error('Export destination "'+e+'" unknown');}d.l=sl(d.l,b);a.workloadTag&&(d.workloadTag=a.workloadTag);return d},Xl=function(a,b){var c=cm(a);if(c.element==null)throw Error('"element" not found in params '+c);var d=new $f({l:Nk(c.element),description:L(c.description),Oa:new Zf({framesPerSecond:M(c.framesPerSecond),maxFrames:M(c.maxFrames),maxPixelsPerFrame:L(c.maxPixels)}),
552
+ na:null,requestId:L(c.id),P:M(c.maxWorkers),priority:M(c.priority)});d.na=jl(c,al(c));d.l=sl(d.l,b);a.workloadTag&&(d.workloadTag=a.workloadTag);return d},Yl=function(a,b){var c=a.scale;delete a.scale;var d=bm(a);d.scale=c;if(d.element==null)throw Error('"element" not found in params '+d);c=new Qf({l:Nk(d.element),description:L(d.description),dc:kl(d),cc:il(d,"GOOGLE_CLOUD_STORAGE"),requestId:L(d.id),P:M(d.maxWorkers),priority:M(d.priority)});c.l=sl(c.l,b);a.workloadTag&&(c.workloadTag=a.workloadTag);
553
+ return c},Zl=function(a){var b=a.scale;delete a.scale;var c=cm(a);c.scale=b;if(c.element==null)throw Error('"element" not found in params '+c);b=new Xf({l:Nk(c.element),description:L(c.description),Oa:new Zf({framesPerSecond:M(c.framesPerSecond),maxFrames:M(c.maxFrames),maxPixelsPerFrame:null}),dc:kl(c),cc:jl(c,"GOOGLE_CLOUD_STORAGE"),requestId:L(c.id),version:L(c.version),P:M(c.maxWorkers),priority:M(c.priority)});b.l=sl(b.l);a.workloadTag&&(b.workloadTag=a.workloadTag);return b},$l=function(a,b){if(a.element==
554
+ null)throw Error('"element" not found in params '+a);var c=al(a);if(c!="ASSET")throw Error('Export destination "'+c+'" unknown');c=new Lf({l:Nk(a.element),description:L(a.description),requestId:L(a.id),ra:new lf({Ga:dl(a)}),P:M(a.maxWorkers),priority:M(a.priority)});c.l=sl(c.l,b);a.workloadTag&&(c.workloadTag=a.workloadTag);return c},em=function(a,b,c){b=yk(b);var d=function(e){return e?uk(e):null};return d(dm(a,b,c&&function(e,g){return c(d(e),g)}))};x("ee.data.startIngestion",em);
555
+ var dm=function(a,b,c){b=new Bg({yf:b,requestId:a,overwrite:null,description:null});a=new K(c,a?void 0:0);return a.handle(a.image().import(dj(),b))},fm=function(a,b,c){b=new Cg({pg:b,requestId:a,overwrite:null,description:null});a=new K(c,a?void 0:0);return a.handle(a.table().import(dj(),b))},gm=function(a,b,c){b=zk(b);var d=function(e){return e?uk(e):null};return d(fm(a,b,c&&function(e,g){return c(d(e),g)}))};x("ee.data.startTableIngestion",gm);
556
+ var hm=function(a,b){b=new K(b);a=gk(a);return b.handle(b.assets().get(a,{prettyPrint:!1}).then(hk))};x("ee.data.getAsset",hm);x("ee.data.getInfo",hm);
557
+ var im=function(a,b,c,d){b=b===void 0?{}:b;d=d===void 0?Td:d;var e=Object.assign({},b),g=new K(c),f=(b=ek.test(a))?new fh(g.N):g.assets();a=b?"projects/"+fk(a):gk(a);var l=function(m){if(e.pageSize!=null||!m.nextPageToken)return m;var p=m.assets||[];e.pageToken=m.nextPageToken;m=f.Vc(a,e).then(function(v){v.assets=p.concat(v.assets);return v}).then(l);return c?m:g.handle(m)};return g.handle(f.Vc(a,e).then(l).then(d))},jm=function(a,b){var c=ok(a);c.pageSize||(c.pageSize=1E3);return im(a.id,c,b,function(d){return d==
558
+ null?null:ik(d)})};x("ee.data.getList",jm);var km=function(a,b,c){b=b===void 0?{}:b;return im(a,b,c)};x("ee.data.listAssets",km);var lm=function(a,b,c){b=b===void 0?{}:b;b=nk(b);return im(a,b,c,function(d){if(d==null)return null;var e={};d.assets&&(e.images=d.assets);d.nextPageToken&&(e.nextPageToken=d.nextPageToken);return e})};x("ee.data.listImages",lm);var mm=function(a,b){b=new K(b);return b.handle((new fh(b.N)).Vc(a||dj()))};x("ee.data.listBuckets",mm);var nm=function(a){a=new K(a);return a.handle((new fh(a.N)).Vc(dj()).then(ik))};
559
+ x("ee.data.getAssetRoots",nm);var om=function(a,b){var c="projects/"+fk(a);a=c==="projects/earthengine-legacy"?a:void 0;var d=new Bf({type:"Folder"});b=new K(b);b.handle(b.assets().create(c,d,{assetId:a}).then(hk))};x("ee.data.createAssetHome",om);
560
+ var pm=function(a,b,c,d,e){if(c)throw Error("Asset overwrite not supported.");if(typeof a==="string")throw Error("Asset cannot be specified as string.");b=a.name||b&&gk(b);if(!b)throw Error("Either asset name or opt_path must be specified.");c=b.indexOf("/assets/");if(c===-1)throw Error("Asset name must contain /assets/.");a=Object.assign({},a);a.tilestoreEntry&&!a.tilestoreLocation&&(a.tilestoreLocation=a.tilestoreEntry,delete a.tilestoreEntry);a.tilestoreLocation&&(a.tilestoreLocation=new Hf(a.tilestoreLocation));
561
561
  a.gcsLocation&&!a.cloudStorageLocation&&(a.cloudStorageLocation=a.gcsLocation,delete a.gcsLocation);a.cloudStorageLocation&&(a.cloudStorageLocation=new pf(a.cloudStorageLocation));d&&!a.properties&&(a.properties=Object.assign({},d));d=r(["title","description"]);for(var g=d.next();!g.done;g=d.next())if(g=g.value,a[g]){var f={};a.properties=Object.assign((f[g]=a[g],f),a.properties||{});delete a[g]}a=new Bf(a);d=b.slice(0,c);b=b.slice(c+8);a.id=null;a.name=null;a:switch(c=a.type,c){case "ImageCollection":c=
562
- "IMAGE_COLLECTION";break a;case "Folder":c="FOLDER"}a.type=c;e=new K(e);return e.handle(e.assets().create(d,a,{assetId:b}).then(gk))};x("ee.data.createAsset",om);var pm=function(a,b,c){return om({type:"Folder"},a,b,void 0,c)};x("ee.data.createFolder",pm);var qm=function(a,b,c){a=fk(a);b=fk(b);b=new Kg({Ob:b});c=new K(c);c.handle(c.assets().move(a,b).then(gk))};x("ee.data.renameAsset",qm);
563
- var rm=function(a,b,c,d){a=fk(a);b=fk(b);c=new uf({Ob:b,overwrite:c!=null?c:null});d=new K(d);b=d.handle;var e=d.assets();var g=g===void 0?{}:g;var f=f===void 0?{}:f;e.j.D(a,RegExp("^projects/[^/]+/assets/.*$"));g=G(e.j,{body:c,C:"POST",F:"earthengine.projects.assets.copy",path:"/"+e.m+"/"+a+":copy",A:F(g,f),H:Bf});b.call(d,g.then(gk))};x("ee.data.copyAsset",rm);var sm=function(a,b){b=new K(b);b.handle(b.assets().delete(fk(a)))};x("ee.data.deleteAsset",sm);
564
- var tm=function(a,b){a=fk(a);var c=new pg;b=new K(b);var d=b.handle,e=b.assets(),g={prettyPrint:!1};g=g===void 0?{}:g;var f=f===void 0?{}:f;e.j.D(a,RegExp("^projects/[^/]+/assets/.*$"));f=G(e.j,{body:c,C:"POST",F:"earthengine.projects.assets.getIamPolicy",path:"/"+e.m+"/"+a+":getIamPolicy",A:F(g,f),H:Wf});return d.call(b,f.then(ok))};x("ee.data.getAssetAcl",tm);
565
- var um=function(a,b,c,d){b=new ch({Lb:b,updateMask:(c||[]).join(",")});d=new K(d);c=d.handle;var e=d.assets();a=fk(a);var g=g===void 0?{}:g;var f=f===void 0?{}:f;e.j.D(a,RegExp("^projects/[^/]+/assets/.*$"));g=G(e.j,{body:b,C:"PATCH",F:"earthengine.projects.assets.patch",path:"/"+e.m+"/"+a,A:F(g,f),H:Bf});return c.call(d,g.then(gk))};x("ee.data.updateAsset",um);
566
- var vm=function(a,b,c){a=fk(a);b=pk(b);b=new Xg({ib:b});c=new K(c);var d=c.handle,e=c.assets(),g={prettyPrint:!1};g=g===void 0?{}:g;var f=f===void 0?{}:f;e.j.D(a,RegExp("^projects/[^/]+/assets/.*$"));f=G(e.j,{body:b,C:"POST",F:"earthengine.projects.assets.setIamPolicy",path:"/"+e.m+"/"+a+":setIamPolicy",A:F(g,f),H:Wf});d.call(c,f)};x("ee.data.setAssetAcl",vm);
567
- var wm=function(a,b,c){var d=kk(b);b=La(d.i()).keys.filter(function(e){return e!=="properties"&&D(d,e)}).map(function(e){return e.replace(/([A-Z])/g,function(g,f){return"_"+f.toLowerCase()})}).concat(Object.keys(d.properties||{}).map(function(e){return'properties."'+e+'"'}));um(a,d,b,c)};x("ee.data.setAssetProperties",wm);
568
- var xm=function(a,b){var c=fk(a);b=new K(b);var d=b.assets(),e=d.j.D;d.j.D=function(g,f){f.source==="^projects\\/[^/]+\\/assets\\/.+$"&&(f=RegExp("^projects/[^/]+/assets/.*$"));return e(g,f)};c=d.get(c,{prettyPrint:!1});return b.handle(c.then(function(g){if(!(g instanceof Bf&&g.quota))throw Error(a+" is not a root folder.");g=g.quota;return{asset_count:{usage:Number(g.Ne||0),limit:Number(g.Lf||0)},asset_size:{usage:Number(g.sizeBytes||0),limit:Number(g.Vb||0)}}}))};x("ee.data.getAssetRootQuota",xm);
569
- var ym=function(){this.default=this.tag=""};ym.prototype.get=function(){return this.tag};ym.prototype.set=function(a){this.tag=this.validate(a)};ym.prototype.reset=function(){this.tag=this.default};
570
- ym.prototype.validate=function(a){if(a==null||a==="")return"";a=String(a);if(!/^([a-z0-9]|[a-z0-9][-_a-z0-9]{0,61}[a-z0-9])$/g.test(a))throw Error('Invalid tag, "'+a+'". Tags must be 1-63 characters, beginning and ending with a lowercase alphanumeric character ([a-z0-9]) with dashes (-), underscores (_), and lowercase alphanumerics between.');return a};var tl=function(){return ml(ym).get()};x("ee.data.getWorkloadTag",tl);var zm=function(a){ml(ym).set(a)};x("ee.data.setWorkloadTag",zm);
571
- var Am=function(a){var b=ml(ym);b.default=b.validate(a);ml(ym).set(a)};x("ee.data.setDefaultWorkloadTag",Am);var Bm=function(a){a&&(a=ml(ym),a.default=a.validate(""));ml(ym).reset()};x("ee.data.resetWorkloadTag",Bm);var Ul={Gl:"CANCEL",Jl:"UPDATE"};var O=function(a,b,c){if(!(this instanceof O))return Cm(O,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.J=a;this.args=b;this.V=c||null;this.yl=null};y(O,Kj);x("ee.ComputedObject",O);O.prototype.Dh=function(){return this.yl};O.prototype.evaluate=function(a){if(!a||typeof a!=="function")throw Error("evaluate() requires a callback function.");zl(this,a)};
572
- O.prototype.evaluate=O.prototype.evaluate;O.prototype.W=function(a){return zl(this,a)};O.prototype.getInfo=O.prototype.W;O.prototype.encode=function(a){if(this.J===null&&this.args===null)return{type:"ArgumentRef",value:this.V};var b={},c;for(c in this.args)this.args[c]!==void 0&&(b[c]=a(this.args[c]));b={type:"Invocation",arguments:b};a=a(this.J);b[typeof a==="string"?"functionName":"function"]=a;return b};
573
- O.prototype.ma=function(a){if(this.J===null&&this.args===null){a=this.V||a.Ri;if(!a)throw Error("A mapped function's arguments cannot be used in client-side operations");return new af({Kb:a})}var b={},c;for(c in this.args)this.args[c]!==void 0&&(b[c]=Nj(Uk(a,this.args[c])));return typeof this.J==="string"?Qj(String(this.J),b):this.J.Gd(a,b)};O.prototype.ua=function(a){return(a===void 0?0:a)?Ik(this):Sk(this)};O.prototype.serialize=O.prototype.ua;
574
- O.prototype.toString=function(){return"ee."+this.name()+"("+Kk(this)+")"};x("ee.ComputedObject.prototype.toString",O.prototype.toString);O.prototype.name=function(){return"ComputedObject"};O.prototype.Fg=function(a,b){var c=Array.from(arguments);c[0]=this;a.apply(t,c);return this};O.prototype.aside=O.prototype.Fg;
575
- var Dm=function(a,b){if(b instanceof a.constructor)return b;var c=function(){};c.prototype=a.constructor.prototype;a=new c;a.J=b.J;a.args=b.args;a.V=b.V;return a},Cm=function(a,b){function c(){return a.apply(this,b)}c.prototype=a.prototype;return new c};var Em={},Fm=function(a,b){if(b==a)return!0;switch(a){case "Element":return b=="Element"||b=="Image"||b=="Feature"||b=="Collection"||b=="ImageCollection"||b=="FeatureCollection";case "FeatureCollection":case "Collection":return b=="Collection"||b=="ImageCollection"||b=="FeatureCollection";case "Object":return!0;default:return!1}},Gm=function(a){return typeof a==="number"||a instanceof O&&a.name()=="Number"},Hm=function(a){return typeof a==="string"||a instanceof O&&a.name()=="String"},Im=function(a){return u(a)&&
576
- typeof a!=="function"?(a=Object.getPrototypeOf(a),a!==null&&Object.getPrototypeOf(a)===null):!1},Jm=function(a,b,c){c=c===void 0?!1:c;return a.length===1&&Im(a[0])&&(a=b.args,c&&(a=a.slice(1)),a.length)?!(a.length===1||a[1].optional)||a[0].type!=="Dictionary":!1};var Km=function(){if(!(this instanceof Km))return new Km};y(Km,Kj);x("ee.Function",Km);var Lm=Td;Km.prototype.call=function(a){return this.apply(Mm(this,Array.prototype.slice.call(arguments,0)))};Km.prototype.call=Km.prototype.call;Km.prototype.apply=function(a){a=new O(this,Nm(this,a));return Lm(a,this.aa().returns)};Km.prototype.apply=Km.prototype.apply;
577
- var Om=function(a,b,c){var d=b!==void 0,e=a.aa();if(Jm(c,e,d)){if(c=jb(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=Mm(a,d?[b].concat(c):c);return a.apply(c)},Nm=function(a,b){for(var c=a.aa().args,d={},e={},g=0;g<c.length;g++){var f=c[g].name;if(f in b&&b[f]!==void 0)d[f]=Lm(b[f],c[g].type);else if(!c[g].optional)throw Error("Required argument ("+f+") missing to function: "+a);e[f]=!0}c=[];for(var l in b)e[l]||c.push(l);if(c.length>
578
- 0)throw Error("Unrecognized arguments ("+c+") to function: "+a);return d},Mm=function(a,b){var c=a.aa().args;if(c.length<b.length)throw Error("Too many ("+b.length+") arguments to function: "+a);a={};for(var d=0;d<b.length;d++)a[c[d].name]=b[d];return a};
579
- Km.prototype.toString=function(a,b){var c=this.aa(),d=[];d.push(a||c.name);d.push("(");d.push(dc(c.args.slice(b?1:0),function(g){return g.name}).join(", "));d.push(")\n");d.push("\n");c.description?d.push(c.description):d.push("Undocumented.");d.push("\n");if(c.args.length)for(d.push("\nArgs:\n"),a=0;a<c.args.length;a++){b&&a==0?d.push(" this:"):d.push("\n ");var e=c.args[a];d.push(e.name);d.push(" (");d.push(e.type);e.optional&&d.push(", optional");d.push("): ");e.description?d.push(e.description):
580
- d.push("Undocumented.")}return d.join("")};Km.prototype.ua=function(a){return(a===void 0?0:a)?Ik(this):Sk(this)};var P=function(a,b){if(b===void 0)return Pm(a);if(!(this instanceof P))return Cm(P,arguments);this.ub=kb(b);this.ub.name=a};y(P,Km);x("ee.ApiFunction",P);var Q=function(a,b){return Km.prototype.call.apply(Pm(a),Array.prototype.slice.call(arguments,1))};x("ee.ApiFunction._call",Q);var Qm=function(a,b){return Pm(a).apply(b)};x("ee.ApiFunction._apply",Qm);P.prototype.encode=function(){return this.ub.name};P.prototype.Gd=function(a,b){return Qj(this.ub.name,b)};P.prototype.aa=function(){return this.ub};
581
- var Rm=null,Sm={},Um=function(){Tm();return ab(Rm,function(a){return a.aa()})},Vm=function(){Tm();return $a(Rm,function(a,b){return!Sm[b]})},Pm=function(a){var b=Wm(a);if(!b)throw Error("Unknown built-in function name: "+a);return b};x("ee.ApiFunction.lookup",Pm);
582
- var Wm=function(a){Tm();return Rm[a]||null},Tm=function(a,b){if(Rm)a&&a();else{var c=function(d,e){e?b&&b(Error(e)):(Rm=ab(d,function(g,f){g.returns=g.returns.replace(/<.*>/,"");for(var l=0;l<g.args.length;l++)g.args[l].type=g.args[l].type.replace(/<.*>/,"");return new P(f,g)}),a&&a())};a?sl(c):c(sl())}},Xm=function(a,b,c,d){Tm();var e=d||"";Za(Rm,function(g,f){var l=f.split(".");if(l.length==2&&l[0]==b){l=e+l[1];var m=g.aa();Sm[f]=!0;var p=!1;m.args.length&&(f=m.args[0].type,p=f!="Object"&&Fm(f,
583
- c));f=p?a.prototype:a;l in f&&!f[l].signature||(f[l]=function(v){return Om(g,p?this:void 0,Array.prototype.slice.call(arguments,0))},f[l].toString=w(g.toString,g,l,p),f[l].signature=m)}})},Ym=function(a){var b=function(c){for(var d in c)typeof c[d]==="function"&&c[d].signature&&delete c[d]};b(a);b(a.prototype||{})};var R=function(a,b){var c=Zm(a),d=dc(c,function(m){return m.replace(/^opt_/,"")});a=(a=t.EXPORTED_FN_INFO?t.EXPORTED_FN_INFO[a.toString()].name.split(".").pop()+"()":null)?" to function "+a:"";var e={},g=b[0],f=u(g)&&typeof g!=="function"&&!Array.isArray(g)&&Object.getPrototypeOf(g).constructor.name==="Object";if(b.length>1||!f){if(b.length>d.length)throw Error("Received too many arguments"+a+". Expected at most "+d.length+" but got "+b.length+".");for(g=0;g<b.length;g++)e[d[g]]=b[g]}else{f=new ge(db(g));
584
- var l=new ge(d);if(l.intersection(f).isEmpty())e[d[0]]=b[0];else{b=f.difference(l);if(b.size!==0)throw Error("Unexpected arguments"+a+": "+Array.from(b.values()).join(", "));e=jb(g)}}b=new ge(db(e));c=(new ge(cc(c,function(m){return m.lastIndexOf("opt_",0)!=0}))).difference(b);if(c.size!==0)throw Error("Missing required arguments"+a+": "+Array.from(c.values()).join(", "));return e},Zm=function(a){var b=$m,c=[];t.EXPORTED_FN_INFO?(a=t.EXPORTED_FN_INFO[a.toString()],u(a)||an(),c=a.paramNames,Array.isArray(c)||
585
- an()):(a=a.toString().replace(bn,"").match(b),a===null&&an(),c=(a[1].split(",")||[]).map(function(d){return d.replace(cn,"")}));return c},an=function(){throw Error("Failed to locate function parameters.");},bn=/((\/\/.*$)|(\/\*[\s\S]*?\*\/)|(\s))/mg,$m=/^function[^\(]*\(([^\)]*)\)/m,cn=/=.*$/;var S=function(a,b,c){O.call(this,a,b,c);dn()};y(S,O);x("ee.Element",S);var en=!1,dn=function(){en||(Xm(S,"Element","Element"),en=!0)};S.prototype.name=function(){return"Element"};
586
- S.prototype.set=function(a){var b;if(arguments.length<=1){var c=arguments[0];if(b=Im(c))a:{b=db(c);var d=["properties"];if(Aa(b)&&Aa(d)&&b.length==d.length){for(var e=b.length,g=0;g<e;g++)if(b[g]!==d[g]){b=!1;break a}b=!0}else b=!1}b&&u(c.properties)&&(c=c.properties);if(Im(c)){b=this;for(var f in c)d=c[f],b=Q("Element.set",b,f,d)}else if(c instanceof O&&Wm("Element.setMulti"))b=Q("Element.setMulti",this,c);else throw Error("When Element.set() is passed one argument, it must be a dictionary.");}else{if(arguments.length%
587
- 2!=0)throw Error("When Element.set() is passed multiple arguments, there must be an even number of them.");b=this;for(c=0;c<arguments.length;c+=2)f=arguments[c],d=arguments[c+1],b=Q("Element.set",b,f,d)}return Dm(this,b)};S.prototype.set=S.prototype.set;var T=function(a,b,c,d){if(!(this instanceof T))return Cm(T,arguments);if(typeof a!=="object"||!("type"in a)){var e=R(T,arguments);a=e.geoJson;b=e.proj;c=e.geodesic;d=e.evenOdd}fn();e=b!=null||c!=null||d!=null;if(a instanceof O&&!(a instanceof T&&a.mb)){if(e)throw Error("Setting the CRS, geodesic, or evenOdd flag on a computed Geometry is not supported. Use Geometry.transform().");O.call(this,a.J,a.args,a.V)}else{a instanceof T&&(a=a.encode());if(!gn(a))throw Error("Invalid GeoJSON geometry: "+JSON.stringify(a));
588
- O.call(this,null,null);this.mb=a.type;this.Zg=a.coordinates!=null?kb(a.coordinates):null;this.Ch=a.geometries||null;if(b!=null)this.Zb=b;else if("crs"in a)if(u(a.crs)&&a.crs.type=="name"&&u(a.crs.properties)&&typeof a.crs.properties.name==="string")this.Zb=a.crs.properties.name;else throw Error("Invalid CRS declaration in GeoJSON: "+(new Ji).ua(a.crs));this.sc=c;this.sc===void 0&&"geodesic"in a&&(this.sc=!!a.geodesic);this.qc=d;this.qc===void 0&&"evenOdd"in a&&(this.qc=!!a.evenOdd)}};y(T,O);
589
- x("ee.Geometry",T);var hn=!1,fn=function(){hn||(Xm(T,"Geometry","Geometry"),hn=!0)},jn=function(a,b){if(!(this instanceof jn))return kn(jn,arguments);var c=ln(jn,"Point",1,arguments);if(!(c instanceof O)){var d=c.coordinates;if(!Array.isArray(d)||d.length!=2)throw Error("The Geometry.Point constructor requires 2 coordinates.");}T.call(this,c)};y(jn,T);T.Point=jn;var mn=function(a,b){if(!(this instanceof mn))return kn(mn,arguments);T.call(this,ln(mn,"MultiPoint",2,arguments))};y(mn,T);
590
- T.MultiPoint=mn;var nn=function(a,b,c,d){if(!(this instanceof nn))return kn(nn,arguments);var e=ln(nn,"Rectangle",2,arguments);if(!(e instanceof O)){var g=e.coordinates;if(g.length!=2)throw Error("The Geometry.Rectangle constructor requires 2 points or 4 coordinates.");var f=g[0][0],l=g[0][1],m=g[1][0];g=g[1][1];e.coordinates=[[[f,g],[f,l],[m,l],[m,g]]];e.type="Polygon"}T.call(this,e)};y(nn,T);T.Rectangle=nn;
591
- var on=function(a,b,c,d){if(!(this instanceof on))return kn(on,arguments);var e=R(on,arguments);a=e.west;b=e.south;c=e.east;d=e.north;e=[a,b,c,d];if(pn(e)){var g;return(g=new P("GeometryConstructors.BBox")).call.apply(g,na(e))}if(!(a<Infinity))throw Error("Geometry.BBox: west must not be "+a);if(!(c>-Infinity))throw Error("Geometry.BBox: east must not be "+c);if(!(b<=90))throw Error("Geometry.BBox: south must be at most +90\u00b0, but was "+b+"\u00b0");if(!(d>=-90))throw Error("Geometry.BBox: north must be at least -90\u00b0, but was "+
592
- d+"\u00b0");b=Math.max(b,-90);d=Math.min(d,90);c-a>=360?(a=-180,c=180):(a=qn(a),c=qn(c),c<a&&(c+=360));T.call(this,{type:"Polygon",coordinates:[[[a,d],[a,b],[c,b],[c,d]]]},void 0,!1,!0)};y(on,nn);T.BBox=on;var qn=function(a){a%=360;a>180?a-=360:a<-180&&(a+=360);return a},rn=function(a,b,c,d){if(!(this instanceof rn))return kn(rn,arguments);T.call(this,ln(rn,"LineString",2,arguments))};y(rn,T);T.LineString=rn;
593
- var sn=function(a,b,c,d){if(!(this instanceof sn))return kn(sn,arguments);T.call(this,ln(sn,"LinearRing",2,arguments))};y(sn,T);T.LinearRing=sn;var tn=function(a,b,c,d){if(!(this instanceof tn))return kn(tn,arguments);T.call(this,ln(tn,"MultiLineString",3,arguments))};y(tn,T);T.MultiLineString=tn;var un=function(a,b,c,d,e){if(!(this instanceof un))return kn(un,arguments);T.call(this,ln(un,"Polygon",3,arguments))};y(un,T);T.Polygon=un;
594
- var vn=function(a,b,c,d,e){if(!(this instanceof vn))return kn(vn,arguments);T.call(this,ln(vn,"MultiPolygon",4,arguments))};y(vn,T);T.MultiPolygon=vn;
562
+ "IMAGE_COLLECTION";break a;case "Folder":c="FOLDER"}a.type=c;e=new K(e);return e.handle(e.assets().create(d,a,{assetId:b}).then(hk))};x("ee.data.createAsset",pm);var qm=function(a,b,c){return pm({type:"Folder"},a,b,void 0,c)};x("ee.data.createFolder",qm);var rm=function(a,b,c){a=gk(a);b=gk(b);b=new Kg({Ob:b});c=new K(c);c.handle(c.assets().move(a,b).then(hk))};x("ee.data.renameAsset",rm);
563
+ var sm=function(a,b,c,d){a=gk(a);b=gk(b);c=new uf({Ob:b,overwrite:c!=null?c:null});d=new K(d);b=d.handle;var e=d.assets();var g=g===void 0?{}:g;var f=f===void 0?{}:f;e.j.D(a,RegExp("^projects/[^/]+/assets/.*$"));g=G(e.j,{body:c,C:"POST",F:"earthengine.projects.assets.copy",path:"/"+e.m+"/"+a+":copy",A:F(g,f),H:Bf});b.call(d,g.then(hk))};x("ee.data.copyAsset",sm);var tm=function(a,b){b=new K(b);b.handle(b.assets().delete(gk(a)))};x("ee.data.deleteAsset",tm);
564
+ var um=function(a,b){a=gk(a);var c=new pg;b=new K(b);var d=b.handle,e=b.assets(),g={prettyPrint:!1};g=g===void 0?{}:g;var f=f===void 0?{}:f;e.j.D(a,RegExp("^projects/[^/]+/assets/.*$"));f=G(e.j,{body:c,C:"POST",F:"earthengine.projects.assets.getIamPolicy",path:"/"+e.m+"/"+a+":getIamPolicy",A:F(g,f),H:Wf});return d.call(b,f.then(pk))};x("ee.data.getAssetAcl",um);
565
+ var vm=function(a,b,c,d){b=new ch({Lb:b,updateMask:(c||[]).join(",")});d=new K(d);c=d.handle;var e=d.assets();a=gk(a);var g=g===void 0?{}:g;var f=f===void 0?{}:f;e.j.D(a,RegExp("^projects/[^/]+/assets/.*$"));g=G(e.j,{body:b,C:"PATCH",F:"earthengine.projects.assets.patch",path:"/"+e.m+"/"+a,A:F(g,f),H:Bf});return c.call(d,g.then(hk))};x("ee.data.updateAsset",vm);
566
+ var wm=function(a,b,c){a=gk(a);b=qk(b);b=new Xg({ib:b});c=new K(c);var d=c.handle,e=c.assets(),g={prettyPrint:!1};g=g===void 0?{}:g;var f=f===void 0?{}:f;e.j.D(a,RegExp("^projects/[^/]+/assets/.*$"));f=G(e.j,{body:b,C:"POST",F:"earthengine.projects.assets.setIamPolicy",path:"/"+e.m+"/"+a+":setIamPolicy",A:F(g,f),H:Wf});d.call(c,f)};x("ee.data.setAssetAcl",wm);
567
+ var xm=function(a,b,c){var d=lk(b);b=La(d.i()).keys.filter(function(e){return e!=="properties"&&D(d,e)}).map(function(e){return e.replace(/([A-Z])/g,function(g,f){return"_"+f.toLowerCase()})}).concat(Object.keys(d.properties||{}).map(function(e){return'properties."'+e+'"'}));vm(a,d,b,c)};x("ee.data.setAssetProperties",xm);
568
+ var ym=function(a,b){var c=gk(a);b=new K(b);var d=b.assets(),e=d.j.D;d.j.D=function(g,f){f.source==="^projects\\/[^/]+\\/assets\\/.+$"&&(f=RegExp("^projects/[^/]+/assets/.*$"));return e(g,f)};c=d.get(c,{prettyPrint:!1});return b.handle(c.then(function(g){if(!(g instanceof Bf&&g.quota))throw Error(a+" is not a root folder.");g=g.quota;return{asset_count:{usage:Number(g.Ne||0),limit:Number(g.Lf||0)},asset_size:{usage:Number(g.sizeBytes||0),limit:Number(g.Vb||0)}}}))};x("ee.data.getAssetRootQuota",ym);
569
+ var zm=function(){this.default=this.tag=""};zm.prototype.get=function(){return this.tag};zm.prototype.set=function(a){this.tag=this.validate(a)};zm.prototype.reset=function(){this.tag=this.default};
570
+ zm.prototype.validate=function(a){if(a==null||a==="")return"";a=String(a);if(!/^([a-z0-9]|[a-z0-9][-_a-z0-9]{0,61}[a-z0-9])$/g.test(a))throw Error('Invalid tag, "'+a+'". Tags must be 1-63 characters, beginning and ending with a lowercase alphanumeric character ([a-z0-9]) with dashes (-), underscores (_), and lowercase alphanumerics between.');return a};var ul=function(){return nl(zm).get()};x("ee.data.getWorkloadTag",ul);var Am=function(a){nl(zm).set(a)};x("ee.data.setWorkloadTag",Am);
571
+ var Bm=function(a){var b=nl(zm);b.default=b.validate(a);nl(zm).set(a)};x("ee.data.setDefaultWorkloadTag",Bm);var Cm=function(a){a&&(a=nl(zm),a.default=a.validate(""));nl(zm).reset()};x("ee.data.resetWorkloadTag",Cm);var Vl={Gl:"CANCEL",Jl:"UPDATE"};var O=function(a,b,c){if(!(this instanceof O))return Dm(O,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.J=a;this.args=b;this.V=c||null;this.yl=null};y(O,Lj);x("ee.ComputedObject",O);O.prototype.Dh=function(){return this.yl};O.prototype.evaluate=function(a){if(!a||typeof a!=="function")throw Error("evaluate() requires a callback function.");Al(this,a)};
572
+ O.prototype.evaluate=O.prototype.evaluate;O.prototype.W=function(a){return Al(this,a)};O.prototype.getInfo=O.prototype.W;O.prototype.encode=function(a){if(this.J===null&&this.args===null)return{type:"ArgumentRef",value:this.V};var b={},c;for(c in this.args)this.args[c]!==void 0&&(b[c]=a(this.args[c]));b={type:"Invocation",arguments:b};a=a(this.J);b[typeof a==="string"?"functionName":"function"]=a;return b};
573
+ O.prototype.ma=function(a){if(this.J===null&&this.args===null){a=this.V||a.Ri;if(!a)throw Error("A mapped function's arguments cannot be used in client-side operations");return new af({Kb:a})}var b={},c;for(c in this.args)this.args[c]!==void 0&&(b[c]=Oj(Vk(a,this.args[c])));return typeof this.J==="string"?Rj(String(this.J),b):this.J.Gd(a,b)};O.prototype.ua=function(a){return(a===void 0?0:a)?Jk(this):Tk(this)};O.prototype.serialize=O.prototype.ua;
574
+ O.prototype.toString=function(){return"ee."+this.name()+"("+Lk(this)+")"};x("ee.ComputedObject.prototype.toString",O.prototype.toString);O.prototype.name=function(){return"ComputedObject"};O.prototype.Fg=function(a,b){var c=Array.from(arguments);c[0]=this;a.apply(t,c);return this};O.prototype.aside=O.prototype.Fg;
575
+ var Em=function(a,b){if(b instanceof a.constructor)return b;var c=function(){};c.prototype=a.constructor.prototype;a=new c;a.J=b.J;a.args=b.args;a.V=b.V;return a},Dm=function(a,b){function c(){return a.apply(this,b)}c.prototype=a.prototype;return new c};var Fm={},Gm=function(a,b){if(b==a)return!0;switch(a){case "Element":return b=="Element"||b=="Image"||b=="Feature"||b=="Collection"||b=="ImageCollection"||b=="FeatureCollection";case "FeatureCollection":case "Collection":return b=="Collection"||b=="ImageCollection"||b=="FeatureCollection";case "Object":return!0;default:return!1}},Hm=function(a){return typeof a==="number"||a instanceof O&&a.name()=="Number"},Im=function(a){return typeof a==="string"||a instanceof O&&a.name()=="String"},Jm=function(a){return u(a)&&
576
+ typeof a!=="function"?(a=Object.getPrototypeOf(a),a!==null&&Object.getPrototypeOf(a)===null):!1},Km=function(a,b,c){c=c===void 0?!1:c;return a.length===1&&Jm(a[0])&&(a=b.args,c&&(a=a.slice(1)),a.length)?!(a.length===1||a[1].optional)||a[0].type!=="Dictionary":!1};var Lm=function(){if(!(this instanceof Lm))return new Lm};y(Lm,Lj);x("ee.Function",Lm);var Mm=Td;Lm.prototype.call=function(a){return this.apply(Nm(this,Array.prototype.slice.call(arguments,0)))};Lm.prototype.call=Lm.prototype.call;Lm.prototype.apply=function(a){a=new O(this,Om(this,a));return Mm(a,this.aa().returns)};Lm.prototype.apply=Lm.prototype.apply;
577
+ var Pm=function(a,b,c){var d=b!==void 0,e=a.aa();if(Km(c,e,d)){if(c=jb(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=Nm(a,d?[b].concat(c):c);return a.apply(c)},Om=function(a,b){for(var c=a.aa().args,d={},e={},g=0;g<c.length;g++){var f=c[g].name;if(f in b&&b[f]!==void 0)d[f]=Mm(b[f],c[g].type);else if(!c[g].optional)throw Error("Required argument ("+f+") missing to function: "+a);e[f]=!0}c=[];for(var l in b)e[l]||c.push(l);if(c.length>
578
+ 0)throw Error("Unrecognized arguments ("+c+") to function: "+a);return d},Nm=function(a,b){var c=a.aa().args;if(c.length<b.length)throw Error("Too many ("+b.length+") arguments to function: "+a);a={};for(var d=0;d<b.length;d++)a[c[d].name]=b[d];return a};
579
+ Lm.prototype.toString=function(a,b){var c=this.aa(),d=[];d.push(a||c.name);d.push("(");d.push(dc(c.args.slice(b?1:0),function(g){return g.name}).join(", "));d.push(")\n");d.push("\n");c.description?d.push(c.description):d.push("Undocumented.");d.push("\n");if(c.args.length)for(d.push("\nArgs:\n"),a=0;a<c.args.length;a++){b&&a==0?d.push(" this:"):d.push("\n ");var e=c.args[a];d.push(e.name);d.push(" (");d.push(e.type);e.optional&&d.push(", optional");d.push("): ");e.description?d.push(e.description):
580
+ d.push("Undocumented.")}return d.join("")};Lm.prototype.ua=function(a){return(a===void 0?0:a)?Jk(this):Tk(this)};var P=function(a,b){if(b===void 0)return Qm(a);if(!(this instanceof P))return Dm(P,arguments);this.ub=kb(b);this.ub.name=a};y(P,Lm);x("ee.ApiFunction",P);var Q=function(a,b){return Lm.prototype.call.apply(Qm(a),Array.prototype.slice.call(arguments,1))};x("ee.ApiFunction._call",Q);var Rm=function(a,b){return Qm(a).apply(b)};x("ee.ApiFunction._apply",Rm);P.prototype.encode=function(){return this.ub.name};P.prototype.Gd=function(a,b){return Rj(this.ub.name,b)};P.prototype.aa=function(){return this.ub};
581
+ var Sm=null,Tm={},Vm=function(){Um();return ab(Sm,function(a){return a.aa()})},Wm=function(){Um();return $a(Sm,function(a,b){return!Tm[b]})},Qm=function(a){var b=Xm(a);if(!b)throw Error("Unknown built-in function name: "+a);return b};x("ee.ApiFunction.lookup",Qm);
582
+ var Xm=function(a){Um();return Sm[a]||null},Um=function(a,b){if(Sm)a&&a();else{var c=function(d,e){e?b&&b(Error(e)):(Sm=ab(d,function(g,f){g.returns=g.returns.replace(/<.*>/,"");for(var l=0;l<g.args.length;l++)g.args[l].type=g.args[l].type.replace(/<.*>/,"");return new P(f,g)}),a&&a())};a?tl(c):c(tl())}},Ym=function(a,b,c,d){Um();var e=d||"";Za(Sm,function(g,f){var l=f.split(".");if(l.length==2&&l[0]==b){l=e+l[1];var m=g.aa();Tm[f]=!0;var p=!1;m.args.length&&(f=m.args[0].type,p=f!="Object"&&Gm(f,
583
+ c));f=p?a.prototype:a;l in f&&!f[l].signature||(f[l]=function(v){return Pm(g,p?this:void 0,Array.prototype.slice.call(arguments,0))},f[l].toString=w(g.toString,g,l,p),f[l].signature=m)}})},Zm=function(a){var b=function(c){for(var d in c)typeof c[d]==="function"&&c[d].signature&&delete c[d]};b(a);b(a.prototype||{})};var R=function(a,b){var c=$m(a),d=dc(c,function(m){return m.replace(/^opt_/,"")});a=(a=t.EXPORTED_FN_INFO?t.EXPORTED_FN_INFO[a.toString()].name.split(".").pop()+"()":null)?" to function "+a:"";var e={},g=b[0],f=u(g)&&typeof g!=="function"&&!Array.isArray(g)&&Object.getPrototypeOf(g).constructor.name==="Object";if(b.length>1||!f){if(b.length>d.length)throw Error("Received too many arguments"+a+". Expected at most "+d.length+" but got "+b.length+".");for(g=0;g<b.length;g++)e[d[g]]=b[g]}else{f=new ge(db(g));
584
+ var l=new ge(d);if(l.intersection(f).isEmpty())e[d[0]]=b[0];else{b=f.difference(l);if(b.size!==0)throw Error("Unexpected arguments"+a+": "+Array.from(b.values()).join(", "));e=jb(g)}}b=new ge(db(e));c=(new ge(cc(c,function(m){return m.lastIndexOf("opt_",0)!=0}))).difference(b);if(c.size!==0)throw Error("Missing required arguments"+a+": "+Array.from(c.values()).join(", "));return e},$m=function(a){var b=an,c=[];t.EXPORTED_FN_INFO?(a=t.EXPORTED_FN_INFO[a.toString()],u(a)||bn(),c=a.paramNames,Array.isArray(c)||
585
+ bn()):(a=a.toString().replace(cn,"").match(b),a===null&&bn(),c=(a[1].split(",")||[]).map(function(d){return d.replace(dn,"")}));return c},bn=function(){throw Error("Failed to locate function parameters.");},cn=/((\/\/.*$)|(\/\*[\s\S]*?\*\/)|(\s))/mg,an=/^function[^\(]*\(([^\)]*)\)/m,dn=/=.*$/;var S=function(a,b,c){O.call(this,a,b,c);en()};y(S,O);x("ee.Element",S);var fn=!1,en=function(){fn||(Ym(S,"Element","Element"),fn=!0)};S.prototype.name=function(){return"Element"};
586
+ S.prototype.set=function(a){var b;if(arguments.length<=1){var c=arguments[0];if(b=Jm(c))a:{b=db(c);var d=["properties"];if(Aa(b)&&Aa(d)&&b.length==d.length){for(var e=b.length,g=0;g<e;g++)if(b[g]!==d[g]){b=!1;break a}b=!0}else b=!1}b&&u(c.properties)&&(c=c.properties);if(Jm(c)){b=this;for(var f in c)d=c[f],b=Q("Element.set",b,f,d)}else if(c instanceof O&&Xm("Element.setMulti"))b=Q("Element.setMulti",this,c);else throw Error("When Element.set() is passed one argument, it must be a dictionary.");}else{if(arguments.length%
587
+ 2!=0)throw Error("When Element.set() is passed multiple arguments, there must be an even number of them.");b=this;for(c=0;c<arguments.length;c+=2)f=arguments[c],d=arguments[c+1],b=Q("Element.set",b,f,d)}return Em(this,b)};S.prototype.set=S.prototype.set;var T=function(a,b,c,d){if(!(this instanceof T))return Dm(T,arguments);if(typeof a!=="object"||!("type"in a)){var e=R(T,arguments);a=e.geoJson;b=e.proj;c=e.geodesic;d=e.evenOdd}gn();e=b!=null||c!=null||d!=null;if(a instanceof O&&!(a instanceof T&&a.mb)){if(e)throw Error("Setting the CRS, geodesic, or evenOdd flag on a computed Geometry is not supported. Use Geometry.transform().");O.call(this,a.J,a.args,a.V)}else{a instanceof T&&(a=a.encode());if(!hn(a))throw Error("Invalid GeoJSON geometry: "+JSON.stringify(a));
588
+ O.call(this,null,null);this.mb=a.type;this.Zg=a.coordinates!=null?kb(a.coordinates):null;this.Ch=a.geometries||null;if(b!=null)this.Zb=b;else if("crs"in a)if(u(a.crs)&&a.crs.type=="name"&&u(a.crs.properties)&&typeof a.crs.properties.name==="string")this.Zb=a.crs.properties.name;else throw Error("Invalid CRS declaration in GeoJSON: "+(new Ki).ua(a.crs));this.sc=c;this.sc===void 0&&"geodesic"in a&&(this.sc=!!a.geodesic);this.qc=d;this.qc===void 0&&"evenOdd"in a&&(this.qc=!!a.evenOdd)}};y(T,O);
589
+ x("ee.Geometry",T);var jn=!1,gn=function(){jn||(Ym(T,"Geometry","Geometry"),jn=!0)},kn=function(a,b){if(!(this instanceof kn))return ln(kn,arguments);var c=mn(kn,"Point",1,arguments);if(!(c instanceof O)){var d=c.coordinates;if(!Array.isArray(d)||d.length!=2)throw Error("The Geometry.Point constructor requires 2 coordinates.");}T.call(this,c)};y(kn,T);T.Point=kn;var nn=function(a,b){if(!(this instanceof nn))return ln(nn,arguments);T.call(this,mn(nn,"MultiPoint",2,arguments))};y(nn,T);
590
+ T.MultiPoint=nn;var on=function(a,b,c,d){if(!(this instanceof on))return ln(on,arguments);var e=mn(on,"Rectangle",2,arguments);if(!(e instanceof O)){var g=e.coordinates;if(g.length!=2)throw Error("The Geometry.Rectangle constructor requires 2 points or 4 coordinates.");var f=g[0][0],l=g[0][1],m=g[1][0];g=g[1][1];e.coordinates=[[[f,g],[f,l],[m,l],[m,g]]];e.type="Polygon"}T.call(this,e)};y(on,T);T.Rectangle=on;
591
+ var pn=function(a,b,c,d){if(!(this instanceof pn))return ln(pn,arguments);var e=R(pn,arguments);a=e.west;b=e.south;c=e.east;d=e.north;e=[a,b,c,d];if(qn(e)){var g;return(g=new P("GeometryConstructors.BBox")).call.apply(g,na(e))}if(!(a<Infinity))throw Error("Geometry.BBox: west must not be "+a);if(!(c>-Infinity))throw Error("Geometry.BBox: east must not be "+c);if(!(b<=90))throw Error("Geometry.BBox: south must be at most +90\u00b0, but was "+b+"\u00b0");if(!(d>=-90))throw Error("Geometry.BBox: north must be at least -90\u00b0, but was "+
592
+ d+"\u00b0");b=Math.max(b,-90);d=Math.min(d,90);c-a>=360?(a=-180,c=180):(a=rn(a),c=rn(c),c<a&&(c+=360));T.call(this,{type:"Polygon",coordinates:[[[a,d],[a,b],[c,b],[c,d]]]},void 0,!1,!0)};y(pn,on);T.BBox=pn;var rn=function(a){a%=360;a>180?a-=360:a<-180&&(a+=360);return a},sn=function(a,b,c,d){if(!(this instanceof sn))return ln(sn,arguments);T.call(this,mn(sn,"LineString",2,arguments))};y(sn,T);T.LineString=sn;
593
+ var tn=function(a,b,c,d){if(!(this instanceof tn))return ln(tn,arguments);T.call(this,mn(tn,"LinearRing",2,arguments))};y(tn,T);T.LinearRing=tn;var un=function(a,b,c,d){if(!(this instanceof un))return ln(un,arguments);T.call(this,mn(un,"MultiLineString",3,arguments))};y(un,T);T.MultiLineString=un;var vn=function(a,b,c,d,e){if(!(this instanceof vn))return ln(vn,arguments);T.call(this,mn(vn,"Polygon",3,arguments))};y(vn,T);T.Polygon=vn;
594
+ var wn=function(a,b,c,d,e){if(!(this instanceof wn))return ln(wn,arguments);T.call(this,mn(wn,"MultiPolygon",4,arguments))};y(wn,T);T.MultiPolygon=wn;
595
595
  T.prototype.encode=function(a){if(!this.mb){if(!a)throw Error("Must specify an encode function when encoding a computed geometry.");return O.prototype.encode.call(this,a)}a={type:this.mb};this.mb=="GeometryCollection"?a.geometries=this.Ch:a.coordinates=this.Zg;this.Zb!=null&&(a.crs={type:"name",properties:{name:this.Zb}});this.sc!=null&&(a.geodesic=this.sc);this.qc!=null&&(a.evenOdd=this.qc);return a};
596
- T.prototype.pe=function(){if(this.J)throw Error("Can't convert a computed Geometry to GeoJSON. Use evaluate() instead.");return this.encode()};T.prototype.toGeoJSON=T.prototype.pe;T.prototype.xg=function(){if(this.J)throw Error("Can't convert a computed Geometry to GeoJSON. Use evaluate() instead.");return(new Ji).ua(this.pe())};T.prototype.toGeoJSONString=T.prototype.xg;T.prototype.ua=function(a){return(a===void 0?0:a)?Ik(this):Sk(this)};T.prototype.serialize=T.prototype.ua;
596
+ T.prototype.pe=function(){if(this.J)throw Error("Can't convert a computed Geometry to GeoJSON. Use evaluate() instead.");return this.encode()};T.prototype.toGeoJSON=T.prototype.pe;T.prototype.xg=function(){if(this.J)throw Error("Can't convert a computed Geometry to GeoJSON. Use evaluate() instead.");return(new Ki).ua(this.pe())};T.prototype.toGeoJSONString=T.prototype.xg;T.prototype.ua=function(a){return(a===void 0?0:a)?Jk(this):Tk(this)};T.prototype.serialize=T.prototype.ua;
597
597
  T.prototype.toString=function(){return"ee.Geometry("+this.xg()+")"};
598
598
  T.prototype.ma=function(a){if(!this.mb){if(!a)throw Error("Must specify a serializer when encoding a computed geometry.");return O.prototype.ma.call(this,a)}var b={},c="";this.mb==="GeometryCollection"?(b.geometries=this.Ch.map(function(e){return new T(e)}),c="GeometryConstructors.MultiGeometry"):(b.coordinates=this.Zg,c="GeometryConstructors."+this.mb);this.Zb!=null&&(b.crs=typeof this.Zb==="string"?(new P("Projection")).call(this.Zb):this.Zb);var d=this.mb!=="Point"&&this.mb!=="MultiPoint";this.sc!=
599
599
  null&&d&&(b.geodesic=this.sc);this.qc!=null&&(b.evenOdd=this.qc);return(new P(c)).apply(b).ma(a)};
600
- var gn=function(a){var b=a.type;if(b=="GeometryCollection"){b=a.geometries;if(!Array.isArray(b))return!1;for(a=0;a<b.length;a++)if(!gn(b[a]))return!1;return!0}a=a.coordinates;var c=wn(a);return b=="Point"&&c==1||b=="MultiPoint"&&(c==2||a.length==0)||b=="LineString"&&c==2||b=="LinearRing"&&c==2||b=="MultiLineString"&&(c==3||a.length==0)||b=="Polygon"&&c==3||b=="MultiPolygon"&&(c==4||a.length==0)},wn=function(a){if(!Array.isArray(a))return-1;if(Array.isArray(a[0])){for(var b=wn(a[0]),c=1;c<a.length;c++)if(wn(a[c])!=
601
- b)return-1;return b+1}for(c=0;c<a.length;c++)if(typeof a[c]!=="number")return-1;return a.length%2==0?1:-1},xn=function(a){if(typeof a[0]!=="number"||a.length==2)return a;if(a.length%2!=0)throw Error("Invalid number of coordinates: "+a.length);for(var b=[],c=0;c<a.length;c+=2)b.push([a[c],a[c+1]]);return b},ln=function(a,b,c,d){a=yn(a,d);if(pn(a.coordinates)||a.crs!=null||a.maxError!=null)return(new P("GeometryConstructors."+b)).apply(a);a.type=b;a.coordinates=zn(c,a.coordinates);(b=ic(["Polygon",
602
- "Rectangle","MultiPolygon"],b))&&a.evenOdd==null&&(a.evenOdd=!0);if(b&&a.geodesic===!1&&a.evenOdd===!1)throw Error("Planar interiors must be even/odd.");return a},yn=function(a,b){if(fc(b,Gm))return{coordinates:lc(b)};a=R(a,b);a.coordinates=a.coords;delete a.coords;a.crs=a.proj;delete a.proj;return $a(a,function(c){return c!=null})},pn=function(a){return Array.isArray(a)?ec(a,pn):a instanceof O},zn=function(a,b){if(a<1||a>4)throw Error("Unexpected nesting level.");fc(b,function(e){return typeof e===
603
- "number"})&&(b=xn(b));for(var c=b,d=0;Array.isArray(c);)c=c[0],d++;for(;d<a;)b=[b],d++;if(wn(b)!=a)throw Error("Invalid geometry");for(c=b;Array.isArray(c)&&c.length==1;)c=c[0];return Array.isArray(c)&&c.length==0?[]:b},kn=function(a,b){var c=function(){};c.prototype=a.prototype;c=new c;a=a.apply(c,b);return a!==void 0?a:c};T.prototype.name=function(){return"Geometry"};var U=function(a){if(!(this instanceof U))return Cm(U,arguments);if(a instanceof U)return a;An();if(Array.isArray(a)){if(a.length==0)throw Error("Empty list specified for ee.Filter().");if(a.length==1)return new U(a[0]);O.call(this,new P("Filter.and"),{filters:a})}else if(a instanceof O)O.call(this,a.J,a.args,a.V);else if(a===void 0)O.call(this,null,null);else throw Error("Invalid argument specified for ee.Filter(): "+a);};y(U,O);x("ee.Filter",U);
604
- var Bn=!1,An=function(){Bn||(Xm(U,"Filter","Filter"),Bn=!0)},Cn={equals:"equals",less_than:"lessThan",greater_than:"greaterThan",contains:"stringContains",starts_with:"stringStartsWith",ends_with:"stringEndsWith"};U.prototype.uc=function(){return Q("Filter.not",this)};U.prototype.not=U.prototype.uc;var Dn=function(a,b){var c=R(Dn,arguments);return Q("Filter.equals",c.name,c.value)};U.eq=Dn;var En=function(a,b){var c=R(En,arguments);return Dn(c.name,c.value).uc()};U.neq=En;
605
- var Fn=function(a,b){var c=R(Fn,arguments);return Q("Filter.lessThan",c.name,c.value)};U.lt=Fn;var Gn=function(a,b){var c=R(Gn,arguments);return Fn(c.name,c.value).uc()};U.gte=Gn;var Hn=function(a,b){var c=R(Hn,arguments);return Q("Filter.greaterThan",c.name,c.value)};U.gt=Hn;var In=function(a,b){var c=R(In,arguments);return Hn(c.name,c.value).uc()};U.lte=In;var Jn=function(a){return Q("Filter.and",Array.prototype.slice.call(arguments))};U.and=Jn;var Kn=function(a){return Q("Filter.or",Array.prototype.slice.call(arguments))};
606
- U.or=Kn;var Ln=function(a,b){var c=R(Ln,arguments);c=Q("DateRange",c.start,c.end);return Qm("Filter.dateRangeContains",{leftValue:c,rightField:"system:time_start"})};U.date=Ln;var Mn=function(a,b,c,d){var e=R(Mn,arguments);return Qm("Filter.listContains",{leftField:e.rightField,rightValue:e.leftValue,rightField:e.leftField,leftValue:e.rightValue})};U.inList=Mn;var Nn=function(a,b){return Qm("Filter.intersects",{leftField:".all",rightValue:Q("Feature",a),maxError:b})};U.bounds=Nn;
607
- U.prototype.name=function(){return"Filter"};var On=function(a,b,c){b=b.toLowerCase();var d=!1;b.lastIndexOf("not_",0)==0&&(d=!0,b=b.substring(4));if(!(b in Cn))throw Error("Unknown filtering operator: "+b);a=Q("Filter."+Cn[b],a,c);return d?a.uc():a};U.metadata=On;var V=function(a,b,c){S.call(this,a,b,c);Pn()};y(V,S);x("ee.Collection",V);var Qn=!1,Pn=function(){Qn||(Xm(V,"Collection","Collection"),Xm(V,"AggregateFeatureCollection","Collection","aggregate_"),Qn=!0)};V.prototype.filter=function(a){a=R(V.prototype.filter,arguments).filter;if(!a)throw Error("Empty filters.");return Dm(this,Q("Collection.filter",this,a))};V.prototype.filter=V.prototype.filter;
608
- V.prototype.mf=function(a,b,c){var d=R(V.prototype.mf,arguments);return this.filter(On(d.name,d.operator,d.value))};V.prototype.filterMetadata=V.prototype.mf;V.prototype.wh=function(a){return this.filter(Nn(a))};V.prototype.filterBounds=V.prototype.wh;V.prototype.lf=function(a,b){var c=R(V.prototype.lf,arguments);return this.filter(Ln(c.start,c.end))};V.prototype.filterDate=V.prototype.lf;
609
- V.prototype.limit=function(a,b,c){var d=R(V.prototype.limit,arguments);return Dm(this,Q("Collection.limit",this,d.max,d.property,d.ascending))};V.prototype.limit=V.prototype.limit;V.prototype.sort=function(a,b){var c=R(V.prototype.sort,arguments);return Dm(this,Q("Collection.limit",this,void 0,c.property,c.ascending))};V.prototype.sort=V.prototype.sort;V.prototype.name=function(){return"Collection"};V.prototype.elementType=function(){return S};
610
- V.prototype.map=function(a,b){var c=this.elementType();return Dm(this,Q("Collection.map",this,function(d){return a(new c(d))},b))};V.prototype.map=V.prototype.map;V.prototype.Lh=function(a,b){b=b!==void 0?b:null;var c=this.elementType();return Q("Collection.iterate",this,function(d,e){return a(new c(d),e)},b)};V.prototype.iterate=V.prototype.Lh;var X=function(a,b){if(!(this instanceof X))return Cm(X,arguments);if(a instanceof X){if(b)throw Error("Can't create Feature out of a Feature and properties.");return a}if(arguments.length>2)throw Error("The Feature constructor takes at most 2 arguments ("+arguments.length+" given)");Rn();if(a instanceof T||a===null)S.call(this,new P("Feature"),{geometry:a,metadata:b||null});else if(a instanceof O)S.call(this,a.J,a.args,a.V);else if(a.type=="Feature"){var c=a.properties||{};if("id"in a){if("system:index"in
611
- c)throw Error('Can\'t specify both "id" and "system:index".');c=jb(c);c["system:index"]=a.id}S.call(this,new P("Feature"),{geometry:new T(a.geometry),metadata:c})}else S.call(this,new P("Feature"),{geometry:new T(a),metadata:b||null})};y(X,S);x("ee.Feature",X);var Sn=!1,Rn=function(){Sn||(Xm(X,"Feature","Feature"),Sn=!0)};X.prototype.W=function(a){return X.M.W.call(this,a)};X.prototype.getInfo=X.prototype.W;
612
- X.prototype.S=function(a,b){var c=R(X.prototype.getMap,arguments);return Q("Collection",[this]).S(c.visParams,c.callback)};X.prototype.getMapId=X.prototype.S;X.prototype.getMap=X.prototype.S;X.prototype.getMap=X.prototype.getMap;X.prototype.name=function(){return"Feature"};var am=function(a){var b={},c=Tn(a.element,a);c=Un(c,a,b);b.element=c;return b},bm=function(a){var b={},c=a.element.map(function(d){d=Tn(d,a);return Un(d,a,b)});b.element=c;return b},Un=function(a,b,c){var d={},e=!1,g=["maxDimension","width","height","scale"];Za(b,function(f,l){if(f!=null)switch(l){case "dimensions":l=typeof f==="string"?f.split("x").map(Number):Array.isArray(f)?f:typeof f==="number"?[f]:[];if(l.length===1)d.maxDimension=l[0];else if(l.length===2)d.width=l[0],d.height=l[1];else throw Error("Invalid dimensions "+
613
- f);break;case "dimensions_consumed":e=!0;break;case "bbox":d.geometry!=null&&console.warn("Multiple request parameters converted to region.");if(!(f instanceof nn)){l=f;if(typeof f==="string")try{l=JSON.parse(f)}catch(m){l=f.split(/\s*,\s*/).map(Number)}if(Array.isArray(l)){if(l.some(isNaN))throw Error("Invalid bbox `{bboxArray}`, please specify a list of numbers.");f=new nn(l,null,!1)}else throw Error('Invalid bbox "{bbox}" type, must be of type Array<number>');}d.geometry=f;break;case "region":d.geometry!=
614
- null&&console.warn("Multiple request parameters converted to region.");if(!(f instanceof T)){l=f;if(typeof f==="string")try{l=JSON.parse(f)}catch(m){throw Error('Region string "'+f+'" is not valid GeoJSON.');}if(Array.isArray(l))f=new un(l,null,!1);else if(u(l))f=new T(l,null,!1);else throw Error("Region {region} was not convertible to an ee.Geometry.");}d.geometry=f;break;case "scale":d.scale=Number(f);break;default:c[l]=f}});hb(d)||(d.input=a,a=g.some(function(f){return f in d})||e?Qm("Image.clipToBoundsAndScale",
615
- d):Qm("Image.clip",d));return a},Tn=function(a,b){var c=b.crs||"",d=b.crsTransform||b.crs_transform;d!=null&&(d=Vn(d));if(!c&&!d)return a;if(d&&!c)throw Error('Must specify "crs" if "crsTransform" is specified.');if(d){if(a=Qm("Image.reproject",{image:a,crs:c,crsTransform:d}),b.dimensions!=null&&b.scale==null&&b.region==null){var e=b.dimensions;typeof e==="string"&&(e=e.split("x").map(Number));e.length===2&&(delete b.dimensions,b.dimensions_consumed=!0,c=(new P("Projection")).call(c,d),b.region=new nn([0,
616
- 0,e[0],e[1]],c,!1))}}else a=Qm("Image.setDefaultProjection",{image:a,crs:c,crsTransform:[1,0,0,0,-1,0]});return a},Vn=function(a){if(typeof a==="string")try{a=JSON.parse(a)}catch(b){}if(Array.isArray(a)){if(a.length===6&&fc(a,function(b){return typeof b==="number"}))return a;throw Error("Invalid argument, crs transform must be a list of 6 numbers.");}throw Error("Invalid argument, crs transform was not a string or array.");},Xn=function(a,b){var c={};b=Wn(b,c);hb(b)||(b.image=a,a=Qm("Image.visualize",
617
- b));c.image=a;return c},Wn=function(a,b){var c="bands gain bias min max gamma palette opacity forceRgbOutput".split(" "),d={};Za(a,function(e,g){ic(c,g)?d[g]=e:b[g]=e});return d},El=function(a,b){b=Object.assign({},b);var c=function(e){var g={};["crs","crs_transform","dimensions","region"].forEach(function(f){f in e&&(g[f]=e[f])});e.scale!=null&&e.dimensions==null&&(g.scale=e.scale);return g},d=function(e){var g=e.id;if(g===void 0)throw Error("Each band dictionary must have an id.");g=a.select(g);
618
- var f=c(b);e=c(e);e=c(Object.assign(f,e));g=Tn(g,e);return g=Un(g,e,{})};b.format==="ZIPPED_GEO_TIFF_PER_BAND"&&b.bands&&b.bands.length?(d=b.bands.map(d),a=d.reduce(function(e,g){return Q("Image.addBands",e,g,null,!0)},d.shift())):(d=c(b),a=Tn(a,d),a=Un(a,d,{}));return a};var N=function(a){if(!(this instanceof N))return Cm(N,arguments);if(a instanceof N)return a;Yn();var b=arguments.length;if(b==0||b==1&&a===void 0)S.call(this,new P("Image.mask"),{image:new N(0),mask:new N(0)});else if(b==1)if(Gm(a))S.call(this,new P("Image.constant"),{value:a});else if(Hm(a))S.call(this,new P("Image.load"),{id:a});else{if(Array.isArray(a))return Zn(dc(a,function(d){return new N(d)}));if(a instanceof O)a.name()=="Array"?S.call(this,new P("Image.constant"),{value:a}):S.call(this,a.J,
619
- a.args,a.V);else throw Error("Unrecognized argument type to convert to an Image: "+a);}else if(b==2){b=arguments[0];var c=arguments[1];if(Hm(b)&&Gm(c))S.call(this,new P("Image.load"),{id:b,version:c});else throw Error("Unrecognized argument types to convert to an Image: "+arguments);}else throw Error("The Image constructor takes at most 2 arguments ("+b+" given)");};y(N,S);x("ee.Image",N);var $n=!1,Yn=function(){$n||(Xm(N,"Image","Image"),$n=!0)};N.prototype.W=function(a){return N.M.W.call(this,a)};
620
- N.prototype.getInfo=N.prototype.W;N.prototype.S=function(a,b){var c=this,d=R(N.prototype.getMap,arguments),e=Xn(this,d.visParams);if(d.callback){var g=d.callback;vl(e,function(f,l){f=f?Object.assign(f,{image:c}):void 0;g(f,l)})}else return d=vl(e),d.image=this,d};N.prototype.getMapId=N.prototype.S;N.prototype.getMap=N.prototype.S;N.prototype.getMap=N.prototype.getMap;
621
- N.prototype.qb=function(a,b){var c=R(N.prototype.qb,arguments),d=c.params?jb(c.params):{};d.image=this;if(c.callback){var e=c.callback;Fl(d,function(g,f){g?e(Gl(g)):e(null,f)})}else return Gl(Fl(d))};N.prototype.getDownloadURL=N.prototype.qb;N.prototype.Md=function(a,b){var c=R(N.prototype.qb,arguments),d=c.params?jb(c.params):{},e={},g=Tn(this,d);g=Un(g,d,e);d=Xn(g,e);return c.callback?(Al(d,c.callback),null):Al(d)};N.prototype.getThumbId=N.prototype.Md;
622
- N.prototype.uf=function(a,b){var c=R(N.prototype.uf,arguments);if(c.callback)this.Md(c.params,function(d,e){var g="";if(e===void 0)try{g=Dl(d)}catch(f){e=String(f.message)}c.callback(g,e)});else return Dl(this.Md(c.params))};N.prototype.getThumbURL=N.prototype.uf;var ao=function(a,b,c){var d=R(ao,arguments);return Zn([d.r,d.g,d.b],["vis-red","vis-green","vis-blue"])};N.rgb=ao;var bo=function(a){return Zn(Array.prototype.slice.call(arguments),null)};N.cat=bo;
623
- var Zn=function(a,b){if(a.length==0)return Q("Image.constant",[]);for(var c=new N(a[0]),d=1;d<a.length;d++)c=Q("Image.addBands",c,a[d]);b&&(c=c.select([".*"],b));return c};
624
- N.prototype.select=function(a){var b=Array.prototype.slice.call(arguments),c={input:this,bandSelectors:b[0]||[]};if(b.length>2||Hm(b[0])||Gm(b[0])){for(var d=0;d<b.length;d++)if(!(Hm(b[d])||Gm(b[d])||b[d]instanceof O))throw Error("Illegal argument to select(): "+b[d]);c.bandSelectors=b}else b[1]&&(c.newNames=b[1]);return Qm("Image.select",c)};N.prototype.select=N.prototype.select;
625
- N.prototype.l=function(a,b){var c=R(N.prototype.l,arguments),d=["DEFAULT_EXPRESSION_IMAGE"],e={DEFAULT_EXPRESSION_IMAGE:this};if(c.map){var g=c.map,f;for(f in g)d.push(f),e[f]=new N(g[f])}var l=Q("Image.parseExpression",c.expression,"DEFAULT_EXPRESSION_IMAGE",d);c=new Km;c.encode=function(m){return l.encode(m)};c.Gd=function(m,p){return Rj(Uk(m,l),p)};c.aa=function(){return{name:"",args:dc(d,function(m){return{name:m,type:"Image",optional:!1}},this),returns:"Image"}};return c.apply(e)};
626
- N.prototype.expression=N.prototype.l;N.prototype.clip=function(a){try{a=new T(a)}catch(b){}return Q("Image.clip",this,a)};N.prototype.clip=N.prototype.clip;N.prototype.ri=function(a){var b=arguments.length!=1||Hm(arguments[0])?Array.from(arguments):arguments[0];return Q("Image.rename",this,b)};N.prototype.rename=N.prototype.ri;N.prototype.name=function(){return"Image"};var co=function(a){if(this instanceof co){if(arguments.length>1)throw Error("ee.List() only accepts 1 argument.");if(a instanceof co)return a}else return Cm(co,arguments);eo();if(Array.isArray(a))O.call(this,null,null),this.Wc=a;else if(a instanceof O)O.call(this,a.J,a.args,a.V),this.Wc=null;else throw Error("Invalid argument specified for ee.List(): "+a);};y(co,O);x("ee.List",co);var fo=!1,eo=function(){fo||(Xm(co,"List","List"),fo=!0)};
627
- co.prototype.encode=function(a){return Array.isArray(this.Wc)?dc(this.Wc,function(b){return a(b)}):co.M.encode.call(this,a)};co.prototype.ma=function(a){return Array.isArray(this.Wc)?Nj(Uk(a,this.Wc)):co.M.ma.call(this,a)};co.prototype.name=function(){return"List"};var Y=function(a,b){if(!(this instanceof Y))return Cm(Y,arguments);if(a instanceof Y)return a;if(arguments.length>2)throw Error("The FeatureCollection constructor takes at most 2 arguments ("+arguments.length+" given)");go();a instanceof T&&(a=new X(a));a instanceof X&&(a=[a]);if(Hm(a)){var c={tableId:a};b&&(c.geometryColumn=b);V.call(this,new P("Collection.loadTable"),c)}else if(Array.isArray(a))V.call(this,new P("Collection"),{features:dc(a,function(d){return new X(d)})});else if(a instanceof co)V.call(this,
628
- new P("Collection"),{features:a});else if(a&&typeof a==="object"&&a.type==="FeatureCollection")V.call(this,new P("Collection"),{features:a.features.map(function(d){return new X(d)})});else if(a instanceof O)V.call(this,a.J,a.args,a.V);else throw Error("Unrecognized argument type to convert to a FeatureCollection: "+a);};y(Y,V);x("ee.FeatureCollection",Y);var ho=!1,go=function(){ho||(Xm(Y,"FeatureCollection","FeatureCollection"),ho=!0)};
629
- Y.prototype.S=function(a,b){var c=R(Y.prototype.S,arguments),d=Qm("Collection.draw",{collection:this,color:(c.visParams||{}).color||"000000"});if(c.callback)d.S(void 0,c.callback);else return d.S()};Y.prototype.getMapId=Y.prototype.S;Y.prototype.getMap=Y.prototype.S;Y.prototype.getMap=Y.prototype.getMap;Y.prototype.W=function(a){return Y.M.W.call(this,a)};Y.prototype.getInfo=Y.prototype.W;
630
- Y.prototype.qb=function(a,b,c,d){var e=R(Y.prototype.qb,arguments),g={table:this};e.format&&(g.format=e.format.toUpperCase());e.filename&&(g.filename=e.filename);e.selectors&&(g.selectors=e.selectors);if(e.callback)Hl(g,function(f,l){f?e.callback(Il(f)):e.callback(null,l)});else return Il(Hl(g))};Y.prototype.getDownloadURL=Y.prototype.qb;
631
- Y.prototype.select=function(a,b,c){if(Hm(a)){var d=Array.prototype.slice.call(arguments);return this.map(function(g){return g.select(d)})}var e=R(Y.prototype.select,arguments);return this.map(function(g){return g.select(e)})};Y.prototype.select=Y.prototype.select;Y.prototype.name=function(){return"FeatureCollection"};Y.prototype.elementType=function(){return X};var Z=function(a){if(!(this instanceof Z))return Cm(Z,arguments);if(a instanceof Z)return a;if(arguments.length!=1)throw Error("The ImageCollection constructor takes exactly 1 argument ("+arguments.length+" given)");io();a instanceof N&&(a=[a]);if(Hm(a))V.call(this,new P("ImageCollection.load"),{id:a});else if(Array.isArray(a))V.call(this,new P("ImageCollection.fromImages"),{images:dc(a,function(b){return new N(b)})});else if(a instanceof co)V.call(this,new P("ImageCollection.fromImages"),{images:a});
632
- else if(a instanceof O)V.call(this,a.J,a.args,a.V);else throw Error("Unrecognized argument type to convert to an ImageCollection: "+a);};y(Z,V);x("ee.ImageCollection",Z);var jo=!1,io=function(){jo||(Xm(Z,"ImageCollection","ImageCollection"),Xm(Z,"reduce","ImageCollection"),jo=!0)};Z.prototype.tf=function(a,b){var c=R(Z.prototype.tf,arguments);return ko(this,c,["png","jpg","jpeg"],"filmstrip")};Z.prototype.getFilmstripThumbURL=Z.prototype.tf;
633
- Z.prototype.vf=function(a,b){var c=R(Z.prototype.vf,arguments);return ko(this,c,["gif"],"video")};Z.prototype.getVideoThumbURL=Z.prototype.vf;
634
- var ko=function(a,b,c,d){var e={};a=a.map(function(l){l=Tn(l,b.params);return Un(l,b.params,e)});var g={},f=Wn(e,g);g.imageCollection=a.map(function(l){f.image=l;return Qm("Image.visualize",f)});b.params.dimensions!=null&&(g.dimensions=b.params.dimensions);if(g.format){if(!ec(c,function(l){return l.toLowerCase()==g.format.toLowerCase()}))throw Error("Invalid format specified.");}else g.format=c[0];c=Al;switch(d){case "video":c=Bl;break;case "filmstrip":c=Cl}if(b.callback)c(g,function(l,m){var p="";
635
- if(m===void 0)try{p=Dl(l)}catch(v){m=String(v.message)}b.callback(p,m)});else return Dl(c(g))};Z.prototype.S=function(a,b){var c=R(Z.prototype.S,arguments),d=Q("ImageCollection.mosaic",this);if(c.callback)d.S(c.visParams,c.callback);else return d.S(c.visParams)};Z.prototype.getMapId=Z.prototype.S;Z.prototype.getMap=Z.prototype.S;Z.prototype.getMap=Z.prototype.getMap;Z.prototype.W=function(a){return Z.M.W.call(this,a)};Z.prototype.getInfo=Z.prototype.W;
600
+ var hn=function(a){var b=a.type;if(b=="GeometryCollection"){b=a.geometries;if(!Array.isArray(b))return!1;for(a=0;a<b.length;a++)if(!hn(b[a]))return!1;return!0}a=a.coordinates;var c=xn(a);return b=="Point"&&c==1||b=="MultiPoint"&&(c==2||a.length==0)||b=="LineString"&&c==2||b=="LinearRing"&&c==2||b=="MultiLineString"&&(c==3||a.length==0)||b=="Polygon"&&c==3||b=="MultiPolygon"&&(c==4||a.length==0)},xn=function(a){if(!Array.isArray(a))return-1;if(Array.isArray(a[0])){for(var b=xn(a[0]),c=1;c<a.length;c++)if(xn(a[c])!=
601
+ b)return-1;return b+1}for(c=0;c<a.length;c++)if(typeof a[c]!=="number")return-1;return a.length%2==0?1:-1},yn=function(a){if(typeof a[0]!=="number"||a.length==2)return a;if(a.length%2!=0)throw Error("Invalid number of coordinates: "+a.length);for(var b=[],c=0;c<a.length;c+=2)b.push([a[c],a[c+1]]);return b},mn=function(a,b,c,d){a=zn(a,d);if(qn(a.coordinates)||a.crs!=null||a.maxError!=null)return(new P("GeometryConstructors."+b)).apply(a);a.type=b;a.coordinates=An(c,a.coordinates);(b=ic(["Polygon",
602
+ "Rectangle","MultiPolygon"],b))&&a.evenOdd==null&&(a.evenOdd=!0);if(b&&a.geodesic===!1&&a.evenOdd===!1)throw Error("Planar interiors must be even/odd.");return a},zn=function(a,b){if(fc(b,Hm))return{coordinates:lc(b)};a=R(a,b);a.coordinates=a.coords;delete a.coords;a.crs=a.proj;delete a.proj;return $a(a,function(c){return c!=null})},qn=function(a){return Array.isArray(a)?ec(a,qn):a instanceof O},An=function(a,b){if(a<1||a>4)throw Error("Unexpected nesting level.");fc(b,function(e){return typeof e===
603
+ "number"})&&(b=yn(b));for(var c=b,d=0;Array.isArray(c);)c=c[0],d++;for(;d<a;)b=[b],d++;if(xn(b)!=a)throw Error("Invalid geometry");for(c=b;Array.isArray(c)&&c.length==1;)c=c[0];return Array.isArray(c)&&c.length==0?[]:b},ln=function(a,b){var c=function(){};c.prototype=a.prototype;c=new c;a=a.apply(c,b);return a!==void 0?a:c};T.prototype.name=function(){return"Geometry"};var U=function(a){if(!(this instanceof U))return Dm(U,arguments);if(a instanceof U)return a;Bn();if(Array.isArray(a)){if(a.length==0)throw Error("Empty list specified for ee.Filter().");if(a.length==1)return new U(a[0]);O.call(this,new P("Filter.and"),{filters:a})}else if(a instanceof O)O.call(this,a.J,a.args,a.V);else if(a===void 0)O.call(this,null,null);else throw Error("Invalid argument specified for ee.Filter(): "+a);};y(U,O);x("ee.Filter",U);
604
+ var Cn=!1,Bn=function(){Cn||(Ym(U,"Filter","Filter"),Cn=!0)},Dn={equals:"equals",less_than:"lessThan",greater_than:"greaterThan",contains:"stringContains",starts_with:"stringStartsWith",ends_with:"stringEndsWith"};U.prototype.uc=function(){return Q("Filter.not",this)};U.prototype.not=U.prototype.uc;var En=function(a,b){var c=R(En,arguments);return Q("Filter.equals",c.name,c.value)};U.eq=En;var Fn=function(a,b){var c=R(Fn,arguments);return En(c.name,c.value).uc()};U.neq=Fn;
605
+ var Gn=function(a,b){var c=R(Gn,arguments);return Q("Filter.lessThan",c.name,c.value)};U.lt=Gn;var Hn=function(a,b){var c=R(Hn,arguments);return Gn(c.name,c.value).uc()};U.gte=Hn;var In=function(a,b){var c=R(In,arguments);return Q("Filter.greaterThan",c.name,c.value)};U.gt=In;var Jn=function(a,b){var c=R(Jn,arguments);return In(c.name,c.value).uc()};U.lte=Jn;var Kn=function(a){return Q("Filter.and",Array.prototype.slice.call(arguments))};U.and=Kn;var Ln=function(a){return Q("Filter.or",Array.prototype.slice.call(arguments))};
606
+ U.or=Ln;var Mn=function(a,b){var c=R(Mn,arguments);c=Q("DateRange",c.start,c.end);return Rm("Filter.dateRangeContains",{leftValue:c,rightField:"system:time_start"})};U.date=Mn;var Nn=function(a,b,c,d){var e=R(Nn,arguments);return Rm("Filter.listContains",{leftField:e.rightField,rightValue:e.leftValue,rightField:e.leftField,leftValue:e.rightValue})};U.inList=Nn;var On=function(a,b){return Rm("Filter.intersects",{leftField:".all",rightValue:Q("Feature",a),maxError:b})};U.bounds=On;
607
+ U.prototype.name=function(){return"Filter"};var Pn=function(a,b,c){b=b.toLowerCase();var d=!1;b.lastIndexOf("not_",0)==0&&(d=!0,b=b.substring(4));if(!(b in Dn))throw Error("Unknown filtering operator: "+b);a=Q("Filter."+Dn[b],a,c);return d?a.uc():a};U.metadata=Pn;var V=function(a,b,c){S.call(this,a,b,c);Qn()};y(V,S);x("ee.Collection",V);var Rn=!1,Qn=function(){Rn||(Ym(V,"Collection","Collection"),Ym(V,"AggregateFeatureCollection","Collection","aggregate_"),Rn=!0)};V.prototype.filter=function(a){a=R(V.prototype.filter,arguments).filter;if(!a)throw Error("Empty filters.");return Em(this,Q("Collection.filter",this,a))};V.prototype.filter=V.prototype.filter;
608
+ V.prototype.mf=function(a,b,c){var d=R(V.prototype.mf,arguments);return this.filter(Pn(d.name,d.operator,d.value))};V.prototype.filterMetadata=V.prototype.mf;V.prototype.wh=function(a){return this.filter(On(a))};V.prototype.filterBounds=V.prototype.wh;V.prototype.lf=function(a,b){var c=R(V.prototype.lf,arguments);return this.filter(Mn(c.start,c.end))};V.prototype.filterDate=V.prototype.lf;
609
+ V.prototype.limit=function(a,b,c){var d=R(V.prototype.limit,arguments);return Em(this,Q("Collection.limit",this,d.max,d.property,d.ascending))};V.prototype.limit=V.prototype.limit;V.prototype.sort=function(a,b){var c=R(V.prototype.sort,arguments);return Em(this,Q("Collection.limit",this,void 0,c.property,c.ascending))};V.prototype.sort=V.prototype.sort;V.prototype.name=function(){return"Collection"};V.prototype.elementType=function(){return S};
610
+ V.prototype.map=function(a,b){var c=this.elementType();return Em(this,Q("Collection.map",this,function(d){return a(new c(d))},b))};V.prototype.map=V.prototype.map;V.prototype.Lh=function(a,b){b=b!==void 0?b:null;var c=this.elementType();return Q("Collection.iterate",this,function(d,e){return a(new c(d),e)},b)};V.prototype.iterate=V.prototype.Lh;var X=function(a,b){if(!(this instanceof X))return Dm(X,arguments);if(a instanceof X){if(b)throw Error("Can't create Feature out of a Feature and properties.");return a}if(arguments.length>2)throw Error("The Feature constructor takes at most 2 arguments ("+arguments.length+" given)");Sn();if(a instanceof T||a===null)S.call(this,new P("Feature"),{geometry:a,metadata:b||null});else if(a instanceof O)S.call(this,a.J,a.args,a.V);else if(a.type=="Feature"){var c=a.properties||{};if("id"in a){if("system:index"in
611
+ c)throw Error('Can\'t specify both "id" and "system:index".');c=jb(c);c["system:index"]=a.id}S.call(this,new P("Feature"),{geometry:new T(a.geometry),metadata:c})}else S.call(this,new P("Feature"),{geometry:new T(a),metadata:b||null})};y(X,S);x("ee.Feature",X);var Tn=!1,Sn=function(){Tn||(Ym(X,"Feature","Feature"),Tn=!0)};X.prototype.W=function(a){return X.M.W.call(this,a)};X.prototype.getInfo=X.prototype.W;
612
+ X.prototype.S=function(a,b){var c=R(X.prototype.getMap,arguments);return Q("Collection",[this]).S(c.visParams,c.callback)};X.prototype.getMapId=X.prototype.S;X.prototype.getMap=X.prototype.S;X.prototype.getMap=X.prototype.getMap;X.prototype.name=function(){return"Feature"};var bm=function(a){var b={},c=Un(a.element,a);c=Vn(c,a,b);b.element=c;return b},cm=function(a){var b={},c=a.element.map(function(d){d=Un(d,a);return Vn(d,a,b)});b.element=c;return b},Vn=function(a,b,c){var d={},e=!1,g=["maxDimension","width","height","scale"];Za(b,function(f,l){if(f!=null)switch(l){case "dimensions":l=typeof f==="string"?f.split("x").map(Number):Array.isArray(f)?f:typeof f==="number"?[f]:[];if(l.length===1)d.maxDimension=l[0];else if(l.length===2)d.width=l[0],d.height=l[1];else throw Error("Invalid dimensions "+
613
+ f);break;case "dimensions_consumed":e=!0;break;case "bbox":d.geometry!=null&&console.warn("Multiple request parameters converted to region.");if(!(f instanceof on)){l=f;if(typeof f==="string")try{l=JSON.parse(f)}catch(m){l=f.split(/\s*,\s*/).map(Number)}if(Array.isArray(l)){if(l.some(isNaN))throw Error("Invalid bbox `{bboxArray}`, please specify a list of numbers.");f=new on(l,null,!1)}else throw Error('Invalid bbox "{bbox}" type, must be of type Array<number>');}d.geometry=f;break;case "region":d.geometry!=
614
+ null&&console.warn("Multiple request parameters converted to region.");if(!(f instanceof T)){l=f;if(typeof f==="string")try{l=JSON.parse(f)}catch(m){throw Error('Region string "'+f+'" is not valid GeoJSON.');}if(Array.isArray(l))f=new vn(l,null,!1);else if(u(l))f=new T(l,null,!1);else throw Error("Region {region} was not convertible to an ee.Geometry.");}d.geometry=f;break;case "scale":d.scale=Number(f);break;default:c[l]=f}});hb(d)||(d.input=a,a=g.some(function(f){return f in d})||e?Rm("Image.clipToBoundsAndScale",
615
+ d):Rm("Image.clip",d));return a},Un=function(a,b){var c=b.crs||"",d=b.crsTransform||b.crs_transform;d!=null&&(d=Wn(d));if(!c&&!d)return a;if(d&&!c)throw Error('Must specify "crs" if "crsTransform" is specified.');if(d){if(a=Rm("Image.reproject",{image:a,crs:c,crsTransform:d}),b.dimensions!=null&&b.scale==null&&b.region==null){var e=b.dimensions;typeof e==="string"&&(e=e.split("x").map(Number));e.length===2&&(delete b.dimensions,b.dimensions_consumed=!0,c=(new P("Projection")).call(c,d),b.region=new on([0,
616
+ 0,e[0],e[1]],c,!1))}}else a=Rm("Image.setDefaultProjection",{image:a,crs:c,crsTransform:[1,0,0,0,-1,0]});return a},Wn=function(a){if(typeof a==="string")try{a=JSON.parse(a)}catch(b){}if(Array.isArray(a)){if(a.length===6&&fc(a,function(b){return typeof b==="number"}))return a;throw Error("Invalid argument, crs transform must be a list of 6 numbers.");}throw Error("Invalid argument, crs transform was not a string or array.");},Yn=function(a,b){var c={};b=Xn(b,c);hb(b)||(b.image=a,a=Rm("Image.visualize",
617
+ b));c.image=a;return c},Xn=function(a,b){var c="bands gain bias min max gamma palette opacity forceRgbOutput".split(" "),d={};Za(a,function(e,g){ic(c,g)?d[g]=e:b[g]=e});return d},Fl=function(a,b){b=Object.assign({},b);var c=function(e){var g={};["crs","crs_transform","dimensions","region"].forEach(function(f){f in e&&(g[f]=e[f])});e.scale!=null&&e.dimensions==null&&(g.scale=e.scale);return g},d=function(e){var g=e.id;if(g===void 0)throw Error("Each band dictionary must have an id.");g=a.select(g);
618
+ var f=c(b);e=c(e);e=c(Object.assign(f,e));g=Un(g,e);return g=Vn(g,e,{})};b.format==="ZIPPED_GEO_TIFF_PER_BAND"&&b.bands&&b.bands.length?(d=b.bands.map(d),a=d.reduce(function(e,g){return Q("Image.addBands",e,g,null,!0)},d.shift())):(d=c(b),a=Un(a,d),a=Vn(a,d,{}));return a};var N=function(a){if(!(this instanceof N))return Dm(N,arguments);if(a instanceof N)return a;Zn();var b=arguments.length;if(b==0||b==1&&a===void 0)S.call(this,new P("Image.mask"),{image:new N(0),mask:new N(0)});else if(b==1)if(Hm(a))S.call(this,new P("Image.constant"),{value:a});else if(Im(a))S.call(this,new P("Image.load"),{id:a});else{if(Array.isArray(a))return $n(dc(a,function(d){return new N(d)}));if(a instanceof O)a.name()=="Array"?S.call(this,new P("Image.constant"),{value:a}):S.call(this,a.J,
619
+ a.args,a.V);else throw Error("Unrecognized argument type to convert to an Image: "+a);}else if(b==2){b=arguments[0];var c=arguments[1];if(Im(b)&&Hm(c))S.call(this,new P("Image.load"),{id:b,version:c});else throw Error("Unrecognized argument types to convert to an Image: "+arguments);}else throw Error("The Image constructor takes at most 2 arguments ("+b+" given)");};y(N,S);x("ee.Image",N);var ao=!1,Zn=function(){ao||(Ym(N,"Image","Image"),ao=!0)};N.prototype.W=function(a){return N.M.W.call(this,a)};
620
+ N.prototype.getInfo=N.prototype.W;N.prototype.S=function(a,b){var c=this,d=R(N.prototype.getMap,arguments),e=Yn(this,d.visParams);if(d.callback){var g=d.callback;wl(e,function(f,l){f=f?Object.assign(f,{image:c}):void 0;g(f,l)})}else return d=wl(e),d.image=this,d};N.prototype.getMapId=N.prototype.S;N.prototype.getMap=N.prototype.S;N.prototype.getMap=N.prototype.getMap;
621
+ N.prototype.qb=function(a,b){var c=R(N.prototype.qb,arguments),d=c.params?jb(c.params):{};d.image=this;if(c.callback){var e=c.callback;Gl(d,function(g,f){g?e(Hl(g)):e(null,f)})}else return Hl(Gl(d))};N.prototype.getDownloadURL=N.prototype.qb;N.prototype.Md=function(a,b){var c=R(N.prototype.qb,arguments),d=c.params?jb(c.params):{},e={},g=Un(this,d);g=Vn(g,d,e);d=Yn(g,e);return c.callback?(Bl(d,c.callback),null):Bl(d)};N.prototype.getThumbId=N.prototype.Md;
622
+ N.prototype.uf=function(a,b){var c=R(N.prototype.uf,arguments);if(c.callback)this.Md(c.params,function(d,e){var g="";if(e===void 0)try{g=El(d)}catch(f){e=String(f.message)}c.callback(g,e)});else return El(this.Md(c.params))};N.prototype.getThumbURL=N.prototype.uf;var bo=function(a,b,c){var d=R(bo,arguments);return $n([d.r,d.g,d.b],["vis-red","vis-green","vis-blue"])};N.rgb=bo;var co=function(a){return $n(Array.prototype.slice.call(arguments),null)};N.cat=co;
623
+ var $n=function(a,b){if(a.length==0)return Q("Image.constant",[]);for(var c=new N(a[0]),d=1;d<a.length;d++)c=Q("Image.addBands",c,a[d]);b&&(c=c.select([".*"],b));return c};
624
+ N.prototype.select=function(a){var b=Array.prototype.slice.call(arguments),c={input:this,bandSelectors:b[0]||[]};if(b.length>2||Im(b[0])||Hm(b[0])){for(var d=0;d<b.length;d++)if(!(Im(b[d])||Hm(b[d])||b[d]instanceof O))throw Error("Illegal argument to select(): "+b[d]);c.bandSelectors=b}else b[1]&&(c.newNames=b[1]);return Rm("Image.select",c)};N.prototype.select=N.prototype.select;
625
+ N.prototype.l=function(a,b){var c=R(N.prototype.l,arguments),d=["DEFAULT_EXPRESSION_IMAGE"],e={DEFAULT_EXPRESSION_IMAGE:this};if(c.map){var g=c.map,f;for(f in g)d.push(f),e[f]=new N(g[f])}var l=Q("Image.parseExpression",c.expression,"DEFAULT_EXPRESSION_IMAGE",d);c=new Lm;c.encode=function(m){return l.encode(m)};c.Gd=function(m,p){return Sj(Vk(m,l),p)};c.aa=function(){return{name:"",args:dc(d,function(m){return{name:m,type:"Image",optional:!1}},this),returns:"Image"}};return c.apply(e)};
626
+ N.prototype.expression=N.prototype.l;N.prototype.clip=function(a){try{a=new T(a)}catch(b){}return Q("Image.clip",this,a)};N.prototype.clip=N.prototype.clip;N.prototype.ri=function(a){var b=arguments.length!=1||Im(arguments[0])?Array.from(arguments):arguments[0];return Q("Image.rename",this,b)};N.prototype.rename=N.prototype.ri;N.prototype.name=function(){return"Image"};var eo=function(a){if(this instanceof eo){if(arguments.length>1)throw Error("ee.List() only accepts 1 argument.");if(a instanceof eo)return a}else return Dm(eo,arguments);fo();if(Array.isArray(a))O.call(this,null,null),this.Wc=a;else if(a instanceof O)O.call(this,a.J,a.args,a.V),this.Wc=null;else throw Error("Invalid argument specified for ee.List(): "+a);};y(eo,O);x("ee.List",eo);var go=!1,fo=function(){go||(Ym(eo,"List","List"),go=!0)};
627
+ eo.prototype.encode=function(a){return Array.isArray(this.Wc)?dc(this.Wc,function(b){return a(b)}):eo.M.encode.call(this,a)};eo.prototype.ma=function(a){return Array.isArray(this.Wc)?Oj(Vk(a,this.Wc)):eo.M.ma.call(this,a)};eo.prototype.name=function(){return"List"};var Y=function(a,b){if(!(this instanceof Y))return Dm(Y,arguments);if(a instanceof Y)return a;if(arguments.length>2)throw Error("The FeatureCollection constructor takes at most 2 arguments ("+arguments.length+" given)");ho();a instanceof T&&(a=new X(a));a instanceof X&&(a=[a]);if(Im(a)){var c={tableId:a};b&&(c.geometryColumn=b);V.call(this,new P("Collection.loadTable"),c)}else if(Array.isArray(a))V.call(this,new P("Collection"),{features:dc(a,function(d){return new X(d)})});else if(a instanceof eo)V.call(this,
628
+ new P("Collection"),{features:a});else if(a&&typeof a==="object"&&a.type==="FeatureCollection")V.call(this,new P("Collection"),{features:a.features.map(function(d){return new X(d)})});else if(a instanceof O)V.call(this,a.J,a.args,a.V);else throw Error("Unrecognized argument type to convert to a FeatureCollection: "+a);};y(Y,V);x("ee.FeatureCollection",Y);var io=!1,ho=function(){io||(Ym(Y,"FeatureCollection","FeatureCollection"),io=!0)};
629
+ Y.prototype.S=function(a,b){var c=R(Y.prototype.S,arguments),d=Rm("Collection.draw",{collection:this,color:(c.visParams||{}).color||"000000"});if(c.callback)d.S(void 0,c.callback);else return d.S()};Y.prototype.getMapId=Y.prototype.S;Y.prototype.getMap=Y.prototype.S;Y.prototype.getMap=Y.prototype.getMap;Y.prototype.W=function(a){return Y.M.W.call(this,a)};Y.prototype.getInfo=Y.prototype.W;
630
+ Y.prototype.qb=function(a,b,c,d){var e=R(Y.prototype.qb,arguments),g={table:this};e.format&&(g.format=e.format.toUpperCase());e.filename&&(g.filename=e.filename);e.selectors&&(g.selectors=e.selectors);if(e.callback)Il(g,function(f,l){f?e.callback(Jl(f)):e.callback(null,l)});else return Jl(Il(g))};Y.prototype.getDownloadURL=Y.prototype.qb;
631
+ Y.prototype.select=function(a,b,c){if(Im(a)){var d=Array.prototype.slice.call(arguments);return this.map(function(g){return g.select(d)})}var e=R(Y.prototype.select,arguments);return this.map(function(g){return g.select(e)})};Y.prototype.select=Y.prototype.select;Y.prototype.name=function(){return"FeatureCollection"};Y.prototype.elementType=function(){return X};var Z=function(a){if(!(this instanceof Z))return Dm(Z,arguments);if(a instanceof Z)return a;if(arguments.length!=1)throw Error("The ImageCollection constructor takes exactly 1 argument ("+arguments.length+" given)");jo();a instanceof N&&(a=[a]);if(Im(a))V.call(this,new P("ImageCollection.load"),{id:a});else if(Array.isArray(a))V.call(this,new P("ImageCollection.fromImages"),{images:dc(a,function(b){return new N(b)})});else if(a instanceof eo)V.call(this,new P("ImageCollection.fromImages"),{images:a});
632
+ else if(a instanceof O)V.call(this,a.J,a.args,a.V);else throw Error("Unrecognized argument type to convert to an ImageCollection: "+a);};y(Z,V);x("ee.ImageCollection",Z);var ko=!1,jo=function(){ko||(Ym(Z,"ImageCollection","ImageCollection"),Ym(Z,"reduce","ImageCollection"),ko=!0)};Z.prototype.tf=function(a,b){var c=R(Z.prototype.tf,arguments);return lo(this,c,["png","jpg","jpeg"],"filmstrip")};Z.prototype.getFilmstripThumbURL=Z.prototype.tf;
633
+ Z.prototype.vf=function(a,b){var c=R(Z.prototype.vf,arguments);return lo(this,c,["gif"],"video")};Z.prototype.getVideoThumbURL=Z.prototype.vf;
634
+ var lo=function(a,b,c,d){var e={};a=a.map(function(l){l=Un(l,b.params);return Vn(l,b.params,e)});var g={},f=Xn(e,g);g.imageCollection=a.map(function(l){f.image=l;return Rm("Image.visualize",f)});b.params.dimensions!=null&&(g.dimensions=b.params.dimensions);if(g.format){if(!ec(c,function(l){return l.toLowerCase()==g.format.toLowerCase()}))throw Error("Invalid format specified.");}else g.format=c[0];c=Bl;switch(d){case "video":c=Cl;break;case "filmstrip":c=Dl}if(b.callback)c(g,function(l,m){var p="";
635
+ if(m===void 0)try{p=El(l)}catch(v){m=String(v.message)}b.callback(p,m)});else return El(c(g))};Z.prototype.S=function(a,b){var c=R(Z.prototype.S,arguments),d=Q("ImageCollection.mosaic",this);if(c.callback)d.S(c.visParams,c.callback);else return d.S(c.visParams)};Z.prototype.getMapId=Z.prototype.S;Z.prototype.getMap=Z.prototype.S;Z.prototype.getMap=Z.prototype.getMap;Z.prototype.W=function(a){return Z.M.W.call(this,a)};Z.prototype.getInfo=Z.prototype.W;
636
636
  Z.prototype.select=function(a,b){var c=arguments;return this.map(function(d){return d.select.apply(d,c)})};Z.prototype.select=Z.prototype.select;Z.prototype.Ff=function(a,b,c,d){var e=R(Z.prototype.Ff,arguments);return this.map(function(g){return Q("Image.linkCollection",g,e.imageCollection,e.linkedBands,e.linkedProperties,e.matchPropertyName)})};Z.prototype.linkCollection=Z.prototype.Ff;Z.prototype.first=function(){return new N(Q("Collection.first",this))};Z.prototype.first=Z.prototype.first;
637
- Z.prototype.name=function(){return"ImageCollection"};Z.prototype.elementType=function(){return N};var lo=function(a){this.Ye=a;this.id=null},no=function(a){var b={element:mo(a)};Object.assign(b,a);b=$a(b,function(c){return c!=null});return new lo(b)};lo.prototype.start=function(a,b){var c=this;E(this.Ye,"Task config must be specified for tasks to be started.");this.id=this.id||Jl(1)[0];Xb(this.id,"Failed to obtain task ID.");if(a)$l(this.id,this.Ye,function(e,g){if(g)b(g);else{var f;c.id=(f=e.taskId)!=null?f:null;a()}});else{var d;this.id=(d=$l(this.id,this.Ye).taskId)!=null?d:null}};
638
- lo.prototype.start=lo.prototype.start;var oo=function(a,b,c,d,e,g,f,l,m,p,v,z){var B=R(oo,arguments);B=po(B,"ASSET","EXPORT_IMAGE");return no(B)};x("module$contents$ee$batch_Export.image.toAsset",oo);var qo=function(a,b,c,d,e,g,f,l,m,p,v,z,B,H,ea,W){var da=R(qo,arguments);da=po(da,"GOOGLE_CLOUD_STORAGE","EXPORT_IMAGE");return no(da)};x("module$contents$ee$batch_Export.image.toCloudStorage",qo);
639
- var ro=function(a,b,c,d,e,g,f,l,m,p,v,z,B,H,ea,W){var da=R(ro,arguments);da=po(da,"DRIVE","EXPORT_IMAGE");return no(da)};x("module$contents$ee$batch_Export.image.toDrive",ro);var so=function(a,b,c,d,e,g,f,l,m,p,v,z,B,H){var ea=R(so,arguments);ea=po(ea,"GOOGLE_CLOUD_STORAGE","EXPORT_TILES");return no(ea)};x("module$contents$ee$batch_Export.map.toCloudStorage",so);var to=function(a,b,c,d,e,g,f,l){var m=R(to,arguments);m=po(m,"GOOGLE_CLOUD_STORAGE","EXPORT_FEATURES");return no(m)};
640
- x("module$contents$ee$batch_Export.table.toCloudStorage",to);var uo=function(a,b,c,d,e,g,f,l){var m=R(uo,arguments);m.type="EXPORT_FEATURES";m=po(m,"DRIVE","EXPORT_FEATURES");return no(m)};x("module$contents$ee$batch_Export.table.toDrive",uo);var vo=function(a,b,c,d,e){var g=R(vo,arguments);g=po(g,"ASSET","EXPORT_FEATURES");return no(g)};x("module$contents$ee$batch_Export.table.toAsset",vo);var wo=function(a,b,c,d,e,g,f,l){var m=R(wo,arguments);m=po(m,"FEATURE_VIEW","EXPORT_FEATURES");return no(m)};
641
- x("module$contents$ee$batch_Export.table.toFeatureView",wo);var xo=function(a,b,c,d,e,g,f,l){var m=R(xo,arguments);m=po(m,"BIGQUERY","EXPORT_FEATURES");return no(m)};x("module$contents$ee$batch_Export.table.toBigQuery",xo);var yo=function(a,b,c,d,e,g,f,l,m,p,v,z,B){var H=R(yo,arguments);H=po(H,"GOOGLE_CLOUD_STORAGE","EXPORT_VIDEO");return no(H)};x("module$contents$ee$batch_Export.video.toCloudStorage",yo);
642
- var zo=function(a,b,c,d,e,g,f,l,m,p,v,z,B){var H=R(zo,arguments);H=po(H,"DRIVE","EXPORT_VIDEO");return no(H)};x("module$contents$ee$batch_Export.video.toDrive",zo);var Ao=function(a,b,c,d,e,g,f,l,m,p,v,z,B,H,ea,W,da,Jb,zq,Aq,Bq){var pj=R(Ao,arguments);pj=po(pj,"GOOGLE_CLOUD_STORAGE","EXPORT_VIDEO_MAP");return no(pj)};x("module$contents$ee$batch_Export.videoMap.toCloudStorage",Ao);var Bo=function(a,b,c,d){var e=R(Bo,arguments);e=po(e,"ASSET","EXPORT_CLASSIFIER");return no(e)};
643
- x("module$contents$ee$batch_Export.classifier.toAsset",Bo);
644
- var mo=function(a){var b=function(d){return d in a},c=Co.find(b);E(hc(Co,b)===1,'Expected a single "image", "collection" or "classifier" key.');b=a[c];if(!(b instanceof N||b instanceof Y||b instanceof Z||b instanceof S||b instanceof O))throw Error("Unknown element type provided: "+typeof b+". Expected: ee.Image, ee.ImageCollection, ee.FeatureCollection, ee.Element or ee.ComputedObject.");delete a[c];return b},po=function(a,b,c){var d=d===void 0?!0:d;var e={type:c};Object.assign(e,a);switch(c){case "EXPORT_IMAGE":e.fileFormat==
645
- null&&(e.fileFormat="GeoTIFF");a=e.fileFormat;a==null&&(a="GEO_TIFF");a=a.toUpperCase();switch(a){case "TIFF":case "TIF":case "GEO_TIFF":case "GEOTIFF":a="GEO_TIFF";break;case "TF_RECORD":case "TF_RECORD_IMAGE":case "TFRECORD":a="TF_RECORD_IMAGE";break;default:throw Error("Invalid file format "+a+". Supported formats are: 'GEOTIFF', 'TFRECORD'.");}e.fileFormat=a;e.formatOptions!=null&&(a=Do(e,a),delete e.formatOptions,Object.assign(e,a));e=Eo(e,b);e.crsTransform!=null&&(e.crs_transform=e.crsTransform,
646
- delete e.crsTransform);break;case "EXPORT_TILES":b=Eo(e,b);e=b.fileFormat;e==null&&(e="AUTO_JPEG_PNG");e=e.toUpperCase();switch(e){case "AUTO":case "AUTO_JPEG_PNG":case "AUTO_JPG_PNG":e="AUTO_JPEG_PNG";break;case "JPG":case "JPEG":e="JPEG";break;case "PNG":e="PNG";break;default:throw Error("Invalid file format "+e+". Supported formats are: 'AUTO', 'PNG', and 'JPEG'.");}b.fileFormat=e;e=b;break;case "EXPORT_FEATURES":Array.isArray(e.selectors)&&(e.selectors=e.selectors.join());a=e.fileFormat;a==null&&
647
- (a="CSV");a=a.toUpperCase();switch(a){case "CSV":a="CSV";break;case "JSON":case "GEOJSON":case "GEO_JSON":a="GEO_JSON";break;case "KML":a="KML";break;case "KMZ":a="KMZ";break;case "SHP":a="SHP";break;case "TF_RECORD":case "TF_RECORD_TABLE":case "TFRECORD":a="TF_RECORD_TABLE";break;default:throw Error("Invalid file format "+a+". Supported formats are: 'CSV', 'GeoJSON', 'KML', 'KMZ', 'SHP', and 'TFRecord'.");}e.fileFormat=a;e=Eo(e,b);break;case "EXPORT_VIDEO":e=Fo(e);e=Eo(e,b);e.crsTransform!=null&&
648
- (e.crs_transform=e.crsTransform,delete e.crsTransform);break;case "EXPORT_VIDEO_MAP":e=Fo(e);e.version=e.version||"V1";e.stride=e.stride||1;e.tileDimensions={width:e.tileWidth||256,height:e.tileHeight||256};e=Eo(e,b);break;case "EXPORT_CLASSIFIER":e=Eo(e,b);break;default:throw Error("Unknown export type: "+e.type);}if(d&&e.region!=null){d=e;b=e.region;if(b instanceof T)b=b.pe();else if(typeof b==="string")try{b=Zb(JSON.parse(b))}catch(g){throw Error("Invalid format for region property. Region must be GeoJSON LinearRing or Polygon specified as actual coordinates or serialized as a string. See Export documentation.");
649
- }if(!(u(b)&&"type"in b))try{new rn(b)}catch(g){try{new un(b)}catch(f){throw Error("Invalid format for region property. Region must be GeoJSON LinearRing or Polygon specified as actual coordinates or serialized as a string. See Export documentation.");}}b=JSON.stringify(b);d.region=b}return e},Eo=function(a,b){switch(b){case "GOOGLE_CLOUD_STORAGE":a.outputBucket=a.bucket||"";a.outputPrefix=a.fileNamePrefix||a.path||"";delete a.fileNamePrefix;delete a.path;delete a.bucket;break;case "ASSET":a.assetId=
650
- a.assetId||"";break;case "FEATURE_VIEW":a.mapName=a.mapName||"";break;case "BIGQUERY":a.table=a.table||"";break;default:b=za(a.folder);if(!ic(["string","undefined"],b))throw Error('Error: toDrive "folder" parameter must be a string, but is of type '+b+".");a.driveFolder=a.folder||"";a.driveFileNamePrefix=a.fileNamePrefix||"";delete a.folder;delete a.fileNamePrefix}return a},Go={GEO_TIFF:["cloudOptimized","fileDimensions","noData","shardSize"],TF_RECORD_IMAGE:"patchDimensions kernelSize compressed maxFileSize defaultValue tensorDepths sequenceData collapseBands maskedThreshold".split(" ")},
651
- Ho={GEO_TIFF:"tiff",TF_RECORD_IMAGE:"tfrecord"},Fo=function(a){a.videoOptions=a.framesPerSecond||5;a.maxFrames=a.maxFrames||1E3;a.maxPixels=a.maxPixels||1E8;var b=a.fileFormat;b==null&&(b="MP4");b=b.toUpperCase();switch(b){case "MP4":b="MP4";break;case "GIF":case "JIF":b="GIF";break;case "VP9":case "WEBM":b="VP9";break;default:throw Error("Invalid file format "+b+". Supported formats are: 'MP4', 'GIF', and 'WEBM'.");}a.fileFormat=b;return a},Do=function(a,b){var c=a.formatOptions;if(c==null)return{};
652
- if(Object.keys(a).some(function(m){return c!==null&&m in c}))throw Error("Parameter specified at least twice: once in config, and once in config format options.");a=Ho[b];for(var d=Go[b],e={},g=r(Object.entries(c)),f=g.next();!f.done;f=g.next()){var l=r(f.value);f=l.next().value;l=l.next().value;if(!ic(d,f))throw Error('"'+f+'" is not a valid option, the image format "'+b+'" "may have the following options: '+(d.join(", ")+'".'));e[a+f[0].toUpperCase()+f.substring(1)]=Array.isArray(l)?l.join():l}return e},
653
- Co=["image","collection","classifier"];var Io=function(a){if(!(this instanceof Io))return Cm(Io,arguments);if(a instanceof Io)return a;Jo();if(typeof a==="number")O.call(this,null,null),this.Zc=a;else if(a instanceof O)O.call(this,a.J,a.args,a.V),this.Zc=null;else throw Error("Invalid argument specified for ee.Number(): "+a);};y(Io,O);x("ee.Number",Io);var Ko=!1,Jo=function(){Ko||(Xm(Io,"Number","Number"),Ko=!0)};Io.prototype.encode=function(a){return typeof this.Zc==="number"?this.Zc:Io.M.encode.call(this,a)};
654
- Io.prototype.ma=function(a){return typeof this.Zc==="number"?Nj(Uk(a,this.Zc)):Io.M.ma.call(this,a)};Io.prototype.name=function(){return"Number"};var Lo=function(a){if(!(this instanceof Lo))return Cm(Lo,arguments);if(a instanceof Lo)return a;Mo();if(typeof a==="string")O.call(this,null,null),this.ld=a;else if(a instanceof O)this.ld=null,a.J&&a.J.aa().returns=="String"?O.call(this,a.J,a.args,a.V):O.call(this,new P("String"),{input:a},null);else throw Error("Invalid argument specified for ee.String(): "+a);};y(Lo,O);x("ee.String",Lo);var No=!1,Mo=function(){No||(Xm(Lo,"String","String"),No=!0)};
655
- Lo.prototype.encode=function(a){return typeof this.ld==="string"?this.ld:Lo.M.encode.call(this,a)};Lo.prototype.ma=function(a){return typeof this.ld==="string"?Nj(Uk(a,this.ld)):Lo.M.ma.call(this,a)};Lo.prototype.name=function(){return"String"};var Oo=function(a,b){if(!(this instanceof Oo))return Cm(Oo,arguments);for(var c=[],d=a.args,e=0;e<d.length;e++){var g=d[e],f=g.type;c.push(Po(f in Em?Em[f]:null,g.name))}if(b.apply(null,c)===void 0)throw Error("User-defined methods must return a value.");this.ub=Qo(a,c,b);this.Qg=b.apply(null,c)};y(Oo,Km);x("ee.CustomFunction",Oo);Oo.prototype.encode=function(a){return{type:"Function",argumentNames:dc(this.ub.args,function(b){return b.name}),body:a(this.Qg)}};
656
- Oo.prototype.ma=function(a){return Sj(this.ub.args.map(function(b){return b.name}),Uk(a,this.Qg))};Oo.prototype.Gd=function(a,b){return Rj(Uk(a,this),b)};Oo.prototype.aa=function(){return this.ub};
657
- var Po=function(a,b){a=a||Object;if(!(a.prototype instanceof O))if(a&&a!=Object)if(a==String)a=Lo;else if(a==Number)a=Io;else if(a==Array)a=t.ee.List;else throw Error("Variables must be of an EE type, e.g. ee.Image or ee.Number.");else a=O;var c=function(d){this.args=this.J=null;this.V=d};c.prototype=a.prototype;return new c(b)},Ro=function(a,b){b={name:"",returns:"Object",args:dc(b,function(c){return{name:null,type:typeof c==="string"?c:c.prototype instanceof O?c.prototype.name.call(null):c==Number?
658
- "Number":c==String?"String":c==Array?"Array":c==Date?"Date":"Object"}})};return new Oo(b,a)},Qo=function(a,b,c){for(var d=[],e=0;e<b.length;e++)b[e].V===null&&d.push(e);if(d.length===0)return a;c="_MAPPING_VAR_"+function(l){var m=function(v){return v.map(p).reduce(function(z,B){return z+B},0)},p=function(v){return v.Sa?1:v.Ea?m(v.Ea.values):v.Fa?m(Object.values(v.Fa.values)):v.xa?m(Object.values(v.xa.arguments)):0};return m(Object.values(l.values))}(Mk(c.apply(null,b),"<unbound>"))+"_";for(e=0;e<
659
- d.length;e++){var g=d[e],f=c+e;b[g].V=f;a.args[g].name=f}return a};var So=function(a,b){if(!(this instanceof So))return Cm(So,arguments);if(a instanceof So)return a;To();var c=R(So,arguments);a=c.date;c=c.tz;var d=new P("Date"),e={},g=null;if(Hm(a)){if(e.value=a,c)if(Hm(c))e.timeZone=c;else throw Error("Invalid argument specified for ee.Date(..., opt_tz): "+c);}else if(Gm(a))e.value=a;else if(Ba(a))e.value=Math.floor(a.getTime());else if(a instanceof O)a.J&&a.J.aa().returns=="Date"?(d=a.J,e=a.args,g=a.V):e.value=a;else throw Error("Invalid argument specified for ee.Date(): "+
660
- a);O.call(this,d,e,g)};y(So,O);x("ee.Date",So);var Uo=!1,To=function(){Uo||(Xm(So,"Date","Date"),Uo=!0)};So.prototype.name=function(){return"Date"};x("ee.Deserializer",function(){});var Wo=function(a){return Vo(JSON.parse(a))};x("ee.Deserializer.fromJSON",Wo);var Vo=function(a){if("result"in a&&"values"in a)return Xo(a);var b={};if(u(a)&&a.type==="CompoundValue"){for(var c=a.scope,d=0;d<c.length;d++){var e=c[d][0],g=c[d][1];if(e in b)throw Error('Duplicate scope key "'+e+'" in scope #'+d+".");b[e]=Yo(g,b)}a=a.value}return Yo(a,b)};x("ee.Deserializer.decode",Vo);
661
- var Yo=function(a,b){if(a===null||typeof a==="number"||typeof a==="boolean"||typeof a==="string")return a;if(Array.isArray(a))return dc(a,function(e){return Yo(e,b)});if(!u(a)||typeof a==="function")throw Error("Cannot decode object: "+a);var c=a.type;switch(c){case "ValueRef":if(a.value in b)return b[a.value];throw Error("Unknown ValueRef: "+a);case "ArgumentRef":a=a.value;if(typeof a!=="string")throw Error("Invalid variable name: "+a);return Po(Object,a);case "Date":a=a.value;if(typeof a!=="number")throw Error("Invalid date value: "+
662
- a);return new So(a/1E3);case "Bytes":return Zo(new af({ob:a}),a);case "Invocation":return c="functionName"in a?Pm(a.functionName):Yo(a["function"],b),a=ab(a.arguments,function(e){return Yo(e,b)}),$o(c,a);case "Dictionary":return ab(a.value,function(e){return Yo(e,b)});case "Function":var d=Yo(a.body,b);a={name:"",args:dc(a.argumentNames,function(e){return{name:e,type:"Object",optional:!1}}),returns:"Object"};return new Oo(a,function(){return d});case "Point":case "MultiPoint":case "LineString":case "MultiLineString":case "Polygon":case "MultiPolygon":case "LinearRing":case "GeometryCollection":return new T(a);
663
- case "CompoundValue":throw Error("Nested CompoundValues are disallowed.");default:throw Error("Unknown encoded object type: "+c);}},Zo=function(a,b){var c=function(){};q(c,Kj);c.prototype.encode=function(){return b};c.prototype.ma=function(){return a};return new c},$o=function(a,b){if(a instanceof Km)return a.apply(b);if(a instanceof O){var c=function(){return Km.apply(this,arguments)||this};q(c,Km);c.prototype.encode=function(d){return a.encode(d)};c.prototype.Gd=function(d,e){return Rj(Uk(d,a),
664
- e)};return new O(new c,b)}throw Error("Invalid function value");},ap=function(a){return Xo(JSON.parse(a))};x("ee.Deserializer.fromCloudApiJSON",ap);
665
- var Xo=function(a){var b=Pa(rf,a),c={},d=function(f,l){if(!(f in c)){if(!(f in b.values))throw Error("Cannot find "+l+" "+f);c[f]=e(b.values[f])}return c[f]},e=function(f){if(f.fb!==null)f=f.fb;else if(f.Ea!==null)f=f.Ea.values.map(e);else if(f.Fa!==null)f=ab(f.Fa.values,e);else if(f.Kb!==null)f=Po(Object,f.Kb);else if(f.Sa!==null)f=g(f.Sa);else if(f.xa!==null){var l=f.xa;f=l.Ta?d(l.Ta,"function"):Pm(l.functionName);l=ab(l.arguments,e);f=$o(f,l)}else f=f.ob!==null?Zo(new af({ob:f.ob}),f.ob):f.Ua!==
666
- null?Zo(new af({Ua:f.Ua}),f.Ua):f.Na!==null?d(f.Na,"reference"):null;return f},g=function(f){var l=d(f.body,"function body");f={args:f.mc.map(function(m){return{name:m,type:"Object",optional:!1}}),name:"",returns:"Object"};return new Oo(f,function(){return l})};return d(b.result,"result value")};x("ee.Deserializer.decodeCloudApi",Xo);var bp=function(a){if(!(this instanceof bp))return Cm(bp,arguments);if(a instanceof bp)return a;cp();Im(a)?(O.call(this,null,null),this.Lc=a):(a instanceof O&&a.J&&a.J.aa().returns=="Dictionary"?O.call(this,a.J,a.args,a.V):O.call(this,new P("Dictionary"),{input:a},null),this.Lc=null)};y(bp,O);x("ee.Dictionary",bp);var dp=!1,cp=function(){dp||(Xm(bp,"Dictionary","Dictionary"),dp=!0)};bp.prototype.encode=function(a){return this.Lc!==null?a(this.Lc):bp.M.encode.call(this,a)};
667
- bp.prototype.ma=function(a){return this.Lc!==null?Nj(Uk(a,this.Lc)):bp.M.ma.call(this,a)};bp.prototype.name=function(){return"Dictionary"};var ep={};x("ee.Terrain",ep);ep.Af=!1;ep.initialize=function(){ep.Af||(Xm(ep,"Terrain","Terrain"),ep.Af=!0)};ep.reset=function(){Ym(ep);ep.Af=!1};var kp=function(a,b,c,d,e,g){if(fp!="ready"||a||b){var f=c!=null;if(d)if(f)gp.push(d);else throw Error("Can't pass an error callback without a success callback.");if(fp=="loading"&&f)hp.push(c);else if(fp="loading",aj(a,b,e,g),f)hp.push(c),Tm(ip,jp);else try{Tm(),ip()}catch(l){throw jp(l),l;}}else c&&c()};x("ee.initialize",kp);
668
- var np=function(){fp="not_ready";zj=yj=kj=null;xj=!1;Rm=null;Sm={};Ym(So);Uo=!1;Ym(bp);dp=!1;Ym(S);en=!1;Ym(N);$n=!1;Ym(X);Sn=!1;Ym(V);Qn=!1;Ym(Z);jo=!1;Ym(Y);ho=!1;Ym(U);Bn=!1;Ym(T);hn=!1;Ym(co);fo=!1;Ym(Io);Ko=!1;Ym(Lo);No=!1;ep.reset();for(var a=t.ee,b=0;b<lp.length;b++){var c=lp[b];Ym(a[c]);delete a[c]}lp=[];Em=a;a=mp;for(var d in a)delete a[d]};x("ee.reset",np);var op={Hl:"not_ready",LOADING:"loading",Il:"ready"};x("ee.InitState",op);x("ee.InitState.NOT_READY","not_ready");
669
- x("ee.InitState.LOADING","loading");x("ee.InitState.READY","ready");var fp="not_ready",hp=[],gp=[];x("ee.TILE_SIZE",256);var lp=[],mp={};x("ee.Algorithms",mp);var pp=function(a,b){typeof a==="string"&&(a=new P(a));return Km.prototype.call.apply(a,Array.prototype.slice.call(arguments,1))};x("ee.call",pp);var qp=function(a,b){typeof a==="string"&&(a=new P(a));return a.apply(b)};x("ee.apply",qp);
670
- var ip=function(){if(fp=="loading"){try{To();cp();dn();Yn();Rn();Pn();io();go();An();fn();eo();Jo();Mo();ep.initialize();var a=Um(),b={},c={},d;for(d in a){var e=void 0;e=d.indexOf(".")!=-1?d.slice(0,d.indexOf(".")):d;b[e]=!0;var g=a[d].returns.replace(/<.*>/,"");c[g]=!0}var f=t.ee,l;for(l in b)l in c&&!(l in f)&&(f[l]=rp(l),lp.push(l),a[l]?(f[l].signature=a[l],f[l].signature.isConstructor=!0,Sm[l]=!0):f[l].signature={});Em=f;sp()}catch(m){jp(m);return}fp="ready";for(gp=[];hp.length>0;)hp.shift()()}},
671
- jp=function(a){if(fp=="loading")for(fp="not_ready",hp=[];gp.length>0;)gp.shift()(a)},sp=function(){var a=Vm();db(a).sort().forEach(function(b){var c=a[b],d=c.aa();if(!d.hidden){b=b.split(".");var e=mp;for(e.signature={};b.length>1;){var g=b[0];g in e||(e[g]={signature:{}});e=e[g];b=nc(b,1)}g=function(f){return Om(c,void 0,Array.prototype.slice.call(arguments,0))};g.signature=d;g.toString=w(c.toString,c);e[b[0]]=g}})},rp=function(a){var b=function(c){var d=t.ee[a],e=Array.prototype.slice.call(arguments),
672
- g=e.length==1;if(g&&e[0]instanceof d)return e[0];if(!(this instanceof d))return Cm(d,e);d=Wm(a);var f=!(e[0]instanceof O),l=!1;d&&(g?f?l=!0:e[0].J&&e[0].J.aa().returns==d.aa().returns||(l=!0):l=!0);if(l)e=Jm(e,d.aa())?e[0]:Mm(d,e),O.call(this,d,Nm(d,e));else{if(!g)throw Error("Too many arguments for ee."+a+"(): "+e);if(f)throw Error("Invalid argument for ee."+a+"(): "+e+". Must be a ComputedObject.");e=e[0];O.call(this,e.J,e.args,e.V)}};y(b,O);b.prototype.name=function(){return a};Xm(b,a,a);return b};
673
- Lm=function(a,b){if(a===null)return null;if(a!==void 0){var c=t.ee;switch(b){case "Image":return new N(a);case "Feature":return a instanceof V?Q("Feature",Q("Collection.geometry",a)):new X(a);case "Element":if(a instanceof S)return a;if(a instanceof T)return new X(a);if(a instanceof O)return new S(a.J,a.args,a.V);throw Error("Cannot convert "+a+" to Element.");case "Geometry":return a instanceof Y?Q("Collection.geometry",a):new T(a);case "FeatureCollection":case "Collection":return a instanceof V?
674
- a:new Y(a);case "ImageCollection":return new Z(a);case "Filter":return new U(a);case "Algorithm":if(typeof a==="string")return new P(a);if(typeof a==="function"){b=a.length;c=[];for(var d=0;d<b;d++)c[d]="Object";return Ro(a,c)}if(a instanceof Kj)return a;throw Error("Argument is not a function: "+a);case "String":return Hm(a)||a instanceof Lo||a instanceof O?new Lo(a):a;case "Dictionary":return Im(a)?a:new bp(a);case "List":return new co(a);case "Number":case "Float":case "Long":case "Integer":case "Short":case "Byte":return new Io(a);
675
- default:if(b in c){d=Wm(b);if(a instanceof c[b])return a;if(d)return new c[b](a);if(typeof a==="string"){if(a in c[b])return c[b][a].call();throw Error("Unknown algorithm: "+b+"."+a);}return new c[b](a)}return a}}};var tp=function(a,b,c){ie.call(this,a,b,c);this.tileSize=new google.maps.Size(256,256);this.zh=new be;this.yh=new be};q(tp,ie);tp.prototype.getTile=function(a,b){var c=je(this,a,b);b=[this.url,c].join("/")+"?token="+this.token;c=[c,this.wb,this.token].join("/");this.yb.push(c);this.wb+=1;var d=ji("DIV");up(this,b,a,c,d);vp(this);return d};
676
- var up=function(a,b,c,d,e){var g=new XMLHttpRequest;g.open("GET",b,!0);g.responseType="arraybuffer";g.onreadystatechange=w(function(){if(g.readyState===XMLHttpRequest.DONE&&g.status===200){var f=g.response;if(f)f=new Float32Array(f),this.zh.set(c,f),this.yh.set(c,e),jc(this.yb,d),vp(this);else throw this.ug.add(d),Error("Unable to request floating point array buffers.");}},a);g.send()},vp=function(a){a.dispatchEvent(new ke(a.yb.length))};tp.prototype.K=function(){this.yh=this.zh=null;ie.prototype.K.call(this)};
677
- x("ee.FloatTileOverlay",tp);var wp=function(){this.ke=new Map};wp.prototype.clear=function(){this.ke.clear()};var xp=function(a,b){a.ke.has(b)||a.ke.set(b,{throttleCount:0,errorCount:0,tileLatencies:[]});return a.ke.get(b)};var yp=function(a){I.call(this);this.Sb=a;this.L={}};y(yp,I);var zp=[];yp.prototype.Va=function(a,b,c,d){Array.isArray(b)||(b&&(zp[0]=b.toString()),b=zp);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};yp.prototype.Xc=function(a,b,c,d){return Ap(this,a,b,c,d)};
678
- var Ap=function(a,b,c,d,e,g){if(Array.isArray(c))for(var f=0;f<c.length;f++)Ap(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};yp.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])};
679
- yp.prototype.gd=function(){Za(this.L,function(a,b){this.L.hasOwnProperty(b)&&Md(a)},this);this.L={}};yp.prototype.K=function(){yp.M.K.call(this);this.gd()};yp.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};var Cp=function(a,b){a.name!==void 0?(this.name=a.name,this.code=gb[a.name]):(this.code=a=Wb(a.code),this.name=Bp(a));Qb.call(this,Ic("%s %s",this.name,b))};y(Cp,Qb);
680
- var Bp=function(a){var b=fb(function(c){return a==c});if(b===void 0)throw Error("Invalid code: "+a);return b},Dp={},gb=(Dp.AbortError=3,Dp.EncodingError=5,Dp.InvalidModificationError=9,Dp.InvalidStateError=7,Dp.NotFoundError=1,Dp.NotReadableError=4,Dp.NoModificationAllowedError=6,Dp.PathExistsError=12,Dp.QuotaExceededError=10,Dp.SecurityError=2,Dp.SyntaxError=8,Dp.TypeMismatchError=11,Dp);var Ep=function(a,b){nd.call(this,a.type,b);this.Ia=a};y(Ep,nd);var Fp=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(Fp,J);h=Fp.prototype;h.abort=function(){try{this.ca.abort()}catch(a){throw new Cp(a,"aborting read");}};h.Rb=function(){return this.ca.readyState};h.getError=function(){return this.ca.error&&new Cp(this.ca.error,"reading file")};
681
- h.oc=function(a){this.dispatchEvent(new Ep(a,this))};h.K=function(){Fp.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 Gp=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 Hp=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 wp(a.getUniqueId());this.xb=new be;this.wb=0;this.tg=a;this.hb=new yp(this);this.radius=0};q(Hp,J);h=Hp.prototype;h.Me=function(a){return Ed(this,"tile-load",a)};h.Zf=function(a){Md(a)};
682
- h.Oc=function(){return Ip(this,"throttled")+Ip(this,"loading")+Ip(this,"new")};h.setOpacity=function(a){this.opacity=a;this.xb.forEach(function(b){Gp(b.div,this.opacity)},this)};h.getStats=function(){return this.je};
683
- 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;Gp(b.div,this.opacity);this.xb.set(a,b);Jp(this,b);this.dispatchEvent(new Kp(this.Oc()));this.tg.Gf(b,(new Date).getTime()/1E3);return b.div};
684
- h.releaseTile=function(a){var b=this.xb.get(a.id);this.xb.remove(a.id);b&&(b.abort(),md(b))};var Jp=function(a,b){a.hb.Va(b,"status-changed",function(){switch(b.getStatus()){case "loaded":var c=b.hl,d=(new Date).getTime();xp(this.je,b.zoom).tileLatencies.push(d-c);this.dispatchEvent(new Lp(this.Oc()));break;case "throttled":xp(this.je,b.zoom).throttleCount++;this.dispatchEvent(new Mp(b.Ba));break;case "failed":xp(this.je,b.zoom).errorCount++;this.dispatchEvent(new Np(b.Ba,b.Vk));break;case "aborted":this.dispatchEvent(new Op(this.Oc()))}})};
685
- Hp.prototype.K=function(){J.prototype.K.call(this);this.xb.forEach(md);this.xb.clear();this.xb=null;md(this.hb);this.tg=this.hb=null};var Ip=function(a,b){return hc(a.xb.ba(),function(c){return c.getStatus()==b})};x("ee.layers.AbstractOverlay",Hp);Hp.prototype.removeTileCallback=Hp.prototype.Zf;Hp.prototype.addTileCallback=Hp.prototype.Me;var Lp=function(){nd.call(this,"tile-load")};q(Lp,nd);var Kp=function(){nd.call(this,"tile-start")};q(Kp,nd);var Mp=function(){nd.call(this,"tile-throttle")};
686
- q(Mp,nd);var Np=function(a,b){nd.call(this,"tile-fail");this.errorMessage=b};q(Np,nd);var Op=function(){nd.call(this,"tile-abort")};q(Op,nd);var Pp=function(a,b,c,d){J.call(this);this.pb=a;this.zoom=b;this.div=c.createElement("div");this.div.id=d;this.ll=5;this.fe=function(){};this.le="new";this.ui=0;this.Cf=!1};q(Pp,J);Pp.prototype.getDiv=function(){return this.div};
687
- var Rp=function(a){if(!a.Cf&&a.getStatus()=="loading")throw Error("startLoad() can only be invoked once. Use retryLoad() after the first attempt.");Qp(a,"loading");a.hl=(new Date).getTime();a.Xa=new Pi;a.Xa.zc="blob";a.Xa.Va("complete",function(){var b=Yi(a.Xa),c=a.Xa.getStatus();c==429&&Qp(a,"throttled");if(Oi(c)){var d={};Za(Zi(a.Xa),function(g,f){d[f.toLowerCase()]=g});a.zl=d;a.Di=b;a.Mc()}else if(b){var e=new Fp;e.Va("loadend",function(){a.jd(e.ca.result)});e.readAsText(b)}else a.jd("Failed to load tile.")},
688
- !1);a.Xa.Xc("ready",Ha(md,a.Xa));a.Ba&&a.Ba.endsWith("&profiling=1")&&(a.Ba=a.Ba.replace("&profiling=1",""),a.Xa.headers.set("X-Earth-Engine-Computation-Profiling","1"));a.Xa.send(a.Ba,"GET")};h=Pp.prototype;h.Mc=function(){this.fe(this);Qp(this,"loaded")};h.Ic=function(){md(this.Xa)};
689
- h.jd=function(a){var b=function(c){try{if(c=JSON.parse(c),c.error&&c.error.message)return c.error.message}catch(d){}return c};this.ui>=this.ll?(this.Vk=b(a),Qp(this,"failed")):(this.Ic(),setTimeout(w(function(){this.Qa||(this.Cf=!0,Rp(this),this.Cf=!1)},this),1E3*Math.pow(2,this.ui++)))};h.abort=function(){this.Ic();this.getStatus()!="aborted"&&this.getStatus()!="removed"&&Qp(this,this.le in Sp?"removed":"aborted")};h.getStatus=function(){return this.le};var Qp=function(a,b){a.le=b;a.dispatchEvent("status-changed")};
690
- Pp.prototype.K=function(){J.prototype.K.call(this);this.Ic();this.div.remove();this.fe=null};var Sp={aborted:!0,failed:!0,loaded:!0,removed:!0};var Tp=function(){I.call(this)};q(Tp,I);var Up=function(a,b){Hp.call(this,a,b);this.Sg=new be;this.ph=new be};q(Up,Hp);Up.prototype.bh=function(a,b,c,d){var e=new Vp(a,b,c,d);this.hb.Va(e,"status-changed",function(){e.getStatus()=="loaded"&&(this.Sg.set(a,new Float32Array(e.Ad)),this.ph.set(a,e.div))});return e};Up.prototype.K=function(){Hp.prototype.K.call(this);this.ph=this.Sg=null};x("ee_root.third_party.earthengine_api.javascript.layers.binaryoverlay.BinaryOverlay",Up);var Vp=function(a,b,c,d){Pp.call(this,a,b,c,d)};q(Vp,Pp);
691
- Vp.prototype.Mc=function(){var a=new Fp;a.Va("loadend",function(){this.Ad=a.ca.result;Pp.prototype.Mc.call(this)},void 0,this);a.readAsArrayBuffer(this.Di)};var Wp=function(a){J.call(this);this.Sc={};this.Rc={};this.Sb=new yp(this);this.Y=a;this.We=!1};y(Wp,J);var Xp=["load","abort","error"],Yp=function(a,b,c){if(c=typeof c==="string"?c:c.src)a.We=!1,a.Sc[b]={src:c,ah:null}},Zp=function(a,b){delete a.Sc[b];var c=a.Rc[b];c&&(delete a.Rc[b],a.Sb.te(c,Xp,a.ci))};
692
- Wp.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,Xp,this.ci);this.Rc[b]=d;d.id=b;d.src=c.src}},this)};
693
- Wp.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));Zp(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"))}};Wp.prototype.K=function(){delete this.Sc;delete this.Rc;md(this.Sb);Wp.M.K.call(this)};var $p=function(a,b){Hp.call(this,a,b)};q($p,Hp);$p.prototype.bh=function(a,b,c,d){return new aq(a,b,c,d)};x("ee_root.third_party.earthengine_api.javascript.layers.imageoverlay.ImageOverlay",$p);var aq=function(a,b,c,d){Pp.call(this,a,b,c,d);this.fe=bq;this.Gh=this.fa=this.Sd=null;this.ad=""};q(aq,Pp);
694
- aq.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 Wp;Yp(this.fa,this.div.id+"-image",b);this.Gh=Dd(this.fa,cq,function(c){c.type=="load"?(this.Sd=c.target,Pp.prototype.Mc.call(this)):this.jd()},void 0,this);this.fa.start()};aq.prototype.Ic=function(){Pp.prototype.Ic.call(this);this.fa&&(Md(this.Gh),md(this.fa))};aq.prototype.K=function(){Pp.prototype.K.call(this);this.ad&&URL.revokeObjectURL(this.ad)};
695
- var bq=function(a){a.div.appendChild(a.Sd)},cq=["load","abort","error"];var dq=function(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 eq=function(a,b,c,d){I.call(this);this.Rg=a;this.Yb=b;this.og=d||"";this.Yd=c};q(eq,Tp);eq.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(fq,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"))?Qp(a,"loaded"):d(e)},a);Rp(a)};
696
- eq.prototype.getUniqueId=function(){return[this.Rg,this.Yb,this.Yd,this.og].join("-")};eq.prototype.Nd=function(a,b){a=dq("https://storage.googleapis.com",this.Rg,this.Yb,String(b),String(a.x),String(a.y));this.og&&(a+=this.og);return a};
697
- var fq=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",eq);function gq(){this.Ka=[];this.Pa=[]}h=gq.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)};
698
- 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 hq(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 gq;this.sb=new Set;this.delay=0;this.Ef=null;this.td()}y(hq,I);hq.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}};
699
- var iq=function(a,b){return a.sb.delete(b)?(a.Le(b),!0):!1};h=hq.prototype;h.Le=function(a){this.sb.delete(a);this.Qf(a)&&this.T()<this.Xd?this.Ra.enqueue(a):this.Ed(a)};h.td=function(){for(var a=this.Ra;this.T()<this.Uh;)a.enqueue(this.Ze());for(;this.T()>this.Xd&&this.Ra.T()>0;)this.Ed(a.Kc())};h.Ze=function(){return{}};h.Ed=function(a){if(typeof a.dispose=="function")a.dispose();else for(var b in a)a[b]=null};h.Qf=function(a){return typeof a.Qk=="function"?a.Qk():!0};
700
- h.contains=function(a){return this.Ra.contains(a)||this.sb.has(a)};h.T=function(){return this.Ra.T()+this.sb.size};h.isEmpty=function(){return this.Ra.T()===0&&this.sb.size===0};h.K=function(){hq.M.K.call(this);if(this.sb.size>0)throw Error("[goog.structs.Pool] Objects not released");delete this.sb;for(var a=this.Ra;!a.isEmpty();)this.Ed(a.Kc());delete this.Ra};function jq(a,b){this.Mh=a;this.ue=b}jq.prototype.getKey=function(){return this.Mh};jq.prototype.clone=function(){return new jq(this.Mh,this.ue)};var kq=function(a){this.za=[];if(a)a:{if(a instanceof kq){var b=a.rb();a=a.ba();if(this.T()<=0){for(var c=this.za,d=0;d<b.length;d++)c.push(new jq(b[d],a[d]));break a}}else b=db(a),a=cb(a);for(c=0;c<b.length;c++)lq(this,b[c],a[c])}},lq=function(a,b,c){var d=a.za;d.push(new jq(b,c));b=d.length-1;a=a.za;for(c=a[b];b>0;)if(d=b-1>>1,a[d].getKey()>c.getKey())a[b]=a[d],b=d;else break;a[b]=c};h=kq.prototype;
637
+ Z.prototype.name=function(){return"ImageCollection"};Z.prototype.elementType=function(){return N};var mo=function(a){this.Ye=a;this.id=null},oo=function(a){var b={element:no(a)};Object.assign(b,a);b=$a(b,function(c){return c!=null});return new mo(b)};mo.prototype.start=function(a,b){var c=this;E(this.Ye,"Task config must be specified for tasks to be started.");this.id=this.id||Kl(1)[0];Xb(this.id,"Failed to obtain task ID.");if(a)am(this.id,this.Ye,function(e,g){if(g)b(g);else{var f;c.id=(f=e.taskId)!=null?f:null;a()}});else{var d;this.id=(d=am(this.id,this.Ye).taskId)!=null?d:null}};
638
+ mo.prototype.start=mo.prototype.start;var po=function(a,b,c,d,e,g,f,l,m,p,v,z){var B=R(po,arguments);B=qo(B,"ASSET","EXPORT_IMAGE");return oo(B)};x("module$contents$ee$batch_Export.image.toAsset",po);var ro=function(a,b,c,d,e,g,f,l,m,p,v,z,B,H,ea,W){var da=R(ro,arguments);da=qo(da,"GOOGLE_CLOUD_STORAGE","EXPORT_IMAGE");return oo(da)};x("module$contents$ee$batch_Export.image.toCloudStorage",ro);
639
+ var so=function(a,b,c,d,e,g,f,l,m,p,v,z,B,H,ea,W){var da=R(so,arguments);da=qo(da,"DRIVE","EXPORT_IMAGE");return oo(da)};x("module$contents$ee$batch_Export.image.toDrive",so);var to=function(a,b,c,d,e,g,f,l,m,p,v,z,B,H){var ea=R(to,arguments);ea=qo(ea,"GOOGLE_CLOUD_STORAGE","EXPORT_TILES");return oo(ea)};x("module$contents$ee$batch_Export.map.toCloudStorage",to);var uo=function(a,b,c,d,e,g,f,l){var m=R(uo,arguments);m=qo(m,"GOOGLE_CLOUD_STORAGE","EXPORT_FEATURES");return oo(m)};
640
+ x("module$contents$ee$batch_Export.table.toCloudStorage",uo);var vo=function(a,b,c,d,e,g,f,l){var m=R(vo,arguments);m.type="EXPORT_FEATURES";m=qo(m,"DRIVE","EXPORT_FEATURES");return oo(m)};x("module$contents$ee$batch_Export.table.toDrive",vo);var wo=function(a,b,c,d,e){var g=R(wo,arguments);g=qo(g,"ASSET","EXPORT_FEATURES");return oo(g)};x("module$contents$ee$batch_Export.table.toAsset",wo);var xo=function(a,b,c,d,e,g,f,l){var m=R(xo,arguments);m=qo(m,"FEATURE_VIEW","EXPORT_FEATURES");return oo(m)};
641
+ x("module$contents$ee$batch_Export.table.toFeatureView",xo);var yo=function(a,b,c,d,e,g,f,l){var m=R(yo,arguments);m=qo(m,"BIGQUERY","EXPORT_FEATURES");return oo(m)};x("module$contents$ee$batch_Export.table.toBigQuery",yo);var zo=function(a,b,c,d,e,g,f,l,m,p,v,z,B){var H=R(zo,arguments);H=qo(H,"GOOGLE_CLOUD_STORAGE","EXPORT_VIDEO");return oo(H)};x("module$contents$ee$batch_Export.video.toCloudStorage",zo);
642
+ var Ao=function(a,b,c,d,e,g,f,l,m,p,v,z,B){var H=R(Ao,arguments);H=qo(H,"DRIVE","EXPORT_VIDEO");return oo(H)};x("module$contents$ee$batch_Export.video.toDrive",Ao);var Bo=function(a,b,c,d,e,g,f,l,m,p,v,z,B,H,ea,W,da,Jb,Aq,Bq,Cq){var pj=R(Bo,arguments);pj=qo(pj,"GOOGLE_CLOUD_STORAGE","EXPORT_VIDEO_MAP");return oo(pj)};x("module$contents$ee$batch_Export.videoMap.toCloudStorage",Bo);var Co=function(a,b,c,d){var e=R(Co,arguments);e=qo(e,"ASSET","EXPORT_CLASSIFIER");return oo(e)};
643
+ x("module$contents$ee$batch_Export.classifier.toAsset",Co);
644
+ var no=function(a){var b=function(d){return d in a},c=Do.find(b);E(hc(Do,b)===1,'Expected a single "image", "collection" or "classifier" key.');b=a[c];if(!(b instanceof N||b instanceof Y||b instanceof Z||b instanceof S||b instanceof O))throw Error("Unknown element type provided: "+typeof b+". Expected: ee.Image, ee.ImageCollection, ee.FeatureCollection, ee.Element or ee.ComputedObject.");delete a[c];return b},qo=function(a,b,c){var d=d===void 0?!0:d;var e={type:c};Object.assign(e,a);switch(c){case "EXPORT_IMAGE":e.fileFormat==
645
+ null&&(e.fileFormat="GeoTIFF");a=e.fileFormat;a==null&&(a="GEO_TIFF");a=a.toUpperCase();switch(a){case "TIFF":case "TIF":case "GEO_TIFF":case "GEOTIFF":a="GEO_TIFF";break;case "TF_RECORD":case "TF_RECORD_IMAGE":case "TFRECORD":a="TF_RECORD_IMAGE";break;default:throw Error("Invalid file format "+a+". Supported formats are: 'GEOTIFF', 'TFRECORD'.");}e.fileFormat=a;e.formatOptions!=null&&(a=Eo(e,a),delete e.formatOptions,Object.assign(e,a));e=Fo(e,b);e.crsTransform!=null&&(e.crs_transform=e.crsTransform,
646
+ delete e.crsTransform);break;case "EXPORT_TILES":b=Fo(e,b);e=b.fileFormat;e==null&&(e="AUTO_JPEG_PNG");e=e.toUpperCase();switch(e){case "AUTO":case "AUTO_JPEG_PNG":case "AUTO_JPG_PNG":e="AUTO_JPEG_PNG";break;case "JPG":case "JPEG":e="JPEG";break;case "PNG":e="PNG";break;default:throw Error("Invalid file format "+e+". Supported formats are: 'AUTO', 'PNG', and 'JPEG'.");}b.fileFormat=e;e=b;break;case "EXPORT_FEATURES":Array.isArray(e.selectors)&&(e.selectors=e.selectors.join());a=e.fileFormat;a==null&&
647
+ (a="CSV");a=a.toUpperCase();switch(a){case "CSV":a="CSV";break;case "JSON":case "GEOJSON":case "GEO_JSON":a="GEO_JSON";break;case "KML":a="KML";break;case "KMZ":a="KMZ";break;case "SHP":a="SHP";break;case "TF_RECORD":case "TF_RECORD_TABLE":case "TFRECORD":a="TF_RECORD_TABLE";break;default:throw Error("Invalid file format "+a+". Supported formats are: 'CSV', 'GeoJSON', 'KML', 'KMZ', 'SHP', and 'TFRecord'.");}e.fileFormat=a;e=Fo(e,b);break;case "EXPORT_VIDEO":e=Go(e);e=Fo(e,b);e.crsTransform!=null&&
648
+ (e.crs_transform=e.crsTransform,delete e.crsTransform);break;case "EXPORT_VIDEO_MAP":e=Go(e);e.version=e.version||"V1";e.stride=e.stride||1;e.tileDimensions={width:e.tileWidth||256,height:e.tileHeight||256};e=Fo(e,b);break;case "EXPORT_CLASSIFIER":e=Fo(e,b);break;default:throw Error("Unknown export type: "+e.type);}if(d&&e.region!=null){d=e;b=e.region;if(b instanceof T)b=b.pe();else if(typeof b==="string")try{b=Zb(JSON.parse(b))}catch(g){throw Error("Invalid format for region property. Region must be GeoJSON LinearRing or Polygon specified as actual coordinates or serialized as a string. See Export documentation.");
649
+ }if(!(u(b)&&"type"in b))try{new sn(b)}catch(g){try{new vn(b)}catch(f){throw Error("Invalid format for region property. Region must be GeoJSON LinearRing or Polygon specified as actual coordinates or serialized as a string. See Export documentation.");}}b=JSON.stringify(b);d.region=b}return e},Fo=function(a,b){switch(b){case "GOOGLE_CLOUD_STORAGE":a.outputBucket=a.bucket||"";a.outputPrefix=a.fileNamePrefix||a.path||"";delete a.fileNamePrefix;delete a.path;delete a.bucket;break;case "ASSET":a.assetId=
650
+ a.assetId||"";break;case "FEATURE_VIEW":a.mapName=a.mapName||"";break;case "BIGQUERY":a.table=a.table||"";break;default:b=za(a.folder);if(!ic(["string","undefined"],b))throw Error('Error: toDrive "folder" parameter must be a string, but is of type '+b+".");a.driveFolder=a.folder||"";a.driveFileNamePrefix=a.fileNamePrefix||"";delete a.folder;delete a.fileNamePrefix}return a},Ho={GEO_TIFF:["cloudOptimized","fileDimensions","noData","shardSize"],TF_RECORD_IMAGE:"patchDimensions kernelSize compressed maxFileSize defaultValue tensorDepths sequenceData collapseBands maskedThreshold".split(" ")},
651
+ Io={GEO_TIFF:"tiff",TF_RECORD_IMAGE:"tfrecord"},Go=function(a){a.videoOptions=a.framesPerSecond||5;a.maxFrames=a.maxFrames||1E3;a.maxPixels=a.maxPixels||1E8;var b=a.fileFormat;b==null&&(b="MP4");b=b.toUpperCase();switch(b){case "MP4":b="MP4";break;case "GIF":case "JIF":b="GIF";break;case "VP9":case "WEBM":b="VP9";break;default:throw Error("Invalid file format "+b+". Supported formats are: 'MP4', 'GIF', and 'WEBM'.");}a.fileFormat=b;return a},Eo=function(a,b){var c=a.formatOptions;if(c==null)return{};
652
+ if(Object.keys(a).some(function(m){return c!==null&&m in c}))throw Error("Parameter specified at least twice: once in config, and once in config format options.");a=Io[b];for(var d=Ho[b],e={},g=r(Object.entries(c)),f=g.next();!f.done;f=g.next()){var l=r(f.value);f=l.next().value;l=l.next().value;if(!ic(d,f))throw Error('"'+f+'" is not a valid option, the image format "'+b+'" "may have the following options: '+(d.join(", ")+'".'));e[a+f[0].toUpperCase()+f.substring(1)]=Array.isArray(l)?l.join():l}return e},
653
+ Do=["image","collection","classifier"];var Jo=function(a){if(!(this instanceof Jo))return Dm(Jo,arguments);if(a instanceof Jo)return a;Ko();if(typeof a==="number")O.call(this,null,null),this.Zc=a;else if(a instanceof O)O.call(this,a.J,a.args,a.V),this.Zc=null;else throw Error("Invalid argument specified for ee.Number(): "+a);};y(Jo,O);x("ee.Number",Jo);var Lo=!1,Ko=function(){Lo||(Ym(Jo,"Number","Number"),Lo=!0)};Jo.prototype.encode=function(a){return typeof this.Zc==="number"?this.Zc:Jo.M.encode.call(this,a)};
654
+ Jo.prototype.ma=function(a){return typeof this.Zc==="number"?Oj(Vk(a,this.Zc)):Jo.M.ma.call(this,a)};Jo.prototype.name=function(){return"Number"};var Mo=function(a){if(!(this instanceof Mo))return Dm(Mo,arguments);if(a instanceof Mo)return a;No();if(typeof a==="string")O.call(this,null,null),this.ld=a;else if(a instanceof O)this.ld=null,a.J&&a.J.aa().returns=="String"?O.call(this,a.J,a.args,a.V):O.call(this,new P("String"),{input:a},null);else throw Error("Invalid argument specified for ee.String(): "+a);};y(Mo,O);x("ee.String",Mo);var Oo=!1,No=function(){Oo||(Ym(Mo,"String","String"),Oo=!0)};
655
+ Mo.prototype.encode=function(a){return typeof this.ld==="string"?this.ld:Mo.M.encode.call(this,a)};Mo.prototype.ma=function(a){return typeof this.ld==="string"?Oj(Vk(a,this.ld)):Mo.M.ma.call(this,a)};Mo.prototype.name=function(){return"String"};var Po=function(a,b){if(!(this instanceof Po))return Dm(Po,arguments);for(var c=[],d=a.args,e=0;e<d.length;e++){var g=d[e],f=g.type;c.push(Qo(f in Fm?Fm[f]:null,g.name))}if(b.apply(null,c)===void 0)throw Error("User-defined methods must return a value.");this.ub=Ro(a,c,b);this.Qg=b.apply(null,c)};y(Po,Lm);x("ee.CustomFunction",Po);Po.prototype.encode=function(a){return{type:"Function",argumentNames:dc(this.ub.args,function(b){return b.name}),body:a(this.Qg)}};
656
+ Po.prototype.ma=function(a){return Tj(this.ub.args.map(function(b){return b.name}),Vk(a,this.Qg))};Po.prototype.Gd=function(a,b){return Sj(Vk(a,this),b)};Po.prototype.aa=function(){return this.ub};
657
+ var Qo=function(a,b){a=a||Object;if(!(a.prototype instanceof O))if(a&&a!=Object)if(a==String)a=Mo;else if(a==Number)a=Jo;else if(a==Array)a=t.ee.List;else throw Error("Variables must be of an EE type, e.g. ee.Image or ee.Number.");else a=O;var c=function(d){this.args=this.J=null;this.V=d};c.prototype=a.prototype;return new c(b)},So=function(a,b){b={name:"",returns:"Object",args:dc(b,function(c){return{name:null,type:typeof c==="string"?c:c.prototype instanceof O?c.prototype.name.call(null):c==Number?
658
+ "Number":c==String?"String":c==Array?"Array":c==Date?"Date":"Object"}})};return new Po(b,a)},Ro=function(a,b,c){for(var d=[],e=0;e<b.length;e++)b[e].V===null&&d.push(e);if(d.length===0)return a;c="_MAPPING_VAR_"+function(l){var m=function(v){return v.map(p).reduce(function(z,B){return z+B},0)},p=function(v){return v.Sa?1:v.Ea?m(v.Ea.values):v.Fa?m(Object.values(v.Fa.values)):v.xa?m(Object.values(v.xa.arguments)):0};return m(Object.values(l.values))}(Nk(c.apply(null,b),"<unbound>"))+"_";for(e=0;e<
659
+ d.length;e++){var g=d[e],f=c+e;b[g].V=f;a.args[g].name=f}return a};var To=function(a,b){if(!(this instanceof To))return Dm(To,arguments);if(a instanceof To)return a;Uo();var c=R(To,arguments);a=c.date;c=c.tz;var d=new P("Date"),e={},g=null;if(Im(a)){if(e.value=a,c)if(Im(c))e.timeZone=c;else throw Error("Invalid argument specified for ee.Date(..., opt_tz): "+c);}else if(Hm(a))e.value=a;else if(Ba(a))e.value=Math.floor(a.getTime());else if(a instanceof O)a.J&&a.J.aa().returns=="Date"?(d=a.J,e=a.args,g=a.V):e.value=a;else throw Error("Invalid argument specified for ee.Date(): "+
660
+ a);O.call(this,d,e,g)};y(To,O);x("ee.Date",To);var Vo=!1,Uo=function(){Vo||(Ym(To,"Date","Date"),Vo=!0)};To.prototype.name=function(){return"Date"};x("ee.Deserializer",function(){});var Xo=function(a){return Wo(JSON.parse(a))};x("ee.Deserializer.fromJSON",Xo);var Wo=function(a){if("result"in a&&"values"in a)return Yo(a);var b={};if(u(a)&&a.type==="CompoundValue"){for(var c=a.scope,d=0;d<c.length;d++){var e=c[d][0],g=c[d][1];if(e in b)throw Error('Duplicate scope key "'+e+'" in scope #'+d+".");b[e]=Zo(g,b)}a=a.value}return Zo(a,b)};x("ee.Deserializer.decode",Wo);
661
+ var Zo=function(a,b){if(a===null||typeof a==="number"||typeof a==="boolean"||typeof a==="string")return a;if(Array.isArray(a))return dc(a,function(e){return Zo(e,b)});if(!u(a)||typeof a==="function")throw Error("Cannot decode object: "+a);var c=a.type;switch(c){case "ValueRef":if(a.value in b)return b[a.value];throw Error("Unknown ValueRef: "+a);case "ArgumentRef":a=a.value;if(typeof a!=="string")throw Error("Invalid variable name: "+a);return Qo(Object,a);case "Date":a=a.value;if(typeof a!=="number")throw Error("Invalid date value: "+
662
+ a);return new To(a/1E3);case "Bytes":return $o(new af({ob:a}),a);case "Invocation":return c="functionName"in a?Qm(a.functionName):Zo(a["function"],b),a=ab(a.arguments,function(e){return Zo(e,b)}),ap(c,a);case "Dictionary":return ab(a.value,function(e){return Zo(e,b)});case "Function":var d=Zo(a.body,b);a={name:"",args:dc(a.argumentNames,function(e){return{name:e,type:"Object",optional:!1}}),returns:"Object"};return new Po(a,function(){return d});case "Point":case "MultiPoint":case "LineString":case "MultiLineString":case "Polygon":case "MultiPolygon":case "LinearRing":case "GeometryCollection":return new T(a);
663
+ case "CompoundValue":throw Error("Nested CompoundValues are disallowed.");default:throw Error("Unknown encoded object type: "+c);}},$o=function(a,b){var c=function(){};q(c,Lj);c.prototype.encode=function(){return b};c.prototype.ma=function(){return a};return new c},ap=function(a,b){if(a instanceof Lm)return a.apply(b);if(a instanceof O){var c=function(){return Lm.apply(this,arguments)||this};q(c,Lm);c.prototype.encode=function(d){return a.encode(d)};c.prototype.Gd=function(d,e){return Sj(Vk(d,a),
664
+ e)};return new O(new c,b)}throw Error("Invalid function value");},bp=function(a){return Yo(JSON.parse(a))};x("ee.Deserializer.fromCloudApiJSON",bp);
665
+ var Yo=function(a){var b=Pa(rf,a),c={},d=function(f,l){if(!(f in c)){if(!(f in b.values))throw Error("Cannot find "+l+" "+f);c[f]=e(b.values[f])}return c[f]},e=function(f){if(f.fb!==null)f=f.fb;else if(f.Ea!==null)f=f.Ea.values.map(e);else if(f.Fa!==null)f=ab(f.Fa.values,e);else if(f.Kb!==null)f=Qo(Object,f.Kb);else if(f.Sa!==null)f=g(f.Sa);else if(f.xa!==null){var l=f.xa;f=l.Ta?d(l.Ta,"function"):Qm(l.functionName);l=ab(l.arguments,e);f=ap(f,l)}else f=f.ob!==null?$o(new af({ob:f.ob}),f.ob):f.Ua!==
666
+ null?$o(new af({Ua:f.Ua}),f.Ua):f.Na!==null?d(f.Na,"reference"):null;return f},g=function(f){var l=d(f.body,"function body");f={args:f.mc.map(function(m){return{name:m,type:"Object",optional:!1}}),name:"",returns:"Object"};return new Po(f,function(){return l})};return d(b.result,"result value")};x("ee.Deserializer.decodeCloudApi",Yo);var cp=function(a){if(!(this instanceof cp))return Dm(cp,arguments);if(a instanceof cp)return a;dp();Jm(a)?(O.call(this,null,null),this.Lc=a):(a instanceof O&&a.J&&a.J.aa().returns=="Dictionary"?O.call(this,a.J,a.args,a.V):O.call(this,new P("Dictionary"),{input:a},null),this.Lc=null)};y(cp,O);x("ee.Dictionary",cp);var ep=!1,dp=function(){ep||(Ym(cp,"Dictionary","Dictionary"),ep=!0)};cp.prototype.encode=function(a){return this.Lc!==null?a(this.Lc):cp.M.encode.call(this,a)};
667
+ cp.prototype.ma=function(a){return this.Lc!==null?Oj(Vk(a,this.Lc)):cp.M.ma.call(this,a)};cp.prototype.name=function(){return"Dictionary"};var fp={};x("ee.Terrain",fp);fp.Af=!1;fp.initialize=function(){fp.Af||(Ym(fp,"Terrain","Terrain"),fp.Af=!0)};fp.reset=function(){Zm(fp);fp.Af=!1};var lp=function(a,b,c,d,e,g){if(gp!="ready"||a||b){var f=c!=null;if(d)if(f)hp.push(d);else throw Error("Can't pass an error callback without a success callback.");if(gp=="loading"&&f)ip.push(c);else if(gp="loading",bj(a,b,e,g),f)ip.push(c),Um(jp,kp);else try{Um(),jp()}catch(l){throw kp(l),l;}}else c&&c()};x("ee.initialize",lp);
668
+ var op=function(){gp="not_ready";Aj=zj=lj=null;yj=!1;Sm=null;Tm={};Zm(To);Vo=!1;Zm(cp);ep=!1;Zm(S);fn=!1;Zm(N);ao=!1;Zm(X);Tn=!1;Zm(V);Rn=!1;Zm(Z);ko=!1;Zm(Y);io=!1;Zm(U);Cn=!1;Zm(T);jn=!1;Zm(eo);go=!1;Zm(Jo);Lo=!1;Zm(Mo);Oo=!1;fp.reset();for(var a=t.ee,b=0;b<mp.length;b++){var c=mp[b];Zm(a[c]);delete a[c]}mp=[];Fm=a;a=np;for(var d in a)delete a[d]};x("ee.reset",op);var pp={Hl:"not_ready",LOADING:"loading",Il:"ready"};x("ee.InitState",pp);x("ee.InitState.NOT_READY","not_ready");
669
+ x("ee.InitState.LOADING","loading");x("ee.InitState.READY","ready");var gp="not_ready",ip=[],hp=[];x("ee.TILE_SIZE",256);var mp=[],np={};x("ee.Algorithms",np);var qp=function(a,b){typeof a==="string"&&(a=new P(a));return Lm.prototype.call.apply(a,Array.prototype.slice.call(arguments,1))};x("ee.call",qp);var rp=function(a,b){typeof a==="string"&&(a=new P(a));return a.apply(b)};x("ee.apply",rp);
670
+ var jp=function(){if(gp=="loading"){try{Uo();dp();en();Zn();Sn();Qn();jo();ho();Bn();gn();fo();Ko();No();fp.initialize();var a=Vm(),b={},c={},d;for(d in a){var e=void 0;e=d.indexOf(".")!=-1?d.slice(0,d.indexOf(".")):d;b[e]=!0;var g=a[d].returns.replace(/<.*>/,"");c[g]=!0}var f=t.ee,l;for(l in b)l in c&&!(l in f)&&(f[l]=sp(l),mp.push(l),a[l]?(f[l].signature=a[l],f[l].signature.isConstructor=!0,Tm[l]=!0):f[l].signature={});Fm=f;tp()}catch(m){kp(m);return}gp="ready";for(hp=[];ip.length>0;)ip.shift()()}},
671
+ kp=function(a){if(gp=="loading")for(gp="not_ready",ip=[];hp.length>0;)hp.shift()(a)},tp=function(){var a=Wm();db(a).sort().forEach(function(b){var c=a[b],d=c.aa();if(!d.hidden){b=b.split(".");var e=np;for(e.signature={};b.length>1;){var g=b[0];g in e||(e[g]={signature:{}});e=e[g];b=nc(b,1)}g=function(f){return Pm(c,void 0,Array.prototype.slice.call(arguments,0))};g.signature=d;g.toString=w(c.toString,c);e[b[0]]=g}})},sp=function(a){var b=function(c){var d=t.ee[a],e=Array.prototype.slice.call(arguments),
672
+ g=e.length==1;if(g&&e[0]instanceof d)return e[0];if(!(this instanceof d))return Dm(d,e);d=Xm(a);var f=!(e[0]instanceof O),l=!1;d&&(g?f?l=!0:e[0].J&&e[0].J.aa().returns==d.aa().returns||(l=!0):l=!0);if(l)e=Km(e,d.aa())?e[0]:Nm(d,e),O.call(this,d,Om(d,e));else{if(!g)throw Error("Too many arguments for ee."+a+"(): "+e);if(f)throw Error("Invalid argument for ee."+a+"(): "+e+". Must be a ComputedObject.");e=e[0];O.call(this,e.J,e.args,e.V)}};y(b,O);b.prototype.name=function(){return a};Ym(b,a,a);return b};
673
+ Mm=function(a,b){if(a===null)return null;if(a!==void 0){var c=t.ee;switch(b){case "Image":return new N(a);case "Feature":return a instanceof V?Q("Feature",Q("Collection.geometry",a)):new X(a);case "Element":if(a instanceof S)return a;if(a instanceof T)return new X(a);if(a instanceof O)return new S(a.J,a.args,a.V);throw Error("Cannot convert "+a+" to Element.");case "Geometry":return a instanceof Y?Q("Collection.geometry",a):new T(a);case "FeatureCollection":case "Collection":return a instanceof V?
674
+ a:new Y(a);case "ImageCollection":return new Z(a);case "Filter":return new U(a);case "Algorithm":if(typeof a==="string")return new P(a);if(typeof a==="function"){b=a.length;c=[];for(var d=0;d<b;d++)c[d]="Object";return So(a,c)}if(a instanceof Lj)return a;throw Error("Argument is not a function: "+a);case "String":return Im(a)||a instanceof Mo||a instanceof O?new Mo(a):a;case "Dictionary":return Jm(a)?a:new cp(a);case "List":return new eo(a);case "Number":case "Float":case "Long":case "Integer":case "Short":case "Byte":return new Jo(a);
675
+ default:if(b in c){d=Xm(b);if(a instanceof c[b])return a;if(d)return new c[b](a);if(typeof a==="string"){if(a in c[b])return c[b][a].call();throw Error("Unknown algorithm: "+b+"."+a);}return new c[b](a)}return a}}};var up=function(a,b,c){ie.call(this,a,b,c);this.tileSize=new google.maps.Size(256,256);this.zh=new be;this.yh=new be};q(up,ie);up.prototype.getTile=function(a,b){var c=je(this,a,b);b=[this.url,c].join("/")+"?token="+this.token;c=[c,this.wb,this.token].join("/");this.yb.push(c);this.wb+=1;var d=ji("DIV");vp(this,b,a,c,d);wp(this);return d};
676
+ var vp=function(a,b,c,d,e){var g=new XMLHttpRequest;g.open("GET",b,!0);g.responseType="arraybuffer";g.onreadystatechange=w(function(){if(g.readyState===XMLHttpRequest.DONE&&g.status===200){var f=g.response;if(f)f=new Float32Array(f),this.zh.set(c,f),this.yh.set(c,e),jc(this.yb,d),wp(this);else throw this.ug.add(d),Error("Unable to request floating point array buffers.");}},a);g.send()},wp=function(a){a.dispatchEvent(new ke(a.yb.length))};up.prototype.K=function(){this.yh=this.zh=null;ie.prototype.K.call(this)};
677
+ x("ee.FloatTileOverlay",up);var xp=function(){this.ke=new Map};xp.prototype.clear=function(){this.ke.clear()};var yp=function(a,b){a.ke.has(b)||a.ke.set(b,{throttleCount:0,errorCount:0,tileLatencies:[]});return a.ke.get(b)};var zp=function(a){I.call(this);this.Sb=a;this.L={}};y(zp,I);var Ap=[];zp.prototype.Va=function(a,b,c,d){Array.isArray(b)||(b&&(Ap[0]=b.toString()),b=Ap);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};zp.prototype.Xc=function(a,b,c,d){return Bp(this,a,b,c,d)};
678
+ var Bp=function(a,b,c,d,e,g){if(Array.isArray(c))for(var f=0;f<c.length;f++)Bp(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};zp.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])};
679
+ zp.prototype.gd=function(){Za(this.L,function(a,b){this.L.hasOwnProperty(b)&&Md(a)},this);this.L={}};zp.prototype.K=function(){zp.M.K.call(this);this.gd()};zp.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};var Dp=function(a,b){a.name!==void 0?(this.name=a.name,this.code=gb[a.name]):(this.code=a=Wb(a.code),this.name=Cp(a));Qb.call(this,Ic("%s %s",this.name,b))};y(Dp,Qb);
680
+ var Cp=function(a){var b=fb(function(c){return a==c});if(b===void 0)throw Error("Invalid code: "+a);return b},Ep={},gb=(Ep.AbortError=3,Ep.EncodingError=5,Ep.InvalidModificationError=9,Ep.InvalidStateError=7,Ep.NotFoundError=1,Ep.NotReadableError=4,Ep.NoModificationAllowedError=6,Ep.PathExistsError=12,Ep.QuotaExceededError=10,Ep.SecurityError=2,Ep.SyntaxError=8,Ep.TypeMismatchError=11,Ep);var Fp=function(a,b){nd.call(this,a.type,b);this.Ia=a};y(Fp,nd);var Gp=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(Gp,J);h=Gp.prototype;h.abort=function(){try{this.ca.abort()}catch(a){throw new Dp(a,"aborting read");}};h.Rb=function(){return this.ca.readyState};h.getError=function(){return this.ca.error&&new Dp(this.ca.error,"reading file")};
681
+ h.oc=function(a){this.dispatchEvent(new Fp(a,this))};h.K=function(){Gp.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 Hp=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 Ip=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 xp(a.getUniqueId());this.xb=new be;this.wb=0;this.tg=a;this.hb=new zp(this);this.radius=0};q(Ip,J);h=Ip.prototype;h.Me=function(a){return Ed(this,"tile-load",a)};h.Zf=function(a){Md(a)};
682
+ h.Oc=function(){return Jp(this,"throttled")+Jp(this,"loading")+Jp(this,"new")};h.setOpacity=function(a){this.opacity=a;this.xb.forEach(function(b){Hp(b.div,this.opacity)},this)};h.getStats=function(){return this.je};
683
+ 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;Hp(b.div,this.opacity);this.xb.set(a,b);Kp(this,b);this.dispatchEvent(new Lp(this.Oc()));this.tg.Gf(b,(new Date).getTime()/1E3);return b.div};
684
+ h.releaseTile=function(a){var b=this.xb.get(a.id);this.xb.remove(a.id);b&&(b.abort(),md(b))};var Kp=function(a,b){a.hb.Va(b,"status-changed",function(){switch(b.getStatus()){case "loaded":var c=b.hl,d=(new Date).getTime();yp(this.je,b.zoom).tileLatencies.push(d-c);this.dispatchEvent(new Mp(this.Oc()));break;case "throttled":yp(this.je,b.zoom).throttleCount++;this.dispatchEvent(new Np(b.Ba));break;case "failed":yp(this.je,b.zoom).errorCount++;this.dispatchEvent(new Op(b.Ba,b.Vk));break;case "aborted":this.dispatchEvent(new Pp(this.Oc()))}})};
685
+ Ip.prototype.K=function(){J.prototype.K.call(this);this.xb.forEach(md);this.xb.clear();this.xb=null;md(this.hb);this.tg=this.hb=null};var Jp=function(a,b){return hc(a.xb.ba(),function(c){return c.getStatus()==b})};x("ee.layers.AbstractOverlay",Ip);Ip.prototype.removeTileCallback=Ip.prototype.Zf;Ip.prototype.addTileCallback=Ip.prototype.Me;var Mp=function(){nd.call(this,"tile-load")};q(Mp,nd);var Lp=function(){nd.call(this,"tile-start")};q(Lp,nd);var Np=function(){nd.call(this,"tile-throttle")};
686
+ q(Np,nd);var Op=function(a,b){nd.call(this,"tile-fail");this.errorMessage=b};q(Op,nd);var Pp=function(){nd.call(this,"tile-abort")};q(Pp,nd);var Qp=function(a,b,c,d){J.call(this);this.pb=a;this.zoom=b;this.div=c.createElement("div");this.div.id=d;this.ll=5;this.fe=function(){};this.le="new";this.ui=0;this.Cf=!1};q(Qp,J);Qp.prototype.getDiv=function(){return this.div};
687
+ var Sp=function(a){if(!a.Cf&&a.getStatus()=="loading")throw Error("startLoad() can only be invoked once. Use retryLoad() after the first attempt.");Rp(a,"loading");a.hl=(new Date).getTime();a.Xa=new Qi;a.Xa.zc="blob";a.Xa.Va("complete",function(){var b=Zi(a.Xa),c=a.Xa.getStatus();c==429&&Rp(a,"throttled");if(Pi(c)){var d={};Za($i(a.Xa),function(g,f){d[f.toLowerCase()]=g});a.zl=d;a.Di=b;a.Mc()}else if(b){var e=new Gp;e.Va("loadend",function(){a.jd(e.ca.result)});e.readAsText(b)}else a.jd("Failed to load tile.")},
688
+ !1);a.Xa.Xc("ready",Ha(md,a.Xa));a.Ba&&a.Ba.endsWith("&profiling=1")&&(a.Ba=a.Ba.replace("&profiling=1",""),a.Xa.headers.set("X-Earth-Engine-Computation-Profiling","1"));a.Xa.send(a.Ba,"GET")};h=Qp.prototype;h.Mc=function(){this.fe(this);Rp(this,"loaded")};h.Ic=function(){md(this.Xa)};
689
+ h.jd=function(a){var b=function(c){try{if(c=JSON.parse(c),c.error&&c.error.message)return c.error.message}catch(d){}return c};this.ui>=this.ll?(this.Vk=b(a),Rp(this,"failed")):(this.Ic(),setTimeout(w(function(){this.Qa||(this.Cf=!0,Sp(this),this.Cf=!1)},this),1E3*Math.pow(2,this.ui++)))};h.abort=function(){this.Ic();this.getStatus()!="aborted"&&this.getStatus()!="removed"&&Rp(this,this.le in Tp?"removed":"aborted")};h.getStatus=function(){return this.le};var Rp=function(a,b){a.le=b;a.dispatchEvent("status-changed")};
690
+ Qp.prototype.K=function(){J.prototype.K.call(this);this.Ic();this.div.remove();this.fe=null};var Tp={aborted:!0,failed:!0,loaded:!0,removed:!0};var Up=function(){I.call(this)};q(Up,I);var Vp=function(a,b){Ip.call(this,a,b);this.Sg=new be;this.ph=new be};q(Vp,Ip);Vp.prototype.bh=function(a,b,c,d){var e=new Wp(a,b,c,d);this.hb.Va(e,"status-changed",function(){e.getStatus()=="loaded"&&(this.Sg.set(a,new Float32Array(e.Ad)),this.ph.set(a,e.div))});return e};Vp.prototype.K=function(){Ip.prototype.K.call(this);this.ph=this.Sg=null};x("ee_root.third_party.earthengine_api.javascript.layers.binaryoverlay.BinaryOverlay",Vp);var Wp=function(a,b,c,d){Qp.call(this,a,b,c,d)};q(Wp,Qp);
691
+ Wp.prototype.Mc=function(){var a=new Gp;a.Va("loadend",function(){this.Ad=a.ca.result;Qp.prototype.Mc.call(this)},void 0,this);a.readAsArrayBuffer(this.Di)};var Xp=function(a){J.call(this);this.Sc={};this.Rc={};this.Sb=new zp(this);this.Y=a;this.We=!1};y(Xp,J);var Yp=["load","abort","error"],Zp=function(a,b,c){if(c=typeof c==="string"?c:c.src)a.We=!1,a.Sc[b]={src:c,ah:null}},$p=function(a,b){delete a.Sc[b];var c=a.Rc[b];c&&(delete a.Rc[b],a.Sb.te(c,Yp,a.ci))};
692
+ 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)};
693
+ 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){Ip.call(this,a,b)};q(aq,Ip);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){Qp.call(this,a,b,c,d);this.fe=cq;this.Gh=this.fa=this.Sd=null;this.ad=""};q(bq,Qp);
694
+ 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,Qp.prototype.Mc.call(this)):this.jd()},void 0,this);this.fa.start()};bq.prototype.Ic=function(){Qp.prototype.Ic.call(this);this.fa&&(Md(this.Gh),md(this.fa))};bq.prototype.K=function(){Qp.prototype.K.call(this);this.ad&&URL.revokeObjectURL(this.ad)};
695
+ var cq=function(a){a.div.appendChild(a.Sd)},dq=["load","abort","error"];var eq=function(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"))?Rp(a,"loaded"):d(e)},a);Sp(a)};
696
+ 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};
697
+ 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)};
698
+ 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}};
699
+ var jq=function(a,b){return a.sb.delete(b)?(a.Le(b),!0):!1};h=iq.prototype;h.Le=function(a){this.sb.delete(a);this.Qf(a)&&this.T()<this.Xd?this.Ra.enqueue(a):this.Ed(a)};h.td=function(){for(var a=this.Ra;this.T()<this.Uh;)a.enqueue(this.Ze());for(;this.T()>this.Xd&&this.Ra.T()>0;)this.Ed(a.Kc())};h.Ze=function(){return{}};h.Ed=function(a){if(typeof a.dispose=="function")a.dispose();else for(var b in a)a[b]=null};h.Qf=function(a){return typeof a.Qk=="function"?a.Qk():!0};
700
+ h.contains=function(a){return this.Ra.contains(a)||this.sb.has(a)};h.T=function(){return this.Ra.T()+this.sb.size};h.isEmpty=function(){return this.Ra.T()===0&&this.sb.size===0};h.K=function(){iq.M.K.call(this);if(this.sb.size>0)throw Error("[goog.structs.Pool] Objects not released");delete this.sb;for(var a=this.Ra;!a.isEmpty();)this.Ed(a.Kc());delete this.Ra};function kq(a,b){this.Mh=a;this.ue=b}kq.prototype.getKey=function(){return this.Mh};kq.prototype.clone=function(){return new kq(this.Mh,this.ue)};var lq=function(a){this.za=[];if(a)a:{if(a instanceof lq){var b=a.rb();a=a.ba();if(this.T()<=0){for(var c=this.za,d=0;d<b.length;d++)c.push(new kq(b[d],a[d]));break a}}else b=db(a),a=cb(a);for(c=0;c<b.length;c++)mq(this,b[c],a[c])}},mq=function(a,b,c){var d=a.za;d.push(new kq(b,c));b=d.length-1;a=a.za;for(c=a[b];b>0;)if(d=b-1>>1,a[d].getKey()>c.getKey())a[b]=a[d],b=d;else break;a[b]=c};h=lq.prototype;
701
701
  h.remove=function(){var a=this.za,b=a.length,c=a[0];if(!(b<=0)){if(b==1)a.length=0;else{a[0]=a.pop();a=0;b=this.za;for(var d=b.length,e=b[a];a<d>>1;){var g=a*2+1,f=a*2+2;g=f<d&&b[f].getKey()<b[g].getKey()?f:g;if(b[g].getKey()>e.getKey())break;b[a]=b[g];a=g}b[a]=e}return c.ue}};h.ba=function(){for(var a=this.za,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].ue);return b};h.rb=function(){for(var a=this.za,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getKey());return b};
702
- h.Jc=function(a){return this.za.some(function(b){return b.ue==a})};h.Nb=function(a){return this.za.some(function(b){return b.getKey()==a})};h.clone=function(){return new kq(this)};h.T=function(){return this.za.length};h.isEmpty=function(){return this.za.length===0};h.clear=function(){this.za.length=0};var mq=function(){kq.apply(this,arguments)};q(mq,kq);mq.prototype.enqueue=function(a,b){lq(this,a,b)};mq.prototype.Kc=function(){return this.remove()};function nq(a,b){this.nh=void 0;this.he=new mq;hq.call(this,a,b)}y(nq,hq);h=nq.prototype;h.Pc=function(a,b){if(!a)return(a=nq.M.Pc.call(this))&&this.delay&&(this.nh=t.setTimeout(w(this.Pd,this),this.delay)),a;this.he.enqueue(b!==void 0?b:100,a);this.Pd()};h.Pd=function(){for(var a=this.he;a.T()>0;){var b=this.Pc();if(b)a.Kc().apply(this,[b]);else break}};h.Le=function(a){nq.M.Le.call(this,a);this.Pd()};h.td=function(){nq.M.td.call(this);this.Pd()};
703
- h.K=function(){nq.M.K.call(this);t.clearTimeout(this.nh);this.he.clear();this.he=null};var oq=function(a,b){I.call(this);this.Hf=a;this.ta=b||null};q(oq,Tp);oq.prototype.Gf=function(a,b){var c=this,d=Ed(a,"status-changed",function(){switch(a.getStatus()){case "loaded":var e=a.zl["x-earth-engine-computation-profile"];this.ta&&e&&this.ta.Nk(a.div.id,e);break;case "failed":case "aborted":this.ta&&a.div.id!==""&&this.ta.rl(a.div.id),Md(d)}},void 0,this);a.Ba=this.Nd(a.pb,a.zoom);pq().Pc(function(e){c.wf(a,e)},b)};oq.prototype.getUniqueId=function(){return this.Hf.mapid+"-"+this.Hf.token};
704
- oq.prototype.wf=function(a,b){var c=pq();if(a.Qa||a.getStatus()=="aborted")iq(c,b);else{var d=Ed(a,"status-changed",function(){a.le in Sp&&(Md(d),iq(c,b))});Rp(a)}};oq.prototype.Nd=function(a,b){a=wl(this.Hf,a.x,a.y,b);return this.ta&&this.ta.isEnabled()?a+"&profiling=1":a};var pq=function(){qq||(qq=new nq(0,4));return qq};x("ee.layers.EarthEngineTileSource",oq);var qq=null;var rq=function(a){I.call(this);this.Mi=a};q(rq,Tp);rq.prototype.Gf=function(a){a.Ba=this.Mi.formatTileUrl(a.pb.x,a.pb.y,a.zoom);Rp(a)};rq.prototype.getUniqueId=function(){return this.Mi.token};x("ee.layers.FeatureViewTileSource",rq);var tq=function(){J.call(this);this.qe=new sq(0,60);this.yc=new be};q(tq,J);tq.prototype.send=function(a,b,c,d,e){if(this.yc.get(a))throw Error("[ee.MapTileManager] ID in use");b=new uq(a,b,d,w(this.pi,this),e!==void 0?e:1);this.yc.set(a,b);a=w(this.wf,this,b);this.qe.Pc(a,c);return b};tq.prototype.abort=function(a){if(a=this.yc.get(a))a.lc||(a.lc=!0,a.Ia=new nd("abort")),this.pi(a)};
705
- tq.prototype.wf=function(a,b){if(a.fa||a.lc)vq(this,b);else if(a.Oi=b,b.setActive(!0),b=new Wp,a.fa=b,!a.retry())throw Error("Cannot dispatch first request!");};tq.prototype.pi=function(a){this.yc.remove(a.getId());a.fa&&(vq(this,a.Oi),a.fa.dispose());a.xf&&a.xf(a.Ia,a.li)};var vq=function(a,b){b.setActive(!1);if(!iq(a.qe,b))throw Error("Object not released");};
706
- tq.prototype.K=function(){J.prototype.K.call(this);this.qe.dispose();this.qe=null;var a=this.yc;bc(a.ba(),function(b){b.dispose()});a.clear();this.yc=null};x("ee.MapTileManager",tq);var uq=function(a,b,c,d,e){I.call(this);this.ea=a;this.Fl=b;this.ml=e!==void 0?e:1;this.xf=c;this.ac=d};q(uq,I);h=uq.prototype;h.getId=function(){return this.ea};h.getUrl=function(){return this.Fl};
707
- h.al=function(a){if(this.lc)this.ac&&this.ac(this);else switch(a.type){case "load":this.Ia=a;this.ac&&this.ac(this);break;case "error":case "abort":this.retry()||(this.Ia=a,this.ac&&this.ac(this))}};h.K=function(){I.prototype.K.call(this);delete this.xf;delete this.ac};h.retry=function(){if(this.Jg>this.ml)return!1;this.Jg++;Zp(this.fa,this.ea);setTimeout(w(this.Al,this),0);return!0};
708
- h.Al=function(){if(!this.lc){var a=w(function(d){this.lc||(Yp(this.fa,this.ea,d),Dd(this.fa,wq,w(this.al,this)),this.fa.start())},this),b=this.getUrl();if(dd(b).Aa.Nb("profiling")){var c=new Pi;c.zc="blob";c.Va("complete",w(function(){this.li=c.getResponseHeader("X-Earth-Engine-Computation-Profile")||null;if(c.getStatus()>=200&&c.getStatus()<300)try{var d=Lb(Mb(Yi(c)));var e=d!==Kb.toString()}catch(g){}a(e?d:b)},this));c.Xc("ready",w(c.dispose,c));c.send(b,"GET")}else a(b)}};h.Jg=0;h.lc=!1;h.fa=null;
709
- h.Oi=null;h.Ia=null;h.li=null;var wq=["load","abort","error"],xq=function(){I.call(this);this.Da=!1};q(xq,I);xq.prototype.setActive=function(a){this.Da=a};xq.prototype.isActive=function(){return this.Da};var sq=function(a,b){nq.call(this,a,b)};q(sq,nq);sq.prototype.Ze=function(){return new xq};sq.prototype.Ed=function(a){a.dispose()};sq.prototype.Qf=function(a){return!a.Qa&&!a.isActive()};var yq=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(yq,ie);h=yq.prototype;h.Me=function(a){return Ed(this,"tileevent",a)};h.Zf=function(a){Md(a)};
710
- 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);ml(tq).send(b,a,d,w(this.Zk,this,c,b));vp(this);return c};h.Oc=function(){return this.yb.length};
711
- h.releaseTile=function(a){ml(tq).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){Gp(c,a)})};
712
- 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&&Gp(c,this.Rf),a.appendChild(c)),vp(this));this.ta&&d!==null&&this.ta.Nk(b,d)};x("ee.MapLayerOverlay",yq);yq.prototype.removeTileCallback=yq.prototype.Zf;yq.prototype.addTileCallback=yq.prototype.Me;yq.prototype.getTile=yq.prototype.getTile;yq.prototype.setOpacity=yq.prototype.setOpacity;yq.prototype.releaseTile=yq.prototype.releaseTile;(function(){var a={},b="ee.ApiFunction._apply ee.ApiFunction.lookup ee.ApiFunction._call ee.batch.Export.table.toDrive ee.batch.Export.video.toCloudStorage 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.image.toAsset ee.batch.Export.table.toFeatureView ee.Collection.prototype.limit ee.Collection.prototype.filter ee.Collection.prototype.filterMetadata ee.Collection.prototype.filterBounds ee.Collection.prototype.sort ee.Collection.prototype.map ee.Collection.prototype.filterDate ee.Collection.prototype.iterate ee.ComputedObject.prototype.aside ee.ComputedObject.prototype.evaluate ee.ComputedObject.prototype.getInfo ee.ComputedObject.prototype.serialize ee.data.startProcessing ee.data.authenticateViaPrivateKey ee.data.makeTableDownloadUrl ee.data.listImages ee.data.setAssetAcl ee.data.setAssetProperties ee.data.newTaskId ee.data.listBuckets ee.data.getAssetRootQuota ee.data.getMapId ee.data.getAssetRoots ee.data.getTaskStatus ee.data.getWorkloadTag ee.data.getTileUrl ee.data.createAssetHome ee.data.setDefaultWorkloadTag ee.data.setWorkloadTag ee.data.startIngestion ee.data.createAsset ee.data.getTaskList ee.data.resetWorkloadTag ee.data.getFeatureViewTilesKey ee.data.createFolder ee.data.renameAsset ee.data.getTaskListWithLimit ee.data.listOperations ee.data.listFeatures ee.data.copyAsset ee.data.computeValue ee.data.startTableIngestion ee.data.cancelOperation ee.data.getVideoThumbId ee.data.getThumbId ee.data.getAssetAcl ee.data.deleteAsset ee.data.authenticateViaOauth ee.data.getOperation ee.data.getFilmstripThumbId ee.data.getAsset ee.data.cancelTask ee.data.authenticate ee.data.makeThumbUrl ee.data.getInfo ee.data.updateAsset ee.data.authenticateViaPopup ee.data.updateTask ee.data.getDownloadId ee.data.getTableDownloadId ee.data.listAssets ee.data.makeDownloadUrl ee.data.getList ee.Date ee.Deserializer.fromJSON ee.Deserializer.fromCloudApiJSON ee.Deserializer.decode ee.Deserializer.decodeCloudApi ee.Dictionary ee.reset ee.Algorithms ee.InitState ee.initialize ee.call ee.TILE_SIZE ee.apply ee.Element.prototype.set ee.Encodable.SourceFrame ee.Feature ee.Feature.prototype.getMap ee.Feature.prototype.getMapId ee.Feature.prototype.getInfo ee.FeatureCollection.prototype.select ee.FeatureCollection ee.FeatureCollection.prototype.getInfo ee.FeatureCollection.prototype.getMapId ee.FeatureCollection.prototype.getMap ee.FeatureCollection.prototype.getDownloadURL ee.Filter.date ee.Filter.eq ee.Filter.neq ee.Filter.metadata ee.Filter.gt ee.Filter.inList ee.Filter.lte ee.Filter.lt ee.Filter.prototype.not ee.Filter.and ee.Filter.bounds ee.Filter.or ee.Filter.gte ee.Filter ee.Function.prototype.call ee.Function.prototype.apply ee.Geometry.MultiPolygon ee.Geometry.MultiPoint ee.Geometry.prototype.toGeoJSON ee.Geometry.MultiLineString ee.Geometry.LineString ee.Geometry.Polygon ee.Geometry.prototype.toGeoJSONString ee.Geometry.BBox ee.Geometry.prototype.serialize ee.Geometry.LinearRing ee.Geometry.Rectangle ee.Geometry.Point ee.Geometry ee.Image.prototype.getMap ee.Image.cat ee.Image.prototype.getDownloadURL ee.Image.prototype.rename ee.Image.prototype.getInfo ee.Image.prototype.getThumbId ee.Image.rgb ee.Image ee.Image.prototype.select ee.Image.prototype.expression ee.Image.prototype.clip ee.Image.prototype.getThumbURL ee.Image.prototype.getMapId ee.ImageCollection.prototype.getInfo ee.ImageCollection.prototype.getMapId ee.ImageCollection.prototype.first ee.ImageCollection ee.ImageCollection.prototype.getFilmstripThumbURL ee.ImageCollection.prototype.getVideoThumbURL ee.ImageCollection.prototype.select ee.ImageCollection.prototype.linkCollection ee.ImageCollection.prototype.getMap ee.List ee.Number ee.Serializer.encode ee.Serializer.encodeCloudApiPretty ee.Serializer.encodeCloudApi ee.Serializer.toJSON ee.Serializer.toCloudApiJSON ee.Serializer.toReadableCloudApiJSON ee.Serializer.toReadableJSON ee.String ee.Terrain".split(" "),
713
- c=[["name","namedArgs"],["name"],["name","var_args"],"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(" "),"collection opt_description opt_bucket opt_fileNamePrefix opt_fileFormat opt_selectors opt_maxVertices opt_priority".split(" "),
714
- "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(" "),["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(" "),
702
+ h.Jc=function(a){return this.za.some(function(b){return b.ue==a})};h.Nb=function(a){return this.za.some(function(b){return b.getKey()==a})};h.clone=function(){return new lq(this)};h.T=function(){return this.za.length};h.isEmpty=function(){return this.za.length===0};h.clear=function(){this.za.length=0};var nq=function(){lq.apply(this,arguments)};q(nq,lq);nq.prototype.enqueue=function(a,b){mq(this,a,b)};nq.prototype.Kc=function(){return this.remove()};function oq(a,b){this.nh=void 0;this.he=new nq;iq.call(this,a,b)}y(oq,iq);h=oq.prototype;h.Pc=function(a,b){if(!a)return(a=oq.M.Pc.call(this))&&this.delay&&(this.nh=t.setTimeout(w(this.Pd,this),this.delay)),a;this.he.enqueue(b!==void 0?b:100,a);this.Pd()};h.Pd=function(){for(var a=this.he;a.T()>0;){var b=this.Pc();if(b)a.Kc().apply(this,[b]);else break}};h.Le=function(a){oq.M.Le.call(this,a);this.Pd()};h.td=function(){oq.M.td.call(this);this.Pd()};
703
+ h.K=function(){oq.M.K.call(this);t.clearTimeout(this.nh);this.he.clear();this.he=null};var pq=function(a,b){I.call(this);this.Hf=a;this.ta=b||null};q(pq,Up);pq.prototype.Gf=function(a,b){var c=this,d=Ed(a,"status-changed",function(){switch(a.getStatus()){case "loaded":var e=a.zl["x-earth-engine-computation-profile"];this.ta&&e&&this.ta.Nk(a.div.id,e);break;case "failed":case "aborted":this.ta&&a.div.id!==""&&this.ta.rl(a.div.id),Md(d)}},void 0,this);a.Ba=this.Nd(a.pb,a.zoom);qq().Pc(function(e){c.wf(a,e)},b)};pq.prototype.getUniqueId=function(){return this.Hf.mapid+"-"+this.Hf.token};
704
+ pq.prototype.wf=function(a,b){var c=qq();if(a.Qa||a.getStatus()=="aborted")jq(c,b);else{var d=Ed(a,"status-changed",function(){a.le in Tp&&(Md(d),jq(c,b))});Sp(a)}};pq.prototype.Nd=function(a,b){a=xl(this.Hf,a.x,a.y,b);return this.ta&&this.ta.isEnabled()?a+"&profiling=1":a};var qq=function(){rq||(rq=new oq(0,4));return rq};x("ee.layers.EarthEngineTileSource",pq);var rq=null;var sq=function(a){I.call(this);this.Mi=a};q(sq,Up);sq.prototype.Gf=function(a){a.Ba=this.Mi.formatTileUrl(a.pb.x,a.pb.y,a.zoom);Sp(a)};sq.prototype.getUniqueId=function(){return this.Mi.token};x("ee.layers.FeatureViewTileSource",sq);var uq=function(){J.call(this);this.qe=new tq(0,60);this.yc=new be};q(uq,J);uq.prototype.send=function(a,b,c,d,e){if(this.yc.get(a))throw Error("[ee.MapTileManager] ID in use");b=new vq(a,b,d,w(this.pi,this),e!==void 0?e:1);this.yc.set(a,b);a=w(this.wf,this,b);this.qe.Pc(a,c);return b};uq.prototype.abort=function(a){if(a=this.yc.get(a))a.lc||(a.lc=!0,a.Ia=new nd("abort")),this.pi(a)};
705
+ uq.prototype.wf=function(a,b){if(a.fa||a.lc)wq(this,b);else if(a.Oi=b,b.setActive(!0),b=new Xp,a.fa=b,!a.retry())throw Error("Cannot dispatch first request!");};uq.prototype.pi=function(a){this.yc.remove(a.getId());a.fa&&(wq(this,a.Oi),a.fa.dispose());a.xf&&a.xf(a.Ia,a.li)};var wq=function(a,b){b.setActive(!1);if(!jq(a.qe,b))throw Error("Object not released");};
706
+ uq.prototype.K=function(){J.prototype.K.call(this);this.qe.dispose();this.qe=null;var a=this.yc;bc(a.ba(),function(b){b.dispose()});a.clear();this.yc=null};x("ee.MapTileManager",uq);var vq=function(a,b,c,d,e){I.call(this);this.ea=a;this.Fl=b;this.ml=e!==void 0?e:1;this.xf=c;this.ac=d};q(vq,I);h=vq.prototype;h.getId=function(){return this.ea};h.getUrl=function(){return this.Fl};
707
+ h.al=function(a){if(this.lc)this.ac&&this.ac(this);else switch(a.type){case "load":this.Ia=a;this.ac&&this.ac(this);break;case "error":case "abort":this.retry()||(this.Ia=a,this.ac&&this.ac(this))}};h.K=function(){I.prototype.K.call(this);delete this.xf;delete this.ac};h.retry=function(){if(this.Jg>this.ml)return!1;this.Jg++;$p(this.fa,this.ea);setTimeout(w(this.Al,this),0);return!0};
708
+ h.Al=function(){if(!this.lc){var a=w(function(d){this.lc||(Zp(this.fa,this.ea,d),Dd(this.fa,xq,w(this.al,this)),this.fa.start())},this),b=this.getUrl();if(dd(b).Aa.Nb("profiling")){var c=new Qi;c.zc="blob";c.Va("complete",w(function(){this.li=c.getResponseHeader("X-Earth-Engine-Computation-Profile")||null;if(c.getStatus()>=200&&c.getStatus()<300)try{var d=Lb(Mb(Zi(c)));var e=d!==Kb.toString()}catch(g){}a(e?d:b)},this));c.Xc("ready",w(c.dispose,c));c.send(b,"GET")}else a(b)}};h.Jg=0;h.lc=!1;h.fa=null;
709
+ 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)};
710
+ 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);nl(uq).send(b,a,d,w(this.Zk,this,c,b));wp(this);return c};h.Oc=function(){return this.yb.length};
711
+ h.releaseTile=function(a){nl(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){Hp(c,a)})};
712
+ 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&&Hp(c,this.Rf),a.appendChild(c)),wp(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.lookup ee.ApiFunction._apply ee.ApiFunction._call 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.image.toAsset ee.batch.Export.table.toFeatureView ee.batch.Export.table.toDrive ee.batch.Export.video.toCloudStorage ee.batch.Export.table.toCloudStorage ee.batch.Export.table.toBigQuery ee.Collection.prototype.filter ee.Collection.prototype.filterMetadata ee.Collection.prototype.filterBounds ee.Collection.prototype.sort ee.Collection.prototype.map ee.Collection.prototype.filterDate ee.Collection.prototype.iterate ee.Collection.prototype.limit ee.ComputedObject.prototype.serialize ee.ComputedObject.prototype.aside ee.ComputedObject.prototype.evaluate ee.ComputedObject.prototype.getInfo ee.data.authenticateViaPopup ee.data.startProcessing ee.data.setAssetProperties ee.data.makeTableDownloadUrl ee.data.authenticateViaPrivateKey ee.data.updateAsset ee.data.listImages ee.data.newTaskId ee.data.setAssetAcl ee.data.listBuckets ee.data.getTaskStatus ee.data.getAssetRoots ee.data.getMapId ee.data.getTileUrl ee.data.getAssetRootQuota ee.data.createAssetHome ee.data.startIngestion ee.data.getTaskList ee.data.getFeatureViewTilesKey ee.data.getWorkloadTag ee.data.createAsset ee.data.setWorkloadTag ee.data.getTaskListWithLimit ee.data.listFeatures ee.data.listOperations ee.data.createFolder ee.data.computeValue ee.data.resetWorkloadTag ee.data.cancelOperation ee.data.startTableIngestion ee.data.renameAsset ee.data.getThumbId ee.data.setDefaultWorkloadTag ee.data.getOperation ee.data.copyAsset ee.data.getVideoThumbId ee.data.getAsset ee.data.getFilmstripThumbId ee.data.deleteAsset ee.data.authenticateViaOauth ee.data.cancelTask ee.data.makeThumbUrl ee.data.getInfo ee.data.updateTask ee.data.getAssetAcl ee.data.listAssets ee.data.authenticate ee.data.makeDownloadUrl ee.data.getList ee.data.getTableDownloadId ee.data.getDownloadId ee.Date ee.Deserializer.fromCloudApiJSON ee.Deserializer.decode ee.Deserializer.fromJSON ee.Deserializer.decodeCloudApi ee.Dictionary ee.TILE_SIZE ee.Algorithms ee.reset ee.InitState ee.call ee.initialize ee.apply 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.getMapId ee.FeatureCollection.prototype.select ee.FeatureCollection.prototype.getInfo ee.FeatureCollection.prototype.getMap ee.FeatureCollection.prototype.getDownloadURL ee.Filter.or ee.Filter ee.Filter.eq ee.Filter.metadata ee.Filter.date ee.Filter.gt ee.Filter.neq ee.Filter.lte ee.Filter.lt ee.Filter.inList ee.Filter.bounds ee.Filter.prototype.not ee.Filter.and ee.Filter.gte ee.Function.prototype.call ee.Function.prototype.apply ee.Geometry.MultiPoint ee.Geometry.LineString ee.Geometry.prototype.toGeoJSON ee.Geometry.prototype.toGeoJSONString ee.Geometry.LinearRing ee.Geometry.prototype.serialize ee.Geometry.Rectangle ee.Geometry.Polygon ee.Geometry ee.Geometry.Point ee.Geometry.MultiPolygon ee.Geometry.MultiLineString ee.Geometry.BBox ee.Image.prototype.getThumbId ee.Image.prototype.getThumbURL ee.Image.prototype.getInfo ee.Image.prototype.getMap ee.Image ee.Image.prototype.getDownloadURL ee.Image.prototype.select ee.Image.cat ee.Image.prototype.getMapId ee.Image.rgb ee.Image.prototype.expression ee.Image.prototype.clip ee.Image.prototype.rename ee.ImageCollection.prototype.getMapId ee.ImageCollection.prototype.first ee.ImageCollection ee.ImageCollection.prototype.getInfo ee.ImageCollection.prototype.select ee.ImageCollection.prototype.getMap ee.ImageCollection.prototype.linkCollection ee.ImageCollection.prototype.getFilmstripThumbURL ee.ImageCollection.prototype.getVideoThumbURL ee.List ee.Number ee.Serializer.toReadableCloudApiJSON ee.Serializer.encode ee.Serializer.encodeCloudApiPretty ee.Serializer.toJSON ee.Serializer.encodeCloudApi ee.Serializer.toReadableJSON ee.Serializer.toCloudApiJSON ee.String ee.Terrain".split(" "),
713
+ c=[["name"],["name","namedArgs"],["name","var_args"],"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(" "),["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(" "),
715
714
  "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(" "),["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(" "),
716
- "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_assetId opt_maxFeaturesPerTile opt_thinningStrategy opt_thinningRanking opt_zOrderRanking opt_priority".split(" "),["max","opt_property","opt_ascending"],["filter"],["name","operator","value"],["geometry"],["property","opt_ascending"],["algorithm","opt_dropNulls"],["start","opt_end"],["algorithm","opt_first"],
717
- ["func","var_args"],["callback"],["opt_callback"],["legacy"],["taskId","params","opt_callback"],["privateKey","opt_success","opt_error","opt_extraScopes","opt_suppressDefaultScopes"],["id"],["parent","opt_params","opt_callback"],["assetId","aclUpdate","opt_callback"],["assetId","properties","opt_callback"],["opt_count","opt_callback"],["project","opt_callback"],["rootId","opt_callback"],["params","opt_callback"],["opt_callback"],["taskId","opt_callback"],[],["id","x","y","z"],["requestedId","opt_callback"],
718
- ["tag"],["tag"],["taskId","request","opt_callback"],["value","opt_path","opt_force","opt_properties","opt_callback"],["opt_callback"],["opt_resetDefault"],["params","opt_callback"],["path","opt_force","opt_callback"],["sourceId","destinationId","opt_callback"],["opt_limit","opt_callback"],["opt_limit","opt_callback"],["asset","params","opt_callback"],["sourceId","destinationId","opt_overwrite","opt_callback"],["obj","opt_callback"],["taskId","request","opt_callback"],["operationName","opt_callback"],
719
- ["params","opt_callback"],["params","opt_callback"],["assetId","opt_callback"],["assetId","opt_callback"],"clientId success opt_error opt_extraScopes opt_onImmediateFailed opt_suppressDefaultScopes".split(" "),["operationName","opt_callback"],["params","opt_callback"],["id","opt_callback"],["taskId","opt_callback"],["clientId","success","opt_error","opt_extraScopes","opt_onImmediateFailed"],["id"],["id","opt_callback"],["assetId","asset","updateFields","opt_callback"],["opt_success","opt_error"],
720
- ["taskId","action","opt_callback"],["params","opt_callback"],["params","opt_callback"],["parent","opt_params","opt_callback"],["id"],["params","opt_callback"],["date","opt_tz"],["json"],["json"],["json"],["json"],["opt_dict"],[],[],[],"opt_baseurl opt_tileurl opt_successCallback opt_errorCallback opt_xsrfToken opt_project".split(" "),["func","var_args"],[],["func","namedArgs"],["var_args"],[],["geometry","opt_properties"],["opt_visParams","opt_callback"],["opt_visParams","opt_callback"],["opt_callback"],
721
- ["propertySelectors","opt_newProperties","opt_retainGeometry"],["args","opt_column"],["opt_callback"],["opt_visParams","opt_callback"],["opt_visParams","opt_callback"],["opt_format","opt_selectors","opt_filename","opt_callback"],["start","opt_end"],["name","value"],["name","value"],["name","operator","value"],["name","value"],["opt_leftField","opt_rightValue","opt_rightField","opt_leftValue"],["name","value"],["name","value"],[],["var_args"],["geometry","opt_errorMargin"],["var_args"],["name","value"],
722
- ["opt_filter"],["var_args"],["namedArgs"],["coords","opt_proj","opt_geodesic","opt_maxError","opt_evenOdd"],["coords","opt_proj"],[],["coords","opt_proj","opt_geodesic","opt_maxError"],["coords","opt_proj","opt_geodesic","opt_maxError"],["coords","opt_proj","opt_geodesic","opt_maxError","opt_evenOdd"],[],["west","south","east","north"],["legacy"],["coords","opt_proj","opt_geodesic","opt_maxError"],["coords","opt_proj","opt_geodesic","opt_evenOdd"],["coords","opt_proj"],["geoJson","opt_proj","opt_geodesic",
723
- "opt_evenOdd"],["opt_visParams","opt_callback"],["var_args"],["params","opt_callback"],["var_args"],["opt_callback"],["params","opt_callback"],["r","g","b"],["opt_args"],["var_args"],["expression","opt_map"],["geometry"],["params","opt_callback"],["opt_visParams","opt_callback"],["opt_callback"],["opt_visParams","opt_callback"],[],["args"],["params","opt_callback"],["params","opt_callback"],["selectors","opt_names"],["imageCollection","opt_linkedBands","opt_linkedProperties","opt_matchPropertyName"],
724
- ["opt_visParams","opt_callback"],["list"],["number"],["obj","opt_isCompound"],["obj"],["obj"],["obj"],["obj"],["obj"],["obj"],["string"],[]];[Qm,Pm,Q,uo,yo,to,xo,so,vo,Ao,ro,Bo,zo,qo,oo,wo,V.prototype.limit,V.prototype.filter,V.prototype.mf,V.prototype.wh,V.prototype.sort,V.prototype.map,V.prototype.lf,V.prototype.Lh,O.prototype.Fg,O.prototype.evaluate,O.prototype.W,O.prototype.ua,$l,ql,Il,km,vm,wm,Jl,lm,xm,vl,mm,Ml,tl,wl,nm,Am,zm,dm,om,Ol,Bm,xl,pm,qm,Nl,Pl,yl,rm,zl,fm,Ql,Bl,Al,tm,sm,ol,Rl,Cl,gm,
725
- Tl,pl,Dl,gm,um,nl,Sl,Fl,Hl,jm,Gl,im,So,Wo,ap,Vo,Xo,bp,np,mp,op,kp,pp,256,qp,S.prototype.set,Lj,X,X.prototype.getMap,X.prototype.S,X.prototype.W,Y.prototype.select,Y,Y.prototype.W,Y.prototype.S,Y.prototype.getMap,Y.prototype.qb,Ln,Dn,En,On,Hn,Mn,In,Fn,U.prototype.uc,Jn,Nn,Kn,Gn,U,Km.prototype.call,Km.prototype.apply,vn,mn,T.prototype.pe,tn,rn,un,T.prototype.xg,on,T.prototype.ua,sn,nn,jn,T,N.prototype.getMap,bo,N.prototype.qb,N.prototype.ri,N.prototype.W,N.prototype.Md,ao,N,N.prototype.select,N.prototype.l,
726
- N.prototype.clip,N.prototype.uf,N.prototype.S,Z.prototype.W,Z.prototype.S,Z.prototype.first,Z,Z.prototype.tf,Z.prototype.vf,Z.prototype.select,Z.prototype.Ff,Z.prototype.getMap,co,Io,Hk,Rk,Nk,Ik,Sk,Tk,Kk,Lo,ep].forEach(function(d,e){d&&(a[d.toString()]={name:b[e],paramNames:c[e]})});t.EXPORTED_FN_INFO=a})();}).call(this);
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_assetId opt_maxFeaturesPerTile opt_thinningStrategy opt_thinningRanking opt_zOrderRanking 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(" "),
716
+ "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(" "),["filter"],["name","operator","value"],["geometry"],["property","opt_ascending"],["algorithm","opt_dropNulls"],["start","opt_end"],["algorithm","opt_first"],["max","opt_property","opt_ascending"],["legacy"],["func","var_args"],["callback"],["opt_callback"],
717
+ ["opt_success","opt_error"],["taskId","params","opt_callback"],["assetId","properties","opt_callback"],["id"],["privateKey","opt_success","opt_error","opt_extraScopes","opt_suppressDefaultScopes"],["assetId","asset","updateFields","opt_callback"],["parent","opt_params","opt_callback"],["opt_count","opt_callback"],["assetId","aclUpdate","opt_callback"],["project","opt_callback"],["taskId","opt_callback"],["opt_callback"],["params","opt_callback"],["id","x","y","z"],["rootId","opt_callback"],["requestedId",
718
+ "opt_callback"],["taskId","request","opt_callback"],["opt_callback"],["params","opt_callback"],[],["value","opt_path","opt_force","opt_properties","opt_callback"],["tag"],["opt_limit","opt_callback"],["asset","params","opt_callback"],["opt_limit","opt_callback"],["path","opt_force","opt_callback"],["obj","opt_callback"],["opt_resetDefault"],["operationName","opt_callback"],["taskId","request","opt_callback"],["sourceId","destinationId","opt_callback"],["params","opt_callback"],["tag"],["operationName",
719
+ "opt_callback"],["sourceId","destinationId","opt_overwrite","opt_callback"],["params","opt_callback"],["id","opt_callback"],["params","opt_callback"],["assetId","opt_callback"],"clientId success opt_error opt_extraScopes opt_onImmediateFailed opt_suppressDefaultScopes".split(" "),["taskId","opt_callback"],["id"],["id","opt_callback"],["taskId","action","opt_callback"],["assetId","opt_callback"],["parent","opt_params","opt_callback"],["clientId","success","opt_error","opt_extraScopes","opt_onImmediateFailed"],
720
+ ["id"],["params","opt_callback"],["params","opt_callback"],["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(" "),["func","namedArgs"],["var_args"],[],["opt_visParams","opt_callback"],["opt_callback"],["geometry","opt_properties"],["opt_visParams","opt_callback"],["args","opt_column"],["opt_visParams","opt_callback"],["propertySelectors",
721
+ "opt_newProperties","opt_retainGeometry"],["opt_callback"],["opt_visParams","opt_callback"],["opt_format","opt_selectors","opt_filename","opt_callback"],["var_args"],["opt_filter"],["name","value"],["name","operator","value"],["start","opt_end"],["name","value"],["name","value"],["name","value"],["name","value"],["opt_leftField","opt_rightValue","opt_rightField","opt_leftValue"],["geometry","opt_errorMargin"],[],["var_args"],["name","value"],["var_args"],["namedArgs"],["coords","opt_proj"],["coords",
722
+ "opt_proj","opt_geodesic","opt_maxError"],[],[],["coords","opt_proj","opt_geodesic","opt_maxError"],["legacy"],["coords","opt_proj","opt_geodesic","opt_evenOdd"],["coords","opt_proj","opt_geodesic","opt_maxError","opt_evenOdd"],["geoJson","opt_proj","opt_geodesic","opt_evenOdd"],["coords","opt_proj"],["coords","opt_proj","opt_geodesic","opt_maxError","opt_evenOdd"],["coords","opt_proj","opt_geodesic","opt_maxError"],["west","south","east","north"],["params","opt_callback"],["params","opt_callback"],
723
+ ["opt_callback"],["opt_visParams","opt_callback"],["opt_args"],["params","opt_callback"],["var_args"],["var_args"],["opt_visParams","opt_callback"],["r","g","b"],["expression","opt_map"],["geometry"],["var_args"],["opt_visParams","opt_callback"],[],["args"],["opt_callback"],["selectors","opt_names"],["opt_visParams","opt_callback"],["imageCollection","opt_linkedBands","opt_linkedProperties","opt_matchPropertyName"],["params","opt_callback"],["params","opt_callback"],["list"],["number"],["obj"],["obj",
724
+ "opt_isCompound"],["obj"],["obj"],["obj"],["obj"],["obj"],["string"],[]];[Qm,Rm,Q,to,wo,Bo,so,Co,Ao,ro,po,xo,vo,zo,uo,yo,V.prototype.filter,V.prototype.mf,V.prototype.wh,V.prototype.sort,V.prototype.map,V.prototype.lf,V.prototype.Lh,V.prototype.limit,O.prototype.ua,O.prototype.Fg,O.prototype.evaluate,O.prototype.W,ol,am,xm,Jl,rl,vm,lm,Kl,wm,mm,Nl,nm,wl,xl,ym,om,em,Pl,yl,ul,pm,Am,Ol,zl,Ql,qm,Al,Cm,Rl,gm,rm,Bl,Bm,Sl,sm,Cl,hm,Dl,tm,pl,Ul,El,hm,Tl,um,km,ql,Hl,jm,Il,Gl,To,bp,Wo,Xo,Yo,cp,256,np,op,pp,qp,
725
+ lp,rp,S.prototype.set,Mj,X.prototype.getMap,X.prototype.W,X,X.prototype.S,Y,Y.prototype.S,Y.prototype.select,Y.prototype.W,Y.prototype.getMap,Y.prototype.qb,Ln,U,En,Pn,Mn,In,Fn,Jn,Gn,Nn,On,U.prototype.uc,Kn,Hn,Lm.prototype.call,Lm.prototype.apply,nn,sn,T.prototype.pe,T.prototype.xg,tn,T.prototype.ua,on,vn,T,kn,wn,un,pn,N.prototype.Md,N.prototype.uf,N.prototype.W,N.prototype.getMap,N,N.prototype.qb,N.prototype.select,co,N.prototype.S,bo,N.prototype.l,N.prototype.clip,N.prototype.ri,Z.prototype.S,Z.prototype.first,
726
+ Z,Z.prototype.W,Z.prototype.select,Z.prototype.getMap,Z.prototype.Ff,Z.prototype.tf,Z.prototype.vf,eo,Jo,Uk,Ik,Sk,Jk,Ok,Lk,Tk,Mo,fp].forEach(function(d,e){d&&(a[d.toString()]={name:b[e],paramNames:c[e]})});t.EXPORTED_FN_INFO=a})();}).call(this);