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