@google/earthengine 1.4.4 → 1.4.6

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.
@@ -49,8 +49,8 @@ function jb(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in
49
49
  Copyright Google LLC
50
50
  SPDX-License-Identifier: Apache-2.0
51
51
  */
52
- var kb={};function lb(){if(kb!==kb)throw Error("Bad secret");};var mb=globalThis.trustedTypes,nb;function ob(){var a=null;if(!mb)return a;try{var b=function(c){return c};a=mb.createPolicy("goog#html",{createHTML:b,createScript:b,createScriptURL:b})}catch(c){throw c;}return a};var pb=function(a){lb();this.fi=a};pb.prototype.toString=function(){return this.fi+""};function qb(a){nb===void 0&&(nb=ob());var b=nb;return new pb(b?b.createScriptURL(a):a)}function rb(a){if(a instanceof pb)return a.fi;throw Error("Unexpected type when unwrapping TrustedResourceUrl");};var sb=pa([""]),tb=oa(["\x00"],["\\0"]),ub=oa(["\n"],["\\n"]),vb=oa(["\x00"],["\\u0000"]),wb=pa([""]),xb=oa(["\x00"],["\\0"]),yb=oa(["\n"],["\\n"]),zb=oa(["\x00"],["\\u0000"]);function Ab(a){return Object.isFrozen(a)&&Object.isFrozen(a.raw)}function Bb(a){return a.toString().indexOf("`")===-1}var Cb=Bb(function(a){return a(sb)})||Bb(function(a){return a(tb)})||Bb(function(a){return a(ub)})||Bb(function(a){return a(vb)}),Db=Ab(wb)&&Ab(xb)&&Ab(yb)&&Ab(zb);var Eb=function(a){lb();this.gi=a};Eb.prototype.toString=function(){return this.gi};new Eb("about:blank");var Fb=new Eb("about:invalid#zClosurez");function Gb(a){if(a instanceof Eb)return a.gi;throw Error("Unexpected type when unwrapping SafeUrl, got '"+a+"' of type '"+typeof a+"'");};function Ib(a){if(typeof MediaSource!=="undefined"&&a instanceof MediaSource)return new Eb(URL.createObjectURL(a));var b=a.type.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i);if((b==null?void 0:b.length)!==2||!(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(b[1])||/^video\/(?:mpeg|mp4|ogg|webm|x-matroska|quicktime|x-ms-wmv)$/i.test(b[1])||/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(b[1])||/^font\/[\w-]+$/i.test(b[1])))throw Error("unsafe blob MIME type: "+
53
- a.type);return new Eb(URL.createObjectURL(a))}var Jb=[],Kb=function(a){console.warn("A URL with content '"+a+"' was sanitized away.")};Jb.indexOf(Kb)===-1&&Jb.push(Kb);function Lb(a,b){a.src=rb(b);var c;b=a.ownerDocument&&a.ownerDocument.defaultView||window;b=b===void 0?document:b;var d;b=(d=(c="document"in b?b.document:b).querySelector)==null?void 0:d.call(c,"script[nonce]");(c=b==null?"":b.nonce||b.getAttribute("nonce")||"")&&a.setAttribute("nonce",c)};function Mb(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,Mb);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));b!==void 0&&(this.cause=b)}y(Mb,Error);Mb.prototype.name="CustomError";var Nb;function Ob(a,b){a=a.split("%s");for(var c="",d=a.length-1,e=0;e<d;e++)c+=a[e]+(e<b.length?b[e]:"%s");Mb.call(this,c+a[d])}y(Ob,Mb);Ob.prototype.name="AssertionError";function Pb(a,b,c,d){var e="Assertion failed";if(c){e+=": "+c;var g=d}else a&&(e+=": "+a,g=b);throw new Ob(""+e,g||[]);}
52
+ var kb={};function lb(){if(kb!==kb)throw Error("Bad secret");};var mb=globalThis.trustedTypes,nb;function ob(){var a=null;if(!mb)return a;try{var b=function(c){return c};a=mb.createPolicy("goog#html",{createHTML:b,createScript:b,createScriptURL:b})}catch(c){throw c;}return a};var pb=function(a){lb();this.fi=a};pb.prototype.toString=function(){return this.fi+""};function qb(a){nb===void 0&&(nb=ob());var b=nb;return new pb(b?b.createScriptURL(a):a)}function rb(a){if(a instanceof pb)return a.fi;throw Error("Unexpected type when unwrapping TrustedResourceUrl");};var sb=pa([""]),tb=oa(["\x00"],["\\0"]),ub=oa(["\n"],["\\n"]),vb=oa(["\x00"],["\\u0000"]),wb=pa([""]),xb=oa(["\x00"],["\\0"]),yb=oa(["\n"],["\\n"]),zb=oa(["\x00"],["\\u0000"]);function Ab(a){return Object.isFrozen(a)&&Object.isFrozen(a.raw)}function Bb(a){return a.toString().indexOf("`")===-1}var Cb=Bb(function(a){return a(sb)})||Bb(function(a){return a(tb)})||Bb(function(a){return a(ub)})||Bb(function(a){return a(vb)}),Db=Ab(wb)&&Ab(xb)&&Ab(yb)&&Ab(zb);var Eb=function(a){lb();this.gi=a};Eb.prototype.toString=function(){return this.gi};new Eb("about:blank");var Fb=new Eb("about:invalid#zClosurez");function Gb(a){if(a instanceof Eb)return a.gi;throw Error("Unexpected type when unwrapping SafeUrl, got '"+a+"' of type '"+typeof a+"'");};function Hb(a){if(typeof MediaSource!=="undefined"&&a instanceof MediaSource)return new Eb(URL.createObjectURL(a));var b=a.type.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i);if((b==null?void 0:b.length)!==2||!(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(b[1])||/^video\/(?:mpeg|mp4|ogg|webm|x-matroska|quicktime|x-ms-wmv)$/i.test(b[1])||/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(b[1])||/^font\/[\w-]+$/i.test(b[1])))throw Error("unsafe blob MIME type: "+
53
+ a.type);return new Eb(URL.createObjectURL(a))}var Jb=[],Kb=function(a){console.warn("A URL with content '"+a+"' was sanitized away.")};Jb.indexOf(Kb)===-1&&Jb.push(Kb);function Lb(a,b){a.src=rb(b);var c;b=a.ownerDocument;b=b===void 0?document:b;var d;b=(d=(c="document"in b?b.document:b).querySelector)==null?void 0:d.call(c,"script[nonce]");(c=b==null?"":b.nonce||b.getAttribute("nonce")||"")&&a.setAttribute("nonce",c)};function Mb(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,Mb);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));b!==void 0&&(this.cause=b)}y(Mb,Error);Mb.prototype.name="CustomError";var Nb;function Ob(a,b){a=a.split("%s");for(var c="",d=a.length-1,e=0;e<d;e++)c+=a[e]+(e<b.length?b[e]:"%s");Mb.call(this,c+a[d])}y(Ob,Mb);Ob.prototype.name="AssertionError";function Pb(a,b,c,d){var e="Assertion failed";if(c){e+=": "+c;var g=d}else a&&(e+=": "+a,g=b);throw new Ob(""+e,g||[]);}
54
54
  var E=function(a,b,c){a||Pb("",null,b,Array.prototype.slice.call(arguments,2))},Qb=function(a,b,c){a==null&&Pb("Expected to exist: %s.",[a],b,Array.prototype.slice.call(arguments,2));return a},Rb=function(a,b){throw new Ob("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1));},Sb=function(a,b,c){typeof a!=="number"&&Pb("Expected number but got %s: %s.",[wa(a),a],b,Array.prototype.slice.call(arguments,2));return a},Tb=function(a,b,c){typeof a!=="string"&&Pb("Expected string but got %s: %s.",
55
55
  [wa(a),a],b,Array.prototype.slice.call(arguments,2))},Ub=function(a,b,c){typeof a!=="function"&&Pb("Expected function but got %s: %s.",[wa(a),a],b,Array.prototype.slice.call(arguments,2))},Vb=function(a,b,c){u(a)||Pb("Expected object but got %s: %s.",[wa(a),a],b,Array.prototype.slice.call(arguments,2));return a};var Wb=Array.prototype.indexOf?function(a,b){E(a.length!=null);return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if(typeof a==="string")return typeof b!=="string"||b.length!=1?-1:a.indexOf(b,0);for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},Xb=Array.prototype.lastIndexOf?function(a,b){E(a.length!=null);return Array.prototype.lastIndexOf.call(a,b,a.length-1)}:function(a,b){var c=a.length-1;c<0&&(c=Math.max(0,a.length+c));if(typeof a==="string")return typeof b!=="string"||
56
56
  b.length!=1?-1:a.lastIndexOf(b,c);for(;c>=0;c--)if(c in a&&a[c]===b)return c;return-1},Yb=Array.prototype.forEach?function(a,b){E(a.length!=null);Array.prototype.forEach.call(a,b,void 0)}:function(a,b){for(var c=a.length,d=typeof a==="string"?a.split(""):a,e=0;e<c;e++)e in d&&b.call(void 0,d[e],e,a)},Zb=Array.prototype.filter?function(a,b){E(a.length!=null);return Array.prototype.filter.call(a,b,void 0)}:function(a,b){for(var c=a.length,d=[],e=0,g=typeof a==="string"?a.split(""):a,f=0;f<c;f++)if(f in
@@ -76,7 +76,7 @@ h.setValues=function(a,b){this.remove(a);b.length>0&&(this.ta=null,this.N.set(bd
76
76
  h.clone=function(){var a=new Sc;a.ta=this.ta;this.N&&(a.N=new Map(this.N),a.Y=this.Y);return a};var bd=function(a,b){b=String(b);a.za&&(b=b.toLowerCase());return b};Sc.prototype.eg=function(a){a&&!this.za&&(ad(this),this.ta=null,this.N.forEach(function(b,c){var d=c.toLowerCase();c!=d&&(this.remove(c),this.setValues(d,b))},this));this.za=a};Sc.prototype.extend=function(a){for(var b=0;b<arguments.length;b++)Ic(arguments[b],function(c,d){this.add(d,c)},this)};function cd(a){if(a.u!=null){var b={},c;for(c in a.u)a.u[c]!==void 0&&(b[c]=a.u[c]);a.u=b}}function F(a,b){var c=dd;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 ed=function(a,b){this.M=a;this.Wk=b===void 0?null:b};q(ed,Ua);var fd=function(a,b,c){var d=Va(a.Wk,b);if(d==null)return c;d.Il();return c.then(function(e){d.Kl(e);return e},function(e){d.Jl(e);throw e;})},G=function(a,b){var c=b.G||void 0,d=a.M,e=d.send,g=b.body instanceof A?Na(b.body,Ja,Ka,La):b.body;return fd(a,b,e.call(d,{path:b.path,B:b.B,D:b.D,body:g,u:b.u,Ai:b.Ai&&b.Ai},c))};var gd=function(){};gd.prototype.send=function(a,b){cd(a);return(void 0).then(function(c){return b?Ma(b,c):c})};function hd(a){a&&typeof a.dispose=="function"&&a.dispose()};var I=function(){this.Ra=this.Ra;this.Zd=this.Zd};I.prototype.Ra=!1;I.prototype.dispose=function(){this.Ra||(this.Ra=!0,this.J())};I.prototype[Symbol.dispose]=function(){this.dispose()};I.prototype.J=function(){if(this.Zd)for(;this.Zd.length;)this.Zd.shift()()};var id=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.dd=!1};id.prototype.stopPropagation=function(){this.dd=!0};id.prototype.preventDefault=function(){this.defaultPrevented=!0};var jd=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 kd(){var a=t.navigator;return a&&(a=a.userAgent)?a:""};var ld=kd().toLowerCase().indexOf("webkit")!=-1&&kd().indexOf("Edge")==-1;var md=function(a,b){id.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.Ja=null;if(a){var c=this.type=a.type,d=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;
77
77
  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=ld||a.offsetX!==void 0?a.offsetX:a.layerX,this.offsetY=ld||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=
78
78
  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=a.timeStamp;this.Ja=a;a.defaultPrevented&&md.L.preventDefault.call(this)}};y(md,id);
79
- md.prototype.stopPropagation=function(){md.L.stopPropagation.call(this);this.Ja.stopPropagation?this.Ja.stopPropagation():this.Ja.cancelBubble=!0};md.prototype.preventDefault=function(){md.L.preventDefault.call(this);var a=this.Ja;a.preventDefault?a.preventDefault():a.returnValue=!1};var nd="closure_listenable_"+(Math.random()*1E6|0),od=function(a){return!(!a||!a[nd])};var pd=0;var qd=function(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.ib=e;this.key=++pd;this.gd=this.Ad=!1},rd=function(a){a.gd=!0;a.listener=null;a.proxy=null;a.src=null;a.ib=null};var sd=function(a){this.src=a;this.ga={};this.nd=0};sd.prototype.add=function(a,b,c,d,e){var g=a.toString();a=this.ga[g];a||(a=this.ga[g]=[],this.nd++);var f=td(a,b,d,e);f>-1?(b=a[f],c||(b.Ad=!1)):(b=new qd(b,this.src,g,!!d,e),b.Ad=c,a.push(b));return b};sd.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.ga))return!1;var e=this.ga[a];b=td(e,b,c,d);return b>-1?(rd(e[b]),fc(e,b),e.length==0&&(delete this.ga[a],this.nd--),!0):!1};
79
+ md.prototype.stopPropagation=function(){md.L.stopPropagation.call(this);this.Ja.stopPropagation?this.Ja.stopPropagation():this.Ja.cancelBubble=!0};md.prototype.preventDefault=function(){md.L.preventDefault.call(this);var a=this.Ja;a.preventDefault?a.preventDefault():a.returnValue=!1};var nd="closure_listenable_"+(Math.random()*1E6|0),od=function(a){return!(!a||!a[nd])};var pd=0;var qd=function(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.ib=e;this.key=++pd;this.gd=this.Ad=!1},rd=function(a){a.gd=!0;a.listener=null;a.proxy=null;a.src=null;a.ib=null};function sd(a){this.src=a;this.ga={};this.nd=0}sd.prototype.add=function(a,b,c,d,e){var g=a.toString();a=this.ga[g];a||(a=this.ga[g]=[],this.nd++);var f=td(a,b,d,e);f>-1?(b=a[f],c||(b.Ad=!1)):(b=new qd(b,this.src,g,!!d,e),b.Ad=c,a.push(b));return b};sd.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.ga))return!1;var e=this.ga[a];b=td(e,b,c,d);return b>-1?(rd(e[b]),fc(e,b),e.length==0&&(delete this.ga[a],this.nd--),!0):!1};
80
80
  var ud=function(a,b){var c=b.type;c in a.ga&&ec(a.ga[c],b)&&(rd(b),a.ga[c].length==0&&(delete a.ga[c],a.nd--))};sd.prototype.fd=function(a){a=a&&a.toString();var b=0,c;for(c in this.ga)if(!a||c==a){for(var d=this.ga[c],e=0;e<d.length;e++)++b,rd(d[e]);delete this.ga[c];this.nd--}};sd.prototype.Lc=function(a,b,c,d){a=this.ga[a.toString()];var e=-1;a&&(e=td(a,b,c,d));return e>-1?a[e]:null};
81
81
  sd.prototype.hasListener=function(a,b){var c=a!==void 0,d=c?a.toString():"",e=b!==void 0;return Za(this.ga,function(g){for(var f=0;f<g.length;++f)if(!(c&&g[f].type!=d||e&&g[f].capture!=b))return!0;return!1})};var td=function(a,b,c,d){for(var e=0;e<a.length;++e){var g=a[e];if(!g.gd&&g.listener==b&&g.capture==!!c&&g.ib==d)return e}return-1};var vd="closure_lm_"+(Math.random()*1E6|0),wd={},xd=0,zd=function(a,b,c,d,e){if(d&&d.once)return yd(a,b,c,d,e);if(Array.isArray(b)){for(var g=0;g<b.length;g++)zd(a,b[g],c,d,e);return null}c=Ad(c);return od(a)?a.Wa(b,c,u(d)?!!d.capture:!!d,e):Bd(a,b,c,!1,d,e)},Bd=function(a,b,c,d,e,g){if(!b)throw Error("Invalid event type");var f=u(e)?!!e.capture:!!e,l=Cd(a);l||(a[vd]=l=new sd(a));c=l.add(b,c,d,f,g);if(c.proxy)return c;d=Dd();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)jd||(e=f),e===void 0&&
82
82
  (e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(Ed(b.toString()),d);else if(a.addListener&&a.removeListener)E(b==="change","MediaQueryList only has a change event"),a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");xd++;return c},Dd=function(){var a=Fd,b=function(c){return a.call(b.src,b.listener,c)};return b},yd=function(a,b,c,d,e){if(Array.isArray(b)){for(var g=0;g<b.length;g++)yd(a,b[g],c,d,e);return null}c=Ad(c);return od(a)?
@@ -403,89 +403,90 @@ yh.prototype.reset=function(){this.next=this.scope=this.pf=null};var zh=t.consol
403
403
  function Bh(a,b){function c(){var l=sa.apply(0,arguments),m=this;return f.run(function(){return a.call.apply(a,[m].concat(na(l)))})}b=b===void 0?"anonymous":b;if(Ah&&a[Ah])return a;var d=a,e,g=(e=Ch)==null?void 0:e();a=function(){var l=sa.apply(0,arguments),m,p=(m=Ch)==null?void 0:m();if(g!==p)throw Error(b+" was scheduled in '"+g+"' but called in '"+p+"'.\nMake sure your test awaits all async calls.\n\nTIP: To help investigate, debug the test in Chrome and look at the async portion\nof the call stack to see what originally scheduled the callback. Then, make the\ntest wait for the relevant asynchronous work to finish.");return d.call.apply(d,
404
404
  [this].concat(na(l)))};if(!zh)return a;var f=zh(a.name||b);c[Qb(Ah)]=f;return c}var Ch;var Dh,Eh=!1,Fh=new wh,Hh=function(a,b){a=Bh(a,"goog.async.run");Dh||Gh();Eh||(Dh(),Eh=!0);Fh.add(a,b)},Gh=function(){var a=Promise.resolve(void 0);Dh=function(){a.then(Ih)}};function Ih(){for(var a;a=Fh.remove();){try{a.pf.call(a.scope)}catch(b){vh(b)}xh.put(a)}Eh=!1};var Jh=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};var Mh=function(a){this.T=0;this.ia=void 0;this.mc=this.fb=this.X=null;this.Nd=this.hf=!1;if(a!=Nd)try{var b=this;a.call(void 0,function(c){Kh(b,2,c)},function(c){if(!(c instanceof Lh))try{if(c instanceof Error)throw c;throw Error("Promise rejected.");}catch(d){}Kh(b,3,c)})}catch(c){Kh(this,3,c)}},Nh=function(){this.next=this.context=this.tc=this.Xb=this.Mb=null;this.td=!1};Nh.prototype.reset=function(){this.context=this.tc=this.Xb=this.Mb=null;this.td=!1};
405
405
  var Oh=new uh(function(){return new Nh},function(a){a.reset()}),Ph=function(a,b,c){var d=Oh.get();d.Xb=a;d.tc=b;d.context=c;return d};Mh.prototype.then=function(a,b,c){a!=null&&Ub(a,"opt_onFulfilled should be a function.");b!=null&&Ub(b,"opt_onRejected should be a function. Did you pass opt_context as the second argument instead of the third?");return Qh(this,Fa(typeof a==="function"?a:null),Fa(typeof b==="function"?b:null),c)};Mh.prototype.$goog_Thenable=!0;
406
- Mh.prototype.vl=function(a,b){return Qh(this,null,Fa(a),b)};Mh.prototype.catch=Mh.prototype.vl;Mh.prototype.cancel=function(a){if(this.T==0){var b=new Lh(a);Hh(function(){Rh(this,b)},this)}};
407
- var Rh=function(a,b){if(a.T==0)if(a.X){var c=a.X;if(c.fb){for(var d=0,e=null,g=null,f=c.fb;f&&(f.td||(d++,f.Mb==a&&(e=f),!(e&&d>1)));f=f.next)e||(g=f);e&&(c.T==0&&d==1?Rh(c,b):(g?(d=g,E(c.fb),E(d!=null),d.next==c.mc&&(c.mc=d),d.next=d.next.next):Sh(c),Th(c,e,3,b)))}a.X=null}else Kh(a,3,b)},Vh=function(a,b){a.fb||a.T!=2&&a.T!=3||Uh(a);E(b.Xb!=null);a.mc?a.mc.next=b:a.fb=b;a.mc=b},Qh=function(a,b,c,d){b&&(b=Bh(b,"goog.Promise.then"));c&&(c=Bh(c,"goog.Promise.then"));var e=Ph(null,null,null);e.Mb=new Mh(function(g,
408
- f){e.Xb=b?function(l){try{var m=b.call(d,l);g(m)}catch(p){f(p)}}:g;e.tc=c?function(l){try{var m=c.call(d,l);m===void 0&&l instanceof Lh?f(l):g(m)}catch(p){f(p)}}:f});e.Mb.X=a;Vh(a,e);return e.Mb};Mh.prototype.xl=function(a){E(this.T==1);this.T=0;Kh(this,2,a)};Mh.prototype.yl=function(a){E(this.T==1);this.T=0;Kh(this,3,a)};
409
- var Kh=function(a,b,c){if(a.T==0){a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself"));a.T=1;a:{var d=c,e=a.xl,g=a.yl;if(d instanceof Mh){e!=null&&Ub(e,"opt_onFulfilled should be a function.");g!=null&&Ub(g,"opt_onRejected should be a function. Did you pass opt_context as the second argument instead of the third?");Vh(d,Ph(e||Nd,g||null,a));var f=!0}else if(Jh(d))d.then(e,g,a),f=!0;else{if(u(d))try{var l=d.then;if(typeof l==="function"){Wh(d,l,e,g,a);f=!0;break a}}catch(m){g.call(a,m);
410
- f=!0;break a}f=!1}}f||(a.ia=c,a.T=b,a.X=null,Uh(a),b!=3||c instanceof Lh||Xh(a,c))}},Wh=function(a,b,c,d,e){var g=!1,f=function(m){g||(g=!0,c.call(e,m))},l=function(m){g||(g=!0,d.call(e,m))};try{b.call(a,f,l)}catch(m){l(m)}},Uh=function(a){a.hf||(a.hf=!0,Hh(a.Rk,a))},Sh=function(a){var b=null;a.fb&&(b=a.fb,a.fb=b.next,b.next=null);a.fb||(a.mc=null);b!=null&&E(b.Xb!=null);return b};Mh.prototype.Rk=function(){for(var a;a=Sh(this);)Th(this,a,this.T,this.ia);this.hf=!1};
411
- var Th=function(a,b,c,d){if(c==3&&b.tc&&!b.td)for(;a&&a.Nd;a=a.X)a.Nd=!1;if(b.Mb)b.Mb.X=null,Yh(b,c,d);else try{b.td?b.Xb.call(b.context):Yh(b,c,d)}catch(e){Zh.call(null,e)}Oh.put(b)},Yh=function(a,b,c){b==2?a.Xb.call(a.context,c):a.tc&&a.tc.call(a.context,c)},Xh=function(a,b){a.Nd=!0;Hh(function(){a.Nd&&Zh.call(null,b)})},Zh=vh,Lh=function(a){Mb.call(this,a)};y(Lh,Mb);Lh.prototype.name="cancel";var $h=function(a,b){if(typeof a!=="function")if(a&&typeof a.handleEvent=="function")a=w(a.handleEvent,a);else throw Error("Invalid listener argument");return Number(b)>2147483647?-1:t.setTimeout(a,b||0)};var ai=function(a,b,c){I.call(this);this.al=c!=null?a.bind(c):a;this.Xk=b;this.ud=null;this.yc=!1;this.ad=0;this.fc=null};q(ai,I);h=ai.prototype;h.mf=function(a){this.ud=arguments;this.fc||this.ad?this.yc=!0:bi(this)};h.stop=function(){this.fc&&(t.clearTimeout(this.fc),this.fc=null,this.yc=!1,this.ud=null)};h.pause=function(){this.ad++};h.resume=function(){this.ad--;this.ad||!this.yc||this.fc||(this.yc=!1,bi(this))};h.J=function(){I.prototype.J.call(this);this.stop()};
412
- var bi=function(a){a.fc=$h(function(){a.fc=null;a.yc&&!a.ad&&(a.yc=!1,bi(a))},a.Xk);var b=a.ud;a.ud=null;a.al.apply(null,b)};function ci(a){var b=sa.apply(1,arguments);if(!Array.isArray(a)||!Array.isArray(a.raw)||a.length!==a.raw.length||!Cb&&a===a.raw||!(Cb&&!Db||Ab(a))||b.length+1!==a.length)throw new TypeError("\n ############################## ERROR ##############################\n\n It looks like you are trying to call a template tag function (fn`...`)\n using the normal function syntax (fn(...)), which is not supported.\n\n The functions in the safevalues library are not designed to be called\n like normal functions, and doing so invalidates the security guarantees\n that safevalues provides.\n\n If you are stuck and not sure how to proceed, please reach out to us\n instead through:\n - go/ise-hardening-yaqs (preferred) // LINE-INTERNAL\n - g/ise-hardening // LINE-INTERNAL\n - https://github.com/google/safevalues/issues\n\n ############################## ERROR ##############################");
406
+ var Sh=function(a,b,c,d){b!=null&&Ub(b,"opt_onFulfilled should be a function.");c!=null&&Ub(c,"opt_onRejected should be a function. Did you pass opt_context as the second argument instead of the third?");Rh(a,Ph(b||Nd,c||null,d))};Mh.prototype.finally=function(a){var b=this;a=Fa(a);return new Promise(function(c,d){Sh(b,function(e){a();c(e)},function(e){a();d(e)})})};Mh.prototype.vl=function(a,b){return Qh(this,null,Fa(a),b)};Mh.prototype.catch=Mh.prototype.vl;
407
+ Mh.prototype.cancel=function(a){if(this.T==0){var b=new Lh(a);Hh(function(){Th(this,b)},this)}};
408
+ var Th=function(a,b){if(a.T==0)if(a.X){var c=a.X;if(c.fb){for(var d=0,e=null,g=null,f=c.fb;f&&(f.td||(d++,f.Mb==a&&(e=f),!(e&&d>1)));f=f.next)e||(g=f);e&&(c.T==0&&d==1?Th(c,b):(g?(d=g,E(c.fb),E(d!=null),d.next==c.mc&&(c.mc=d),d.next=d.next.next):Uh(c),Vh(c,e,3,b)))}a.X=null}else Kh(a,3,b)},Rh=function(a,b){a.fb||a.T!=2&&a.T!=3||Wh(a);E(b.Xb!=null);a.mc?a.mc.next=b:a.fb=b;a.mc=b},Qh=function(a,b,c,d){b&&(b=Bh(b,"goog.Promise.then"));c&&(c=Bh(c,"goog.Promise.then"));var e=Ph(null,null,null);e.Mb=new Mh(function(g,
409
+ f){e.Xb=b?function(l){try{var m=b.call(d,l);g(m)}catch(p){f(p)}}:g;e.tc=c?function(l){try{var m=c.call(d,l);m===void 0&&l instanceof Lh?f(l):g(m)}catch(p){f(p)}}:f});e.Mb.X=a;Rh(a,e);return e.Mb};Mh.prototype.xl=function(a){E(this.T==1);this.T=0;Kh(this,2,a)};Mh.prototype.yl=function(a){E(this.T==1);this.T=0;Kh(this,3,a)};
410
+ var Kh=function(a,b,c){if(a.T==0){a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself"));a.T=1;a:{var d=c,e=a.xl,g=a.yl;if(d instanceof Mh){Sh(d,e,g,a);var f=!0}else if(Jh(d))d.then(e,g,a),f=!0;else{if(u(d))try{var l=d.then;if(typeof l==="function"){Xh(d,l,e,g,a);f=!0;break a}}catch(m){g.call(a,m);f=!0;break a}f=!1}}f||(a.ia=c,a.T=b,a.X=null,Wh(a),b!=3||c instanceof Lh||Yh(a,c))}},Xh=function(a,b,c,d,e){var g=!1,f=function(m){g||(g=!0,c.call(e,m))},l=function(m){g||(g=!0,d.call(e,m))};try{b.call(a,
411
+ f,l)}catch(m){l(m)}},Wh=function(a){a.hf||(a.hf=!0,Hh(a.Rk,a))},Uh=function(a){var b=null;a.fb&&(b=a.fb,a.fb=b.next,b.next=null);a.fb||(a.mc=null);b!=null&&E(b.Xb!=null);return b};Mh.prototype.Rk=function(){for(var a;a=Uh(this);)Vh(this,a,this.T,this.ia);this.hf=!1};
412
+ var Vh=function(a,b,c,d){if(c==3&&b.tc&&!b.td)for(;a&&a.Nd;a=a.X)a.Nd=!1;if(b.Mb)b.Mb.X=null,Zh(b,c,d);else try{b.td?b.Xb.call(b.context):Zh(b,c,d)}catch(e){$h.call(null,e)}Oh.put(b)},Zh=function(a,b,c){b==2?a.Xb.call(a.context,c):a.tc&&a.tc.call(a.context,c)},Yh=function(a,b){a.Nd=!0;Hh(function(){a.Nd&&$h.call(null,b)})},$h=vh,Lh=function(a){Mb.call(this,a)};y(Lh,Mb);Lh.prototype.name="cancel";var ai=function(a,b){if(typeof a!=="function")if(a&&typeof a.handleEvent=="function")a=w(a.handleEvent,a);else throw Error("Invalid listener argument");return Number(b)>2147483647?-1:t.setTimeout(a,b||0)};var bi=function(a,b,c){I.call(this);this.al=c!=null?a.bind(c):a;this.Xk=b;this.ud=null;this.yc=!1;this.ad=0;this.fc=null};q(bi,I);h=bi.prototype;h.mf=function(a){this.ud=arguments;this.fc||this.ad?this.yc=!0:ci(this)};h.stop=function(){this.fc&&(t.clearTimeout(this.fc),this.fc=null,this.yc=!1,this.ud=null)};h.pause=function(){this.ad++};h.resume=function(){this.ad--;this.ad||!this.yc||this.fc||(this.yc=!1,ci(this))};h.J=function(){I.prototype.J.call(this);this.stop()};
413
+ var ci=function(a){a.fc=ai(function(){a.fc=null;a.yc&&!a.ad&&(a.yc=!1,ci(a))},a.Xk);var b=a.ud;a.ud=null;a.al.apply(null,b)};function di(a){var b=sa.apply(1,arguments);if(!Array.isArray(a)||!Array.isArray(a.raw)||a.length!==a.raw.length||!Cb&&a===a.raw||!(Cb&&!Db||Ab(a))||b.length+1!==a.length)throw new TypeError("\n ############################## ERROR ##############################\n\n It looks like you are trying to call a template tag function (fn`...`)\n using the normal function syntax (fn(...)), which is not supported.\n\n The functions in the safevalues library are not designed to be called\n like normal functions, and doing so invalidates the security guarantees\n that safevalues provides.\n\n If you are stuck and not sure how to proceed, please reach out to us\n instead through:\n - go/ise-hardening-yaqs (preferred) // LINE-INTERNAL\n - g/ise-hardening // LINE-INTERNAL\n - https://github.com/google/safevalues/issues\n\n ############################## ERROR ##############################");
413
414
  if(b.length===0)return qb(a[0]);var c=a[0].toLowerCase();if(/^data:/.test(c))throw Error("Data URLs cannot have expressions in the template literal input.");if(/^https:\/\//.test(c)||/^\/\//.test(c)){var d=c.indexOf("//")+2;var e=c.indexOf("/",d);if(e<=d)throw Error("Can't interpolate data in a url's origin, Please make sure to fully specify the origin, terminated with '/'.");d=c.substring(d,e);if(!/^[0-9a-z.:-]+$/i.test(d))throw Error("The origin contains unsupported characters.");if(!/^[^:]*(:[0-9]+)?$/i.test(d))throw Error("Invalid port number.");
414
415
  if(!/(^|\.)[a-z][^.]*$/i.test(d))throw Error("The top-level domain must start with a letter.");d=!0}else d=!1;if(!d)if(/^\//.test(c))if(c==="/"||c.length>1&&c[1]!=="/"&&c[1]!=="\\")d=!0;else throw Error("The path start in the url is invalid.");else d=!1;if(!(d=d||RegExp("^[^:\\s\\\\/]+/").test(c)))if(/^about:blank/.test(c)){if(c!=="about:blank"&&!/^about:blank#/.test(c))throw Error("The about url is invalid.");d=!0}else d=!1;if(!d)throw Error("Trying to interpolate expressions in an unsupported url format.");
415
- c=a[0];for(d=0;d<b.length;d++)c+=encodeURIComponent(b[d])+a[d+1];return qb(c)};var ei=function(a,b){Wa(b,function(c,d){d=="style"?a.style.cssText=c:d=="class"?a.className=c:d=="for"?a.htmlFor=c:di.hasOwnProperty(d)?a.setAttribute(di[d],c):d.lastIndexOf("aria-",0)==0||d.lastIndexOf("data-",0)==0?a.setAttribute(d,c):a[d]=c})},di={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"},gi=function(a,
416
- b,c){return fi(document,arguments)},fi=function(a,b){var c=b[1],d=hi(a,String(b[0]));c&&(typeof c==="string"?d.className=c:Array.isArray(c)?d.className=c.join(" "):ei(d,c));b.length>2&&ii(a,d,b,2);return d},ii=function(a,b,c,d){function e(l){l&&b.appendChild(typeof l==="string"?a.createTextNode(l):l)}for(;d<c.length;d++){var g=c[d];if(!xa(g)||u(g)&&g.nodeType>0)e(g);else{a:{if(g&&typeof g.length=="number"){if(u(g)){var f=typeof g.item=="function"||typeof g.item=="string";break a}if(typeof g==="function"){f=
417
- typeof g.item=="function";break a}}f=!1}Yb(f?gc(g):g,e)}}},hi=function(a,b){b=String(b);a.contentType==="application/xhtml+xml"&&(b=b.toLowerCase());return a.createElement(b)},ji=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null},ki=function(a){E(a,"Node cannot be null or undefined.");return a.nodeType==9?a:a.ownerDocument||a.document},li=function(a){this.Ed=a||t.document||document};h=li.prototype;h.getElementsByTagName=function(a,b){return(b||this.Ed).getElementsByTagName(String(a))};
418
- h.Nk=function(a,b,c){return fi(this.Ed,arguments)};h.createElement=function(a){return hi(this.Ed,a)};h.createTextNode=function(a){return this.Ed.createTextNode(String(a))};h.appendChild=function(a,b){E(a!=null&&b!=null,"goog.dom.appendChild expects non-null arguments");a.appendChild(b)};h.append=function(a,b){ii(ki(a),a,arguments,1)};h.canHaveChildren=function(a){if(a.nodeType!=1)return!1;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0};
419
- h.removeNode=ji;h.contains=function(a,b){if(!a||!b)return!1;if(a.contains&&b.nodeType==1)return a==b||a.contains(b);if(typeof a.compareDocumentPosition!="undefined")return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};/*
416
+ c=a[0];for(d=0;d<b.length;d++)c+=encodeURIComponent(b[d])+a[d+1];return qb(c)};var fi=function(a,b){Wa(b,function(c,d){d=="style"?a.style.cssText=c:d=="class"?a.className=c:d=="for"?a.htmlFor=c:ei.hasOwnProperty(d)?a.setAttribute(ei[d],c):d.lastIndexOf("aria-",0)==0||d.lastIndexOf("data-",0)==0?a.setAttribute(d,c):a[d]=c})},ei={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"},hi=function(a,
417
+ b,c){return gi(document,arguments)},gi=function(a,b){var c=b[1],d=ii(a,String(b[0]));c&&(typeof c==="string"?d.className=c:Array.isArray(c)?d.className=c.join(" "):fi(d,c));b.length>2&&ji(a,d,b,2);return d},ji=function(a,b,c,d){function e(l){l&&b.appendChild(typeof l==="string"?a.createTextNode(l):l)}for(;d<c.length;d++){var g=c[d];if(!xa(g)||u(g)&&g.nodeType>0)e(g);else{a:{if(g&&typeof g.length=="number"){if(u(g)){var f=typeof g.item=="function"||typeof g.item=="string";break a}if(typeof g==="function"){f=
418
+ typeof g.item=="function";break a}}f=!1}Yb(f?gc(g):g,e)}}},ii=function(a,b){b=String(b);a.contentType==="application/xhtml+xml"&&(b=b.toLowerCase());return a.createElement(b)},ki=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null},li=function(a){E(a,"Node cannot be null or undefined.");return a.nodeType==9?a:a.ownerDocument||a.document},mi=function(a){this.Ed=a||t.document||document};h=mi.prototype;h.getElementsByTagName=function(a,b){return(b||this.Ed).getElementsByTagName(String(a))};
419
+ h.Nk=function(a,b,c){return gi(this.Ed,arguments)};h.createElement=function(a){return ii(this.Ed,a)};h.createTextNode=function(a){return this.Ed.createTextNode(String(a))};h.appendChild=function(a,b){E(a!=null&&b!=null,"goog.dom.appendChild expects non-null arguments");a.appendChild(b)};h.append=function(a,b){ji(li(a),a,arguments,1)};h.canHaveChildren=function(a){if(a.nodeType!=1)return!1;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0};
420
+ h.removeNode=ki;h.contains=function(a,b){if(!a||!b)return!1;if(a.contains&&b.nodeType==1)return a==b||a.contains(b);if(typeof a.compareDocumentPosition!="undefined")return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};/*
420
421
 
421
422
  Copyright 2005, 2007 Bob Ippolito. All Rights Reserved.
422
423
  Copyright The Closure Library Authors.
423
424
  SPDX-License-Identifier: MIT
424
425
  */
425
- var ni=function(a){var b=mi;this.he=[];this.Xh=b;this.jh=a||null;this.Oc=this.pc=!1;this.ia=void 0;this.hg=this.Ng=this.Pe=!1;this.re=0;this.X=null;this.Qe=0};ni.prototype.cancel=function(a){if(this.pc)this.ia instanceof ni&&this.ia.cancel();else{if(this.X){var b=this.X;delete this.X;a?b.cancel(a):(b.Qe--,b.Qe<=0&&b.cancel())}this.Xh?this.Xh.call(this.jh,this):this.hg=!0;this.pc||oi(this,new pi(this))}};ni.prototype.Wg=function(a,b){this.Pe=!1;qi(this,a,b)};
426
- var qi=function(a,b,c){a.pc=!0;a.ia=c;a.Oc=!b;ri(a)},ti=function(a){if(a.pc){if(!a.hg)throw new si(a);a.hg=!1}};ni.prototype.callback=function(a){ti(this);ui(a);qi(this,!0,a)};var oi=function(a,b){ti(a);ui(b);qi(a,!1,b)},ui=function(a){E(!(a instanceof ni),"An execution sequence may not be initiated with a blocking Deferred.")},xi=function(a){var b=vi();wi(b,a,null)},wi=function(a,b,c,d){E(!a.Ng,"Blocking Deferreds can not be re-used");a.he.push([b,c,d]);a.pc&&ri(a)};
427
- ni.prototype.then=function(a,b,c){var d,e,g=new Mh(function(f,l){e=f;d=l});wi(this,e,function(f){f instanceof pi?g.cancel():d(f);return yi},this);return g.then(a,b,c)};ni.prototype.$goog_Thenable=!0;
428
- var zi=function(a){return ac(a.he,function(b){return typeof b[1]==="function"})},yi={},ri=function(a){if(a.re&&a.pc&&zi(a)){var b=a.re,c=Ai[b];c&&(t.clearTimeout(c.ea),delete Ai[b]);a.re=0}a.X&&(a.X.Qe--,delete a.X);b=a.ia;for(var d=c=!1;a.he.length&&!a.Pe;){var e=a.he.shift(),g=e[0],f=e[1];e=e[2];if(g=a.Oc?f:g)try{var l=g.call(e||a.jh,b);l===yi&&(l=void 0);l!==void 0&&(a.Oc=a.Oc&&(l==b||l instanceof Error),a.ia=b=l);if(Jh(b)||typeof t.Promise==="function"&&b instanceof t.Promise)d=!0,a.Pe=!0}catch(m){b=
429
- m,a.Oc=!0,zi(a)||(c=!0)}}a.ia=b;d&&(l=w(a.Wg,a,!0),d=w(a.Wg,a,!1),b instanceof ni?(wi(b,l,d),b.Ng=!0):b.then(l,d));c&&(b=new Bi(b),Ai[b.ea]=b,a.re=b.ea)},si=function(){Mb.call(this)};y(si,Mb);si.prototype.message="Deferred has already fired";si.prototype.name="AlreadyCalledError";var pi=function(){Mb.call(this)};y(pi,Mb);pi.prototype.message="Deferred was canceled";pi.prototype.name="CanceledError";var Bi=function(a){this.ea=t.setTimeout(w(this.wl,this),0);this.Hd=a};
430
- Bi.prototype.wl=function(){E(Ai[this.ea],"Cannot throw an error that is not scheduled.");delete Ai[this.ea];throw this.Hd;};var Ai={};var vi=function(){var a=ci(Ci),b={},c=b.document||document,d=rb(a).toString(),e=(new li(c)).createElement("SCRIPT"),g={si:e,ne:void 0},f=new ni(g),l=null,m=b.timeout!=null?b.timeout:5E3;m>0&&(l=window.setTimeout(function(){Di(e,!0);oi(f,new Ei(1,"Timeout reached for loading script "+d))},m),g.ne=l);e.onload=e.onreadystatechange=function(){e.readyState&&e.readyState!="loaded"&&e.readyState!="complete"||(Di(e,b.Fl||!1,l),f.callback(null))};e.onerror=function(){Di(e,!0,l);oi(f,new Ei(0,"Error while loading script "+
431
- d))};g=b.attributes||{};jb(g,{type:"text/javascript",charset:"UTF-8"});ei(e,g);Lb(e,a);Fi(c).appendChild(e);return f},Fi=function(a){var b;return(b=(a||document).getElementsByTagName("HEAD"))&&b.length!==0?b[0]:a.documentElement},mi=function(){if(this&&this.si){var a=this.si;a&&a.tagName=="SCRIPT"&&Di(a,!0,this.ne)}},Di=function(a,b,c){c!=null&&t.clearTimeout(c);a.onload=function(){};a.onerror=function(){};a.onreadystatechange=function(){};b&&window.setTimeout(function(){ji(a)},0)},Ei=function(a,
432
- b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);Mb.call(this,c);this.code=a};y(Ei,Mb);var Gi=function(){this.fe=void 0};Gi.prototype.va=function(a){var b=[];Hi(this,a,b);return b.join("")};
433
- var Hi=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],Hi(a,a.fe?a.fe.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),Ii(d,c),c.push(":"),Hi(a,a.fe?a.fe.call(b,d,e):e,c),g=","));c.push("}");
434
- return}}switch(typeof b){case "string":Ii(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);}}},Ji={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},Ki=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g,Ii=function(a,b){b.push('"',a.replace(Ki,function(c){var d=Ji[c];
435
- d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).slice(1),Ji[c]=d);return d}),'"')};var Li=function(a){switch(a){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var Mi=function(){J.call(this);this.headers=new Map;this.Ea=!1;this.s=null;this.Sc=this.Jh=this.Ud="";this.Tb=this.zf=this.Sd=this.ff=!1;this.md=0;this.ec=null;this.xc="";this.kl=this.Ni=!1;this.Ne=this.yg=null};y(Mi,J);Mi.prototype.ha=zc(Ac(),"goog.net.XhrIo").cl;var Ni=/^https?$/i,Oi=["POST","PUT"],Pi=[];h=Mi.prototype;h.Mk=function(){this.dispose();ec(Pi,this)};h.setTrustToken=function(a){this.yg=a};h.setAttributionReporting=function(a){this.Ne=a};
436
- h.send=function(a,b,c,d){if(this.s)throw Error("[goog.net.XhrIo] Object is active with another request="+this.Ud+"; newUri="+a);b=b?b.toUpperCase():"GET";this.Ud=a;this.Sc="";this.Jh=b;this.ff=!1;this.Ea=!0;this.s=new XMLHttpRequest;this.s.onreadystatechange=Fa(w(this.ai,this));this.kl&&"onprogress"in this.s&&(this.s.onprogress=Fa(w(function(f){this.Zh(f,!0)},this)),this.s.upload&&(this.s.upload.onprogress=Fa(w(this.Zh,this))));try{Cc(this.ha,Qi(this,"Opening Xhr")),this.zf=!0,this.s.open(b,String(a),
437
- !0),this.zf=!1}catch(f){Cc(this.ha,Qi(this,"Error opening Xhr: "+f.message));this.Hd(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=
438
- t.FormData&&a instanceof t.FormData;!dc(Oi,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.s.setRequestHeader(d,c);this.xc&&(this.s.responseType=this.xc);"withCredentials"in this.s&&this.s.withCredentials!==this.Ni&&(this.s.withCredentials=this.Ni);if("setTrustToken"in this.s&&this.yg)try{this.s.setTrustToken(this.yg)}catch(f){Cc(this.ha,Qi(this,"Error SetTrustToken: "+f.message))}if("setAttributionReporting"in
439
- this.s&&this.Ne)try{this.s.setAttributionReporting(this.Ne)}catch(f){Cc(this.ha,Qi(this,"Error SetAttributionReporting: "+f.message))}try{this.ec&&(clearTimeout(this.ec),this.ec=null),this.md>0&&(Cc(this.ha,Qi(this,"Will abort after "+this.md+"ms if incomplete")),this.ec=setTimeout(this.ne.bind(this),this.md)),Cc(this.ha,Qi(this,"Sending request")),this.Sd=!0,this.s.send(a),this.Sd=!1}catch(f){Cc(this.ha,Qi(this,"Send error: "+f.message)),this.Hd(5,f)}};
440
- h.ne=function(){typeof va!="undefined"&&this.s&&(this.Sc="Timed out after "+this.md+"ms, aborting",Cc(this.ha,Qi(this,this.Sc)),this.dispatchEvent("timeout"),this.abort(8))};h.Hd=function(a,b){this.Ea=!1;this.s&&(this.Tb=!0,this.s.abort(),this.Tb=!1);this.Sc=b;Ri(this);Si(this)};var Ri=function(a){a.ff||(a.ff=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
441
- Mi.prototype.abort=function(){this.s&&this.Ea&&(Cc(this.ha,Qi(this,"Aborting")),this.Ea=!1,this.Tb=!0,this.s.abort(),this.Tb=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Si(this))};Mi.prototype.J=function(){this.s&&(this.Ea&&(this.Ea=!1,this.Tb=!0,this.s.abort(),this.Tb=!1),Si(this,!0));Mi.L.J.call(this)};Mi.prototype.ai=function(){this.Ra||(this.zf||this.Sd||this.Tb?Ti(this):this.jl())};Mi.prototype.jl=function(){Ti(this)};
442
- var Ti=function(a){if(a.Ea&&typeof va!="undefined")if(a.Sd&&a.Rb()==4)setTimeout(a.ai.bind(a),0);else if(a.dispatchEvent("readystatechange"),a.Rb()==4){Cc(a.ha,Qi(a,"Request complete"));a.Ea=!1;try{var b=a.getStatus(),c;if(!(c=Li(b))){var d;if(d=b===0){var e=String(a.Ud).match(Kc)[1]||null;!e&&t.self&&t.self.location&&(e=t.self.location.protocol.slice(0,-1));d=!Ni.test(e?e.toLowerCase():"")}c=d}if(c)a.dispatchEvent("complete"),a.dispatchEvent("success");else{try{var g=a.Rb()>2?a.s.statusText:""}catch(f){Cc(a.ha,
443
- "Can not get status: "+f.message),g=""}a.Sc=g+" ["+a.getStatus()+"]";Ri(a)}}finally{Si(a)}}};Mi.prototype.Zh=function(a,b){E(a.type==="progress","goog.net.EventType.PROGRESS is of the same type as raw XHR progress.");this.dispatchEvent(Ui(a,"progress"));this.dispatchEvent(Ui(a,b?"downloadprogress":"uploadprogress"))};
444
- var Ui=function(a,b){return{type:b,lengthComputable:a.lengthComputable,loaded:a.loaded,total:a.total}},Si=function(a,b){if(a.s){a.ec&&(clearTimeout(a.ec),a.ec=null);var c=a.s;a.s=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=null}catch(d){(a=a.ha)&&Bc(a,oc,"Problem encountered resetting onreadystatechange: "+d.message)}}};Mi.prototype.isActive=function(){return!!this.s};Mi.prototype.Rb=function(){return this.s?this.s.readyState:0};
445
- Mi.prototype.getStatus=function(){try{return this.Rb()>2?this.s.status:-1}catch(a){return-1}};var Vi=function(a){try{if(!a.s)return null;if("response"in a.s)return a.s.response;switch(a.xc){case "":case "text":return a.s.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in a.s)return a.s.mozResponseArrayBuffer}var b=a.ha;b&&Bc(b,oc,"Response type "+a.xc+" is not supported on this browser");return null}catch(c){return Cc(a.ha,"Can not get response: "+c.message),null}};
446
- Mi.prototype.getResponseHeader=function(a){if(this.s&&this.Rb()==4)return a=this.s.getResponseHeader(a),a===null?void 0:a};Mi.prototype.getAllResponseHeaders=function(){return this.s&&this.Rb()>=2?this.s.getAllResponseHeaders()||"":""};
447
- var Wi=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=Ec(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 Ya(b,function(f){return f.join(", ")})},Qi=function(a,b){return b+" ["+a.Jh+" "+a.Ud+" "+a.getStatus()+"]"};var Ci=pa(["https://accounts.google.com/gsi/client"]),Xi,K=function(a,b){Yi();this.callback=a;this.M=new Zi(!a,b)};K.prototype.qd=function(a){this.M.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 $i=function(){return"projects/"+Xi};h=K.prototype;h.Ec=function(){return new ch(this.M)};
448
- h.assets=function(){return new eh(this.M)};h.Na=function(){return new lh(this.M)};h.value=function(){return new ph(this.M)};h.maps=function(){return new kh(this.M)};h.map=function(){return new jh(this.M)};h.image=function(){return new ih(this.M)};h.table=function(){return new mh(this.M)};h.video=function(){return new rh(this.M)};var Zi=function(a,b){this.sync=a=a===void 0?!1:a;this.Pb=void 0;this.oi=b!=null?b:a?5:10};q(Zi,gd);
449
- Zi.prototype.send=function(a,b){var c=this;cd(a);var d=a.path||"",e=aj()+d,g=bj(a.u||{}),f=a.body?JSON.stringify(a.body):void 0;if(this.sync){d=cj(e,g,void 0,a.B,f,this.oi,this.Pb);d=b?Ma(b,d):d;var l=function(m){return{then:function(p){return l(p(m))}}};return l(d)}return(new Promise(function(m,p){cj(e,g,function(v,z){z?p(z):m(v)},a.B,f,c.oi,c.Pb)})).then(function(m){return b?Ma(b,m):m})};var ej=function(a){K.call(this,a);this.M=new dj;this.Pb=void 0};q(ej,K);
450
- ej.prototype.qd=function(a){this.Pb=a;return this};
451
- ej.prototype.send=function(a,b){var c=this,d=aj()+"/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]=
452
- Ma(p,f[m]))});return b?b(l):l};return this.callback?(cj(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(cj(d,null,void 0,"multipart/mixed; boundary=batch_EARTHENGINE_batch",e,void 0,this.Pb))};var dj=function(){};q(dj,gd);
453
- dj.prototype.send=function(a,b){var c=[a.B+" "+a.path+" HTTP/1.1"];c.push("Content-Type: application/json; charset=utf-8");var d=fj();d!=null&&c.push("Authorization: "+d);a=a.body?JSON.stringify(a.body):"";return[c.join("\r\n")+"\r\n\r\n"+a,b]};
454
- var gj=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"))}},aj=function(){var a=hj.replace(/\/api$/,"");return"window"in t&&!a.match(/^https?:\/\/content-/)?a.replace(/^(https?:\/\/)(.*\.googleapis\.com)$/,"$1content-$2"):a},jj=function(a,b,c){var d=[];a&&(d=d.concat(ij));
455
- 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"+Ba(g):(typeof g).charAt(0)+g;Object.prototype.hasOwnProperty.call(e,f)||(e[f]=!0,a[b++]=g)}a.length=b;return d},qj=function(a,b,c){kj&&mj&&kj({client_id:String(mj),scope:nj.join(" "),plugin_name:"earthengine"},function(d){if(d.error=="immediate_failed"&&c)c();else if("window"in t)try{oj(function(){try{pj(a,b,d)}catch(e){b(e.toString())}})}catch(e){b(e.toString())}else pj(a,
456
- b,d)})},fj=function(){rj&&Date.now()-rj>=0&&sj();return tj},sj=function(){rj=tj=null},Yi=function(a,b,c,d){a!=null?hj=a:uj||(hj="https://earthengine.googleapis.com/api");b!=null?vj=b:uj||(vj="https://earthengine.googleapis.com");c!==void 0&&(wj=c);Xi=d!=null?d:Xi||"earthengine-legacy";uj=!0},cj=function(a,b,c,d,e,g,f){Yi();var l=xj,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.4.4";p==="1.4.4"&&
457
- (p="latest");m["x-goog-api-client"]="ee-js/"+p;p=fj();if(p!=null)m.Authorization=p;else if(c&&kj&&mj)return qj(function(){yj(l,function(){cj(a,b,c,d)})}),null;b=b?b.clone():new Sc;zj!=null&&b.add("key",zj);l&&(m["X-Earth-Engine-Computation-Profiling"]="1");Xi&&Xi!=="earthengine-legacy"&&(m["X-Goog-User-Project"]=Xi);b=Aj(b,a);wj!=null&&(m["X-XSRF-Token"]=wj);Bj!=null&&(m["X-Earth-Engine-App-ID-Token"]=Bj);p=e||null;var v=b?b.toString():"";d==="POST"&&e===void 0?p=v:/^[\s\xa0]*$/.test(v)||(a+=a.indexOf("?")!=
458
- -1?"&":"?",a+=v);e=a.startsWith("/")?hj+a:a;if(c)return Cj.push(Dj(e,c,d,p,m,g,f)),Ej.mf(),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);Wa(m,v,B);B.send(p);if(B.status!=429||z>g)break;z++}return Fj(B.status,function(H){try{return B.getResponseHeader(H)}catch(ea){return null}},B.responseText,l,void 0,e,d,f)},Dj=function(a,b,c,d,e,g,f){var l=0,m={url:a,method:c,content:d,headers:e},p=xj,v=g!=null?g:10;
459
- m.callback=function(z){z=z.target;if(z.getStatus()==429&&l<v)return l++,setTimeout(function(){Cj.push(m);Ej.mf()},Math.min(12E4,Math.pow(2,l)*1E3)),null;var B=Fj,H=z.getStatus(),ea=w(z.getResponseHeader,z);try{var W=z.s?z.s.responseText:""}catch(da){Cc(z.ha,"Can not get responseText: "+da.message),W=""}return B(H,ea,W,p,b,a,c,f)};return m},yj=function(a,b){var c=xj;try{xj=a,b.call(void 0)}finally{xj=c}},Fj=function(a,b,c,d,e,g,f,l){var m=d?b("X-Earth-Engine-Computation-Profile"):"";m&&d&&d(m);var p=
460
- 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(Hb){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?
461
- 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=[];gj(b,c,function(W,da,Hb){Hb=p(Hb);Hb.parsed&&(B[W]=Hb.parsed);(da=(Hb.parsed?"":Hb)||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);},oj=function(a){var b=function(){kj||(kj=function(c,d){t.google.accounts.oauth2.initTokenClient({client_id:c.client_id,
462
- callback:d,scope:c.scope}).requestAccessToken()});a()};u(t.default_gsi)?b():xi(b)},pj=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(qj,c*.9);d.unref!==void 0&&d.unref();rj=Date.now()+c}tj=b;a&&a()}else b&&b(c.error||"Unknown error.")},bj=function(a){var b=new Sc;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},Cj=[],Ej=
463
- new ai(function(){var a=Cj.shift();if(a){var b=a.url,c=a.callback,d=a.method,e=a.content;a=a.headers;var g=Gj,f=new Mi;Pi.push(f);c&&f.Wa("complete",c);f.Vc("ready",f.Mk);g&&(f.md=Math.max(0,g));f.send(b,d,e,a)}Cj.length==0||Ej.mf()},350),hj=null,vj=null,wj=null,Bj=null,Aj=Od,tj=null,rj=null,mj=null,nj=[],kj=null,ij=["https://www.googleapis.com/auth/earthengine","https://www.googleapis.com/auth/cloud-platform"],zj=null,uj=!1,Gj=0,xj=null;x("ee.api.ListAssetsResponse",Dg);
464
- x("ee.api.EarthEngineAsset",zf);x("ee.api.Operation",Gg);x("ee.api.ListFeaturesResponse",Eg);x("ee.api.FeatureViewLocation",Cf);var Hj=function(){};Hj.prototype.zh=function(){return null};var Ij=function(){};x("ee.Encodable.SourceFrame",Ij);
465
- var Jj=function(a){if(a===void 0||a===null)a=Ha;return new Ze({gb:a})},Kj=function(a){return new Ze({Oa:a})},Lj=function(a){return new Ze({Fa:new Ye({values:a})})},Mj=function(a){return new Ze({Ga:new wf({values:a})})},Nj=function(a,b){return new Ze({ya:new jg({functionName:a,arguments:b})})},Oj=function(a,b){return new Ze({ya:new jg({Ua:a,arguments:b})})},Pj=function(a,b){return new Ze({Ta:new ig({lc:a,body:b})})},Qj=function(a){if(!a)return"AUTO_JPEG_PNG";a=a.toUpperCase();switch(a){case "JPG":return"JPEG";
466
- 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}},Rj=function(a){if(!a)return"CSV";a=a.toUpperCase();
467
- switch(a){case "TF_RECORD":case "TFRECORD":return"TF_RECORD_TABLE";case "JSON":case "GEOJSON":return"GEO_JSON";default:return a}},Sj=function(a){if(!a)return"VERTICAL";a=a.toUpperCase();if(a!=="HORIZONTAL"&&a!=="VERTICAL")throw Error('Orientation must be "horizontal" or "vertical"');return a},Tj=function(a){if(!a)return[];if(typeof a==="string")return a.split(",");if(Array.isArray(a))return a;throw Error("Invalid band list "+a);},Wj=function(a){var b=new Hf,c=!1;"palette"in a&&(c=a.palette,b.Zc=typeof c===
468
- "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.Zc?b.Zc.length-1:255;d=Uj(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=Uj(a,"min","max");d.length!==0&&(b.Tf=d.map(function(g){return new xf(g)}),c=!0);a=Vj(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?
469
- b:null},Vj=function(a){return a?a.split(",").map(Number):[]},Uj=function(a,b,c){var d=Vj(a[b]),e=Vj(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})},Xj=function(a){var b=function(f){var l={};l.description=f.description||"";l.type=f.type||"";f.vd!=null&&
426
+ var oi=function(a){var b=ni;this.he=[];this.Xh=b;this.jh=a||null;this.Oc=this.pc=!1;this.ia=void 0;this.hg=this.Ng=this.Pe=!1;this.re=0;this.X=null;this.Qe=0};oi.prototype.cancel=function(a){if(this.pc)this.ia instanceof oi&&this.ia.cancel();else{if(this.X){var b=this.X;delete this.X;a?b.cancel(a):(b.Qe--,b.Qe<=0&&b.cancel())}this.Xh?this.Xh.call(this.jh,this):this.hg=!0;this.pc||pi(this,new qi(this))}};oi.prototype.Wg=function(a,b){this.Pe=!1;ri(this,a,b)};
427
+ var ri=function(a,b,c){a.pc=!0;a.ia=c;a.Oc=!b;si(a)},ui=function(a){if(a.pc){if(!a.hg)throw new ti(a);a.hg=!1}};oi.prototype.callback=function(a){ui(this);vi(a);ri(this,!0,a)};var pi=function(a,b){ui(a);vi(b);ri(a,!1,b)},vi=function(a){E(!(a instanceof oi),"An execution sequence may not be initiated with a blocking Deferred.")},yi=function(a){var b=wi();xi(b,a,null)};oi.prototype.finally=function(a){var b=this;return new Promise(function(c,d){xi(b,function(e){a();c(e)},function(e){a();d(e)})})};
428
+ var xi=function(a,b,c,d){E(!a.Ng,"Blocking Deferreds can not be re-used");var e=a.pc;e||(b===c?b=c=Fa(b):(b=Fa(b),c=Fa(c)));a.he.push([b,c,d]);e&&si(a)};oi.prototype.then=function(a,b,c){var d,e,g=new Mh(function(f,l){e=f;d=l});xi(this,e,function(f){f instanceof qi?g.cancel():d(f);return zi},this);return g.then(a,b,c)};oi.prototype.$goog_Thenable=!0;
429
+ var Ai=function(a){return ac(a.he,function(b){return typeof b[1]==="function"})},zi={},si=function(a){if(a.re&&a.pc&&Ai(a)){var b=a.re,c=Bi[b];c&&(t.clearTimeout(c.ea),delete Bi[b]);a.re=0}a.X&&(a.X.Qe--,delete a.X);b=a.ia;for(var d=c=!1;a.he.length&&!a.Pe;){var e=a.he.shift(),g=e[0],f=e[1];e=e[2];if(g=a.Oc?f:g)try{var l=g.call(e||a.jh,b);l===zi&&(l=void 0);l!==void 0&&(a.Oc=a.Oc&&(l==b||l instanceof Error),a.ia=b=l);if(Jh(b)||typeof t.Promise==="function"&&b instanceof t.Promise)d=!0,a.Pe=!0}catch(m){b=
430
+ m,a.Oc=!0,Ai(a)||(c=!0)}}a.ia=b;d&&(l=w(a.Wg,a,!0),d=w(a.Wg,a,!1),b instanceof oi?(xi(b,l,d),b.Ng=!0):b.then(l,d));c&&(b=new Ci(b),Bi[b.ea]=b,a.re=b.ea)},ti=function(){Mb.call(this)};y(ti,Mb);ti.prototype.message="Deferred has already fired";ti.prototype.name="AlreadyCalledError";var qi=function(){Mb.call(this)};y(qi,Mb);qi.prototype.message="Deferred was canceled";qi.prototype.name="CanceledError";var Ci=function(a){this.ea=t.setTimeout(w(this.wl,this),0);this.Hd=a};
431
+ Ci.prototype.wl=function(){E(Bi[this.ea],"Cannot throw an error that is not scheduled.");delete Bi[this.ea];throw this.Hd;};var Bi={};var wi=function(){var a=di(Di),b={},c=b.document||document,d=rb(a).toString(),e=(new mi(c)).createElement("SCRIPT"),g={si:e,ne:void 0},f=new oi(g),l=null,m=b.timeout!=null?b.timeout:5E3;m>0&&(l=window.setTimeout(function(){Ei(e,!0);pi(f,new Fi(1,"Timeout reached for loading script "+d))},m),g.ne=l);e.onload=e.onreadystatechange=function(){e.readyState&&e.readyState!="loaded"&&e.readyState!="complete"||(Ei(e,b.Fl||!1,l),f.callback(null))};e.onerror=function(){Ei(e,!0,l);pi(f,new Fi(0,"Error while loading script "+
432
+ d))};g=b.attributes||{};jb(g,{type:"text/javascript",charset:"UTF-8"});fi(e,g);Lb(e,a);Gi(c).appendChild(e);return f},Gi=function(a){var b;return(b=(a||document).getElementsByTagName("HEAD"))&&b.length!==0?b[0]:a.documentElement},ni=function(){if(this&&this.si){var a=this.si;a&&a.tagName=="SCRIPT"&&Ei(a,!0,this.ne)}},Ei=function(a,b,c){c!=null&&t.clearTimeout(c);a.onload=function(){};a.onerror=function(){};a.onreadystatechange=function(){};b&&window.setTimeout(function(){ki(a)},0)},Fi=function(a,
433
+ b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);Mb.call(this,c);this.code=a};y(Fi,Mb);var Hi=function(){this.fe=void 0};Hi.prototype.va=function(a){var b=[];Ii(this,a,b);return b.join("")};
434
+ var Ii=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],Ii(a,a.fe?a.fe.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),Ji(d,c),c.push(":"),Ii(a,a.fe?a.fe.call(b,d,e):e,c),g=","));c.push("}");
435
+ return}}switch(typeof b){case "string":Ji(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);}}},Ki={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},Li=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g,Ji=function(a,b){b.push('"',a.replace(Li,function(c){var d=Ki[c];
436
+ d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).slice(1),Ki[c]=d);return d}),'"')};var Mi=function(a){switch(a){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var Ni=function(){J.call(this);this.headers=new Map;this.Ea=!1;this.s=null;this.Sc=this.Jh=this.Ud="";this.Tb=this.zf=this.Sd=this.ff=!1;this.md=0;this.ec=null;this.xc="";this.kl=this.Ni=!1;this.Ne=this.yg=null};y(Ni,J);Ni.prototype.ha=zc(Ac(),"goog.net.XhrIo").cl;var Oi=/^https?$/i,Pi=["POST","PUT"],Qi=[];h=Ni.prototype;h.Mk=function(){this.dispose();ec(Qi,this)};h.setTrustToken=function(a){this.yg=a};h.setAttributionReporting=function(a){this.Ne=a};
437
+ h.send=function(a,b,c,d){if(this.s)throw Error("[goog.net.XhrIo] Object is active with another request="+this.Ud+"; newUri="+a);b=b?b.toUpperCase():"GET";this.Ud=a;this.Sc="";this.Jh=b;this.ff=!1;this.Ea=!0;this.s=new XMLHttpRequest;this.s.onreadystatechange=Fa(w(this.ai,this));this.kl&&"onprogress"in this.s&&(this.s.onprogress=Fa(w(function(f){this.Zh(f,!0)},this)),this.s.upload&&(this.s.upload.onprogress=Fa(w(this.Zh,this))));try{Cc(this.ha,Ri(this,"Opening Xhr")),this.zf=!0,this.s.open(b,String(a),
438
+ !0),this.zf=!1}catch(f){Cc(this.ha,Ri(this,"Error opening Xhr: "+f.message));this.Hd(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=
439
+ t.FormData&&a instanceof t.FormData;!dc(Pi,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.s.setRequestHeader(d,c);this.xc&&(this.s.responseType=this.xc);"withCredentials"in this.s&&this.s.withCredentials!==this.Ni&&(this.s.withCredentials=this.Ni);if("setTrustToken"in this.s&&this.yg)try{this.s.setTrustToken(this.yg)}catch(f){Cc(this.ha,Ri(this,"Error SetTrustToken: "+f.message))}if("setAttributionReporting"in
440
+ this.s&&this.Ne)try{this.s.setAttributionReporting(this.Ne)}catch(f){Cc(this.ha,Ri(this,"Error SetAttributionReporting: "+f.message))}try{this.ec&&(clearTimeout(this.ec),this.ec=null),this.md>0&&(Cc(this.ha,Ri(this,"Will abort after "+this.md+"ms if incomplete")),this.ec=setTimeout(this.ne.bind(this),this.md)),Cc(this.ha,Ri(this,"Sending request")),this.Sd=!0,this.s.send(a),this.Sd=!1}catch(f){Cc(this.ha,Ri(this,"Send error: "+f.message)),this.Hd(5,f)}};
441
+ h.ne=function(){typeof va!="undefined"&&this.s&&(this.Sc="Timed out after "+this.md+"ms, aborting",Cc(this.ha,Ri(this,this.Sc)),this.dispatchEvent("timeout"),this.abort(8))};h.Hd=function(a,b){this.Ea=!1;this.s&&(this.Tb=!0,this.s.abort(),this.Tb=!1);this.Sc=b;Si(this);Ti(this)};var Si=function(a){a.ff||(a.ff=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
442
+ Ni.prototype.abort=function(){this.s&&this.Ea&&(Cc(this.ha,Ri(this,"Aborting")),this.Ea=!1,this.Tb=!0,this.s.abort(),this.Tb=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Ti(this))};Ni.prototype.J=function(){this.s&&(this.Ea&&(this.Ea=!1,this.Tb=!0,this.s.abort(),this.Tb=!1),Ti(this,!0));Ni.L.J.call(this)};Ni.prototype.ai=function(){this.Ra||(this.zf||this.Sd||this.Tb?Ui(this):this.jl())};Ni.prototype.jl=function(){Ui(this)};
443
+ var Ui=function(a){if(a.Ea&&typeof va!="undefined")if(a.Sd&&a.Rb()==4)setTimeout(a.ai.bind(a),0);else if(a.dispatchEvent("readystatechange"),a.Rb()==4){Cc(a.ha,Ri(a,"Request complete"));a.Ea=!1;try{var b=a.getStatus(),c;if(!(c=Mi(b))){var d;if(d=b===0){var e=String(a.Ud).match(Kc)[1]||null;!e&&t.self&&t.self.location&&(e=t.self.location.protocol.slice(0,-1));d=!Oi.test(e?e.toLowerCase():"")}c=d}if(c)a.dispatchEvent("complete"),a.dispatchEvent("success");else{try{var g=a.Rb()>2?a.s.statusText:""}catch(f){Cc(a.ha,
444
+ "Can not get status: "+f.message),g=""}a.Sc=g+" ["+a.getStatus()+"]";Si(a)}}finally{Ti(a)}}};Ni.prototype.Zh=function(a,b){E(a.type==="progress","goog.net.EventType.PROGRESS is of the same type as raw XHR progress.");this.dispatchEvent(Vi(a,"progress"));this.dispatchEvent(Vi(a,b?"downloadprogress":"uploadprogress"))};
445
+ var Vi=function(a,b){return{type:b,lengthComputable:a.lengthComputable,loaded:a.loaded,total:a.total}},Ti=function(a,b){if(a.s){a.ec&&(clearTimeout(a.ec),a.ec=null);var c=a.s;a.s=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=null}catch(d){(a=a.ha)&&Bc(a,oc,"Problem encountered resetting onreadystatechange: "+d.message)}}};Ni.prototype.isActive=function(){return!!this.s};Ni.prototype.Rb=function(){return this.s?this.s.readyState:0};
446
+ Ni.prototype.getStatus=function(){try{return this.Rb()>2?this.s.status:-1}catch(a){return-1}};var Wi=function(a){try{if(!a.s)return null;if("response"in a.s)return a.s.response;switch(a.xc){case "":case "text":return a.s.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in a.s)return a.s.mozResponseArrayBuffer}var b=a.ha;b&&Bc(b,oc,"Response type "+a.xc+" is not supported on this browser");return null}catch(c){return Cc(a.ha,"Can not get response: "+c.message),null}};
447
+ Ni.prototype.getResponseHeader=function(a){if(this.s&&this.Rb()==4)return a=this.s.getResponseHeader(a),a===null?void 0:a};Ni.prototype.getAllResponseHeaders=function(){return this.s&&this.Rb()>=2?this.s.getAllResponseHeaders()||"":""};
448
+ var Xi=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=Ec(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 Ya(b,function(f){return f.join(", ")})},Ri=function(a,b){return b+" ["+a.Jh+" "+a.Ud+" "+a.getStatus()+"]"};var Di=pa(["https://accounts.google.com/gsi/client"]),Yi,K=function(a,b){Zi();this.callback=a;this.M=new $i(!a,b)};K.prototype.qd=function(a){this.M.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 aj=function(){return"projects/"+Yi};h=K.prototype;h.Ec=function(){return new ch(this.M)};
449
+ h.assets=function(){return new eh(this.M)};h.Na=function(){return new lh(this.M)};h.value=function(){return new ph(this.M)};h.maps=function(){return new kh(this.M)};h.map=function(){return new jh(this.M)};h.image=function(){return new ih(this.M)};h.table=function(){return new mh(this.M)};h.video=function(){return new rh(this.M)};var $i=function(a,b){this.sync=a=a===void 0?!1:a;this.Pb=void 0;this.oi=b!=null?b:a?5:10};q($i,gd);
450
+ $i.prototype.send=function(a,b){var c=this;cd(a);var d=a.path||"",e=bj()+d,g=cj(a.u||{}),f=a.body?JSON.stringify(a.body):void 0;if(this.sync){d=dj(e,g,void 0,a.B,f,this.oi,this.Pb);d=b?Ma(b,d):d;var l=function(m){return{then:function(p){return l(p(m))}}};return l(d)}return(new Promise(function(m,p){dj(e,g,function(v,z){z?p(z):m(v)},a.B,f,c.oi,c.Pb)})).then(function(m){return b?Ma(b,m):m})};var fj=function(a){K.call(this,a);this.M=new ej;this.Pb=void 0};q(fj,K);
451
+ fj.prototype.qd=function(a){this.Pb=a;return this};
452
+ fj.prototype.send=function(a,b){var c=this,d=bj()+"/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]=
453
+ Ma(p,f[m]))});return b?b(l):l};return this.callback?(dj(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(dj(d,null,void 0,"multipart/mixed; boundary=batch_EARTHENGINE_batch",e,void 0,this.Pb))};var ej=function(){};q(ej,gd);
454
+ ej.prototype.send=function(a,b){var c=[a.B+" "+a.path+" HTTP/1.1"];c.push("Content-Type: application/json; charset=utf-8");var d=gj();d!=null&&c.push("Authorization: "+d);a=a.body?JSON.stringify(a.body):"";return[c.join("\r\n")+"\r\n\r\n"+a,b]};
455
+ var hj=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"))}},bj=function(){var a=ij.replace(/\/api$/,"");return"window"in t&&!a.match(/^https?:\/\/content-/)?a.replace(/^(https?:\/\/)(.*\.googleapis\.com)$/,"$1content-$2"):a},kj=function(a,b,c){var d=[];a&&(d=d.concat(jj));
456
+ 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"+Ba(g):(typeof g).charAt(0)+g;Object.prototype.hasOwnProperty.call(e,f)||(e[f]=!0,a[b++]=g)}a.length=b;return d},rj=function(a,b,c){mj&&nj&&mj({client_id:String(nj),scope:oj.join(" "),plugin_name:"earthengine"},function(d){if(d.error=="immediate_failed"&&c)c();else if("window"in t)try{pj(function(){try{qj(a,b,d)}catch(e){b(e.toString())}})}catch(e){b(e.toString())}else qj(a,
457
+ b,d)})},gj=function(){sj&&Date.now()-sj>=0&&tj();return uj},tj=function(){sj=uj=null},Zi=function(a,b,c,d){a!=null?ij=a:vj||(ij="https://earthengine.googleapis.com/api");b!=null?wj=b:vj||(wj="https://earthengine.googleapis.com");c!==void 0&&(xj=c);Yi=d!=null?d:Yi||"earthengine-legacy";vj=!0},dj=function(a,b,c,d,e,g,f){Zi();var l=yj,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.4.6";p==="1.4.6"&&
458
+ (p="latest");m["x-goog-api-client"]="ee-js/"+p;p=gj();if(p!=null)m.Authorization=p;else if(c&&mj&&nj)return rj(function(){zj(l,function(){dj(a,b,c,d)})}),null;b=b?b.clone():new Sc;Aj!=null&&b.add("key",Aj);l&&(m["X-Earth-Engine-Computation-Profiling"]="1");Yi&&Yi!=="earthengine-legacy"&&(m["X-Goog-User-Project"]=Yi);b=Bj(b,a);xj!=null&&(m["X-XSRF-Token"]=xj);Cj!=null&&(m["X-Earth-Engine-App-ID-Token"]=Cj);p=e||null;var v=b?b.toString():"";d==="POST"&&e===void 0?p=v:/^[\s\xa0]*$/.test(v)||(a+=a.indexOf("?")!=
459
+ -1?"&":"?",a+=v);e=a.startsWith("/")?ij+a:a;if(c)return Dj.push(Ej(e,c,d,p,m,g,f)),Fj.mf(),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);Wa(m,v,B);B.send(p);if(B.status!=429||z>g)break;z++}return Gj(B.status,function(H){try{return B.getResponseHeader(H)}catch(ea){return null}},B.responseText,l,void 0,e,d,f)},Ej=function(a,b,c,d,e,g,f){var l=0,m={url:a,method:c,content:d,headers:e},p=yj,v=g!=null?g:10;
460
+ m.callback=function(z){z=z.target;if(z.getStatus()==429&&l<v)return l++,setTimeout(function(){Dj.push(m);Fj.mf()},Math.min(12E4,Math.pow(2,l)*1E3)),null;var B=Gj,H=z.getStatus(),ea=w(z.getResponseHeader,z);try{var W=z.s?z.s.responseText:""}catch(da){Cc(z.ha,"Can not get responseText: "+da.message),W=""}return B(H,ea,W,p,b,a,c,f)};return m},zj=function(a,b){var c=yj;try{yj=a,b.call(void 0)}finally{yj=c}},Gj=function(a,b,c,d,e,g,f,l){var m=d?b("X-Earth-Engine-Computation-Profile"):"";m&&d&&d(m);var p=
461
+ 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(Ib){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?
462
+ 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=[];hj(b,c,function(W,da,Ib){Ib=p(Ib);Ib.parsed&&(B[W]=Ib.parsed);(da=(Ib.parsed?"":Ib)||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);},pj=function(a){var b=function(){mj||(mj=function(c,d){t.google.accounts.oauth2.initTokenClient({client_id:c.client_id,
463
+ callback:d,scope:c.scope}).requestAccessToken()});a()};u(t.default_gsi)?b():yi(b)},qj=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(rj,c*.9);d.unref!==void 0&&d.unref();sj=Date.now()+c}uj=b;a&&a()}else b&&b(c.error||"Unknown error.")},cj=function(a){var b=new Sc;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},Dj=[],Fj=
464
+ new bi(function(){var a=Dj.shift();if(a){var b=a.url,c=a.callback,d=a.method,e=a.content;a=a.headers;var g=Hj,f=new Ni;Qi.push(f);c&&f.Wa("complete",c);f.Vc("ready",f.Mk);g&&(f.md=Math.max(0,g));f.send(b,d,e,a)}Dj.length==0||Fj.mf()},350),ij=null,wj=null,xj=null,Cj=null,Bj=Od,uj=null,sj=null,nj=null,oj=[],mj=null,jj=["https://www.googleapis.com/auth/earthengine","https://www.googleapis.com/auth/cloud-platform"],Aj=null,vj=!1,Hj=0,yj=null;x("ee.api.ListAssetsResponse",Dg);
465
+ x("ee.api.EarthEngineAsset",zf);x("ee.api.Operation",Gg);x("ee.api.ListFeaturesResponse",Eg);x("ee.api.FeatureViewLocation",Cf);var Ij=function(){};Ij.prototype.zh=function(){return null};var Jj=function(){};x("ee.Encodable.SourceFrame",Jj);
466
+ var Kj=function(a){if(a===void 0||a===null)a=Ha;return new Ze({gb:a})},Lj=function(a){return new Ze({Oa:a})},Mj=function(a){return new Ze({Fa:new Ye({values:a})})},Nj=function(a){return new Ze({Ga:new wf({values:a})})},Oj=function(a,b){return new Ze({ya:new jg({functionName:a,arguments:b})})},Pj=function(a,b){return new Ze({ya:new jg({Ua:a,arguments:b})})},Qj=function(a,b){return new Ze({Ta:new ig({lc:a,body:b})})},Rj=function(a){if(!a)return"AUTO_JPEG_PNG";a=a.toUpperCase();switch(a){case "JPG":return"JPEG";
467
+ 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}},Sj=function(a){if(!a)return"CSV";a=a.toUpperCase();
468
+ switch(a){case "TF_RECORD":case "TFRECORD":return"TF_RECORD_TABLE";case "JSON":case "GEOJSON":return"GEO_JSON";default:return a}},Tj=function(a){if(!a)return"VERTICAL";a=a.toUpperCase();if(a!=="HORIZONTAL"&&a!=="VERTICAL")throw Error('Orientation must be "horizontal" or "vertical"');return a},Uj=function(a){if(!a)return[];if(typeof a==="string")return a.split(",");if(Array.isArray(a))return a;throw Error("Invalid band list "+a);},Xj=function(a){var b=new Hf,c=!1;"palette"in a&&(c=a.palette,b.Zc=typeof c===
469
+ "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.Zc?b.Zc.length-1:255;d=Vj(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=Vj(a,"min","max");d.length!==0&&(b.Tf=d.map(function(g){return new xf(g)}),c=!0);a=Wj(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?
470
+ b:null},Wj=function(a){return a?a.split(",").map(Number):[]},Vj=function(a,b,c){var d=Wj(a[b]),e=Wj(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})},Yj=function(a){var b=function(f){var l={};l.description=f.description||"";l.type=f.type||"";f.vd!=null&&
470
471
  (l.name=f.vd);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.Zf||"";f.hidden!=null&&(l.hidden=f.hidden);f.preview&&(l.preview=f.preview);f.deprecated&&(l.deprecated=f.cf);f.sourceCodeUri&&(l.sourceCodeUri=f.sourceCodeUri);return l},d={};a=r(a.Ec||[]);for(var e=a.next();!e.done;e=a.next()){e=e.value;var g=e.name.replace(/^algorithms\//,"");d[g]=
471
- c(e)}return d},Yj=/^projects\/((?:\w+(?:[\w\-]+\.[\w\-]+)*?\.\w+:)?[a-z][a-z0-9\-]{4,28}[a-z0-9])\/.+/,Zj=/^projects\/((?:\w+(?:[\w\-]+\.[\w\-]+)*?\.\w+:)?[a-z][a-z0-9\-]{4,28}[a-z0-9])\/assets\/(.*)$/,ak=/^projects\/((?:\w+(?:[\w\-]+\.[\w\-]+)*?\.\w+:)?[a-z][a-z0-9\-]{4,28}[a-z0-9])\/assets\/?$/,bk=function(a){return(a=Yj.exec(a))?a[1]:"earthengine-legacy"},ck=function(a){return Zj.exec(a)?a:/^(users|projects)\/.*/.exec(a)?"projects/earthengine-legacy/assets/"+a:"projects/earthengine-public/assets/"+
472
- a},ek=function(a){return(a.assets||[]).map(dk)},fk=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"}},dk=function(a){var b=gk(fk(a.type),a.name),c=Object.assign({},a.properties||{});a.sizeBytes&&(c["system:asset_size"]=Number(a.sizeBytes));a.startTime&&(c["system:time_start"]=
472
+ c(e)}return d},Zj=/^projects\/((?:\w+(?:[\w\-]+\.[\w\-]+)*?\.\w+:)?[a-z][a-z0-9\-]{4,28}[a-z0-9])\/.+/,ak=/^projects\/((?:\w+(?:[\w\-]+\.[\w\-]+)*?\.\w+:)?[a-z][a-z0-9\-]{4,28}[a-z0-9])\/assets\/(.*)$/,bk=/^projects\/((?:\w+(?:[\w\-]+\.[\w\-]+)*?\.\w+:)?[a-z][a-z0-9\-]{4,28}[a-z0-9])\/assets\/?$/,ck=function(a){return(a=Zj.exec(a))?a[1]:"earthengine-legacy"},dk=function(a){return ak.exec(a)?a:/^(users|projects)\/.*/.exec(a)?"projects/earthengine-legacy/assets/"+a:"projects/earthengine-public/assets/"+
473
+ a},fk=function(a){return(a.assets||[]).map(ek)},gk=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"}},ek=function(a){var b=hk(gk(a.type),a.name),c=Object.assign({},a.properties||{});a.sizeBytes&&(c["system:asset_size"]=Number(a.sizeBytes));a.startTime&&(c["system:time_start"]=
473
474
  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,
474
475
  crs:d.grid.bf,dimensions:void 0,crs_transform:void 0};if(d.grid){if(d.grid.Jb!=null){var g=d.grid.Jb;e.crs_transform=[g.ag||0,g.fg||0,g.wg||0,g.gg||0,g.bg||0,g.xg||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.ed&&(g.min=d.dataType.ed.min||0,g.max=d.dataType.ed.max),e.data_type=g);return e}));a.Id&&(b.mapLocation=a.Id);a.featureCount&&(b.featureCount=a.featureCount);
475
- return b},hk=function(a){var b=new zf,c=function(g){return g===null?Ha: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||d.title!=null||(d.title=
476
- 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},gk=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},kk=function(a){var b={};a.num&&(b.pageSize=a.num);a.starttime&&(b.startTime=
477
- (new Date(a.starttime)).toISOString());a.endtime&&(b.endTime=(new Date(a.endtime)).toISOString());a.bbox&&(b.region=ik(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 jk(b)},ik=function(a){return'{"type":"Polygon","coordinates":[[['+
478
- [[0,1],[2,1],[2,3],[0,3],[0,1]].map(function(b){return a[b[0]]+","+a[b[1]]}).join("],[")+"]]]}"},lk=function(a){var b={};(a.yd||[]).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!=
479
- e.length&&(d.all_users_can_read=!0);return d},mk=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 ef(d)});return new Uf({yd:b.filter(function(d){return d.Wb.length}),
480
- gf:null})},ok=function(a){var b=/^projects\/(.+)\/operations\/.+$/.exec(a);return"projects/"+(b?b[1]:"earthengine-legacy")+"/operations/"+nk(a)},nk=function(a){var b=/^.*operations\/(.*)$/.exec(a);return b?b[1]:a},pk=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";
481
- default:return"UNKNOWN"}},e=Ma(Kg,a.metadata||{});e.description!=null&&(b.description=e.description);e.state!=null&&(b.state=d(e.state));c("creation_timestamp_ms",e.af);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=nk(a.name),b.name=a.name);b.task_type=e.type||"UNKNOWN";b.output_url=e.df;b.source_url=e.cg;e.wd!=null&&(b.batch_eecu_usage_seconds=e.wd);return b},qk=function(a){var b=
482
- {started:"OK"};a.name&&(b.taskId=nk(a.name),b.name=a.name);a.error&&(b.note=a.error.message);return b},rk=function(a){return a.primaryPath?[a.primaryPath].concat(na(a.additionalPaths||[])):null},uk=function(a){var b=function(g){var f=Ma(yg,g);f.uris=rk(g);return f},c=Ma(ug,a);c.name=ck(a.id);c.tilesets=(a.tilesets||[]).map(function(g){var f=Ma(Bf,g);f.sources=(g.sources||[]).map(b);return f});c.bands=(a.bands||[]).map(function(g){var f=Ma(vg,g);f.missingData=sk(g.missingData);return f});c.missingData=
483
- sk(a.missingData);c.Jf=kc((a.tilesets||[]).map(tk));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},tk=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||
484
- ""}));return new wg({mb:a.id||"",ca:e})};a.fileBands.forEach(function(d){d.maskForAllBands?b.push(c(null)):d.maskForBands!=null&&b.push(c(d.maskForBands))});return b},vk=function(a){var b=Ma(Bg,a);b.name=ck(a.id);b.sources=(a.sources||[]).map(function(e){var g=Ma(Xg,e);g.uris=rk(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")&&
485
- (b.endTime=(new Date(Number(d))).toISOString());b.properties=c}return b},sk=function(a){if(a==null)return null;var b=new sg({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},wk=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()+
476
+ return b},ik=function(a){var b=new zf,c=function(g){return g===null?Ha: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||d.title!=null||(d.title=
477
+ 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},hk=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},lk=function(a){var b={};a.num&&(b.pageSize=a.num);a.starttime&&(b.startTime=
478
+ (new Date(a.starttime)).toISOString());a.endtime&&(b.endTime=(new Date(a.endtime)).toISOString());a.bbox&&(b.region=jk(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 kk(b)},jk=function(a){return'{"type":"Polygon","coordinates":[[['+
479
+ [[0,1],[2,1],[2,3],[0,3],[0,1]].map(function(b){return a[b[0]]+","+a[b[1]]}).join("],[")+"]]]}"},mk=function(a){var b={};(a.yd||[]).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!=
480
+ e.length&&(d.all_users_can_read=!0);return d},nk=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 ef(d)});return new Uf({yd:b.filter(function(d){return d.Wb.length}),
481
+ gf:null})},pk=function(a){var b=/^projects\/(.+)\/operations\/.+$/.exec(a);return"projects/"+(b?b[1]:"earthengine-legacy")+"/operations/"+ok(a)},ok=function(a){var b=/^.*operations\/(.*)$/.exec(a);return b?b[1]:a},qk=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";
482
+ default:return"UNKNOWN"}},e=Ma(Kg,a.metadata||{});e.description!=null&&(b.description=e.description);e.state!=null&&(b.state=d(e.state));c("creation_timestamp_ms",e.af);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=ok(a.name),b.name=a.name);b.task_type=e.type||"UNKNOWN";b.output_url=e.df;b.source_url=e.cg;e.wd!=null&&(b.batch_eecu_usage_seconds=e.wd);return b},rk=function(a){var b=
483
+ {started:"OK"};a.name&&(b.taskId=ok(a.name),b.name=a.name);a.error&&(b.note=a.error.message);return b},sk=function(a){return a.primaryPath?[a.primaryPath].concat(na(a.additionalPaths||[])):null},vk=function(a){var b=function(g){var f=Ma(yg,g);f.uris=sk(g);return f},c=Ma(ug,a);c.name=dk(a.id);c.tilesets=(a.tilesets||[]).map(function(g){var f=Ma(Bf,g);f.sources=(g.sources||[]).map(b);return f});c.bands=(a.bands||[]).map(function(g){var f=Ma(vg,g);f.missingData=tk(g.missingData);return f});c.missingData=
484
+ tk(a.missingData);c.Jf=kc((a.tilesets||[]).map(uk));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},uk=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||
485
+ ""}));return new wg({mb:a.id||"",ca:e})};a.fileBands.forEach(function(d){d.maskForAllBands?b.push(c(null)):d.maskForBands!=null&&b.push(c(d.maskForBands))});return b},wk=function(a){var b=Ma(Bg,a);b.name=dk(a.id);b.sources=(a.sources||[]).map(function(e){var g=Ma(Xg,e);g.uris=sk(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")&&
486
+ (b.endTime=(new Date(Number(d))).toISOString());b.properties=c}return b},tk=function(a){if(a==null)return null;var b=new sg({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},xk=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()+
486
487
  '"'),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');
487
- 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 ")},jk=function(a){a=Object.assign({},a);var b=wk(a);b&&(a.filter=a.filter?a.filter+" AND "+b:b);return a};var xk=function(){this.blockSize=-1};var yk=function(){this.blockSize=-1;this.blockSize=64;this.W=Array(4);this.Jk=Array(this.blockSize);this.qe=this.Fc=0;this.reset()};y(yk,xk);yk.prototype.reset=function(){this.W[0]=1732584193;this.W[1]=4023233417;this.W[2]=2562383102;this.W[3]=271733878;this.qe=this.Fc=0};
488
- var zk=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.W[0];c=a.W[1];e=a.W[2];var g=a.W[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>>>
488
+ 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 ")},kk=function(a){a=Object.assign({},a);var b=xk(a);b&&(a.filter=a.filter?a.filter+" AND "+b:b);return a};function yk(){this.blockSize=-1};function zk(){this.blockSize=-1;this.blockSize=64;this.W=Array(4);this.Jk=Array(this.blockSize);this.qe=this.Fc=0;this.reset()}y(zk,yk);zk.prototype.reset=function(){this.W[0]=1732584193;this.W[1]=4023233417;this.W[2]=2562383102;this.W[3]=271733878;this.qe=this.Fc=0};
489
+ var Ak=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.W[0];c=a.W[1];e=a.W[2];var g=a.W[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>>>
489
490
  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|
490
491
  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<<
491
492
  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=
@@ -495,229 +496,229 @@ f>>>21);f=e+(g^b^c)+d[7]+4139469664&4294967295;e=g+(f<<16&4294967295|f>>>16);f=c
495
496
  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&
496
497
  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&
497
498
  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.W[0]=a.W[0]+b&4294967295;a.W[1]=a.W[1]+(e+(f<<21&4294967295|f>>>11))&4294967295;a.W[2]=a.W[2]+e&4294967295;a.W[3]=a.W[3]+g&4294967295};
498
- yk.prototype.update=function(a,b){b===void 0&&(b=a.length);for(var c=b-this.blockSize,d=this.Jk,e=this.Fc,g=0;g<b;){if(e==0)for(;g<=c;)zk(this,a,g),g+=this.blockSize;if(typeof a==="string")for(;g<b;){if(d[e++]=a.charCodeAt(g++),e==this.blockSize){zk(this,d);e=0;break}}else for(;g<b;)if(d[e++]=a[g++],e==this.blockSize){zk(this,d);e=0;break}}this.Fc=e;this.qe+=b};
499
- yk.prototype.digest=function(){var a=Array((this.Fc<56?this.blockSize:this.blockSize*2)-this.Fc);a[0]=128;for(var b=1;b<a.length-8;++b)a[b]=0;b=this.qe*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.W[c]>>>d&255;return a};var Ak=function(a){this.rd="__ee_hash__";this.Td=a!==!1;this.Xa=[];this.wa={};this.Ag=[];this.Pd=new WeakMap;this.kg=new WeakMap;this.Mi=void 0};x("ee.Serializer",Ak);var Bk=new Gi,Ck=new yk,Ek=function(a,b){return Dk(new Ak(b!==void 0?b:!0),a)};x("ee.Serializer.encode",Ek);var Fk=function(a){return Bk.va(Ek(a))};x("ee.Serializer.toJSON",Fk);var Hk=function(a){return Gk(Ek(a,!1))};x("ee.Serializer.toReadableJSON",Hk);
500
- var Gk=function(a){return"JSON"in t?t.JSON.stringify(a,null," "):Bk.va(a)},Dk=function(a,b){b=a.Gd(b);a.Td&&(b=u(b)&&b.type=="ValueRef"&&a.Xa.length==1?a.Xa[0][1]:{type:"CompoundValue",scope:a.Xa,value:b},a.Xa=[],Yb(a.Ag,w(function(c){delete c[this.rd]},a)),a.Ag=[],a.wa={});return b};
501
- Ak.prototype.Gd=function(a){if(a===void 0)throw Error("Can't encode an undefined value.");var b=u(a)?a[this.rd]:null;if(this.Td&&b!=null&&this.wa[b])return{type:"ValueRef",value:this.wa[b]};if(a===null||typeof a==="boolean"||typeof a==="number"||typeof a==="string")return a;if(ya(a))return{type:"Invocation",functionName:"Date",arguments:{value:Math.floor(a.getTime())}};if(a instanceof Hj){var c=a.encode(w(this.Gd,this));if(!(Array.isArray(c)||u(c)&&c.type!="ArgumentRef"))return c}else if(Array.isArray(a))c=
502
- $b(a,function(e){return this.Gd(e)},this);else if(u(a)&&typeof a!=="function")c=Ya(a,function(e){if(typeof e!=="function")return this.Gd(e)},this),fb(c,this.rd),c={type:"Dictionary",value:c};else throw Error("Can't encode object: "+a);if(this.Td){b=Ik(c);if(this.wa[b])var d=this.wa[b];else d=String(this.Xa.length),this.Xa.push([d,c]),this.wa[b]=d;a[this.rd]=b;this.Ag.push(a);return{type:"ValueRef",value:d}}return c};
503
- var Ik=function(a){Ck.reset();Ck.update(Bk.va(a));return Ck.digest().toString()},Kk=function(a){return Na(Jk(a),Ja,Ka,La)};x("ee.Serializer.encodeCloudApi",Kk);
504
- var Jk=function(a,b){return Lk(new Ak(!0),a,b)},Lk=function(a,b,c){a.Mi=c;return Mk(a,b)},Nk=function(a,b){var c={};b=b.values;for(var d in b){var e=a.kg.get(b[d]);c[d]=Object.assign({},e)}return c},Ok=function(a){a=Mk(new Ak(!1),a);var b=a.values,c=function(d){if(!u(d))return d;var e=Array.isArray(d)?[]:{},g=d instanceof Object.getPrototypeOf(Ze);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"&&
505
- l.body!=null?{argumentNames:l.lc,body:c(b[l.body])}:f==="functionInvocationValue"&&l.Ua!=null?{arguments:Ya(l.arguments,c),functionReference:c(b[l.Ua])}:f==="constantValue"?l===Ha?null:l:c(l)):e[f]=c(l)}return e};return a.result&&c(b[a.result])};x("ee.Serializer.encodeCloudApiPretty",Ok);var Pk=function(a){return Bk.va(Kk(a))};x("ee.Serializer.toCloudApiJSON",Pk);var Qk=function(a){return Gk(Ok(a))};x("ee.Serializer.toReadableCloudApiJSON",Qk);
506
- var Mk=function(a,b){try{var c=Rk(a,b),d=new Sk(c,a.Xa,a.Td,a.kg),e=Tk(d,d.ri);return new pf({result:e,values:d.ci})}finally{a.Pd=new WeakMap,a.wa={},a.Xa=[]}},Rk=function(a,b){var c=function(f){var l=Ik(f);u(b)&&a.Pd.set(b,l);if(a.wa[l])return a.wa[l];var m=String(a.Xa.length);a.Xa.push([m,f]);return a.wa[l]=m};if(u(b)&&a.wa[a.Pd.get(b)])return a.wa[a.Pd.get(b)];if(b===null||typeof b==="boolean"||typeof b==="string"||typeof b==="number")return c(Jj(b));if(ya(b))return c(Nj("Date",{value:Jj(Math.floor(b.getTime()))}));
507
- if(b instanceof Hj){var d=b.na(a),e=b.zh();e!==null&&a.kg.set(d,e);return c(d)}if(Array.isArray(b))return c(Lj(b.map(function(f){return Kj(Rk(a,f))})));if(u(b)&&typeof b!=="function"){var g={};Object.keys(b).sort().forEach(function(f){g[f]=Kj(Rk(a,b[f]))});return c(Mj(g))}throw Error("Can't encode object: "+b);},Sk=function(a,b,c,d){var e=this;this.ri=a;this.values={};b.forEach(function(g){return e.values[g[0]]=g[1]});this.ki=c?Uk(this):null;this.ci={};this.Wf={};this.hl=0;this.jd=d},Tk=function(a,
508
- b){if(b in a.Wf)return a.Wf[b];var c=String(a.hl++);a.Wf[b]=c;a.ci[c]=Vk(a,a.values[b],0);return c},Vk=function(a,b,c){var d=function(z){return z.gb!==null},e=function(z){return z===Ha?null:z},g=function(z,B){a.jd&&a.jd.has(z)&&!a.jd.has(B)&&a.jd.set(B,a.jd.get(z));return B};if(d(b)||b.Va!=null||b.pb!=null||b.Kb!=null)return b;if(b.Oa!=null){d=a.values[b.Oa];if(a.ki===null||c<50&&a.ki[b.Oa]===1)return d=Vk(a,d,c),g(b,d);if(Wk(d))return g(b,d);d=Kj(Tk(a,b.Oa));return g(b,d)}if(b.Fa!=null){var f=b.Fa.values.map(function(z){return Vk(a,
509
- z,c+3)});d=f.every(d)?Jj(f.map(function(z){return e(z.gb)})):Lj(f);return g(b,d)}if(b.Ga!=null){f={};for(var l={},m=r(Object.entries(b.Ga.values||{})),p=m.next();!p.done;p=m.next()){var v=r(p.value);p=v.next().value;v=v.next().value;f[p]=Vk(a,v,c+3);l!==null&&d(f[p])?l[p]=e(f[p].gb):l=null}return l!==null?g(b,Jj(l)):g(f,Mj(f))}if(b.Ta!=null)return d=b.Ta,d=Pj(d.lc||[],Tk(a,d.body||"")),g(b,d);if(b.ya!=null){d=b.ya;f={};l=r(Object.keys(d.arguments||{}));for(m=l.next();!m.done;m=l.next())m=m.value,
510
- f[m]=Vk(a,d.arguments[m],c+3);d=d.functionName?Nj(d.functionName,f):Oj(Tk(a,d.Ua||""),f);return g(b,d)}throw Error("Can't optimize value: "+b);},Wk=function(a){var b=a.gb;return b!==null?b===Ha||typeof b==="number"||typeof b==="boolean":a.Kb!=null},Uk=function(a){var b={},c=function(e){b[e]?b[e]++:(b[e]=1,d(a.values[e]))},d=function(e){e.Fa!=null?e.Fa.values.forEach(d):e.Ga!=null?Object.values(e.Ga.values).forEach(d):e.Ta!=null?c(e.Ta.body):e.ya!=null?(e=e.ya,e.Ua!=null&&c(e.Ua),Object.values(e.arguments).forEach(d)):
511
- e.Oa!=null&&c(e.Oa)};c(a.ri);return b};var bl=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 Qf({l:Jk(a.element),description:L(a.description),oa:null,sa:null,Jd:null,xd:null,selectors:b,Ub:M(a.maxErrorMeters),requestId:L(a.id),maxVertices:M(a.maxVertices),O:M(a.maxWorkers),priority:M(a.priority)});var c=Xk(a);switch(c){case "GOOGLE_CLOUD_STORAGE":case "DRIVE":var d=new Tf({ja:null,ma:null,F:Rj(a.fileFormat)});c==="GOOGLE_CLOUD_STORAGE"?
512
- d.ja=Yk(a):d.ma=Zk(a);b.oa=d;break;case "ASSET":b.sa=new Rf({Ha:$k(a)});break;case "FEATURE_VIEW":c=new ag({name:ck(a.mapName)});d=a==null?null:new fg({Lf:M(a.maxFeaturesPerTile),qg:a.thinningStrategy});var e=a==null?null:new eg({Bg:al(a.zOrderRanking),pg:al(a.thinningRanking)});d=new bg({og:d,Vf:e});c=new Sf({jf:c,rc:d});b.Jd=c;break;case "BIGQUERY":b.xd=new df({Oe:new cf({table:L(a.table),overwrite:!!a.overwrite,append:!!a.append})});break;default:throw Error('Export destination "'+c+'" unknown');
499
+ zk.prototype.update=function(a,b){b===void 0&&(b=a.length);for(var c=b-this.blockSize,d=this.Jk,e=this.Fc,g=0;g<b;){if(e==0)for(;g<=c;)Ak(this,a,g),g+=this.blockSize;if(typeof a==="string")for(;g<b;){if(d[e++]=a.charCodeAt(g++),e==this.blockSize){Ak(this,d);e=0;break}}else for(;g<b;)if(d[e++]=a[g++],e==this.blockSize){Ak(this,d);e=0;break}}this.Fc=e;this.qe+=b};
500
+ zk.prototype.digest=function(){var a=Array((this.Fc<56?this.blockSize:this.blockSize*2)-this.Fc);a[0]=128;for(var b=1;b<a.length-8;++b)a[b]=0;b=this.qe*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.W[c]>>>d&255;return a};var Bk=function(a){this.rd="__ee_hash__";this.Td=a!==!1;this.Xa=[];this.wa={};this.Ag=[];this.Pd=new WeakMap;this.kg=new WeakMap;this.Mi=void 0};x("ee.Serializer",Bk);var Ck=new Hi,Dk=new zk,Fk=function(a,b){return Ek(new Bk(b!==void 0?b:!0),a)};x("ee.Serializer.encode",Fk);var Gk=function(a){return Ck.va(Fk(a))};x("ee.Serializer.toJSON",Gk);var Ik=function(a){return Hk(Fk(a,!1))};x("ee.Serializer.toReadableJSON",Ik);
501
+ var Hk=function(a){return"JSON"in t?t.JSON.stringify(a,null," "):Ck.va(a)},Ek=function(a,b){b=a.Gd(b);a.Td&&(b=u(b)&&b.type=="ValueRef"&&a.Xa.length==1?a.Xa[0][1]:{type:"CompoundValue",scope:a.Xa,value:b},a.Xa=[],Yb(a.Ag,w(function(c){delete c[this.rd]},a)),a.Ag=[],a.wa={});return b};
502
+ Bk.prototype.Gd=function(a){if(a===void 0)throw Error("Can't encode an undefined value.");var b=u(a)?a[this.rd]:null;if(this.Td&&b!=null&&this.wa[b])return{type:"ValueRef",value:this.wa[b]};if(a===null||typeof a==="boolean"||typeof a==="number"||typeof a==="string")return a;if(ya(a))return{type:"Invocation",functionName:"Date",arguments:{value:Math.floor(a.getTime())}};if(a instanceof Ij){var c=a.encode(w(this.Gd,this));if(!(Array.isArray(c)||u(c)&&c.type!="ArgumentRef"))return c}else if(Array.isArray(a))c=
503
+ $b(a,function(e){return this.Gd(e)},this);else if(u(a)&&typeof a!=="function")c=Ya(a,function(e){if(typeof e!=="function")return this.Gd(e)},this),fb(c,this.rd),c={type:"Dictionary",value:c};else throw Error("Can't encode object: "+a);if(this.Td){b=Jk(c);if(this.wa[b])var d=this.wa[b];else d=String(this.Xa.length),this.Xa.push([d,c]),this.wa[b]=d;a[this.rd]=b;this.Ag.push(a);return{type:"ValueRef",value:d}}return c};
504
+ var Jk=function(a){Dk.reset();Dk.update(Ck.va(a));return Dk.digest().toString()},Lk=function(a){return Na(Kk(a),Ja,Ka,La)};x("ee.Serializer.encodeCloudApi",Lk);
505
+ var Kk=function(a,b){return Mk(new Bk(!0),a,b)},Mk=function(a,b,c){a.Mi=c;return Nk(a,b)},Ok=function(a,b){var c={};b=b.values;for(var d in b){var e=a.kg.get(b[d]);c[d]=Object.assign({},e)}return c},Pk=function(a){a=Nk(new Bk(!1),a);var b=a.values,c=function(d){if(!u(d))return d;var e=Array.isArray(d)?[]:{},g=d instanceof Object.getPrototypeOf(Ze);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"&&
506
+ l.body!=null?{argumentNames:l.lc,body:c(b[l.body])}:f==="functionInvocationValue"&&l.Ua!=null?{arguments:Ya(l.arguments,c),functionReference:c(b[l.Ua])}:f==="constantValue"?l===Ha?null:l:c(l)):e[f]=c(l)}return e};return a.result&&c(b[a.result])};x("ee.Serializer.encodeCloudApiPretty",Pk);var Qk=function(a){return Ck.va(Lk(a))};x("ee.Serializer.toCloudApiJSON",Qk);var Rk=function(a){return Hk(Pk(a))};x("ee.Serializer.toReadableCloudApiJSON",Rk);
507
+ var Nk=function(a,b){try{var c=Sk(a,b),d=new Tk(c,a.Xa,a.Td,a.kg),e=Uk(d,d.ri);return new pf({result:e,values:d.ci})}finally{a.Pd=new WeakMap,a.wa={},a.Xa=[]}},Sk=function(a,b){var c=function(f){var l=Jk(f);u(b)&&a.Pd.set(b,l);if(a.wa[l])return a.wa[l];var m=String(a.Xa.length);a.Xa.push([m,f]);return a.wa[l]=m};if(u(b)&&a.wa[a.Pd.get(b)])return a.wa[a.Pd.get(b)];if(b===null||typeof b==="boolean"||typeof b==="string"||typeof b==="number")return c(Kj(b));if(ya(b))return c(Oj("Date",{value:Kj(Math.floor(b.getTime()))}));
508
+ if(b instanceof Ij){var d=b.na(a),e=b.zh();e!==null&&a.kg.set(d,e);return c(d)}if(Array.isArray(b))return c(Mj(b.map(function(f){return Lj(Sk(a,f))})));if(u(b)&&typeof b!=="function"){var g={};Object.keys(b).sort().forEach(function(f){g[f]=Lj(Sk(a,b[f]))});return c(Nj(g))}throw Error("Can't encode object: "+b);},Tk=function(a,b,c,d){var e=this;this.ri=a;this.values={};b.forEach(function(g){return e.values[g[0]]=g[1]});this.ki=c?Vk(this):null;this.ci={};this.Wf={};this.hl=0;this.jd=d},Uk=function(a,
509
+ b){if(b in a.Wf)return a.Wf[b];var c=String(a.hl++);a.Wf[b]=c;a.ci[c]=Wk(a,a.values[b],0);return c},Wk=function(a,b,c){var d=function(z){return z.gb!==null},e=function(z){return z===Ha?null:z},g=function(z,B){a.jd&&a.jd.has(z)&&!a.jd.has(B)&&a.jd.set(B,a.jd.get(z));return B};if(d(b)||b.Va!=null||b.pb!=null||b.Kb!=null)return b;if(b.Oa!=null){d=a.values[b.Oa];if(a.ki===null||c<50&&a.ki[b.Oa]===1)return d=Wk(a,d,c),g(b,d);if(Xk(d))return g(b,d);d=Lj(Uk(a,b.Oa));return g(b,d)}if(b.Fa!=null){var f=b.Fa.values.map(function(z){return Wk(a,
510
+ z,c+3)});d=f.every(d)?Kj(f.map(function(z){return e(z.gb)})):Mj(f);return g(b,d)}if(b.Ga!=null){f={};for(var l={},m=r(Object.entries(b.Ga.values||{})),p=m.next();!p.done;p=m.next()){var v=r(p.value);p=v.next().value;v=v.next().value;f[p]=Wk(a,v,c+3);l!==null&&d(f[p])?l[p]=e(f[p].gb):l=null}return l!==null?g(b,Kj(l)):g(f,Nj(f))}if(b.Ta!=null)return d=b.Ta,d=Qj(d.lc||[],Uk(a,d.body||"")),g(b,d);if(b.ya!=null){d=b.ya;f={};l=r(Object.keys(d.arguments||{}));for(m=l.next();!m.done;m=l.next())m=m.value,
511
+ f[m]=Wk(a,d.arguments[m],c+3);d=d.functionName?Oj(d.functionName,f):Pj(Uk(a,d.Ua||""),f);return g(b,d)}throw Error("Can't optimize value: "+b);},Xk=function(a){var b=a.gb;return b!==null?b===Ha||typeof b==="number"||typeof b==="boolean":a.Kb!=null},Vk=function(a){var b={},c=function(e){b[e]?b[e]++:(b[e]=1,d(a.values[e]))},d=function(e){e.Fa!=null?e.Fa.values.forEach(d):e.Ga!=null?Object.values(e.Ga.values).forEach(d):e.Ta!=null?c(e.Ta.body):e.ya!=null?(e=e.ya,e.Ua!=null&&c(e.Ua),Object.values(e.arguments).forEach(d)):
512
+ e.Oa!=null&&c(e.Oa)};c(a.ri);return b};var cl=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 Qf({l:Kk(a.element),description:L(a.description),oa:null,sa:null,Jd:null,xd:null,selectors:b,Ub:M(a.maxErrorMeters),requestId:L(a.id),maxVertices:M(a.maxVertices),O:M(a.maxWorkers),priority:M(a.priority)});var c=Yk(a);switch(c){case "GOOGLE_CLOUD_STORAGE":case "DRIVE":var d=new Tf({ja:null,ma:null,F:Sj(a.fileFormat)});c==="GOOGLE_CLOUD_STORAGE"?
513
+ d.ja=Zk(a):d.ma=$k(a);b.oa=d;break;case "ASSET":b.sa=new Rf({Ha:al(a)});break;case "FEATURE_VIEW":c=new ag({name:dk(a.mapName)});d=a==null?null:new fg({Lf:M(a.maxFeaturesPerTile),qg:a.thinningStrategy});var e=a==null?null:new eg({Bg:bl(a.zOrderRanking),pg:bl(a.thinningRanking)});d=new bg({og:d,Vf:e});c=new Sf({jf:c,rc:d});b.Jd=c;break;case "BIGQUERY":b.xd=new df({Oe:new cf({table:L(a.table),overwrite:!!a.overwrite,append:!!a.append})});break;default:throw Error('Export destination "'+c+'" unknown');
513
514
  }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}
514
- var Xk=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},dl=function(a){var b=new tg({We:!!a.tfrecordCompressed,Vb:L(a.tfrecordMaxFileSize),dg:!!a.tfrecordSequenceData,Ue:!!a.tfrecordCollapseBands,Mf:M(a.tfrecordMaskedThreshold),defaultValue:M(a.tfrecordDefaultValue),bc:cl(a.tfrecordPatchDimensions),If:cl(a.tfrecordKernelSize),le:null});
515
- a=a.tfrecordTensorDepths;if(a!=null)if(u(a)){var c={};Wa(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.le=c}else throw Error('"tensorDepths" option needs to have the form Object<string, number>.');return b},el=function(a,b){var c=new Mf({ja:null,ma:null,Kd:null,me:null,F:Qj(a.fileFormat)});if(c.F==="GEO_TIFF"){if(a.fileDimensions&&a.tiffFileDimensions)throw Error('Export cannot set both "fileDimensions" and "tiffFileDimensions".');
516
- var d=a.tiffShardSize||a.shardSize;var e=!!a.tiffCloudOptimized;var g=!(!a.skipEmptyTiles&&!a.tiffSkipEmptyFiles),f=cl(a.fileDimensions||a.tiffFileDimensions);d=M(d);var l=a.tiffNoData;l=l!=null?new lg({nf:Number(l)}):null;e=new kg({Te:e,jg:g,bc:f,tileSize:d,Of:l});c.Kd=e}else c.F==="TF_RECORD_IMAGE"&&(c.me=dl(a));b==="GOOGLE_CLOUD_STORAGE"?c.ja=Yk(a):c.ma=Zk(a);return c},fl=function(a,b){var c=new Wf({ja:null,ma:null,F:"MP4"});b==="GOOGLE_CLOUD_STORAGE"?c.ja=Yk(a):c.ma=Zk(a);return c},gl=function(a){var b,
517
- 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=cl((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 Zg({start:m!=null?m:0,end:a});return new Pf({ef:g,lg:b,scale:c,ig:f,Hf:d,dimensions:l,stride:e,Cg:a})},cl=function(a){if(a==null)return null;var b=new mg({height:0,width:0});
515
+ var Yk=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},el=function(a){var b=new tg({We:!!a.tfrecordCompressed,Vb:L(a.tfrecordMaxFileSize),dg:!!a.tfrecordSequenceData,Ue:!!a.tfrecordCollapseBands,Mf:M(a.tfrecordMaskedThreshold),defaultValue:M(a.tfrecordDefaultValue),bc:dl(a.tfrecordPatchDimensions),If:dl(a.tfrecordKernelSize),le:null});
516
+ a=a.tfrecordTensorDepths;if(a!=null)if(u(a)){var c={};Wa(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.le=c}else throw Error('"tensorDepths" option needs to have the form Object<string, number>.');return b},fl=function(a,b){var c=new Mf({ja:null,ma:null,Kd:null,me:null,F:Rj(a.fileFormat)});if(c.F==="GEO_TIFF"){if(a.fileDimensions&&a.tiffFileDimensions)throw Error('Export cannot set both "fileDimensions" and "tiffFileDimensions".');
517
+ var d=a.tiffShardSize||a.shardSize;var e=!!a.tiffCloudOptimized;var g=!(!a.skipEmptyTiles&&!a.tiffSkipEmptyFiles),f=dl(a.fileDimensions||a.tiffFileDimensions);d=M(d);var l=a.tiffNoData;l=l!=null?new lg({nf:Number(l)}):null;e=new kg({Te:e,jg:g,bc:f,tileSize:d,Of:l});c.Kd=e}else c.F==="TF_RECORD_IMAGE"&&(c.me=el(a));b==="GOOGLE_CLOUD_STORAGE"?c.ja=Zk(a):c.ma=$k(a);return c},gl=function(a,b){var c=new Wf({ja:null,ma:null,F:"MP4"});b==="GOOGLE_CLOUD_STORAGE"?c.ja=Zk(a):c.ma=$k(a);return c},hl=function(a){var b,
518
+ 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=dl((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 Zg({start:m!=null?m:0,end:a});return new Pf({ef:g,lg:b,scale:c,ig:f,Hf:d,dimensions:l,stride:e,Cg:a})},dl=function(a){if(a==null)return null;var b=new mg({height:0,width:0});
518
519
  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},
519
- Yk=function(a){var b=null;a.writePublicTiles!=null&&(b=a.writePublicTiles?"PUBLIC":"DEFAULT_OBJECT_ACL");return new mf({Re:L(a.outputBucket),xa:L(a.outputPrefix),Se:a.bucketCorsUris||null,permissions:b})},Zk=function(a){return new yf({qf:L(a.driveFolder),xa:L(a.driveFileNamePrefix)})},$k=function(a){return new kf({name:ck(a.assetId)})},al=function(a){if(!a)return null;var b=a;typeof a==="string"&&(a=a.split(","));if(Array.isArray(a))return new Ug({Uf:(a||[]).map(hl)});throw Error("Unable to build ranking rule from rules: "+
520
- JSON.stringify(b)+". Rules should either be a comma-separated string or list of strings.");},hl=function(a){var b=new Tg({direction:null,ae:null,ce:null,be: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=
521
- "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.be=new Qg({});break;case ".minZoomLevel":b.ce=new Sg({});break;default:b.ae=new Pg({attributeName:L(a)})}return b};var il=[],jl=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;il.push(a);var c=new a;a.Bf=c;E(a.hasOwnProperty(b),"Could not instantiate singleton.");return c};var ll=function(a,b,c,d,e,g){d=jj(!g,!1,d||[]);mj=a;nj=d;a===null?sj():oj(function(){qj(b,c,e||Ea(kl,b,c))})};x("ee.data.authenticateViaOauth",ll);var ml=function(a,b,c,d,e){ll(a,b,c,d,e)};x("ee.data.authenticate",ml);var kl=function(a,b){t.google.accounts.oauth2.initTokenClient({client_id:mj,callback:Ea(pj,a,b),scope:nj.join(" ")}).requestAccessToken()};x("ee.data.authenticateViaPopup",kl);
522
- var nl=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=jj(!e,!e,d||[]);mj=a.client_email;nj=d;var g=new google.auth.JWT(a.client_email,null,a.private_key,d,null);kj=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})})};qj(b,c)};x("ee.data.authenticateViaPrivateKey",nl);
523
- x("ee.data.setExpressionAugmenter",function(a){ol=a||Od});var ol=Od;x("ee.data.setAuthToken",function(a,b,c,d,e,g,f,l){e=jj(!l,!1,e||[]);mj=a;nj=e;pj(void 0,void 0,{token_type:b,access_token:c,state:e.join(" "),expires_in:d});f===!1?g&&g():oj(function(){g&&g()})});x("ee.data.refreshAuthToken",qj);x("ee.data.setAuthTokenRefresher",function(a){kj=a});x("ee.data.getAuthToken",fj);x("ee.data.clearAuthToken",sj);x("ee.data.getAuthClientId",function(){return mj});x("ee.data.getAuthScopes",function(){return nj});
524
- x("ee.data.setDeadline",function(a){Gj=a});x("ee.data.setParamAugmenter",function(a){Aj=a||Od});
525
- var pl=function(a){a=new K(a);return a.handle(a.Ec().list($i(),{prettyPrint:!1}).then(Xj))},sl=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 Gf({name:null,l:ol(Jk(a.image)),F:Qj(a.format),ca:Tj(a.bands),ic:Wj(a)});var c={fields:"name"},d=ql();d&&(c.workloadTag=d);b=new K(b);return b.handle(b.maps().create($i(),a,c).then(function(e){return rl(e.name,"")}))};
526
- x("ee.data.getMapId",sl);var tl=function(a,b,c,d){if(!a.formatTileUrl){var e=rl(a.mapid,a.token,a.urlFormat);a.urlFormat=e.urlFormat;a.formatTileUrl=e.formatTileUrl}return a.formatTileUrl(b,c,d)};x("ee.data.getTileUrl",tl);
527
- var rl=function(a,b,c){var d=c===void 0?"":c;d||(Yi(),c=vj,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}},ul=function(a,b){var c=a.visParams?ol(Jk(a.visParams)):null;a=new $f({name:null,Lb:a.assetId,mapName:a.mapName,zg:c});b=new K(b);return b.handle((new gh(b.M)).create($i(),a,{fields:["name"]}).then(function(d){var e=
528
- d.name.split("/").pop();return{token:e,formatTileUrl:function(g,f,l){return vj+"/v1/"+d.name+"/tiles/"+l+"/"+g+"/"+f},rawTilesKey:e.substring(0,e.lastIndexOf("-"))}}))};x("ee.data.getFeatureViewTilesKey",ul);
529
- var vl=function(a,b,c){c=new K(c);var d=ck(a);a=c.handle;var e=c.assets();b=b===void 0?{}:b;var g=g===void 0?{}:g;e.j.C(d,RegExp("^projects/[^/]+/assets/.*$"));g=G(e.j,{body:null,B:"GET",D:"earthengine.projects.assets.listFeatures",path:"/"+e.m+"/"+d+":listFeatures",u:F(b,g),G:Eg});return a.call(c,g)};x("ee.data.listFeatures",vl);
530
- var wl=function(a,b){var c=new Ak(!0);a=Lk(c,a);var d={};c=Nk(c,a);Object.keys(c).length&&(d={__source_code_nodes__:c});c={l:ol(a,d)};if(a=ql())c.workloadTag=a;b=new K(b);return b.handle(qh(b.value(),$i(),new of(c)).then(function(e){return e.result}))};x("ee.data.computeValue",wl);
531
- var xl=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 Yg({name:null,l:ol(Jk(a.image)),F:Qj(a.format),xa:a.name,ca:Tj(a.bands),
532
- ic:Wj(a),grid:null});var c={fields:"name"},d=ql();d&&(c.workloadTag=d);b=new K(b);return b.handle((new oh(b.M)).create($i(),a,c).then(function(e){return{thumbid:e.name,token:""}}))};x("ee.data.getThumbId",xl);
533
- var yl=function(a,b){var c=new Xf({framesPerSecond:a.framesPerSecond||null,maxFrames:a.maxFrames||null,maxPixelsPerFrame:a.maxPixelsPerFrame||null});a=new bh({name:null,l:ol(Jk(a.imageCollection)),F:Qj(a.format),Pa:c,grid:null});c={fields:"name"};var d=ql();d&&(c.workloadTag=d);b=new K(b);return b.handle((new th(b.M)).create($i(),a,c).then(function(e){return{thumbid:e.name,token:""}}))};x("ee.data.getVideoThumbId",yl);
534
- var zl=function(a,b){a=new hg({name:null,l:ol(Jk(a.imageCollection)),F:Qj(a.format),orientation:Sj(a.orientation),grid:null});var c={fields:"name"},d=ql();d&&(c.workloadTag=d);b=new K(b);return b.handle((new hh(b.M)).create($i(),a,c).then(function(e){return{thumbid:e.name,token:""}}))};x("ee.data.getFilmstripThumbId",zl);var Al=function(a){return vj+"/v1/"+a.thumbid+":getPixels"};x("ee.data.makeThumbUrl",Al);
535
- var Cl=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.");
536
- if(typeof a.bands==="string")try{a.bands=JSON.parse(a.bands)}catch(e){a.bands=Tj(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=
537
- JSON.parse(a.crs_transform)}catch(e){}var c=Bl(a.image,a);a=new Yg({name:null,l:ol(Jk(c)),F:Qj(a.format),xa:a.name,ca:a.bands&&Tj(a.bands.map(function(e){return e.id})),grid:null});c={fields:"name"};var d=ql();d&&(c.workloadTag=d);b=new K(b);return b.handle((new oh(b.M)).create($i(),a,c).then(function(e){return{docid:e.name,token:""}}))};x("ee.data.getDownloadId",Cl);var Dl=function(a){Yi();return vj+"/v1/"+a.docid+":getPixels"};x("ee.data.makeDownloadUrl",Dl);
538
- var El=function(a,b){b=new K(b);var c=Rj(a.format),d=ol(Jk(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 Wg({name:null,l:d,F:c,selectors:e,filename:a.filename||null});c={fields:"name"};if(d=ql())c.workloadTag=d;return b.handle((new nh(b.M)).create($i(),a,c).then(function(g){return{docid:g.name||
539
- "",token:""}}))};x("ee.data.getTableDownloadId",El);var Fl=function(a){return vj+"/v1/"+a.docid+":getFeatures"};x("ee.data.makeTableDownloadUrl",Fl);var Gl=function(a,b){var c=function(d){return Math.floor(Math.random()*Math.pow(2,d*4)).toString(16).padStart(d,"0")};a=jc(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",Gl);
540
- var Hl=function(a){return a.name&&a.done&&a.error},Jl=function(a,b){var c=Il(a).map(ok);if(c.length===1)return a=(new K(b)).qd(Hl),a.handle(a.Na().get(c[0]).then(function(e){return[pk(e)]}));a=(new ej(b)).qd(Hl);var d=a.Na();return a.send(c.map(function(e){return[e,d.get(e)]}),function(e){return c.map(function(g){return pk(e[g])})})};x("ee.data.getTaskStatus",Jl);
541
- var Il=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.");},Ll=function(a){return Kl(void 0,a)};x("ee.data.getTaskList",Ll);var Kl=function(a,b){return b?(Ml(a,function(c,d){return b(c?{tasks:c.map(pk)}:null,d)}),null):{tasks:Ml(a).map(pk)}};x("ee.data.getTaskListWithLimit",Kl);
542
- var Ml=function(a,b){var c=[],d={pageSize:500},e=function(l){hc(c,l.Na||[]);!l.nextPageToken||a&&c.length>=a?b&&b(a?c.slice(0,a):c):(d.pageToken=l.nextPageToken,g.handle(f.list($i(),d).then(e)));return null},g=new K(b?function(l,m){return m&&b(l,m)}:void 0),f=g.Na();g.handle(f.list($i(),d).then(e));return b?null:a?c.slice(0,a):c};x("ee.data.listOperations",Ml);
543
- var Nl=function(a,b){a=Il(a).map(ok);var c=new gf;if(a.length===1)b=new K(b),b.handle(b.Na().cancel(a[0],c));else{b=new ej(b);var d=b.Na();b.send(a.map(function(e){return[e,d.cancel(e,c)]}))}};x("ee.data.cancelOperation",Nl);var Ol=function(a,b){var c=Il(a).map(ok);if(!Array.isArray(a))return a=(new K(b)).qd(Hl),a.handle(a.Na().get(c[0]));a=(new ej(b)).qd(Hl);var d=a.Na();return a.send(c.map(function(e){return[e,d.get(e)]}))};x("ee.data.getOperation",Ol);
544
- var Ql=function(a,b){return Pl(a,"CANCEL",b)};x("ee.data.cancelTask",Ql);var Pl=function(a,b,c){if(!bb(Rl,b))throw Error("Invalid action: "+b);a=Il(a);a=a.map(ok);Nl(a,c);return null};x("ee.data.updateTask",Pl);
545
- var Xl=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=ql();e&&(b.workloadTag=e)}var g=new K(c);c=function(f){return g.handle(f.then(qk))};switch(d){case "EXPORT_IMAGE":return b=Sl(b,a),c(g.image().Ka($i(),b));case "EXPORT_FEATURES":return b=bl(b),b.l=ol(b.l,a),c(g.table().Ka($i(),b));case "EXPORT_VIDEO":return b=Tl(b,a),c(g.video().Ka($i(),b));case "EXPORT_TILES":return b=Ul(b,a),c(g.map().Ka($i(),
546
- b));case "EXPORT_VIDEO_MAP":return b=Vl(b),c((new sh(g.M)).Ka($i(),b));case "EXPORT_CLASSIFIER":return b=Wl(b,a),c((new fh(g.M)).Ka($i(),b));default:throw Error("Unable to start processing for task of type "+d);}};x("ee.data.startProcessing",Xl);
547
- var Sl=function(a,b){var c=Yl(a);if(c.element==null)throw Error('"element" not found in params '+c);var d=new Kf({l:Jk(c.element),description:L(c.description),oa:null,sa:null,grid:null,Nf:L(c.maxPixels),requestId:L(c.id),O:M(c.maxWorkers),priority:M(c.priority)}),e=Xk(c);switch(e){case "GOOGLE_CLOUD_STORAGE":case "DRIVE":d.oa=el(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"],
548
- delete e[".default"]);c=new Lf({Ha:$k(c),pyramidingPolicy:g,Sf:eb(e)?null:e,tileSize:M(c.shardSize)});d.sa=c;break;default:throw Error('Export destination "'+e+'" unknown');}d.l=ol(d.l,b);a.workloadTag&&(d.workloadTag=a.workloadTag);return d},Tl=function(a,b){var c=Zl(a);if(c.element==null)throw Error('"element" not found in params '+c);var d=new Yf({l:Jk(c.element),description:L(c.description),Pa:new Xf({framesPerSecond:M(c.framesPerSecond),maxFrames:M(c.maxFrames),maxPixelsPerFrame:L(c.maxPixels)}),
549
- oa:null,requestId:L(c.id),O:M(c.maxWorkers),priority:M(c.priority)});d.oa=fl(c,Xk(c));d.l=ol(d.l,b);a.workloadTag&&(d.workloadTag=a.workloadTag);return d},Ul=function(a,b){var c=a.scale;delete a.scale;var d=Yl(a);d.scale=c;if(d.element==null)throw Error('"element" not found in params '+d);c=new Of({l:Jk(d.element),description:L(d.description),dc:gl(d),cc:el(d,"GOOGLE_CLOUD_STORAGE"),requestId:L(d.id),O:M(d.maxWorkers),priority:M(d.priority)});c.l=ol(c.l,b);a.workloadTag&&(c.workloadTag=a.workloadTag);
550
- return c},Vl=function(a){var b=a.scale;delete a.scale;var c=Zl(a);c.scale=b;if(c.element==null)throw Error('"element" not found in params '+c);b=new Vf({l:Jk(c.element),description:L(c.description),Pa:new Xf({framesPerSecond:M(c.framesPerSecond),maxFrames:M(c.maxFrames),maxPixelsPerFrame:null}),dc:gl(c),cc:fl(c,"GOOGLE_CLOUD_STORAGE"),requestId:L(c.id),version:L(c.version),O:M(c.maxWorkers),priority:M(c.priority)});b.l=ol(b.l);a.workloadTag&&(b.workloadTag=a.workloadTag);return b},Wl=function(a,b){if(a.element==
551
- null)throw Error('"element" not found in params '+a);var c=Xk(a);if(c!="ASSET")throw Error('Export destination "'+c+'" unknown');c=new Jf({l:Jk(a.element),description:L(a.description),requestId:L(a.id),sa:new jf({Ha:$k(a)}),O:M(a.maxWorkers),priority:M(a.priority)});c.l=ol(c.l,b);a.workloadTag&&(c.workloadTag=a.workloadTag);return c},am=function(a,b,c){b=uk(b);var d=function(e){return e?qk(e):null};return d($l(a,b,c&&function(e,g){return c(d(e),g)}))};x("ee.data.startIngestion",am);
552
- var $l=function(a,b,c){b=new zg({yf:b,requestId:a,overwrite:null,description:null});a=new K(c,a?void 0:0);return a.handle(a.image().import($i(),b))},bm=function(a,b,c){b=new Ag({ng:b,requestId:a,overwrite:null,description:null});a=new K(c,a?void 0:0);return a.handle(a.table().import($i(),b))},cm=function(a,b,c){b=vk(b);var d=function(e){return e?qk(e):null};return d(bm(a,b,c&&function(e,g){return c(d(e),g)}))};x("ee.data.startTableIngestion",cm);
553
- var dm=function(a,b){b=new K(b);a=ck(a);return b.handle(b.assets().get(a,{prettyPrint:!1}).then(dk))};x("ee.data.getAsset",dm);x("ee.data.getInfo",dm);
554
- var em=function(a,b,c,d){b=b===void 0?{}:b;d=d===void 0?Od:d;var e=Object.assign({},b),g=new K(c),f=(b=ak.test(a))?new dh(g.M):g.assets();a=b?"projects/"+bk(a):ck(a);var l=function(m){if(e.pageSize!=null||!m.nextPageToken)return m;var p=m.assets||[];e.pageToken=m.nextPageToken;m=f.Tc(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.Tc(a,e).then(l).then(d))},fm=function(a,b){var c=kk(a);c.pageSize||(c.pageSize=1E3);return em(a.id,c,b,function(d){return d==
555
- null?null:ek(d)})};x("ee.data.getList",fm);var gm=function(a,b,c){b=b===void 0?{}:b;return em(a,b,c)};x("ee.data.listAssets",gm);var hm=function(a,b,c){b=b===void 0?{}:b;b=jk(b);return em(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",hm);var im=function(a,b){b=new K(b);return b.handle((new dh(b.M)).Tc(a||$i()))};x("ee.data.listBuckets",im);var jm=function(a){a=new K(a);return a.handle((new dh(a.M)).Tc($i()).then(ek))};
556
- x("ee.data.getAssetRoots",jm);var km=function(a,b){var c="projects/"+bk(a);a=c==="projects/earthengine-legacy"?a:void 0;var d=new zf({type:"Folder"});b=new K(b);b.handle(b.assets().create(c,d,{assetId:a}).then(dk))};x("ee.data.createAssetHome",km);
557
- var lm=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&&ck(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 Ff(a.tilestoreLocation));
520
+ Zk=function(a){var b=null;a.writePublicTiles!=null&&(b=a.writePublicTiles?"PUBLIC":"DEFAULT_OBJECT_ACL");return new mf({Re:L(a.outputBucket),xa:L(a.outputPrefix),Se:a.bucketCorsUris||null,permissions:b})},$k=function(a){return new yf({qf:L(a.driveFolder),xa:L(a.driveFileNamePrefix)})},al=function(a){return new kf({name:dk(a.assetId)})},bl=function(a){if(!a)return null;var b=a;typeof a==="string"&&(a=a.split(","));if(Array.isArray(a))return new Ug({Uf:(a||[]).map(il)});throw Error("Unable to build ranking rule from rules: "+
521
+ JSON.stringify(b)+". Rules should either be a comma-separated string or list of strings.");},il=function(a){var b=new Tg({direction:null,ae:null,ce:null,be: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=
522
+ "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.be=new Qg({});break;case ".minZoomLevel":b.ce=new Sg({});break;default:b.ae=new Pg({attributeName:L(a)})}return b};var jl=[],kl=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;jl.push(a);var c=new a;a.Bf=c;E(a.hasOwnProperty(b),"Could not instantiate singleton.");return c};var ml=function(a,b,c,d,e,g){d=kj(!g,!1,d||[]);nj=a;oj=d;a===null?tj():pj(function(){rj(b,c,e||Ea(ll,b,c))})};x("ee.data.authenticateViaOauth",ml);var nl=function(a,b,c,d,e){ml(a,b,c,d,e)};x("ee.data.authenticate",nl);var ll=function(a,b){t.google.accounts.oauth2.initTokenClient({client_id:nj,callback:Ea(qj,a,b),scope:oj.join(" ")}).requestAccessToken()};x("ee.data.authenticateViaPopup",ll);
523
+ var ol=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=kj(!e,!e,d||[]);nj=a.client_email;oj=d;var g=new google.auth.JWT(a.client_email,null,a.private_key,d,null);mj=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})})};rj(b,c)};x("ee.data.authenticateViaPrivateKey",ol);
524
+ x("ee.data.setExpressionAugmenter",function(a){pl=a||Od});var pl=Od;x("ee.data.setAuthToken",function(a,b,c,d,e,g,f,l){e=kj(!l,!1,e||[]);nj=a;oj=e;qj(void 0,void 0,{token_type:b,access_token:c,state:e.join(" "),expires_in:d});f===!1?g&&g():pj(function(){g&&g()})});x("ee.data.refreshAuthToken",rj);x("ee.data.setAuthTokenRefresher",function(a){mj=a});x("ee.data.getAuthToken",gj);x("ee.data.clearAuthToken",tj);x("ee.data.getAuthClientId",function(){return nj});x("ee.data.getAuthScopes",function(){return oj});
525
+ x("ee.data.setDeadline",function(a){Hj=a});x("ee.data.setParamAugmenter",function(a){Bj=a||Od});
526
+ var ql=function(a){a=new K(a);return a.handle(a.Ec().list(aj(),{prettyPrint:!1}).then(Yj))},tl=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 Gf({name:null,l:pl(Kk(a.image)),F:Rj(a.format),ca:Uj(a.bands),ic:Xj(a)});var c={fields:"name"},d=rl();d&&(c.workloadTag=d);b=new K(b);return b.handle(b.maps().create(aj(),a,c).then(function(e){return sl(e.name,"")}))};
527
+ x("ee.data.getMapId",tl);var ul=function(a,b,c,d){if(!a.formatTileUrl){var e=sl(a.mapid,a.token,a.urlFormat);a.urlFormat=e.urlFormat;a.formatTileUrl=e.formatTileUrl}return a.formatTileUrl(b,c,d)};x("ee.data.getTileUrl",ul);
528
+ var sl=function(a,b,c){var d=c===void 0?"":c;d||(Zi(),c=wj,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}},vl=function(a,b){var c=a.visParams?pl(Kk(a.visParams)):null;a=new $f({name:null,Lb:a.assetId,mapName:a.mapName,zg:c});b=new K(b);return b.handle((new gh(b.M)).create(aj(),a,{fields:["name"]}).then(function(d){var e=
529
+ d.name.split("/").pop();return{token:e,formatTileUrl:function(g,f,l){return wj+"/v1/"+d.name+"/tiles/"+l+"/"+g+"/"+f},rawTilesKey:e.substring(0,e.lastIndexOf("-"))}}))};x("ee.data.getFeatureViewTilesKey",vl);
530
+ var wl=function(a,b,c){c=new K(c);var d=dk(a);a=c.handle;var e=c.assets();b=b===void 0?{}:b;var g=g===void 0?{}:g;e.j.C(d,RegExp("^projects/[^/]+/assets/.*$"));g=G(e.j,{body:null,B:"GET",D:"earthengine.projects.assets.listFeatures",path:"/"+e.m+"/"+d+":listFeatures",u:F(b,g),G:Eg});return a.call(c,g)};x("ee.data.listFeatures",wl);
531
+ var xl=function(a,b){var c=new Bk(!0);a=Mk(c,a);var d={};c=Ok(c,a);Object.keys(c).length&&(d={__source_code_nodes__:c});c={l:pl(a,d)};if(a=rl())c.workloadTag=a;b=new K(b);return b.handle(qh(b.value(),aj(),new of(c)).then(function(e){return e.result}))};x("ee.data.computeValue",xl);
532
+ var yl=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 Yg({name:null,l:pl(Kk(a.image)),F:Rj(a.format),xa:a.name,ca:Uj(a.bands),
533
+ ic:Xj(a),grid:null});var c={fields:"name"},d=rl();d&&(c.workloadTag=d);b=new K(b);return b.handle((new oh(b.M)).create(aj(),a,c).then(function(e){return{thumbid:e.name,token:""}}))};x("ee.data.getThumbId",yl);
534
+ var zl=function(a,b){var c=new Xf({framesPerSecond:a.framesPerSecond||null,maxFrames:a.maxFrames||null,maxPixelsPerFrame:a.maxPixelsPerFrame||null});a=new bh({name:null,l:pl(Kk(a.imageCollection)),F:Rj(a.format),Pa:c,grid:null});c={fields:"name"};var d=rl();d&&(c.workloadTag=d);b=new K(b);return b.handle((new th(b.M)).create(aj(),a,c).then(function(e){return{thumbid:e.name,token:""}}))};x("ee.data.getVideoThumbId",zl);
535
+ var Al=function(a,b){a=new hg({name:null,l:pl(Kk(a.imageCollection)),F:Rj(a.format),orientation:Tj(a.orientation),grid:null});var c={fields:"name"},d=rl();d&&(c.workloadTag=d);b=new K(b);return b.handle((new hh(b.M)).create(aj(),a,c).then(function(e){return{thumbid:e.name,token:""}}))};x("ee.data.getFilmstripThumbId",Al);var Bl=function(a){return wj+"/v1/"+a.thumbid+":getPixels"};x("ee.data.makeThumbUrl",Bl);
536
+ var Dl=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.");
537
+ if(typeof a.bands==="string")try{a.bands=JSON.parse(a.bands)}catch(e){a.bands=Uj(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=
538
+ JSON.parse(a.crs_transform)}catch(e){}var c=Cl(a.image,a);a=new Yg({name:null,l:pl(Kk(c)),F:Rj(a.format),xa:a.name,ca:a.bands&&Uj(a.bands.map(function(e){return e.id})),grid:null});c={fields:"name"};var d=rl();d&&(c.workloadTag=d);b=new K(b);return b.handle((new oh(b.M)).create(aj(),a,c).then(function(e){return{docid:e.name,token:""}}))};x("ee.data.getDownloadId",Dl);var El=function(a){Zi();return wj+"/v1/"+a.docid+":getPixels"};x("ee.data.makeDownloadUrl",El);
539
+ var Fl=function(a,b){b=new K(b);var c=Sj(a.format),d=pl(Kk(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 Wg({name:null,l:d,F:c,selectors:e,filename:a.filename||null});c={fields:"name"};if(d=rl())c.workloadTag=d;return b.handle((new nh(b.M)).create(aj(),a,c).then(function(g){return{docid:g.name||
540
+ "",token:""}}))};x("ee.data.getTableDownloadId",Fl);var Gl=function(a){return wj+"/v1/"+a.docid+":getFeatures"};x("ee.data.makeTableDownloadUrl",Gl);var Hl=function(a,b){var c=function(d){return Math.floor(Math.random()*Math.pow(2,d*4)).toString(16).padStart(d,"0")};a=jc(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",Hl);
541
+ var Il=function(a){return a.name&&a.done&&a.error},Kl=function(a,b){var c=Jl(a).map(pk);if(c.length===1)return a=(new K(b)).qd(Il),a.handle(a.Na().get(c[0]).then(function(e){return[qk(e)]}));a=(new fj(b)).qd(Il);var d=a.Na();return a.send(c.map(function(e){return[e,d.get(e)]}),function(e){return c.map(function(g){return qk(e[g])})})};x("ee.data.getTaskStatus",Kl);
542
+ var Jl=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.");},Ml=function(a){return Ll(void 0,a)};x("ee.data.getTaskList",Ml);var Ll=function(a,b){return b?(Nl(a,function(c,d){return b(c?{tasks:c.map(qk)}:null,d)}),null):{tasks:Nl(a).map(qk)}};x("ee.data.getTaskListWithLimit",Ll);
543
+ var Nl=function(a,b){var c=[],d={pageSize:500},e=function(l){hc(c,l.Na||[]);!l.nextPageToken||a&&c.length>=a?b&&b(a?c.slice(0,a):c):(d.pageToken=l.nextPageToken,g.handle(f.list(aj(),d).then(e)));return null},g=new K(b?function(l,m){return m&&b(l,m)}:void 0),f=g.Na();g.handle(f.list(aj(),d).then(e));return b?null:a?c.slice(0,a):c};x("ee.data.listOperations",Nl);
544
+ var Ol=function(a,b){a=Jl(a).map(pk);var c=new gf;if(a.length===1)b=new K(b),b.handle(b.Na().cancel(a[0],c));else{b=new fj(b);var d=b.Na();b.send(a.map(function(e){return[e,d.cancel(e,c)]}))}};x("ee.data.cancelOperation",Ol);var Pl=function(a,b){var c=Jl(a).map(pk);if(!Array.isArray(a))return a=(new K(b)).qd(Il),a.handle(a.Na().get(c[0]));a=(new fj(b)).qd(Il);var d=a.Na();return a.send(c.map(function(e){return[e,d.get(e)]}))};x("ee.data.getOperation",Pl);
545
+ var Rl=function(a,b){return Ql(a,"CANCEL",b)};x("ee.data.cancelTask",Rl);var Ql=function(a,b,c){if(!bb(Sl,b))throw Error("Invalid action: "+b);a=Jl(a);a=a.map(pk);Ol(a,c);return null};x("ee.data.updateTask",Ql);
546
+ var Yl=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=rl();e&&(b.workloadTag=e)}var g=new K(c);c=function(f){return g.handle(f.then(rk))};switch(d){case "EXPORT_IMAGE":return b=Tl(b,a),c(g.image().Ka(aj(),b));case "EXPORT_FEATURES":return b=cl(b),b.l=pl(b.l,a),c(g.table().Ka(aj(),b));case "EXPORT_VIDEO":return b=Ul(b,a),c(g.video().Ka(aj(),b));case "EXPORT_TILES":return b=Vl(b,a),c(g.map().Ka(aj(),
547
+ b));case "EXPORT_VIDEO_MAP":return b=Wl(b),c((new sh(g.M)).Ka(aj(),b));case "EXPORT_CLASSIFIER":return b=Xl(b,a),c((new fh(g.M)).Ka(aj(),b));default:throw Error("Unable to start processing for task of type "+d);}};x("ee.data.startProcessing",Yl);
548
+ var Tl=function(a,b){var c=Zl(a);if(c.element==null)throw Error('"element" not found in params '+c);var d=new Kf({l:Kk(c.element),description:L(c.description),oa:null,sa:null,grid:null,Nf:L(c.maxPixels),requestId:L(c.id),O:M(c.maxWorkers),priority:M(c.priority)}),e=Yk(c);switch(e){case "GOOGLE_CLOUD_STORAGE":case "DRIVE":d.oa=fl(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"],
549
+ delete e[".default"]);c=new Lf({Ha:al(c),pyramidingPolicy:g,Sf:eb(e)?null:e,tileSize:M(c.shardSize)});d.sa=c;break;default:throw Error('Export destination "'+e+'" unknown');}d.l=pl(d.l,b);a.workloadTag&&(d.workloadTag=a.workloadTag);return d},Ul=function(a,b){var c=$l(a);if(c.element==null)throw Error('"element" not found in params '+c);var d=new Yf({l:Kk(c.element),description:L(c.description),Pa:new Xf({framesPerSecond:M(c.framesPerSecond),maxFrames:M(c.maxFrames),maxPixelsPerFrame:L(c.maxPixels)}),
550
+ oa:null,requestId:L(c.id),O:M(c.maxWorkers),priority:M(c.priority)});d.oa=gl(c,Yk(c));d.l=pl(d.l,b);a.workloadTag&&(d.workloadTag=a.workloadTag);return d},Vl=function(a,b){var c=a.scale;delete a.scale;var d=Zl(a);d.scale=c;if(d.element==null)throw Error('"element" not found in params '+d);c=new Of({l:Kk(d.element),description:L(d.description),dc:hl(d),cc:fl(d,"GOOGLE_CLOUD_STORAGE"),requestId:L(d.id),O:M(d.maxWorkers),priority:M(d.priority)});c.l=pl(c.l,b);a.workloadTag&&(c.workloadTag=a.workloadTag);
551
+ return c},Wl=function(a){var b=a.scale;delete a.scale;var c=$l(a);c.scale=b;if(c.element==null)throw Error('"element" not found in params '+c);b=new Vf({l:Kk(c.element),description:L(c.description),Pa:new Xf({framesPerSecond:M(c.framesPerSecond),maxFrames:M(c.maxFrames),maxPixelsPerFrame:null}),dc:hl(c),cc:gl(c,"GOOGLE_CLOUD_STORAGE"),requestId:L(c.id),version:L(c.version),O:M(c.maxWorkers),priority:M(c.priority)});b.l=pl(b.l);a.workloadTag&&(b.workloadTag=a.workloadTag);return b},Xl=function(a,b){if(a.element==
552
+ null)throw Error('"element" not found in params '+a);var c=Yk(a);if(c!="ASSET")throw Error('Export destination "'+c+'" unknown');c=new Jf({l:Kk(a.element),description:L(a.description),requestId:L(a.id),sa:new jf({Ha:al(a)}),O:M(a.maxWorkers),priority:M(a.priority)});c.l=pl(c.l,b);a.workloadTag&&(c.workloadTag=a.workloadTag);return c},bm=function(a,b,c){b=vk(b);var d=function(e){return e?rk(e):null};return d(am(a,b,c&&function(e,g){return c(d(e),g)}))};x("ee.data.startIngestion",bm);
553
+ var am=function(a,b,c){b=new zg({yf:b,requestId:a,overwrite:null,description:null});a=new K(c,a?void 0:0);return a.handle(a.image().import(aj(),b))},cm=function(a,b,c){b=new Ag({ng:b,requestId:a,overwrite:null,description:null});a=new K(c,a?void 0:0);return a.handle(a.table().import(aj(),b))},dm=function(a,b,c){b=wk(b);var d=function(e){return e?rk(e):null};return d(cm(a,b,c&&function(e,g){return c(d(e),g)}))};x("ee.data.startTableIngestion",dm);
554
+ var em=function(a,b){b=new K(b);a=dk(a);return b.handle(b.assets().get(a,{prettyPrint:!1}).then(ek))};x("ee.data.getAsset",em);x("ee.data.getInfo",em);
555
+ var fm=function(a,b,c,d){b=b===void 0?{}:b;d=d===void 0?Od:d;var e=Object.assign({},b),g=new K(c),f=(b=bk.test(a))?new dh(g.M):g.assets();a=b?"projects/"+ck(a):dk(a);var l=function(m){if(e.pageSize!=null||!m.nextPageToken)return m;var p=m.assets||[];e.pageToken=m.nextPageToken;m=f.Tc(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.Tc(a,e).then(l).then(d))},gm=function(a,b){var c=lk(a);c.pageSize||(c.pageSize=1E3);return fm(a.id,c,b,function(d){return d==
556
+ null?null:fk(d)})};x("ee.data.getList",gm);var hm=function(a,b,c){b=b===void 0?{}:b;return fm(a,b,c)};x("ee.data.listAssets",hm);var im=function(a,b,c){b=b===void 0?{}:b;b=kk(b);return fm(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",im);var jm=function(a,b){b=new K(b);return b.handle((new dh(b.M)).Tc(a||aj()))};x("ee.data.listBuckets",jm);var km=function(a){a=new K(a);return a.handle((new dh(a.M)).Tc(aj()).then(fk))};
557
+ x("ee.data.getAssetRoots",km);var lm=function(a,b){var c="projects/"+ck(a);a=c==="projects/earthengine-legacy"?a:void 0;var d=new zf({type:"Folder"});b=new K(b);b.handle(b.assets().create(c,d,{assetId:a}).then(ek))};x("ee.data.createAssetHome",lm);
558
+ var mm=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&&dk(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 Ff(a.tilestoreLocation));
558
559
  a.gcsLocation&&!a.cloudStorageLocation&&(a.cloudStorageLocation=a.gcsLocation,delete a.gcsLocation);a.cloudStorageLocation&&(a.cloudStorageLocation=new nf(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 zf(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=
559
- "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(dk))};x("ee.data.createAsset",lm);var mm=function(a,b,c){return lm({type:"Folder"},a,b,void 0,c)};x("ee.data.createFolder",mm);var nm=function(a,b,c){a=ck(a);b=ck(b);b=new Ig({Ob:b});c=new K(c);c.handle(c.assets().move(a,b).then(dk))};x("ee.data.renameAsset",nm);
560
- var om=function(a,b,c,d){a=ck(a);b=ck(b);c=new sf({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.C(a,RegExp("^projects/[^/]+/assets/.*$"));g=G(e.j,{body:c,B:"POST",D:"earthengine.projects.assets.copy",path:"/"+e.m+"/"+a+":copy",u:F(g,f),G:zf});b.call(d,g.then(dk))};x("ee.data.copyAsset",om);var pm=function(a,b){b=new K(b);b.handle(b.assets().delete(ck(a)))};x("ee.data.deleteAsset",pm);
561
- var qm=function(a,b){a=ck(a);var c=new ng;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.C(a,RegExp("^projects/[^/]+/assets/.*$"));f=G(e.j,{body:c,B:"POST",D:"earthengine.projects.assets.getIamPolicy",path:"/"+e.m+"/"+a+":getIamPolicy",u:F(g,f),G:Uf});return d.call(b,f.then(lk))};x("ee.data.getAssetAcl",qm);
562
- var rm=function(a,b,c,d){b=new ah({Lb:b,updateMask:(c||[]).join(",")});d=new K(d);c=d.handle;var e=d.assets();a=ck(a);var g=g===void 0?{}:g;var f=f===void 0?{}:f;e.j.C(a,RegExp("^projects/[^/]+/assets/.*$"));g=G(e.j,{body:b,B:"PATCH",D:"earthengine.projects.assets.patch",path:"/"+e.m+"/"+a,u:F(g,f),G:zf});return c.call(d,g.then(dk))};x("ee.data.updateAsset",rm);
563
- var sm=function(a,b,c){a=ck(a);b=mk(b);b=new Vg({jb: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.C(a,RegExp("^projects/[^/]+/assets/.*$"));f=G(e.j,{body:b,B:"POST",D:"earthengine.projects.assets.setIamPolicy",path:"/"+e.m+"/"+a+":setIamPolicy",u:F(g,f),G:Uf});d.call(c,f)};x("ee.data.setAssetAcl",sm);
564
- var tm=function(a,b,c){var d=hk(b);b=Ia(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+'"'}));rm(a,d,b,c)};x("ee.data.setAssetProperties",tm);
565
- var um=function(a,b){var c=ck(a);b=new K(b);var d=b.assets(),e=d.j.C;d.j.C=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 zf&&g.quota))throw Error(a+" is not a root folder.");g=g.quota;return{asset_count:{usage:Number(g.Me||0),limit:Number(g.Kf||0)},asset_size:{usage:Number(g.sizeBytes||0),limit:Number(g.Vb||0)}}}))};x("ee.data.getAssetRootQuota",um);
566
- var vm=function(){this.default=this.tag=""};vm.prototype.get=function(){return this.tag};vm.prototype.set=function(a){this.tag=this.validate(a)};vm.prototype.reset=function(){this.tag=this.default};
567
- vm.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 ql=function(){return jl(vm).get()};x("ee.data.getWorkloadTag",ql);var wm=function(a){jl(vm).set(a)};x("ee.data.setWorkloadTag",wm);
568
- var xm=function(a){var b=jl(vm);b.default=b.validate(a);jl(vm).set(a)};x("ee.data.setDefaultWorkloadTag",xm);var ym=function(a){a&&(a=jl(vm),a.default=a.validate(""));jl(vm).reset()};x("ee.data.resetWorkloadTag",ym);var Rl={Al:"CANCEL",Dl:"UPDATE"};var O=function(a,b,c){if(!(this instanceof O))return zm(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.I=a;this.args=b;this.U=c||null;this.sl=null};y(O,Hj);x("ee.ComputedObject",O);O.prototype.zh=function(){return this.sl};O.prototype.evaluate=function(a){if(!a||typeof a!=="function")throw Error("evaluate() requires a callback function.");wl(this,a)};
569
- O.prototype.evaluate=O.prototype.evaluate;O.prototype.V=function(a){return wl(this,a)};O.prototype.getInfo=O.prototype.V;O.prototype.encode=function(a){if(this.I===null&&this.args===null)return{type:"ArgumentRef",value:this.U};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.I);b[typeof a==="string"?"functionName":"function"]=a;return b};
570
- O.prototype.na=function(a){if(this.I===null&&this.args===null){a=this.U||a.Mi;if(!a)throw Error("A mapped function's arguments cannot be used in client-side operations");return new Ze({Kb:a})}var b={},c;for(c in this.args)this.args[c]!==void 0&&(b[c]=Kj(Rk(a,this.args[c])));return typeof this.I==="string"?Nj(String(this.I),b):this.I.Fd(a,b)};O.prototype.va=function(a){return(a===void 0?0:a)?Fk(this):Pk(this)};O.prototype.serialize=O.prototype.va;
571
- O.prototype.toString=function(){return"ee."+this.name()+"("+Hk(this)+")"};x("ee.ComputedObject.prototype.toString",O.prototype.toString);O.prototype.name=function(){return"ComputedObject"};O.prototype.Dg=function(a,b){var c=Array.from(arguments);c[0]=this;a.apply(t,c);return this};O.prototype.aside=O.prototype.Dg;
572
- var Am=function(a,b){if(b instanceof a.constructor)return b;var c=function(){};c.prototype=a.constructor.prototype;a=new c;a.I=b.I;a.args=b.args;a.U=b.U;return a},zm=function(a,b){function c(){return a.apply(this,b)}c.prototype=a.prototype;return new c};var Bm={},Cm=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}},Dm=function(a){return typeof a==="number"||a instanceof O&&a.name()=="Number"},Em=function(a){return typeof a==="string"||a instanceof O&&a.name()=="String"},Fm=function(a){return u(a)&&
573
- typeof a!=="function"?(a=Object.getPrototypeOf(a),a!==null&&Object.getPrototypeOf(a)===null):!1},Gm=function(a,b,c){c=c===void 0?!1:c;return a.length===1&&Fm(a[0])&&(a=b.args,c&&(a=a.slice(1)),a.length)?!(a.length===1||a[1].optional)||a[0].type!=="Dictionary":!1};var Hm=function(){if(!(this instanceof Hm))return new Hm};y(Hm,Hj);x("ee.Function",Hm);var Im=Od;Hm.prototype.call=function(a){return this.apply(Jm(this,Array.prototype.slice.call(arguments,0)))};Hm.prototype.call=Hm.prototype.call;Hm.prototype.apply=function(a){a=new O(this,Km(this,a));return Im(a,this.Z().returns)};Hm.prototype.apply=Hm.prototype.apply;
574
- var Lm=function(a,b,c){var d=b!==void 0,e=a.Z();if(Gm(c,e,d)){if(c=gb(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=Jm(a,d?[b].concat(c):c);return a.apply(c)},Km=function(a,b){for(var c=a.Z().args,d={},e={},g=0;g<c.length;g++){var f=c[g].name;if(f in b&&b[f]!==void 0)d[f]=Im(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>
575
- 0)throw Error("Unrecognized arguments ("+c+") to function: "+a);return d},Jm=function(a,b){var c=a.Z().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};
576
- Hm.prototype.toString=function(a,b){var c=this.Z(),d=[];d.push(a||c.name);d.push("(");d.push($b(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):
577
- d.push("Undocumented.")}return d.join("")};Hm.prototype.va=function(a){return(a===void 0?0:a)?Fk(this):Pk(this)};var P=function(a,b){if(b===void 0)return Mm(a);if(!(this instanceof P))return zm(P,arguments);this.vb=hb(b);this.vb.name=a};y(P,Hm);x("ee.ApiFunction",P);var Q=function(a,b){return Hm.prototype.call.apply(Mm(a),Array.prototype.slice.call(arguments,1))};x("ee.ApiFunction._call",Q);var Nm=function(a,b){return Mm(a).apply(b)};x("ee.ApiFunction._apply",Nm);P.prototype.encode=function(){return this.vb.name};P.prototype.Fd=function(a,b){return Nj(this.vb.name,b)};P.prototype.Z=function(){return this.vb};
578
- var Om=null,Pm={},Rm=function(){Qm();return Ya(Om,function(a){return a.Z()})},Sm=function(){Qm();return Xa(Om,function(a,b){return!Pm[b]})},Mm=function(a){var b=Tm(a);if(!b)throw Error("Unknown built-in function name: "+a);return b};x("ee.ApiFunction.lookup",Mm);
579
- var Tm=function(a){Qm();return Om[a]||null},Qm=function(a,b){if(Om)a&&a();else{var c=function(d,e){e?b&&b(Error(e)):(Om=Ya(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?pl(c):c(pl())}},Um=function(a,b,c,d){Qm();var e=d||"";Wa(Om,function(g,f){var l=f.split(".");if(l.length==2&&l[0]==b){l=e+l[1];var m=g.Z();Pm[f]=!0;var p=!1;m.args.length&&(f=m.args[0].type,p=f!="Object"&&Cm(f,c));
580
- f=p?a.prototype:a;l in f&&!f[l].signature||(f[l]=function(v){return Lm(g,p?this:void 0,Array.prototype.slice.call(arguments,0))},f[l].toString=w(g.toString,g,l,p),f[l].signature=m)}})},Vm=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=Wm(a),d=$b(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 ae(ab(g));
581
- var l=new ae(d);if(ce(l,f).isEmpty())e[d[0]]=b[0];else{b=de(f,l);if(b.size!==0)throw Error("Unexpected arguments"+a+": "+Array.from(b.values()).join(", "));e=gb(g)}}b=new ae(ab(e));c=de(new ae(Zb(c,function(m){return m.lastIndexOf("opt_",0)!=0})),b);if(c.size!==0)throw Error("Missing required arguments"+a+": "+Array.from(c.values()).join(", "));return e},Wm=function(a){var b=Xm,c=[];t.EXPORTED_FN_INFO?(a=t.EXPORTED_FN_INFO[a.toString()],u(a)||Ym(),c=a.paramNames,Array.isArray(c)||Ym()):(a=a.toString().replace(Zm,
582
- "").match(b),a===null&&Ym(),c=(a[1].split(",")||[]).map(function(d){return d.replace($m,"")}));return c},Ym=function(){throw Error("Failed to locate function parameters.");},Zm=/((\/\/.*$)|(\/\*[\s\S]*?\*\/)|(\s))/mg,Xm=/^function[^\(]*\(([^\)]*)\)/m,$m=/=.*$/;var S=function(a,b,c){O.call(this,a,b,c);an()};y(S,O);x("ee.Element",S);var bn=!1,an=function(){bn||(Um(S,"Element","Element"),bn=!0)};S.prototype.name=function(){return"Element"};
583
- S.prototype.set=function(a){var b;if(arguments.length<=1){var c=arguments[0];if(b=Fm(c))a:{b=ab(c);var d=["properties"];if(xa(b)&&xa(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(Fm(c)){b=this;for(var f in c)d=c[f],b=Q("Element.set",b,f,d)}else if(c instanceof O&&Tm("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%
584
- 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 Am(this,b)};S.prototype.set=S.prototype.set;var T=function(a,b,c,d){if(!(this instanceof T))return zm(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}cn();e=b!=null||c!=null||d!=null;if(a instanceof O&&!(a instanceof T&&a.nb)){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.I,a.args,a.U)}else{a instanceof T&&(a=a.encode());if(!dn(a))throw Error("Invalid GeoJSON geometry: "+JSON.stringify(a));
585
- O.call(this,null,null);this.nb=a.type;this.Xg=a.coordinates!=null?hb(a.coordinates):null;this.yh=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 Gi).va(a.crs));this.qc=c;this.qc===void 0&&"geodesic"in a&&(this.qc=!!a.geodesic);this.oc=d;this.oc===void 0&&"evenOdd"in a&&(this.oc=!!a.evenOdd)}};y(T,O);
586
- x("ee.Geometry",T);var en=!1,cn=function(){en||(Um(T,"Geometry","Geometry"),en=!0)},fn=function(a,b){if(!(this instanceof fn))return gn(fn,arguments);var c=hn(fn,"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(fn,T);T.Point=fn;var jn=function(a,b){if(!(this instanceof jn))return gn(jn,arguments);T.call(this,hn(jn,"MultiPoint",2,arguments))};y(jn,T);
587
- T.MultiPoint=jn;var kn=function(a,b,c,d){if(!(this instanceof kn))return gn(kn,arguments);var e=hn(kn,"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(kn,T);T.Rectangle=kn;
588
- var ln=function(a,b,c,d){if(!(this instanceof ln))return gn(ln,arguments);var e=R(ln,arguments);a=e.west;b=e.south;c=e.east;d=e.north;e=[a,b,c,d];if(mn(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 "+
589
- d+"\u00b0");b=Math.max(b,-90);d=Math.min(d,90);c-a>=360?(a=-180,c=180):(a=nn(a),c=nn(c),c<a&&(c+=360));T.call(this,{type:"Polygon",coordinates:[[[a,d],[a,b],[c,b],[c,d]]]},void 0,!1,!0)};y(ln,kn);T.BBox=ln;var nn=function(a){a%=360;a>180?a-=360:a<-180&&(a+=360);return a},on=function(a,b,c,d){if(!(this instanceof on))return gn(on,arguments);T.call(this,hn(on,"LineString",2,arguments))};y(on,T);T.LineString=on;
590
- var pn=function(a,b,c,d){if(!(this instanceof pn))return gn(pn,arguments);T.call(this,hn(pn,"LinearRing",2,arguments))};y(pn,T);T.LinearRing=pn;var qn=function(a,b,c,d){if(!(this instanceof qn))return gn(qn,arguments);T.call(this,hn(qn,"MultiLineString",3,arguments))};y(qn,T);T.MultiLineString=qn;var rn=function(a,b,c,d,e){if(!(this instanceof rn))return gn(rn,arguments);T.call(this,hn(rn,"Polygon",3,arguments))};y(rn,T);T.Polygon=rn;
591
- var sn=function(a,b,c,d,e){if(!(this instanceof sn))return gn(sn,arguments);T.call(this,hn(sn,"MultiPolygon",4,arguments))};y(sn,T);T.MultiPolygon=sn;
560
+ "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(ek))};x("ee.data.createAsset",mm);var nm=function(a,b,c){return mm({type:"Folder"},a,b,void 0,c)};x("ee.data.createFolder",nm);var om=function(a,b,c){a=dk(a);b=dk(b);b=new Ig({Ob:b});c=new K(c);c.handle(c.assets().move(a,b).then(ek))};x("ee.data.renameAsset",om);
561
+ var pm=function(a,b,c,d){a=dk(a);b=dk(b);c=new sf({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.C(a,RegExp("^projects/[^/]+/assets/.*$"));g=G(e.j,{body:c,B:"POST",D:"earthengine.projects.assets.copy",path:"/"+e.m+"/"+a+":copy",u:F(g,f),G:zf});b.call(d,g.then(ek))};x("ee.data.copyAsset",pm);var qm=function(a,b){b=new K(b);b.handle(b.assets().delete(dk(a)))};x("ee.data.deleteAsset",qm);
562
+ var rm=function(a,b){a=dk(a);var c=new ng;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.C(a,RegExp("^projects/[^/]+/assets/.*$"));f=G(e.j,{body:c,B:"POST",D:"earthengine.projects.assets.getIamPolicy",path:"/"+e.m+"/"+a+":getIamPolicy",u:F(g,f),G:Uf});return d.call(b,f.then(mk))};x("ee.data.getAssetAcl",rm);
563
+ var sm=function(a,b,c,d){b=new ah({Lb:b,updateMask:(c||[]).join(",")});d=new K(d);c=d.handle;var e=d.assets();a=dk(a);var g=g===void 0?{}:g;var f=f===void 0?{}:f;e.j.C(a,RegExp("^projects/[^/]+/assets/.*$"));g=G(e.j,{body:b,B:"PATCH",D:"earthengine.projects.assets.patch",path:"/"+e.m+"/"+a,u:F(g,f),G:zf});return c.call(d,g.then(ek))};x("ee.data.updateAsset",sm);
564
+ var tm=function(a,b,c){a=dk(a);b=nk(b);b=new Vg({jb: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.C(a,RegExp("^projects/[^/]+/assets/.*$"));f=G(e.j,{body:b,B:"POST",D:"earthengine.projects.assets.setIamPolicy",path:"/"+e.m+"/"+a+":setIamPolicy",u:F(g,f),G:Uf});d.call(c,f)};x("ee.data.setAssetAcl",tm);
565
+ var um=function(a,b,c){var d=ik(b);b=Ia(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+'"'}));sm(a,d,b,c)};x("ee.data.setAssetProperties",um);
566
+ var vm=function(a,b){var c=dk(a);b=new K(b);var d=b.assets(),e=d.j.C;d.j.C=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 zf&&g.quota))throw Error(a+" is not a root folder.");g=g.quota;return{asset_count:{usage:Number(g.Me||0),limit:Number(g.Kf||0)},asset_size:{usage:Number(g.sizeBytes||0),limit:Number(g.Vb||0)}}}))};x("ee.data.getAssetRootQuota",vm);
567
+ var wm=function(){this.default=this.tag=""};wm.prototype.get=function(){return this.tag};wm.prototype.set=function(a){this.tag=this.validate(a)};wm.prototype.reset=function(){this.tag=this.default};
568
+ wm.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 rl=function(){return kl(wm).get()};x("ee.data.getWorkloadTag",rl);var xm=function(a){kl(wm).set(a)};x("ee.data.setWorkloadTag",xm);
569
+ var ym=function(a){var b=kl(wm);b.default=b.validate(a);kl(wm).set(a)};x("ee.data.setDefaultWorkloadTag",ym);var zm=function(a){a&&(a=kl(wm),a.default=a.validate(""));kl(wm).reset()};x("ee.data.resetWorkloadTag",zm);var Sl={Al:"CANCEL",Dl:"UPDATE"};var O=function(a,b,c){if(!(this instanceof O))return Am(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.I=a;this.args=b;this.U=c||null;this.sl=null};y(O,Ij);x("ee.ComputedObject",O);O.prototype.zh=function(){return this.sl};O.prototype.evaluate=function(a){if(!a||typeof a!=="function")throw Error("evaluate() requires a callback function.");xl(this,a)};
570
+ O.prototype.evaluate=O.prototype.evaluate;O.prototype.V=function(a){return xl(this,a)};O.prototype.getInfo=O.prototype.V;O.prototype.encode=function(a){if(this.I===null&&this.args===null)return{type:"ArgumentRef",value:this.U};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.I);b[typeof a==="string"?"functionName":"function"]=a;return b};
571
+ O.prototype.na=function(a){if(this.I===null&&this.args===null){a=this.U||a.Mi;if(!a)throw Error("A mapped function's arguments cannot be used in client-side operations");return new Ze({Kb:a})}var b={},c;for(c in this.args)this.args[c]!==void 0&&(b[c]=Lj(Sk(a,this.args[c])));return typeof this.I==="string"?Oj(String(this.I),b):this.I.Fd(a,b)};O.prototype.va=function(a){return(a===void 0?0:a)?Gk(this):Qk(this)};O.prototype.serialize=O.prototype.va;
572
+ O.prototype.toString=function(){return"ee."+this.name()+"("+Ik(this)+")"};x("ee.ComputedObject.prototype.toString",O.prototype.toString);O.prototype.name=function(){return"ComputedObject"};O.prototype.Dg=function(a,b){var c=Array.from(arguments);c[0]=this;a.apply(t,c);return this};O.prototype.aside=O.prototype.Dg;
573
+ var Bm=function(a,b){if(b instanceof a.constructor)return b;var c=function(){};c.prototype=a.constructor.prototype;a=new c;a.I=b.I;a.args=b.args;a.U=b.U;return a},Am=function(a,b){function c(){return a.apply(this,b)}c.prototype=a.prototype;return new c};var Cm={},Dm=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}},Em=function(a){return typeof a==="number"||a instanceof O&&a.name()=="Number"},Fm=function(a){return typeof a==="string"||a instanceof O&&a.name()=="String"},Gm=function(a){return u(a)&&
574
+ typeof a!=="function"?(a=Object.getPrototypeOf(a),a!==null&&Object.getPrototypeOf(a)===null):!1},Hm=function(a,b,c){c=c===void 0?!1:c;return a.length===1&&Gm(a[0])&&(a=b.args,c&&(a=a.slice(1)),a.length)?!(a.length===1||a[1].optional)||a[0].type!=="Dictionary":!1};var Im=function(){if(!(this instanceof Im))return new Im};y(Im,Ij);x("ee.Function",Im);var Jm=Od;Im.prototype.call=function(a){return this.apply(Km(this,Array.prototype.slice.call(arguments,0)))};Im.prototype.call=Im.prototype.call;Im.prototype.apply=function(a){a=new O(this,Lm(this,a));return Jm(a,this.Z().returns)};Im.prototype.apply=Im.prototype.apply;
575
+ var Mm=function(a,b,c){var d=b!==void 0,e=a.Z();if(Hm(c,e,d)){if(c=gb(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=Km(a,d?[b].concat(c):c);return a.apply(c)},Lm=function(a,b){for(var c=a.Z().args,d={},e={},g=0;g<c.length;g++){var f=c[g].name;if(f in b&&b[f]!==void 0)d[f]=Jm(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>
576
+ 0)throw Error("Unrecognized arguments ("+c+") to function: "+a);return d},Km=function(a,b){var c=a.Z().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};
577
+ Im.prototype.toString=function(a,b){var c=this.Z(),d=[];d.push(a||c.name);d.push("(");d.push($b(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):
578
+ d.push("Undocumented.")}return d.join("")};Im.prototype.va=function(a){return(a===void 0?0:a)?Gk(this):Qk(this)};var P=function(a,b){if(b===void 0)return Nm(a);if(!(this instanceof P))return Am(P,arguments);this.vb=hb(b);this.vb.name=a};y(P,Im);x("ee.ApiFunction",P);var Q=function(a,b){return Im.prototype.call.apply(Nm(a),Array.prototype.slice.call(arguments,1))};x("ee.ApiFunction._call",Q);var Om=function(a,b){return Nm(a).apply(b)};x("ee.ApiFunction._apply",Om);P.prototype.encode=function(){return this.vb.name};P.prototype.Fd=function(a,b){return Oj(this.vb.name,b)};P.prototype.Z=function(){return this.vb};
579
+ var Pm=null,Qm={},Sm=function(){Rm();return Ya(Pm,function(a){return a.Z()})},Tm=function(){Rm();return Xa(Pm,function(a,b){return!Qm[b]})},Nm=function(a){var b=Um(a);if(!b)throw Error("Unknown built-in function name: "+a);return b};x("ee.ApiFunction.lookup",Nm);
580
+ var Um=function(a){Rm();return Pm[a]||null},Rm=function(a,b){if(Pm)a&&a();else{var c=function(d,e){e?b&&b(Error(e)):(Pm=Ya(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?ql(c):c(ql())}},Vm=function(a,b,c,d){Rm();var e=d||"";Wa(Pm,function(g,f){var l=f.split(".");if(l.length==2&&l[0]==b){l=e+l[1];var m=g.Z();Qm[f]=!0;var p=!1;m.args.length&&(f=m.args[0].type,p=f!="Object"&&Dm(f,c));
581
+ f=p?a.prototype:a;l in f&&!f[l].signature||(f[l]=function(v){return Mm(g,p?this:void 0,Array.prototype.slice.call(arguments,0))},f[l].toString=w(g.toString,g,l,p),f[l].signature=m)}})},Wm=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=Xm(a),d=$b(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 ae(ab(g));
582
+ var l=new ae(d);if(ce(l,f).isEmpty())e[d[0]]=b[0];else{b=de(f,l);if(b.size!==0)throw Error("Unexpected arguments"+a+": "+Array.from(b.values()).join(", "));e=gb(g)}}b=new ae(ab(e));c=de(new ae(Zb(c,function(m){return m.lastIndexOf("opt_",0)!=0})),b);if(c.size!==0)throw Error("Missing required arguments"+a+": "+Array.from(c.values()).join(", "));return e},Xm=function(a){var b=Ym,c=[];t.EXPORTED_FN_INFO?(a=t.EXPORTED_FN_INFO[a.toString()],u(a)||Zm(),c=a.paramNames,Array.isArray(c)||Zm()):(a=a.toString().replace($m,
583
+ "").match(b),a===null&&Zm(),c=(a[1].split(",")||[]).map(function(d){return d.replace(an,"")}));return c},Zm=function(){throw Error("Failed to locate function parameters.");},$m=/((\/\/.*$)|(\/\*[\s\S]*?\*\/)|(\s))/mg,Ym=/^function[^\(]*\(([^\)]*)\)/m,an=/=.*$/;var S=function(a,b,c){O.call(this,a,b,c);bn()};y(S,O);x("ee.Element",S);var cn=!1,bn=function(){cn||(Vm(S,"Element","Element"),cn=!0)};S.prototype.name=function(){return"Element"};
584
+ S.prototype.set=function(a){var b;if(arguments.length<=1){var c=arguments[0];if(b=Gm(c))a:{b=ab(c);var d=["properties"];if(xa(b)&&xa(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(Gm(c)){b=this;for(var f in c)d=c[f],b=Q("Element.set",b,f,d)}else if(c instanceof O&&Um("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%
585
+ 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 Bm(this,b)};S.prototype.set=S.prototype.set;var T=function(a,b,c,d){if(!(this instanceof T))return Am(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}dn();e=b!=null||c!=null||d!=null;if(a instanceof O&&!(a instanceof T&&a.nb)){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.I,a.args,a.U)}else{a instanceof T&&(a=a.encode());if(!en(a))throw Error("Invalid GeoJSON geometry: "+JSON.stringify(a));
586
+ O.call(this,null,null);this.nb=a.type;this.Xg=a.coordinates!=null?hb(a.coordinates):null;this.yh=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 Hi).va(a.crs));this.qc=c;this.qc===void 0&&"geodesic"in a&&(this.qc=!!a.geodesic);this.oc=d;this.oc===void 0&&"evenOdd"in a&&(this.oc=!!a.evenOdd)}};y(T,O);
587
+ x("ee.Geometry",T);var fn=!1,dn=function(){fn||(Vm(T,"Geometry","Geometry"),fn=!0)},gn=function(a,b){if(!(this instanceof gn))return hn(gn,arguments);var c=jn(gn,"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(gn,T);T.Point=gn;var kn=function(a,b){if(!(this instanceof kn))return hn(kn,arguments);T.call(this,jn(kn,"MultiPoint",2,arguments))};y(kn,T);
588
+ T.MultiPoint=kn;var ln=function(a,b,c,d){if(!(this instanceof ln))return hn(ln,arguments);var e=jn(ln,"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(ln,T);T.Rectangle=ln;
589
+ var mn=function(a,b,c,d){if(!(this instanceof mn))return hn(mn,arguments);var e=R(mn,arguments);a=e.west;b=e.south;c=e.east;d=e.north;e=[a,b,c,d];if(nn(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 "+
590
+ d+"\u00b0");b=Math.max(b,-90);d=Math.min(d,90);c-a>=360?(a=-180,c=180):(a=on(a),c=on(c),c<a&&(c+=360));T.call(this,{type:"Polygon",coordinates:[[[a,d],[a,b],[c,b],[c,d]]]},void 0,!1,!0)};y(mn,ln);T.BBox=mn;var on=function(a){a%=360;a>180?a-=360:a<-180&&(a+=360);return a},pn=function(a,b,c,d){if(!(this instanceof pn))return hn(pn,arguments);T.call(this,jn(pn,"LineString",2,arguments))};y(pn,T);T.LineString=pn;
591
+ var qn=function(a,b,c,d){if(!(this instanceof qn))return hn(qn,arguments);T.call(this,jn(qn,"LinearRing",2,arguments))};y(qn,T);T.LinearRing=qn;var rn=function(a,b,c,d){if(!(this instanceof rn))return hn(rn,arguments);T.call(this,jn(rn,"MultiLineString",3,arguments))};y(rn,T);T.MultiLineString=rn;var sn=function(a,b,c,d,e){if(!(this instanceof sn))return hn(sn,arguments);T.call(this,jn(sn,"Polygon",3,arguments))};y(sn,T);T.Polygon=sn;
592
+ var tn=function(a,b,c,d,e){if(!(this instanceof tn))return hn(tn,arguments);T.call(this,jn(tn,"MultiPolygon",4,arguments))};y(tn,T);T.MultiPolygon=tn;
592
593
  T.prototype.encode=function(a){if(!this.nb){if(!a)throw Error("Must specify an encode function when encoding a computed geometry.");return O.prototype.encode.call(this,a)}a={type:this.nb};this.nb=="GeometryCollection"?a.geometries=this.yh:a.coordinates=this.Xg;this.Zb!=null&&(a.crs={type:"name",properties:{name:this.Zb}});this.qc!=null&&(a.geodesic=this.qc);this.oc!=null&&(a.evenOdd=this.oc);return a};
593
- T.prototype.oe=function(){if(this.I)throw Error("Can't convert a computed Geometry to GeoJSON. Use evaluate() instead.");return this.encode()};T.prototype.toGeoJSON=T.prototype.oe;T.prototype.vg=function(){if(this.I)throw Error("Can't convert a computed Geometry to GeoJSON. Use evaluate() instead.");return(new Gi).va(this.oe())};T.prototype.toGeoJSONString=T.prototype.vg;T.prototype.va=function(a){return(a===void 0?0:a)?Fk(this):Pk(this)};T.prototype.serialize=T.prototype.va;
594
+ T.prototype.oe=function(){if(this.I)throw Error("Can't convert a computed Geometry to GeoJSON. Use evaluate() instead.");return this.encode()};T.prototype.toGeoJSON=T.prototype.oe;T.prototype.vg=function(){if(this.I)throw Error("Can't convert a computed Geometry to GeoJSON. Use evaluate() instead.");return(new Hi).va(this.oe())};T.prototype.toGeoJSONString=T.prototype.vg;T.prototype.va=function(a){return(a===void 0?0:a)?Gk(this):Qk(this)};T.prototype.serialize=T.prototype.va;
594
595
  T.prototype.toString=function(){return"ee.Geometry("+this.vg()+")"};
595
596
  T.prototype.na=function(a){if(!this.nb){if(!a)throw Error("Must specify a serializer when encoding a computed geometry.");return O.prototype.na.call(this,a)}var b={},c="";this.nb==="GeometryCollection"?(b.geometries=this.yh.map(function(e){return new T(e)}),c="GeometryConstructors.MultiGeometry"):(b.coordinates=this.Xg,c="GeometryConstructors."+this.nb);this.Zb!=null&&(b.crs=typeof this.Zb==="string"?(new P("Projection")).call(this.Zb):this.Zb);var d=this.nb!=="Point"&&this.nb!=="MultiPoint";this.qc!=
596
597
  null&&d&&(b.geodesic=this.qc);this.oc!=null&&(b.evenOdd=this.oc);return(new P(c)).apply(b).na(a)};
597
- var dn=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(!dn(b[a]))return!1;return!0}a=a.coordinates;var c=tn(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)},tn=function(a){if(!Array.isArray(a))return-1;if(Array.isArray(a[0])){for(var b=tn(a[0]),c=1;c<a.length;c++)if(tn(a[c])!=
598
- 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},un=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},hn=function(a,b,c,d){a=vn(a,d);if(mn(a.coordinates)||a.crs!=null||a.maxError!=null)return(new P("GeometryConstructors."+b)).apply(a);a.type=b;a.coordinates=wn(c,a.coordinates);(b=dc(["Polygon",
599
- "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},vn=function(a,b){if(bc(b,Dm))return{coordinates:gc(b)};a=R(a,b);a.coordinates=a.coords;delete a.coords;a.crs=a.proj;delete a.proj;return Xa(a,function(c){return c!=null})},mn=function(a){return Array.isArray(a)?ac(a,mn):a instanceof O},wn=function(a,b){if(a<1||a>4)throw Error("Unexpected nesting level.");bc(b,function(e){return typeof e===
600
- "number"})&&(b=un(b));for(var c=b,d=0;Array.isArray(c);)c=c[0],d++;for(;d<a;)b=[b],d++;if(tn(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},gn=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 zm(U,arguments);if(a instanceof U)return a;xn();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.I,a.args,a.U);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);
601
- var yn=!1,xn=function(){yn||(Um(U,"Filter","Filter"),yn=!0)},zn={equals:"equals",less_than:"lessThan",greater_than:"greaterThan",contains:"stringContains",starts_with:"stringStartsWith",ends_with:"stringEndsWith"};U.prototype.sc=function(){return Q("Filter.not",this)};U.prototype.not=U.prototype.sc;var An=function(a,b){var c=R(An,arguments);return Q("Filter.equals",c.name,c.value)};U.eq=An;var Bn=function(a,b){var c=R(Bn,arguments);return An(c.name,c.value).sc()};U.neq=Bn;
602
- var Cn=function(a,b){var c=R(Cn,arguments);return Q("Filter.lessThan",c.name,c.value)};U.lt=Cn;var Dn=function(a,b){var c=R(Dn,arguments);return Cn(c.name,c.value).sc()};U.gte=Dn;var En=function(a,b){var c=R(En,arguments);return Q("Filter.greaterThan",c.name,c.value)};U.gt=En;var Fn=function(a,b){var c=R(Fn,arguments);return En(c.name,c.value).sc()};U.lte=Fn;var Gn=function(a){return Q("Filter.and",Array.prototype.slice.call(arguments))};U.and=Gn;var Hn=function(a){return Q("Filter.or",Array.prototype.slice.call(arguments))};
603
- U.or=Hn;var In=function(a,b){var c=R(In,arguments);c=Q("DateRange",c.start,c.end);return Nm("Filter.dateRangeContains",{leftValue:c,rightField:"system:time_start"})};U.date=In;var Jn=function(a,b,c,d){var e=R(Jn,arguments);return Nm("Filter.listContains",{leftField:e.rightField,rightValue:e.leftValue,rightField:e.leftField,leftValue:e.rightValue})};U.inList=Jn;var Kn=function(a,b){return Nm("Filter.intersects",{leftField:".all",rightValue:Q("Feature",a),maxError:b})};U.bounds=Kn;
604
- U.prototype.name=function(){return"Filter"};var Ln=function(a,b,c){b=b.toLowerCase();var d=!1;b.lastIndexOf("not_",0)==0&&(d=!0,b=b.substring(4));if(!(b in zn))throw Error("Unknown filtering operator: "+b);a=Q("Filter."+zn[b],a,c);return d?a.sc():a};U.metadata=Ln;var V=function(a,b,c){S.call(this,a,b,c);Mn()};y(V,S);x("ee.Collection",V);var Nn=!1,Mn=function(){Nn||(Um(V,"Collection","Collection"),Um(V,"AggregateFeatureCollection","Collection","aggregate_"),Nn=!0)};V.prototype.filter=function(a){a=R(V.prototype.filter,arguments).filter;if(!a)throw Error("Empty filters.");return Am(this,Q("Collection.filter",this,a))};V.prototype.filter=V.prototype.filter;
605
- V.prototype.lf=function(a,b,c){var d=R(V.prototype.lf,arguments);return this.filter(Ln(d.name,d.operator,d.value))};V.prototype.filterMetadata=V.prototype.lf;V.prototype.sh=function(a){return this.filter(Kn(a))};V.prototype.filterBounds=V.prototype.sh;V.prototype.kf=function(a,b){var c=R(V.prototype.kf,arguments);return this.filter(In(c.start,c.end))};V.prototype.filterDate=V.prototype.kf;
606
- V.prototype.limit=function(a,b,c){var d=R(V.prototype.limit,arguments);return Am(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 Am(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};
607
- V.prototype.map=function(a,b){var c=this.elementType();return Am(this,Q("Collection.map",this,function(d){return a(new c(d))},b))};V.prototype.map=V.prototype.map;V.prototype.Hh=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.Hh;var X=function(a,b){if(!(this instanceof X))return zm(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)");On();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.I,a.args,a.U);else if(a.type=="Feature"){var c=a.properties||{};if("id"in a){if("system:index"in
608
- c)throw Error('Can\'t specify both "id" and "system:index".');c=gb(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 Pn=!1,On=function(){Pn||(Um(X,"Feature","Feature"),Pn=!0)};X.prototype.V=function(a){return X.L.V.call(this,a)};X.prototype.getInfo=X.prototype.V;
609
- 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 Yl=function(a){var b={},c=Qn(a.element,a);c=Rn(c,a,b);b.element=c;return b},Zl=function(a){var b={},c=a.element.map(function(d){d=Qn(d,a);return Rn(d,a,b)});b.element=c;return b},Rn=function(a,b,c){var d={},e=!1,g=["maxDimension","width","height","scale"];Wa(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 "+
610
- f);break;case "dimensions_consumed":e=!0;break;case "bbox":d.geometry!=null&&console.warn("Multiple request parameters converted to region.");if(!(f instanceof kn)){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 kn(l,null,!1)}else throw Error('Invalid bbox "{bbox}" type, must be of type Array<number>');}d.geometry=f;break;case "region":d.geometry!=
611
- 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 rn(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}});eb(d)||(d.input=a,a=g.some(function(f){return f in d})||e?Nm("Image.clipToBoundsAndScale",
612
- d):Nm("Image.clip",d));return a},Qn=function(a,b){var c=b.crs||"",d=b.crsTransform||b.crs_transform;d!=null&&(d=Sn(d));if(!c&&!d)return a;if(d&&!c)throw Error('Must specify "crs" if "crsTransform" is specified.');if(d){if(a=Nm("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 kn([0,
613
- 0,e[0],e[1]],c,!1))}}else a=Nm("Image.setDefaultProjection",{image:a,crs:c,crsTransform:[1,0,0,0,-1,0]});return a},Sn=function(a){if(typeof a==="string")try{a=JSON.parse(a)}catch(b){}if(Array.isArray(a)){if(a.length===6&&bc(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.");},Un=function(a,b){var c={};b=Tn(b,c);eb(b)||(b.image=a,a=Nm("Image.visualize",
614
- b));c.image=a;return c},Tn=function(a,b){var c="bands gain bias min max gamma palette opacity forceRgbOutput".split(" "),d={};Wa(a,function(e,g){dc(c,g)?d[g]=e:b[g]=e});return d},Bl=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);
615
- var f=c(b);e=c(e);e=c(Object.assign(f,e));g=Qn(g,e);return g=Rn(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=Qn(a,d),a=Rn(a,d,{}));return a};var N=function(a){if(!(this instanceof N))return zm(N,arguments);if(a instanceof N)return a;Vn();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(Dm(a))S.call(this,new P("Image.constant"),{value:a});else if(Em(a))S.call(this,new P("Image.load"),{id:a});else{if(Array.isArray(a))return Wn($b(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.I,
616
- a.args,a.U);else throw Error("Unrecognized argument type to convert to an Image: "+a);}else if(b==2){b=arguments[0];var c=arguments[1];if(Em(b)&&Dm(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 Xn=!1,Vn=function(){Xn||(Um(N,"Image","Image"),Xn=!0)};N.prototype.V=function(a){return N.L.V.call(this,a)};
617
- N.prototype.getInfo=N.prototype.V;N.prototype.S=function(a,b){var c=this,d=R(N.prototype.getMap,arguments),e=Un(this,d.visParams);if(d.callback){var g=d.callback;sl(e,function(f,l){f=f?Object.assign(f,{image:c}):void 0;g(f,l)})}else return d=sl(e),d.image=this,d};N.prototype.getMapId=N.prototype.S;N.prototype.getMap=N.prototype.S;N.prototype.getMap=N.prototype.getMap;
618
- N.prototype.rb=function(a,b){var c=R(N.prototype.rb,arguments),d=c.params?gb(c.params):{};d.image=this;if(c.callback){var e=c.callback;Cl(d,function(g,f){g?e(Dl(g)):e(null,f)})}else return Dl(Cl(d))};N.prototype.getDownloadURL=N.prototype.rb;N.prototype.Ld=function(a,b){var c=R(N.prototype.rb,arguments),d=c.params?gb(c.params):{},e={},g=Qn(this,d);g=Rn(g,d,e);d=Un(g,e);return c.callback?(xl(d,c.callback),null):xl(d)};N.prototype.getThumbId=N.prototype.Ld;
619
- N.prototype.uf=function(a,b){var c=R(N.prototype.uf,arguments);if(c.callback)this.Ld(c.params,function(d,e){var g="";if(e===void 0)try{g=Al(d)}catch(f){e=String(f.message)}c.callback(g,e)});else return Al(this.Ld(c.params))};N.prototype.getThumbURL=N.prototype.uf;var Yn=function(a,b,c){var d=R(Yn,arguments);return Wn([d.r,d.g,d.b],["vis-red","vis-green","vis-blue"])};N.rgb=Yn;var Zn=function(a){return Wn(Array.prototype.slice.call(arguments),null)};N.cat=Zn;
620
- var Wn=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};
621
- N.prototype.select=function(a){var b=Array.prototype.slice.call(arguments),c={input:this,bandSelectors:b[0]||[]};if(b.length>2||Em(b[0])||Dm(b[0])){for(var d=0;d<b.length;d++)if(!(Em(b[d])||Dm(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 Nm("Image.select",c)};N.prototype.select=N.prototype.select;
622
- 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 Hm;c.encode=function(m){return l.encode(m)};c.Fd=function(m,p){return Oj(Rk(m,l),p)};c.Z=function(){return{name:"",args:$b(d,function(m){return{name:m,type:"Image",optional:!1}},this),returns:"Image"}};return c.apply(e)};
623
- 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.mi=function(a){var b=arguments.length!=1||Em(arguments[0])?Array.from(arguments):arguments[0];return Q("Image.rename",this,b)};N.prototype.rename=N.prototype.mi;N.prototype.name=function(){return"Image"};var $n=function(a){if(this instanceof $n){if(arguments.length>1)throw Error("ee.List() only accepts 1 argument.");if(a instanceof $n)return a}else return zm($n,arguments);ao();if(Array.isArray(a))O.call(this,null,null),this.Uc=a;else if(a instanceof O)O.call(this,a.I,a.args,a.U),this.Uc=null;else throw Error("Invalid argument specified for ee.List(): "+a);};y($n,O);x("ee.List",$n);var bo=!1,ao=function(){bo||(Um($n,"List","List"),bo=!0)};
624
- $n.prototype.encode=function(a){return Array.isArray(this.Uc)?$b(this.Uc,function(b){return a(b)}):$n.L.encode.call(this,a)};$n.prototype.na=function(a){return Array.isArray(this.Uc)?Kj(Rk(a,this.Uc)):$n.L.na.call(this,a)};$n.prototype.name=function(){return"List"};var Y=function(a,b){if(!(this instanceof Y))return zm(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)");co();a instanceof T&&(a=new X(a));a instanceof X&&(a=[a]);if(Em(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:$b(a,function(d){return new X(d)})});else if(a instanceof $n)V.call(this,
625
- 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.I,a.args,a.U);else throw Error("Unrecognized argument type to convert to a FeatureCollection: "+a);};y(Y,V);x("ee.FeatureCollection",Y);var eo=!1,co=function(){eo||(Um(Y,"FeatureCollection","FeatureCollection"),eo=!0)};
626
- Y.prototype.S=function(a,b){var c=R(Y.prototype.S,arguments),d=Nm("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.V=function(a){return Y.L.V.call(this,a)};Y.prototype.getInfo=Y.prototype.V;
627
- Y.prototype.rb=function(a,b,c,d){var e=R(Y.prototype.rb,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)El(g,function(f,l){f?e.callback(Fl(f)):e.callback(null,l)});else return Fl(El(g))};Y.prototype.getDownloadURL=Y.prototype.rb;
628
- Y.prototype.select=function(a,b,c){if(Em(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 zm(Z,arguments);if(a instanceof Z)return a;if(arguments.length!=1)throw Error("The ImageCollection constructor takes exactly 1 argument ("+arguments.length+" given)");fo();a instanceof N&&(a=[a]);if(Em(a))V.call(this,new P("ImageCollection.load"),{id:a});else if(Array.isArray(a))V.call(this,new P("ImageCollection.fromImages"),{images:$b(a,function(b){return new N(b)})});else if(a instanceof $n)V.call(this,new P("ImageCollection.fromImages"),{images:a});
629
- else if(a instanceof O)V.call(this,a.I,a.args,a.U);else throw Error("Unrecognized argument type to convert to an ImageCollection: "+a);};y(Z,V);x("ee.ImageCollection",Z);var go=!1,fo=function(){go||(Um(Z,"ImageCollection","ImageCollection"),Um(Z,"reduce","ImageCollection"),go=!0)};Z.prototype.sf=function(a,b){var c=R(Z.prototype.sf,arguments);return ho(this,c,["png","jpg","jpeg"],"filmstrip")};Z.prototype.getFilmstripThumbURL=Z.prototype.sf;
630
- Z.prototype.vf=function(a,b){var c=R(Z.prototype.vf,arguments);return ho(this,c,["gif"],"video")};Z.prototype.getVideoThumbURL=Z.prototype.vf;
631
- var ho=function(a,b,c,d){var e={};a=a.map(function(l){l=Qn(l,b.params);return Rn(l,b.params,e)});var g={},f=Tn(e,g);g.imageCollection=a.map(function(l){f.image=l;return Nm("Image.visualize",f)});b.params.dimensions!=null&&(g.dimensions=b.params.dimensions);if(g.format){if(!ac(c,function(l){return l.toLowerCase()==g.format.toLowerCase()}))throw Error("Invalid format specified.");}else g.format=c[0];c=xl;switch(d){case "video":c=yl;break;case "filmstrip":c=zl}if(b.callback)c(g,function(l,m){var p="";
632
- if(m===void 0)try{p=Al(l)}catch(v){m=String(v.message)}b.callback(p,m)});else return Al(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.V=function(a){return Z.L.V.call(this,a)};Z.prototype.getInfo=Z.prototype.V;
598
+ var en=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(!en(b[a]))return!1;return!0}a=a.coordinates;var c=un(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)},un=function(a){if(!Array.isArray(a))return-1;if(Array.isArray(a[0])){for(var b=un(a[0]),c=1;c<a.length;c++)if(un(a[c])!=
599
+ 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},vn=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},jn=function(a,b,c,d){a=wn(a,d);if(nn(a.coordinates)||a.crs!=null||a.maxError!=null)return(new P("GeometryConstructors."+b)).apply(a);a.type=b;a.coordinates=xn(c,a.coordinates);(b=dc(["Polygon",
600
+ "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},wn=function(a,b){if(bc(b,Em))return{coordinates:gc(b)};a=R(a,b);a.coordinates=a.coords;delete a.coords;a.crs=a.proj;delete a.proj;return Xa(a,function(c){return c!=null})},nn=function(a){return Array.isArray(a)?ac(a,nn):a instanceof O},xn=function(a,b){if(a<1||a>4)throw Error("Unexpected nesting level.");bc(b,function(e){return typeof e===
601
+ "number"})&&(b=vn(b));for(var c=b,d=0;Array.isArray(c);)c=c[0],d++;for(;d<a;)b=[b],d++;if(un(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},hn=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 Am(U,arguments);if(a instanceof U)return a;yn();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.I,a.args,a.U);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);
602
+ var zn=!1,yn=function(){zn||(Vm(U,"Filter","Filter"),zn=!0)},An={equals:"equals",less_than:"lessThan",greater_than:"greaterThan",contains:"stringContains",starts_with:"stringStartsWith",ends_with:"stringEndsWith"};U.prototype.sc=function(){return Q("Filter.not",this)};U.prototype.not=U.prototype.sc;var Bn=function(a,b){var c=R(Bn,arguments);return Q("Filter.equals",c.name,c.value)};U.eq=Bn;var Cn=function(a,b){var c=R(Cn,arguments);return Bn(c.name,c.value).sc()};U.neq=Cn;
603
+ var Dn=function(a,b){var c=R(Dn,arguments);return Q("Filter.lessThan",c.name,c.value)};U.lt=Dn;var En=function(a,b){var c=R(En,arguments);return Dn(c.name,c.value).sc()};U.gte=En;var Fn=function(a,b){var c=R(Fn,arguments);return Q("Filter.greaterThan",c.name,c.value)};U.gt=Fn;var Gn=function(a,b){var c=R(Gn,arguments);return Fn(c.name,c.value).sc()};U.lte=Gn;var Hn=function(a){return Q("Filter.and",Array.prototype.slice.call(arguments))};U.and=Hn;var In=function(a){return Q("Filter.or",Array.prototype.slice.call(arguments))};
604
+ U.or=In;var Jn=function(a,b){var c=R(Jn,arguments);c=Q("DateRange",c.start,c.end);return Om("Filter.dateRangeContains",{leftValue:c,rightField:"system:time_start"})};U.date=Jn;var Kn=function(a,b,c,d){var e=R(Kn,arguments);return Om("Filter.listContains",{leftField:e.rightField,rightValue:e.leftValue,rightField:e.leftField,leftValue:e.rightValue})};U.inList=Kn;var Ln=function(a,b){return Om("Filter.intersects",{leftField:".all",rightValue:Q("Feature",a),maxError:b})};U.bounds=Ln;
605
+ U.prototype.name=function(){return"Filter"};var Mn=function(a,b,c){b=b.toLowerCase();var d=!1;b.lastIndexOf("not_",0)==0&&(d=!0,b=b.substring(4));if(!(b in An))throw Error("Unknown filtering operator: "+b);a=Q("Filter."+An[b],a,c);return d?a.sc():a};U.metadata=Mn;var V=function(a,b,c){S.call(this,a,b,c);Nn()};y(V,S);x("ee.Collection",V);var On=!1,Nn=function(){On||(Vm(V,"Collection","Collection"),Vm(V,"AggregateFeatureCollection","Collection","aggregate_"),On=!0)};V.prototype.filter=function(a){a=R(V.prototype.filter,arguments).filter;if(!a)throw Error("Empty filters.");return Bm(this,Q("Collection.filter",this,a))};V.prototype.filter=V.prototype.filter;
606
+ V.prototype.lf=function(a,b,c){var d=R(V.prototype.lf,arguments);return this.filter(Mn(d.name,d.operator,d.value))};V.prototype.filterMetadata=V.prototype.lf;V.prototype.sh=function(a){return this.filter(Ln(a))};V.prototype.filterBounds=V.prototype.sh;V.prototype.kf=function(a,b){var c=R(V.prototype.kf,arguments);return this.filter(Jn(c.start,c.end))};V.prototype.filterDate=V.prototype.kf;
607
+ V.prototype.limit=function(a,b,c){var d=R(V.prototype.limit,arguments);return Bm(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 Bm(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};
608
+ V.prototype.map=function(a,b){var c=this.elementType();return Bm(this,Q("Collection.map",this,function(d){return a(new c(d))},b))};V.prototype.map=V.prototype.map;V.prototype.Hh=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.Hh;var X=function(a,b){if(!(this instanceof X))return Am(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)");Pn();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.I,a.args,a.U);else if(a.type=="Feature"){var c=a.properties||{};if("id"in a){if("system:index"in
609
+ c)throw Error('Can\'t specify both "id" and "system:index".');c=gb(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 Qn=!1,Pn=function(){Qn||(Vm(X,"Feature","Feature"),Qn=!0)};X.prototype.V=function(a){return X.L.V.call(this,a)};X.prototype.getInfo=X.prototype.V;
610
+ 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 Zl=function(a){var b={},c=Rn(a.element,a);c=Sn(c,a,b);b.element=c;return b},$l=function(a){var b={},c=a.element.map(function(d){d=Rn(d,a);return Sn(d,a,b)});b.element=c;return b},Sn=function(a,b,c){var d={},e=!1,g=["maxDimension","width","height","scale"];Wa(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 "+
611
+ f);break;case "dimensions_consumed":e=!0;break;case "bbox":d.geometry!=null&&console.warn("Multiple request parameters converted to region.");if(!(f instanceof ln)){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 ln(l,null,!1)}else throw Error('Invalid bbox "{bbox}" type, must be of type Array<number>');}d.geometry=f;break;case "region":d.geometry!=
612
+ 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 sn(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}});eb(d)||(d.input=a,a=g.some(function(f){return f in d})||e?Om("Image.clipToBoundsAndScale",
613
+ d):Om("Image.clip",d));return a},Rn=function(a,b){var c=b.crs||"",d=b.crsTransform||b.crs_transform;d!=null&&(d=Tn(d));if(!c&&!d)return a;if(d&&!c)throw Error('Must specify "crs" if "crsTransform" is specified.');if(d){if(a=Om("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 ln([0,
614
+ 0,e[0],e[1]],c,!1))}}else a=Om("Image.setDefaultProjection",{image:a,crs:c,crsTransform:[1,0,0,0,-1,0]});return a},Tn=function(a){if(typeof a==="string")try{a=JSON.parse(a)}catch(b){}if(Array.isArray(a)){if(a.length===6&&bc(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.");},Vn=function(a,b){var c={};b=Un(b,c);eb(b)||(b.image=a,a=Om("Image.visualize",
615
+ b));c.image=a;return c},Un=function(a,b){var c="bands gain bias min max gamma palette opacity forceRgbOutput".split(" "),d={};Wa(a,function(e,g){dc(c,g)?d[g]=e:b[g]=e});return d},Cl=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);
616
+ var f=c(b);e=c(e);e=c(Object.assign(f,e));g=Rn(g,e);return g=Sn(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=Rn(a,d),a=Sn(a,d,{}));return a};var N=function(a){if(!(this instanceof N))return Am(N,arguments);if(a instanceof N)return a;Wn();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(Em(a))S.call(this,new P("Image.constant"),{value:a});else if(Fm(a))S.call(this,new P("Image.load"),{id:a});else{if(Array.isArray(a))return Xn($b(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.I,
617
+ a.args,a.U);else throw Error("Unrecognized argument type to convert to an Image: "+a);}else if(b==2){b=arguments[0];var c=arguments[1];if(Fm(b)&&Em(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 Yn=!1,Wn=function(){Yn||(Vm(N,"Image","Image"),Yn=!0)};N.prototype.V=function(a){return N.L.V.call(this,a)};
618
+ N.prototype.getInfo=N.prototype.V;N.prototype.S=function(a,b){var c=this,d=R(N.prototype.getMap,arguments),e=Vn(this,d.visParams);if(d.callback){var g=d.callback;tl(e,function(f,l){f=f?Object.assign(f,{image:c}):void 0;g(f,l)})}else return d=tl(e),d.image=this,d};N.prototype.getMapId=N.prototype.S;N.prototype.getMap=N.prototype.S;N.prototype.getMap=N.prototype.getMap;
619
+ N.prototype.rb=function(a,b){var c=R(N.prototype.rb,arguments),d=c.params?gb(c.params):{};d.image=this;if(c.callback){var e=c.callback;Dl(d,function(g,f){g?e(El(g)):e(null,f)})}else return El(Dl(d))};N.prototype.getDownloadURL=N.prototype.rb;N.prototype.Ld=function(a,b){var c=R(N.prototype.rb,arguments),d=c.params?gb(c.params):{},e={},g=Rn(this,d);g=Sn(g,d,e);d=Vn(g,e);return c.callback?(yl(d,c.callback),null):yl(d)};N.prototype.getThumbId=N.prototype.Ld;
620
+ N.prototype.uf=function(a,b){var c=R(N.prototype.uf,arguments);if(c.callback)this.Ld(c.params,function(d,e){var g="";if(e===void 0)try{g=Bl(d)}catch(f){e=String(f.message)}c.callback(g,e)});else return Bl(this.Ld(c.params))};N.prototype.getThumbURL=N.prototype.uf;var Zn=function(a,b,c){var d=R(Zn,arguments);return Xn([d.r,d.g,d.b],["vis-red","vis-green","vis-blue"])};N.rgb=Zn;var $n=function(a){return Xn(Array.prototype.slice.call(arguments),null)};N.cat=$n;
621
+ var Xn=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};
622
+ N.prototype.select=function(a){var b=Array.prototype.slice.call(arguments),c={input:this,bandSelectors:b[0]||[]};if(b.length>2||Fm(b[0])||Em(b[0])){for(var d=0;d<b.length;d++)if(!(Fm(b[d])||Em(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 Om("Image.select",c)};N.prototype.select=N.prototype.select;
623
+ 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 Im;c.encode=function(m){return l.encode(m)};c.Fd=function(m,p){return Pj(Sk(m,l),p)};c.Z=function(){return{name:"",args:$b(d,function(m){return{name:m,type:"Image",optional:!1}},this),returns:"Image"}};return c.apply(e)};
624
+ 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.mi=function(a){var b=arguments.length!=1||Fm(arguments[0])?Array.from(arguments):arguments[0];return Q("Image.rename",this,b)};N.prototype.rename=N.prototype.mi;N.prototype.name=function(){return"Image"};var ao=function(a){if(this instanceof ao){if(arguments.length>1)throw Error("ee.List() only accepts 1 argument.");if(a instanceof ao)return a}else return Am(ao,arguments);bo();if(Array.isArray(a))O.call(this,null,null),this.Uc=a;else if(a instanceof O)O.call(this,a.I,a.args,a.U),this.Uc=null;else throw Error("Invalid argument specified for ee.List(): "+a);};y(ao,O);x("ee.List",ao);var co=!1,bo=function(){co||(Vm(ao,"List","List"),co=!0)};
625
+ ao.prototype.encode=function(a){return Array.isArray(this.Uc)?$b(this.Uc,function(b){return a(b)}):ao.L.encode.call(this,a)};ao.prototype.na=function(a){return Array.isArray(this.Uc)?Lj(Sk(a,this.Uc)):ao.L.na.call(this,a)};ao.prototype.name=function(){return"List"};var Y=function(a,b){if(!(this instanceof Y))return Am(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)");eo();a instanceof T&&(a=new X(a));a instanceof X&&(a=[a]);if(Fm(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:$b(a,function(d){return new X(d)})});else if(a instanceof ao)V.call(this,
626
+ 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.I,a.args,a.U);else throw Error("Unrecognized argument type to convert to a FeatureCollection: "+a);};y(Y,V);x("ee.FeatureCollection",Y);var fo=!1,eo=function(){fo||(Vm(Y,"FeatureCollection","FeatureCollection"),fo=!0)};
627
+ Y.prototype.S=function(a,b){var c=R(Y.prototype.S,arguments),d=Om("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.V=function(a){return Y.L.V.call(this,a)};Y.prototype.getInfo=Y.prototype.V;
628
+ Y.prototype.rb=function(a,b,c,d){var e=R(Y.prototype.rb,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)Fl(g,function(f,l){f?e.callback(Gl(f)):e.callback(null,l)});else return Gl(Fl(g))};Y.prototype.getDownloadURL=Y.prototype.rb;
629
+ Y.prototype.select=function(a,b,c){if(Fm(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 Am(Z,arguments);if(a instanceof Z)return a;if(arguments.length!=1)throw Error("The ImageCollection constructor takes exactly 1 argument ("+arguments.length+" given)");go();a instanceof N&&(a=[a]);if(Fm(a))V.call(this,new P("ImageCollection.load"),{id:a});else if(Array.isArray(a))V.call(this,new P("ImageCollection.fromImages"),{images:$b(a,function(b){return new N(b)})});else if(a instanceof ao)V.call(this,new P("ImageCollection.fromImages"),{images:a});
630
+ else if(a instanceof O)V.call(this,a.I,a.args,a.U);else throw Error("Unrecognized argument type to convert to an ImageCollection: "+a);};y(Z,V);x("ee.ImageCollection",Z);var ho=!1,go=function(){ho||(Vm(Z,"ImageCollection","ImageCollection"),Vm(Z,"reduce","ImageCollection"),ho=!0)};Z.prototype.sf=function(a,b){var c=R(Z.prototype.sf,arguments);return io(this,c,["png","jpg","jpeg"],"filmstrip")};Z.prototype.getFilmstripThumbURL=Z.prototype.sf;
631
+ Z.prototype.vf=function(a,b){var c=R(Z.prototype.vf,arguments);return io(this,c,["gif"],"video")};Z.prototype.getVideoThumbURL=Z.prototype.vf;
632
+ var io=function(a,b,c,d){var e={};a=a.map(function(l){l=Rn(l,b.params);return Sn(l,b.params,e)});var g={},f=Un(e,g);g.imageCollection=a.map(function(l){f.image=l;return Om("Image.visualize",f)});b.params.dimensions!=null&&(g.dimensions=b.params.dimensions);if(g.format){if(!ac(c,function(l){return l.toLowerCase()==g.format.toLowerCase()}))throw Error("Invalid format specified.");}else g.format=c[0];c=yl;switch(d){case "video":c=zl;break;case "filmstrip":c=Al}if(b.callback)c(g,function(l,m){var p="";
633
+ if(m===void 0)try{p=Bl(l)}catch(v){m=String(v.message)}b.callback(p,m)});else return Bl(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.V=function(a){return Z.L.V.call(this,a)};Z.prototype.getInfo=Z.prototype.V;
633
634
  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.Ef=function(a,b,c,d){var e=R(Z.prototype.Ef,arguments);return this.map(function(g){return Q("Image.linkCollection",g,e.imageCollection,e.linkedBands,e.linkedProperties,e.matchPropertyName)})};Z.prototype.linkCollection=Z.prototype.Ef;Z.prototype.first=function(){return new N(Q("Collection.first",this))};Z.prototype.first=Z.prototype.first;
634
- Z.prototype.name=function(){return"ImageCollection"};Z.prototype.elementType=function(){return N};var io=function(a){this.Xe=a;this.id=null},ko=function(a){var b={element:jo(a)};Object.assign(b,a);b=Xa(b,function(c){return c!=null});return new io(b)};io.prototype.start=function(a,b){var c=this;E(this.Xe,"Task config must be specified for tasks to be started.");this.id=this.id||Gl(1)[0];Tb(this.id,"Failed to obtain task ID.");if(a)Xl(this.id,this.Xe,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=Xl(this.id,this.Xe).taskId)!=null?d:null}};
635
- io.prototype.start=io.prototype.start;var lo=function(a,b,c,d,e,g,f,l,m,p,v,z){var B=R(lo,arguments);B=mo(B,"ASSET","EXPORT_IMAGE");return ko(B)};x("module$contents$ee$batch_Export.image.toAsset",lo);var no=function(a,b,c,d,e,g,f,l,m,p,v,z,B,H,ea,W){var da=R(no,arguments);da=mo(da,"GOOGLE_CLOUD_STORAGE","EXPORT_IMAGE");return ko(da)};x("module$contents$ee$batch_Export.image.toCloudStorage",no);
636
- var oo=function(a,b,c,d,e,g,f,l,m,p,v,z,B,H,ea,W){var da=R(oo,arguments);da=mo(da,"DRIVE","EXPORT_IMAGE");return ko(da)};x("module$contents$ee$batch_Export.image.toDrive",oo);var po=function(a,b,c,d,e,g,f,l,m,p,v,z,B,H){var ea=R(po,arguments);ea=mo(ea,"GOOGLE_CLOUD_STORAGE","EXPORT_TILES");return ko(ea)};x("module$contents$ee$batch_Export.map.toCloudStorage",po);var qo=function(a,b,c,d,e,g,f,l){var m=R(qo,arguments);m=mo(m,"GOOGLE_CLOUD_STORAGE","EXPORT_FEATURES");return ko(m)};
637
- x("module$contents$ee$batch_Export.table.toCloudStorage",qo);var ro=function(a,b,c,d,e,g,f,l){var m=R(ro,arguments);m.type="EXPORT_FEATURES";m=mo(m,"DRIVE","EXPORT_FEATURES");return ko(m)};x("module$contents$ee$batch_Export.table.toDrive",ro);var so=function(a,b,c,d,e){var g=R(so,arguments);g=mo(g,"ASSET","EXPORT_FEATURES");return ko(g)};x("module$contents$ee$batch_Export.table.toAsset",so);var to=function(a,b,c,d,e,g,f,l){var m=R(to,arguments);m=mo(m,"FEATURE_VIEW","EXPORT_FEATURES");return ko(m)};
638
- x("module$contents$ee$batch_Export.table.toFeatureView",to);var uo=function(a,b,c,d,e,g,f,l){var m=R(uo,arguments);m=mo(m,"BIGQUERY","EXPORT_FEATURES");return ko(m)};x("module$contents$ee$batch_Export.table.toBigQuery",uo);var vo=function(a,b,c,d,e,g,f,l,m,p,v,z,B){var H=R(vo,arguments);H=mo(H,"GOOGLE_CLOUD_STORAGE","EXPORT_VIDEO");return ko(H)};x("module$contents$ee$batch_Export.video.toCloudStorage",vo);
639
- var wo=function(a,b,c,d,e,g,f,l,m,p,v,z,B){var H=R(wo,arguments);H=mo(H,"DRIVE","EXPORT_VIDEO");return ko(H)};x("module$contents$ee$batch_Export.video.toDrive",wo);var xo=function(a,b,c,d,e,g,f,l,m,p,v,z,B,H,ea,W,da,Hb,wq,xq,yq){var lj=R(xo,arguments);lj=mo(lj,"GOOGLE_CLOUD_STORAGE","EXPORT_VIDEO_MAP");return ko(lj)};x("module$contents$ee$batch_Export.videoMap.toCloudStorage",xo);var yo=function(a,b,c,d){var e=R(yo,arguments);e=mo(e,"ASSET","EXPORT_CLASSIFIER");return ko(e)};
640
- x("module$contents$ee$batch_Export.classifier.toAsset",yo);
641
- var jo=function(a){var b=function(d){return d in a},c=zo.find(b);E(cc(zo,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},mo=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==
642
- 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=Ao(e,a),delete e.formatOptions,Object.assign(e,a));e=Bo(e,b);e.crsTransform!=null&&(e.crs_transform=e.crsTransform,
643
- delete e.crsTransform);break;case "EXPORT_TILES":b=Bo(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&&
644
- (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=Bo(e,b);break;case "EXPORT_VIDEO":e=Co(e);e=Bo(e,b);e.crsTransform!=null&&
645
- (e.crs_transform=e.crsTransform,delete e.crsTransform);break;case "EXPORT_VIDEO_MAP":e=Co(e);e.version=e.version||"V1";e.stride=e.stride||1;e.tileDimensions={width:e.tileWidth||256,height:e.tileHeight||256};e=Bo(e,b);break;case "EXPORT_CLASSIFIER":e=Bo(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.oe();else if(typeof b==="string")try{b=Vb(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.");
646
- }if(!(u(b)&&"type"in b))try{new on(b)}catch(g){try{new rn(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},Bo=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=
647
- a.assetId||"";break;case "FEATURE_VIEW":a.mapName=a.mapName||"";break;case "BIGQUERY":a.table=a.table||"";break;default:b=wa(a.folder);if(!dc(["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},Do={GEO_TIFF:["cloudOptimized","fileDimensions","noData","shardSize"],TF_RECORD_IMAGE:"patchDimensions kernelSize compressed maxFileSize defaultValue tensorDepths sequenceData collapseBands maskedThreshold".split(" ")},
648
- Eo={GEO_TIFF:"tiff",TF_RECORD_IMAGE:"tfrecord"},Co=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},Ao=function(a,b){var c=a.formatOptions;if(c==null)return{};
649
- 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=Eo[b];for(var d=Do[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(!dc(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},
650
- zo=["image","collection","classifier"];var Fo=function(a){if(!(this instanceof Fo))return zm(Fo,arguments);if(a instanceof Fo)return a;Go();if(typeof a==="number")O.call(this,null,null),this.Xc=a;else if(a instanceof O)O.call(this,a.I,a.args,a.U),this.Xc=null;else throw Error("Invalid argument specified for ee.Number(): "+a);};y(Fo,O);x("ee.Number",Fo);var Ho=!1,Go=function(){Ho||(Um(Fo,"Number","Number"),Ho=!0)};Fo.prototype.encode=function(a){return typeof this.Xc==="number"?this.Xc:Fo.L.encode.call(this,a)};
651
- Fo.prototype.na=function(a){return typeof this.Xc==="number"?Kj(Rk(a,this.Xc)):Fo.L.na.call(this,a)};Fo.prototype.name=function(){return"Number"};var Io=function(a){if(!(this instanceof Io))return zm(Io,arguments);if(a instanceof Io)return a;Jo();if(typeof a==="string")O.call(this,null,null),this.kd=a;else if(a instanceof O)this.kd=null,a.I&&a.I.Z().returns=="String"?O.call(this,a.I,a.args,a.U):O.call(this,new P("String"),{input:a},null);else throw Error("Invalid argument specified for ee.String(): "+a);};y(Io,O);x("ee.String",Io);var Ko=!1,Jo=function(){Ko||(Um(Io,"String","String"),Ko=!0)};
652
- Io.prototype.encode=function(a){return typeof this.kd==="string"?this.kd:Io.L.encode.call(this,a)};Io.prototype.na=function(a){return typeof this.kd==="string"?Kj(Rk(a,this.kd)):Io.L.na.call(this,a)};Io.prototype.name=function(){return"String"};var Lo=function(a,b){if(!(this instanceof Lo))return zm(Lo,arguments);for(var c=[],d=a.args,e=0;e<d.length;e++){var g=d[e],f=g.type;c.push(Mo(f in Bm?Bm[f]:null,g.name))}if(b.apply(null,c)===void 0)throw Error("User-defined methods must return a value.");this.vb=No(a,c,b);this.Og=b.apply(null,c)};y(Lo,Hm);x("ee.CustomFunction",Lo);Lo.prototype.encode=function(a){return{type:"Function",argumentNames:$b(this.vb.args,function(b){return b.name}),body:a(this.Og)}};
653
- Lo.prototype.na=function(a){return Pj(this.vb.args.map(function(b){return b.name}),Rk(a,this.Og))};Lo.prototype.Fd=function(a,b){return Oj(Rk(a,this),b)};Lo.prototype.Z=function(){return this.vb};
654
- var Mo=function(a,b){a=a||Object;if(!(a.prototype instanceof O))if(a&&a!=Object)if(a==String)a=Io;else if(a==Number)a=Fo;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.I=null;this.U=d};c.prototype=a.prototype;return new c(b)},Oo=function(a,b){b={name:"",returns:"Object",args:$b(b,function(c){return{name:null,type:typeof c==="string"?c:c.prototype instanceof O?c.prototype.name.call(null):c==Number?
655
- "Number":c==String?"String":c==Array?"Array":c==Date?"Date":"Object"}})};return new Lo(b,a)},No=function(a,b,c){for(var d=[],e=0;e<b.length;e++)b[e].U===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.Ta?1:v.Fa?m(v.Fa.values):v.Ga?m(Object.values(v.Ga.values)):v.ya?m(Object.values(v.ya.arguments)):0};return m(Object.values(l.values))}(Jk(c.apply(null,b),"<unbound>"))+"_";for(e=0;e<
656
- d.length;e++){var g=d[e],f=c+e;b[g].U=f;a.args[g].name=f}return a};var Po=function(a,b){if(!(this instanceof Po))return zm(Po,arguments);if(a instanceof Po)return a;Qo();var c=R(Po,arguments);a=c.date;c=c.tz;var d=new P("Date"),e={},g=null;if(Em(a)){if(e.value=a,c)if(Em(c))e.timeZone=c;else throw Error("Invalid argument specified for ee.Date(..., opt_tz): "+c);}else if(Dm(a))e.value=a;else if(ya(a))e.value=Math.floor(a.getTime());else if(a instanceof O)a.I&&a.I.Z().returns=="Date"?(d=a.I,e=a.args,g=a.U):e.value=a;else throw Error("Invalid argument specified for ee.Date(): "+
657
- a);O.call(this,d,e,g)};y(Po,O);x("ee.Date",Po);var Ro=!1,Qo=function(){Ro||(Um(Po,"Date","Date"),Ro=!0)};Po.prototype.name=function(){return"Date"};x("ee.Deserializer",function(){});var To=function(a){return So(JSON.parse(a))};x("ee.Deserializer.fromJSON",To);var So=function(a){if("result"in a&&"values"in a)return Uo(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]=Vo(g,b)}a=a.value}return Vo(a,b)};x("ee.Deserializer.decode",So);
658
- var Vo=function(a,b){if(a===null||typeof a==="number"||typeof a==="boolean"||typeof a==="string")return a;if(Array.isArray(a))return $b(a,function(e){return Vo(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 Mo(Object,a);case "Date":a=a.value;if(typeof a!=="number")throw Error("Invalid date value: "+
659
- a);return new Po(a/1E3);case "Bytes":return Wo(new Ze({pb:a}),a);case "Invocation":return c="functionName"in a?Mm(a.functionName):Vo(a["function"],b),a=Ya(a.arguments,function(e){return Vo(e,b)}),Xo(c,a);case "Dictionary":return Ya(a.value,function(e){return Vo(e,b)});case "Function":var d=Vo(a.body,b);a={name:"",args:$b(a.argumentNames,function(e){return{name:e,type:"Object",optional:!1}}),returns:"Object"};return new Lo(a,function(){return d});case "Point":case "MultiPoint":case "LineString":case "MultiLineString":case "Polygon":case "MultiPolygon":case "LinearRing":case "GeometryCollection":return new T(a);
660
- case "CompoundValue":throw Error("Nested CompoundValues are disallowed.");default:throw Error("Unknown encoded object type: "+c);}},Wo=function(a,b){var c=function(){};q(c,Hj);c.prototype.encode=function(){return b};c.prototype.na=function(){return a};return new c},Xo=function(a,b){if(a instanceof Hm)return a.apply(b);if(a instanceof O){var c=function(){return Hm.apply(this,arguments)||this};q(c,Hm);c.prototype.encode=function(d){return a.encode(d)};c.prototype.Fd=function(d,e){return Oj(Rk(d,a),
661
- e)};return new O(new c,b)}throw Error("Invalid function value");},Yo=function(a){return Uo(JSON.parse(a))};x("ee.Deserializer.fromCloudApiJSON",Yo);
662
- var Uo=function(a){var b=Ma(pf,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.gb!==null)f=f.gb;else if(f.Fa!==null)f=f.Fa.values.map(e);else if(f.Ga!==null)f=Ya(f.Ga.values,e);else if(f.Kb!==null)f=Mo(Object,f.Kb);else if(f.Ta!==null)f=g(f.Ta);else if(f.ya!==null){var l=f.ya;f=l.Ua?d(l.Ua,"function"):Mm(l.functionName);l=Ya(l.arguments,e);f=Xo(f,l)}else f=f.pb!==null?Wo(new Ze({pb:f.pb}),f.pb):f.Va!==
663
- null?Wo(new Ze({Va:f.Va}),f.Va):f.Oa!==null?d(f.Oa,"reference"):null;return f},g=function(f){var l=d(f.body,"function body");f={args:f.lc.map(function(m){return{name:m,type:"Object",optional:!1}}),name:"",returns:"Object"};return new Lo(f,function(){return l})};return d(b.result,"result value")};x("ee.Deserializer.decodeCloudApi",Uo);var Zo=function(a){if(!(this instanceof Zo))return zm(Zo,arguments);if(a instanceof Zo)return a;$o();Fm(a)?(O.call(this,null,null),this.Jc=a):(a instanceof O&&a.I&&a.I.Z().returns=="Dictionary"?O.call(this,a.I,a.args,a.U):O.call(this,new P("Dictionary"),{input:a},null),this.Jc=null)};y(Zo,O);x("ee.Dictionary",Zo);var ap=!1,$o=function(){ap||(Um(Zo,"Dictionary","Dictionary"),ap=!0)};Zo.prototype.encode=function(a){return this.Jc!==null?a(this.Jc):Zo.L.encode.call(this,a)};
664
- Zo.prototype.na=function(a){return this.Jc!==null?Kj(Rk(a,this.Jc)):Zo.L.na.call(this,a)};Zo.prototype.name=function(){return"Dictionary"};var bp={};x("ee.Terrain",bp);bp.Af=!1;bp.initialize=function(){bp.Af||(Um(bp,"Terrain","Terrain"),bp.Af=!0)};bp.reset=function(){Vm(bp);bp.Af=!1};var hp=function(a,b,c,d,e,g){if(cp!="ready"||a||b){var f=c!=null;if(d)if(f)dp.push(d);else throw Error("Can't pass an error callback without a success callback.");if(cp=="loading"&&f)ep.push(c);else if(cp="loading",Yi(a,b,e,g),f)ep.push(c),Qm(fp,gp);else try{Qm(),fp()}catch(l){throw gp(l),l;}}else c&&c()};x("ee.initialize",hp);
665
- var kp=function(){cp="not_ready";wj=vj=hj=null;uj=!1;Om=null;Pm={};Vm(Po);Ro=!1;Vm(Zo);ap=!1;Vm(S);bn=!1;Vm(N);Xn=!1;Vm(X);Pn=!1;Vm(V);Nn=!1;Vm(Z);go=!1;Vm(Y);eo=!1;Vm(U);yn=!1;Vm(T);en=!1;Vm($n);bo=!1;Vm(Fo);Ho=!1;Vm(Io);Ko=!1;bp.reset();for(var a=t.ee,b=0;b<ip.length;b++){var c=ip[b];Vm(a[c]);delete a[c]}ip=[];Bm=a;a=jp;for(var d in a)delete a[d]};x("ee.reset",kp);var lp={Bl:"not_ready",LOADING:"loading",Cl:"ready"};x("ee.InitState",lp);x("ee.InitState.NOT_READY","not_ready");
666
- x("ee.InitState.LOADING","loading");x("ee.InitState.READY","ready");var cp="not_ready",ep=[],dp=[];x("ee.TILE_SIZE",256);var ip=[],jp={};x("ee.Algorithms",jp);var mp=function(a,b){typeof a==="string"&&(a=new P(a));return Hm.prototype.call.apply(a,Array.prototype.slice.call(arguments,1))};x("ee.call",mp);var np=function(a,b){typeof a==="string"&&(a=new P(a));return a.apply(b)};x("ee.apply",np);
667
- var fp=function(){if(cp=="loading"){try{Qo();$o();an();Vn();On();Mn();fo();co();xn();cn();ao();Go();Jo();bp.initialize();var a=Rm(),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]=op(l),ip.push(l),a[l]?(f[l].signature=a[l],f[l].signature.isConstructor=!0,Pm[l]=!0):f[l].signature={});Bm=f;pp()}catch(m){gp(m);return}cp="ready";for(dp=[];ep.length>0;)ep.shift()()}},
668
- gp=function(a){if(cp=="loading")for(cp="not_ready",ep=[];dp.length>0;)dp.shift()(a)},pp=function(){var a=Sm();ab(a).sort().forEach(function(b){var c=a[b],d=c.Z();if(!d.hidden){b=b.split(".");var e=jp;for(e.signature={};b.length>1;){var g=b[0];g in e||(e[g]={signature:{}});e=e[g];b=ic(b,1)}g=function(f){return Lm(c,void 0,Array.prototype.slice.call(arguments,0))};g.signature=d;g.toString=w(c.toString,c);e[b[0]]=g}})},op=function(a){var b=function(c){var d=t.ee[a],e=Array.prototype.slice.call(arguments),
669
- g=e.length==1;if(g&&e[0]instanceof d)return e[0];if(!(this instanceof d))return zm(d,e);d=Tm(a);var f=!(e[0]instanceof O),l=!1;d&&(g?f?l=!0:e[0].I&&e[0].I.Z().returns==d.Z().returns||(l=!0):l=!0);if(l)e=Gm(e,d.Z())?e[0]:Jm(d,e),O.call(this,d,Km(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.I,e.args,e.U)}};y(b,O);b.prototype.name=function(){return a};Um(b,a,a);return b};
670
- Im=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.I,a.args,a.U);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?
671
- 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 Oo(a,c)}if(a instanceof Hj)return a;throw Error("Argument is not a function: "+a);case "String":return Em(a)||a instanceof Io||a instanceof O?new Io(a):a;case "Dictionary":return Fm(a)?a:new Zo(a);case "List":return new $n(a);case "Number":case "Float":case "Long":case "Integer":case "Short":case "Byte":return new Fo(a);
672
- default:if(b in c){d=Tm(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 qp=function(a,b,c){ge.call(this,a,b,c);this.tileSize=new google.maps.Size(256,256);this.vh=new Xd;this.uh=new Xd};q(qp,ge);qp.prototype.getTile=function(a,b){var c=he(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=gi("DIV");rp(this,b,a,c,d);sp(this);return d};
673
- var rp=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.vh.set(c,f),this.uh.set(c,e),ec(this.yb,d),sp(this);else throw this.sg.add(d),Error("Unable to request floating point array buffers.");}},a);g.send()},sp=function(a){a.dispatchEvent(new ie(a.yb.length))};qp.prototype.J=function(){this.uh=this.vh=null;ge.prototype.J.call(this)};
674
- x("ee.FloatTileOverlay",qp);var tp=function(){this.je=new Map};tp.prototype.clear=function(){this.je.clear()};var up=function(a,b){a.je.has(b)||a.je.set(b,{throttleCount:0,errorCount:0,tileLatencies:[]});return a.je.get(b)};var vp=function(a){I.call(this);this.Sb=a;this.K={}};y(vp,I);var wp=[];vp.prototype.Wa=function(a,b,c,d){Array.isArray(b)||(b&&(wp[0]=b.toString()),b=wp);for(var e=0;e<b.length;e++){var g=zd(a,b[e],c||this.handleEvent,d||!1,this.Sb||this);if(!g)break;this.K[g.key]=g}return this};vp.prototype.Vc=function(a,b,c,d){return xp(this,a,b,c,d)};
675
- var xp=function(a,b,c,d,e,g){if(Array.isArray(c))for(var f=0;f<c.length;f++)xp(a,b,c[f],d,e,g);else{b=yd(b,c,d||a.handleEvent,e,g||a.Sb||a);if(!b)return a;a.K[b.key]=b}return a};vp.prototype.se=function(a,b,c,d,e){if(Array.isArray(b))for(var g=0;g<b.length;g++)this.se(a,b[g],c,d,e);else c=c||this.handleEvent,d=u(d)?!!d.capture:!!d,e=e||this.Sb||this,c=Ad(c),d=!!d,b=od(a)?a.Lc(b,c,d,e):a?(a=Cd(a))?a.Lc(b,c,d,e):null:null,b&&(Hd(b),delete this.K[b.key])};
676
- vp.prototype.fd=function(){Wa(this.K,function(a,b){this.K.hasOwnProperty(b)&&Hd(a)},this);this.K={}};vp.prototype.J=function(){vp.L.J.call(this);this.fd()};vp.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};var zp=function(a,b){a.name!==void 0?(this.name=a.name,this.code=db[a.name]):(this.code=a=Sb(a.code),this.name=yp(a));Mb.call(this,Dc("%s %s",this.name,b))};y(zp,Mb);
677
- var yp=function(a){var b=cb(function(c){return a==c});if(b===void 0)throw Error("Invalid code: "+a);return b},Ap={},db=(Ap.AbortError=3,Ap.EncodingError=5,Ap.InvalidModificationError=9,Ap.InvalidStateError=7,Ap.NotFoundError=1,Ap.NotReadableError=4,Ap.NoModificationAllowedError=6,Ap.PathExistsError=12,Ap.QuotaExceededError=10,Ap.SecurityError=2,Ap.SyntaxError=8,Ap.TypeMismatchError=11,Ap);var Bp=function(a,b){id.call(this,a.type,b);this.Ja=a};y(Bp,id);var Cp=function(){J.call(this);this.ba=new FileReader;this.ba.onloadstart=w(this.nc,this);this.ba.onprogress=w(this.nc,this);this.ba.onload=w(this.nc,this);this.ba.onabort=w(this.nc,this);this.ba.onerror=w(this.nc,this);this.ba.onloadend=w(this.nc,this)};y(Cp,J);h=Cp.prototype;h.abort=function(){try{this.ba.abort()}catch(a){throw new zp(a,"aborting read");}};h.Rb=function(){return this.ba.readyState};h.getError=function(){return this.ba.error&&new zp(this.ba.error,"reading file")};
678
- h.nc=function(a){this.dispatchEvent(new Bp(a,this))};h.J=function(){Cp.L.J.call(this);delete this.ba};h.readAsBinaryString=function(a){this.ba.readAsBinaryString(a)};h.readAsArrayBuffer=function(a){this.ba.readAsArrayBuffer(a)};h.readAsText=function(a,b){this.ba.readAsText(a,b)};var Dp=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 Ep=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.ie=new tp(a.getUniqueId());this.xb=new Xd;this.wb=0;this.rg=a;this.ib=new vp(this);this.radius=0};q(Ep,J);h=Ep.prototype;h.Le=function(a){return zd(this,"tile-load",a)};h.Yf=function(a){Hd(a)};
679
- h.Mc=function(){return Fp(this,"throttled")+Fp(this,"loading")+Fp(this,"new")};h.setOpacity=function(a){this.opacity=a;this.xb.forEach(function(b){Dp(b.la,this.opacity)},this)};h.getStats=function(){return this.ie};
680
- 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.rg.getUniqueId();a=[a,e].join("-");b=this.Zg(d,b,c,a);b.tileSize=this.tileSize;Dp(b.la,this.opacity);this.xb.set(a,b);Gp(this,b);this.dispatchEvent(new Hp(this.Mc()));this.rg.Ff(b,(new Date).getTime()/1E3);return b.la};h.releaseTile=function(a){var b=this.xb.get(a.id);this.xb.remove(a.id);b&&(b.abort(),hd(b))};
681
- var Gp=function(a,b){a.ib.Wa(b,"status-changed",function(){switch(b.getStatus()){case "loaded":var c=b.bl,d=(new Date).getTime();up(this.ie,b.zoom).tileLatencies.push(d-c);this.dispatchEvent(new Ip(this.Mc()));break;case "throttled":up(this.ie,b.zoom).throttleCount++;this.dispatchEvent(new Jp(b.Ca));break;case "failed":up(this.ie,b.zoom).errorCount++;this.dispatchEvent(new Kp(b.Ca,b.Pk));break;case "aborted":this.dispatchEvent(new Lp(this.Mc()))}})};
682
- Ep.prototype.J=function(){J.prototype.J.call(this);this.xb.forEach(hd);this.xb.clear();this.xb=null;hd(this.ib);this.rg=this.ib=null};var Fp=function(a,b){return cc(a.xb.aa(),function(c){return c.getStatus()==b})};x("ee.layers.AbstractOverlay",Ep);Ep.prototype.removeTileCallback=Ep.prototype.Yf;Ep.prototype.addTileCallback=Ep.prototype.Le;var Ip=function(){id.call(this,"tile-load")};q(Ip,id);var Hp=function(){id.call(this,"tile-start")};q(Hp,id);var Jp=function(){id.call(this,"tile-throttle")};
683
- q(Jp,id);var Kp=function(a,b){id.call(this,"tile-fail");this.errorMessage=b};q(Kp,id);var Lp=function(){id.call(this,"tile-abort")};q(Lp,id);var Mp=function(a,b,c,d){J.call(this);this.qb=a;this.zoom=b;this.la=c.createElement("div");this.la.id=d;this.fl=5;this.de=function(){};this.ke="new";this.pi=0;this.Cf=!1};q(Mp,J);Mp.prototype.getDiv=function(){return this.la};
684
- var Op=function(a){if(!a.Cf&&a.getStatus()=="loading")throw Error("startLoad() can only be invoked once. Use retryLoad() after the first attempt.");Np(a,"loading");a.bl=(new Date).getTime();a.Ya=new Mi;a.Ya.xc="blob";a.Ya.Wa("complete",function(){var b=Vi(a.Ya),c=a.Ya.getStatus();c==429&&Np(a,"throttled");if(Li(c)){var d={};Wa(Wi(a.Ya),function(g,f){d[f.toLowerCase()]=g});a.tl=d;a.yi=b;a.Kc()}else if(b){var e=new Cp;e.Wa("loadend",function(){a.hd(e.ba.result)});e.readAsText(b)}else a.hd("Failed to load tile.")},
685
- !1);a.Ya.Vc("ready",Ea(hd,a.Ya));a.Ca&&a.Ca.endsWith("&profiling=1")&&(a.Ca=a.Ca.replace("&profiling=1",""),a.Ya.headers.set("X-Earth-Engine-Computation-Profiling","1"));a.Ya.send(a.Ca,"GET")};h=Mp.prototype;h.Kc=function(){this.de(this);Np(this,"loaded")};h.Gc=function(){hd(this.Ya)};
686
- h.hd=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.pi>=this.fl?(this.Pk=b(a),Np(this,"failed")):(this.Gc(),setTimeout(w(function(){this.Ra||(this.Cf=!0,Op(this),this.Cf=!1)},this),1E3*Math.pow(2,this.pi++)))};h.abort=function(){this.Gc();this.getStatus()!="aborted"&&this.getStatus()!="removed"&&Np(this,this.ke in Pp?"removed":"aborted")};h.getStatus=function(){return this.ke};var Np=function(a,b){a.ke=b;a.dispatchEvent("status-changed")};
687
- Mp.prototype.J=function(){J.prototype.J.call(this);this.Gc();this.la.remove();this.de=null};var Pp={aborted:!0,failed:!0,loaded:!0,removed:!0};var Qp=function(){I.call(this)};q(Qp,I);var Rp=function(a,b){Ep.call(this,a,b);this.Qg=new Xd;this.mh=new Xd};q(Rp,Ep);Rp.prototype.Zg=function(a,b,c,d){var e=new Sp(a,b,c,d);this.ib.Wa(e,"status-changed",function(){e.getStatus()=="loaded"&&(this.Qg.set(a,new Float32Array(e.zd)),this.mh.set(a,e.la))});return e};Rp.prototype.J=function(){Ep.prototype.J.call(this);this.mh=this.Qg=null};x("ee.layers.BinaryOverlay",Rp);var Sp=function(a,b,c,d){Mp.call(this,a,b,c,d)};q(Sp,Mp);
688
- Sp.prototype.Kc=function(){var a=new Cp;a.Wa("loadend",function(){this.zd=a.ba.result;Mp.prototype.Kc.call(this)},void 0,this);a.readAsArrayBuffer(this.yi)};var Tp=function(a){J.call(this);this.Qc={};this.Pc={};this.Sb=new vp(this);this.X=a;this.Ve=!1};y(Tp,J);var Up=["load","abort","error"],Vp=function(a,b,c){if(c=typeof c==="string"?c:c.src)a.Ve=!1,a.Qc[b]={src:c,Yg:null}},Wp=function(a,b){delete a.Qc[b];var c=a.Pc[b];c&&(delete a.Pc[b],a.Sb.se(c,Up,a.Yh))};
689
- Tp.prototype.start=function(){var a=this.Qc;ab(a).forEach(function(b){var c=a[b];if(c&&(delete a[b],!this.Ra)){if(this.X){var d=this.X;d=(d?new li(ki(d)):Nb||(Nb=new li)).Nk("IMG")}else d=new Image;c.Yg&&(d.crossOrigin=c.Yg);this.Sb.Wa(d,Up,this.Yh);this.Pc[b]=d;d.id=b;d.src=c.src}},this)};
690
- Tp.prototype.Yh=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));Wp(this,b.id);this.dispatchEvent({type:a.type,target:b});!this.Ra&&eb(this.Pc)&&eb(this.Qc)&&!this.Ve&&(this.Ve=!0,this.dispatchEvent("complete"))}};Tp.prototype.J=function(){delete this.Qc;delete this.Pc;hd(this.Sb);Tp.L.J.call(this)};var Xp=function(a,b){Ep.call(this,a,b)};q(Xp,Ep);Xp.prototype.Zg=function(a,b,c,d){return new Yp(a,b,c,d)};x("ee.layers.ImageOverlay",Xp);var Yp=function(a,b,c,d){Mp.call(this,a,b,c,d);this.de=Zp;this.Ch=this.fa=this.Rd=null;this.Yc=""};q(Yp,Mp);
691
- Yp.prototype.Kc=function(){try{var a=Ib(this.yi);this.Yc=Gb(a);var b=this.Yc!==Fb.toString()?this.Yc:this.Ca}catch(c){b=this.Ca}this.fa=new Tp;Vp(this.fa,this.la.id+"-image",b);this.Ch=yd(this.fa,$p,function(c){c.type=="load"?(this.Rd=c.target,Mp.prototype.Kc.call(this)):this.hd()},void 0,this);this.fa.start()};Yp.prototype.Gc=function(){Mp.prototype.Gc.call(this);this.fa&&(Hd(this.Ch),hd(this.fa))};Yp.prototype.J=function(){Mp.prototype.J.call(this);this.Yc&&URL.revokeObjectURL(this.Yc)};
692
- var Zp=function(a){a.la.appendChild(a.Rd)},$p=["load","abort","error"];var aq=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 bq=function(a,b,c,d){I.call(this);this.Pg=a;this.Yb=b;this.mg=d||"";this.Xd=c};q(bq,Qp);bq.prototype.Ff=function(a){if(a.zoom<=this.Xd)a.Ca=this.Md(a.qb,a.zoom);else{var b=a.zoom-this.Xd,c=Math.pow(2,b);c=new google.maps.Point(Math.floor(a.qb.x/c),Math.floor(a.qb.y/c));a.Ca=this.Md(c,a.zoom-b);a.de=Ea(cq,this.Xd)}var d=w(a.hd,a);a.hd=w(function(e){e&&(e.includes("The specified key does not exist.")||e.includes("AccessDenied"))?Np(a,"loaded"):d(e)},a);Op(a)};
693
- bq.prototype.getUniqueId=function(){return[this.Pg,this.Yb,this.Xd,this.mg].join("-")};bq.prototype.Md=function(a,b){a=aq("https://storage.googleapis.com",this.Pg,this.Yb,String(b),String(a.x),String(a.y));this.mg&&(a+=this.mg);return a};
694
- var cq=function(a,b){if(!b.Rd)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.la.ownerDocument.createElement("canvas");d.setAttribute("width",c);d.setAttribute("height",c);b.la.appendChild(d);d=d.getContext("2d");d.imageSmoothingEnabled=!1;d.mozImageSmoothingEnabled=!1;d.webkitImageSmoothingEnabled=!1;d.drawImage(b.Rd,c/a*(b.qb.x%a),c/a*(b.qb.y%a),c/a,c/a,0,0,c,c)};x("ee.layers.CloudStorageTileSource",bq);var dq=function(){this.La=[];this.Qa=[]};h=dq.prototype;h.enqueue=function(a){this.Qa.push(a)};h.Ic=function(){this.La.length===0&&(this.La=this.Qa,this.La.reverse(),this.Qa=[]);return this.La.pop()};h.R=function(){return this.La.length+this.Qa.length};h.isEmpty=function(){return this.La.length===0&&this.Qa.length===0};h.clear=function(){this.La=[];this.Qa=[]};h.contains=function(a){return dc(this.La,a)||dc(this.Qa,a)};
695
- h.remove=function(a){var b=this.La;var c=Xb(b,a);c>=0?(fc(b,c),b=!0):b=!1;return b||ec(this.Qa,a)};h.aa=function(){for(var a=[],b=this.La.length-1;b>=0;--b)a.push(this.La[b]);b=this.Qa.length;for(var c=0;c<b;++c)a.push(this.Qa[c]);return a};var eq=function(a,b){I.call(this);this.Qh=a||0;this.Wd=b||10;if(this.Qh>this.Wd)throw Error("[goog.structs.Pool] Min can not be greater than max");this.Sa=new dq;this.tb=new ae;this.delay=0;this.Df=null;this.sd()};y(eq,I);eq.prototype.Nc=function(){var a=Date.now();if(!(this.Df!=null&&a-this.Df<this.delay)){for(var b;this.Sa.R()>0&&(b=this.Sa.Ic(),!this.Pf(b));)this.sd();!b&&this.R()<this.Wd&&(b=this.Ye());b&&(this.Df=a,this.tb.add(b));return b}};
696
- var fq=function(a,b){return a.tb.remove(b)?(a.Ke(b),!0):!1};h=eq.prototype;h.Ke=function(a){this.tb.remove(a);this.Pf(a)&&this.R()<this.Wd?this.Sa.enqueue(a):this.Dd(a)};h.sd=function(){for(var a=this.Sa;this.R()<this.Qh;)a.enqueue(this.Ye());for(;this.R()>this.Wd&&this.Sa.R()>0;)this.Dd(a.Ic())};h.Ye=function(){return{}};h.Dd=function(a){if(typeof a.dispose=="function")a.dispose();else for(var b in a)a[b]=null};h.Pf=function(a){return typeof a.Kk=="function"?a.Kk():!0};
697
- h.contains=function(a){return this.Sa.contains(a)||this.tb.contains(a)};h.R=function(){return this.Sa.R()+this.tb.R()};h.isEmpty=function(){return this.Sa.isEmpty()&&this.tb.isEmpty()};h.J=function(){eq.L.J.call(this);if(this.tb.R()>0)throw Error("[goog.structs.Pool] Objects not released");delete this.tb;for(var a=this.Sa;!a.isEmpty();)this.Dd(a.Ic());delete this.Sa};var gq=function(a,b){this.Ih=a;this.te=b};gq.prototype.getKey=function(){return this.Ih};gq.prototype.clone=function(){return new gq(this.Ih,this.te)};var hq=function(a){this.Aa=[];if(a)a:{if(a instanceof hq){var b=a.sb();a=a.aa();if(this.R()<=0){for(var c=this.Aa,d=0;d<b.length;d++)c.push(new gq(b[d],a[d]));break a}}else b=ab(a),a=$a(a);for(c=0;c<b.length;c++)iq(this,b[c],a[c])}},iq=function(a,b,c){var d=a.Aa;d.push(new gq(b,c));b=d.length-1;a=a.Aa;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=hq.prototype;
635
+ Z.prototype.name=function(){return"ImageCollection"};Z.prototype.elementType=function(){return N};var jo=function(a){this.Xe=a;this.id=null},lo=function(a){var b={element:ko(a)};Object.assign(b,a);b=Xa(b,function(c){return c!=null});return new jo(b)};jo.prototype.start=function(a,b){var c=this;E(this.Xe,"Task config must be specified for tasks to be started.");this.id=this.id||Hl(1)[0];Tb(this.id,"Failed to obtain task ID.");if(a)Yl(this.id,this.Xe,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=Yl(this.id,this.Xe).taskId)!=null?d:null}};
636
+ jo.prototype.start=jo.prototype.start;var mo=function(a,b,c,d,e,g,f,l,m,p,v,z){var B=R(mo,arguments);B=no(B,"ASSET","EXPORT_IMAGE");return lo(B)};x("module$contents$ee$batch_Export.image.toAsset",mo);var oo=function(a,b,c,d,e,g,f,l,m,p,v,z,B,H,ea,W){var da=R(oo,arguments);da=no(da,"GOOGLE_CLOUD_STORAGE","EXPORT_IMAGE");return lo(da)};x("module$contents$ee$batch_Export.image.toCloudStorage",oo);
637
+ var po=function(a,b,c,d,e,g,f,l,m,p,v,z,B,H,ea,W){var da=R(po,arguments);da=no(da,"DRIVE","EXPORT_IMAGE");return lo(da)};x("module$contents$ee$batch_Export.image.toDrive",po);var qo=function(a,b,c,d,e,g,f,l,m,p,v,z,B,H){var ea=R(qo,arguments);ea=no(ea,"GOOGLE_CLOUD_STORAGE","EXPORT_TILES");return lo(ea)};x("module$contents$ee$batch_Export.map.toCloudStorage",qo);var ro=function(a,b,c,d,e,g,f,l){var m=R(ro,arguments);m=no(m,"GOOGLE_CLOUD_STORAGE","EXPORT_FEATURES");return lo(m)};
638
+ x("module$contents$ee$batch_Export.table.toCloudStorage",ro);var so=function(a,b,c,d,e,g,f,l){var m=R(so,arguments);m.type="EXPORT_FEATURES";m=no(m,"DRIVE","EXPORT_FEATURES");return lo(m)};x("module$contents$ee$batch_Export.table.toDrive",so);var to=function(a,b,c,d,e){var g=R(to,arguments);g=no(g,"ASSET","EXPORT_FEATURES");return lo(g)};x("module$contents$ee$batch_Export.table.toAsset",to);var uo=function(a,b,c,d,e,g,f,l){var m=R(uo,arguments);m=no(m,"FEATURE_VIEW","EXPORT_FEATURES");return lo(m)};
639
+ x("module$contents$ee$batch_Export.table.toFeatureView",uo);var vo=function(a,b,c,d,e,g,f,l){var m=R(vo,arguments);m=no(m,"BIGQUERY","EXPORT_FEATURES");return lo(m)};x("module$contents$ee$batch_Export.table.toBigQuery",vo);var wo=function(a,b,c,d,e,g,f,l,m,p,v,z,B){var H=R(wo,arguments);H=no(H,"GOOGLE_CLOUD_STORAGE","EXPORT_VIDEO");return lo(H)};x("module$contents$ee$batch_Export.video.toCloudStorage",wo);
640
+ var xo=function(a,b,c,d,e,g,f,l,m,p,v,z,B){var H=R(xo,arguments);H=no(H,"DRIVE","EXPORT_VIDEO");return lo(H)};x("module$contents$ee$batch_Export.video.toDrive",xo);var yo=function(a,b,c,d,e,g,f,l,m,p,v,z,B,H,ea,W,da,Ib,xq,yq,zq){var lj=R(yo,arguments);lj=no(lj,"GOOGLE_CLOUD_STORAGE","EXPORT_VIDEO_MAP");return lo(lj)};x("module$contents$ee$batch_Export.videoMap.toCloudStorage",yo);var zo=function(a,b,c,d){var e=R(zo,arguments);e=no(e,"ASSET","EXPORT_CLASSIFIER");return lo(e)};
641
+ x("module$contents$ee$batch_Export.classifier.toAsset",zo);
642
+ var ko=function(a){var b=function(d){return d in a},c=Ao.find(b);E(cc(Ao,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},no=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==
643
+ 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=Bo(e,a),delete e.formatOptions,Object.assign(e,a));e=Co(e,b);e.crsTransform!=null&&(e.crs_transform=e.crsTransform,
644
+ delete e.crsTransform);break;case "EXPORT_TILES":b=Co(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&&
645
+ (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=Co(e,b);break;case "EXPORT_VIDEO":e=Do(e);e=Co(e,b);e.crsTransform!=null&&
646
+ (e.crs_transform=e.crsTransform,delete e.crsTransform);break;case "EXPORT_VIDEO_MAP":e=Do(e);e.version=e.version||"V1";e.stride=e.stride||1;e.tileDimensions={width:e.tileWidth||256,height:e.tileHeight||256};e=Co(e,b);break;case "EXPORT_CLASSIFIER":e=Co(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.oe();else if(typeof b==="string")try{b=Vb(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.");
647
+ }if(!(u(b)&&"type"in b))try{new pn(b)}catch(g){try{new sn(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},Co=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=
648
+ a.assetId||"";break;case "FEATURE_VIEW":a.mapName=a.mapName||"";break;case "BIGQUERY":a.table=a.table||"";break;default:b=wa(a.folder);if(!dc(["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},Eo={GEO_TIFF:["cloudOptimized","fileDimensions","noData","shardSize"],TF_RECORD_IMAGE:"patchDimensions kernelSize compressed maxFileSize defaultValue tensorDepths sequenceData collapseBands maskedThreshold".split(" ")},
649
+ Fo={GEO_TIFF:"tiff",TF_RECORD_IMAGE:"tfrecord"},Do=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},Bo=function(a,b){var c=a.formatOptions;if(c==null)return{};
650
+ 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=Fo[b];for(var d=Eo[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(!dc(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},
651
+ Ao=["image","collection","classifier"];var Go=function(a){if(!(this instanceof Go))return Am(Go,arguments);if(a instanceof Go)return a;Ho();if(typeof a==="number")O.call(this,null,null),this.Xc=a;else if(a instanceof O)O.call(this,a.I,a.args,a.U),this.Xc=null;else throw Error("Invalid argument specified for ee.Number(): "+a);};y(Go,O);x("ee.Number",Go);var Io=!1,Ho=function(){Io||(Vm(Go,"Number","Number"),Io=!0)};Go.prototype.encode=function(a){return typeof this.Xc==="number"?this.Xc:Go.L.encode.call(this,a)};
652
+ Go.prototype.na=function(a){return typeof this.Xc==="number"?Lj(Sk(a,this.Xc)):Go.L.na.call(this,a)};Go.prototype.name=function(){return"Number"};var Jo=function(a){if(!(this instanceof Jo))return Am(Jo,arguments);if(a instanceof Jo)return a;Ko();if(typeof a==="string")O.call(this,null,null),this.kd=a;else if(a instanceof O)this.kd=null,a.I&&a.I.Z().returns=="String"?O.call(this,a.I,a.args,a.U):O.call(this,new P("String"),{input:a},null);else throw Error("Invalid argument specified for ee.String(): "+a);};y(Jo,O);x("ee.String",Jo);var Lo=!1,Ko=function(){Lo||(Vm(Jo,"String","String"),Lo=!0)};
653
+ Jo.prototype.encode=function(a){return typeof this.kd==="string"?this.kd:Jo.L.encode.call(this,a)};Jo.prototype.na=function(a){return typeof this.kd==="string"?Lj(Sk(a,this.kd)):Jo.L.na.call(this,a)};Jo.prototype.name=function(){return"String"};var Mo=function(a,b){if(!(this instanceof Mo))return Am(Mo,arguments);for(var c=[],d=a.args,e=0;e<d.length;e++){var g=d[e],f=g.type;c.push(No(f in Cm?Cm[f]:null,g.name))}if(b.apply(null,c)===void 0)throw Error("User-defined methods must return a value.");this.vb=Oo(a,c,b);this.Og=b.apply(null,c)};y(Mo,Im);x("ee.CustomFunction",Mo);Mo.prototype.encode=function(a){return{type:"Function",argumentNames:$b(this.vb.args,function(b){return b.name}),body:a(this.Og)}};
654
+ Mo.prototype.na=function(a){return Qj(this.vb.args.map(function(b){return b.name}),Sk(a,this.Og))};Mo.prototype.Fd=function(a,b){return Pj(Sk(a,this),b)};Mo.prototype.Z=function(){return this.vb};
655
+ var No=function(a,b){a=a||Object;if(!(a.prototype instanceof O))if(a&&a!=Object)if(a==String)a=Jo;else if(a==Number)a=Go;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.I=null;this.U=d};c.prototype=a.prototype;return new c(b)},Po=function(a,b){b={name:"",returns:"Object",args:$b(b,function(c){return{name:null,type:typeof c==="string"?c:c.prototype instanceof O?c.prototype.name.call(null):c==Number?
656
+ "Number":c==String?"String":c==Array?"Array":c==Date?"Date":"Object"}})};return new Mo(b,a)},Oo=function(a,b,c){for(var d=[],e=0;e<b.length;e++)b[e].U===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.Ta?1:v.Fa?m(v.Fa.values):v.Ga?m(Object.values(v.Ga.values)):v.ya?m(Object.values(v.ya.arguments)):0};return m(Object.values(l.values))}(Kk(c.apply(null,b),"<unbound>"))+"_";for(e=0;e<
657
+ d.length;e++){var g=d[e],f=c+e;b[g].U=f;a.args[g].name=f}return a};var Qo=function(a,b){if(!(this instanceof Qo))return Am(Qo,arguments);if(a instanceof Qo)return a;Ro();var c=R(Qo,arguments);a=c.date;c=c.tz;var d=new P("Date"),e={},g=null;if(Fm(a)){if(e.value=a,c)if(Fm(c))e.timeZone=c;else throw Error("Invalid argument specified for ee.Date(..., opt_tz): "+c);}else if(Em(a))e.value=a;else if(ya(a))e.value=Math.floor(a.getTime());else if(a instanceof O)a.I&&a.I.Z().returns=="Date"?(d=a.I,e=a.args,g=a.U):e.value=a;else throw Error("Invalid argument specified for ee.Date(): "+
658
+ a);O.call(this,d,e,g)};y(Qo,O);x("ee.Date",Qo);var So=!1,Ro=function(){So||(Vm(Qo,"Date","Date"),So=!0)};Qo.prototype.name=function(){return"Date"};x("ee.Deserializer",function(){});var Uo=function(a){return To(JSON.parse(a))};x("ee.Deserializer.fromJSON",Uo);var To=function(a){if("result"in a&&"values"in a)return Vo(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]=Wo(g,b)}a=a.value}return Wo(a,b)};x("ee.Deserializer.decode",To);
659
+ var Wo=function(a,b){if(a===null||typeof a==="number"||typeof a==="boolean"||typeof a==="string")return a;if(Array.isArray(a))return $b(a,function(e){return Wo(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 No(Object,a);case "Date":a=a.value;if(typeof a!=="number")throw Error("Invalid date value: "+
660
+ a);return new Qo(a/1E3);case "Bytes":return Xo(new Ze({pb:a}),a);case "Invocation":return c="functionName"in a?Nm(a.functionName):Wo(a["function"],b),a=Ya(a.arguments,function(e){return Wo(e,b)}),Yo(c,a);case "Dictionary":return Ya(a.value,function(e){return Wo(e,b)});case "Function":var d=Wo(a.body,b);a={name:"",args:$b(a.argumentNames,function(e){return{name:e,type:"Object",optional:!1}}),returns:"Object"};return new Mo(a,function(){return d});case "Point":case "MultiPoint":case "LineString":case "MultiLineString":case "Polygon":case "MultiPolygon":case "LinearRing":case "GeometryCollection":return new T(a);
661
+ case "CompoundValue":throw Error("Nested CompoundValues are disallowed.");default:throw Error("Unknown encoded object type: "+c);}},Xo=function(a,b){var c=function(){};q(c,Ij);c.prototype.encode=function(){return b};c.prototype.na=function(){return a};return new c},Yo=function(a,b){if(a instanceof Im)return a.apply(b);if(a instanceof O){var c=function(){return Im.apply(this,arguments)||this};q(c,Im);c.prototype.encode=function(d){return a.encode(d)};c.prototype.Fd=function(d,e){return Pj(Sk(d,a),
662
+ e)};return new O(new c,b)}throw Error("Invalid function value");},Zo=function(a){return Vo(JSON.parse(a))};x("ee.Deserializer.fromCloudApiJSON",Zo);
663
+ var Vo=function(a){var b=Ma(pf,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.gb!==null)f=f.gb;else if(f.Fa!==null)f=f.Fa.values.map(e);else if(f.Ga!==null)f=Ya(f.Ga.values,e);else if(f.Kb!==null)f=No(Object,f.Kb);else if(f.Ta!==null)f=g(f.Ta);else if(f.ya!==null){var l=f.ya;f=l.Ua?d(l.Ua,"function"):Nm(l.functionName);l=Ya(l.arguments,e);f=Yo(f,l)}else f=f.pb!==null?Xo(new Ze({pb:f.pb}),f.pb):f.Va!==
664
+ null?Xo(new Ze({Va:f.Va}),f.Va):f.Oa!==null?d(f.Oa,"reference"):null;return f},g=function(f){var l=d(f.body,"function body");f={args:f.lc.map(function(m){return{name:m,type:"Object",optional:!1}}),name:"",returns:"Object"};return new Mo(f,function(){return l})};return d(b.result,"result value")};x("ee.Deserializer.decodeCloudApi",Vo);var $o=function(a){if(!(this instanceof $o))return Am($o,arguments);if(a instanceof $o)return a;ap();Gm(a)?(O.call(this,null,null),this.Jc=a):(a instanceof O&&a.I&&a.I.Z().returns=="Dictionary"?O.call(this,a.I,a.args,a.U):O.call(this,new P("Dictionary"),{input:a},null),this.Jc=null)};y($o,O);x("ee.Dictionary",$o);var bp=!1,ap=function(){bp||(Vm($o,"Dictionary","Dictionary"),bp=!0)};$o.prototype.encode=function(a){return this.Jc!==null?a(this.Jc):$o.L.encode.call(this,a)};
665
+ $o.prototype.na=function(a){return this.Jc!==null?Lj(Sk(a,this.Jc)):$o.L.na.call(this,a)};$o.prototype.name=function(){return"Dictionary"};var cp={};x("ee.Terrain",cp);cp.Af=!1;cp.initialize=function(){cp.Af||(Vm(cp,"Terrain","Terrain"),cp.Af=!0)};cp.reset=function(){Wm(cp);cp.Af=!1};var ip=function(a,b,c,d,e,g){if(dp!="ready"||a||b){var f=c!=null;if(d)if(f)ep.push(d);else throw Error("Can't pass an error callback without a success callback.");if(dp=="loading"&&f)fp.push(c);else if(dp="loading",Zi(a,b,e,g),f)fp.push(c),Rm(gp,hp);else try{Rm(),gp()}catch(l){throw hp(l),l;}}else c&&c()};x("ee.initialize",ip);
666
+ var lp=function(){dp="not_ready";xj=wj=ij=null;vj=!1;Pm=null;Qm={};Wm(Qo);So=!1;Wm($o);bp=!1;Wm(S);cn=!1;Wm(N);Yn=!1;Wm(X);Qn=!1;Wm(V);On=!1;Wm(Z);ho=!1;Wm(Y);fo=!1;Wm(U);zn=!1;Wm(T);fn=!1;Wm(ao);co=!1;Wm(Go);Io=!1;Wm(Jo);Lo=!1;cp.reset();for(var a=t.ee,b=0;b<jp.length;b++){var c=jp[b];Wm(a[c]);delete a[c]}jp=[];Cm=a;a=kp;for(var d in a)delete a[d]};x("ee.reset",lp);var mp={Bl:"not_ready",LOADING:"loading",Cl:"ready"};x("ee.InitState",mp);x("ee.InitState.NOT_READY","not_ready");
667
+ x("ee.InitState.LOADING","loading");x("ee.InitState.READY","ready");var dp="not_ready",fp=[],ep=[];x("ee.TILE_SIZE",256);var jp=[],kp={};x("ee.Algorithms",kp);var np=function(a,b){typeof a==="string"&&(a=new P(a));return Im.prototype.call.apply(a,Array.prototype.slice.call(arguments,1))};x("ee.call",np);var op=function(a,b){typeof a==="string"&&(a=new P(a));return a.apply(b)};x("ee.apply",op);
668
+ var gp=function(){if(dp=="loading"){try{Ro();ap();bn();Wn();Pn();Nn();go();eo();yn();dn();bo();Ho();Ko();cp.initialize();var a=Sm(),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]=pp(l),jp.push(l),a[l]?(f[l].signature=a[l],f[l].signature.isConstructor=!0,Qm[l]=!0):f[l].signature={});Cm=f;qp()}catch(m){hp(m);return}dp="ready";for(ep=[];fp.length>0;)fp.shift()()}},
669
+ hp=function(a){if(dp=="loading")for(dp="not_ready",fp=[];ep.length>0;)ep.shift()(a)},qp=function(){var a=Tm();ab(a).sort().forEach(function(b){var c=a[b],d=c.Z();if(!d.hidden){b=b.split(".");var e=kp;for(e.signature={};b.length>1;){var g=b[0];g in e||(e[g]={signature:{}});e=e[g];b=ic(b,1)}g=function(f){return Mm(c,void 0,Array.prototype.slice.call(arguments,0))};g.signature=d;g.toString=w(c.toString,c);e[b[0]]=g}})},pp=function(a){var b=function(c){var d=t.ee[a],e=Array.prototype.slice.call(arguments),
670
+ g=e.length==1;if(g&&e[0]instanceof d)return e[0];if(!(this instanceof d))return Am(d,e);d=Um(a);var f=!(e[0]instanceof O),l=!1;d&&(g?f?l=!0:e[0].I&&e[0].I.Z().returns==d.Z().returns||(l=!0):l=!0);if(l)e=Hm(e,d.Z())?e[0]:Km(d,e),O.call(this,d,Lm(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.I,e.args,e.U)}};y(b,O);b.prototype.name=function(){return a};Vm(b,a,a);return b};
671
+ Jm=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.I,a.args,a.U);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?
672
+ 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 Po(a,c)}if(a instanceof Ij)return a;throw Error("Argument is not a function: "+a);case "String":return Fm(a)||a instanceof Jo||a instanceof O?new Jo(a):a;case "Dictionary":return Gm(a)?a:new $o(a);case "List":return new ao(a);case "Number":case "Float":case "Long":case "Integer":case "Short":case "Byte":return new Go(a);
673
+ default:if(b in c){d=Um(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 rp=function(a,b,c){ge.call(this,a,b,c);this.tileSize=new google.maps.Size(256,256);this.vh=new Xd;this.uh=new Xd};q(rp,ge);rp.prototype.getTile=function(a,b){var c=he(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=hi("DIV");sp(this,b,a,c,d);tp(this);return d};
674
+ var sp=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.vh.set(c,f),this.uh.set(c,e),ec(this.yb,d),tp(this);else throw this.sg.add(d),Error("Unable to request floating point array buffers.");}},a);g.send()},tp=function(a){a.dispatchEvent(new ie(a.yb.length))};rp.prototype.J=function(){this.uh=this.vh=null;ge.prototype.J.call(this)};
675
+ x("ee.FloatTileOverlay",rp);var up=function(){this.je=new Map};up.prototype.clear=function(){this.je.clear()};var vp=function(a,b){a.je.has(b)||a.je.set(b,{throttleCount:0,errorCount:0,tileLatencies:[]});return a.je.get(b)};var wp=function(a){I.call(this);this.Sb=a;this.K={}};y(wp,I);var xp=[];wp.prototype.Wa=function(a,b,c,d){Array.isArray(b)||(b&&(xp[0]=b.toString()),b=xp);for(var e=0;e<b.length;e++){var g=zd(a,b[e],c||this.handleEvent,d||!1,this.Sb||this);if(!g)break;this.K[g.key]=g}return this};wp.prototype.Vc=function(a,b,c,d){return yp(this,a,b,c,d)};
676
+ var yp=function(a,b,c,d,e,g){if(Array.isArray(c))for(var f=0;f<c.length;f++)yp(a,b,c[f],d,e,g);else{b=yd(b,c,d||a.handleEvent,e,g||a.Sb||a);if(!b)return a;a.K[b.key]=b}return a};wp.prototype.se=function(a,b,c,d,e){if(Array.isArray(b))for(var g=0;g<b.length;g++)this.se(a,b[g],c,d,e);else c=c||this.handleEvent,d=u(d)?!!d.capture:!!d,e=e||this.Sb||this,c=Ad(c),d=!!d,b=od(a)?a.Lc(b,c,d,e):a?(a=Cd(a))?a.Lc(b,c,d,e):null:null,b&&(Hd(b),delete this.K[b.key])};
677
+ wp.prototype.fd=function(){Wa(this.K,function(a,b){this.K.hasOwnProperty(b)&&Hd(a)},this);this.K={}};wp.prototype.J=function(){wp.L.J.call(this);this.fd()};wp.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};var Ap=function(a,b){a.name!==void 0?(this.name=a.name,this.code=db[a.name]):(this.code=a=Sb(a.code),this.name=zp(a));Mb.call(this,Dc("%s %s",this.name,b))};y(Ap,Mb);
678
+ var zp=function(a){var b=cb(function(c){return a==c});if(b===void 0)throw Error("Invalid code: "+a);return b},Bp={},db=(Bp.AbortError=3,Bp.EncodingError=5,Bp.InvalidModificationError=9,Bp.InvalidStateError=7,Bp.NotFoundError=1,Bp.NotReadableError=4,Bp.NoModificationAllowedError=6,Bp.PathExistsError=12,Bp.QuotaExceededError=10,Bp.SecurityError=2,Bp.SyntaxError=8,Bp.TypeMismatchError=11,Bp);var Cp=function(a,b){id.call(this,a.type,b);this.Ja=a};y(Cp,id);var Dp=function(){J.call(this);this.ba=new FileReader;this.ba.onloadstart=w(this.nc,this);this.ba.onprogress=w(this.nc,this);this.ba.onload=w(this.nc,this);this.ba.onabort=w(this.nc,this);this.ba.onerror=w(this.nc,this);this.ba.onloadend=w(this.nc,this)};y(Dp,J);h=Dp.prototype;h.abort=function(){try{this.ba.abort()}catch(a){throw new Ap(a,"aborting read");}};h.Rb=function(){return this.ba.readyState};h.getError=function(){return this.ba.error&&new Ap(this.ba.error,"reading file")};
679
+ h.nc=function(a){this.dispatchEvent(new Cp(a,this))};h.J=function(){Dp.L.J.call(this);delete this.ba};h.readAsBinaryString=function(a){this.ba.readAsBinaryString(a)};h.readAsArrayBuffer=function(a){this.ba.readAsArrayBuffer(a)};h.readAsText=function(a,b){this.ba.readAsText(a,b)};var Ep=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 Fp=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.ie=new up(a.getUniqueId());this.xb=new Xd;this.wb=0;this.rg=a;this.ib=new wp(this);this.radius=0};q(Fp,J);h=Fp.prototype;h.Le=function(a){return zd(this,"tile-load",a)};h.Yf=function(a){Hd(a)};
680
+ h.Mc=function(){return Gp(this,"throttled")+Gp(this,"loading")+Gp(this,"new")};h.setOpacity=function(a){this.opacity=a;this.xb.forEach(function(b){Ep(b.la,this.opacity)},this)};h.getStats=function(){return this.ie};
681
+ 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.rg.getUniqueId();a=[a,e].join("-");b=this.Zg(d,b,c,a);b.tileSize=this.tileSize;Ep(b.la,this.opacity);this.xb.set(a,b);Hp(this,b);this.dispatchEvent(new Ip(this.Mc()));this.rg.Ff(b,(new Date).getTime()/1E3);return b.la};h.releaseTile=function(a){var b=this.xb.get(a.id);this.xb.remove(a.id);b&&(b.abort(),hd(b))};
682
+ var Hp=function(a,b){a.ib.Wa(b,"status-changed",function(){switch(b.getStatus()){case "loaded":var c=b.bl,d=(new Date).getTime();vp(this.ie,b.zoom).tileLatencies.push(d-c);this.dispatchEvent(new Jp(this.Mc()));break;case "throttled":vp(this.ie,b.zoom).throttleCount++;this.dispatchEvent(new Kp(b.Ca));break;case "failed":vp(this.ie,b.zoom).errorCount++;this.dispatchEvent(new Lp(b.Ca,b.Pk));break;case "aborted":this.dispatchEvent(new Mp(this.Mc()))}})};
683
+ Fp.prototype.J=function(){J.prototype.J.call(this);this.xb.forEach(hd);this.xb.clear();this.xb=null;hd(this.ib);this.rg=this.ib=null};var Gp=function(a,b){return cc(a.xb.aa(),function(c){return c.getStatus()==b})};x("ee.layers.AbstractOverlay",Fp);Fp.prototype.removeTileCallback=Fp.prototype.Yf;Fp.prototype.addTileCallback=Fp.prototype.Le;var Jp=function(){id.call(this,"tile-load")};q(Jp,id);var Ip=function(){id.call(this,"tile-start")};q(Ip,id);var Kp=function(){id.call(this,"tile-throttle")};
684
+ q(Kp,id);var Lp=function(a,b){id.call(this,"tile-fail");this.errorMessage=b};q(Lp,id);var Mp=function(){id.call(this,"tile-abort")};q(Mp,id);var Np=function(a,b,c,d){J.call(this);this.qb=a;this.zoom=b;this.la=c.createElement("div");this.la.id=d;this.fl=5;this.de=function(){};this.ke="new";this.pi=0;this.Cf=!1};q(Np,J);Np.prototype.getDiv=function(){return this.la};
685
+ var Pp=function(a){if(!a.Cf&&a.getStatus()=="loading")throw Error("startLoad() can only be invoked once. Use retryLoad() after the first attempt.");Op(a,"loading");a.bl=(new Date).getTime();a.Ya=new Ni;a.Ya.xc="blob";a.Ya.Wa("complete",function(){var b=Wi(a.Ya),c=a.Ya.getStatus();c==429&&Op(a,"throttled");if(Mi(c)){var d={};Wa(Xi(a.Ya),function(g,f){d[f.toLowerCase()]=g});a.tl=d;a.yi=b;a.Kc()}else if(b){var e=new Dp;e.Wa("loadend",function(){a.hd(e.ba.result)});e.readAsText(b)}else a.hd("Failed to load tile.")},
686
+ !1);a.Ya.Vc("ready",Ea(hd,a.Ya));a.Ca&&a.Ca.endsWith("&profiling=1")&&(a.Ca=a.Ca.replace("&profiling=1",""),a.Ya.headers.set("X-Earth-Engine-Computation-Profiling","1"));a.Ya.send(a.Ca,"GET")};h=Np.prototype;h.Kc=function(){this.de(this);Op(this,"loaded")};h.Gc=function(){hd(this.Ya)};
687
+ h.hd=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.pi>=this.fl?(this.Pk=b(a),Op(this,"failed")):(this.Gc(),setTimeout(w(function(){this.Ra||(this.Cf=!0,Pp(this),this.Cf=!1)},this),1E3*Math.pow(2,this.pi++)))};h.abort=function(){this.Gc();this.getStatus()!="aborted"&&this.getStatus()!="removed"&&Op(this,this.ke in Qp?"removed":"aborted")};h.getStatus=function(){return this.ke};var Op=function(a,b){a.ke=b;a.dispatchEvent("status-changed")};
688
+ Np.prototype.J=function(){J.prototype.J.call(this);this.Gc();this.la.remove();this.de=null};var Qp={aborted:!0,failed:!0,loaded:!0,removed:!0};var Rp=function(){I.call(this)};q(Rp,I);var Sp=function(a,b){Fp.call(this,a,b);this.Qg=new Xd;this.mh=new Xd};q(Sp,Fp);Sp.prototype.Zg=function(a,b,c,d){var e=new Tp(a,b,c,d);this.ib.Wa(e,"status-changed",function(){e.getStatus()=="loaded"&&(this.Qg.set(a,new Float32Array(e.zd)),this.mh.set(a,e.la))});return e};Sp.prototype.J=function(){Fp.prototype.J.call(this);this.mh=this.Qg=null};x("ee.layers.BinaryOverlay",Sp);var Tp=function(a,b,c,d){Np.call(this,a,b,c,d)};q(Tp,Np);
689
+ Tp.prototype.Kc=function(){var a=new Dp;a.Wa("loadend",function(){this.zd=a.ba.result;Np.prototype.Kc.call(this)},void 0,this);a.readAsArrayBuffer(this.yi)};var Up=function(a){J.call(this);this.Qc={};this.Pc={};this.Sb=new wp(this);this.X=a;this.Ve=!1};y(Up,J);var Vp=["load","abort","error"],Wp=function(a,b,c){if(c=typeof c==="string"?c:c.src)a.Ve=!1,a.Qc[b]={src:c,Yg:null}},Xp=function(a,b){delete a.Qc[b];var c=a.Pc[b];c&&(delete a.Pc[b],a.Sb.se(c,Vp,a.Yh))};
690
+ Up.prototype.start=function(){var a=this.Qc;ab(a).forEach(function(b){var c=a[b];if(c&&(delete a[b],!this.Ra)){if(this.X){var d=this.X;d=(d?new mi(li(d)):Nb||(Nb=new mi)).Nk("IMG")}else d=new Image;c.Yg&&(d.crossOrigin=c.Yg);this.Sb.Wa(d,Vp,this.Yh);this.Pc[b]=d;d.id=b;d.src=c.src}},this)};
691
+ Up.prototype.Yh=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));Xp(this,b.id);this.dispatchEvent({type:a.type,target:b});!this.Ra&&eb(this.Pc)&&eb(this.Qc)&&!this.Ve&&(this.Ve=!0,this.dispatchEvent("complete"))}};Up.prototype.J=function(){delete this.Qc;delete this.Pc;hd(this.Sb);Up.L.J.call(this)};var Yp=function(a,b){Fp.call(this,a,b)};q(Yp,Fp);Yp.prototype.Zg=function(a,b,c,d){return new Zp(a,b,c,d)};x("ee.layers.ImageOverlay",Yp);var Zp=function(a,b,c,d){Np.call(this,a,b,c,d);this.de=$p;this.Ch=this.fa=this.Rd=null;this.Yc=""};q(Zp,Np);
692
+ Zp.prototype.Kc=function(){try{var a=Hb(this.yi);this.Yc=Gb(a);var b=this.Yc!==Fb.toString()?this.Yc:this.Ca}catch(c){b=this.Ca}this.fa=new Up;Wp(this.fa,this.la.id+"-image",b);this.Ch=yd(this.fa,aq,function(c){c.type=="load"?(this.Rd=c.target,Np.prototype.Kc.call(this)):this.hd()},void 0,this);this.fa.start()};Zp.prototype.Gc=function(){Np.prototype.Gc.call(this);this.fa&&(Hd(this.Ch),hd(this.fa))};Zp.prototype.J=function(){Np.prototype.J.call(this);this.Yc&&URL.revokeObjectURL(this.Yc)};
693
+ var $p=function(a){a.la.appendChild(a.Rd)},aq=["load","abort","error"];var bq=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 cq=function(a,b,c,d){I.call(this);this.Pg=a;this.Yb=b;this.mg=d||"";this.Xd=c};q(cq,Rp);cq.prototype.Ff=function(a){if(a.zoom<=this.Xd)a.Ca=this.Md(a.qb,a.zoom);else{var b=a.zoom-this.Xd,c=Math.pow(2,b);c=new google.maps.Point(Math.floor(a.qb.x/c),Math.floor(a.qb.y/c));a.Ca=this.Md(c,a.zoom-b);a.de=Ea(dq,this.Xd)}var d=w(a.hd,a);a.hd=w(function(e){e&&(e.includes("The specified key does not exist.")||e.includes("AccessDenied"))?Op(a,"loaded"):d(e)},a);Pp(a)};
694
+ cq.prototype.getUniqueId=function(){return[this.Pg,this.Yb,this.Xd,this.mg].join("-")};cq.prototype.Md=function(a,b){a=bq("https://storage.googleapis.com",this.Pg,this.Yb,String(b),String(a.x),String(a.y));this.mg&&(a+=this.mg);return a};
695
+ var dq=function(a,b){if(!b.Rd)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.la.ownerDocument.createElement("canvas");d.setAttribute("width",c);d.setAttribute("height",c);b.la.appendChild(d);d=d.getContext("2d");d.imageSmoothingEnabled=!1;d.mozImageSmoothingEnabled=!1;d.webkitImageSmoothingEnabled=!1;d.drawImage(b.Rd,c/a*(b.qb.x%a),c/a*(b.qb.y%a),c/a,c/a,0,0,c,c)};x("ee.layers.CloudStorageTileSource",cq);function eq(){this.La=[];this.Qa=[]}h=eq.prototype;h.enqueue=function(a){this.Qa.push(a)};h.Ic=function(){this.La.length===0&&(this.La=this.Qa,this.La.reverse(),this.Qa=[]);return this.La.pop()};h.R=function(){return this.La.length+this.Qa.length};h.isEmpty=function(){return this.La.length===0&&this.Qa.length===0};h.clear=function(){this.La=[];this.Qa=[]};h.contains=function(a){return dc(this.La,a)||dc(this.Qa,a)};
696
+ h.remove=function(a){var b=this.La;var c=Xb(b,a);c>=0?(fc(b,c),b=!0):b=!1;return b||ec(this.Qa,a)};h.aa=function(){for(var a=[],b=this.La.length-1;b>=0;--b)a.push(this.La[b]);b=this.Qa.length;for(var c=0;c<b;++c)a.push(this.Qa[c]);return a};var fq=function(a,b){I.call(this);this.Qh=a||0;this.Wd=b||10;if(this.Qh>this.Wd)throw Error("[goog.structs.Pool] Min can not be greater than max");this.Sa=new eq;this.tb=new ae;this.delay=0;this.Df=null;this.sd()};y(fq,I);fq.prototype.Nc=function(){var a=Date.now();if(!(this.Df!=null&&a-this.Df<this.delay)){for(var b;this.Sa.R()>0&&(b=this.Sa.Ic(),!this.Pf(b));)this.sd();!b&&this.R()<this.Wd&&(b=this.Ye());b&&(this.Df=a,this.tb.add(b));return b}};
697
+ var gq=function(a,b){return a.tb.remove(b)?(a.Ke(b),!0):!1};h=fq.prototype;h.Ke=function(a){this.tb.remove(a);this.Pf(a)&&this.R()<this.Wd?this.Sa.enqueue(a):this.Dd(a)};h.sd=function(){for(var a=this.Sa;this.R()<this.Qh;)a.enqueue(this.Ye());for(;this.R()>this.Wd&&this.Sa.R()>0;)this.Dd(a.Ic())};h.Ye=function(){return{}};h.Dd=function(a){if(typeof a.dispose=="function")a.dispose();else for(var b in a)a[b]=null};h.Pf=function(a){return typeof a.Kk=="function"?a.Kk():!0};
698
+ h.contains=function(a){return this.Sa.contains(a)||this.tb.contains(a)};h.R=function(){return this.Sa.R()+this.tb.R()};h.isEmpty=function(){return this.Sa.isEmpty()&&this.tb.isEmpty()};h.J=function(){fq.L.J.call(this);if(this.tb.R()>0)throw Error("[goog.structs.Pool] Objects not released");delete this.tb;for(var a=this.Sa;!a.isEmpty();)this.Dd(a.Ic());delete this.Sa};function hq(a,b){this.Ih=a;this.te=b}hq.prototype.getKey=function(){return this.Ih};hq.prototype.clone=function(){return new hq(this.Ih,this.te)};var iq=function(a){this.Aa=[];if(a)a:{if(a instanceof iq){var b=a.sb();a=a.aa();if(this.R()<=0){for(var c=this.Aa,d=0;d<b.length;d++)c.push(new hq(b[d],a[d]));break a}}else b=ab(a),a=$a(a);for(c=0;c<b.length;c++)jq(this,b[c],a[c])}},jq=function(a,b,c){var d=a.Aa;d.push(new hq(b,c));b=d.length-1;a=a.Aa;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=iq.prototype;
698
699
  h.remove=function(){var a=this.Aa,b=a.length,c=a[0];if(!(b<=0)){if(b==1)a.length=0;else{a[0]=a.pop();a=0;b=this.Aa;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.te}};h.aa=function(){for(var a=this.Aa,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].te);return b};h.sb=function(){for(var a=this.Aa,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getKey());return b};
699
- h.Hc=function(a){return this.Aa.some(function(b){return b.te==a})};h.Nb=function(a){return this.Aa.some(function(b){return b.getKey()==a})};h.clone=function(){return new hq(this)};h.R=function(){return this.Aa.length};h.isEmpty=function(){return this.Aa.length===0};h.clear=function(){this.Aa.length=0};var jq=function(){hq.apply(this,arguments)};q(jq,hq);jq.prototype.enqueue=function(a,b){iq(this,a,b)};jq.prototype.Ic=function(){return this.remove()};var kq=function(a,b){this.kh=void 0;this.ge=new jq;eq.call(this,a,b)};y(kq,eq);h=kq.prototype;h.Nc=function(a,b){if(!a)return(a=kq.L.Nc.call(this))&&this.delay&&(this.kh=t.setTimeout(w(this.Od,this),this.delay)),a;this.ge.enqueue(b!==void 0?b:100,a);this.Od()};h.Od=function(){for(var a=this.ge;a.R()>0;){var b=this.Nc();if(b)a.Ic().apply(this,[b]);else break}};h.Ke=function(a){kq.L.Ke.call(this,a);this.Od()};h.sd=function(){kq.L.sd.call(this);this.Od()};
700
- h.J=function(){kq.L.J.call(this);t.clearTimeout(this.kh);this.ge.clear();this.ge=null};var lq=function(a,b){I.call(this);this.Gf=a;this.ua=b||null};q(lq,Qp);lq.prototype.Ff=function(a,b){var c=this,d=zd(a,"status-changed",function(){switch(a.getStatus()){case "loaded":var e=a.tl["x-earth-engine-computation-profile"];this.ua&&e&&this.ua.Hk(a.la.id,e);break;case "failed":case "aborted":this.ua&&a.la.id!==""&&this.ua.ll(a.la.id),Hd(d)}},void 0,this);a.Ca=this.Md(a.qb,a.zoom);mq().Nc(function(e){c.wf(a,e)},b)};lq.prototype.getUniqueId=function(){return this.Gf.mapid+"-"+this.Gf.token};
701
- lq.prototype.wf=function(a,b){var c=mq();if(a.Ra||a.getStatus()=="aborted")fq(c,b);else{var d=zd(a,"status-changed",function(){a.ke in Pp&&(Hd(d),fq(c,b))});Op(a)}};lq.prototype.Md=function(a,b){a=tl(this.Gf,a.x,a.y,b);return this.ua&&this.ua.isEnabled()?a+"&profiling=1":a};var mq=function(){nq||(nq=new kq(0,4));return nq};x("ee.layers.EarthEngineTileSource",lq);var nq=null;var oq=function(a){I.call(this);this.Hi=a};q(oq,Qp);oq.prototype.Ff=function(a){a.Ca=this.Hi.formatTileUrl(a.qb.x,a.qb.y,a.zoom);Op(a)};oq.prototype.getUniqueId=function(){return this.Hi.token};x("ee.layers.FeatureViewTileSource",oq);var qq=function(){J.call(this);this.pe=new pq(0,60);this.wc=new Xd};q(qq,J);qq.prototype.send=function(a,b,c,d,e){if(this.wc.get(a))throw Error("[ee.MapTileManager] ID in use");b=new rq(a,b,d,w(this.li,this),e!==void 0?e:1);this.wc.set(a,b);a=w(this.wf,this,b);this.pe.Nc(a,c);return b};qq.prototype.abort=function(a){if(a=this.wc.get(a))a.kc||(a.kc=!0,a.Ja=new id("abort")),this.li(a)};
702
- qq.prototype.wf=function(a,b){if(a.fa||a.kc)sq(this,b);else if(a.Ji=b,b.setActive(!0),b=new Tp,a.fa=b,!a.retry())throw Error("Cannot dispatch first request!");};qq.prototype.li=function(a){this.wc.remove(a.getId());a.fa&&(sq(this,a.Ji),a.fa.dispose());a.xf&&a.xf(a.Ja,a.hi)};var sq=function(a,b){b.setActive(!1);if(!fq(a.pe,b))throw Error("Object not released");};
703
- qq.prototype.J=function(){J.prototype.J.call(this);this.pe.dispose();this.pe=null;var a=this.wc;Yb(a.aa(),function(b){b.dispose()});a.clear();this.wc=null};x("ee.MapTileManager",qq);var rq=function(a,b,c,d,e){I.call(this);this.ea=a;this.zl=b;this.gl=e!==void 0?e:1;this.xf=c;this.ac=d};q(rq,I);h=rq.prototype;h.getId=function(){return this.ea};h.getUrl=function(){return this.zl};
704
- h.Uk=function(a){if(this.kc)this.ac&&this.ac(this);else switch(a.type){case "load":this.Ja=a;this.ac&&this.ac(this);break;case "error":case "abort":this.retry()||(this.Ja=a,this.ac&&this.ac(this))}};h.J=function(){I.prototype.J.call(this);delete this.xf;delete this.ac};h.retry=function(){if(this.Hg>this.gl)return!1;this.Hg++;Wp(this.fa,this.ea);setTimeout(w(this.ul,this),0);return!0};
705
- h.ul=function(){if(!this.kc){var a=w(function(d){this.kc||(Vp(this.fa,this.ea,d),yd(this.fa,tq,w(this.Uk,this)),this.fa.start())},this),b=this.getUrl();if(Zc(b).Ba.Nb("profiling")){var c=new Mi;c.xc="blob";c.Wa("complete",w(function(){this.hi=c.getResponseHeader("X-Earth-Engine-Computation-Profile")||null;if(c.getStatus()>=200&&c.getStatus()<300)try{var d=Gb(Ib(Vi(c)));var e=d!==Fb.toString()}catch(g){}a(e?d:b)},this));c.Vc("ready",w(c.dispose,c));c.send(b,"GET")}else a(b)}};h.Hg=0;h.kc=!1;h.fa=null;
706
- h.Ji=null;h.Ja=null;h.hi=null;var tq=["load","abort","error"],uq=function(){I.call(this);this.Ea=!1};q(uq,I);uq.prototype.setActive=function(a){this.Ea=a};uq.prototype.isActive=function(){return this.Ea};var pq=function(a,b){kq.call(this,a,b)};q(pq,kq);pq.prototype.Ye=function(){return new uq};pq.prototype.Dd=function(a){a.dispose()};pq.prototype.Pf=function(a){return!a.Ra&&!a.isActive()};var vq=function(a,b,c,d,e){ge.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.tg=new ae;this.Qf=1;this.ua=e||null};q(vq,ge);h=vq.prototype;h.Le=function(a){return zd(this,"tileevent",a)};h.Yf=function(a){Hd(a)};
707
- 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=he(this,a,b);a=[this.url,b].join("/")+"?token="+this.token;this.ua&&this.ua.isEnabled()&&(a+="&profiling=1");b=[b,this.wb,this.token].join("/");this.wb+=1;c=gi("DIV",{id:b});var d=(new Date).getTime()/1E3;this.yb.push(b);jl(qq).send(b,a,d,w(this.Tk,this,c,b));sp(this);return c};h.Mc=function(){return this.yb.length};
708
- h.releaseTile=function(a){jl(qq).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.tg.remove(b);a.id!==""&&(this.sg.remove(a.id),this.ua&&this.ua.ll(a.id))};h.setOpacity=function(a){this.Qf=a;var b=this.tg.Da();Sd(b,function(c){Dp(c,a)})};
709
- h.Tk=function(a,b,c,d){c.type=="error"?(ec(this.yb,b),this.sg.add(b),this.dispatchEvent(c)):(ec(this.yb,b),c.target&&c.type=="load"&&(c=c.target,this.tg.add(c),this.Qf!=1&&Dp(c,this.Qf),a.appendChild(c)),sp(this));this.ua&&d!==null&&this.ua.Hk(b,d)};x("ee.MapLayerOverlay",vq);vq.prototype.removeTileCallback=vq.prototype.Yf;vq.prototype.addTileCallback=vq.prototype.Le;vq.prototype.getTile=vq.prototype.getTile;vq.prototype.setOpacity=vq.prototype.setOpacity;vq.prototype.releaseTile=vq.prototype.releaseTile;(function(){var a={},b="ee.ApiFunction.lookup ee.ApiFunction._apply ee.ApiFunction._call ee.batch.Export.map.toCloudStorage ee.batch.Export.videoMap.toCloudStorage ee.batch.Export.table.toBigQuery ee.batch.Export.image.toCloudStorage ee.batch.Export.video.toCloudStorage ee.batch.Export.table.toFeatureView ee.batch.Export.video.toDrive ee.batch.Export.table.toDrive ee.batch.Export.image.toDrive ee.batch.Export.table.toAsset ee.batch.Export.table.toCloudStorage ee.batch.Export.classifier.toAsset ee.batch.Export.image.toAsset ee.Collection.prototype.limit ee.Collection.prototype.sort ee.Collection.prototype.filterMetadata ee.Collection.prototype.filterBounds ee.Collection.prototype.filter ee.Collection.prototype.filterDate ee.Collection.prototype.map ee.Collection.prototype.iterate ee.ComputedObject.prototype.aside ee.ComputedObject.prototype.evaluate ee.ComputedObject.prototype.getInfo ee.ComputedObject.prototype.serialize ee.data.getFilmstripThumbId ee.data.startProcessing ee.data.setAssetAcl ee.data.makeThumbUrl ee.data.authenticateViaOauth ee.data.renameAsset ee.data.getMapId ee.data.listAssets ee.data.setAssetProperties ee.data.getTaskList ee.data.getTableDownloadId ee.data.listBuckets ee.data.copyAsset ee.data.authenticate ee.data.getTileUrl ee.data.makeTableDownloadUrl ee.data.getTaskListWithLimit ee.data.deleteAsset ee.data.getAssetRootQuota ee.data.startTableIngestion ee.data.listOperations ee.data.getDownloadId ee.data.getAssetAcl ee.data.cancelOperation ee.data.getWorkloadTag ee.data.listImages ee.data.authenticateViaPopup ee.data.makeDownloadUrl ee.data.getFeatureViewTilesKey ee.data.listFeatures ee.data.getAssetRoots ee.data.getAsset ee.data.setWorkloadTag ee.data.authenticateViaPrivateKey ee.data.getOperation ee.data.createAssetHome ee.data.newTaskId ee.data.createAsset ee.data.computeValue ee.data.getInfo ee.data.setDefaultWorkloadTag ee.data.resetWorkloadTag ee.data.cancelTask ee.data.getThumbId ee.data.getVideoThumbId ee.data.getTaskStatus ee.data.updateAsset ee.data.updateTask ee.data.getList ee.data.startIngestion ee.data.createFolder ee.Date ee.Deserializer.fromJSON ee.Deserializer.decodeCloudApi ee.Deserializer.fromCloudApiJSON ee.Deserializer.decode ee.Dictionary ee.Algorithms ee.InitState ee.apply ee.TILE_SIZE ee.reset ee.initialize ee.call ee.Element.prototype.set ee.Encodable.SourceFrame ee.Feature.prototype.getMap ee.Feature ee.Feature.prototype.getMapId ee.Feature.prototype.getInfo ee.FeatureCollection.prototype.getInfo ee.FeatureCollection.prototype.getMapId ee.FeatureCollection.prototype.select ee.FeatureCollection.prototype.getDownloadURL ee.FeatureCollection.prototype.getMap ee.FeatureCollection ee.Filter.date ee.Filter.metadata ee.Filter.bounds ee.Filter.and ee.Filter.prototype.not ee.Filter.neq ee.Filter.gt ee.Filter.lt ee.Filter.inList ee.Filter.or ee.Filter.lte ee.Filter.gte ee.Filter ee.Filter.eq ee.Function.prototype.apply ee.Function.prototype.call ee.Geometry.Point ee.Geometry.Polygon ee.Geometry.prototype.serialize ee.Geometry.MultiLineString ee.Geometry.prototype.toGeoJSON ee.Geometry.BBox ee.Geometry.MultiPoint ee.Geometry.prototype.toGeoJSONString ee.Geometry.LinearRing ee.Geometry.Rectangle ee.Geometry.LineString ee.Geometry ee.Geometry.MultiPolygon ee.Image.rgb ee.Image.prototype.expression ee.Image.prototype.clip ee.Image ee.Image.cat ee.Image.prototype.getThumbURL ee.Image.prototype.getDownloadURL ee.Image.prototype.getInfo ee.Image.prototype.getMapId ee.Image.prototype.getMap ee.Image.prototype.getThumbId ee.Image.prototype.rename ee.Image.prototype.select ee.ImageCollection.prototype.linkCollection ee.ImageCollection.prototype.getFilmstripThumbURL ee.ImageCollection.prototype.select ee.ImageCollection.prototype.first ee.ImageCollection.prototype.getVideoThumbURL ee.ImageCollection.prototype.getMapId ee.ImageCollection.prototype.getMap ee.ImageCollection ee.ImageCollection.prototype.getInfo ee.List ee.Number ee.Serializer.toReadableJSON ee.Serializer.encodeCloudApiPretty ee.Serializer.encode ee.Serializer.toCloudApiJSON ee.Serializer.encodeCloudApi ee.Serializer.toReadableCloudApiJSON ee.Serializer.toJSON ee.String ee.Terrain".split(" "),
710
- 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_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(" "),
700
+ h.Hc=function(a){return this.Aa.some(function(b){return b.te==a})};h.Nb=function(a){return this.Aa.some(function(b){return b.getKey()==a})};h.clone=function(){return new iq(this)};h.R=function(){return this.Aa.length};h.isEmpty=function(){return this.Aa.length===0};h.clear=function(){this.Aa.length=0};var kq=function(){iq.apply(this,arguments)};q(kq,iq);kq.prototype.enqueue=function(a,b){jq(this,a,b)};kq.prototype.Ic=function(){return this.remove()};function lq(a,b){this.kh=void 0;this.ge=new kq;fq.call(this,a,b)}y(lq,fq);h=lq.prototype;h.Nc=function(a,b){if(!a)return(a=lq.L.Nc.call(this))&&this.delay&&(this.kh=t.setTimeout(w(this.Od,this),this.delay)),a;this.ge.enqueue(b!==void 0?b:100,a);this.Od()};h.Od=function(){for(var a=this.ge;a.R()>0;){var b=this.Nc();if(b)a.Ic().apply(this,[b]);else break}};h.Ke=function(a){lq.L.Ke.call(this,a);this.Od()};h.sd=function(){lq.L.sd.call(this);this.Od()};
701
+ h.J=function(){lq.L.J.call(this);t.clearTimeout(this.kh);this.ge.clear();this.ge=null};var mq=function(a,b){I.call(this);this.Gf=a;this.ua=b||null};q(mq,Rp);mq.prototype.Ff=function(a,b){var c=this,d=zd(a,"status-changed",function(){switch(a.getStatus()){case "loaded":var e=a.tl["x-earth-engine-computation-profile"];this.ua&&e&&this.ua.Hk(a.la.id,e);break;case "failed":case "aborted":this.ua&&a.la.id!==""&&this.ua.ll(a.la.id),Hd(d)}},void 0,this);a.Ca=this.Md(a.qb,a.zoom);nq().Nc(function(e){c.wf(a,e)},b)};mq.prototype.getUniqueId=function(){return this.Gf.mapid+"-"+this.Gf.token};
702
+ mq.prototype.wf=function(a,b){var c=nq();if(a.Ra||a.getStatus()=="aborted")gq(c,b);else{var d=zd(a,"status-changed",function(){a.ke in Qp&&(Hd(d),gq(c,b))});Pp(a)}};mq.prototype.Md=function(a,b){a=ul(this.Gf,a.x,a.y,b);return this.ua&&this.ua.isEnabled()?a+"&profiling=1":a};var nq=function(){oq||(oq=new lq(0,4));return oq};x("ee.layers.EarthEngineTileSource",mq);var oq=null;var pq=function(a){I.call(this);this.Hi=a};q(pq,Rp);pq.prototype.Ff=function(a){a.Ca=this.Hi.formatTileUrl(a.qb.x,a.qb.y,a.zoom);Pp(a)};pq.prototype.getUniqueId=function(){return this.Hi.token};x("ee.layers.FeatureViewTileSource",pq);var rq=function(){J.call(this);this.pe=new qq(0,60);this.wc=new Xd};q(rq,J);rq.prototype.send=function(a,b,c,d,e){if(this.wc.get(a))throw Error("[ee.MapTileManager] ID in use");b=new sq(a,b,d,w(this.li,this),e!==void 0?e:1);this.wc.set(a,b);a=w(this.wf,this,b);this.pe.Nc(a,c);return b};rq.prototype.abort=function(a){if(a=this.wc.get(a))a.kc||(a.kc=!0,a.Ja=new id("abort")),this.li(a)};
703
+ rq.prototype.wf=function(a,b){if(a.fa||a.kc)tq(this,b);else if(a.Ji=b,b.setActive(!0),b=new Up,a.fa=b,!a.retry())throw Error("Cannot dispatch first request!");};rq.prototype.li=function(a){this.wc.remove(a.getId());a.fa&&(tq(this,a.Ji),a.fa.dispose());a.xf&&a.xf(a.Ja,a.hi)};var tq=function(a,b){b.setActive(!1);if(!gq(a.pe,b))throw Error("Object not released");};
704
+ rq.prototype.J=function(){J.prototype.J.call(this);this.pe.dispose();this.pe=null;var a=this.wc;Yb(a.aa(),function(b){b.dispose()});a.clear();this.wc=null};x("ee.MapTileManager",rq);var sq=function(a,b,c,d,e){I.call(this);this.ea=a;this.zl=b;this.gl=e!==void 0?e:1;this.xf=c;this.ac=d};q(sq,I);h=sq.prototype;h.getId=function(){return this.ea};h.getUrl=function(){return this.zl};
705
+ h.Uk=function(a){if(this.kc)this.ac&&this.ac(this);else switch(a.type){case "load":this.Ja=a;this.ac&&this.ac(this);break;case "error":case "abort":this.retry()||(this.Ja=a,this.ac&&this.ac(this))}};h.J=function(){I.prototype.J.call(this);delete this.xf;delete this.ac};h.retry=function(){if(this.Hg>this.gl)return!1;this.Hg++;Xp(this.fa,this.ea);setTimeout(w(this.ul,this),0);return!0};
706
+ h.ul=function(){if(!this.kc){var a=w(function(d){this.kc||(Wp(this.fa,this.ea,d),yd(this.fa,uq,w(this.Uk,this)),this.fa.start())},this),b=this.getUrl();if(Zc(b).Ba.Nb("profiling")){var c=new Ni;c.xc="blob";c.Wa("complete",w(function(){this.hi=c.getResponseHeader("X-Earth-Engine-Computation-Profile")||null;if(c.getStatus()>=200&&c.getStatus()<300)try{var d=Gb(Hb(Wi(c)));var e=d!==Fb.toString()}catch(g){}a(e?d:b)},this));c.Vc("ready",w(c.dispose,c));c.send(b,"GET")}else a(b)}};h.Hg=0;h.kc=!1;h.fa=null;
707
+ h.Ji=null;h.Ja=null;h.hi=null;var uq=["load","abort","error"],vq=function(){I.call(this);this.Ea=!1};q(vq,I);vq.prototype.setActive=function(a){this.Ea=a};vq.prototype.isActive=function(){return this.Ea};var qq=function(a,b){lq.call(this,a,b)};q(qq,lq);qq.prototype.Ye=function(){return new vq};qq.prototype.Dd=function(a){a.dispose()};qq.prototype.Pf=function(a){return!a.Ra&&!a.isActive()};var wq=function(a,b,c,d,e){ge.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.tg=new ae;this.Qf=1;this.ua=e||null};q(wq,ge);h=wq.prototype;h.Le=function(a){return zd(this,"tileevent",a)};h.Yf=function(a){Hd(a)};
708
+ 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=he(this,a,b);a=[this.url,b].join("/")+"?token="+this.token;this.ua&&this.ua.isEnabled()&&(a+="&profiling=1");b=[b,this.wb,this.token].join("/");this.wb+=1;c=hi("DIV",{id:b});var d=(new Date).getTime()/1E3;this.yb.push(b);kl(rq).send(b,a,d,w(this.Tk,this,c,b));tp(this);return c};h.Mc=function(){return this.yb.length};
709
+ h.releaseTile=function(a){kl(rq).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.tg.remove(b);a.id!==""&&(this.sg.remove(a.id),this.ua&&this.ua.ll(a.id))};h.setOpacity=function(a){this.Qf=a;var b=this.tg.Da();Sd(b,function(c){Ep(c,a)})};
710
+ h.Tk=function(a,b,c,d){c.type=="error"?(ec(this.yb,b),this.sg.add(b),this.dispatchEvent(c)):(ec(this.yb,b),c.target&&c.type=="load"&&(c=c.target,this.tg.add(c),this.Qf!=1&&Ep(c,this.Qf),a.appendChild(c)),tp(this));this.ua&&d!==null&&this.ua.Hk(b,d)};x("ee.MapLayerOverlay",wq);wq.prototype.removeTileCallback=wq.prototype.Yf;wq.prototype.addTileCallback=wq.prototype.Le;wq.prototype.getTile=wq.prototype.getTile;wq.prototype.setOpacity=wq.prototype.setOpacity;wq.prototype.releaseTile=wq.prototype.releaseTile;(function(){var a={},b="ee.ApiFunction._apply ee.ApiFunction.lookup ee.ApiFunction._call ee.batch.Export.image.toDrive ee.batch.Export.table.toCloudStorage ee.batch.Export.table.toAsset ee.batch.Export.classifier.toAsset ee.batch.Export.image.toAsset ee.batch.Export.map.toCloudStorage ee.batch.Export.videoMap.toCloudStorage ee.batch.Export.table.toBigQuery ee.batch.Export.image.toCloudStorage ee.batch.Export.video.toCloudStorage ee.batch.Export.table.toFeatureView ee.batch.Export.video.toDrive ee.batch.Export.table.toDrive ee.Collection.prototype.filterDate ee.Collection.prototype.map ee.Collection.prototype.iterate ee.Collection.prototype.filter ee.Collection.prototype.limit ee.Collection.prototype.sort ee.Collection.prototype.filterBounds ee.Collection.prototype.filterMetadata ee.ComputedObject.prototype.evaluate ee.ComputedObject.prototype.aside ee.ComputedObject.prototype.getInfo ee.ComputedObject.prototype.serialize ee.data.updateTask ee.data.getList ee.data.startProcessing ee.data.startIngestion ee.data.getVideoThumbId ee.data.createFolder ee.data.getFilmstripThumbId ee.data.getTaskStatus ee.data.setAssetAcl ee.data.listAssets ee.data.renameAsset ee.data.authenticateViaOauth ee.data.makeThumbUrl ee.data.setAssetProperties ee.data.getMapId ee.data.copyAsset ee.data.getTaskList ee.data.listBuckets ee.data.deleteAsset ee.data.getAssetRootQuota ee.data.startTableIngestion ee.data.authenticate ee.data.getTableDownloadId ee.data.getTileUrl ee.data.getTaskListWithLimit ee.data.makeTableDownloadUrl ee.data.cancelOperation ee.data.getWorkloadTag ee.data.getAssetAcl ee.data.listOperations ee.data.listImages ee.data.getDownloadId ee.data.makeDownloadUrl ee.data.authenticateViaPopup ee.data.getAssetRoots ee.data.getAsset ee.data.getFeatureViewTilesKey ee.data.listFeatures ee.data.createAssetHome ee.data.setWorkloadTag ee.data.getOperation ee.data.createAsset ee.data.getInfo ee.data.authenticateViaPrivateKey ee.data.setDefaultWorkloadTag ee.data.newTaskId ee.data.cancelTask ee.data.resetWorkloadTag ee.data.computeValue ee.data.getThumbId ee.data.updateAsset ee.Date ee.Deserializer.decode ee.Deserializer.decodeCloudApi ee.Deserializer.fromJSON ee.Deserializer.fromCloudApiJSON ee.Dictionary ee.reset ee.Algorithms ee.apply ee.InitState ee.TILE_SIZE ee.initialize ee.call ee.Element.prototype.set ee.Encodable.SourceFrame ee.Feature.prototype.getInfo ee.Feature.prototype.getMap ee.Feature.prototype.getMapId ee.Feature ee.FeatureCollection ee.FeatureCollection.prototype.getDownloadURL ee.FeatureCollection.prototype.getMap ee.FeatureCollection.prototype.select ee.FeatureCollection.prototype.getInfo ee.FeatureCollection.prototype.getMapId ee.Filter.lte ee.Filter.gte ee.Filter.prototype.not ee.Filter.date ee.Filter.eq ee.Filter ee.Filter.metadata ee.Filter.bounds ee.Filter.and ee.Filter.gt ee.Filter.lt ee.Filter.or ee.Filter.inList ee.Filter.neq ee.Function.prototype.apply ee.Function.prototype.call ee.Geometry ee.Geometry.Point ee.Geometry.prototype.serialize ee.Geometry.MultiLineString ee.Geometry.prototype.toGeoJSON ee.Geometry.LinearRing ee.Geometry.BBox ee.Geometry.MultiPoint ee.Geometry.prototype.toGeoJSONString ee.Geometry.Rectangle ee.Geometry.LineString ee.Geometry.Polygon ee.Geometry.MultiPolygon ee.Image.prototype.getDownloadURL ee.Image.prototype.getMap ee.Image.prototype.getThumbId ee.Image.prototype.getThumbURL ee.Image.rgb ee.Image.prototype.select ee.Image.prototype.rename ee.Image.cat ee.Image.prototype.clip ee.Image.prototype.getInfo ee.Image ee.Image.prototype.getMapId ee.Image.prototype.expression ee.ImageCollection.prototype.linkCollection ee.ImageCollection.prototype.first ee.ImageCollection.prototype.getMapId ee.ImageCollection.prototype.getInfo ee.ImageCollection.prototype.select ee.ImageCollection.prototype.getVideoThumbURL ee.ImageCollection.prototype.getMap ee.ImageCollection.prototype.getFilmstripThumbURL ee.ImageCollection ee.List ee.Number ee.Serializer.toReadableJSON ee.Serializer.toReadableCloudApiJSON ee.Serializer.encodeCloudApiPretty ee.Serializer.encode ee.Serializer.toCloudApiJSON ee.Serializer.toJSON ee.Serializer.encodeCloudApi ee.String ee.Terrain".split(" "),
711
+ c=[["name","namedArgs"],["name"],["name","var_args"],"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(" "),"collection opt_description opt_bucket opt_fileNamePrefix opt_fileFormat opt_selectors opt_maxVertices opt_priority".split(" "),["collection","opt_description","opt_assetId","opt_maxVertices","opt_priority"],["classifier",
712
+ "opt_description","opt_assetId","opt_priority"],"image opt_description opt_assetId opt_pyramidingPolicy opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize 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_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(" "),
711
713
  "collection opt_description opt_table opt_overwrite opt_append opt_selectors opt_maxVertices opt_priority".split(" "),"image opt_description opt_bucket opt_fileNamePrefix opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize opt_fileDimensions opt_skipEmptyTiles opt_fileFormat opt_formatOptions opt_priority".split(" "),"collection opt_description opt_bucket opt_fileNamePrefix opt_framesPerSecond opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_maxFrames opt_priority".split(" "),
712
- "collection opt_description opt_assetId opt_maxFeaturesPerTile opt_thinningStrategy opt_thinningRanking opt_zOrderRanking opt_priority".split(" "),"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(" "),"collection opt_description opt_folder opt_fileNamePrefix opt_fileFormat opt_selectors opt_maxVertices opt_priority".split(" "),"image opt_description opt_folder opt_fileNamePrefix opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize opt_fileDimensions opt_skipEmptyTiles opt_fileFormat opt_formatOptions opt_priority".split(" "),
713
- ["collection","opt_description","opt_assetId","opt_maxVertices","opt_priority"],"collection opt_description opt_bucket opt_fileNamePrefix opt_fileFormat opt_selectors opt_maxVertices opt_priority".split(" "),["classifier","opt_description","opt_assetId","opt_priority"],"image opt_description opt_assetId opt_pyramidingPolicy opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize opt_priority".split(" "),["max","opt_property","opt_ascending"],["property","opt_ascending"],
714
- ["name","operator","value"],["geometry"],["filter"],["start","opt_end"],["algorithm","opt_dropNulls"],["algorithm","opt_first"],["func","var_args"],["callback"],["opt_callback"],["legacy"],["params","opt_callback"],["taskId","params","opt_callback"],["assetId","aclUpdate","opt_callback"],["id"],"clientId success opt_error opt_extraScopes opt_onImmediateFailed opt_suppressDefaultScopes".split(" "),["sourceId","destinationId","opt_callback"],["params","opt_callback"],["parent","opt_params","opt_callback"],
715
- ["assetId","properties","opt_callback"],["opt_callback"],["params","opt_callback"],["project","opt_callback"],["sourceId","destinationId","opt_overwrite","opt_callback"],["clientId","success","opt_error","opt_extraScopes","opt_onImmediateFailed"],["id","x","y","z"],["id"],["opt_limit","opt_callback"],["assetId","opt_callback"],["rootId","opt_callback"],["taskId","request","opt_callback"],["opt_limit","opt_callback"],["params","opt_callback"],["assetId","opt_callback"],["operationName","opt_callback"],
716
- [],["parent","opt_params","opt_callback"],["opt_success","opt_error"],["id"],["params","opt_callback"],["asset","params","opt_callback"],["opt_callback"],["id","opt_callback"],["tag"],["privateKey","opt_success","opt_error","opt_extraScopes","opt_suppressDefaultScopes"],["operationName","opt_callback"],["requestedId","opt_callback"],["opt_count","opt_callback"],["value","opt_path","opt_force","opt_properties","opt_callback"],["obj","opt_callback"],["id","opt_callback"],["tag"],["opt_resetDefault"],
717
- ["taskId","opt_callback"],["params","opt_callback"],["params","opt_callback"],["taskId","opt_callback"],["assetId","asset","updateFields","opt_callback"],["taskId","action","opt_callback"],["params","opt_callback"],["taskId","request","opt_callback"],["path","opt_force","opt_callback"],["date","opt_tz"],["json"],["json"],["json"],["json"],["opt_dict"],[],[],["func","namedArgs"],[],[],"opt_baseurl opt_tileurl opt_successCallback opt_errorCallback opt_xsrfToken opt_project".split(" "),["func","var_args"],
718
- ["var_args"],[],["opt_visParams","opt_callback"],["geometry","opt_properties"],["opt_visParams","opt_callback"],["opt_callback"],["opt_callback"],["opt_visParams","opt_callback"],["propertySelectors","opt_newProperties","opt_retainGeometry"],["opt_format","opt_selectors","opt_filename","opt_callback"],["opt_visParams","opt_callback"],["args","opt_column"],["start","opt_end"],["name","operator","value"],["geometry","opt_errorMargin"],["var_args"],[],["name","value"],["name","value"],["name","value"],
719
- ["opt_leftField","opt_rightValue","opt_rightField","opt_leftValue"],["var_args"],["name","value"],["name","value"],["opt_filter"],["name","value"],["namedArgs"],["var_args"],["coords","opt_proj"],["coords","opt_proj","opt_geodesic","opt_maxError","opt_evenOdd"],["legacy"],["coords","opt_proj","opt_geodesic","opt_maxError"],[],["west","south","east","north"],["coords","opt_proj"],[],["coords","opt_proj","opt_geodesic","opt_maxError"],["coords","opt_proj","opt_geodesic","opt_evenOdd"],["coords","opt_proj",
720
- "opt_geodesic","opt_maxError"],["geoJson","opt_proj","opt_geodesic","opt_evenOdd"],["coords","opt_proj","opt_geodesic","opt_maxError","opt_evenOdd"],["r","g","b"],["expression","opt_map"],["geometry"],["opt_args"],["var_args"],["params","opt_callback"],["params","opt_callback"],["opt_callback"],["opt_visParams","opt_callback"],["opt_visParams","opt_callback"],["params","opt_callback"],["var_args"],["var_args"],["imageCollection","opt_linkedBands","opt_linkedProperties","opt_matchPropertyName"],["params",
721
- "opt_callback"],["selectors","opt_names"],[],["params","opt_callback"],["opt_visParams","opt_callback"],["opt_visParams","opt_callback"],["args"],["opt_callback"],["list"],["number"],["obj"],["obj"],["obj","opt_isCompound"],["obj"],["obj"],["obj"],["obj"],["string"],[]];[Mm,Nm,Q,po,xo,uo,no,vo,to,wo,ro,oo,so,qo,yo,lo,V.prototype.limit,V.prototype.sort,V.prototype.lf,V.prototype.sh,V.prototype.filter,V.prototype.kf,V.prototype.map,V.prototype.Hh,O.prototype.Dg,O.prototype.evaluate,O.prototype.V,O.prototype.va,
722
- zl,Xl,sm,Al,ll,nm,sl,gm,tm,Ll,El,im,om,ml,tl,Fl,Kl,pm,um,cm,Ml,Cl,qm,Nl,ql,hm,kl,Dl,ul,vl,jm,dm,wm,nl,Ol,km,Gl,lm,wl,dm,xm,ym,Ql,xl,yl,Jl,rm,Pl,fm,am,mm,Po,To,Uo,Yo,So,Zo,jp,lp,np,256,kp,hp,mp,S.prototype.set,Ij,X.prototype.getMap,X,X.prototype.S,X.prototype.V,Y.prototype.V,Y.prototype.S,Y.prototype.select,Y.prototype.rb,Y.prototype.getMap,Y,In,Ln,Kn,Gn,U.prototype.sc,Bn,En,Cn,Jn,Hn,Fn,Dn,U,An,Hm.prototype.apply,Hm.prototype.call,fn,rn,T.prototype.va,qn,T.prototype.oe,ln,jn,T.prototype.vg,pn,kn,on,
723
- T,sn,Yn,N.prototype.l,N.prototype.clip,N,Zn,N.prototype.uf,N.prototype.rb,N.prototype.V,N.prototype.S,N.prototype.getMap,N.prototype.Ld,N.prototype.mi,N.prototype.select,Z.prototype.Ef,Z.prototype.sf,Z.prototype.select,Z.prototype.first,Z.prototype.vf,Z.prototype.S,Z.prototype.getMap,Z,Z.prototype.V,$n,Fo,Hk,Ok,Ek,Pk,Kk,Qk,Fk,Io,bp].forEach(function(d,e){d&&(a[d.toString()]={name:b[e],paramNames:c[e]})});t.EXPORTED_FN_INFO=a})();}).call(this);
714
+ "collection opt_description opt_assetId opt_maxFeaturesPerTile opt_thinningStrategy opt_thinningRanking opt_zOrderRanking opt_priority".split(" "),"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(" "),"collection opt_description opt_folder opt_fileNamePrefix opt_fileFormat opt_selectors opt_maxVertices opt_priority".split(" "),["start","opt_end"],["algorithm","opt_dropNulls"],
715
+ ["algorithm","opt_first"],["filter"],["max","opt_property","opt_ascending"],["property","opt_ascending"],["geometry"],["name","operator","value"],["callback"],["func","var_args"],["opt_callback"],["legacy"],["taskId","action","opt_callback"],["params","opt_callback"],["taskId","params","opt_callback"],["taskId","request","opt_callback"],["params","opt_callback"],["path","opt_force","opt_callback"],["params","opt_callback"],["taskId","opt_callback"],["assetId","aclUpdate","opt_callback"],["parent",
716
+ "opt_params","opt_callback"],["sourceId","destinationId","opt_callback"],"clientId success opt_error opt_extraScopes opt_onImmediateFailed opt_suppressDefaultScopes".split(" "),["id"],["assetId","properties","opt_callback"],["params","opt_callback"],["sourceId","destinationId","opt_overwrite","opt_callback"],["opt_callback"],["project","opt_callback"],["assetId","opt_callback"],["rootId","opt_callback"],["taskId","request","opt_callback"],["clientId","success","opt_error","opt_extraScopes","opt_onImmediateFailed"],
717
+ ["params","opt_callback"],["id","x","y","z"],["opt_limit","opt_callback"],["id"],["operationName","opt_callback"],[],["assetId","opt_callback"],["opt_limit","opt_callback"],["parent","opt_params","opt_callback"],["params","opt_callback"],["id"],["opt_success","opt_error"],["opt_callback"],["id","opt_callback"],["params","opt_callback"],["asset","params","opt_callback"],["requestedId","opt_callback"],["tag"],["operationName","opt_callback"],["value","opt_path","opt_force","opt_properties","opt_callback"],
718
+ ["id","opt_callback"],["privateKey","opt_success","opt_error","opt_extraScopes","opt_suppressDefaultScopes"],["tag"],["opt_count","opt_callback"],["taskId","opt_callback"],["opt_resetDefault"],["obj","opt_callback"],["params","opt_callback"],["assetId","asset","updateFields","opt_callback"],["date","opt_tz"],["json"],["json"],["json"],["json"],["opt_dict"],[],[],["func","namedArgs"],[],[],"opt_baseurl opt_tileurl opt_successCallback opt_errorCallback opt_xsrfToken opt_project".split(" "),["func",
719
+ "var_args"],["var_args"],[],["opt_callback"],["opt_visParams","opt_callback"],["opt_visParams","opt_callback"],["geometry","opt_properties"],["args","opt_column"],["opt_format","opt_selectors","opt_filename","opt_callback"],["opt_visParams","opt_callback"],["propertySelectors","opt_newProperties","opt_retainGeometry"],["opt_callback"],["opt_visParams","opt_callback"],["name","value"],["name","value"],[],["start","opt_end"],["name","value"],["opt_filter"],["name","operator","value"],["geometry","opt_errorMargin"],
720
+ ["var_args"],["name","value"],["name","value"],["var_args"],["opt_leftField","opt_rightValue","opt_rightField","opt_leftValue"],["name","value"],["namedArgs"],["var_args"],["geoJson","opt_proj","opt_geodesic","opt_evenOdd"],["coords","opt_proj"],["legacy"],["coords","opt_proj","opt_geodesic","opt_maxError"],[],["coords","opt_proj","opt_geodesic","opt_maxError"],["west","south","east","north"],["coords","opt_proj"],[],["coords","opt_proj","opt_geodesic","opt_evenOdd"],["coords","opt_proj","opt_geodesic",
721
+ "opt_maxError"],["coords","opt_proj","opt_geodesic","opt_maxError","opt_evenOdd"],["coords","opt_proj","opt_geodesic","opt_maxError","opt_evenOdd"],["params","opt_callback"],["opt_visParams","opt_callback"],["params","opt_callback"],["params","opt_callback"],["r","g","b"],["var_args"],["var_args"],["var_args"],["geometry"],["opt_callback"],["opt_args"],["opt_visParams","opt_callback"],["expression","opt_map"],["imageCollection","opt_linkedBands","opt_linkedProperties","opt_matchPropertyName"],[],
722
+ ["opt_visParams","opt_callback"],["opt_callback"],["selectors","opt_names"],["params","opt_callback"],["opt_visParams","opt_callback"],["params","opt_callback"],["args"],["list"],["number"],["obj"],["obj"],["obj"],["obj","opt_isCompound"],["obj"],["obj"],["obj"],["string"],[]];[Om,Nm,Q,po,ro,to,zo,mo,qo,yo,vo,oo,wo,uo,xo,so,V.prototype.kf,V.prototype.map,V.prototype.Hh,V.prototype.filter,V.prototype.limit,V.prototype.sort,V.prototype.sh,V.prototype.lf,O.prototype.evaluate,O.prototype.Dg,O.prototype.V,
723
+ O.prototype.va,Ql,gm,Yl,bm,zl,nm,Al,Kl,tm,hm,om,ml,Bl,um,tl,pm,Ml,jm,qm,vm,dm,nl,Fl,ul,Ll,Gl,Ol,rl,rm,Nl,im,Dl,El,ll,km,em,vl,wl,lm,xm,Pl,mm,em,ol,ym,Hl,Rl,zm,xl,yl,sm,Qo,To,Vo,Uo,Zo,$o,lp,kp,op,mp,256,ip,np,S.prototype.set,Jj,X.prototype.V,X.prototype.getMap,X.prototype.S,X,Y,Y.prototype.rb,Y.prototype.getMap,Y.prototype.select,Y.prototype.V,Y.prototype.S,Gn,En,U.prototype.sc,Jn,Bn,U,Mn,Ln,Hn,Fn,Dn,In,Kn,Cn,Im.prototype.apply,Im.prototype.call,T,gn,T.prototype.va,rn,T.prototype.oe,qn,mn,kn,T.prototype.vg,
724
+ ln,pn,sn,tn,N.prototype.rb,N.prototype.getMap,N.prototype.Ld,N.prototype.uf,Zn,N.prototype.select,N.prototype.mi,$n,N.prototype.clip,N.prototype.V,N,N.prototype.S,N.prototype.l,Z.prototype.Ef,Z.prototype.first,Z.prototype.S,Z.prototype.V,Z.prototype.select,Z.prototype.vf,Z.prototype.getMap,Z.prototype.sf,Z,ao,Go,Ik,Rk,Pk,Fk,Qk,Gk,Lk,Jo,cp].forEach(function(d,e){d&&(a[d.toString()]={name:b[e],paramNames:c[e]})});t.EXPORTED_FN_INFO=a})();}).call(this);