mirror of
https://github.com/google/earthengine-api.git
synced 2025-12-08 19:26:12 +00:00
217 lines
114 KiB
JavaScript
217 lines
114 KiB
JavaScript
(function() {var h,aa=aa||{},l=this,m=function(a){return void 0!==a},ba=function(){},ca=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=
|
|
typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"==b&&"undefined"==typeof a.call)return"object";return b},da=function(a){return null!=a},n=function(a){return"array"==ca(a)},ea=function(a){var b=ca(a);return"array"==b||"object"==b&&"number"==typeof a.length},p=function(a){return"string"==typeof a},q=function(a){return"number"==typeof a},r=function(a){return"function"==ca(a)},t=function(a){var b=typeof a;return"object"==b&&null!=a||
|
|
"function"==b},fa="closure_uid_"+(1E9*Math.random()>>>0),ga=0,ha=function(a,b,c){return a.call.apply(a.bind,arguments)},ia=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}},u=function(a,b,c){u=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?
|
|
ha:ia;return u.apply(null,arguments)},ja=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=c.slice();b.push.apply(b,arguments);return a.apply(this,b)}},ka=Date.now||function(){return+new Date},w=function(a,b){var c=a.split("."),d=l;c[0]in d||!d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)!c.length&&m(b)?d[e]=b:d=d[e]?d[e]:d[e]={}},x=function(a,b){function c(){}c.prototype=b.prototype;a.l=b.prototype;a.prototype=new c;a.prototype.constructor=
|
|
a;a.le=function(a,c,f){for(var g=Array(arguments.length-2),k=2;k<arguments.length;k++)g[k-2]=arguments[k];return b.prototype[c].apply(a,g)}};var y=function(){this.aa=this.aa;this.tb=this.tb};y.prototype.aa=!1;y.prototype.P=function(){this.aa||(this.aa=!0,this.m())};y.prototype.m=function(){if(this.tb)for(;this.tb.length;)this.tb.shift()()};var la=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.za=!1;this.od=!0};la.prototype.preventDefault=function(){this.defaultPrevented=!0;this.od=!1};var ma=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,ma);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};x(ma,Error);ma.prototype.name="CustomError";var na;var oa=function(a,b){for(var c=a.split("%s"),d="",e=Array.prototype.slice.call(arguments,1);e.length&&1<c.length;)d+=c.shift()+e.shift();return d+c.join("%s")},pa=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},xa=function(a){if(!qa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(ra,"&"));-1!=a.indexOf("<")&&(a=a.replace(sa,"<"));-1!=a.indexOf(">")&&(a=a.replace(ta,">"));-1!=a.indexOf('"')&&(a=a.replace(ua,"""));-1!=a.indexOf("'")&&
|
|
(a=a.replace(va,"'"));-1!=a.indexOf("\x00")&&(a=a.replace(wa,"�"));return a},ra=/&/g,sa=/</g,ta=/>/g,ua=/"/g,va=/'/g,wa=/\x00/g,qa=/[\x00&<>"']/,ya=function(a,b){return a<b?-1:a>b?1:0};var za=function(a,b){b.unshift(a);ma.call(this,oa.apply(null,b));b.shift()};x(za,ma);za.prototype.name="AssertionError";
|
|
var Aa=function(a,b,c,d){var e="Assertion failed";if(c)var e=e+(": "+c),f=d;else a&&(e+=": "+a,f=b);throw new za(""+e,f||[]);},z=function(a,b,c){a||Aa("",null,b,Array.prototype.slice.call(arguments,2));return a},Ba=function(a,b){throw new za("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1));},Ca=function(a,b,c){q(a)||Aa("Expected number but got %s: %s.",[ca(a),a],b,Array.prototype.slice.call(arguments,2));return a},Da=function(a,b,c){r(a)||Aa("Expected function but got %s: %s.",[ca(a),
|
|
a],b,Array.prototype.slice.call(arguments,2))},Ea=function(a,b,c){t(a)||Aa("Expected object but got %s: %s.",[ca(a),a],b,Array.prototype.slice.call(arguments,2))},Fa=function(a,b,c){n(a)||Aa("Expected array but got %s: %s.",[ca(a),a],b,Array.prototype.slice.call(arguments,2))};var Ga=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)},Ha=function(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c},Ia=function(a,b,c){var d={},e;for(e in a)d[e]=b.call(c,a[e],e,a);return d},Ja=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b},Ka=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b},La=function(a){for(var b in a)return!1;return!0},Ma=function(a,b){b in a&&delete a[b]},Na=function(a){var b={},c;for(c in a)b[c]=a[c];return b},Oa=function(a){var b=
|
|
ca(a);if("object"==b||"array"==b){if(r(a.clone))return a.clone();var b="array"==b?[]:{},c;for(c in a)b[c]=Oa(a[c]);return b}return a},Pa="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),Qa=function(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<Pa.length;f++)c=Pa[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};var Ra=function(a){Ra[" "](a);return a};Ra[" "]=ba;var Ta=function(a,b){var c=Sa;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};var Ua=Array.prototype.indexOf?function(a,b,c){z(null!=a.length);return Array.prototype.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(p(a))return p(b)&&1==b.length?a.indexOf(b,c):-1;for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},Va=Array.prototype.lastIndexOf?function(a,b,c){z(null!=a.length);return Array.prototype.lastIndexOf.call(a,b,null==c?a.length-1:c)}:function(a,b,c){c=null==c?a.length-1:c;0>c&&(c=Math.max(0,a.length+c));if(p(a))return p(b)&&1==
|
|
b.length?a.lastIndexOf(b,c):-1;for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1},Wa=Array.prototype.forEach?function(a,b,c){z(null!=a.length);Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=p(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},Xa=Array.prototype.filter?function(a,b,c){z(null!=a.length);return Array.prototype.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,g=p(a)?a.split(""):a,k=0;k<d;k++)if(k in g){var v=g[k];b.call(c,v,k,a)&&(e[f++]=
|
|
v)}return e},Ya=Array.prototype.map?function(a,b,c){z(null!=a.length);return Array.prototype.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=p(a)?a.split(""):a,g=0;g<d;g++)g in f&&(e[g]=b.call(c,f[g],g,a));return e},Za=Array.prototype.some?function(a,b,c){z(null!=a.length);return Array.prototype.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=p(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return!0;return!1},$a=Array.prototype.every?function(a,b,c){z(null!=a.length);
|
|
return Array.prototype.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=p(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return!1;return!0},bb=function(a){var b;a:{b=ab;for(var c=a.length,d=p(a)?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a)){b=e;break a}b=-1}return 0>b?null:p(a)?a.charAt(b):a[b]},cb=function(a){if(!n(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0},eb=function(a,b){var c=Ua(a,b),d;(d=0<=c)&&db(a,c);return d},db=function(a,b){z(null!=a.length);
|
|
Array.prototype.splice.call(a,b,1)},fb=function(a){return Array.prototype.concat.apply(Array.prototype,arguments)},gb=function(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]},hb=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(ea(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var g=0;g<f;g++)a[e+g]=d[g]}else a.push(d)}},ib=function(a,b,c){z(null!=a.length);return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,
|
|
b,c)},jb=function(a){for(var b={},c=0,d=0;d<a.length;){var e=a[d++],f;f=e;f=t(f)?"o"+(f[fa]||(f[fa]=++ga)):(typeof f).charAt(0)+f;Object.prototype.hasOwnProperty.call(b,f)||(b[f]=!0,a[c++]=e)}a.length=c};var kb;a:{var lb=l.navigator;if(lb){var mb=lb.userAgent;if(mb){kb=mb;break a}}kb=""}var A=function(a){return-1!=kb.indexOf(a)};var nb=A("Opera"),ob=A("Trident")||A("MSIE"),pb=A("Edge"),qb=A("Gecko")&&!(-1!=kb.toLowerCase().indexOf("webkit")&&!A("Edge"))&&!(A("Trident")||A("MSIE"))&&!A("Edge"),rb=-1!=kb.toLowerCase().indexOf("webkit")&&!A("Edge"),sb=function(){var a=l.document;return a?a.documentMode:void 0},tb;
|
|
a:{var ub="",vb=function(){var a=kb;if(qb)return/rv\:([^\);]+)(\)|;)/.exec(a);if(pb)return/Edge\/([\d\.]+)/.exec(a);if(ob)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(rb)return/WebKit\/(\S+)/.exec(a);if(nb)return/(?:Version)[ \/]?(\S+)/.exec(a)}();vb&&(ub=vb?vb[1]:"");if(ob){var wb=sb();if(null!=wb&&wb>parseFloat(ub)){tb=String(wb);break a}}tb=ub}
|
|
var xb=tb,Sa={},yb=function(a){return Ta(a,function(){for(var b=0,c=pa(String(xb)).split("."),d=pa(String(a)).split("."),e=Math.max(c.length,d.length),f=0;0==b&&f<e;f++){var g=c[f]||"",k=d[f]||"";do{g=/(\d*)(\D*)(.*)/.exec(g)||["","","",""];k=/(\d*)(\D*)(.*)/.exec(k)||["","","",""];if(0==g[0].length&&0==k[0].length)break;b=ya(0==g[1].length?0:parseInt(g[1],10),0==k[1].length?0:parseInt(k[1],10))||ya(0==g[2].length,0==k[2].length)||ya(g[2],k[2]);g=g[3];k=k[3]}while(0==b)}return 0<=b})},zb=l.document,
|
|
Ab=zb&&ob?sb()||("CSS1Compat"==zb.compatMode?parseInt(xb,10):5):void 0;var Bb=!ob||9<=Number(Ab),Cb=ob&&!yb("9");!rb||yb("528");qb&&yb("1.9b")||ob&&yb("8")||nb&&yb("9.5")||rb&&yb("528");qb&&!yb("8")||ob&&yb("9");var Db=function(a,b){la.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.charCode=this.keyCode=this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.ga=this.state=null;if(a){var c=this.type=a.type,d=a.changedTouches?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=b;var e=a.relatedTarget;if(e){if(qb){var f;a:{try{Ra(e.nodeName);f=!0;break a}catch(g){}f=
|
|
!1}f||(e=null)}}else"mouseover"==c?e=a.fromElement:"mouseout"==c&&(e=a.toElement);this.relatedTarget=e;null===d?(this.offsetX=rb||void 0!==a.offsetX?a.offsetX:a.layerX,this.offsetY=rb||void 0!==a.offsetY?a.offsetY:a.layerY,this.clientX=void 0!==a.clientX?a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0):(this.clientX=void 0!==d.clientX?d.clientX:d.pageX,this.clientY=void 0!==d.clientY?d.clientY:d.pageY,this.screenX=d.screenX||
|
|
0,this.screenY=d.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.state=a.state;this.ga=a;a.defaultPrevented&&this.preventDefault()}};x(Db,la);
|
|
Db.prototype.preventDefault=function(){Db.l.preventDefault.call(this);var a=this.ga;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Cb)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var Eb="closure_listenable_"+(1E6*Math.random()|0),Fb=function(a){return!(!a||!a[Eb])},Gb=0;var Hb=function(a,b,c,d,e){this.listener=a;this.ub=null;this.src=b;this.type=c;this.bb=!!d;this.mb=e;this.key=++Gb;this.Aa=this.ab=!1},Ib=function(a){a.Aa=!0;a.listener=null;a.ub=null;a.src=null;a.mb=null};var Jb=function(a){this.src=a;this.D={};this.Wa=0};Jb.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.D[f];a||(a=this.D[f]=[],this.Wa++);var g=Kb(a,b,d,e);-1<g?(b=a[g],c||(b.ab=!1)):(b=new Hb(b,this.src,f,!!d,e),b.ab=c,a.push(b));return b};Jb.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.D))return!1;var e=this.D[a];b=Kb(e,b,c,d);return-1<b?(Ib(e[b]),db(e,b),0==e.length&&(delete this.D[a],this.Wa--),!0):!1};
|
|
var Lb=function(a,b){var c=b.type;c in a.D&&eb(a.D[c],b)&&(Ib(b),0==a.D[c].length&&(delete a.D[c],a.Wa--))};Jb.prototype.Ta=function(a){a=a&&a.toString();var b=0,c;for(c in this.D)if(!a||c==a){for(var d=this.D[c],e=0;e<d.length;e++)++b,Ib(d[e]);delete this.D[c];this.Wa--}return b};Jb.prototype.La=function(a,b,c,d){a=this.D[a.toString()];var e=-1;a&&(e=Kb(a,b,c,d));return-1<e?a[e]:null};var Kb=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.Aa&&f.listener==b&&f.bb==!!c&&f.mb==d)return e}return-1};var Mb="closure_lm_"+(1E6*Math.random()|0),Nb={},Ob=0,Pb=function(a,b,c,d,e){if(n(b)){for(var f=0;f<b.length;f++)Pb(a,b[f],c,d,e);return null}c=Qb(c);return Fb(a)?a.Sa(b,c,d,e):Rb(a,b,c,!1,d,e)},Rb=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var g=!!e,k=Sb(a);k||(a[Mb]=k=new Jb(a));c=k.add(b,c,d,e,f);if(c.ub)return c;d=Tb();c.ub=d;d.src=a;d.listener=c;if(a.addEventListener)a.addEventListener(b.toString(),d,g);else if(a.attachEvent)a.attachEvent(Ub(b.toString()),d);else throw Error("addEventListener and attachEvent are unavailable.");
|
|
Ob++;return c},Tb=function(){var a=Vb,b=Bb?function(c){return a.call(b.src,b.listener,c)}:function(c){c=a.call(b.src,b.listener,c);if(!c)return c};return b},Wb=function(a,b,c,d,e){if(n(b)){for(var f=0;f<b.length;f++)Wb(a,b[f],c,d,e);return null}c=Qb(c);return Fb(a)?a.qb(b,c,d,e):Rb(a,b,c,!0,d,e)},Xb=function(a,b,c,d,e){if(n(b))for(var f=0;f<b.length;f++)Xb(a,b[f],c,d,e);else c=Qb(c),Fb(a)?a.Fb(b,c,d,e):a&&(a=Sb(a))&&(b=a.La(b,c,!!d,e))&&Yb(b)},Yb=function(a){if(q(a)||!a||a.Aa)return;var b=a.src;if(Fb(b)){Lb(b.R,
|
|
a);return}var c=a.type,d=a.ub;b.removeEventListener?b.removeEventListener(c,d,a.bb):b.detachEvent&&b.detachEvent(Ub(c),d);Ob--;(c=Sb(b))?(Lb(c,a),0==c.Wa&&(c.src=null,b[Mb]=null)):Ib(a)},Ub=function(a){return a in Nb?Nb[a]:Nb[a]="on"+a},$b=function(a,b,c,d){var e=!0;if(a=Sb(a))if(b=a.D[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var f=b[a];f&&f.bb==c&&!f.Aa&&(f=Zb(f,d),e=e&&!1!==f)}return e},Zb=function(a,b){var c=a.listener,d=a.mb||a.src;a.ab&&Yb(a);return c.call(d,b)},Vb=function(a,b){if(a.Aa)return!0;
|
|
if(!Bb){var c;if(!(c=b))a:{c=["window","event"];for(var d=l,e;e=c.shift();)if(null!=d[e])d=d[e];else{c=null;break a}c=d}e=c;c=new Db(e,this);d=!0;if(!(0>e.keyCode||void 0!=e.returnValue)){a:{var f=!1;if(0==e.keyCode)try{e.keyCode=-1;break a}catch(v){f=!0}if(f||void 0==e.returnValue)e.returnValue=!0}e=[];for(f=c.currentTarget;f;f=f.parentNode)e.push(f);for(var f=a.type,g=e.length-1;!c.za&&0<=g;g--){c.currentTarget=e[g];var k=$b(e[g],f,!0,c),d=d&&k}for(g=0;!c.za&&g<e.length;g++)c.currentTarget=e[g],
|
|
k=$b(e[g],f,!1,c),d=d&&k}return d}return Zb(a,new Db(b,this))},Sb=function(a){a=a[Mb];return a instanceof Jb?a:null},ac="__closure_events_fn_"+(1E9*Math.random()>>>0),Qb=function(a){z(a,"Listener can not be null.");if(r(a))return a;z(a.handleEvent,"An object listener must have handleEvent method.");a[ac]||(a[ac]=function(b){return a.handleEvent(b)});return a[ac]};var bc=function(){y.call(this);this.R=new Jb(this);this.wd=this;this.jc=null};x(bc,y);bc.prototype[Eb]=!0;h=bc.prototype;h.addEventListener=function(a,b,c,d){Pb(this,a,b,c,d)};h.removeEventListener=function(a,b,c,d){Xb(this,a,b,c,d)};
|
|
h.dispatchEvent=function(a){cc(this);var b,c=this.jc;if(c){b=[];for(var d=1;c;c=c.jc)b.push(c),z(1E3>++d,"infinite loop")}c=this.wd;d=a.type||a;if(p(a))a=new la(a,c);else if(a instanceof la)a.target=a.target||c;else{var e=a;a=new la(d,c);Qa(a,e)}var e=!0,f;if(b)for(var g=b.length-1;!a.za&&0<=g;g--)f=a.currentTarget=b[g],e=dc(f,d,!0,a)&&e;a.za||(f=a.currentTarget=c,e=dc(f,d,!0,a)&&e,a.za||(e=dc(f,d,!1,a)&&e));if(b)for(g=0;!a.za&&g<b.length;g++)f=a.currentTarget=b[g],e=dc(f,d,!1,a)&&e;return e};
|
|
h.m=function(){bc.l.m.call(this);this.R&&this.R.Ta(void 0);this.jc=null};h.Sa=function(a,b,c,d){cc(this);return this.R.add(String(a),b,!1,c,d)};h.qb=function(a,b,c,d){return this.R.add(String(a),b,!0,c,d)};h.Fb=function(a,b,c,d){return this.R.remove(String(a),b,c,d)};var dc=function(a,b,c,d){b=a.R.D[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var g=b[f];if(g&&!g.Aa&&g.bb==c){var k=g.listener,v=g.mb||g.src;g.ab&&Lb(a.R,g);e=!1!==k.call(v,d)&&e}}return e&&0!=d.od};
|
|
bc.prototype.La=function(a,b,c,d){return this.R.La(String(a),b,c,d)};var cc=function(a){z(a.R,"Event target is not initialized. Did you call the superclass (goog.events.EventTarget) constructor?")};var ec=function(a){return a};var fc="StopIteration"in l?l.StopIteration:{message:"StopIteration",stack:""},gc=function(){};gc.prototype.next=function(){throw fc;};gc.prototype.qa=function(){return this};
|
|
var hc=function(a){if(a instanceof gc)return a;if("function"==typeof a.qa)return a.qa(!1);if(ea(a)){var b=0,c=new gc;c.next=function(){for(;;){if(b>=a.length)throw fc;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");},ic=function(a,b){if(ea(a))try{Wa(a,b,void 0)}catch(c){if(c!==fc)throw c;}else{a=hc(a);try{for(;;)b.call(void 0,a.next(),void 0,a)}catch(c){if(c!==fc)throw c;}}};var jc=function(a,b){this.s={};this.h=[];this.Xa=this.f=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else a&&this.addAll(a)};h=jc.prototype;h.C=function(){return this.f};h.u=function(){kc(this);for(var a=[],b=0;b<this.h.length;b++)a.push(this.s[this.h[b]]);return a};h.M=function(){kc(this);return this.h.concat()};h.$=function(a){return lc(this.s,a)};h.isEmpty=function(){return 0==this.f};
|
|
h.clear=function(){this.s={};this.Xa=this.f=this.h.length=0};h.remove=function(a){return lc(this.s,a)?(delete this.s[a],this.f--,this.Xa++,this.h.length>2*this.f&&kc(this),!0):!1};var kc=function(a){if(a.f!=a.h.length){for(var b=0,c=0;b<a.h.length;){var d=a.h[b];lc(a.s,d)&&(a.h[c++]=d);b++}a.h.length=c}if(a.f!=a.h.length){for(var e={},c=b=0;b<a.h.length;)d=a.h[b],lc(e,d)||(a.h[c++]=d,e[d]=1),b++;a.h.length=c}};h=jc.prototype;h.get=function(a,b){return lc(this.s,a)?this.s[a]:b};
|
|
h.set=function(a,b){lc(this.s,a)||(this.f++,this.h.push(a),this.Xa++);this.s[a]=b};h.addAll=function(a){var b;a instanceof jc?(b=a.M(),a=a.u()):(b=Ka(a),a=Ja(a));for(var c=0;c<b.length;c++)this.set(b[c],a[c])};h.forEach=function(a,b){for(var c=this.M(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};h.clone=function(){return new jc(this)};
|
|
h.qa=function(a){kc(this);var b=0,c=this.Xa,d=this,e=new gc;e.next=function(){if(c!=d.Xa)throw Error("The map has changed since the iterator was created");if(b>=d.h.length)throw fc;var e=d.h[b++];return a?e:d.s[e]};return e};var lc=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var mc=function(a){if(a.u&&"function"==typeof a.u)return a.u();if(p(a))return a.split("");if(ea(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Ja(a)},nc=function(a,b){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,void 0);else if(ea(a)||p(a))Wa(a,b,void 0);else{var c;if(a.M&&"function"==typeof a.M)c=a.M();else if(a.u&&"function"==typeof a.u)c=void 0;else if(ea(a)||p(a)){c=[];for(var d=a.length,e=0;e<d;e++)c.push(e)}else c=Ka(a);for(var d=mc(a),e=d.length,f=0;f<e;f++)b.call(void 0,
|
|
d[f],c&&c[f],a)}};var oc=function(a){this.s=new jc;a&&this.addAll(a)},pc=function(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+(a[fa]||(a[fa]=++ga)):b.substr(0,1)+a};h=oc.prototype;h.C=function(){return this.s.C()};h.add=function(a){this.s.set(pc(a),a)};h.addAll=function(a){a=mc(a);for(var b=a.length,c=0;c<b;c++)this.add(a[c])};h.Ta=function(a){a=mc(a);for(var b=a.length,c=0;c<b;c++)this.remove(a[c])};h.remove=function(a){return this.s.remove(pc(a))};h.clear=function(){this.s.clear()};h.isEmpty=function(){return this.s.isEmpty()};
|
|
h.contains=function(a){return this.s.$(pc(a))};var qc=function(a,b){for(var c=new oc,d=mc(b),e=0;e<d.length;e++){var f=d[e];a.contains(f)&&c.add(f)}return c},rc=function(a,b){var c=a.clone();c.Ta(b);return c};oc.prototype.u=function(){return this.s.u()};oc.prototype.clone=function(){return new oc(this)};oc.prototype.qa=function(){return this.s.qa(!1)};var sc=function(a,b,c){bc.call(this);this.Qd=b;this.Ab=c;this.na=[];this.oc=new oc;this.Da=0;this.url=a};x(sc,bc);w("ee.AbstractOverlay",sc);var tc=function(a,b,c){var d=1<<c,e=b.x%d;0>e&&(e+=d);return[a.Qd,c,e,b.y].join("/")},uc=function(a){la.call(this,"tileevent");this.count=a};x(uc,la);var vc=function(a,b,c){this.Od=c;this.Fd=a;this.Zd=b;this.sb=0;this.nb=null};vc.prototype.get=function(){var a;0<this.sb?(this.sb--,a=this.nb,this.nb=a.next,a.next=null):a=this.Fd();return a};vc.prototype.put=function(a){this.Zd(a);this.sb<this.Od&&(this.sb++,a.next=this.nb,this.nb=a)};var wc=function(a){l.setTimeout(function(){throw a;},0)},xc,yc=function(){var a=l.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!A("Presto")&&(a=function(){var a=document.createElement("IFRAME");a.style.display="none";a.src="";document.documentElement.appendChild(a);var b=a.contentWindow,a=b.document;a.open();a.write("");a.close();var c="callImmediate"+Math.random(),d="file:"==b.location.protocol?"*":b.location.protocol+"//"+b.location.host,
|
|
a=u(function(a){if(("*"==d||a.origin==d)&&a.data==c)this.port1.onmessage()},this);b.addEventListener("message",a,!1);this.port1={};this.port2={postMessage:function(){b.postMessage(c,d)}}});if("undefined"!==typeof a&&!A("Trident")&&!A("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(m(c.next)){c=c.next;var a=c.zc;c.zc=null;a()}};return function(a){d.next={zc:a};d=d.next;b.port2.postMessage(0)}}return"undefined"!==typeof document&&"onreadystatechange"in document.createElement("SCRIPT")?
|
|
function(a){var b=document.createElement("SCRIPT");b.onreadystatechange=function(){b.onreadystatechange=null;b.parentNode.removeChild(b);b=null;a();a=null};document.documentElement.appendChild(b)}:function(a){l.setTimeout(a,0)}};var zc=function(){this.Hb=this.pa=null},Bc=new vc(function(){return new Ac},function(a){a.reset()},100);zc.prototype.add=function(a,b){var c=Bc.get();c.set(a,b);this.Hb?this.Hb.next=c:(z(!this.pa),this.pa=c);this.Hb=c};zc.prototype.remove=function(){var a=null;this.pa&&(a=this.pa,this.pa=this.pa.next,this.pa||(this.Hb=null),a.next=null);return a};var Ac=function(){this.next=this.scope=this.Zb=null};Ac.prototype.set=function(a,b){this.Zb=a;this.scope=b;this.next=null};
|
|
Ac.prototype.reset=function(){this.next=this.scope=this.Zb=null};var Gc=function(a,b){Cc||Dc();Ec||(Cc(),Ec=!0);Fc.add(a,b)},Cc,Dc=function(){if(l.Promise&&l.Promise.resolve){var a=l.Promise.resolve(void 0);Cc=function(){a.then(Hc)}}else Cc=function(){var a=Hc;!r(l.setImmediate)||l.Window&&l.Window.prototype&&!A("Edge")&&l.Window.prototype.setImmediate==l.setImmediate?(xc||(xc=yc()),xc(a)):l.setImmediate(a)}},Ec=!1,Fc=new zc,Hc=function(){for(var a;a=Fc.remove();){try{a.Zb.call(a.scope)}catch(b){wc(b)}Bc.put(a)}Ec=!1};var Ic=function(a){a.prototype.then=a.prototype.then;a.prototype.$goog_Thenable=!0},Jc=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};var Mc=function(a,b){this.I=0;this.Y=void 0;this.sa=this.U=this.j=null;this.kb=this.Vb=!1;if(a!=ba)try{var c=this;a.call(b,function(a){Kc(c,2,a)},function(a){if(!(a instanceof Lc))try{if(a instanceof Error)throw a;throw Error("Promise rejected.");}catch(b){}Kc(c,3,a)})}catch(d){Kc(this,3,d)}},Nc=function(){this.next=this.context=this.va=this.la=this.fa=null;this.$a=!1};Nc.prototype.reset=function(){this.context=this.va=this.la=this.fa=null;this.$a=!1};
|
|
var Oc=new vc(function(){return new Nc},function(a){a.reset()},100),Pc=function(a,b,c){var d=Oc.get();d.la=a;d.va=b;d.context=c;return d};Mc.prototype.then=function(a,b,c){null!=a&&Da(a,"opt_onFulfilled should be a function.");null!=b&&Da(b,"opt_onRejected should be a function. Did you pass opt_context as the second argument instead of the third?");return Qc(this,r(a)?a:null,r(b)?b:null,c)};Ic(Mc);Mc.prototype.cancel=function(a){0==this.I&&Gc(function(){var b=new Lc(a);Rc(this,b)},this)};
|
|
var Rc=function(a,b){if(0==a.I)if(a.j){var c=a.j;if(c.U){for(var d=0,e=null,f=null,g=c.U;g&&(g.$a||(d++,g.fa==a&&(e=g),!(e&&1<d)));g=g.next)e||(f=g);e&&(0==c.I&&1==d?Rc(c,b):(f?(d=f,z(c.U),z(null!=d),d.next==c.sa&&(c.sa=d),d.next=d.next.next):Sc(c),Tc(c,e,3,b)))}a.j=null}else Kc(a,3,b)},Vc=function(a,b){a.U||2!=a.I&&3!=a.I||Uc(a);z(null!=b.la);a.sa?a.sa.next=b:a.U=b;a.sa=b},Qc=function(a,b,c,d){var e=Pc(null,null,null);e.fa=new Mc(function(a,g){e.la=b?function(c){try{var e=b.call(d,c);a(e)}catch(R){g(R)}}:
|
|
a;e.va=c?function(b){try{var e=c.call(d,b);!m(e)&&b instanceof Lc?g(b):a(e)}catch(R){g(R)}}:g});e.fa.j=a;Vc(a,e);return e.fa};Mc.prototype.be=function(a){z(1==this.I);this.I=0;Kc(this,2,a)};Mc.prototype.ce=function(a){z(1==this.I);this.I=0;Kc(this,3,a)};
|
|
var Kc=function(a,b,c){if(0==a.I){a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself"));a.I=1;var d;a:{var e=c,f=a.be,g=a.ce;if(e instanceof Mc)null!=f&&Da(f,"opt_onFulfilled should be a function."),null!=g&&Da(g,"opt_onRejected should be a function. Did you pass opt_context as the second argument instead of the third?"),Vc(e,Pc(f||ba,g||null,a)),d=!0;else if(Jc(e))e.then(f,g,a),d=!0;else{if(t(e))try{var k=e.then;if(r(k)){Wc(e,k,f,g,a);d=!0;break a}}catch(v){g.call(a,v);d=!0;break a}d=
|
|
!1}}d||(a.Y=c,a.I=b,a.j=null,Uc(a),3!=b||c instanceof Lc||Xc(a,c))}},Wc=function(a,b,c,d,e){var f=!1,g=function(a){f||(f=!0,c.call(e,a))},k=function(a){f||(f=!0,d.call(e,a))};try{b.call(a,g,k)}catch(v){k(v)}},Uc=function(a){a.Vb||(a.Vb=!0,Gc(a.Gd,a))},Sc=function(a){var b=null;a.U&&(b=a.U,a.U=b.next,b.next=null);a.U||(a.sa=null);null!=b&&z(null!=b.la);return b};Mc.prototype.Gd=function(){for(var a;a=Sc(this);)Tc(this,a,this.I,this.Y);this.Vb=!1};
|
|
var Tc=function(a,b,c,d){if(3==c&&b.va&&!b.$a)for(;a&&a.kb;a=a.j)a.kb=!1;if(b.fa)b.fa.j=null,Yc(b,c,d);else try{b.$a?b.la.call(b.context):Yc(b,c,d)}catch(e){Zc.call(null,e)}Oc.put(b)},Yc=function(a,b,c){2==b?a.la.call(a.context,c):a.va&&a.va.call(a.context,c)},Xc=function(a,b){a.kb=!0;Gc(function(){a.kb&&Zc.call(null,b)})},Zc=wc,Lc=function(a){ma.call(this,a)};x(Lc,ma);Lc.prototype.name="cancel";var $c=function(a,b,c){if(r(a))c&&(a=u(a,c));else if(a&&"function"==typeof a.handleEvent)a=u(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:l.setTimeout(a,b||0)};var ad=function(a,b,c){y.call(this);this.Pd=null!=c?u(a,c):a;this.Md=b;this.Ad=u(this.Vd,this);this.Lb=[]};x(ad,y);h=ad.prototype;h.yb=!1;h.kd=0;h.Fa=null;h.Kc=function(a){this.Lb=arguments;this.Fa||this.kd?this.yb=!0:bd(this)};h.stop=function(){this.Fa&&(l.clearTimeout(this.Fa),this.Fa=null,this.yb=!1,this.Lb=[])};h.m=function(){ad.l.m.call(this);this.stop()};h.Vd=function(){this.Fa=null;this.yb&&!this.kd&&(this.yb=!1,bd(this))};var bd=function(a){a.Fa=$c(a.Ad,a.Md);a.Pd.apply(null,a.Lb)};var cd=function(a){a=String(a);if(/^\s*$/.test(a)?0:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/(?:"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)[\s\u2028\u2029]*(?=:|,|]|}|$)/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,"")))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);},dd=function(a){return eval("("+a+")")},fd=function(a){return(new ed(void 0)).v(a)},ed=function(a){this.vb=a};
|
|
ed.prototype.v=function(a){var b=[];gd(this,a,b);return b.join("")};
|
|
var gd=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(n(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),e=d[f],gd(a,a.vb?a.vb.call(d,String(f),e):e,c),e=",";c.push("]");return}if(b instanceof String||b instanceof Number||b instanceof Boolean)b=b.valueOf();else{c.push("{");f="";for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(e=b[d],"function"!=typeof e&&(c.push(f),hd(d,c),c.push(":"),gd(a,a.vb?a.vb.call(b,d,e):e,c),f=","));c.push("}");return}}switch(typeof b){case "string":hd(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);}}},id={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},jd=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g,hd=function(a,b){b.push('"',a.replace(jd,function(a){var b=id[a];b||(b="\\u"+(a.charCodeAt(0)|65536).toString(16).substr(1),
|
|
id[a]=b);return b}),'"')};var kd=!ob||9<=Number(Ab),ld=!qb&&!ob||ob&&9<=Number(Ab)||qb&&yb("1.9.1");ob&&yb("9");var nd=function(a,b){Ga(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:md.hasOwnProperty(d)?a.setAttribute(md[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})},md={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"},pd=function(a,
|
|
b,c){return od(document,arguments)},od=function(a,b){var c=String(b[0]),d=b[1];if(!kd&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',xa(d.name),'"');if(d.type){c.push(' type="',xa(d.type),'"');var e={};Qa(e,d);delete e.type;d=e}c.push(">");c=c.join("")}c=a.createElement(c);d&&(p(d)?c.className=d:n(d)?c.className=d.join(" "):nd(c,d));2<b.length&&qd(a,c,b);return c},qd=function(a,b,c){function d(c){c&&b.appendChild(p(c)?a.createTextNode(c):c)}for(var e=2;e<c.length;e++){var f=c[e];!ea(f)||
|
|
t(f)&&0<f.nodeType?d(f):Wa(rd(f)?gb(f):f,d)}},sd=function(a){for(;a&&1!=a.nodeType;)a=a.nextSibling;return a},td=function(a){z(a,"Node cannot be null or undefined.");return 9==a.nodeType?a:a.ownerDocument||a.document},rd=function(a){if(a&&"number"==typeof a.length){if(t(a))return"function"==typeof a.item||"string"==typeof a.item;if(r(a))return"function"==typeof a.item}return!1},ud=function(a){this.eb=a||l.document||document};h=ud.prototype;h.getElementsByTagName=function(a,b){return(b||this.eb).getElementsByTagName(a)};
|
|
h.Ed=function(a,b,c){return od(this.eb,arguments)};h.createElement=function(a){return this.eb.createElement(String(a))};h.createTextNode=function(a){return this.eb.createTextNode(String(a))};h.appendChild=function(a,b){a.appendChild(b)};h.Mc=function(a){return ld&&void 0!=a.children?a.children:Xa(a.childNodes,function(a){return 1==a.nodeType})};
|
|
h.contains=function(a,b){if(!a||!b)return!1;if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};/*
|
|
Portions of this code are from MochiKit, received by
|
|
The Closure Authors under the MIT license. All other code is Copyright
|
|
2005-2009 The Closure Authors. All Rights Reserved.
|
|
*/
|
|
var vd=function(a,b){this.xb=[];this.fd=a;this.Dc=b||null;this.Na=this.ua=!1;this.Y=void 0;this.mc=this.xc=this.Mb=!1;this.Eb=0;this.j=null;this.Nb=0};vd.prototype.cancel=function(a){if(this.ua)this.Y instanceof vd&&this.Y.cancel();else{if(this.j){var b=this.j;delete this.j;a?b.cancel(a):(b.Nb--,0>=b.Nb&&b.cancel())}this.fd?this.fd.call(this.Dc,this):this.mc=!0;this.ua||wd(this,new xd)}};vd.prototype.Ac=function(a,b){this.Mb=!1;yd(this,a,b)};
|
|
var yd=function(a,b,c){a.ua=!0;a.Y=c;a.Na=!b;zd(a)},Bd=function(a){if(a.ua){if(!a.mc)throw new Ad;a.mc=!1}};vd.prototype.Ob=function(a){Bd(this);Cd(a);yd(this,!0,a)};var wd=function(a,b){Bd(a);Cd(b);yd(a,!1,b)},Cd=function(a){z(!(a instanceof vd),"An execution sequence may not be initiated with a blocking Deferred.")},Dd=function(a,b,c){z(!a.xc,"Blocking Deferreds can not be re-used");a.xb.push([b,c,void 0]);a.ua&&zd(a)};
|
|
vd.prototype.then=function(a,b,c){var d,e,f=new Mc(function(a,b){d=a;e=b});Dd(this,d,function(a){a instanceof xd?f.cancel():e(a)});return f.then(a,b,c)};Ic(vd);
|
|
var Ed=function(a){return Za(a.xb,function(a){return r(a[1])})},zd=function(a){if(a.Eb&&a.ua&&Ed(a)){var b=a.Eb,c=Fd[b];c&&(l.clearTimeout(c.W),delete Fd[b]);a.Eb=0}a.j&&(a.j.Nb--,delete a.j);for(var b=a.Y,d=c=!1;a.xb.length&&!a.Mb;){var e=a.xb.shift(),f=e[0],g=e[1],e=e[2];if(f=a.Na?g:f)try{var k=f.call(e||a.Dc,b);m(k)&&(a.Na=a.Na&&(k==b||k instanceof Error),a.Y=b=k);if(Jc(b)||"function"===typeof l.Promise&&b instanceof l.Promise)d=!0,a.Mb=!0}catch(v){b=v,a.Na=!0,Ed(a)||(c=!0)}}a.Y=b;d&&(k=u(a.Ac,
|
|
a,!0),d=u(a.Ac,a,!1),b instanceof vd?(Dd(b,k,d),b.xc=!0):b.then(k,d));c&&(b=new Gd(b),Fd[b.W]=b,a.Eb=b.W)},Ad=function(){ma.call(this)};x(Ad,ma);Ad.prototype.message="Deferred has already fired";Ad.prototype.name="AlreadyCalledError";var xd=function(){ma.call(this)};x(xd,ma);xd.prototype.message="Deferred was canceled";xd.prototype.name="CanceledError";var Gd=function(a){this.W=l.setTimeout(u(this.ae,this),0);this.gb=a};
|
|
Gd.prototype.ae=function(){z(Fd[this.W],"Cannot throw an error that is not scheduled.");delete Fd[this.W];throw this.gb;};var Fd={};var Ld=function(a){var b={},c=b.document||document,d=document.createElement("SCRIPT"),e={pd:d,Va:void 0},f=new vd(Hd,e),g=null,k=null!=b.timeout?b.timeout:5E3;0<k&&(g=window.setTimeout(function(){Id(d,!0);wd(f,new Jd(1,"Timeout reached for loading script "+a))},k),e.Va=g);d.onload=d.onreadystatechange=function(){d.readyState&&"loaded"!=d.readyState&&"complete"!=d.readyState||(Id(d,b.me||!1,g),f.Ob(null))};d.onerror=function(){Id(d,!0,g);wd(f,new Jd(0,"Error while loading script "+a))};e=b.attributes||
|
|
{};Qa(e,{type:"text/javascript",charset:"UTF-8",src:a});nd(d,e);Kd(c).appendChild(d)},Kd=function(a){var b;return(b=(a||document).getElementsByTagName("HEAD"))&&0!=b.length?b[0]:a.documentElement},Hd=function(){if(this&&this.pd){var a=this.pd;a&&"SCRIPT"==a.tagName&&Id(a,!0,this.Va)}},Id=function(a,b,c){null!=c&&l.clearTimeout(c);a.onload=ba;a.onerror=ba;a.onreadystatechange=ba;b&&window.setTimeout(function(){a&&a.parentNode&&a.parentNode.removeChild(a)},0)},Jd=function(a,b){var c="Jsloader error (code #"+
|
|
a+")";b&&(c+=": "+b);ma.call(this,c);this.code=a};x(Jd,ma);var Md=function(a,b,c,d,e){this.reset(a,b,c,d,e)};Md.prototype.Hc=null;var Nd=0;Md.prototype.reset=function(a,b,c,d,e){"number"==typeof e||Nd++;d||ka();this.Ra=a;this.Sd=b;delete this.Hc};Md.prototype.rd=function(a){this.Ra=a};var Od=function(a){this.Td=a;this.Qc=this.Pb=this.Ra=this.j=null},Pd=function(a,b){this.name=a;this.value=b};Pd.prototype.toString=function(){return this.name};var Qd=new Pd("SEVERE",1E3),Rd=new Pd("CONFIG",700),Sd=new Pd("FINE",500);Od.prototype.getParent=function(){return this.j};Od.prototype.Mc=function(){this.Pb||(this.Pb={});return this.Pb};Od.prototype.rd=function(a){this.Ra=a};var Td=function(a){if(a.Ra)return a.Ra;if(a.j)return Td(a.j);Ba("Root logger has no level set.");return null};
|
|
Od.prototype.log=function(a,b,c){if(a.value>=Td(this).value)for(r(b)&&(b=b()),a=new Md(a,String(b),this.Td),c&&(a.Hc=c),c="log:"+a.Sd,l.console&&(l.console.timeStamp?l.console.timeStamp(c):l.console.markTimeline&&l.console.markTimeline(c)),l.msWriteProfilerMark&&l.msWriteProfilerMark(c),c=this;c;){b=c;var d=a;if(b.Qc)for(var e=0,f;f=b.Qc[e];e++)f(d);c=c.getParent()}};
|
|
var Ud={},Vd=null,Wd=function(a){Vd||(Vd=new Od(""),Ud[""]=Vd,Vd.rd(Rd));var b;if(!(b=Ud[a])){b=new Od(a);var c=a.lastIndexOf("."),d=a.substr(c+1),c=Wd(a.substr(0,c));c.Mc()[d]=b;b.j=c;Ud[a]=b}return b};var Xd=function(a,b){a&&a.log(Sd,b,void 0)};var Yd=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/,Zd=function(a,b){if(a)for(var c=a.split("&"),d=0;d<c.length;d++){var e=c[d].indexOf("="),f,g=null;0<=e?(f=c[d].substring(0,e),g=c[d].substring(e+1)):f=c[d];b(f,g?decodeURIComponent(g.replace(/\+/g," ")):"")}};var $d=function(){};$d.prototype.yc=null;$d.prototype.Ma=function(){var a;(a=this.yc)||(a={},ae(this)&&(a[0]=!0,a[1]=!0),a=this.yc=a);return a};var be=function(a,b){this.fe=a;this.Wd=b};x(be,$d);be.prototype.Qb=function(){return this.fe()};be.prototype.Ma=function(){return this.Wd()};var B=function(){return B.Ic.Qb()};B.vd=!1;B.Ma=function(){return B.Ic.Ma()};B.oe=function(a,b){B.qd(new be(z(a),z(b)))};B.qd=function(a){B.Ic=a};var ce=function(){};x(ce,$d);ce.prototype.Qb=function(){var a=ae(this);return a?new ActiveXObject(a):new XMLHttpRequest};
|
|
var ae=function(a){if(B.vd)return"";if(!a.Rc&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new ActiveXObject(d),a.Rc=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.Rc};B.qd(new ce);var C=function(a){bc.call(this);this.headers=new jc;this.Jb=a||null;this.K=!1;this.Ib=this.a=null;this.Qa=this.Yc=this.pb="";this.ka=this.bc=this.ob=this.Ub=!1;this.Ea=0;this.zb=null;this.Ua="";this.Gb=this.Xd=this.ud=!1};x(C,bc);var de=C.prototype,fe=Wd("goog.net.XhrIo");de.G=fe;var ge=/^https?$/i,he=["POST","PUT"],ie=[];C.prototype.Cd=function(){this.P();eb(ie,this)};
|
|
C.prototype.send=function(a,b,c,d){if(this.a)throw Error("[goog.net.XhrIo] Object is active with another request="+this.pb+"; newUri="+a);b=b?b.toUpperCase():"GET";this.pb=a;this.Qa="";this.Yc=b;this.Ub=!1;this.K=!0;this.a=this.Jb?this.Jb.Qb():B();this.Ib=this.Jb?this.Jb.Ma():B.Ma();this.a.onreadystatechange=u(this.jd,this);this.Xd&&"onprogress"in this.a&&(this.a.onprogress=u(function(a){this.hd(a,!0)},this),this.a.upload&&(this.a.upload.onprogress=u(this.hd,this)));try{Xd(this.G,je(this,"Opening Xhr")),
|
|
this.bc=!0,this.a.open(b,String(a),!0),this.bc=!1}catch(f){Xd(this.G,je(this,"Error opening Xhr: "+f.message));this.gb(5,f);return}a=c||"";var e=this.headers.clone();d&&nc(d,function(a,b){e.set(b,a)});d=bb(e.M());c=l.FormData&&a instanceof l.FormData;!(0<=Ua(he,b))||d||c||e.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");e.forEach(function(a,b){this.a.setRequestHeader(b,a)},this);this.Ua&&(this.a.responseType=this.Ua);"withCredentials"in this.a&&this.a.withCredentials!==this.ud&&
|
|
(this.a.withCredentials=this.ud);try{ke(this),0<this.Ea&&(this.Gb=le(this.a),Xd(this.G,je(this,"Will abort after "+this.Ea+"ms if incomplete, xhr2 "+this.Gb)),this.Gb?(this.a.timeout=this.Ea,this.a.ontimeout=u(this.Va,this)):this.zb=$c(this.Va,this.Ea,this)),Xd(this.G,je(this,"Sending request")),this.ob=!0,this.a.send(a),this.ob=!1}catch(f){Xd(this.G,je(this,"Send error: "+f.message)),this.gb(5,f)}};
|
|
var le=function(a){return ob&&yb(9)&&q(a.timeout)&&m(a.ontimeout)},ab=function(a){return"content-type"==a.toLowerCase()};C.prototype.Va=function(){"undefined"!=typeof aa&&this.a&&(this.Qa="Timed out after "+this.Ea+"ms, aborting",Xd(this.G,je(this,this.Qa)),this.dispatchEvent("timeout"),this.abort(8))};C.prototype.gb=function(a,b){this.K=!1;this.a&&(this.ka=!0,this.a.abort(),this.ka=!1);this.Qa=b;me(this);ne(this)};var me=function(a){a.Ub||(a.Ub=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
|
|
C.prototype.abort=function(){this.a&&this.K&&(Xd(this.G,je(this,"Aborting")),this.K=!1,this.ka=!0,this.a.abort(),this.ka=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),ne(this))};C.prototype.m=function(){this.a&&(this.K&&(this.K=!1,this.ka=!0,this.a.abort(),this.ka=!1),ne(this,!0));C.l.m.call(this)};C.prototype.jd=function(){this.aa||(this.bc||this.ob||this.ka?oe(this):this.Ud())};C.prototype.Ud=function(){oe(this)};
|
|
var oe=function(a){if(a.K&&"undefined"!=typeof aa)if(a.Ib[1]&&4==pe(a)&&2==a.getStatus())Xd(a.G,je(a,"Local request error detected and ignored"));else if(a.ob&&4==pe(a))$c(a.jd,0,a);else if(a.dispatchEvent("readystatechange"),4==pe(a)){Xd(a.G,je(a,"Request complete"));a.K=!1;try{var b=a.getStatus(),c;a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:c=!0;break a;default:c=!1}var d;if(!(d=c)){var e;if(e=0===b){var f=String(a.pb).match(Yd)[1]||null;if(!f&&l.self&&l.self.location)var g=
|
|
l.self.location.protocol,f=g.substr(0,g.length-1);e=!ge.test(f?f.toLowerCase():"")}d=e}if(d)a.dispatchEvent("complete"),a.dispatchEvent("success");else{var k;try{k=2<pe(a)?a.a.statusText:""}catch(v){Xd(a.G,"Can not get status: "+v.message),k=""}a.Qa=k+" ["+a.getStatus()+"]";me(a)}}finally{ne(a)}}};
|
|
C.prototype.hd=function(a,b){z("progress"===a.type,"goog.net.EventType.PROGRESS is of the same type as raw XHR progress.");this.dispatchEvent(qe(a,"progress"));this.dispatchEvent(qe(a,b?"downloadprogress":"uploadprogress"))};
|
|
var qe=function(a,b){return{type:b,lengthComputable:a.lengthComputable,loaded:a.loaded,total:a.total}},ne=function(a,b){if(a.a){ke(a);var c=a.a,d=a.Ib[0]?ba:null;a.a=null;a.Ib=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){(c=a.G)&&c.log(Qd,"Problem encountered resetting onreadystatechange: "+e.message,void 0)}}},ke=function(a){a.a&&a.Gb&&(a.a.ontimeout=null);q(a.zb)&&(l.clearTimeout(a.zb),a.zb=null)};C.prototype.Uc=function(){return!!this.a};
|
|
var pe=function(a){return a.a?a.a.readyState:0};C.prototype.getStatus=function(){try{return 2<pe(this)?this.a.status:-1}catch(a){return-1}};
|
|
var re=function(a){try{if(!a.a)return null;if("response"in a.a)return a.a.response;switch(a.Ua){case "":case "text":return a.a.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in a.a)return a.a.mozResponseArrayBuffer}var b=a.G;b&&b.log(Qd,"Response type "+a.Ua+" is not supported on this browser",void 0);return null}catch(c){return Xd(a.G,"Can not get response: "+c.message),null}};C.prototype.getResponseHeader=function(a){return this.a&&4==pe(this)?this.a.getResponseHeader(a):void 0};
|
|
var je=function(a,b){return b+" ["+a.Yc+" "+a.pb+" "+a.getStatus()+"]"};var se=function(a,b){this.V=this.oa=this.da="";this.xa=null;this.ha=this.wa="";this.J=this.Nd=!1;var c;if(a instanceof se)this.J=m(b)?b:a.J,te(this,a.da),c=a.oa,ue(this),this.oa=c,c=a.V,ue(this),this.V=c,ve(this,a.xa),this.setPath(a.getPath()),we(this,a.T.clone()),c=a.ha,ue(this),this.ha=c;else if(a&&(c=String(a).match(Yd))){this.J=!!b;te(this,c[1]||"",!0);var d=c[2]||"";ue(this);this.oa=xe(d);d=c[3]||"";ue(this);this.V=xe(d,!0);ve(this,c[4]);this.setPath(c[5]||"",!0);we(this,c[6]||"",!0);c=c[7]||
|
|
"";ue(this);this.ha=xe(c)}else this.J=!!b,this.T=new ye(null,0,this.J)};
|
|
se.prototype.toString=function(){var a=[],b=this.da;b&&a.push(ze(b,Ae,!0),":");var c=this.V;if(c||"file"==b)a.push("//"),(b=this.oa)&&a.push(ze(b,Ae,!0),"@"),a.push(encodeURIComponent(String(c)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.xa,null!=c&&a.push(":",String(c));if(c=this.getPath())this.V&&"/"!=c.charAt(0)&&a.push("/"),a.push(ze(c,"/"==c.charAt(0)?Be:Ce,!0));(c=this.T.toString())&&a.push("?",c);(c=this.ha)&&a.push("#",ze(c,De));return a.join("")};
|
|
se.prototype.resolve=function(a){var b=this.clone(),c=!!a.da;c?te(b,a.da):c=!!a.oa;if(c){var d=a.oa;ue(b);b.oa=d}else c=!!a.V;c?(d=a.V,ue(b),b.V=d):c=null!=a.xa;d=a.getPath();if(c)ve(b,a.xa);else if(c=!!a.wa){if("/"!=d.charAt(0))if(this.V&&!this.wa)d="/"+d;else{var e=b.getPath().lastIndexOf("/");-1!=e&&(d=b.getPath().substr(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(-1!=e.indexOf("./")||-1!=e.indexOf("/.")){for(var d=0==e.lastIndexOf("/",0),e=e.split("/"),f=[],g=0;g<e.length;){var k=e[g++];"."==
|
|
k?d&&g==e.length&&f.push(""):".."==k?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),d&&g==e.length&&f.push("")):(f.push(k),d=!0)}d=f.join("/")}else d=e}c?b.setPath(d):c=""!==a.T.toString();c?we(b,xe(a.T.toString())):c=!!a.ha;c&&(a=a.ha,ue(b),b.ha=a);return b};se.prototype.clone=function(){return new se(this)};
|
|
var te=function(a,b,c){ue(a);a.da=c?xe(b,!0):b;a.da&&(a.da=a.da.replace(/:$/,""))},ve=function(a,b){ue(a);if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.xa=b}else a.xa=null};se.prototype.getPath=function(){return this.wa};se.prototype.setPath=function(a,b){ue(this);this.wa=b?xe(a,!0):a;return this};var we=function(a,b,c){ue(a);b instanceof ye?(a.T=b,a.T.lc(a.J)):(c||(b=ze(b,Ee)),a.T=new ye(b,0,a.J))},ue=function(a){if(a.Nd)throw Error("Tried to modify a read-only Uri");};
|
|
se.prototype.lc=function(a){this.J=a;this.T&&this.T.lc(a);return this};
|
|
var Fe=function(a){return a instanceof se?a.clone():new se(a,void 0)},xe=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},ze=function(a,b,c){return p(a)?(a=encodeURI(a).replace(b,Ge),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},Ge=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},Ae=/[#\/\?@]/g,Ce=/[\#\?:]/g,Be=/[\#\?]/g,Ee=/[\#\?@]/g,De=/#/g,ye=function(a,b,c){this.f=this.i=null;this.H=a||null;this.J=!!c},He=function(a){a.i||
|
|
(a.i=new jc,a.f=0,a.H&&Zd(a.H,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))};h=ye.prototype;h.C=function(){He(this);return this.f};h.add=function(a,b){He(this);this.H=null;a=Ie(this,a);var c=this.i.get(a);c||this.i.set(a,c=[]);c.push(b);this.f=Ca(this.f)+1;return this};h.remove=function(a){He(this);a=Ie(this,a);return this.i.$(a)?(this.H=null,this.f=Ca(this.f)-this.i.get(a).length,this.i.remove(a)):!1};h.clear=function(){this.i=this.H=null;this.f=0};
|
|
h.isEmpty=function(){He(this);return 0==this.f};h.$=function(a){He(this);a=Ie(this,a);return this.i.$(a)};h.M=function(){He(this);for(var a=this.i.u(),b=this.i.M(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};h.u=function(a){He(this);var b=[];if(p(a))this.$(a)&&(b=fb(b,this.i.get(Ie(this,a))));else{a=this.i.u();for(var c=0;c<a.length;c++)b=fb(b,a[c])}return b};
|
|
h.set=function(a,b){He(this);this.H=null;a=Ie(this,a);this.$(a)&&(this.f=Ca(this.f)-this.i.get(a).length);this.i.set(a,[b]);this.f=Ca(this.f)+1;return this};h.get=function(a,b){var c=a?this.u(a):[];return 0<c.length?String(c[0]):b};h.setValues=function(a,b){this.remove(a);0<b.length&&(this.H=null,this.i.set(Ie(this,a),gb(b)),this.f=Ca(this.f)+b.length)};
|
|
h.toString=function(){if(this.H)return this.H;if(!this.i)return"";for(var a=[],b=this.i.M(),c=0;c<b.length;c++)for(var d=b[c],e=encodeURIComponent(String(d)),d=this.u(d),f=0;f<d.length;f++){var g=e;""!==d[f]&&(g+="="+encodeURIComponent(String(d[f])));a.push(g)}return this.H=a.join("&")};h.clone=function(){var a=new ye;a.H=this.H;this.i&&(a.i=this.i.clone(),a.f=this.f);return a};var Ie=function(a,b){var c=String(b);a.J&&(c=c.toLowerCase());return c};
|
|
ye.prototype.lc=function(a){a&&!this.J&&(He(this),this.H=null,this.i.forEach(function(a,c){var d=c.toLowerCase();c!=d&&(this.remove(c),this.setValues(d,a))},this));this.J=a};var Pe=function(a,b,c,d,e){var f=["https://www.googleapis.com/auth/earthengine"];d&&(hb(f,d),jb(f));Je=a;Ke=f;null===a?Le=null:Me(function(){Ne(b,c,e||ja(Oe,b,c))})};w("ee.data.authenticate",Pe);var Oe=function(a,b){l.gapi.auth.authorize({client_id:Je,immediate:!1,scope:Ke.join(" ")},ja(Qe,a,b))};w("ee.data.authenticateViaPopup",Oe);
|
|
var Re=function(a,b,c,d,e,f,g){var k=["https://www.googleapis.com/auth/earthengine"];e&&(hb(k,e),jb(k));Je=a;Ke=k;var v={token_type:b,access_token:c,state:k.join(" "),expires_in:d};Qe(void 0,void 0,v);!1===g?f&&f():Me(function(){l.gapi.auth.setToken(v);f&&f()})};w("ee.data.setAuthToken",Re);var Ne=function(a,b,c){Se&&Je&&Se({client_id:String(Je),immediate:!0,scope:Ke.join(" ")},function(d){"immediate_failed"==d.error&&c?c():Qe(a,b,d)})},Te=function(a){Se=a};w("ee.data.setAuthTokenRefresher",Te);
|
|
var We=function(){Ue&&0<=ka()-Ue&&Ve();return Le};w("ee.data.getAuthToken",We);var Ve=function(){Ue=Le=null};w("ee.data.clearAuthToken",Ve);var Xe=function(){return Je};w("ee.data.getAuthClientId",Xe);var Ye=function(){return Ke};w("ee.data.getAuthScopes",Ye);var cf=function(a,b,c){null!=a?Ze=a:$e||(Ze="https://earthengine.googleapis.com/api");null!=b?af=b:$e||(af="https://earthengine.googleapis.com");m(c)&&(bf=c);$e=!0},ef=function(a){df=a};w("ee.data.setDeadline",ef);
|
|
w("ee.data.setParamAugmenter",function(a){ff=a||ec});var gf=function(){return Ze};w("ee.data.getApiBaseUrl",gf);var hf=function(){return af};w("ee.data.getTileBaseUrl",hf);var jf=function(){return bf};w("ee.data.getXsrfToken",jf);var kf=function(a,b){a=Na(a);return D("/mapid",E(a),b)};w("ee.data.getMapId",kf);var lf=function(a,b,c,d){var e=Math.pow(2,d);b%=e;0>b&&(b+=e);return[af,"map",a.mapid,d,b,c].join("/")+"?token="+a.token};w("ee.data.getTileUrl",lf);
|
|
var mf=function(a,b){a=Na(a);return D("/value",E(a),b)};w("ee.data.getValue",mf);var nf=function(a,b){a=Na(a);n(a.size)&&(a.size=a.size.join("x"));var c=E(a).add("getid","1");return D("/thumb",c,b)};w("ee.data.getThumbId",nf);var of=function(a){return af+"/api/thumb?thumbid="+a.thumbid+"&token="+a.token};w("ee.data.makeThumbUrl",of);var pf=function(a,b){a=Na(a);return D("/download",E(a),b)};w("ee.data.getDownloadId",pf);var qf=function(a){return af+"/api/download?docid="+a.docid+"&token="+a.token};
|
|
w("ee.data.makeDownloadUrl",qf);var rf=function(a,b){a=Na(a);return D("/table",E(a),b)};w("ee.data.getTableDownloadId",rf);var sf=function(a){return af+"/api/table?docid="+a.docid+"&token="+a.token};w("ee.data.makeTableDownloadUrl",sf);var uf=function(a,b,c){var d=tf;try{return tf=a,b.call(c)}finally{tf=d}};w("ee.data.withProfiling",uf);w("ee.data.newTaskId",function(a,b){var c={};q(a)&&(c.count=a);return D("/newtaskid",E(c),b)});
|
|
w("ee.data.getTaskStatus",function(a,b){if(p(a))a=[a];else if(!n(a))throw Error("Invalid taskId: expected a string or an array of strings.");return D("/taskstatus?q="+a.join(),null,b,"GET")});w("ee.data.getTaskList",function(a){return D("/tasklist",null,a,"GET")});w("ee.data.cancelTask",function(a,b){return vf(a,"CANCEL",b)});
|
|
var vf=function(a,b,c){if(p(a))a=[a];else if(!n(a))throw Error("Invalid taskId: expected a string or an array of strings.");var d;a:{d=wf;for(var e in d)if(d[e]==b){d=!0;break a}d=!1}if(!d)throw Error("Invalid action: "+b);return D("/updatetask",E({id:a,action:b}),c,"POST")};w("ee.data.updateTask",vf);w("ee.data.startProcessing",function(a,b,c){b=Na(b);b.id=a;return D("/processingrequest",E(b),c)});
|
|
w("ee.data.startIngestion",function(a,b,c){a={id:a,request:fd(b)};return D("/ingestionrequest",E(a),c)});var xf=function(a,b){return D("/info",(new ye).add("id",a),b)};w("ee.data.getInfo",xf);var yf=function(a,b){var c=E(a);return D("/list",c,b)};w("ee.data.getList",yf);w("ee.data.getAssetRoots",function(a){return D("/buckets",null,a,"GET")});w("ee.data.createAssetHome",function(a,b){var c=E({id:a});D("/createbucket",c,b)});
|
|
w("ee.data.createAsset",function(a,b,c,d){p(a)||(a=fd(a));a={value:a};void 0!==b&&(a.id=b);a.force=c||!1;return D("/create",E(a),d)});w("ee.data.createFolder",function(a,b,c){return D("/createfolder",E({id:a,force:b||!1}),c)});w("ee.data.renameAsset",function(a,b,c){D("/rename",E({sourceId:a,destinationId:b}),c)});w("ee.data.copyAsset",function(a,b,c){D("/copy",E({sourceId:a,destinationId:b}),c)});w("ee.data.deleteAsset",function(a,b){D("/delete",E({id:a}),b)});
|
|
w("ee.data.getAssetAcl",function(a,b){return D("/getacl",E({id:a}),b,"GET")});w("ee.data.setAssetAcl",function(a,b,c){a={id:a,value:fd(b)};D("/setacl",E(a),c)});w("ee.data.setAssetProperties",function(a,b,c){a={id:a,properties:fd(b)};D("/setproperties",E(a),c)});w("ee.data.getAssetRootQuota",function(a,b){return D("/quota",E({id:a}),b,"GET")});
|
|
var wf={ge:"CANCEL",je:"UPDATE"},D=function(a,b,c,d){cf();var e=tf,f={"Content-Type":"application/x-www-form-urlencoded"},g=We();if(null!=g)f.Authorization=g;else if(c&&Se&&Je)return Ne(function(){uf(e,function(){D(a,b,c,d)})}),null;g=d||"POST";b=b?b.clone():new ye;e&&b.add("profiling","1");b=ff(b,a);null!=bf&&(f["X-XSRF-Token"]=bf);var k=function(a,b,c,d){var f=b("X-Earth-Engine-Computation-Profile");f&&e&&e(f);var g,k,v;b=(b=b("Content-Type"))?b.replace(/;.*/,""):"application/json";if("application/json"==
|
|
b||"text/json"==b)try{g=dd(c),k=g.data}catch(R){v="Invalid JSON: "+c}else v="Response was unexpectedly not JSON, but "+b;if(t(g))"error"in g&&"message"in g.error?v=g.error.message:"data"in g||(v="Malformed response: "+c);else if(0===a)v="Failed to contact Earth Engine servers. Please check your connection, firewall, or browser extension settings.";else if(200>a||300<=a)v="Server returned HTTP code: "+a;if(d)return d(k,v),null;if(!v)return k;throw Error(v);},v=b?b.toString():"";"GET"!=g||/^[\s\xa0]*$/.test(v)||
|
|
(a+=-1!=a.indexOf("?")?"&":"?",a+=v,v=null);var R=Ze+a;if(c)return zf.push({url:R,Ob:function(a){a=a.target;var b=a.getStatus(),d=u(a.getResponseHeader,a),e;try{e=a.a?a.a.responseText:""}catch(f){Xd(a.G,"Can not get responseText: "+f.message),e=""}return k(b,d,e,c)},method:g,content:v,headers:f}),Af.Kc(),null;var S=B();S.open(g,R,!1);Ga(f,function(a,b){S.setRequestHeader(b,a)});S.send(v);return k(S.status,function(a){try{return S.getResponseHeader(a)}catch(b){return null}},S.responseText,null)},Me=
|
|
function(a){var b=function(){l.gapi.config.update("client/cors",!0);Se||(Se=l.gapi.auth.authorize);a()};if(t(l.gapi)&&t(l.gapi.auth)&&r(l.gapi.auth.authorize))b();else{for(var c=ka().toString(36);c in l;)c+="_";l[c]=function(){delete l[c];b()};Ld("https://apis.google.com/js/client.js?onload="+c)}},Qe=function(a,b,c){c.access_token?(b=c.token_type+" "+c.access_token,isFinite(c.expires_in)&&(c=900*c.expires_in,setTimeout(Ne,.9*c),Ue=ka()+c),Le=b,a&&a()):b&&b(c.error||"Unknown error.")},E=function(a){var b=
|
|
new ye,c;for(c in a)b.set(c,a[c]);return b},zf=[],Af=new ad(function(){var a=zf.shift();if(a){var b=a.url,c=a.Ob,d=a.method,e=a.content,a=a.headers,f=df,g=new C;ie.push(g);c&&g.Sa("complete",c);g.qb("ready",g.Cd);f&&(g.Ea=Math.max(0,f));g.send(b,d,e,a)}0==zf.length||Af.Kc()},350),Ze=null,af=null,bf=null,ff=ec,Le=null,Ue=null,Je=null,Ke=[],Se=null,$e=!1,df=0,tf=null;var Bf=function(){};var Cf=function(){this.Z=-1};var Df=function(){this.Z=64;this.B=Array(4);this.yd=Array(this.Z);this.Cb=this.Ha=0;this.reset()};x(Df,Cf);Df.prototype.reset=function(){this.B[0]=1732584193;this.B[1]=4023233417;this.B[2]=2562383102;this.B[3]=271733878;this.Cb=this.Ha=0};
|
|
var Ef=function(a,b,c){c||(c=0);var d=Array(16);if(p(b))for(var e=0;16>e;++e)d[e]=b.charCodeAt(c++)|b.charCodeAt(c++)<<8|b.charCodeAt(c++)<<16|b.charCodeAt(c++)<<24;else for(e=0;16>e;++e)d[e]=b[c++]|b[c++]<<8|b[c++]<<16|b[c++]<<24;b=a.B[0];c=a.B[1];var e=a.B[2],f=a.B[3],g;g=b+(f^c&(e^f))+d[0]+3614090360&4294967295;b=c+(g<<7&4294967295|g>>>25);g=f+(e^b&(c^e))+d[1]+3905402710&4294967295;f=b+(g<<12&4294967295|g>>>20);g=e+(c^f&(b^c))+d[2]+606105819&4294967295;e=f+(g<<17&4294967295|g>>>15);g=c+(b^e&(f^
|
|
b))+d[3]+3250441966&4294967295;c=e+(g<<22&4294967295|g>>>10);g=b+(f^c&(e^f))+d[4]+4118548399&4294967295;b=c+(g<<7&4294967295|g>>>25);g=f+(e^b&(c^e))+d[5]+1200080426&4294967295;f=b+(g<<12&4294967295|g>>>20);g=e+(c^f&(b^c))+d[6]+2821735955&4294967295;e=f+(g<<17&4294967295|g>>>15);g=c+(b^e&(f^b))+d[7]+4249261313&4294967295;c=e+(g<<22&4294967295|g>>>10);g=b+(f^c&(e^f))+d[8]+1770035416&4294967295;b=c+(g<<7&4294967295|g>>>25);g=f+(e^b&(c^e))+d[9]+2336552879&4294967295;f=b+(g<<12&4294967295|g>>>20);g=e+
|
|
(c^f&(b^c))+d[10]+4294925233&4294967295;e=f+(g<<17&4294967295|g>>>15);g=c+(b^e&(f^b))+d[11]+2304563134&4294967295;c=e+(g<<22&4294967295|g>>>10);g=b+(f^c&(e^f))+d[12]+1804603682&4294967295;b=c+(g<<7&4294967295|g>>>25);g=f+(e^b&(c^e))+d[13]+4254626195&4294967295;f=b+(g<<12&4294967295|g>>>20);g=e+(c^f&(b^c))+d[14]+2792965006&4294967295;e=f+(g<<17&4294967295|g>>>15);g=c+(b^e&(f^b))+d[15]+1236535329&4294967295;c=e+(g<<22&4294967295|g>>>10);g=b+(e^f&(c^e))+d[1]+4129170786&4294967295;b=c+(g<<5&4294967295|
|
|
g>>>27);g=f+(c^e&(b^c))+d[6]+3225465664&4294967295;f=b+(g<<9&4294967295|g>>>23);g=e+(b^c&(f^b))+d[11]+643717713&4294967295;e=f+(g<<14&4294967295|g>>>18);g=c+(f^b&(e^f))+d[0]+3921069994&4294967295;c=e+(g<<20&4294967295|g>>>12);g=b+(e^f&(c^e))+d[5]+3593408605&4294967295;b=c+(g<<5&4294967295|g>>>27);g=f+(c^e&(b^c))+d[10]+38016083&4294967295;f=b+(g<<9&4294967295|g>>>23);g=e+(b^c&(f^b))+d[15]+3634488961&4294967295;e=f+(g<<14&4294967295|g>>>18);g=c+(f^b&(e^f))+d[4]+3889429448&4294967295;c=e+(g<<20&4294967295|
|
|
g>>>12);g=b+(e^f&(c^e))+d[9]+568446438&4294967295;b=c+(g<<5&4294967295|g>>>27);g=f+(c^e&(b^c))+d[14]+3275163606&4294967295;f=b+(g<<9&4294967295|g>>>23);g=e+(b^c&(f^b))+d[3]+4107603335&4294967295;e=f+(g<<14&4294967295|g>>>18);g=c+(f^b&(e^f))+d[8]+1163531501&4294967295;c=e+(g<<20&4294967295|g>>>12);g=b+(e^f&(c^e))+d[13]+2850285829&4294967295;b=c+(g<<5&4294967295|g>>>27);g=f+(c^e&(b^c))+d[2]+4243563512&4294967295;f=b+(g<<9&4294967295|g>>>23);g=e+(b^c&(f^b))+d[7]+1735328473&4294967295;e=f+(g<<14&4294967295|
|
|
g>>>18);g=c+(f^b&(e^f))+d[12]+2368359562&4294967295;c=e+(g<<20&4294967295|g>>>12);g=b+(c^e^f)+d[5]+4294588738&4294967295;b=c+(g<<4&4294967295|g>>>28);g=f+(b^c^e)+d[8]+2272392833&4294967295;f=b+(g<<11&4294967295|g>>>21);g=e+(f^b^c)+d[11]+1839030562&4294967295;e=f+(g<<16&4294967295|g>>>16);g=c+(e^f^b)+d[14]+4259657740&4294967295;c=e+(g<<23&4294967295|g>>>9);g=b+(c^e^f)+d[1]+2763975236&4294967295;b=c+(g<<4&4294967295|g>>>28);g=f+(b^c^e)+d[4]+1272893353&4294967295;f=b+(g<<11&4294967295|g>>>21);g=e+(f^
|
|
b^c)+d[7]+4139469664&4294967295;e=f+(g<<16&4294967295|g>>>16);g=c+(e^f^b)+d[10]+3200236656&4294967295;c=e+(g<<23&4294967295|g>>>9);g=b+(c^e^f)+d[13]+681279174&4294967295;b=c+(g<<4&4294967295|g>>>28);g=f+(b^c^e)+d[0]+3936430074&4294967295;f=b+(g<<11&4294967295|g>>>21);g=e+(f^b^c)+d[3]+3572445317&4294967295;e=f+(g<<16&4294967295|g>>>16);g=c+(e^f^b)+d[6]+76029189&4294967295;c=e+(g<<23&4294967295|g>>>9);g=b+(c^e^f)+d[9]+3654602809&4294967295;b=c+(g<<4&4294967295|g>>>28);g=f+(b^c^e)+d[12]+3873151461&4294967295;
|
|
f=b+(g<<11&4294967295|g>>>21);g=e+(f^b^c)+d[15]+530742520&4294967295;e=f+(g<<16&4294967295|g>>>16);g=c+(e^f^b)+d[2]+3299628645&4294967295;c=e+(g<<23&4294967295|g>>>9);g=b+(e^(c|~f))+d[0]+4096336452&4294967295;b=c+(g<<6&4294967295|g>>>26);g=f+(c^(b|~e))+d[7]+1126891415&4294967295;f=b+(g<<10&4294967295|g>>>22);g=e+(b^(f|~c))+d[14]+2878612391&4294967295;e=f+(g<<15&4294967295|g>>>17);g=c+(f^(e|~b))+d[5]+4237533241&4294967295;c=e+(g<<21&4294967295|g>>>11);g=b+(e^(c|~f))+d[12]+1700485571&4294967295;b=c+
|
|
(g<<6&4294967295|g>>>26);g=f+(c^(b|~e))+d[3]+2399980690&4294967295;f=b+(g<<10&4294967295|g>>>22);g=e+(b^(f|~c))+d[10]+4293915773&4294967295;e=f+(g<<15&4294967295|g>>>17);g=c+(f^(e|~b))+d[1]+2240044497&4294967295;c=e+(g<<21&4294967295|g>>>11);g=b+(e^(c|~f))+d[8]+1873313359&4294967295;b=c+(g<<6&4294967295|g>>>26);g=f+(c^(b|~e))+d[15]+4264355552&4294967295;f=b+(g<<10&4294967295|g>>>22);g=e+(b^(f|~c))+d[6]+2734768916&4294967295;e=f+(g<<15&4294967295|g>>>17);g=c+(f^(e|~b))+d[13]+1309151649&4294967295;
|
|
c=e+(g<<21&4294967295|g>>>11);g=b+(e^(c|~f))+d[4]+4149444226&4294967295;b=c+(g<<6&4294967295|g>>>26);g=f+(c^(b|~e))+d[11]+3174756917&4294967295;f=b+(g<<10&4294967295|g>>>22);g=e+(b^(f|~c))+d[2]+718787259&4294967295;e=f+(g<<15&4294967295|g>>>17);g=c+(f^(e|~b))+d[9]+3951481745&4294967295;a.B[0]=a.B[0]+b&4294967295;a.B[1]=a.B[1]+(e+(g<<21&4294967295|g>>>11))&4294967295;a.B[2]=a.B[2]+e&4294967295;a.B[3]=a.B[3]+f&4294967295};
|
|
Df.prototype.update=function(a,b){m(b)||(b=a.length);for(var c=b-this.Z,d=this.yd,e=this.Ha,f=0;f<b;){if(0==e)for(;f<=c;)Ef(this,a,f),f+=this.Z;if(p(a))for(;f<b;){if(d[e++]=a.charCodeAt(f++),e==this.Z){Ef(this,d);e=0;break}}else for(;f<b;)if(d[e++]=a[f++],e==this.Z){Ef(this,d);e=0;break}}this.Ha=e;this.Cb+=b};
|
|
Df.prototype.digest=function(){var a=Array((56>this.Ha?this.Z:2*this.Z)-this.Ha);a[0]=128;for(var b=1;b<a.length-8;++b)a[b]=0;for(var c=8*this.Cb,b=a.length-8;b<a.length;++b)a[b]=c&255,c/=256;this.update(a);a=Array(16);for(b=c=0;4>b;++b)for(var d=0;32>d;d+=8)a[c++]=this.B[b]>>>d&255;return a};var Ff=function(a){this.Ya="__ee_hash__";this.dc=!1!==a;this.Ca=[];this.ta={};this.tc=[]};w("ee.Serializer",Ff);var Gf=new ed,Hf=new Df,Jf=function(a,b){return If(new Ff(m(b)?b:!0),a)};w("ee.Serializer.encode",Jf);var Kf=function(a){return Gf.v(Jf(a))};w("ee.Serializer.toJSON",Kf);var Lf=function(a){a=If(new Ff(!1),a);return"JSON"in l?l.JSON.stringify(a,null," "):Gf.v(a)};w("ee.Serializer.toReadableJSON",Lf);
|
|
var If=function(a,b){var c=a.fb(b);a.dc&&(c=t(c)&&"ValueRef"==c.type&&1==a.Ca.length?a.Ca[0][1]:{type:"CompoundValue",scope:a.Ca,value:c},a.Ca=[],Wa(a.tc,u(function(a){delete a[this.Ya]},a)),a.tc=[],a.ta={});return c};
|
|
Ff.prototype.fb=function(a){if(!m(a))throw Error("Can't encode an undefined value.");var b,c=t(a)?a[this.Ya]:null;if(this.dc&&null!=c&&this.ta[c])return{type:"ValueRef",value:this.ta[c]};if(null===a||"boolean"==typeof a||q(a)||p(a))return a;if(t(a)&&"function"==typeof a.getFullYear)return{type:"Invocation",functionName:"Date",arguments:{value:Math.floor(a.getTime())}};if(a instanceof Bf){if(b=a.encode(u(this.fb,this)),!(n(b)||t(b)&&"ArgumentRef"!=b.type))return b}else if(n(a))b=Ya(a,function(a){return this.fb(a)},
|
|
this);else if(t(a)&&!r(a))b=Ia(a,function(a){if(!r(a))return this.fb(a)},this),Ma(b,this.Ya),b={type:"Dictionary",value:b};else throw Error("Can't encode object: "+a);if(this.dc){Hf.reset();Hf.update(Gf.v(b));var c=Hf.digest().toString(),d;this.ta[c]?d=this.ta[c]:(d=String(this.Ca.length),this.Ca.push([d,b]),this.ta[c]=d);a[this.Ya]=c;this.tc.push(a);return{type:"ValueRef",value:d}}return b};var F=function(a,b,c){if(!(this instanceof F))return G(F,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.c=a;this.o=b;this.w=c||null};x(F,Bf);w("ee.ComputedObject",F);F.prototype.evaluate=function(a){if(!a||!r(a))throw Error("evaluate() requires a callback function.");mf({json:this.v()},a)};F.prototype.evaluate=F.prototype.evaluate;
|
|
F.prototype.A=function(a){return mf({json:this.v()},a)};F.prototype.getInfo=F.prototype.A;F.prototype.encode=function(a){if(null===this.c&&null===this.o)return{type:"ArgumentRef",value:this.w};var b={},c;for(c in this.o)m(this.o[c])&&(b[c]=a(this.o[c]));b={type:"Invocation",arguments:b};a=a(this.c);b[p(a)?"functionName":"function"]=a;return b};F.prototype.v=function(){return Kf(this)};F.prototype.serialize=F.prototype.v;F.prototype.toString=function(){return"ee."+this.name()+"("+Lf(this)+")"};
|
|
F.prototype.toString=F.prototype.toString;F.prototype.name=function(){return"ComputedObject"};F.prototype.vc=function(a,b){var c=gb(arguments);c[0]=this;a.apply(l,c);return this};F.prototype.aside=F.prototype.vc;var Mf=function(a,b){if(b instanceof a.constructor)return b;var c=function(){};c.prototype=a.constructor.prototype;c=new c;c.c=b.c;c.o=b.o;c.w=b.w;return c},G=function(a,b){function c(){return a.apply(this,b)}c.prototype=a.prototype;return new c};var Nf={},Of=function(a){return a.prototype instanceof F?a.prototype.name.call(null):a==Number?"Number":a==String?"String":a==Array?"Array":a==Date?"Date":"Object"},Pf=function(a,b){if(b==a)return!0;switch(a){case "Element":return"Element"==b||"Image"==b||"Feature"==b||"Collection"==b||"ImageCollection"==b||"FeatureCollection"==b;case "FeatureCollection":case "Collection":return"Collection"==b||"ImageCollection"==b||"FeatureCollection"==b;case "Object":return!0;default:return!1}},Qf=function(a){return q(a)||
|
|
a instanceof F&&"Number"==a.name()},Rf=function(a){return p(a)||a instanceof F&&"String"==a.name()},Sf=function(a){return t(a)&&!r(a)?(a=Object.getPrototypeOf(a),null!==a&&null===Object.getPrototypeOf(a)):!1};var H=function(){if(!(this instanceof H))return new H};x(H,Bf);w("ee.Function",H);var Tf=ec;H.prototype.call=function(a){return this.apply(Uf(this,Array.prototype.slice.call(arguments,0)))};H.prototype.call=H.prototype.call;H.prototype.apply=function(a){a=new F(this,Vf(this,a));return Tf(a,this.F().returns)};H.prototype.apply=H.prototype.apply;
|
|
var Wf=function(a,b,c){var d=m(b),e=a.F(),f=!1;if(1==c.length&&Sf(c[0])){var g=e.args;d&&(g=g.slice(1));g.length&&(f=!((1==g.length||g[1].optional)&&"Dictionary"==g[0].type))}if(f){if(c=Na(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=Uf(a,d?[b].concat(c):c);return a.apply(c)},Vf=function(a,b){for(var c=a.F().args,d={},e={},f=0;f<c.length;f++){var g=c[f].name;if(g in b&&m(b[g]))d[g]=Tf(b[g],c[f].type);else if(!c[f].optional)throw Error("Required argument ("+
|
|
g+") missing to function: "+a);e[g]=!0}var c=[],k;for(k in b)e[k]||c.push(k);if(0<c.length)throw Error("Unrecognized arguments ("+c+") to function: "+a);return d},Uf=function(a,b){var c=a.F().args;if(c.length<b.length)throw Error("Too many ("+b.length+") arguments to function: "+a);for(var d={},e=0;e<b.length;e++)d[c[e].name]=b[e];return d};
|
|
H.prototype.toString=function(a,b){var c=this.F(),d=[];d.push(a||c.name);d.push("(");d.push(Ya(c.args.slice(b?1:0),function(a){return a.name}).join(", "));d.push(")\n");d.push("\n");c.description?d.push(c.description):d.push("Undocumented.");d.push("\n");if(c.args.length){d.push("\nArgs:\n");for(var e=0;e<c.args.length;e++){b&&0==e?d.push(" this:"):d.push("\n ");var f=c.args[e];d.push(f.name);d.push(" (");d.push(f.type);f.optional&&d.push(", optional");d.push("): ");f.description?d.push(f.description):
|
|
d.push("Undocumented.")}}return d.join("")};H.prototype.v=function(){return Kf(this)};var I=function(a,b){if(!m(b))return Xf(a);if(!(this instanceof I))return G(I,arguments);this.ea=Oa(b);this.ea.name=a};x(I,H);w("ee.ApiFunction",I);var J=function(a,b){return H.prototype.call.apply(Xf(a),Array.prototype.slice.call(arguments,1))};w("ee.ApiFunction._call",J);var Yf=function(a,b){return Xf(a).apply(b)};w("ee.ApiFunction._apply",Yf);I.prototype.encode=function(){return this.ea.name};I.prototype.F=function(){return this.ea};
|
|
var Zf=null,$f={},bg=function(){ag();return Ia(Zf,function(a){return a.F()})},cg=function(){ag();return Ha(Zf,function(a,b){return!$f[b]})},Xf=function(a){var b=dg(a);if(!b)throw Error("Unknown built-in function name: "+a);return b};w("ee.ApiFunction.lookup",Xf);
|
|
var dg=function(a){ag();return Zf[a]||null},ag=function(a,b){if(Zf)a&&a();else{var c=function(c,e){e?b&&b(Error(e)):(Zf=Ia(c,function(a,b){a.returns=a.returns.replace(/<.*>/,"");for(var c=0;c<a.args.length;c++)a.args[c].type=a.args[c].type.replace(/<.*>/,"");return new I(b,a)}),a&&a())};a?D("/algorithms",null,c,"GET"):c(D("/algorithms",null,void 0,"GET"))}},K=function(a,b,c,d){ag();var e=d||"";Ga(Zf,function(d,g){var k=g.split(".");if(2==k.length&&k[0]==b){var k=e+k[1],v=d.F();$f[g]=!0;var R=!1;if(v.args.length)var S=
|
|
v.args[0].type,R="Object"!=S&&Pf(S,c);S=R?a.prototype:a;k in S&&!S[k].signature||(S[k]=function(a){return Wf(d,R?this:void 0,Array.prototype.slice.call(arguments,0))},S[k].toString=u(d.toString,d,k,R),S[k].signature=v)}})},L=function(a){var b=function(a){for(var b in a)r(a[b])&&a[b].signature&&delete a[b]};b(a);b(a.prototype)};var M=function(a,b){var c=eg(a),d=Ya(c,function(a){return a.replace(/^opt_/,"")}),e=l.Ga?l.Ga[a.toString()].name.split(".").pop()+"()":null,e=e?" to function "+e:"",f={},g=b[0],k=t(g)&&!r(g)&&!n(g)&&!(g instanceof F);if(1<b.length||!k){if(b.length>d.length)throw Error("Received too many arguments"+e+". Expected at most "+d.length+" but got "+b.length+".");for(g=0;g<b.length;g++)f[d[g]]=b[g]}else{var k=new oc(Ka(g)),v=new oc(d);if(qc(v,k).isEmpty())f[d[0]]=b[0];else{f=rc(k,v);if(!f.isEmpty())throw Error("Unexpected arguments"+
|
|
e+": "+f.u().join(", "));f=Na(g)}}d=new oc(Ka(f));c=rc(new oc(Xa(c,function(a){return 0!=a.lastIndexOf("opt_",0)})),d);if(!c.isEmpty())throw Error("Missing required arguments"+e+": "+c.u().join(", "));return f},eg=function(a){l.Ga?(a=l.Ga[a.toString()],Ea(a),a=a.paramNames,Fa(a)):a=a.toString().replace(fg,"").match(gg)[1].split(",")||[];return a},fg=/((\/\/.*$)|(\/\*[\s\S]*?\*\/)|(\s))/mg,gg=/^function\s*[^\(]*\(\s*([^\)]*)\)/m;var N=function(a,b,c){F.call(this,a,b,c);hg()};x(N,F);w("ee.Element",N);var ig=!1,hg=function(){ig||(K(N,"Element","Element"),ig=!0)};N.prototype.name=function(){return"Element"};
|
|
N.prototype.set=function(a){var b;if(1>=arguments.length){var c=arguments[0];if(b=Sf(c))a:{b=Ka(c);var d=["properties"];if(ea(b)&&ea(d)&&b.length==d.length){for(var e=b.length,f=0;f<e;f++)if(b[f]!==d[f]){b=!1;break a}b=!0}else b=!1}b&&t(c.properties)&&(c=c.properties);if(Sf(c)){b=this;for(var g in c)d=c[g],b=J("Element.set",b,g,d)}else if(c instanceof F&&dg("Element.setMulti"))b=J("Element.setMulti",this,c);else throw Error("When Element.set() is passed one argument, it must be a dictionary.");}else{if(0!=
|
|
arguments.length%2)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)g=arguments[c],d=arguments[c+1],b=J("Element.set",b,g,d)}return Mf(this,b)};N.prototype.set=N.prototype.set;var O=function(a){if(!(this instanceof O))return G(O,arguments);if(a instanceof O)return a;jg();if(n(a)){if(0==a.length)throw Error("Empty list specified for ee.Filter().");if(1==a.length)return new O(a[0]);F.call(this,new I("Filter.and"),{filters:a});this.Ka=a}else if(a instanceof F)F.call(this,a.c,a.o,a.w),this.Ka=[a];else{if(m(a))throw Error("Invalid argument specified for ee.Filter(): "+a);F.call(this,null,null);this.Ka=[]}};x(O,F);w("ee.Filter",O);
|
|
var kg=!1,jg=function(){kg||(K(O,"Filter","Filter"),kg=!0)},lg={equals:"equals",less_than:"lessThan",greater_than:"greaterThan",contains:"stringContains",starts_with:"stringStartsWith",ends_with:"stringEndsWith"},P=function(a,b){var c=a.Ka.slice(0);b instanceof O?hb(c,b.Ka):b instanceof Array?hb(c,b):c.push(b);return new O(c)};O.prototype.X=function(){return J("Filter.not",this)};O.prototype.not=O.prototype.X;var mg=function(a,b){var c=M(mg,arguments);return J("Filter.equals",c.name,c.value)};
|
|
O.eq=mg;var ng=function(a,b){var c=M(ng,arguments);return mg(c.name,c.value).X()};O.neq=ng;var og=function(a,b){var c=M(og,arguments);return J("Filter.lessThan",c.name,c.value)};O.lt=og;var pg=function(a,b){var c=M(pg,arguments);return og(c.name,c.value).X()};O.gte=pg;var qg=function(a,b){var c=M(qg,arguments);return J("Filter.greaterThan",c.name,c.value)};O.gt=qg;var rg=function(a,b){var c=M(rg,arguments);return qg(c.name,c.value).X()};O.lte=rg;var sg=function(a){return J("Filter.and",Array.prototype.slice.call(arguments))};
|
|
O.and=sg;var tg=function(a){return J("Filter.or",Array.prototype.slice.call(arguments))};O.or=tg;var ug=function(a,b){var c=M(ug,arguments),c=J("DateRange",c.start,c.end);return Yf("Filter.dateRangeContains",{leftValue:c,rightField:"system:time_start"})};O.date=ug;var vg=function(a,b,c,d){var e=M(vg,arguments);return Yf("Filter.listContains",{leftField:e.rightField,rightValue:e.leftValue,rightField:e.leftField,leftValue:e.rightValue})};O.inList=vg;
|
|
var wg=function(a,b){return Yf("Filter.intersects",{leftField:".all",rightValue:J("Feature",a),maxError:b})};O.bounds=wg;O.prototype.name=function(){return"Filter"};var xg=function(a,b,c){b=b.toLowerCase();var d=!1;0==b.lastIndexOf("not_",0)&&(d=!0,b=b.substring(4));if(!(b in lg))throw Error("Unknown filtering operator: "+b);a=J("Filter."+lg[b],a,c);return d?a.X():a};O.metadata=xg;var yg=function(a,b){return J("Filter.stringContains",a,b)};O.contains=yg;var zg=function(a,b){return yg(a,b).X()};
|
|
O.not_contains=zg;var Ag=function(a,b){return J("Filter.stringStartsWith",a,b)};O.starts_with=Ag;var Bg=function(a,b){return Ag(a,b).X()};O.not_starts_with=Bg;var Cg=function(a,b){return J("Filter.stringEndsWith",a,b)};O.ends_with=Cg;var Dg=function(a,b){return Cg(a,b).X()};O.not_ends_with=Dg;O.prototype.Gc=function(a){return P(this,mg.apply(null,[].slice.call(arguments)))};O.prototype.eq=O.prototype.Gc;O.prototype.length=function(){return this.Ka.length};O.prototype.length=O.prototype.length;
|
|
O.prototype.bd=function(a){return P(this,ng.apply(null,[].slice.call(arguments)))};O.prototype.neq=O.prototype.bd;O.prototype.Zc=function(a){return P(this,og.apply(null,[].slice.call(arguments)))};O.prototype.lt=O.prototype.Zc;O.prototype.Pc=function(a){return P(this,pg.apply(null,[].slice.call(arguments)))};O.prototype.gte=O.prototype.Pc;O.prototype.Oc=function(a){return P(this,qg.apply(null,[].slice.call(arguments)))};O.prototype.gt=O.prototype.Oc;
|
|
O.prototype.$c=function(a){return P(this,rg.apply(null,[].slice.call(arguments)))};O.prototype.lte=O.prototype.$c;O.prototype.contains=function(a){return P(this,yg.apply(null,[].slice.call(arguments)))};O.prototype.contains=O.prototype.contains;O.prototype.cd=function(a){return P(this,zg.apply(null,[].slice.call(arguments)))};O.prototype.not_contains=O.prototype.cd;O.prototype.sd=function(a){return P(this,Ag.apply(null,[].slice.call(arguments)))};O.prototype.starts_with=O.prototype.sd;
|
|
O.prototype.ed=function(a){return P(this,Bg.apply(null,[].slice.call(arguments)))};O.prototype.not_starts_with=O.prototype.ed;O.prototype.Fc=function(a){return P(this,Cg.apply(null,[].slice.call(arguments)))};O.prototype.ends_with=O.prototype.Fc;O.prototype.dd=function(a){return P(this,Dg.apply(null,[].slice.call(arguments)))};O.prototype.not_ends_with=O.prototype.dd;O.prototype.uc=function(a){return P(this,sg.apply(null,[].slice.call(arguments)))};O.prototype.and=O.prototype.uc;
|
|
O.prototype.Cc=function(a){return P(this,ug.apply(null,[].slice.call(arguments)))};O.prototype.date=O.prototype.Cc;O.prototype.Sc=function(a){return P(this,vg.apply(null,[].slice.call(arguments)))};O.prototype.inList=O.prototype.Sc;O.prototype.bounds=function(a){return P(this,wg.apply(null,[].slice.call(arguments)))};O.prototype.bounds=O.prototype.bounds;var Q=function(a,b,c){N.call(this,a,b,c);Eg()};x(Q,N);w("ee.Collection",Q);var Fg=!1,Eg=function(){Fg||(K(Q,"Collection","Collection"),K(Q,"AggregateFeatureCollection","Collection","aggregate_"),Fg=!0)};Q.prototype.filter=function(a){if(!a)throw Error("Empty filters.");return Mf(this,J("Collection.filter",this,a))};Q.prototype.filter=Q.prototype.filter;Q.prototype.Yb=function(a,b,c){var d=M(Q.prototype.Yb,arguments);return this.filter(xg(d.name,d.operator,d.value))};Q.prototype.filterMetadata=Q.prototype.Yb;
|
|
Q.prototype.Jc=function(a){return this.filter(wg(a))};Q.prototype.filterBounds=Q.prototype.Jc;Q.prototype.Xb=function(a,b){var c=M(Q.prototype.Xb,arguments);return this.filter(ug(c.start,c.end))};Q.prototype.filterDate=Q.prototype.Xb;Q.prototype.limit=function(a,b,c){var d=M(Q.prototype.limit,arguments);return Mf(this,J("Collection.limit",this,d.max,d.property,d.ascending))};Q.prototype.limit=Q.prototype.limit;
|
|
Q.prototype.sort=function(a,b){var c=M(Q.prototype.sort,arguments);return Mf(this,J("Collection.limit",this,void 0,c.property,c.ascending))};Q.prototype.sort=Q.prototype.sort;Q.prototype.name=function(){return"Collection"};Q.prototype.elementType=function(){return N};Q.prototype.map=function(a,b){var c=this.elementType();return Mf(this,J("Collection.map",this,function(b){return a(new c(b))},b))};Q.prototype.map=Q.prototype.map;
|
|
Q.prototype.Wc=function(a,b){var c=m(b)?b:null,d=this.elementType();return J("Collection.iterate",this,function(b,c){return a(new d(b),c)},c)};Q.prototype.iterate=Q.prototype.Wc;var Gg=function(a){if(!(this instanceof Gg))return G(Gg,arguments);if(a instanceof Gg)return a;Hg();if(q(a))F.call(this,null,null),this.gc=a;else if(a instanceof F)F.call(this,a.c,a.o,a.w),this.gc=null;else throw Error("Invalid argument specified for ee.Number(): "+a);};x(Gg,F);w("ee.Number",Gg);var Ig=!1,Hg=function(){Ig||(K(Gg,"Number","Number"),Ig=!0)};Gg.prototype.encode=function(a){return q(this.gc)?this.gc:Gg.l.encode.call(this,a)};Gg.prototype.name=function(){return"Number"};var Jg=function(a){if(!(this instanceof Jg))return G(Jg,arguments);if(a instanceof Jg)return a;Kg();if(p(a))F.call(this,null,null),this.nc=a;else if(a instanceof F)this.nc=null,a.c&&"String"==a.c.F().returns?F.call(this,a.c,a.o,a.w):F.call(this,new I("String"),{input:a},null);else throw Error("Invalid argument specified for ee.String(): "+a);};x(Jg,F);w("ee.String",Jg);var Lg=!1,Kg=function(){Lg||(K(Jg,"String","String"),Lg=!0)};
|
|
Jg.prototype.encode=function(a){return p(this.nc)?this.nc:Jg.l.encode.call(this,a)};Jg.prototype.name=function(){return"String"};var Mg=function(a,b){if(!(this instanceof Mg))return G(Mg,arguments);for(var c=[],d=a.args,e=0;e<d.length;e++){var f=d[e],g=f.type;c.push(Ng(g in Nf?Nf[g]:null,f.name))}if(!m(b.apply(null,c)))throw Error("User-defined methods must return a value.");this.ea=Og(a,c,b);this.zd=b.apply(null,c)};x(Mg,H);w("ee.CustomFunction",Mg);Mg.prototype.encode=function(a){return{type:"Function",argumentNames:Ya(this.ea.args,function(a){return a.name}),body:a(this.zd)}};Mg.prototype.F=function(){return this.ea};
|
|
var Ng=function(a,b){a=a||Object;if(!(a.prototype instanceof F))if(a&&a!=Object)if(a==String)a=Jg;else if(a==Number)a=Gg;else if(a==Array)a=l.ee.List;else throw Error("Variables must be of an EE type, e.g. ee.Image or ee.Number.");else a=F;var c=function(){};c.prototype=a.prototype;c=new c;c.c=null;c.o=null;c.w=b;return c},Pg=function(a,b){var c=Ya(b,function(a){return{name:null,type:p(a)?a:Of(a)}}),c={name:"",returns:p("Object")?"Object":Of("Object"),args:c};return new Mg(c,a)},Og=function(a,b,c){for(var d=
|
|
[],e=0;e<b.length;e++)null===b[e].w&&d.push(e);if(0==d.length)return a;var f=function(a){var b=0;t(a)&&!r(a)&&("Function"==a.type&&b++,Ga(a,function(a){b+=f(a)}));return b},e=Jf(c.apply(null,b));c="_MAPPING_VAR_"+f(e)+"_";for(e=0;e<d.length;e++){var g=d[e],k=c+e;b[g].w=k;a.args[g].name=k}return a};var Qg=function(a,b){if(!(this instanceof Qg))return G(Qg,arguments);if(a instanceof Qg)return a;Rg();var c=M(Qg,arguments);a=c.date;var c=c.tz,d=new I("Date"),e={},f=null;if(Rf(a)){if(e.value=a,c)if(Rf(c))e.timeZone=c;else throw Error("Invalid argument specified for ee.Date(..., opt_tz): "+c);}else if(Qf(a))e.value=a;else if(t(a)&&"function"==typeof a.getFullYear)e.value=Math.floor(a.getTime());else if(a instanceof F)a.c&&"Date"==a.c.F().returns?(d=a.c,e=a.o,f=a.w):e.value=a;else throw Error("Invalid argument specified for ee.Date(): "+
|
|
a);F.call(this,d,e,f)};x(Qg,F);w("ee.Date",Qg);var Sg=!1,Rg=function(){Sg||(K(Qg,"Date","Date"),Sg=!0)};Qg.prototype.name=function(){return"Date"};var T=function(a,b,c,d){if(!(this instanceof T))return G(T,arguments);if(!("type"in a)){var e=M(T,arguments);a=e.geoJson;b=e.proj;c=e.geodesic;d=e.evenOdd}Tg();e=null!=b||null!=c||null!=d;if(a instanceof F&&!(a instanceof T&&a.Db)){if(e)throw Error("Setting the CRS, geodesic, or evenOdd flag on a computed Geometry is not suported. Use Geometry.transform().");F.call(this,a.c,a.o,a.w)}else{a instanceof T&&(a=a.encode());if(!Ug(a))throw Error("Invalid GeoJSON geometry: "+JSON.stringify(a));F.call(this,
|
|
null,null);this.Db=a.type;this.Dd=a.coordinates||null;this.Hd=a.geometries||null;if(null!=b)this.kc=b;else if("crs"in a)if(t(a.crs)&&"name"==a.crs.type&&t(a.crs.properties)&&p(a.crs.properties.name))this.kc=a.crs.properties.name;else throw Error("Invalid CRS declaration in GeoJSON: "+(new ed).v(a.crs));this.ib=c;!m(this.ib)&&"geodesic"in a&&(this.ib=!!a.geodesic);this.hb=d;!m(this.hb)&&"evenOdd"in a&&(this.hb=!!a.evenOdd)}};x(T,F);w("ee.Geometry",T);
|
|
var Vg=!1,Tg=function(){Vg||(K(T,"Geometry","Geometry"),Vg=!0)},Wg=function(a,b){if(!(this instanceof Wg))return Xg(Wg,arguments);var c=Yg(Wg,"Point",1,arguments);if(!(c instanceof F)){var d=c.coordinates;if(!n(d)||2!=d.length)throw Error("The Geometry.Point constructor requires 2 coordinates.");}T.call(this,c)};x(Wg,T);T.Point=Wg;var Zg=function(a,b){if(!(this instanceof Zg))return Xg(Zg,arguments);T.call(this,Yg(Zg,"MultiPoint",2,arguments))};x(Zg,T);T.MultiPoint=Zg;
|
|
var $g=function(a,b,c,d,e){if(!(this instanceof $g))return Xg($g,arguments);var f=Yg($g,"Rectangle",2,arguments);if(!(f instanceof F)){var g=f.coordinates;if(2!=g.length)throw Error("The Geometry.Rectangle constructor requires 2 points or 4 coordinates.");var k=g[0][0],v=g[0][1],R=g[1][0],g=g[1][1];f.coordinates=[[[k,g],[k,v],[R,v],[R,g]]];f.type="Polygon"}T.call(this,f)};x($g,T);T.Rectangle=$g;
|
|
var ah=function(a,b,c,d){if(!(this instanceof ah))return Xg(ah,arguments);T.call(this,Yg(ah,"LineString",2,arguments))};x(ah,T);T.LineString=ah;var bh=function(a,b,c,d){if(!(this instanceof bh))return Xg(bh,arguments);T.call(this,Yg(bh,"LinearRing",2,arguments))};x(bh,T);T.LinearRing=bh;var ch=function(a,b,c,d){if(!(this instanceof ch))return Xg(ch,arguments);T.call(this,Yg(ch,"MultiLineString",3,arguments))};x(ch,T);T.MultiLineString=ch;
|
|
var dh=function(a,b,c,d,e){if(!(this instanceof dh))return Xg(dh,arguments);T.call(this,Yg(dh,"Polygon",3,arguments))};x(dh,T);T.Polygon=dh;var eh=function(a,b,c,d,e){if(!(this instanceof eh))return Xg(eh,arguments);T.call(this,Yg(eh,"MultiPolygon",4,arguments))};x(eh,T);T.MultiPolygon=eh;
|
|
T.prototype.encode=function(a){if(!this.Db){if(!a)throw Error("Must specify an encode function when encoding a computed geometry.");return F.prototype.encode.call(this,a)}a={type:this.Db};"GeometryCollection"==this.Db?a.geometries=this.Hd:a.coordinates=this.Dd;null!=this.kc&&(a.crs={type:"name",properties:{name:this.kc}});null!=this.ib&&(a.geodesic=this.ib);null!=this.hb&&(a.evenOdd=this.hb);return a};
|
|
T.prototype.qc=function(){if(this.c)throw Error("Can't convert a computed Geometry to GeoJSON. Use getInfo() instead.");return this.encode()};T.prototype.toGeoJSON=T.prototype.qc;T.prototype.rc=function(){if(this.c)throw Error("Can't convert a computed Geometry to GeoJSON. Use getInfo() instead.");return(new ed).v(this.qc())};T.prototype.toGeoJSONString=T.prototype.rc;T.prototype.v=function(){return Kf(this)};T.prototype.serialize=T.prototype.v;
|
|
T.prototype.toString=function(){return"ee.Geometry("+this.rc()+")"};
|
|
var Ug=function(a){var b=a.type;if("GeometryCollection"==b){b=a.geometries;if(!n(b))return!1;for(a=0;a<b.length;a++)if(!Ug(b[a]))return!1;return!0}a=a.coordinates;var c=fh(a);return"Point"==b&&1==c||"MultiPoint"==b&&(2==c||0==a.length)||"LineString"==b&&2==c||"LinearRing"==b&&2==c||"MultiLineString"==b&&(3==c||0==a.length)||"Polygon"==b&&3==c||"MultiPolygon"==b&&(4==c||0==a.length)},fh=function(a){if(!n(a))return-1;if(n(a[0])){for(var b=fh(a[0]),c=1;c<a.length;c++)if(fh(a[c])!=b)return-1;return b+
|
|
1}for(c=0;c<a.length;c++)if(!q(a[c]))return-1;return 0==a.length%2?1:-1},Yg=function(a,b,c,d){$a(d,Qf)?a={coordinates:gb(d)}:(a=M(a,d),a.coordinates=a.coords,delete a.coords,a.crs=a.proj,delete a.proj,a=Ha(a,da));if(gh(a.coordinates)||null!=a.crs||null!=a.geodesic||null!=a.maxError)return(new I("GeometryConstructors."+b)).apply(a);a.type=b;d=a.coordinates;if(1>c||4<c)throw Error("Unexpected nesting level.");if($a(d,q)&&q(d[0])&&2!=d.length){if(0!=d.length%2)throw Error("Invalid number of coordinates: "+
|
|
d.length);for(var e=[],f=0;f<d.length;f+=2)e.push([d[f],d[f+1]]);d=e}e=d;for(f=0;n(e);)e=e[0],f++;for(;f<c;)d=[d],f++;if(fh(d)!=c)throw Error("Invalid geometry");for(e=d;n(e)&&1==e.length;)e=e[0];c=n(e)&&0==e.length?[]:d;a.coordinates=c;if(c=null==a.evenOdd)c=0<=Ua(["Polygon","Rectangle","MultiPolygon"],b);c&&(a.evenOdd=!0);return a},gh=function(a){return n(a)?Za(a,gh):a instanceof F},Xg=function(a,b){var c=function(){};c.prototype=a.prototype;var c=new c,d=a.apply(c,b);return void 0!==d?d:c};
|
|
T.prototype.name=function(){return"Geometry"};w("ee.Deserializer",function(){});var ih=function(a){return hh(cd(a))};w("ee.Deserializer.fromJSON",ih);var hh=function(a){var b={};if(t(a)&&"CompoundValue"==a.type){for(var c=a.scope,d=0;d<c.length;d++){var e=c[d][0],f=c[d][1];if(e in b)throw Error('Duplicate scope key "'+e+'" in scope #'+d+".");b[e]=jh(f,b)}a=a.value}return jh(a,b)};w("ee.Deserializer.decode",hh);
|
|
var jh=function(a,b){if(null===a||q(a)||"boolean"==typeof a||p(a))return a;if(n(a))return Ya(a,function(a){return jh(a,b)});if(!t(a)||r(a))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":c=a.value;if(!p(c))throw Error("Invalid variable name: "+c);return Ng(Object,c);case "Date":c=a.value;if(!q(c))throw Error("Invalid date value: "+c);return new Qg(c/1E3);case "Bytes":return c=new Bf,
|
|
c.encode=function(){return a},c;case "Invocation":var c="functionName"in a?Xf(a.functionName):jh(a["function"],b),d=Ia(a.arguments,function(a){return jh(a,b)});if(c instanceof H)return c.apply(d);if(c instanceof F)return new F(c,d);throw Error("Invalid function value: "+a["function"]);case "Dictionary":return Ia(a.value,function(a){return jh(a,b)});case "Function":var e=jh(a.body,b),c={name:"",args:Ya(a.argumentNames,function(a){return{name:a,type:"Object",optional:!1}}),returns:"Object"};return new Mg(c,
|
|
function(){return e});case "Point":case "MultiPoint":case "LineString":case "MultiLineString":case "Polygon":case "MultiPolygon":case "LinearRing":case "GeometryCollection":return new T(a);case "CompoundValue":throw Error("Nested CompoundValues are disallowed.");default:throw Error("Unknown encoded object type: "+c);}};var kh=function(a){if(!(this instanceof kh))return G(kh,arguments);if(a instanceof kh)return a;lh();Sf(a)?(F.call(this,null,null),this.Tb=a):(a instanceof F&&a.c&&"Dictionary"==a.c.F().returns?F.call(this,a.c,a.o,a.w):F.call(this,new I("Dictionary"),{input:a},null),this.Tb=null)};x(kh,F);w("ee.Dictionary",kh);var mh=!1,lh=function(){mh||(K(kh,"Dictionary","Dictionary"),mh=!0)};kh.prototype.encode=function(a){return null===this.Tb?kh.l.encode.call(this,a):a(this.Tb)};kh.prototype.name=function(){return"Dictionary"};var U=function(a,b){if(!(this instanceof U))return G(U,arguments);if(a instanceof U){if(b)throw Error("Can't create Feature out of a Feature and properties.");return a}if(2<arguments.length)throw Error("The Feature constructor takes at most 2 arguments ("+arguments.length+" given)");nh();if(a instanceof T||null===a)N.call(this,new I("Feature"),{geometry:a,metadata:b||null});else if(a instanceof F)N.call(this,a.c,a.o,a.w);else if("Feature"==a.type){var c=a.properties||{};if("id"in a){if("system:index"in
|
|
c)throw Error('Can\'t specify both "id" and "system:index".');c=Na(c);c["system:index"]=a.id}N.call(this,new I("Feature"),{geometry:new T(a.geometry),metadata:c})}else N.call(this,new I("Feature"),{geometry:new T(a),metadata:b||null})};x(U,N);w("ee.Feature",U);var oh=!1,nh=function(){oh||(K(U,"Feature","Feature"),oh=!0)};U.prototype.A=function(a){return U.l.A.call(this,a)};U.prototype.getInfo=U.prototype.A;
|
|
U.prototype.getMap=function(a,b){var c=M(U.prototype.getMap,arguments);return J("Collection",[this]).getMap(c.visParams,c.callback)};U.prototype.getMap=U.prototype.getMap;var ph=function(a,b){return Wg.apply(null,arguments)};U.Point=ph;var qh=function(a){return Zg.apply(null,arguments)};U.MultiPoint=qh;var rh=function(a,b,c,d){return new $g([a,b,c,d])};U.Rectangle=rh;var sh=function(a){return ah.apply(null,arguments)};U.LineString=sh;var th=function(a){return bh.apply(null,arguments)};
|
|
U.LinearRing=th;var uh=function(a){return ch.apply(null,arguments)};U.MultiLine=uh;var vh=function(a){return dh.apply(null,arguments)};U.Polygon=vh;var wh=function(a){return eh.apply(null,arguments)};U.MultiPolygon=wh;U.prototype.name=function(){return"Feature"};var xh=function(a){if(this instanceof xh){if(1<arguments.length)throw Error("ee.List() only accepts 1 argument.");if(a instanceof xh)return a}else return G(xh,arguments);yh();if(n(a))F.call(this,null,null),this.fc=a;else if(a instanceof F)F.call(this,a.c,a.o,a.w),this.fc=null;else throw Error("Invalid argument specified for ee.List(): "+a);};x(xh,F);w("ee.List",xh);var zh=!1,yh=function(){zh||(K(xh,"List","List"),zh=!0)};
|
|
xh.prototype.encode=function(a){return n(this.fc)?Ya(this.fc,function(b){return a(b)}):xh.l.encode.call(this,a)};xh.prototype.name=function(){return"List"};var V=function(a,b){if(!(this instanceof V))return G(V,arguments);if(a instanceof V)return a;if(2<arguments.length)throw Error("The FeatureCollection constructor takes at most 2 arguments ("+arguments.length+" given)");Ah();a instanceof T&&(a=new U(a));a instanceof U&&(a=[a]);if(Qf(a)||Rf(a)){var c={tableId:a};b&&(c.geometryColumn=b);Q.call(this,new I("Collection.loadTable"),c)}else if(n(a))Q.call(this,new I("Collection"),{features:Ya(a,function(a){return new U(a)})});else if(a instanceof xh)Q.call(this,
|
|
new I("Collection"),{features:a});else if(a instanceof F)Q.call(this,a.c,a.o,a.w);else throw Error("Unrecognized argument type to convert to a FeatureCollection: "+a);};x(V,Q);w("ee.FeatureCollection",V);var Bh=!1,Ah=function(){Bh||(K(V,"FeatureCollection","FeatureCollection"),Bh=!0)};V.prototype.getMap=function(a,b){var c=M(V.prototype.getMap,arguments),d=Yf("Collection.draw",{collection:this,color:(c.visParams||{}).color||"000000"});if(c.callback)d.getMap(null,c.callback);else return d.getMap()};
|
|
V.prototype.getMap=V.prototype.getMap;V.prototype.A=function(a){return V.l.A.call(this,a)};V.prototype.getInfo=V.prototype.A;V.prototype.ia=function(a,b,c,d){var e=M(V.prototype.ia,arguments),f={};f.table=this.v();e.format&&(f.format=e.format.toUpperCase());e.filename&&(f.filename=e.filename);if(e.selectors){var g=e.selectors;ea(g)&&(g=g.join(","));f.selectors=g}if(e.callback)rf(f,function(a,b){a?e.callback(sf(a)):e.callback(null,b)});else return sf(rf(f))};V.prototype.getDownloadURL=V.prototype.ia;
|
|
V.prototype.select=function(a,b){var c=arguments;return this.map(function(a){return a.select.apply(a,c)})};V.prototype.select=V.prototype.select;V.prototype.name=function(){return"FeatureCollection"};V.prototype.elementType=function(){return U};var W=function(a){if(!(this instanceof W))return G(W,arguments);if(a instanceof W)return a;Ch();var b=arguments.length;if(0==b||1==b&&!m(a))N.call(this,new I("Image.mask"),{image:new W(0),mask:new W(0)});else if(1==b)if(Qf(a))N.call(this,new I("Image.constant"),{value:a});else if(Rf(a))N.call(this,new I("Image.load"),{id:a});else{if(n(a))return Dh(Ya(a,function(a){return new W(a)}));if(a instanceof F)"Array"==a.name()?N.call(this,new I("Image.constant"),{value:a}):N.call(this,a.c,a.o,a.w);else throw Error("Unrecognized argument type to convert to an Image: "+
|
|
a);}else if(2==b){var b=arguments[0],c=arguments[1];if(Rf(b)&&Qf(c))N.call(this,new I("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)");};x(W,N);w("ee.Image",W);var Eh=!1,Ch=function(){Eh||(K(W,"Image","Image"),K(W,"Window","Image","focal_"),Eh=!0)};W.prototype.A=function(a){return W.l.A.call(this,a)};W.prototype.getInfo=W.prototype.A;
|
|
W.prototype.getMap=function(a,b){var c=M(W.prototype.getMap,arguments),d=c.visParams?Na(c.visParams):{};d.image=this.v();if(c.callback)kf(d,u(function(a,b){a&&(a.image=this);c.callback(a,b)},this));else return d=kf(d),d.image=this,d};W.prototype.getMap=W.prototype.getMap;W.prototype.ia=function(a,b){var c=M(W.prototype.ia,arguments),d=c.params?Na(c.params):{};d.image=this.v();if(c.callback){var e=c.callback;pf(d,function(a,b){a?e(qf(a)):e(null,b)})}else return qf(pf(d))};
|
|
W.prototype.getDownloadURL=W.prototype.ia;W.prototype.$b=function(a,b){var c=M(W.prototype.$b,arguments),d=c.params?Na(c.params):{};d.image=this.v();if(d.region)if(n(d.region)||Sf(d.region))d.region=fd(d.region);else if(!p(d.region))throw Error("The region parameter must be an array or a GeoJSON object.");if(c.callback)nf(d,function(a,b){var d="";if(!m(b))try{d=of(a)}catch(k){b=String(k.message)}c.callback(d,b)});else return of(nf(d))};W.prototype.getThumbURL=W.prototype.$b;
|
|
var Fh=function(a,b,c){var d=M(Fh,arguments);return Dh([d.r,d.g,d.b],["vis-red","vis-green","vis-blue"])};W.rgb=Fh;var Gh=function(a){return Dh(Array.prototype.slice.call(arguments),null)};W.cat=Gh;var Dh=function(a,b){if(0==a.length)return J("Image.constant",[]);for(var c=new W(a[0]),d=1;d<a.length;d++)c=J("Image.addBands",c,a[d]);b&&(c=c.select([".*"],b));return c};
|
|
W.prototype.select=function(a){var b=Array.prototype.slice.call(arguments),c={input:this,bandSelectors:b[0]||[]};if(2<b.length||Rf(b[0])||Qf(b[0])){for(var d=0;d<b.length;d++)if(!(Rf(b[d])||Qf(b[d])||b[d]instanceof F))throw Error("Illegal argument to select(): "+b[d]);c.bandSelectors=b}else b[1]&&(c.newNames=b[1]);return Yf("Image.select",c)};W.prototype.select=W.prototype.select;
|
|
W.prototype.Wb=function(a,b){var c=M(W.prototype.Wb,arguments),d=["DEFAULT_EXPRESSION_IMAGE"],e={DEFAULT_EXPRESSION_IMAGE:this};if(c.map){var f=c.map,g;for(g in f)d.push(g),e[g]=new W(f[g])}var k=J("Image.parseExpression",c.expression,"DEFAULT_EXPRESSION_IMAGE",d),c=new H;c.encode=function(a){return k.encode(a)};c.F=function(){return{name:"",args:Ya(d,function(a){return{name:a,type:"Image",optional:!1}},this),returns:"Image"}};return c.apply(e)};W.prototype.expression=W.prototype.Wb;
|
|
W.prototype.clip=function(a){try{a=new T(a)}catch(b){}return J("Image.clip",this,a)};W.prototype.clip=W.prototype.clip;W.prototype.nd=function(a){var b;b=1!=arguments.length||Rf(arguments[0])?gb(arguments):arguments[0];return J("Image.rename",this,b)};W.prototype.rename=W.prototype.nd;W.prototype.name=function(){return"Image"};var X=function(a){if(!(this instanceof X))return G(X,arguments);if(a instanceof X)return a;if(1!=arguments.length)throw Error("The ImageCollection constructor takes exactly 1 argument ("+arguments.length+" given)");Hh();a instanceof W&&(a=[a]);if(Rf(a))Q.call(this,new I("ImageCollection.load"),{id:a});else if(n(a))Q.call(this,new I("ImageCollection.fromImages"),{images:Ya(a,function(a){return new W(a)})});else if(a instanceof xh)Q.call(this,new I("ImageCollection.fromImages"),{images:a});else if(a instanceof
|
|
F)Q.call(this,a.c,a.o,a.w);else throw Error("Unrecognized argument type to convert to an ImageCollection: "+a);};x(X,Q);w("ee.ImageCollection",X);var Ih=!1,Hh=function(){Ih||(K(X,"ImageCollection","ImageCollection"),K(X,"reduce","ImageCollection"),Ih=!0)};X.prototype.getMap=function(a,b){var c=M(X.prototype.getMap,arguments),d=J("ImageCollection.mosaic",this);if(c.callback)d.getMap(c.visParams,c.callback);else return d.getMap(c.visParams)};X.prototype.getMap=X.prototype.getMap;
|
|
X.prototype.A=function(a){return X.l.A.call(this,a)};X.prototype.getInfo=X.prototype.A;X.prototype.select=function(a,b){var c=arguments;return this.map(function(a){return a.select.apply(a,c)})};X.prototype.select=X.prototype.select;X.prototype.name=function(){return"ImageCollection"};X.prototype.elementType=function(){return W};var Jh={};w("ee.Terrain",Jh);Jh.cc=!1;Jh.Ld=function(){Jh.cc||(K(Jh,"Terrain","Terrain"),Jh.cc=!0)};Jh.reset=function(){L(Jh);Jh.cc=!1};var Ph=function(a,b,c,d,e){if("ready"!=Kh||a||b){var f=null!=c;if(d)if(f)Lh.push(d);else throw Error("Can't pass an error callback without a success callback.");if("loading"==Kh&&f)Mh.push(c);else if(Kh="loading",cf(a,b,e),f)Mh.push(c),ag(Nh,Oh);else try{ag(),Nh()}catch(g){throw Oh(g),g;}}else c&&c()};w("ee.initialize",Ph);
|
|
var Sh=function(){Kh="not_ready";bf=af=Ze=null;$e=!1;Zf=null;$f={};L(Qg);Sg=!1;L(kh);mh=!1;L(N);ig=!1;L(W);Eh=!1;L(U);oh=!1;L(Q);Fg=!1;L(X);Ih=!1;L(V);Bh=!1;L(O);kg=!1;L(T);Vg=!1;L(xh);zh=!1;L(Gg);Ig=!1;L(Jg);Lg=!1;Jh.reset();for(var a=l.ee,b=0;b<Qh.length;b++){var c=Qh[b];L(a[c]);delete a[c]}Qh=[];Nf=a;var a=Rh,d;for(d in a)delete a[d]};w("ee.reset",Sh);var Th={he:"not_ready",LOADING:"loading",ie:"ready"};w("ee.InitState",Th);w("ee.InitState.NOT_READY","not_ready");w("ee.InitState.LOADING","loading");
|
|
w("ee.InitState.READY","ready");var Kh="not_ready",Mh=[],Lh=[];w("ee.TILE_SIZE",256);var Qh=[],Rh={};w("ee.Algorithms",Rh);var Uh=function(a,b){p(a)&&(a=new I(a));return H.prototype.call.apply(a,Array.prototype.slice.call(arguments,1))};w("ee.call",Uh);var Vh=function(a,b){p(a)&&(a=new I(a));return a.apply(b)};w("ee.apply",Vh);
|
|
var Nh=function(){if("loading"==Kh){try{Rg();lh();hg();Ch();nh();Eg();Hh();Ah();jg();Tg();yh();Hg();Kg();Jh.Ld();var a=bg(),b={},c={},d;for(d in a){b[-1!=d.indexOf(".")?d.slice(0,d.indexOf(".")):d]=!0;var e=a[d].returns.replace(/<.*>/,"");c[e]=!0}var f=l.ee,g;for(g in b)g in c&&!(g in f)&&(f[g]=Wh(g),Qh.push(g),a[g]?(f[g].signature=a[g],f[g].signature.isConstructor=!0,$f[g]=!0):f[g].signature={});Nf=f;Xh()}catch(k){Oh(k);return}Kh="ready";for(Lh=[];0<Mh.length;)Mh.shift()()}},Oh=function(a){if("loading"==
|
|
Kh)for(Kh="not_ready",Mh=[];0<Lh.length;)Lh.shift()(a)},Xh=function(){var a=cg();Ka(a).sort().forEach(function(b){var c=a[b],d=c.F();if(!d.hidden){b=b.split(".");var e=Rh;for(e.signature={};1<b.length;){var f=b[0];f in e||(e[f]={signature:{}});e=e[f];b=ib(b,1)}f=function(a){return Wf(c,void 0,Array.prototype.slice.call(arguments,0))};f.signature=d;f.toString=u(c.toString,c);e[b[0]]=f}})},Wh=function(a){var b=function(b){var d=l.ee[a],e=Array.prototype.slice.call(arguments),f=1==e.length;if(f&&e[0]instanceof
|
|
d)return e[0];if(!(this instanceof d))return G(d,e);var d=dg(a),g=!(e[0]instanceof F),k=!1;d&&(f?g?k=!0:e[0].c!=d&&(k=!0):k=!0);if(k)F.call(this,d,Vf(d,Uf(d,e)));else{if(!f)throw Error("Too many arguments for ee."+a+"(): "+e);if(g)throw Error("Invalid argument for ee."+a+"(): "+e+". Must be a ComputedObject.");e=e[0];F.call(this,e.c,e.o,e.w)}};x(b,F);b.prototype.name=function(){return a};K(b,a,a);return b},Tf=function(a,b){if(null===a)return null;if(m(a)){var c=l.ee;switch(b){case "Image":return new W(a);
|
|
case "Feature":return a instanceof Q?J("Feature",J("Collection.geometry",a)):new U(a);case "Element":if(a instanceof N)return a;if(a instanceof T)return new U(a);if(a instanceof F)return new N(a.c,a.o,a.w);throw Error("Cannot convert "+a+" to Element.");case "Geometry":return a instanceof V?J("Collection.geometry",a):new T(a);case "FeatureCollection":case "Collection":return a instanceof Q?a:new V(a);case "ImageCollection":return new X(a);case "Filter":return new O(a);case "Algorithm":if(p(a))return new I(a);
|
|
if(r(a)){for(var c=a.length,d=[],e=0;e<c;e++)d[e]="Object";return Pg(a,d)}if(a instanceof Bf)return a;throw Error("Argument is not a function: "+a);case "String":return Rf(a)||a instanceof Jg||a instanceof F?new Jg(a):a;case "Dictionary":return Sf(a)?a:new kh(a);case "List":return new xh(a);case "Number":case "Float":case "Long":case "Integer":case "Short":case "Byte":return new Gg(a);default:if(b in c){d=dg(b);if(a instanceof c[b])return a;if(d)return new c[b](a);if(p(a)){if(a in c[b])return c[b][a].call();
|
|
throw Error("Unknown algorithm: "+b+"."+a);}return new c[b](a)}return a}}};var Yh=function(a,b,c){sc.call(this,a,b,c);this.tileSize=new google.maps.Size(256,256);this.Lc=new jc};x(Yh,sc);w("ee.FloatTileOverlay",Yh);Yh.prototype.getTile=function(a,b){var c=tc(this,a,b),d=[this.url,c].join("/")+"?token="+this.Ab,c=[c,this.Da,this.Ab].join("/");this.na.push(c);this.Da+=1;Zh(this,d,a,c);this.Ja();return pd("DIV")};
|
|
var Zh=function(a,b,c,d){var e=B();e.open("GET",b,!0);e.responseType="arraybuffer";e.onreadystatechange=u(function(){if(e.readyState===XMLHttpRequest.DONE&&200===e.status){var a=e.response;if(a)a=new Float32Array(a),this.Lc.set(c,a),eb(this.na,d),this.Ja();else throw this.oc.add(d),Error("Unable to request floating point array buffers.");}},a);e.send()};Yh.prototype.Ja=function(){this.dispatchEvent(new uc(this.na.length))};Yh.prototype.m=function(){this.Lc=null;Yh.l.m.call(this)};var $h=function(a,b){z(a);var c=a.style;"opacity"in c?c.opacity=b:"MozOpacity"in c?c.MozOpacity=b:"filter"in c&&(c.filter=""===b?"":"alpha(opacity="+100*Number(b)+")")};var ai=function(a){y.call(this);this.ja=a;this.h={}};x(ai,y);var bi=[];ai.prototype.Sa=function(a,b,c,d){n(b)||(b&&(bi[0]=b.toString()),b=bi);for(var e=0;e<b.length;e++){var f=Pb(a,b[e],c||this.handleEvent,d||!1,this.ja||this);if(!f)break;this.h[f.key]=f}return this};ai.prototype.qb=function(a,b,c,d){return ci(this,a,b,c,d)};var ci=function(a,b,c,d,e,f){if(n(c))for(var g=0;g<c.length;g++)ci(a,b,c[g],d,e,f);else{b=Wb(b,c,d||a.handleEvent,e,f||a.ja||a);if(!b)return a;a.h[b.key]=b}return a};
|
|
ai.prototype.Fb=function(a,b,c,d,e){if(n(b))for(var f=0;f<b.length;f++)this.Fb(a,b[f],c,d,e);else c=c||this.handleEvent,e=e||this.ja||this,c=Qb(c),d=!!d,b=Fb(a)?a.La(b,c,d,e):a?(a=Sb(a))?a.La(b,c,d,e):null:null,b&&(Yb(b),delete this.h[b.key]);return this};ai.prototype.Ta=function(){Ga(this.h,function(a,b){this.h.hasOwnProperty(b)&&Yb(a)},this);this.h={}};ai.prototype.m=function(){ai.l.m.call(this);this.Ta()};
|
|
ai.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};var di=function(a){bc.call(this);this.Pa={};this.Oa={};this.ja=new ai(this);this.j=a};x(di,bc);var ei=[ob&&!yb("11")?"readystatechange":"load","abort","error"],fi=function(a,b){delete a.Pa[b];var c=a.Oa[b];c&&(delete a.Oa[b],a.ja.Fb(c,ei,a.gd),La(a.Oa)&&La(a.Pa)&&a.dispatchEvent("complete"))};
|
|
di.prototype.start=function(){var a=this.Pa;Wa(Ka(a),function(b){var c=a[b];if(c&&(delete a[b],!this.aa)){var d;this.j?(d=this.j,d=(d?new ud(td(d)):na||(na=new ud)).Ed("IMG")):d=new Image;c.Bc&&(d.crossOrigin=c.Bc);this.ja.Sa(d,ei,this.gd);this.Oa[b]=d;d.id=b;d.src=c.src}},this)};
|
|
di.prototype.gd=function(a){var b=a.currentTarget;if(b){if("readystatechange"==a.type)if("complete"==b.readyState)a.type="load";else return;"undefined"==typeof b.naturalWidth&&("load"==a.type?(b.naturalWidth=b.width,b.naturalHeight=b.height):(b.naturalWidth=0,b.naturalHeight=0));this.dispatchEvent({type:a.type,target:b});this.aa||fi(this,b.id)}};di.prototype.m=function(){delete this.Pa;delete this.Oa;var a=this.ja;a&&"function"==typeof a.P&&a.P();di.l.m.call(this)};var gi=function(){this.L=[];this.O=[]};h=gi.prototype;h.enqueue=function(a){this.O.push(a)};h.Ia=function(){0==this.L.length&&(this.L=this.O,this.L.reverse(),this.O=[]);return this.L.pop()};h.C=function(){return this.L.length+this.O.length};h.isEmpty=function(){return 0==this.L.length&&0==this.O.length};h.clear=function(){this.L=[];this.O=[]};h.contains=function(a){return 0<=Ua(this.L,a)||0<=Ua(this.O,a)};
|
|
h.remove=function(a){var b;b=this.L;var c=Va(b,a);0<=c?(db(b,c),b=!0):b=!1;return b||eb(this.O,a)};h.u=function(){for(var a=[],b=this.L.length-1;0<=b;--b)a.push(this.L[b]);for(var c=this.O.length,b=0;b<c;++b)a.push(this.O[b]);return a};var hi=function(a,b){y.call(this);this.ad=a||0;this.rb=b||10;if(this.ad>this.rb)throw Error("[goog.structs.Pool] Min can not be greater than max");this.S=new gi;this.ca=new oc;this.Sb=0;this.ec=null;this.Za()};x(hi,y);h=hi.prototype;h.jb=function(){var a=ka();if(!(null!=this.ec&&a-this.ec<this.Sb)){for(var b;0<this.S.C()&&(b=this.S.Ia(),!this.hc(b));)this.Za();!b&&this.C()<this.rb&&(b=this.Rb());b&&(this.ec=a,this.ca.add(b));return b}};
|
|
h.Kb=function(a){this.ca.remove(a);this.hc(a)&&this.C()<this.rb?this.S.enqueue(a):this.cb(a)};h.Za=function(){for(var a=this.S;this.C()<this.ad;)a.enqueue(this.Rb());for(;this.C()>this.rb&&0<this.S.C();)this.cb(a.Ia())};h.Rb=function(){return{}};h.cb=function(a){if("function"==typeof a.P)a.P();else for(var b in a)a[b]=null};h.hc=function(a){return"function"==typeof a.Bd?a.Bd():!0};h.contains=function(a){return this.S.contains(a)||this.ca.contains(a)};h.C=function(){return this.S.C()+this.ca.C()};
|
|
h.isEmpty=function(){return this.S.isEmpty()&&this.ca.isEmpty()};h.m=function(){hi.l.m.call(this);if(0<this.ca.C())throw Error("[goog.structs.Pool] Objects not released");delete this.ca;for(var a=this.S;!a.isEmpty();)this.cb(a.Ia());delete this.S};var ii=function(a,b){this.Xc=a;this.sc=b};ii.prototype.getKey=function(){return this.Xc};ii.prototype.clone=function(){return new ii(this.Xc,this.sc)};var ji=function(a){this.N=[];if(a)a:{var b;if(a instanceof ji){if(b=a.M(),a=a.u(),0>=this.C()){for(var c=this.N,d=0;d<b.length;d++)c.push(new ii(b[d],a[d]));break a}}else b=Ka(a),a=Ja(a);for(d=0;d<b.length;d++)ki(this,b[d],a[d])}},ki=function(a,b,c){var d=a.N;d.push(new ii(b,c));b=d.length-1;a=a.N;for(c=a[b];0<b;)if(d=b-1>>1,a[d].getKey()>c.getKey())a[b]=a[d],b=d;else break;a[b]=c};h=ji.prototype;
|
|
h.remove=function(){var a=this.N,b=a.length,c=a[0];if(!(0>=b)){if(1==b)cb(a);else{a[0]=a.pop();for(var a=0,b=this.N,d=b.length,e=b[a];a<d>>1;){var f=2*a+1,g=2*a+2,f=g<d&&b[g].getKey()<b[f].getKey()?g:f;if(b[f].getKey()>e.getKey())break;b[a]=b[f];a=f}b[a]=e}return c.sc}};h.u=function(){for(var a=this.N,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].sc);return b};h.M=function(){for(var a=this.N,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getKey());return b};
|
|
h.$=function(a){return Za(this.N,function(b){return b.getKey()==a})};h.clone=function(){return new ji(this)};h.C=function(){return this.N.length};h.isEmpty=function(){return 0==this.N.length};h.clear=function(){cb(this.N)};var li=function(){ji.call(this)};x(li,ji);li.prototype.enqueue=function(a,b){ki(this,a,b)};li.prototype.Ia=function(){return this.remove()};var mi=function(a,b){this.Ec=void 0;this.wb=new li;hi.call(this,a,b)};x(mi,hi);h=mi.prototype;h.jb=function(a,b){if(!a){var c=mi.l.jb.call(this);c&&this.Sb&&(this.Ec=l.setTimeout(u(this.lb,this),this.Sb));return c}this.wb.enqueue(m(b)?b:100,a);this.lb()};h.lb=function(){for(var a=this.wb;0<a.C();){var b=this.jb();if(b)a.Ia().apply(this,[b]);else break}};h.Kb=function(a){mi.l.Kb.call(this,a);this.lb()};h.Za=function(){mi.l.Za.call(this);this.lb()};
|
|
h.m=function(){mi.l.m.call(this);l.clearTimeout(this.Ec);this.wb.clear();this.wb=null};var Y=function(){bc.call(this);this.Bb=new ni(0,4);this.Ba=new jc};x(Y,bc);w("ee.MapTileManager",Y);Y.Nc=function(){return Y.Tc?Y.Tc:Y.Tc=new Y};Y.prototype.send=function(a,b,c,d,e){if(this.Ba.get(a))throw Error("[ee.MapTileManager] ID in use");b=new oi(a,b,d,u(this.md,this),m(e)?e:1);this.Ba.set(a,b);a=u(this.Id,this,b);this.Bb.jb(a,c);return b};Y.prototype.abort=function(a){if(a=this.Ba.get(a))a.ra||(a.ra=!0,a.ga=new la("abort")),this.md(a)};
|
|
Y.prototype.Id=function(a,b){if(a.ba||a.ra)pi(this,b);else{a.td=b;b.setActive(!0);var c=new di;a.ba=c;if(!qi(a))throw Error("Cannot dispatch first request!");}};Y.prototype.md=function(a){this.Ba.remove(a.W);a.ba&&(pi(this,a.td),a.ba.P());a.ac&&a.ac(a.ga,a.ld)};var pi=function(a,b){b.setActive(!1);var c;c=a.Bb;c.ca.remove(b)?(c.Kb(b),c=!0):c=!1;if(!c)throw Error("Object not released");};
|
|
Y.prototype.m=function(){Y.l.m.call(this);this.Bb.P();this.Bb=null;var a=this.Ba;Wa(a.u(),function(a){a.P()});a.clear();this.Ba=null};var oi=function(a,b,c,d,e){y.call(this);this.W=a;this.de=b;this.Rd=m(e)?e:1;this.ac=c;this.ma=d};x(oi,y);h=oi.prototype;h.wc=0;h.ra=!1;h.ba=null;h.td=null;h.ga=null;h.ld=null;var ri=["load","abort","error"];oi.prototype.getUrl=function(){return this.de};
|
|
oi.prototype.Kd=function(a){if(this.ra)this.ma&&this.ma(this);else switch(a.type){case "load":this.ga=a;this.ma&&this.ma(this);break;case "error":case "abort":qi(this)||(this.ga=a,this.ma&&this.ma(this))}};oi.prototype.m=function(){oi.l.m.call(this);delete this.ac;delete this.ma};var qi=function(a){if(a.wc>a.Rd)return!1;a.wc++;fi(a.ba,a.W);setTimeout(u(a.$d,a),0);return!0};
|
|
oi.prototype.$d=function(){if(!this.ra){var a=u(function(a){this.ra||((a=p(a)?a:a.src)&&(this.ba.Pa[this.W]={src:a,Bc:m(void 0)?void 0:null}),Wb(this.ba,ri,u(this.Kd,this)),this.ba.start())},this),b=this.getUrl();if(Fe(b).T.$("profiling")){var c=new C;c.Ua="blob";c.Sa("complete",u(function(){this.ld=c.getResponseHeader("X-Earth-Engine-Computation-Profile")||null;var d;if(200<=c.getStatus()&&300>c.getStatus())try{d=URL.createObjectURL(re(c))}catch(e){}a(d||b)},this));c.qb("ready",u(c.P,c));c.send(b,
|
|
"GET")}else a(b)}};var si=function(){this.K=!1};x(si,y);si.prototype.setActive=function(a){this.K=a};si.prototype.Uc=function(){return this.K};var ni=function(a,b){mi.call(this,a,b)};x(ni,mi);ni.prototype.Rb=function(){return new si};ni.prototype.cb=function(a){a.P()};ni.prototype.hc=function(a){return!a.aa&&!a.Uc()};var Z=function(a,b,c,d,e){sc.call(this,a,b,c);this.minZoom=d.minZoom||0;this.maxZoom=d.maxZoom||20;if(!window.google||!window.google.maps)throw Error("Google Maps API hasn't been initialized.");this.tileSize=d.tileSize||new google.maps.Size(256,256);this.Vc=m(d.Vc)?d.Vc:!0;this.name=d.name;this.pc=new oc;this.ic=1;this.ya=e||null};x(Z,sc);w("ee.MapLayerOverlay",Z);Z.prototype.xd=function(a){return Pb(this,"tileevent",a)};Z.prototype.addTileCallback=Z.prototype.xd;Z.prototype.Yd=function(a){Yb(a)};
|
|
Z.prototype.removeTileCallback=Z.prototype.Yd;Z.prototype.Ja=function(){this.dispatchEvent(new uc(this.na.length))};
|
|
Z.prototype.getTile=function(a,b,c){if(b<this.minZoom||0>a.y||a.y>=1<<b)return a=c.createElement("IMG"),a.style.width="0px",a.style.height="0px",a;b=tc(this,a,b);a=[this.url,b].join("/")+"?token="+this.Ab;this.ya&&this.ya.isEnabled()&&(a+="&profiling=1");b=[b,this.Da,this.Ab].join("/");this.Da+=1;c=pd("DIV",{id:b});var d=(new Date).getTime()/1E3;this.na.push(b);Y.Nc().send(b,a,d,u(this.Jd,this,c,b));this.Ja();return c};
|
|
Z.prototype.releaseTile=function(a){Y.Nc().abort(a.id);this.pc.remove(m(a.firstElementChild)?a.firstElementChild:sd(a.firstChild));""!==a.id&&(this.oc.remove(a.id),this.ya&&this.ya.ne(a.id))};Z.prototype.setOpacity=function(a){this.ic=a;var b=this.pc.qa();ic(b,function(b){$h(b,a)})};Z.prototype.getTile=Z.prototype.getTile;Z.prototype.setOpacity=Z.prototype.setOpacity;Z.prototype.releaseTile=Z.prototype.releaseTile;
|
|
Z.prototype.Jd=function(a,b,c,d){"error"==c.type?(eb(this.na,b),this.oc.add(b),this.dispatchEvent(c)):(eb(this.na,b),c.target&&"load"==c.type&&(c=c.target,this.pc.add(c),1!=this.ic&&$h(c,this.ic),a.appendChild(c)),this.Ja());this.ya&&null!==d&&this.ya.ke(b,d)};var ti=function(a,b){if(!(this instanceof ti))return new ti(a,b);this.wa=a;this.ea=b};x(ti,H);w("ee.SavedFunction",ti);ti.prototype.encode=function(a){return J("LoadAlgorithmById",this.wa).encode(a)};ti.prototype.F=function(){return this.ea};(function(){l.Ga={};var a="ee.Feature.MultiLine ee.Collection.prototype.filterBounds ee.Filter.ends_with ee.Filter.prototype.date ee.Deserializer.fromJSON ee.Geometry.Rectangle ee.Filter.prototype.lte ee.data.authenticateViaPopup ee.Filter.lte ee.Filter.prototype.starts_with ee.InitState ee.FeatureCollection.prototype.getDownloadURL ee.Element.prototype.set ee.Feature ee.Collection.prototype.map ee.data.getAuthToken ee.Image.prototype.getInfo ee.ComputedObject.prototype.toString ee.FeatureCollection.prototype.getInfo ee.Number ee.Filter.contains ee.Image ee.data.getTileUrl ee.Geometry.LineString ee.Serializer.toReadableJSON ee.Image.cat ee.Feature.Polygon ee.Filter.and ee.Feature.prototype.getInfo ee.Collection.prototype.filter ee.Image.prototype.getThumbURL ee.data.getList ee.Geometry.Polygon ee.data.makeTableDownloadUrl ee.Filter.date ee.Algorithms ee.Geometry.MultiPoint ee.data.setAuthTokenRefresher ee.data.makeDownloadUrl ee.Filter.prototype.bounds ee.Geometry.MultiPolygon ee.Filter.or ee.ComputedObject.prototype.serialize ee.Geometry.prototype.serialize ee.Collection.prototype.filterMetadata ee.Geometry.MultiLineString ee.Dictionary ee.data.getTileBaseUrl ee.Feature.LineString ee.Filter.prototype.and ee.Filter.lt ee.ApiFunction._call ee.Geometry.prototype.toGeoJSONString ee.Collection.prototype.filterDate ee.Date ee.data.getInfo ee.Image.prototype.clip ee.data.makeThumbUrl ee.data.clearAuthToken ee.Filter.prototype.neq ee.Filter.bounds ee.Deserializer.decode ee.Filter.prototype.not_ends_with ee.ComputedObject.prototype.getInfo ee.data.getXsrfToken ee.Feature.prototype.getMap ee.Feature.Point ee.FeatureCollection.prototype.getMap ee.String ee.ImageCollection ee.Collection.prototype.sort ee.ComputedObject.prototype.evaluate ee.reset ee.Filter.inList ee.Filter.starts_with ee.Filter.prototype.lt ee.Terrain ee.apply ee.Filter.prototype.ends_with ee.Feature.MultiPoint ee.Filter.eq ee.Filter.prototype.gte ee.Geometry.prototype.toGeoJSON ee.Feature.LinearRing ee.Feature.Rectangle ee.Function.prototype.apply ee.Filter.prototype.length ee.Filter ee.List ee.ApiFunction._apply ee.data.getThumbId ee.Function.prototype.call ee.data.getTableDownloadId ee.Filter.not_contains ee.Filter.prototype.not_starts_with ee.Image.rgb ee.Filter.prototype.not ee.Image.prototype.expression ee.Geometry ee.data.authenticate ee.Filter.prototype.contains ee.initialize ee.data.getMapId ee.Image.prototype.getDownloadURL ee.Image.prototype.rename ee.Filter.gt ee.Filter.neq ee.ComputedObject.prototype.aside ee.data.setAuthToken ee.ImageCollection.prototype.select ee.Filter.prototype.not_contains ee.Filter.not_ends_with ee.Filter.metadata ee.ImageCollection.prototype.getMap ee.Filter.gte ee.data.getValue ee.Collection.prototype.iterate ee.ApiFunction.lookup ee.call ee.data.getAuthScopes ee.Serializer.toJSON ee.data.setDeadline ee.data.getDownloadId ee.Filter.prototype.gt ee.Filter.prototype.inList ee.Filter.prototype.eq ee.Filter.not_starts_with ee.Image.prototype.getMap ee.ImageCollection.prototype.getInfo ee.data.getApiBaseUrl ee.FeatureCollection ee.FeatureCollection.prototype.select ee.Collection.prototype.limit ee.TILE_SIZE ee.Feature.MultiPolygon ee.Serializer.encode ee.Image.prototype.select ee.data.getAuthClientId ee.Geometry.LinearRing ee.Geometry.Point".split(" "),
|
|
b=[["coordinates"],["geometry"],["name","value"],["var_args"],["json"],["coords","opt_proj","opt_geodesic","opt_maxError","opt_evenOdd"],["var_args"],["opt_success","opt_error"],["name","value"],["var_args"],[],["opt_format","opt_selectors","opt_filename","opt_callback"],["var_args"],["geometry","opt_properties"],["algorithm","opt_dropNulls"],[],["opt_callback"],[],["opt_callback"],["number"],["name","value"],["opt_args"],["mapid","x","y","z"],["coords","opt_proj","opt_geodesic","opt_maxError"],["obj"],
|
|
["var_args"],["coordinates"],["var_args"],["opt_callback"],["newFilter"],["params","opt_callback"],["params","opt_callback"],["coords","opt_proj","opt_geodesic","opt_maxError","opt_evenOdd"],["id"],["start","opt_end"],[],["coords","opt_proj"],["refresher"],["id"],["var_args"],["coords","opt_proj","opt_geodesic","opt_maxError","opt_evenOdd"],["var_args"],[],[],["name","operator","value"],["coords","opt_proj","opt_geodesic","opt_maxError"],["opt_dict"],[],["coordinates"],["var_args"],["name","value"],
|
|
["name","var_args"],[],["start","opt_end"],["date","opt_tz"],["id","opt_callback"],["geometry"],["id"],[],["var_args"],["geometry","opt_errorMargin"],["json"],["var_args"],["opt_callback"],[],["opt_visParams","opt_callback"],["lon","lat"],["opt_visParams","opt_callback"],["string"],["args"],["property","opt_ascending"],["callback"],[],["opt_leftField","opt_rightValue","opt_rightField","opt_leftValue"],["name","value"],["var_args"],[],["func","namedArgs"],["var_args"],["coordinates"],["name","value"],
|
|
["var_args"],[],["coordinates"],["lon1","lat1","lon2","lat2"],["namedArgs"],[],["opt_filter"],["list"],["name","namedArgs"],["params","opt_callback"],["var_args"],["params","opt_callback"],["name","value"],["var_args"],["r","g","b"],[],["expression","opt_map"],["geoJson","opt_proj","opt_geodesic","opt_evenOdd"],["clientId","success","opt_error","opt_extraScopes","opt_onImmediateFailed"],["var_args"],["opt_baseurl","opt_tileurl","opt_successCallback","opt_errorCallback","opt_xsrfToken"],["params",
|
|
"opt_callback"],["params","opt_callback"],["var_args"],["name","value"],["name","value"],["func","var_args"],"clientId tokenType accessToken expiresIn opt_extraScopes opt_callback opt_updateAuthLibrary".split(" "),["selectors","opt_names"],["var_args"],["name","value"],["name","operator","value"],["opt_visParams","opt_callback"],["name","value"],["params","opt_callback"],["algorithm","opt_first"],["name"],["func","var_args"],[],["obj"],["milliseconds"],["params","opt_callback"],["var_args"],["var_args"],
|
|
["var_args"],["name","value"],["opt_visParams","opt_callback"],["opt_callback"],[],["args","opt_column"],["selectors","opt_names"],["max","opt_property","opt_ascending"],[],["coordinates"],["obj","opt_isCompound"],["var_args"],[],["coords","opt_proj","opt_geodesic","opt_maxError"],["coords","opt_proj"]];Wa([uh,Q.prototype.Jc,Cg,O.prototype.Cc,ih,$g,O.prototype.$c,Oe,rg,O.prototype.sd,Th,V.prototype.ia,N.prototype.set,U,Q.prototype.map,We,W.prototype.A,F.prototype.toString,V.prototype.A,Gg,yg,W,lf,
|
|
ah,Lf,Gh,vh,sg,U.prototype.A,Q.prototype.filter,W.prototype.$b,yf,dh,sf,ug,Rh,Zg,Te,qf,O.prototype.bounds,eh,tg,F.prototype.v,T.prototype.v,Q.prototype.Yb,ch,kh,hf,sh,O.prototype.uc,og,J,T.prototype.rc,Q.prototype.Xb,Qg,xf,W.prototype.clip,of,Ve,O.prototype.bd,wg,hh,O.prototype.dd,F.prototype.A,jf,U.prototype.getMap,ph,V.prototype.getMap,Jg,X,Q.prototype.sort,F.prototype.evaluate,Sh,vg,Ag,O.prototype.Zc,Jh,Vh,O.prototype.Fc,qh,mg,O.prototype.Pc,T.prototype.qc,th,rh,H.prototype.apply,O.prototype.length,
|
|
O,xh,Yf,nf,H.prototype.call,rf,zg,O.prototype.ed,Fh,O.prototype.X,W.prototype.Wb,T,Pe,O.prototype.contains,Ph,kf,W.prototype.ia,W.prototype.nd,qg,ng,F.prototype.vc,Re,X.prototype.select,O.prototype.cd,Dg,xg,X.prototype.getMap,pg,mf,Q.prototype.Wc,Xf,Uh,Ye,Kf,ef,pf,O.prototype.Oc,O.prototype.Sc,O.prototype.Gc,Bg,W.prototype.getMap,X.prototype.A,gf,V,V.prototype.select,Q.prototype.limit,256,wh,Jf,W.prototype.select,Xe,bh,Wg],function(c,d){c&&(l.Ga[c.toString()]={name:a[d],paramNames:b[d]})})})();})();
|