mirror of
https://github.com/google/earthengine-api.git
synced 2025-12-08 19:26:12 +00:00
265 lines
125 KiB
JavaScript
265 lines
125 KiB
JavaScript
(function() {var b,e=e||{};e.global=this;e.Lf=function(a,c,d){a=a.split(".");d=d||e.global;a[0]in d||!d.execScript||d.execScript("var "+a[0]);for(var f;a.length&&(f=a.shift());)a.length||void 0===c?d=d[f]?d[f]:d[f]={}:d[f]=c};e.mq=function(a,c){e.Lf(a,c)};e.nc=!0;e.zn="en";e.ai=!0;e.Er=function(a){e.Lf(a)};e.Sr=function(a){if(!e.nc)throw a=a||"",Error("Importing test-only code into non-debug environment"+a?": "+a:".");};
|
|
e.ig=function(a){a=a.split(".");for(var c=e.global,d;d=a.shift();)if(e.Ra(c[d]))c=c[d];else return null;return c};e.Qq=function(a,c){var d=c||e.global,f;for(f in a)d[f]=a[f]};e.rp=function(a,c,d){if(e.Dh){var f;a=a.replace(/\\/g,"/");for(var g=e.mc,h=0;f=c[h];h++)g.gd[f]=a,a in g.Gf||(g.Gf[a]={}),g.Gf[a][f]=!0;for(f=0;c=d[f];f++)a in g.hd||(g.hd[a]={}),g.hd[a][c]=!0}};e.os=!1;e.Im=!0;e.Jr=function(){};e.le="";e.ug=function(){};e.Vq=function(a){return a};
|
|
e.pp=function(){throw Error("unimplemented abstract method");};e.sp=function(a){a.nh=function(){if(a.jd)return a.jd;e.nc&&(e.Jh[e.Jh.length]=a);return a.jd=new a}};e.Jh=[];e.Dh=!1;
|
|
e.Dh&&(e.Kk={},e.mc={Gf:{},gd:{},hd:{},xh:{},me:{}},e.Mh=function(){var a=e.global.document;return"undefined"!=typeof a&&"write"in a},e.Bl=function(){if(e.global.Yk)e.le=e.global.Yk;else if(e.Mh())for(var a=e.global.document.getElementsByTagName("script"),c=a.length-1;0<=c;--c){var d=a[c].src,f=d.lastIndexOf("?"),f=-1==f?d.length:f;if("base.js"==d.substr(f-7,7)){e.le=d.substr(0,f-7);break}}},e.wh=function(a){var c=e.global.Ul||e.Wk;!e.mc.me[a]&&c(a)&&(e.mc.me[a]=!0)},e.Wk=function(a){if(e.Mh()){var c=
|
|
e.global.document;if("complete"==c.readyState){if(/\bdeps.js$/.test(a))return!1;throw Error('Cannot write "'+a+'" after document load');}c.write('<script type="text/javascript" src="'+a+'">\x3c/script>');return!0}return!1},e.rs=function(){function a(g){if(!(g in f.me)){if(!(g in f.xh)&&(f.xh[g]=!0,g in f.hd))for(var k in f.hd[g])if(!e.Tl(k))if(k in f.gd)a(f.gd[k]);else throw Error("Undefined nameToPath for "+k);g in d||(d[g]=!0,c.push(g))}}var c=[],d={},f=e.mc,g;for(g in e.Kk)f.me[g]||a(g);for(g=
|
|
0;g<c.length;g++)if(c[g])e.wh(e.le+c[g]);else throw Error("Undefined script input");},e.Fq=function(a){return a in e.mc.gd?e.mc.gd[a]:null},e.Bl(),e.global.km||e.wh(e.le+"deps.js"));
|
|
e.Ja=function(a){var c=typeof a;if("object"==c)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return c;var d=Object.prototype.toString.call(a);if("[object Window]"==d)return"object";if("[object Array]"==d||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==d||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
|
|
else if("function"==c&&"undefined"==typeof a.call)return"object";return c};e.W=function(a){return void 0!==a};e.pc=function(a){return null===a};e.Ra=function(a){return null!=a};e.isArray=function(a){return"array"==e.Ja(a)};e.fa=function(a){var c=e.Ja(a);return"array"==c||"object"==c&&"number"==typeof a.length};e.ri=function(a){return e.qa(a)&&"function"==typeof a.getFullYear};e.p=function(a){return"string"==typeof a};e.ve=function(a){return"boolean"==typeof a};e.aa=function(a){return"number"==typeof a};
|
|
e.ua=function(a){return"function"==e.Ja(a)};e.qa=function(a){var c=typeof a;return"object"==c&&null!=a||"function"==c};e.fd=function(a){return a[e.kd]||(a[e.kd]=++e.Zk)};e.Tq=function(a){return!!a[e.kd]};e.Ol=function(a){"removeAttribute"in a&&a.removeAttribute(e.kd);try{delete a[e.kd]}catch(c){}};e.kd="closure_uid_"+(1E9*Math.random()>>>0);e.Zk=0;e.xq=e.fd;e.Hr=e.Ol;
|
|
e.Qk=function(a){var c=e.Ja(a);if("object"==c||"array"==c){if(a.ea)return a.ea();var c="array"==c?[]:{},d;for(d in a)c[d]=e.Qk(a[d]);return c}return a};e.bl=function(a,c,d){return a.call.apply(a.bind,arguments)};e.al=function(a,c,d){if(!a)throw Error();if(2<arguments.length){var f=Array.prototype.slice.call(arguments,2);return function(){var d=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(d,f);return a.apply(c,d)}}return function(){return a.apply(c,arguments)}};
|
|
e.bind=function(a,c,d){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?e.bind=e.bl:e.bind=e.al;return e.bind.apply(null,arguments)};e.Ng=function(a,c){var d=Array.prototype.slice.call(arguments,1);return function(){var c=d.slice();c.push.apply(c,arguments);return a.apply(this,c)}};e.bi=function(a,c){for(var d in c)a[d]=c[d]};e.now=e.ai&&Date.now||function(){return+new Date};
|
|
e.Pq=function(a){if(e.global.execScript)e.global.execScript(a,"JavaScript");else if(e.global.eval)if(null==e.qe&&(e.global.eval("var _et_ = 1;"),"undefined"!=typeof e.global._et_?(delete e.global._et_,e.qe=!0):e.qe=!1),e.qe)e.global.eval(a);else{var c=e.global.document,d=c.createElement("script");d.type="text/javascript";d.defer=!1;d.appendChild(c.createTextNode(a));c.body.appendChild(d);c.body.removeChild(d)}else throw Error("goog.globalEval not available");};e.qe=null;
|
|
e.vq=function(a,c){var d=function(a){return e.Oh[a]||a},f=function(a){a=a.split("-");for(var c=[],f=0;f<a.length;f++)c.push(d(a[f]));return c.join("-")},f=e.Oh?"BY_WHOLE"==e.$k?d:f:function(a){return a};return c?a+"-"+f(c):f(a)};e.Mr=function(a,c){e.Oh=a;e.$k=c};e.Aq=function(a,c){var d=c||{},f;for(f in d){var g=(""+d[f]).replace(/\$/g,"$$$$");a=a.replace(RegExp("\\{\\$"+f+"\\}","gi"),g)}return a};e.Bq=function(a){return a};e.N=function(a,c){e.Lf(a,c,void 0)};e.k=function(a,c,d){a[c]=d};
|
|
e.D=function(a,c){function d(){}d.prototype=c.prototype;a.ya=c.prototype;a.prototype=new d;a.prototype.constructor=a};
|
|
e.Ip=function(a,c,d){var f=arguments.callee.caller;if(e.nc&&!f)throw Error("arguments.caller not defined. goog.base() expects not to be running in strict mode. See http://www.ecma-international.org/ecma-262/5.1/#sec-C");if(f.ya)return f.ya.constructor.apply(a,Array.prototype.slice.call(arguments,1));for(var g=Array.prototype.slice.call(arguments,2),h=!1,k=a.constructor;k;k=k.ya&&k.ya.constructor)if(k.prototype[c]===f)h=!0;else if(h)return k.prototype[c].apply(a,g);if(a[c]===f)return a.constructor.prototype[c].apply(a,
|
|
g);throw Error("goog.base called from a method of one name to a method of a different name");};e.scope=function(a){a.call(e.global)};e.kl=!0;
|
|
e.kl&&(Function.prototype.bind=Function.prototype.bind||function(a,c){if(1<arguments.length){var d=Array.prototype.slice.call(arguments,1);d.unshift(this,a);return e.bind.apply(null,d)}return e.bind(this,a)},Function.prototype.Ng=function(a){var c=Array.prototype.slice.call(arguments);c.unshift(this,null);return e.bind.apply(null,c)},Function.prototype.D=function(a){e.D(this,a)},Function.prototype.bi=function(a){e.bi(this.prototype,a)});e.object={};e.object.forEach=function(a,c,d){for(var f in a)c.call(d,a[f],f,a)};e.object.filter=function(a,c,d){var f={},g;for(g in a)c.call(d,a[g],g,a)&&(f[g]=a[g]);return f};e.object.map=function(a,c,d){var f={},g;for(g in a)f[g]=c.call(d,a[g],g,a);return f};e.object.some=function(a,c,d){for(var f in a)if(c.call(d,a[f],f,a))return!0;return!1};e.object.every=function(a,c,d){for(var f in a)if(!c.call(d,a[f],f,a))return!1;return!0};e.object.Ca=function(a){var c=0,d;for(d in a)c++;return c};
|
|
e.object.tq=function(a){for(var c in a)return c};e.object.uq=function(a){for(var c in a)return a[c]};e.object.contains=function(a,c){return e.object.cc(a,c)};e.object.P=function(a){var c=[],d=0,f;for(f in a)c[d++]=a[f];return c};e.object.ia=function(a){var c=[],d=0,f;for(f in a)c[d++]=f;return c};e.object.Oq=function(a,c){for(var d=e.fa(c),f=d?c:arguments,d=d?0:1;d<f.length&&(a=a[f[d]],e.W(a));d++);return a};e.object.gb=function(a,c){return c in a};
|
|
e.object.cc=function(a,c){for(var d in a)if(a[d]==c)return!0;return!1};e.object.Cl=function(a,c,d){for(var f in a)if(c.call(d,a[f],f,a))return f};e.object.sq=function(a,c,d){return(c=e.object.Cl(a,c,d))&&a[c]};e.object.ma=function(a){for(var c in a)return!1;return!0};e.object.clear=function(a){for(var c in a)delete a[c]};e.object.remove=function(a,c){var d;(d=c in a)&&delete a[c];return d};
|
|
e.object.add=function(a,c,d){if(c in a)throw Error('The object already contains the key "'+c+'"');e.object.set(a,c,d)};e.object.get=function(a,c,d){return c in a?a[c]:d};e.object.set=function(a,c,d){a[c]=d};e.object.Rr=function(a,c,d){return c in a?a[c]:a[c]=d};e.object.ea=function(a){var c={},d;for(d in a)c[d]=a[d];return c};e.object.Lg=function(a){var c=e.Ja(a);if("object"==c||"array"==c){if(a.ea)return a.ea();var c="array"==c?[]:{},d;for(d in a)c[d]=e.object.Lg(a[d]);return c}return a};
|
|
e.object.Rl=function(a){var c={},d;for(d in a)c[a[d]]=d;return c};e.object.$h="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");e.object.extend=function(a,c){for(var d,f,g=1;g<arguments.length;g++){f=arguments[g];for(d in f)a[d]=f[d];for(var h=0;h<e.object.$h.length;h++)d=e.object.$h[h],Object.prototype.hasOwnProperty.call(f,d)&&(a[d]=f[d])}};
|
|
e.object.create=function(a){var c=arguments.length;if(1==c&&e.isArray(arguments[0]))return e.object.create.apply(null,arguments[0]);if(c%2)throw Error("Uneven number of arguments");for(var d={},f=0;f<c;f+=2)d[arguments[f]]=arguments[f+1];return d};e.object.rl=function(a){var c=arguments.length;if(1==c&&e.isArray(arguments[0]))return e.object.rl.apply(null,arguments[0]);for(var d={},f=0;f<c;f++)d[arguments[f]]=!0;return d};
|
|
e.object.iq=function(a){var c=a;Object.isFrozen&&!Object.isFrozen(a)&&(c=Object.create(a),Object.freeze(c));return c};e.object.dr=function(a){return!!Object.isFrozen&&Object.isFrozen(a)};e.ca={};e.ca.Vk=function(a){return/^\s*$/.test(a)?!1:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,""))};e.ca.parse=function(a){a=String(a);if(e.ca.Vk(a))try{return eval("("+a+")")}catch(c){}throw Error("Invalid JSON string: "+a);};e.ca.ns=function(a){return eval("("+a+")")};e.ca.ka=function(a,c){return(new e.ca.B(c)).ka(a)};
|
|
e.ca.B=function(a){this.se=a};e.ca.B.prototype.ka=function(a){var c=[];m(this,a,c);return c.join("")};
|
|
var m=function(a,c,d){switch(typeof c){case "string":p(c,d);break;case "number":d.push(isFinite(c)&&!isNaN(c)?c:"null");break;case "boolean":d.push(c);break;case "undefined":d.push("null");break;case "object":if(null==c){d.push("null");break}if(e.isArray(c)){var f=c.length;d.push("[");for(var g="",h=0;h<f;h++)d.push(g),g=c[h],m(a,a.se?a.se.call(c,String(h),g):g,d),g=",";d.push("]");break}d.push("{");f="";for(h in c)Object.prototype.hasOwnProperty.call(c,h)&&(g=c[h],"function"!=typeof g&&(d.push(f),
|
|
p(h,d),d.push(":"),m(a,a.se?a.se.call(c,h,g):g,d),f=","));d.push("}");break;case "function":break;default:throw Error("Unknown type: "+typeof c);}};e.ca.B.Cf={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"};e.ca.B.Gk=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;
|
|
var p=function(a,c){c.push('"',a.replace(e.ca.B.Gk,function(a){if(a in e.ca.B.Cf)return e.ca.B.Cf[a];var c=a.charCodeAt(0),g="\\u";16>c?g+="000":256>c?g+="00":4096>c&&(g+="0");return e.ca.B.Cf[a]=g+c.toString(16)}),'"')};e.debug={};e.debug.Vc=function(a){Error.captureStackTrace?Error.captureStackTrace(this,e.debug.Vc):this.stack=Error().stack||"";a&&(this.message=String(a))};e.D(e.debug.Vc,Error);e.debug.Vc.prototype.name="CustomError";e.kh={};e.kh.rk={qk:1,Zl:2,nl:3,hm:4,Lm:5,Km:6,Co:7,lm:8,fl:9,zm:10,ym:11,ho:12};e.c={};e.c.lp={eo:"\u00a0"};e.c.xd=function(a,c){return 0==a.lastIndexOf(c,0)};e.c.Ji=function(a){var c=a.length-1;return 0<=c&&a.indexOf("/",c)==c};e.c.Sp=function(a,c){return 0==e.c.gh(c,a.substr(0,c.length))};e.c.Rp=function(a,c){return 0==e.c.gh(c,a.substr(a.length-c.length,c.length))};e.c.dk=function(a){return e.g.t.Uf.toLowerCase()==a.toLowerCase()};
|
|
e.c.Mj=function(a,c){for(var d=a.split("%s"),f="",g=Array.prototype.slice.call(arguments,1);g.length&&1<d.length;)f+=d.shift()+g.shift();return f+d.join("%s")};e.c.Zp=function(a){return a.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")};e.c.ma=function(a){return/^[\s\xa0]*$/.test(a)};e.c.br=function(a){return e.c.ma(e.c.xj(a))};e.c.$q=function(a){return!/[^\t\n\r ]/.test(a)};e.c.Yq=function(a){return!/[^a-zA-Z]/.test(a)};e.c.fr=function(a){return!/[^0-9]/.test(a)};e.c.Zq=function(a){return!/[^a-zA-Z0-9]/.test(a)};
|
|
e.c.gr=function(a){return" "==a};e.c.hr=function(a){return 1==a.length&&" "<=a&&"~">=a||"\u0080"<=a&&"\ufffd">=a};e.c.as=function(a){return a.replace(/(\r\n|\r|\n)+/g," ")};e.c.Qp=function(a){return a.replace(/(\r\n|\r|\n)/g,"\n")};e.c.vr=function(a){return a.replace(/\xa0|\s/g," ")};e.c.ur=function(a){return a.replace(/\xa0|[ \t]+/g," ")};e.c.Yp=function(a){return a.replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")};e.c.trim=function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")};
|
|
e.c.trimLeft=function(a){return a.replace(/^[\s\xa0]+/,"")};e.c.trimRight=function(a){return a.replace(/[\s\xa0]+$/,"")};e.c.gh=function(a,c){var d=String(a).toLowerCase(),f=String(c).toLowerCase();return d<f?-1:d==f?0:1};e.c.hh=/(\.\d+)|(\d+)|(\D+)/g;
|
|
e.c.xr=function(a,c){if(a==c)return 0;if(!a)return-1;if(!c)return 1;for(var d=a.toLowerCase().match(e.c.hh),f=c.toLowerCase().match(e.c.hh),g=Math.min(d.length,f.length),h=0;h<g;h++){var k=d[h],l=f[h];if(k!=l)return d=parseInt(k,10),!isNaN(d)&&(f=parseInt(l,10),!isNaN(f)&&d-f)?d-f:k<l?-1:1}return d.length!=f.length?d.length-f.length:a<c?-1:1};e.c.wc=function(a){return encodeURIComponent(String(a))};e.c.Ad=function(a){return decodeURIComponent(a.replace(/\+/g," "))};
|
|
e.c.ek=function(a,c){return a.replace(/(\r\n|\r|\n)/g,c?"<br />":"<br>")};e.c.Sc=function(a){if(!e.c.zj.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(e.c.Aj,"&"));-1!=a.indexOf("<")&&(a=a.replace(e.c.Cj,"<"));-1!=a.indexOf(">")&&(a=a.replace(e.c.Bj,">"));-1!=a.indexOf('"')&&(a=a.replace(e.c.Dj,"""));return a};e.c.Aj=/&/g;e.c.Cj=/</g;e.c.Bj=/>/g;e.c.Dj=/\"/g;e.c.zj=/[&<>\"]/;e.c.Yg=function(a){return e.c.contains(a,"&")?"document"in e.global?e.c.Rj(a):e.c.Sj(a):a};
|
|
e.c.Rj=function(a){var c={"&":"&","<":"<",">":">",""":'"'},d=document.createElement("div");return a.replace(e.c.ck,function(a,g){var h=c[a];if(h)return h;if("#"==g.charAt(0)){var k=Number("0"+g.substr(1));isNaN(k)||(h=String.fromCharCode(k))}h||(d.innerHTML=a+" ",h=d.firstChild.nodeValue.slice(0,-1));return c[a]=h})};
|
|
e.c.Sj=function(a){return a.replace(/&([^;]+);/g,function(a,d){switch(d){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:if("#"==d.charAt(0)){var f=Number("0"+d.substr(1));if(!isNaN(f))return String.fromCharCode(f)}return a}})};e.c.ck=/&([^;\s<&]+);?/g;e.c.ps=function(a,c){return e.c.ek(a.replace(/ /g,"  "),c)};
|
|
e.c.bs=function(a,c){for(var d=c.length,f=0;f<d;f++){var g=1==d?c:c.charAt(f);if(a.charAt(0)==g&&a.charAt(a.length-1)==g)return a.substring(1,a.length-1)}return a};e.c.truncate=function(a,c,d){d&&(a=e.c.Yg(a));a.length>c&&(a=a.substring(0,c-3)+"...");d&&(a=e.c.Sc(a));return a};
|
|
e.c.js=function(a,c,d,f){d&&(a=e.c.Yg(a));if(f&&a.length>c)f>c&&(f=c),a=a.substring(0,c-f)+"..."+a.substring(a.length-f);else if(a.length>c){f=Math.floor(c/2);var g=a.length-f;a=a.substring(0,f+c%2)+"..."+a.substring(g)}d&&(a=e.c.Sc(a));return a};e.c.pf={"\x00":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\x0B",'"':'\\"',"\\":"\\\\"};e.c.$d={"'":"\\'"};
|
|
e.c.quote=function(a){a=String(a);if(a.quote)return a.quote();for(var c=['"'],d=0;d<a.length;d++){var f=a.charAt(d),g=f.charCodeAt(0);c[d+1]=e.c.pf[f]||(31<g&&127>g?f:e.c.ah(f))}c.push('"');return c.join("")};e.c.qq=function(a){for(var c=[],d=0;d<a.length;d++)c[d]=e.c.ah(a.charAt(d));return c.join("")};
|
|
e.c.ah=function(a){if(a in e.c.$d)return e.c.$d[a];if(a in e.c.pf)return e.c.$d[a]=e.c.pf[a];var c=a,d=a.charCodeAt(0);if(31<d&&127>d)c=a;else{if(256>d){if(c="\\x",16>d||256<d)c+="0"}else c="\\u",4096>d&&(c+="0");c+=d.toString(16).toUpperCase()}return e.c.$d[a]=c};e.c.fs=function(a){for(var c={},d=0;d<a.length;d++)c[a.charAt(d)]=!0;return c};e.c.contains=function(a,c){return-1!=a.indexOf(c)};e.c.dq=function(a,c){return a&&c?a.split(c).length-1:0};
|
|
e.c.Bc=function(a,c,d){var f=a;0<=c&&c<a.length&&0<d&&(f=a.substr(0,c)+a.substr(c+d,a.length-c-d));return f};e.c.remove=function(a,c){var d=RegExp(e.c.df(c),"");return a.replace(d,"")};e.c.zc=function(a,c){var d=RegExp(e.c.df(c),"g");return a.replace(d,"")};e.c.df=function(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};e.c.repeat=function(a,c){return Array(c+1).join(a)};
|
|
e.c.yr=function(a,c,d){a=e.W(d)?a.toFixed(d):String(a);d=a.indexOf(".");-1==d&&(d=a.length);return e.c.repeat("0",Math.max(0,c-d))+a};e.c.xj=function(a){return null==a?"":String(a)};e.c.Ii=function(a){return Array.prototype.join.call(arguments,"")};e.c.bg=function(){return Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^e.now()).toString(36)};
|
|
e.c.Zg=function(a,c){for(var d=0,f=e.c.trim(String(a)).split("."),g=e.c.trim(String(c)).split("."),h=Math.max(f.length,g.length),k=0;0==d&&k<h;k++){var l=f[k]||"",n=g[k]||"",q=RegExp("(\\d*)(\\D*)","g"),v=RegExp("(\\d*)(\\D*)","g");do{var y=q.exec(l)||["","",""],r=v.exec(n)||["","",""];if(0==y[0].length&&0==r[0].length)break;d=e.c.qf(0==y[1].length?0:parseInt(y[1],10),0==r[1].length?0:parseInt(r[1],10))||e.c.qf(0==y[2].length,0==r[2].length)||e.c.qf(y[2],r[2])}while(0==d)}return d};
|
|
e.c.qf=function(a,c){return a<c?-1:a>c?1:0};e.c.bk=4294967296;e.c.Uq=function(a){for(var c=0,d=0;d<a.length;++d)c=31*c+a.charCodeAt(d),c%=e.c.bk;return c};e.c.gk=2147483648*Math.random()|0;e.c.jq=function(){return"goog_"+e.c.gk++};e.c.gs=function(a){var c=Number(a);return 0==c&&e.c.ma(a)?NaN:c};e.c.er=function(a){return/^[a-z]+([A-Z][a-z]*)*$/.test(a)};e.c.ir=function(a){return/^([A-Z][a-z]*)+$/.test(a)};e.c.es=function(a){return String(a).replace(/\-([a-z])/g,function(a,d){return d.toUpperCase()})};
|
|
e.c.hs=function(a){return String(a).replace(/([A-Z])/g,"-$1").toLowerCase()};e.c.is=function(a,c){var d=e.p(c)?e.c.df(c):"\\s";return a.replace(RegExp("(^"+(d?"|["+d+"]+":"")+")([a-z])","g"),function(a,c,d){return c+d.toUpperCase()})};e.c.zr=function(a){isFinite(a)&&(a=String(a));return e.p(a)?/^\s*-?0x/i.test(a)?parseInt(a,16):parseInt(a,10):NaN};e.c.Xr=function(a,c,d){a=a.split(c);for(var f=[];0<d&&a.length;)f.push(a.shift()),d--;a.length&&f.push(a.join(c));return f};e.l={};e.l.Va=e.nc;e.l.je=function(a,c){c.unshift(a);e.debug.Vc.call(this,e.c.Mj.apply(null,c));c.shift()};e.D(e.l.je,e.debug.Vc);e.l.je.prototype.name="AssertionError";e.l.bb=function(a,c,d,f){var g="Assertion failed";if(d)var g=g+(": "+d),h=f;else a&&(g+=": "+a,h=c);throw new e.l.je(""+g,h||[]);};e.l.assert=function(a,c,d){e.l.Va&&!a&&e.l.bb("",null,c,Array.prototype.slice.call(arguments,2));return a};
|
|
e.l.yd=function(a,c){if(e.l.Va)throw new e.l.je("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1));};e.l.Ep=function(a,c,d){e.l.Va&&!e.aa(a)&&e.l.bb("Expected number but got %s: %s.",[e.Ja(a),a],c,Array.prototype.slice.call(arguments,2));return a};e.l.Hp=function(a,c,d){e.l.Va&&!e.p(a)&&e.l.bb("Expected string but got %s: %s.",[e.Ja(a),a],c,Array.prototype.slice.call(arguments,2));return a};
|
|
e.l.Cp=function(a,c,d){e.l.Va&&!e.ua(a)&&e.l.bb("Expected function but got %s: %s.",[e.Ja(a),a],c,Array.prototype.slice.call(arguments,2));return a};e.l.Fp=function(a,c,d){e.l.Va&&!e.qa(a)&&e.l.bb("Expected object but got %s: %s.",[e.Ja(a),a],c,Array.prototype.slice.call(arguments,2));return a};e.l.si=function(a,c,d){e.l.Va&&!e.isArray(a)&&e.l.bb("Expected array but got %s: %s.",[e.Ja(a),a],c,Array.prototype.slice.call(arguments,2))};
|
|
e.l.Ap=function(a,c,d){e.l.Va&&!e.ve(a)&&e.l.bb("Expected boolean but got %s: %s.",[e.Ja(a),a],c,Array.prototype.slice.call(arguments,2));return a};e.l.Bp=function(a,c,d){!e.l.Va||e.qa(a)&&a.nodeType==e.kh.rk.qk||e.l.bb("Expected Element but got %s: %s.",[e.Ja(a),a],c,Array.prototype.slice.call(arguments,2));return a};e.l.Dp=function(a,c,d,f){!e.l.Va||a instanceof c||e.l.bb("instanceof check failed.",null,d,Array.prototype.slice.call(arguments,3));return a};
|
|
e.l.Gp=function(){for(var a in Object.prototype)e.l.yd(a+" should not be enumerable in Object.prototype.")};e.a={};e.eb=e.ai;e.a.Ar=function(a){return a[a.length-1]};e.a.H=Array.prototype;e.a.indexOf=e.eb&&e.a.H.indexOf?function(a,c,d){e.l.assert(null!=a.length);return e.a.H.indexOf.call(a,c,d)}:function(a,c,d){d=null==d?0:0>d?Math.max(0,a.length+d):d;if(e.p(a))return e.p(c)&&1==c.length?a.indexOf(c,d):-1;for(;d<a.length;d++)if(d in a&&a[d]===c)return d;return-1};
|
|
e.a.lastIndexOf=e.eb&&e.a.H.lastIndexOf?function(a,c,d){e.l.assert(null!=a.length);return e.a.H.lastIndexOf.call(a,c,null==d?a.length-1:d)}:function(a,c,d){d=null==d?a.length-1:d;0>d&&(d=Math.max(0,a.length+d));if(e.p(a))return e.p(c)&&1==c.length?a.lastIndexOf(c,d):-1;for(;0<=d;d--)if(d in a&&a[d]===c)return d;return-1};
|
|
e.a.forEach=e.eb&&e.a.H.forEach?function(a,c,d){e.l.assert(null!=a.length);e.a.H.forEach.call(a,c,d)}:function(a,c,d){for(var f=a.length,g=e.p(a)?a.split(""):a,h=0;h<f;h++)h in g&&c.call(d,g[h],h,a)};e.a.uj=function(a,c){for(var d=a.length,f=e.p(a)?a.split(""):a,d=d-1;0<=d;--d)d in f&&c.call(void 0,f[d],d,a)};
|
|
e.a.filter=e.eb&&e.a.H.filter?function(a,c,d){e.l.assert(null!=a.length);return e.a.H.filter.call(a,c,d)}:function(a,c,d){for(var f=a.length,g=[],h=0,k=e.p(a)?a.split(""):a,l=0;l<f;l++)if(l in k){var n=k[l];c.call(d,n,l,a)&&(g[h++]=n)}return g};e.a.map=e.eb&&e.a.H.map?function(a,c,d){e.l.assert(null!=a.length);return e.a.H.map.call(a,c,d)}:function(a,c,d){for(var f=a.length,g=Array(f),h=e.p(a)?a.split(""):a,k=0;k<f;k++)k in h&&(g[k]=c.call(d,h[k],k,a));return g};
|
|
e.a.reduce=e.eb&&e.a.H.reduce?function(a,c,d,f){e.l.assert(null!=a.length);f&&(c=e.bind(c,f));return e.a.H.reduce.call(a,c,d)}:function(a,c,d,f){var g=d;e.a.forEach(a,function(d,k){g=c.call(f,g,d,k,a)});return g};e.a.reduceRight=e.eb&&e.a.H.reduceRight?function(a,c,d,f){e.l.assert(null!=a.length);f&&(c=e.bind(c,f));return e.a.H.reduceRight.call(a,c,d)}:function(a,c,d,f){var g=d;e.a.uj(a,function(d,k){g=c.call(f,g,d,k,a)});return g};
|
|
e.a.some=e.eb&&e.a.H.some?function(a,c,d){e.l.assert(null!=a.length);return e.a.H.some.call(a,c,d)}:function(a,c,d){for(var f=a.length,g=e.p(a)?a.split(""):a,h=0;h<f;h++)if(h in g&&c.call(d,g[h],h,a))return!0;return!1};e.a.every=e.eb&&e.a.H.every?function(a,c,d){e.l.assert(null!=a.length);return e.a.H.every.call(a,c,d)}:function(a,c,d){for(var f=a.length,g=e.p(a)?a.split(""):a,h=0;h<f;h++)if(h in g&&!c.call(d,g[h],h,a))return!1;return!0};
|
|
e.a.count=function(a,c,d){var f=0;e.a.forEach(a,function(a,h,k){c.call(d,a,h,k)&&++f},d);return f};e.a.find=function(a,c,d){c=e.a.sg(a,c,d);return 0>c?null:e.p(a)?a.charAt(c):a[c]};e.a.sg=function(a,c,d){for(var f=a.length,g=e.p(a)?a.split(""):a,h=0;h<f;h++)if(h in g&&c.call(d,g[h],h,a))return h;return-1};e.a.rq=function(a,c,d){c=e.a.cj(a,c,d);return 0>c?null:e.p(a)?a.charAt(c):a[c]};
|
|
e.a.cj=function(a,c,d){for(var f=a.length,g=e.p(a)?a.split(""):a,f=f-1;0<=f;f--)if(f in g&&c.call(d,g[f],f,a))return f;return-1};e.a.contains=function(a,c){return 0<=e.a.indexOf(a,c)};e.a.ma=function(a){return 0==a.length};e.a.clear=function(a){if(!e.isArray(a))for(var c=a.length-1;0<=c;c--)delete a[c];a.length=0};e.a.Wq=function(a,c){e.a.contains(a,c)||a.push(c)};e.a.Kg=function(a,c,d){e.a.splice(a,d,0,c)};e.a.Xq=function(a,c,d){e.Ng(e.a.splice,a,d,0).apply(null,c)};
|
|
e.a.insertBefore=function(a,c,d){var f;2==arguments.length||0>(f=e.a.indexOf(a,d))?a.push(c):e.a.Kg(a,c,f)};e.a.remove=function(a,c){var d=e.a.indexOf(a,c),f;(f=0<=d)&&e.a.Bc(a,d);return f};e.a.Bc=function(a,c){e.l.assert(null!=a.length);return 1==e.a.H.splice.call(a,c,1).length};e.a.Ir=function(a,c,d){c=e.a.sg(a,c,d);return 0<=c?(e.a.Bc(a,c),!0):!1};e.a.concat=function(a){return e.a.H.concat.apply(e.a.H,arguments)};
|
|
e.a.Xb=function(a){var c=a.length;if(0<c){for(var d=Array(c),f=0;f<c;f++)d[f]=a[f];return d}return[]};e.a.ea=e.a.Xb;e.a.extend=function(a,c){for(var d=1;d<arguments.length;d++){var f=arguments[d],g;if(e.isArray(f)||(g=e.fa(f))&&Object.prototype.hasOwnProperty.call(f,"callee"))a.push.apply(a,f);else if(g)for(var h=a.length,k=f.length,l=0;l<k;l++)a[h+l]=f[l];else a.push(f)}};e.a.splice=function(a,c,d,f){e.l.assert(null!=a.length);return e.a.H.splice.apply(a,e.a.slice(arguments,1))};
|
|
e.a.slice=function(a,c,d){e.l.assert(null!=a.length);return 2>=arguments.length?e.a.H.slice.call(a,c):e.a.H.slice.call(a,c,d)};e.a.vj=function(a,c){for(var d=c||a,f={},g=0,h=0;h<a.length;){var k=a[h++],l=e.qa(k)?"o"+e.fd(k):(typeof k).charAt(0)+k;Object.prototype.hasOwnProperty.call(f,l)||(f[l]=!0,d[g++]=k)}d.length=g};e.a.Gg=function(a,c,d){return e.a.Ig(a,d||e.a.Cb,!1,c)};e.a.Lp=function(a,c,d){return e.a.Ig(a,c,!0,void 0,d)};
|
|
e.a.Ig=function(a,c,d,f,g){for(var h=0,k=a.length,l;h<k;){var n=h+k>>1,q;q=d?c.call(g,a[n],n,a):c(f,a[n]);0<q?h=n+1:(k=n,l=!q)}return l?h:~h};e.a.sort=function(a,c){e.l.assert(null!=a.length);e.a.H.sort.call(a,c||e.a.Cb)};e.a.Yr=function(a,c){for(var d=0;d<a.length;d++)a[d]={index:d,value:a[d]};var f=c||e.a.Cb;e.a.sort(a,function(a,c){return f(a.value,c.value)||a.index-c.index});for(d=0;d<a.length;d++)a[d]=a[d].value};e.a.Wr=function(a,c,d){var f=d||e.a.Cb;e.a.sort(a,function(a,d){return f(a[c],d[c])})};
|
|
e.a.zi=function(a){for(var c=e.a.Cb,d=1;d<a.length;d++)if(0<c(a[d-1],a[d]))return!1;return!0};e.a.Vd=function(a,c,d){if(!e.fa(a)||!e.fa(c)||a.length!=c.length)return!1;var f=a.length;d=d||e.a.gj;for(var g=0;g<f;g++)if(!d(a[g],c[g]))return!1;return!0};e.a.compare=function(a,c,d){return e.a.Vd(a,c,d)};e.a.aq=function(a,c,d){d=d||e.a.Cb;for(var f=Math.min(a.length,c.length),g=0;g<f;g++){var h=d(a[g],c[g]);if(0!=h)return h}return e.a.Cb(a.length,c.length)};e.a.Cb=function(a,c){return a>c?1:a<c?-1:0};
|
|
e.a.gj=function(a,c){return a===c};e.a.Jp=function(a,c,d){d=e.a.Gg(a,c,d);return 0>d?(e.a.Kg(a,c,-(d+1)),!0):!1};e.a.Kp=function(a,c,d){c=e.a.Gg(a,c,d);return 0<=c?e.a.Bc(a,c):!1};e.a.Mp=function(a,c,d){for(var f={},g=0;g<a.length;g++){var h=a[g],k=c.call(d,h,g,a);e.W(k)&&(f[k]||(f[k]=[])).push(h)}return f};e.a.Ql=function(a,c,d){var f={};e.a.forEach(a,function(g,h){f[c.call(d,g,h,a)]=g});return f};
|
|
e.a.De=function(a,c,d){var f=[],g=0,h=a;d=d||1;void 0!==c&&(g=a,h=c);if(0>d*(h-g))return[];if(0<d)for(a=g;a<h;a+=d)f.push(a);else for(a=g;a>h;a+=d)f.push(a);return f};e.a.repeat=function(a,c){for(var d=[],f=0;f<c;f++)d[f]=a;return d};e.a.tj=function(a){for(var c=[],d=0;d<arguments.length;d++){var f=arguments[d];e.isArray(f)?c.push.apply(c,e.a.tj.apply(null,f)):c.push(f)}return c};
|
|
e.a.rotate=function(a,c){e.l.assert(null!=a.length);a.length&&(c%=a.length,0<c?e.a.H.unshift.apply(a,a.splice(-c,c)):0>c&&e.a.H.push.apply(a,a.splice(0,-c)));return a};e.a.rr=function(a,c,d){e.l.assert(0<=c&&c<a.length);e.l.assert(0<=d&&d<a.length);c=e.a.H.splice.call(a,c,1);e.a.H.splice.call(a,d,0,c[0])};e.a.lh=function(a){if(!arguments.length)return[];for(var c=[],d=0;;d++){for(var f=[],g=0;g<arguments.length;g++){var h=arguments[g];if(d>=h.length)return c;f.push(h[d])}c.push(f)}};
|
|
e.a.Ur=function(a,c){for(var d=c||Math.random,f=a.length-1;0<f;f--){var g=Math.floor(d()*(f+1)),h=a[f];a[f]=a[g];a[g]=h}};e.debug.ha={};e.debug.Om=function(){};e.debug.ha.kc=[];e.debug.ha.xf=[];e.debug.ha.zh=!1;e.debug.ha.ei=function(a){e.debug.ha.kc[e.debug.ha.kc.length]=a;if(e.debug.ha.zh)for(var c=e.debug.ha.xf,d=0;d<c.length;d++)a(e.bind(c[d].Mk,c[d]))};e.debug.ha.qr=function(a){e.debug.ha.zh=!0;for(var c=e.bind(a.Mk,a),d=0;d<e.debug.ha.kc.length;d++)e.debug.ha.kc[d](c);e.debug.ha.xf.push(a)};
|
|
e.debug.ha.ms=function(a){var c=e.debug.ha.xf;e.l.assert(a==c[c.length-1],"Only the most recent monitor can be unwrapped.");a=e.bind(a.Sl,a);for(var d=0;d<e.debug.ha.kc.length;d++)e.debug.ha.kc[d](a);c.length--};e.ul={};e.ul.en=function(){};e.M=function(){e.M.zf!=e.M.Af.Ec&&(e.M.Ob[e.fd(this)]=this)};e.M.Af={Ec:0,zk:1,jl:2};e.M.zf=0;e.M.gn=!0;e.M.Ob={};e.M.Mq=function(){var a=[],c;for(c in e.M.Ob)e.M.Ob.hasOwnProperty(c)&&a.push(e.M.Ob[Number(c)]);return a};e.M.Xp=function(){e.M.Ob={}};e.M.prototype.Bf=!1;e.M.prototype.ne=function(){return this.Bf};
|
|
e.M.prototype.Bb=function(){if(!this.Bf&&(this.Bf=!0,this.Za(),e.M.zf!=e.M.Af.Ec)){var a=e.fd(this);if(e.M.zf==e.M.Af.zk&&!e.M.Ob.hasOwnProperty(a))throw Error(this+" did not call the goog.Disposable base constructor or was disposed of after a clearUndisposedObjects call");delete e.M.Ob[a]}};e.M.prototype.Za=function(){if(this.ci)for(;this.ci.length;)this.ci.shift()()};e.M.ne=function(a){return a&&"function"==typeof a.ne?a.ne():!1};e.Bb=function(a){a&&"function"==typeof a.Bb&&a.Bb()};
|
|
e.Sk=function(a){for(var c=0,d=arguments.length;c<d;++c){var f=arguments[c];e.fa(f)?e.Sk.apply(null,f):e.Bb(f)}};e.b={};e.b.nb=function(a,c){this.type=a;this.currentTarget=this.target=c};b=e.b.nb.prototype;b.Za=function(){};b.Bb=function(){};b.mb=!1;b.defaultPrevented=!1;b.lg=!0;b.stopPropagation=function(){this.mb=!0};b.preventDefault=function(){this.defaultPrevented=!0;this.lg=!1};e.b.nb.stopPropagation=function(a){a.stopPropagation()};e.b.nb.preventDefault=function(a){a.preventDefault()};e.Db={};e.Db.object=function(a,c){return c};e.Db.If=function(a){e.Db.If[" "](a);return a};e.Db.If[" "]=e.ug;e.Db.Wi=function(a){try{return e.Db.If(a.nodeName),!0}catch(c){}return!1};e.userAgent={};e.userAgent.Rh=!1;e.userAgent.Qh=!1;e.userAgent.Xh=!1;e.userAgent.Jf=!1;e.userAgent.Wh=!1;e.userAgent.Lj=!1;e.userAgent.gc=e.userAgent.Rh||e.userAgent.Qh||e.userAgent.Jf||e.userAgent.Xh||e.userAgent.Wh;e.userAgent.Xe=function(){return e.global.navigator?e.global.navigator.userAgent:null};e.userAgent.Qd=function(){return e.global.navigator};
|
|
e.userAgent.Jl=function(){e.userAgent.Qc=!1;e.userAgent.gf=!1;e.userAgent.Sd=!1;e.userAgent.Eg=!1;e.userAgent.Dg=!1;var a;if(!e.userAgent.gc&&(a=e.userAgent.Xe())){var c=e.userAgent.Qd();e.userAgent.Qc=e.c.xd(a,"Opera");e.userAgent.gf=!e.userAgent.Qc&&(e.c.contains(a,"MSIE")||e.c.contains(a,"Trident"));e.userAgent.Sd=!e.userAgent.Qc&&e.c.contains(a,"WebKit");e.userAgent.Eg=e.userAgent.Sd&&e.c.contains(a,"Mobile");e.userAgent.Dg=!e.userAgent.Qc&&!e.userAgent.Sd&&!e.userAgent.gf&&"Gecko"==c.product}};
|
|
e.userAgent.gc||e.userAgent.Jl();e.userAgent.Ef=e.userAgent.gc?e.userAgent.Wh:e.userAgent.Qc;e.userAgent.Ia=e.userAgent.gc?e.userAgent.Rh:e.userAgent.gf;e.userAgent.Nd=e.userAgent.gc?e.userAgent.Qh:e.userAgent.Dg;e.userAgent.ab=e.userAgent.gc?e.userAgent.Xh||e.userAgent.Jf:e.userAgent.Sd;e.userAgent.Gn=e.userAgent.Jf||e.userAgent.Eg;e.userAgent.Po=e.userAgent.ab;e.userAgent.sl=function(){var a=e.userAgent.Qd();return a&&a.platform||""};e.userAgent.lf=e.userAgent.sl();e.userAgent.Vh=!1;
|
|
e.userAgent.Yh=!1;e.userAgent.Uh=!1;e.userAgent.Zh=!1;e.userAgent.Ph=!1;e.userAgent.Th=!1;e.userAgent.Sh=!1;e.userAgent.sb=e.userAgent.Vh||e.userAgent.Yh||e.userAgent.Uh||e.userAgent.Zh||e.userAgent.Ph||e.userAgent.Th||e.userAgent.Sh;
|
|
e.userAgent.Il=function(){e.userAgent.oj=e.c.contains(e.userAgent.lf,"Mac");e.userAgent.pj=e.c.contains(e.userAgent.lf,"Win");e.userAgent.nj=e.c.contains(e.userAgent.lf,"Linux");e.userAgent.qj=!!e.userAgent.Qd()&&e.c.contains(e.userAgent.Qd().appVersion||"","X11");var a=e.userAgent.Xe();e.userAgent.kj=!!a&&e.c.contains(a,"Android");e.userAgent.mj=!!a&&e.c.contains(a,"iPhone");e.userAgent.lj=!!a&&e.c.contains(a,"iPad")};e.userAgent.sb||e.userAgent.Il();
|
|
e.userAgent.Cn=e.userAgent.sb?e.userAgent.Vh:e.userAgent.oj;e.userAgent.np=e.userAgent.sb?e.userAgent.Yh:e.userAgent.pj;e.userAgent.sn=e.userAgent.sb?e.userAgent.Uh:e.userAgent.nj;e.userAgent.op=e.userAgent.sb?e.userAgent.Zh:e.userAgent.qj;e.userAgent.Vl=e.userAgent.sb?e.userAgent.Ph:e.userAgent.kj;e.userAgent.mn=e.userAgent.sb?e.userAgent.Th:e.userAgent.mj;e.userAgent.ln=e.userAgent.sb?e.userAgent.Sh:e.userAgent.lj;
|
|
e.userAgent.tl=function(){var a="",c;e.userAgent.Ef&&e.global.opera?(a=e.global.opera.version,a="function"==typeof a?a():a):(e.userAgent.Nd?c=/rv\:([^\);]+)(\)|;)/:e.userAgent.Ia?c=/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/:e.userAgent.ab&&(c=/WebKit\/(\S+)/),c&&(a=(a=c.exec(e.userAgent.Xe()))?a[1]:""));return e.userAgent.Ia&&(c=e.userAgent.yh(),c>parseFloat(a))?String(c):a};e.userAgent.yh=function(){var a=e.global.document;return a?a.documentMode:void 0};e.userAgent.VERSION=e.userAgent.tl();
|
|
e.userAgent.compare=function(a,c){return e.c.Zg(a,c)};e.userAgent.$g={};e.userAgent.Qa=function(a){return e.userAgent.Lj||e.userAgent.$g[a]||(e.userAgent.$g[a]=0<=e.c.Zg(e.userAgent.VERSION,a))};e.userAgent.jr=e.userAgent.Qa;e.userAgent.Mf=function(a){return e.userAgent.Ia&&e.userAgent.Xk>=a};e.userAgent.ar=e.userAgent.Mf;var s=e.global.document;e.userAgent.Xk=s&&e.userAgent.Ia?e.userAgent.yh()||("CSS1Compat"==s.compatMode?parseInt(e.userAgent.VERSION,10):5):void 0;e.b.Fd={an:!e.userAgent.Ia||e.userAgent.Mf(9),Oe:!e.userAgent.Ia||e.userAgent.Mf(9),fj:e.userAgent.Ia&&!e.userAgent.Qa("9"),$m:!e.userAgent.ab||e.userAgent.Qa("528"),Zm:e.userAgent.Nd&&e.userAgent.Qa("1.9b")||e.userAgent.Ia&&e.userAgent.Qa("8")||e.userAgent.Ef&&e.userAgent.Qa("9.5")||e.userAgent.ab&&e.userAgent.Qa("528"),cn:e.userAgent.Nd&&!e.userAgent.Qa("8")||e.userAgent.Ia&&!e.userAgent.Qa("9"),dp:"ontouchstart"in e.global||!!(e.global.document&&document.documentElement&&"ontouchstart"in document.documentElement)||
|
|
!(!e.global.navigator||!e.global.navigator.msMaxTouchPoints)};e.b.re=function(a){return e.userAgent.ab?"webkit"+a:e.userAgent.Ef?"o"+a.toLowerCase():a.toLowerCase()};
|
|
e.b.ra={jm:"click",wm:"dblclick",Hn:"mousedown",Jn:"mouseup",Vi:"mouseover",Ui:"mouseout",In:"mousemove",To:"selectstart",on:"keypress",nn:"keydown",pn:"keyup",gm:"blur",Qm:"focus",xm:"deactivate",Rm:e.userAgent.Ia?"focusin":"DOMFocusIn",Sm:e.userAgent.Ia?"focusout":"DOMFocusOut",im:"change",So:"select",Wo:"submit",jn:"input",Eo:"propertychange",Gm:"dragstart",Bm:"drag",Dm:"dragenter",Fm:"dragover",Em:"dragleave",Hm:"drop",Cm:"dragend",cp:"touchstart",bp:"touchmove",ap:"touchend",$o:"touchcancel",
|
|
em:"beforeunload",rm:"consolemessage",sm:"contextmenu",Am:"DOMContentLoaded",dh:"error",bn:"help",tn:"load",An:"losecapture",no:"orientationchange",Go:"readystatechange",Mo:"resize",Qo:"scroll",hp:"unload",Ym:"hashchange",oo:"pagehide",po:"pageshow",Ao:"popstate",um:"copy",qo:"paste",vm:"cut",bm:"beforecopy",cm:"beforecut",dm:"beforepaste",mo:"online",Wg:"offline",Dn:"message",qm:"connect",Yl:e.b.re("AnimationStart"),Wl:e.b.re("AnimationEnd"),Xl:e.b.re("AnimationIteration"),ep:e.b.re("TransitionEnd"),
|
|
to:"pointerdown",zo:"pointerup",so:"pointercancel",wo:"pointermove",yo:"pointerover",xo:"pointerout",uo:"pointerenter",vo:"pointerleave",Xm:"gotpointercapture",Bn:"lostpointercapture",Ln:"MSGestureChange",Mn:"MSGestureEnd",Nn:"MSGestureHold",On:"MSGestureStart",Pn:"MSGestureTap",Qn:"MSGotPointerCapture",Rn:"MSInertiaStart",Sn:"MSLostPointerCapture",Tn:"MSPointerCancel",Un:"MSPointerDown",Vn:"MSPointerEnter",Wn:"MSPointerHover",Xn:"MSPointerLeave",Yn:"MSPointerMove",Zn:"MSPointerOut",$n:"MSPointerOver",
|
|
ao:"MSPointerUp",Zo:"textinput",nm:"compositionstart",om:"compositionupdate",mm:"compositionend",Mm:"exit",un:"loadabort",vn:"loadcommit",wn:"loadredirect",xn:"loadstart",yn:"loadstop",No:"responsive",Vo:"sizechanged",ip:"unresponsive",mp:"visibilitychange"};e.b.ob=function(a,c){if(a){var d=this.type=a.type;e.b.nb.call(this,d);this.target=a.target||a.srcElement;this.currentTarget=c;var f=a.relatedTarget;f?e.userAgent.Nd&&(e.Db.Wi(f)||(f=null)):d==e.b.ra.Vi?f=a.fromElement:d==e.b.ra.Ui&&(f=a.toElement);this.relatedTarget=f;this.offsetX=e.userAgent.ab||void 0!==a.offsetX?a.offsetX:a.layerX;this.offsetY=e.userAgent.ab||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.button=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||("keypress"==d?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.state=a.state;this.Hc=a;a.defaultPrevented&&this.preventDefault();delete this.mb}};e.D(e.b.ob,e.b.nb);e.b.ob.co={qn:0,Fn:1,Oo:2};e.b.ob.fn=[1,4,2];b=e.b.ob.prototype;b.target=null;b.relatedTarget=null;b.offsetX=0;b.offsetY=0;b.clientX=0;b.clientY=0;
|
|
b.screenX=0;b.screenY=0;b.button=0;b.keyCode=0;b.charCode=0;b.ctrlKey=!1;b.altKey=!1;b.shiftKey=!1;b.metaKey=!1;b.Hc=null;b.stopPropagation=function(){e.b.ob.ya.stopPropagation.call(this);this.Hc.stopPropagation?this.Hc.stopPropagation():this.Hc.cancelBubble=!0};b.preventDefault=function(){e.b.ob.ya.preventDefault.call(this);var a=this.Hc;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,e.b.Fd.fj)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(c){}};b.Za=function(){};e.b.na=function(){};e.b.na.Cg="closure_listenable_"+(1E6*Math.random()|0);e.b.na.pl=function(){e.b.Ea.prototype[e.b.na.Cg]=!0};e.b.na.Ta=function(a){try{return!(!a||!a[e.b.na.Cg])}catch(c){return!1}};e.b.Rd=function(){};e.b.Rd.rj=0;e.b.Rd.ej=function(){return++e.b.Rd.rj};e.b.vg=function(a,c,d,f,g,h){this.xb=a;this.Ed=c;this.src=d;this.type=f;this.capture=!!g;this.zd=h;this.key=e.b.Rd.ej();this.Tb=this.tb=!1};e.b.vg.Jm=!1;var t=function(a){a.Tb=!0;a.xb=null;a.Ed=null;a.src=null;a.zd=null};e.b.Ba=function(a){this.src=a;this.ga={};this.yc=0};e.b.Ba.prototype.add=function(a,c,d,f,g){var h=this.ga[a];h||(h=this.ga[a]=[],this.yc++);var k=e.b.Ba.Me(h,c,f,g);-1<k?(a=h[k],d||(a.tb=!1)):(a=new e.b.vg(c,null,this.src,a,!!f,g),a.tb=d,h.push(a));return a};e.b.Ba.prototype.remove=function(a,c,d,f){if(!(a in this.ga))return!1;var g=this.ga[a];c=e.b.Ba.Me(g,c,d,f);return-1<c?(t(g[c]),e.a.Bc(g,c),0==g.length&&(delete this.ga[a],this.yc--),!0):!1};
|
|
var u=function(a,c){var d=c.type;if(!(d in a.ga))return!1;var f=e.a.remove(a.ga[d],c);f&&(t(c),0==a.ga[d].length&&(delete a.ga[d],a.yc--));return f};e.b.Ba.prototype.zc=function(a){var c=0,d;for(d in this.ga)if(!a||d==a){for(var f=this.ga[d],g=0;g<f.length;g++)++c,t(f[g]);delete this.ga[d];this.yc--}return c};e.b.Ba.prototype.Lc=function(a,c){var d=this.ga[a],f=[];if(d)for(var g=0;g<d.length;++g){var h=d[g];h.capture==c&&f.push(h)}return f};
|
|
e.b.Ba.prototype.dc=function(a,c,d,f){a=this.ga[a];var g=-1;a&&(g=e.b.Ba.Me(a,c,d,f));return-1<g?a[g]:null};e.b.Ba.prototype.Jc=function(a,c){var d=e.W(a),f=e.W(c);return e.object.some(this.ga,function(g){for(var h=0;h<g.length;++h)if(!(d&&g[h].type!=a||f&&g[h].capture!=c))return!0;return!1})};e.b.Ba.Me=function(a,c,d,f){for(var g=0;g<a.length;++g){var h=a[g];if(!h.Tb&&h.xb==c&&h.capture==!!d&&h.zd==f)return g}return-1};e.b.mr={};e.b.Ne="closure_lm_"+(1E6*Math.random()|0);e.b.sj="on";e.b.mf={};e.b.Re={wi:0,xi:1,Xi:2};e.b.Qe=2;e.b.Gd=0;e.b.Vb=function(a,c,d,f,g){if(e.isArray(c)){for(var h=0;h<c.length;h++)e.b.Vb(a,c[h],d,f,g);return null}d=e.b.Od(d);return e.b.na.Ta(a)?a.Vb(c,d,f,g):e.b.wg(a,c,d,!1,f,g)};
|
|
e.b.wg=function(a,c,d,f,g,h){if(!c)throw Error("Invalid event type");var k=!!g;if(k&&!e.b.Fd.Oe){if(e.b.Qe==e.b.Re.wi)return e.l.yd("Can not register capture listener in IE8-."),null;if(e.b.Qe==e.b.Re.xi)return null}var l=e.b.hb(a);l||(a[e.b.Ne]=l=new e.b.Ba(a));d=l.add(c,d,f,g,h);if(d.Ed)return d;f=e.b.yi();d.Ed=f;f.src=a;f.xb=d;a.addEventListener?a.addEventListener(c,f,k):a.attachEvent(e.b.$f(c),f);e.b.Gd++;return d};
|
|
e.b.yi=function(){var a=e.b.Pc,c=e.b.Fd.Oe?function(d){return a.call(c.src,c.xb,d)}:function(d){d=a.call(c.src,c.xb,d);if(!d)return d};return c};e.b.Bd=function(a,c,d,f,g){if(e.isArray(c)){for(var h=0;h<c.length;h++)e.b.Bd(a,c[h],d,f,g);return null}d=e.b.Od(d);return e.b.na.Ta(a)?a.Bd(c,d,f,g):e.b.wg(a,c,d,!0,f,g)};e.b.lr=function(a,c,d,f,g){c.Vb(a,d,f,g)};
|
|
e.b.Kc=function(a,c,d,f,g){if(e.isArray(c)){for(var h=0;h<c.length;h++)e.b.Kc(a,c[h],d,f,g);return null}d=e.b.Od(d);if(e.b.na.Ta(a))return a.Kc(c,d,f,g);if(!a)return!1;if(a=e.b.hb(a))if(c=a.dc(c,d,!!f,g))return e.b.Ub(c);return!1};
|
|
e.b.Ub=function(a){if(e.aa(a)||!a||a.Tb)return!1;var c=a.src;if(e.b.na.Ta(c))return c.Ub(a);var d=a.type,f=a.Ed;c.removeEventListener?c.removeEventListener(d,f,a.capture):c.detachEvent&&c.detachEvent(e.b.$f(d),f);e.b.Gd--;(d=e.b.hb(c))?(u(d,a),0==d.yc&&(d.src=null,c[e.b.Ne]=null)):t(a);return!0};e.b.ls=function(a,c,d,f,g){c.Kc(a,d,f,g)};
|
|
e.b.zc=function(a,c){if(!a)return 0;if(e.b.na.Ta(a))return a.za?a.za.zc(c):0;var d=e.b.hb(a);if(!d)return 0;var f=0,g;for(g in d.ga)if(!c||g==c)for(var h=e.a.ea(d.ga[g]),k=0;k<h.length;++k)e.b.Ub(h[k])&&++f;return f};e.b.Gr=function(){return e.b.Gd=0};e.b.Lc=function(a,c,d){return e.b.na.Ta(a)?a.Lc(c,d):a?(a=e.b.hb(a))?a.Lc(c,d):[]:[]};e.b.dc=function(a,c,d,f,g){d=e.b.Od(d);f=!!f;return e.b.na.Ta(a)?a.dc(c,d,f,g):a?(a=e.b.hb(a))?a.dc(c,d,f,g):null:null};
|
|
e.b.Jc=function(a,c,d){if(e.b.na.Ta(a))return a.Jc(c,d);a=e.b.hb(a);return!!a&&a.Jc(c,d)};e.b.vl=function(a){var c=[],d;for(d in a)a[d]&&a[d].id?c.push(d+" = "+a[d]+" ("+a[d].id+")"):c.push(d+" = "+a[d]);return c.join("\n")};e.b.$f=function(a){return a in e.b.mf?e.b.mf[a]:e.b.mf[a]=e.b.sj+a};e.b.bc=function(a,c,d,f){return e.b.na.Ta(a)?a.bc(c,d,f):e.b.Ve(a,c,d,f)};
|
|
e.b.Ve=function(a,c,d,f){var g=1;if(a=e.b.hb(a))if(c=a.ga[c])for(c=e.a.ea(c),a=0;a<c.length;a++){var h=c[a];h&&h.capture==d&&!h.Tb&&(g&=!1!==e.b.Fe(h,f))}return Boolean(g)};e.b.Fe=function(a,c){var d=a.xb,f=a.zd||a.src;a.tb&&e.b.Ub(a);return d.call(f,c)};e.b.Lq=function(){return e.b.Gd};e.b.dispatchEvent=function(a,c){e.l.assert(e.b.na.Ta(a),"Can not use goog.events.dispatchEvent with non-goog.events.Listenable instance.");return a.dispatchEvent(c)};e.b.Cr=function(a){e.b.Pc=a.ti(e.b.Pc)};
|
|
e.b.Pc=function(a,c){if(a.Tb)return!0;if(!e.b.Fd.Oe){var d=c||e.ig("window.event"),f=new e.b.ob(d,this),g=!0;if(e.b.Qe==e.b.Re.Xi){if(!e.b.Yi(d)){e.b.Zi(d);for(var d=[],h=f.currentTarget;h;h=h.parentNode)d.push(h);for(var h=a.type,k=d.length-1;!f.mb&&0<=k;k--)f.currentTarget=d[k],g&=e.b.Ve(d[k],h,!0,f);for(k=0;!f.mb&&k<d.length;k++)f.currentTarget=d[k],g&=e.b.Ve(d[k],h,!1,f)}}else g=e.b.Fe(a,f);return g}return e.b.Fe(a,new e.b.ob(c,this))};
|
|
e.b.Zi=function(a){var c=!1;if(0==a.keyCode)try{a.keyCode=-1;return}catch(d){c=!0}if(c||void 0==a.returnValue)a.returnValue=!0};e.b.Yi=function(a){return 0>a.keyCode||void 0!=a.returnValue};e.b.wj=0;e.b.Nq=function(a){return a+"_"+e.b.wj++};e.b.hb=function(a){a=a[e.b.Ne];return a instanceof e.b.Ba?a:null};e.b.ng="__closure_events_fn_"+(1E9*Math.random()>>>0);
|
|
e.b.Od=function(a){e.l.assert(a,"Listener can not be null.");if(e.ua(a))return a;e.l.assert(a.handleEvent,"An object listener must have handleEvent method.");return a[e.b.ng]||(a[e.b.ng]=function(c){return a.handleEvent(c)})};e.debug.ha.ei(function(a){e.b.Pc=a(e.b.Pc)});e.b.Ea=function(){e.M.call(this);this.za=new e.b.Ba(this);this.Bi=this};e.D(e.b.Ea,e.M);e.b.na.pl();e.b.Ea.Pi=1E3;b=e.b.Ea.prototype;b.Te=null;b.addEventListener=function(a,c,d,f){e.b.Vb(this,a,c,d,f)};b.removeEventListener=function(a,c,d,f){e.b.Kc(this,a,c,d,f)};b.dispatchEvent=function(a){w(this);var c,d=this.Te;if(d){c=[];for(var f=1;d;d=d.Te)c.push(d),e.l.assert(++f<e.b.Ea.Pi,"infinite loop")}return e.b.Ea.Qi(this.Bi,a,c)};
|
|
b.Za=function(){e.b.Ea.ya.Za.call(this);this.za&&this.za.zc(void 0);this.Te=null};b.Vb=function(a,c,d,f){w(this);return this.za.add(String(a),c,!1,d,f)};b.Bd=function(a,c,d,f){return this.za.add(String(a),c,!0,d,f)};b.Kc=function(a,c,d,f){return this.za.remove(String(a),c,d,f)};b.Ub=function(a){return u(this.za,a)};
|
|
b.bc=function(a,c,d){a=this.za.ga[String(a)];if(!a)return!0;a=e.a.ea(a);for(var f=!0,g=0;g<a.length;++g){var h=a[g];if(h&&!h.Tb&&h.capture==c){var k=h.xb,l=h.zd||h.src;h.tb&&this.Ub(h);f=!1!==k.call(l,d)&&f}}return f&&!1!=d.lg};b.Lc=function(a,c){return this.za.Lc(String(a),c)};b.dc=function(a,c,d,f){return this.za.dc(String(a),c,d,f)};b.Jc=function(a,c){return this.za.Jc(e.W(a)?String(a):void 0,c)};var w=function(a){e.l.assert(a.za,"Event target is not initialized. Did you call the superclass (goog.events.EventTarget) constructor?")};
|
|
e.b.Ea.Qi=function(a,c,d){var f=c.type||c;if(e.p(c))c=new e.b.nb(c,a);else if(c instanceof e.b.nb)c.target=c.target||a;else{var g=c;c=new e.b.nb(f,a);e.object.extend(c,g)}var g=!0,h;if(d)for(var k=d.length-1;!c.mb&&0<=k;k--)h=c.currentTarget=d[k],g=h.bc(f,!0,c)&&g;c.mb||(h=c.currentTarget=a,g=h.bc(f,!0,c)&&g,c.mb||(g=h.bc(f,!1,c)&&g));if(d)for(k=0;!c.mb&&k<d.length;k++)h=c.currentTarget=d[k],g=h.bc(f,!1,c)&&g;return g};e.n={};e.n.u=function(){};e.K={};e.K.Rc=function(a){return function(){return a}};e.K.Pm=e.K.Rc(!1);e.K.fp=e.K.Rc(!0);e.K.lo=e.K.Rc(null);e.K.Mg=function(a){return a};e.K.error=function(a){return function(){throw Error(a);}};e.K.yd=function(a){return function(){throw a;}};e.K.nr=function(a,c){c=c||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,c))}};e.K.wr=function(a){return function(){return arguments[a]}};e.K.qs=function(a,c){return e.K.Ok(a,e.K.Rc(c))};
|
|
e.K.bq=function(a,c){var d=arguments,f=d.length;return function(){var a;f&&(a=d[f-1].apply(this,arguments));for(var c=f-2;0<=c;c--)a=d[c].call(this,a);return a}};e.K.Ok=function(a){var c=arguments,d=c.length;return function(){for(var a,g=0;g<d;g++)a=c[g].apply(this,arguments);return a}};e.K.ed=function(a){var c=arguments,d=c.length;return function(){for(var a=0;a<d;a++)if(!c[a].apply(this,arguments))return!1;return!0}};
|
|
e.K.di=function(a){var c=arguments,d=c.length;return function(){for(var a=0;a<d;a++)if(c[a].apply(this,arguments))return!0;return!1}};e.K.ib=function(a){return function(){return!a.apply(this,arguments)}};e.K.create=function(a,c){var d=function(){};d.prototype=a.prototype;d=new d;a.apply(d,Array.prototype.slice.call(arguments,1));return d};e.K.Tk=!0;e.K.Pp=function(a){var c=!1,d;return function(){if(!e.K.Tk)return a();c||(d=a(),c=!0);return d}};e.A={};e.A.Fr=function(a){return Math.floor(Math.random()*a)};e.A.ks=function(a,c){return a+Math.random()*(c-a)};e.A.Vp=function(a,c,d){return Math.min(Math.max(a,c),d)};e.A.Nk=function(a){a%=360;return 0>360*a?a+360:a};e.A.kr=function(a,c,d){return a+d*(c-a)};e.A.sr=function(a,c,d){return Math.abs(a-c)<=(d||1E-6)};e.A.Df=function(a){return e.A.Nk(a)};e.A.Ah=function(a){return a*Math.PI/180};e.A.Lk=function(a){return 180*a/Math.PI};e.A.vp=function(a,c){return c*Math.cos(e.A.Ah(a))};
|
|
e.A.wp=function(a,c){return c*Math.sin(e.A.Ah(a))};e.A.tp=function(a,c,d,f){return e.A.Df(e.A.Lk(Math.atan2(f-c,d-a)))};e.A.up=function(a,c){var d=e.A.Df(c)-e.A.Df(a);180<d?d-=360:-180>=d&&(d=360+d);return d};e.A.Vr=function(a){return 0==a?0:0>a?-1:1};
|
|
e.A.or=function(a,c,d,f){d=d||function(a,c){return a==c};f=f||function(c){return a[c]};for(var g=a.length,h=c.length,k=[],l=0;l<g+1;l++)k[l]=[],k[l][0]=0;for(var n=0;n<h+1;n++)k[0][n]=0;for(l=1;l<=g;l++)for(n=1;n<=h;n++)d(a[l-1],c[n-1])?k[l][n]=k[l-1][n-1]+1:k[l][n]=Math.max(k[l-1][n],k[l][n-1]);for(var q=[],l=g,n=h;0<l&&0<n;)d(a[l-1],c[n-1])?(q.unshift(f(l-1,n-1)),l--,n--):k[l-1][n]>k[l][n-1]?l--:n--;return q};e.A.xg=function(a){return e.a.reduce(arguments,function(a,d){return a+d},0)};
|
|
e.A.dj=function(a){return e.A.xg.apply(null,arguments)/arguments.length};e.A.Zr=function(a){var c=arguments.length;if(2>c)return 0;var d=e.A.dj.apply(null,arguments),c=e.A.xg.apply(null,e.a.map(arguments,function(a){return Math.pow(a-d,2)}))/(c-1);return Math.sqrt(c)};e.A.Id=function(a){return isFinite(a)&&0==a%1};e.A.cr=function(a){return isFinite(a)&&!isNaN(a)};e.A.Lr=function(a,c){e.l.assert(!e.W(c)||0<c);return Math.floor(a+(c||2E-15))};
|
|
e.A.Kr=function(a,c){e.l.assert(!e.W(c)||0<c);return Math.ceil(a-(c||2E-15))};e.h={};e.h.da="StopIteration"in e.global?e.global.StopIteration:Error("StopIteration");e.h.U=function(){};e.h.U.prototype.next=function(){throw e.h.da;};e.h.U.prototype.Nc=function(){return this};e.h.$=function(a){if(a instanceof e.h.U)return a;if("function"==typeof a.Nc)return a.Nc(!1);if(e.fa(a)){var c=0,d=new e.h.U;d.next=function(){for(;;){if(c>=a.length)throw e.h.da;if(c in a)return a[c++];c++}};return d}throw Error("Not implemented");};
|
|
e.h.forEach=function(a,c,d){if(e.fa(a))try{e.a.forEach(a,c,d)}catch(f){if(f!==e.h.da)throw f;}else{a=e.h.$(a);try{for(;;)c.call(d,a.next(),void 0,a)}catch(g){if(g!==e.h.da)throw g;}}};e.h.filter=function(a,c,d){var f=e.h.$(a);a=new e.h.U;a.next=function(){for(;;){var a=f.next();if(c.call(d,a,void 0,f))return a}};return a};
|
|
e.h.De=function(a,c,d){var f=0,g=a,h=d||1;1<arguments.length&&(f=a,g=c);if(0==h)throw Error("Range step argument must not be zero");var k=new e.h.U;k.next=function(){if(0<h&&f>=g||0>h&&f<=g)throw e.h.da;var a=f;f+=h;return a};return k};e.h.join=function(a,c){return e.h.Xb(a).join(c)};e.h.map=function(a,c,d){var f=e.h.$(a);a=new e.h.U;a.next=function(){for(;;){var a=f.next();return c.call(d,a,void 0,f)}};return a};e.h.reduce=function(a,c,d,f){var g=d;e.h.forEach(a,function(a){g=c.call(f,g,a)});return g};
|
|
e.h.some=function(a,c,d){a=e.h.$(a);try{for(;;)if(c.call(d,a.next(),void 0,a))return!0}catch(f){if(f!==e.h.da)throw f;}return!1};e.h.every=function(a,c,d){a=e.h.$(a);try{for(;;)if(!c.call(d,a.next(),void 0,a))return!1}catch(f){if(f!==e.h.da)throw f;}return!0};e.h.Up=function(a){var c=arguments,d=c.length,f=0,g=new e.h.U;g.next=function(){try{if(f>=d)throw e.h.da;return e.h.$(c[f]).next()}catch(a){if(a!==e.h.da||f>=d)throw a;f++;return this.next()}};return g};
|
|
e.h.nq=function(a,c,d){var f=e.h.$(a);a=new e.h.U;var g=!0;a.next=function(){for(;;){var a=f.next();if(!g||!c.call(d,a,void 0,f))return g=!1,a}};return a};e.h.cs=function(a,c,d){var f=e.h.$(a);a=new e.h.U;var g=!0;a.next=function(){for(;;)if(g){var a=f.next();if(c.call(d,a,void 0,f))return a;g=!1}else throw e.h.da;};return a};e.h.Xb=function(a){if(e.fa(a))return e.a.Xb(a);a=e.h.$(a);var c=[];e.h.forEach(a,function(a){c.push(a)});return c};
|
|
e.h.Vd=function(a,c){a=e.h.$(a);c=e.h.$(c);var d,f;try{for(;;){d=f=!1;var g=a.next();d=!0;var h=c.next();f=!0;if(g!=h)break}}catch(k){if(k!==e.h.da)throw k;if(d&&!f)return!1;if(!f)try{c.next()}catch(l){if(l!==e.h.da)throw l;return!0}}return!1};e.h.Ti=function(a){try{e.h.$(a).next()}catch(c){if(c!=e.h.da)throw c;}};
|
|
e.h.product=function(a){if(e.a.some(arguments,function(a){return!a.length})||!arguments.length)return new e.h.U;var c=new e.h.U,d=arguments,f=e.a.repeat(0,d.length);c.next=function(){if(f){for(var a=e.a.map(f,function(a,c){return d[c][a]}),c=f.length-1;0<=c;c--){e.l.assert(f);if(f[c]<d[c].length-1){f[c]++;break}if(0==c){f=null;break}f[c]=0}return a}throw e.h.da;};return c};
|
|
e.h.kq=function(a){var c=e.h.$(a),d=[],f=0;a=new e.h.U;var g=!1;a.next=function(){var a=null;if(!g)try{return a=c.next(),d.push(a),a}catch(k){if(k!=e.h.da||e.a.ma(d))throw k;g=!0}a=d[f];f=(f+1)%d.length;return a};return a};e.h.count=function(a,c){var d=a||0,f=e.W(c)?c:1,g=new e.h.U;g.next=function(){var a=d;d+=f;return a};return g};e.h.repeat=function(a){var c=new e.h.U;c.next=e.K.Rc(a);return c};e.h.qp=function(a){var c=e.h.$(a),d=0;a=new e.h.U;a.next=function(){return d+=c.next()};return a};
|
|
e.h.lh=function(a){var c=arguments,d=new e.h.U;if(0<c.length){var f=e.a.map(c,e.h.$);d.next=function(){return e.a.map(f,function(a){return a.next()})}}return d};e.h.ss=function(a,c){var d=e.a.slice(arguments,1),f=new e.h.U;if(0<d.length){var g=e.a.map(d,e.h.$);f.next=function(){var c=!1,d=e.a.map(g,function(d){var f;try{f=d.next(),c=!0}catch(g){if(g!==e.h.da)throw g;f=a}return f});if(!c)throw e.h.da;return d}}return f};e.h.cq=function(a,c){var d=e.h.$(c);return e.h.filter(a,function(){return!!d.next()})};
|
|
e.h.wf=function(a,c){this.yg=e.h.$(a);this.zg=c||e.K.Mg};e.D(e.h.wf,e.h.U);e.h.wf.prototype.next=function(){for(;this.Tc==this.Xg;)this.Xd=this.yg.next(),this.Tc=this.zg(this.Xd);for(var a=this.Xg=this.Tc,c=this.Xg,d=[];this.Tc==c;){d.push(this.Xd);try{this.Xd=this.yg.next()}catch(f){if(f!==e.h.da)throw f;break}this.Tc=this.zg(this.Xd)}return[a,d]};e.h.Rq=function(a,c){return new e.h.wf(a,c)};
|
|
e.h.ds=function(a,c){var d=e.h.$(a),f=e.a.map(e.a.De(e.aa(c)?c:2),function(){return[]}),g=function(){var a=d.next();e.a.forEach(f,function(c){c.push(a)})};return e.a.map(f,function(a){var c=new e.h.U;c.next=function(){e.a.ma(a)&&g();e.l.assert(!e.a.ma(a));return a.shift()};return c})};e.h.pq=function(a,c){return e.h.lh(e.h.count(c),a)};e.h.Ye=function(a,c){e.l.assert(e.A.Id(c)&&0<=c);var d=e.h.$(a),f=new e.h.U,g=c;f.next=function(){if(0<g--)return d.next();throw e.h.da;};return f};
|
|
e.h.Si=function(a,c){e.l.assert(e.A.Id(c)&&0<=c);for(var d=e.h.$(a);0<c--;)e.h.Ti(d);return d};e.h.slice=function(a,c,d){e.l.assert(e.A.Id(c)&&0<=c);a=e.h.Si(a,c);e.aa(d)&&(e.l.assert(e.A.Id(d)&&d>=c),a=e.h.Ye(a,d-c));return a};e.h.Ei=function(a){var c=[];e.a.vj(a,c);return a.length!=c.length};e.h.Ai=function(a,c){var d=e.h.Xb(a),d=e.a.repeat(d,e.aa(c)?c:d.length),d=e.h.product.apply(void 0,d);return e.h.filter(d,function(a){return!e.h.Ei(a)})};
|
|
e.h.$p=function(a,c){var d=e.h.Xb(a),f=e.h.De(d.length),f=e.h.Ai(f,c),g=e.h.filter(f,function(a){return e.a.zi(a)}),f=new e.h.U;f.next=function(){return e.a.map(g.next(),function(a){return d[a]})};return f};e.n.Z=function(a,c){this.R={};this.S=[];this.Dc=this.Q=0;var d=arguments.length;if(1<d){if(d%2)throw Error("Uneven number of arguments");for(var f=0;f<d;f+=2)this.set(arguments[f],arguments[f+1])}else a&&this.nf(a)};b=e.n.Z.prototype;b.Ca=function(){return this.Q};b.P=function(){x(this);for(var a=[],c=0;c<this.S.length;c++)a.push(this.R[this.S[c]]);return a};b.ia=function(){x(this);return this.S.concat()};b.gb=function(a){return e.n.Z.Gb(this.R,a)};
|
|
b.cc=function(a){for(var c=0;c<this.S.length;c++){var d=this.S[c];if(e.n.Z.Gb(this.R,d)&&this.R[d]==a)return!0}return!1};b.Vd=function(a,c){if(this===a)return!0;if(this.Q!=a.Ca())return!1;var d=c||e.n.Z.Pj;x(this);for(var f,g=0;f=this.S[g];g++)if(!d(this.get(f),a.get(f)))return!1;return!0};e.n.Z.Pj=function(a,c){return a===c};e.n.Z.prototype.ma=function(){return 0==this.Q};e.n.Z.prototype.clear=function(){this.R={};this.Dc=this.Q=this.S.length=0};
|
|
e.n.Z.prototype.remove=function(a){return e.n.Z.Gb(this.R,a)?(delete this.R[a],this.Q--,this.Dc++,this.S.length>2*this.Q&&x(this),!0):!1};var x=function(a){if(a.Q!=a.S.length){for(var c=0,d=0;c<a.S.length;){var f=a.S[c];e.n.Z.Gb(a.R,f)&&(a.S[d++]=f);c++}a.S.length=d}if(a.Q!=a.S.length){for(var g={},d=c=0;c<a.S.length;)f=a.S[c],e.n.Z.Gb(g,f)||(a.S[d++]=f,g[f]=1),c++;a.S.length=d}};b=e.n.Z.prototype;b.get=function(a,c){return e.n.Z.Gb(this.R,a)?this.R[a]:c};
|
|
b.set=function(a,c){e.n.Z.Gb(this.R,a)||(this.Q++,this.S.push(a),this.Dc++);this.R[a]=c};b.nf=function(a){var c;a instanceof e.n.Z?(c=a.ia(),a=a.P()):(c=e.object.ia(a),a=e.object.P(a));for(var d=0;d<c.length;d++)this.set(c[d],a[d])};b.ea=function(){return new e.n.Z(this)};b.Rl=function(){for(var a=new e.n.Z,c=0;c<this.S.length;c++){var d=this.S[c];a.set(this.R[d],d)}return a};b.Ql=function(){x(this);for(var a={},c=0;c<this.S.length;c++){var d=this.S[c];a[d]=this.R[d]}return a};
|
|
b.Nc=function(a){x(this);var c=0,d=this.S,f=this.R,g=this.Dc,h=this,k=new e.h.U;k.next=function(){for(;;){if(g!=h.Dc)throw Error("The map has changed since the iterator was created");if(c>=d.length)throw e.h.da;var k=d[c++];return a?k:f[k]}};return k};e.n.Z.Gb=function(a,c){return Object.prototype.hasOwnProperty.call(a,c)};e.n.Ca=function(a){return"function"==typeof a.Ca?a.Ca():e.fa(a)||e.p(a)?a.length:e.object.Ca(a)};e.n.P=function(a){if("function"==typeof a.P)return a.P();if(e.p(a))return a.split("");if(e.fa(a)){for(var c=[],d=a.length,f=0;f<d;f++)c.push(a[f]);return c}return e.object.P(a)};e.n.ia=function(a){if("function"==typeof a.ia)return a.ia();if("function"!=typeof a.P){if(e.fa(a)||e.p(a)){var c=[];a=a.length;for(var d=0;d<a;d++)c.push(d);return c}return e.object.ia(a)}};
|
|
e.n.contains=function(a,c){return"function"==typeof a.contains?a.contains(c):"function"==typeof a.cc?a.cc(c):e.fa(a)||e.p(a)?e.a.contains(a,c):e.object.cc(a,c)};e.n.ma=function(a){return"function"==typeof a.ma?a.ma():e.fa(a)||e.p(a)?e.a.ma(a):e.object.ma(a)};e.n.clear=function(a){"function"==typeof a.clear?a.clear():e.fa(a)?e.a.clear(a):e.object.clear(a)};
|
|
e.n.forEach=function(a,c,d){if("function"==typeof a.forEach)a.forEach(c,d);else if(e.fa(a)||e.p(a))e.a.forEach(a,c,d);else for(var f=e.n.ia(a),g=e.n.P(a),h=g.length,k=0;k<h;k++)c.call(d,g[k],f&&f[k],a)};e.n.filter=function(a,c,d){if("function"==typeof a.filter)return a.filter(c,d);if(e.fa(a)||e.p(a))return e.a.filter(a,c,d);var f,g=e.n.ia(a),h=e.n.P(a),k=h.length;if(g){f={};for(var l=0;l<k;l++)c.call(d,h[l],g[l],a)&&(f[g[l]]=h[l])}else for(f=[],l=0;l<k;l++)c.call(d,h[l],void 0,a)&&f.push(h[l]);return f};
|
|
e.n.map=function(a,c,d){if("function"==typeof a.map)return a.map(c,d);if(e.fa(a)||e.p(a))return e.a.map(a,c,d);var f,g=e.n.ia(a),h=e.n.P(a),k=h.length;if(g){f={};for(var l=0;l<k;l++)f[g[l]]=c.call(d,h[l],g[l],a)}else for(f=[],l=0;l<k;l++)f[l]=c.call(d,h[l],void 0,a);return f};e.n.some=function(a,c,d){if("function"==typeof a.some)return a.some(c,d);if(e.fa(a)||e.p(a))return e.a.some(a,c,d);for(var f=e.n.ia(a),g=e.n.P(a),h=g.length,k=0;k<h;k++)if(c.call(d,g[k],f&&f[k],a))return!0;return!1};
|
|
e.n.every=function(a,c,d){if("function"==typeof a.every)return a.every(c,d);if(e.fa(a)||e.p(a))return e.a.every(a,c,d);for(var f=e.n.ia(a),g=e.n.P(a),h=g.length,k=0;k<h;k++)if(!c.call(d,g[k],f&&f[k],a))return!1;return!0};e.n.Wa=function(a){this.R=new e.n.Z;a&&this.nf(a)};e.n.Wa.vf=function(a){var c=typeof a;return"object"==c&&a||"function"==c?"o"+e.fd(a):c.substr(0,1)+a};b=e.n.Wa.prototype;b.Ca=function(){return this.R.Ca()};b.add=function(a){this.R.set(e.n.Wa.vf(a),a)};b.nf=function(a){a=e.n.P(a);for(var c=a.length,d=0;d<c;d++)this.add(a[d])};b.zc=function(a){a=e.n.P(a);for(var c=a.length,d=0;d<c;d++)this.remove(a[d])};b.remove=function(a){return this.R.remove(e.n.Wa.vf(a))};b.clear=function(){this.R.clear()};
|
|
b.ma=function(){return this.R.ma()};b.contains=function(a){return this.R.gb(e.n.Wa.vf(a))};b.P=function(){return this.R.P()};b.ea=function(){return new e.n.Wa(this)};b.Vd=function(a){return this.Ca()==e.n.Ca(a)&&aa(this,a)};var aa=function(a,c){var d=e.n.Ca(c);if(a.Ca()>d)return!1;!(c instanceof e.n.Wa)&&5<d&&(c=new e.n.Wa(c));return e.n.every(a,function(a){return e.n.contains(c,a)})};e.n.Wa.prototype.Nc=function(){return this.R.Nc(!1)};e.debug.Ga=e.nc;e.debug.Tp=function(a,c,d){d=d||e.global;var f=d.onerror,g=!!c;e.userAgent.ab&&!e.userAgent.Qa("535.3")&&(g=!g);d.onerror=function(c,d,l){f&&f(c,d,l);a({message:c,fileName:d,kg:l});return g}};e.debug.vl=function(a,c){if("undefined"==typeof a)return"undefined";if(null==a)return"NULL";var d=[],f;for(f in a)if(c||!e.ua(a[f])){var g=f+" = ";try{g+=a[f]}catch(h){g+="*** "+h+" ***"}d.push(g)}return d.join("\n")};
|
|
e.debug.lq=function(a,c){var d=new e.n.Wa,f=[],g=function(a,k){var l=k+" ";try{if(e.W(a))if(e.pc(a))f.push("NULL");else if(e.p(a))f.push('"'+a.replace(/\n/g,"\n"+k)+'"');else if(e.ua(a))f.push(String(a).replace(/\n/g,"\n"+k));else if(e.qa(a))if(d.contains(a))f.push("*** reference loop detected ***");else{d.add(a);f.push("{");for(var n in a)if(c||!e.ua(a[n]))f.push("\n"),f.push(l),f.push(n+" = "),g(a[n],l);f.push("\n"+k+"}")}else f.push(a);else f.push("undefined")}catch(q){f.push("*** "+q+" ***")}};
|
|
g(a,"");return f.join("")};e.debug.wl=function(a){for(var c=[],d=0;d<a.length;d++)e.isArray(a[d])?c.push(e.debug.wl(a[d])):c.push(a[d]);return"[ "+c.join(", ")+" ]"};
|
|
e.debug.Ak=function(a,c){try{var d=e.debug.Ej(a);return"Message: "+e.c.Sc(d.message)+'\nUrl: <a href="view-source:'+d.fileName+'" target="_new">'+d.fileName+"</a>\nLine: "+d.lineNumber+"\n\nBrowser stack:\n"+e.c.Sc(d.stack+"-> ")+"[end]\n\nJS stack traversal:\n"+e.c.Sc(e.debug.Vg(c)+"-> ")}catch(f){return"Exception trying to expose exception! You win, we lose. "+f}};
|
|
e.debug.Ej=function(a){var c=e.ig("window.location.href");if(e.p(a))return{message:a,name:"Unknown error",lineNumber:"Not available",fileName:c,stack:"Not available"};var d,f,g=!1;try{d=a.lineNumber||a.kg||"Not available"}catch(h){d="Not available",g=!0}try{f=a.fileName||a.filename||a.sourceURL||e.global.$googDebugFname||c}catch(k){f="Not available",g=!0}return!g&&a.lineNumber&&a.fileName&&a.stack&&a.message&&a.name?a:{message:a.message||"Not available",name:a.name||"UnknownError",lineNumber:d,fileName:f,
|
|
stack:a.stack||"Not available"}};e.debug.oq=function(a,c){var d="string"==typeof a?Error(a):a;d.stack||(d.stack=e.debug.Vg(arguments.callee.caller));if(c){for(var f=0;d["message"+f];)++f;d["message"+f]=String(c)}return d};
|
|
e.debug.Iq=function(a){for(var c=[],d=arguments.callee.caller,f=0;d&&(!a||f<a);){c.push(e.debug.jf(d));c.push("()\n");try{d=d.caller}catch(g){c.push("[exception trying to get caller]\n");break}f++;if(f>=e.debug.Hg){c.push("[...long stack...]");break}}a&&f>=a?c.push("[...reached max depth limit...]"):c.push("[end]");return c.join("")};e.debug.Hg=50;e.debug.Vg=function(a){return e.debug.Jg(a||arguments.callee.caller,[])};
|
|
e.debug.Jg=function(a,c){var d=[];if(e.a.contains(c,a))d.push("[...circular reference...]");else if(a&&c.length<e.debug.Hg){d.push(e.debug.jf(a)+"(");for(var f=a.arguments,g=0;g<f.length;g++){0<g&&d.push(", ");var h;h=f[g];switch(typeof h){case "object":h=h?"object":"null";break;case "string":break;case "number":h=String(h);break;case "boolean":h=h?"true":"false";break;case "function":h=(h=e.debug.jf(h))?h:"[fn]";break;default:h=typeof h}40<h.length&&(h=h.substr(0,40)+"...");d.push(h)}c.push(a);d.push(")\n");
|
|
try{d.push(e.debug.Jg(a.caller,c))}catch(k){d.push("[exception trying to get caller]\n")}}else a?d.push("[...long stack...]"):d.push("[end]");return d.join("")};e.debug.Qr=function(a){e.debug.Nh=a};e.debug.jf=function(a){if(e.debug.oc[a])return e.debug.oc[a];if(e.debug.Nh){var c=e.debug.Nh(a);if(c)return e.debug.oc[a]=c}a=String(a);e.debug.oc[a]||(c=/function ([^\(]+)/.exec(a),e.debug.oc[a]=c?c[1]:"[Anonymous]");return e.debug.oc[a]};
|
|
e.debug.pr=function(a){return a.replace(/ /g,"[_]").replace(/\f/g,"[f]").replace(/\n/g,"[n]\n").replace(/\r/g,"[r]").replace(/\t/g,"[t]")};e.debug.oc={};e.debug.Oa=function(a,c,d,f,g){this.reset(a,c,d,f,g)};e.debug.Oa.prototype.qh=null;e.debug.Oa.prototype.ph=null;e.debug.Oa.Pk=!0;e.debug.Oa.Rk=0;e.debug.Oa.prototype.reset=function(a,c,d,f,g){e.debug.Oa.Pk&&("number"==typeof g||e.debug.Oa.Rk++);f||e.now();this.Gc=a;this.yj=c;delete this.qh;delete this.ph};e.debug.Oa.prototype.ef=function(a){this.Gc=a};e.debug.pa=function(){e.l.assert(e.debug.pa.ih(),"Cannot use goog.debug.LogBuffer without defining goog.debug.LogBuffer.CAPACITY.");this.clear()};e.debug.pa.nh=function(){e.debug.pa.jd||(e.debug.pa.jd=new e.debug.pa);return e.debug.pa.jd};e.debug.pa.ke=0;e.debug.pa.ih=function(){return 0<e.debug.pa.ke};e.debug.pa.prototype.clear=function(){this.rh=Array(e.debug.pa.ke);this.sh=-1;this.th=!1};e.debug.j=function(a){this.lb=a};e.debug.j.prototype.Md=null;e.debug.j.prototype.Gc=null;e.debug.j.prototype.tf=null;e.debug.j.prototype.Yb=null;e.debug.j.yb=!0;e.debug.j.yb||(e.debug.j.Pe=[]);e.debug.j.q=function(a,c){this.name=a;this.value=c};e.debug.j.q.prototype.toString=function(){return this.name};e.debug.j.q.Ec=new e.debug.j.q("OFF",Infinity);e.debug.j.q.ml=new e.debug.j.q("SHOUT",1200);e.debug.j.q.ff=new e.debug.j.q("SEVERE",1E3);e.debug.j.q.Ug=new e.debug.j.q("WARNING",900);
|
|
e.debug.j.q.Tg=new e.debug.j.q("INFO",800);e.debug.j.q.Fg=new e.debug.j.q("CONFIG",700);e.debug.j.q.Sg=new e.debug.j.q("FINE",500);e.debug.j.q.gl=new e.debug.j.q("FINER",400);e.debug.j.q.hl=new e.debug.j.q("FINEST",300);e.debug.j.q.el=new e.debug.j.q("ALL",0);e.debug.j.q.of=[e.debug.j.q.Ec,e.debug.j.q.ml,e.debug.j.q.ff,e.debug.j.q.Ug,e.debug.j.q.Tg,e.debug.j.q.Fg,e.debug.j.q.Sg,e.debug.j.q.gl,e.debug.j.q.hl,e.debug.j.q.el];e.debug.j.q.qb=null;
|
|
e.debug.j.q.Rg=function(){e.debug.j.q.qb={};for(var a=0,c;c=e.debug.j.q.of[a];a++)e.debug.j.q.qb[c.value]=c,e.debug.j.q.qb[c.name]=c};e.debug.j.q.Gq=function(a){e.debug.j.q.qb||e.debug.j.q.Rg();return e.debug.j.q.qb[a]||null};e.debug.j.q.Hq=function(a){e.debug.j.q.qb||e.debug.j.q.Rg();if(a in e.debug.j.q.qb)return e.debug.j.q.qb[a];for(var c=0;c<e.debug.j.q.of.length;++c){var d=e.debug.j.q.of[c];if(d.value<=a)return d}return null};e.debug.j.jc=function(a){return e.debug.V.jc(a)};
|
|
e.debug.j.uk=function(a){e.global.console&&(e.global.console.timeStamp?e.global.console.timeStamp(a):e.global.console.markTimeline&&e.global.console.markTimeline(a));e.global.msWriteProfilerMark&&e.global.msWriteProfilerMark(a)};e.debug.j.prototype.Kh=function(a){e.debug.Ga&&(e.debug.j.yb?(this.Yb||(this.Yb=[]),this.Yb.push(a)):(e.l.assert(!this.lb,"Cannot call addHandler on a non-root logger when goog.debug.Logger.ENABLE_HIERARCHY is false."),e.debug.j.Pe.push(a)))};
|
|
e.debug.j.prototype.Lh=function(a){if(e.debug.Ga){var c=e.debug.j.yb?this.Yb:e.debug.j.Pe;return!!c&&e.a.remove(c,a)}return!1};e.debug.j.prototype.getParent=function(){return this.Md};e.debug.j.prototype.ef=function(a){e.debug.Ga&&(e.debug.j.yb?this.Gc=a:(e.l.assert(!this.lb,"Cannot call setLevel() on a non-root logger when goog.debug.Logger.ENABLE_HIERARCHY is false."),e.debug.j.Oi=a))};
|
|
var z=function(a){if(!e.debug.Ga)return e.debug.j.q.Ec;if(!e.debug.j.yb)return e.debug.j.Oi;if(a.Gc)return a.Gc;if(a.Md)return z(a.Md);e.l.yd("Root logger has no level set.");return null};b=e.debug.j.prototype;b.log=function(a,c,d){if(e.debug.Ga&&e.debug.Ga&&a.value>=z(this).value)if(a=this.tk(a,c,d),e.debug.j.uk("log:"+a.yj),e.debug.j.yb)for(c=this;c;){d=c;var f=a;if(d.Yb)for(var g=0,h=void 0;h=d.Yb[g];g++)h(f);c=c.getParent()}else for(c=0;d=e.debug.j.Pe[c++];)d(a)};
|
|
b.tk=function(a,c,d){var f;if(e.debug.pa.ih()){var g=e.debug.pa.nh();f=this.lb;var h=(g.sh+1)%e.debug.pa.ke;g.sh=h;g.th?(g=g.rh[h],g.reset(a,c,f),f=g):(g.th=h==e.debug.pa.ke-1,f=g.rh[h]=new e.debug.Oa(a,c,f))}else f=new e.debug.Oa(a,String(c),this.lb);d&&(f.qh=d,g=e.debug.Ak(d,arguments.callee.caller),f.ph=g);return f};b.cf=function(a,c){e.debug.Ga&&this.log(e.debug.j.q.Ug,a,c)};b.info=function(a,c){e.debug.Ga&&this.log(e.debug.j.q.Tg,a,c)};
|
|
b.wa=function(a,c){e.debug.Ga&&this.log(e.debug.j.q.Sg,a,c)};e.debug.V={};e.debug.V.Pd={};e.debug.V.Mc=null;e.debug.V.v=function(){e.debug.V.Mc||(e.debug.V.Mc=new e.debug.j(""),e.debug.V.Pd[""]=e.debug.V.Mc,e.debug.V.Mc.ef(e.debug.j.q.Fg))};e.debug.V.zq=function(){return e.debug.V.Pd};e.debug.V.hj=function(){e.debug.V.v();return e.debug.V.Mc};e.debug.V.jc=function(a){e.debug.V.v();return e.debug.V.Pd[a]||e.debug.V.Bk(a)};
|
|
e.debug.V.hq=function(a){return function(c){var d=a||e.debug.V.hj();e.debug.Ga&&d.log(e.debug.j.q.ff,"Error: "+c.message+" ("+c.fileName+" @ Line: "+c.kg+")",void 0)}};e.debug.V.Bk=function(a){var c=new e.debug.j(a);if(e.debug.j.yb){var d=a.lastIndexOf("."),f=a.substr(d+1),d=e.debug.V.jc(a.substr(0,d));d.tf||(d.tf={});d.tf[f]=c;c.Md=d}return e.debug.V.Pd[a]=c};e.log={};e.log.pb=e.debug.Ga;e.log.j=e.debug.j;e.log.q=e.debug.j.q;e.log.Oa=e.debug.Oa;e.log.jc=function(a,c){if(e.log.pb){var d=e.debug.j.jc(a);c&&d&&d.ef(c);return d}return null};e.log.Kh=function(a,c){e.log.pb&&a&&a.Kh(c)};e.log.Lh=function(a,c){return e.log.pb&&a?a.Lh(c):!1};e.log.log=function(a,c,d,f){e.log.pb&&a&&a.log(c,d,f)};e.log.error=function(a,c,d){e.log.pb&&a&&e.debug.Ga&&a.log(e.debug.j.q.ff,c,d)};e.log.cf=function(a,c,d){e.log.pb&&a&&a.cf(c,d)};
|
|
e.log.info=function(a,c,d){e.log.pb&&a&&a.info(c,d)};e.log.wa=function(a,c,d){e.log.pb&&a&&a.wa(c,d)};e.X=function(a,c){e.b.Ea.call(this);this.$e=a||1;this.Ic=c||e.X.Ze;this.og=e.bind(this.bj,this);this.pg=e.now()};e.D(e.X,e.b.Ea);e.X.Jk=2147483647;e.X.prototype.enabled=!1;e.X.Ze=e.global;e.X.Ik=0.8;e.X.prototype.rb=null;
|
|
e.X.prototype.bj=function(){if(this.enabled){var a=e.now()-this.pg;0<a&&a<this.$e*e.X.Ik?this.rb=this.Ic.setTimeout(this.og,this.$e-a):(this.rb&&(this.Ic.clearTimeout(this.rb),this.rb=null),this.dispatchEvent(e.X.Hk),this.enabled&&(this.rb=this.Ic.setTimeout(this.og,this.$e),this.pg=e.now()))}};e.X.prototype.stop=function(){this.enabled=!1;this.rb&&(this.Ic.clearTimeout(this.rb),this.rb=null)};e.X.prototype.Za=function(){e.X.ya.Za.call(this);this.stop();delete this.Ic};e.X.Hk="tick";
|
|
e.X.tb=function(a,c,d){if(e.ua(a))d&&(a=e.bind(a,d));else if(a&&"function"==typeof a.handleEvent)a=e.bind(a.handleEvent,a);else throw Error("Invalid listener argument");return c>e.X.Jk?-1:e.X.Ze.setTimeout(a,c||0)};e.X.clear=function(a){e.X.Ze.clearTimeout(a)};e.uri={};e.uri.e={};e.uri.e.ad={fh:38,EQUAL:61,Tj:35,Uj:63};e.uri.e.Ag=function(a,c,d,f,g,h,k){var l="";a&&(l+=a+":");d&&(l+="//",c&&(l+=c+"@"),l+=d,f&&(l+=":"+f));g&&(l+=g);h&&(l+="?"+h);k&&(l+="#"+k);return l};e.uri.e.mk=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");e.uri.e.G={Ac:1,Ie:2,zb:3,Ab:4,Je:5,Ke:6,Zf:7};e.uri.e.split=function(a){e.uri.e.lk();return a.match(e.uri.e.mk)};e.uri.e.rf=e.userAgent.ab;
|
|
e.uri.e.lk=function(){if(e.uri.e.rf){e.uri.e.rf=!1;var a=e.global.location;if(a){var c=a.href;if(c&&(c=e.uri.e.uc(c))&&c!=a.hostname)throw e.uri.e.rf=!0,Error();}}};e.uri.e.be=function(a){return a&&decodeURIComponent(a)};e.uri.e.ec=function(a,c){return e.uri.e.split(c)[a]||null};e.uri.e.vc=function(a){return e.uri.e.ec(e.uri.e.G.Ac,a)};e.uri.e.vi=function(a){a=e.uri.e.vc(a);!a&&self.location&&(a=self.location.protocol,a=a.substr(0,a.length-1));return a?a.toLowerCase():""};
|
|
e.uri.e.kk=function(a){return e.uri.e.ec(e.uri.e.G.Ie,a)};e.uri.e.wd=function(a){return e.uri.e.be(e.uri.e.kk(a))};e.uri.e.hk=function(a){return e.uri.e.ec(e.uri.e.G.zb,a)};e.uri.e.uc=function(a){return e.uri.e.be(e.uri.e.hk(a))};e.uri.e.vd=function(a){return Number(e.uri.e.ec(e.uri.e.G.Ab,a))||null};e.uri.e.jk=function(a){return e.uri.e.ec(e.uri.e.G.Je,a)};e.uri.e.Sb=function(a){return e.uri.e.be(e.uri.e.jk(a))};e.uri.e.ag=function(a){return e.uri.e.ec(e.uri.e.G.Ke,a)};
|
|
e.uri.e.ik=function(a){var c=a.indexOf("#");return 0>c?null:a.substr(c+1)};e.uri.e.Pr=function(a,c){return e.uri.e.ok(a)+(c?"#"+c:"")};e.uri.e.ud=function(a){return e.uri.e.be(e.uri.e.ik(a))};e.uri.e.yq=function(a){a=e.uri.e.split(a);return e.uri.e.Ag(a[e.uri.e.G.Ac],a[e.uri.e.G.Ie],a[e.uri.e.G.zb],a[e.uri.e.G.Ab])};e.uri.e.Eq=function(a){a=e.uri.e.split(a);return e.uri.e.Ag(null,null,null,null,a[e.uri.e.G.Je],a[e.uri.e.G.Ke],a[e.uri.e.G.Zf])};
|
|
e.uri.e.ok=function(a){var c=a.indexOf("#");return 0>c?a:a.substr(0,c)};e.uri.e.Hl=function(a,c){var d=e.uri.e.split(a),f=e.uri.e.split(c);return d[e.uri.e.G.zb]==f[e.uri.e.G.zb]&&d[e.uri.e.G.Ac]==f[e.uri.e.G.Ac]&&d[e.uri.e.G.Ab]==f[e.uri.e.G.Ab]};e.uri.e.Hi=function(a){if(e.nc&&(0<=a.indexOf("#")||0<=a.indexOf("?")))throw Error("goog.uri.utils: Fragment or query identifiers are not supported: ["+a+"]");};
|
|
e.uri.e.Ue=function(a){if(a[1]){var c=a[0],d=c.indexOf("#");0<=d&&(a.push(c.substr(d)),a[0]=c=c.substr(0,d));d=c.indexOf("?");0>d?a[1]="?":d==c.length-1&&(a[1]=void 0)}return a.join("")};e.uri.e.Se=function(a,c,d){if(e.isArray(c)){e.l.si(c);for(var f=0;f<c.length;f++)e.uri.e.Se(a,String(c[f]),d)}else null!=c&&d.push("&",a,""===c?"":"=",e.c.wc(c))};
|
|
e.uri.e.sf=function(a,c,d){e.l.assert(0==Math.max(c.length-(d||0),0)%2,"goog.uri.utils: Key/value lists must be even in length.");for(d=d||0;d<c.length;d+=2)e.uri.e.Se(c[d],c[d+1],a);return a};e.uri.e.Np=function(a,c){var d=e.uri.e.sf([],a,c);d[0]="";return d.join("")};e.uri.e.jh=function(a,c){for(var d in c)e.uri.e.Se(d,c[d],a);return a};e.uri.e.Op=function(a){a=e.uri.e.jh([],a);a[0]="";return a.join("")};
|
|
e.uri.e.xp=function(a,c){return e.uri.e.Ue(2==arguments.length?e.uri.e.sf([a],arguments[1],0):e.uri.e.sf([a],arguments,1))};e.uri.e.yp=function(a,c){return e.uri.e.Ue(e.uri.e.jh([a],c))};e.uri.e.Fi=function(a,c,d){a=[a,"&",c];e.Ra(d)&&a.push("=",e.c.wc(d));return e.uri.e.Ue(a)};
|
|
e.uri.e.Kd=function(a,c,d,f){for(var g=d.length;0<=(c=a.indexOf(d,c))&&c<f;){var h=a.charCodeAt(c-1);if(h==e.uri.e.ad.fh||h==e.uri.e.ad.Uj)if(h=a.charCodeAt(c+g),!h||h==e.uri.e.ad.EQUAL||h==e.uri.e.ad.fh||h==e.uri.e.ad.Tj)return c;c+=g+1}return-1};e.uri.e.Ld=/#|$/;e.uri.e.Sq=function(a,c){return 0<=e.uri.e.Kd(a,0,c,a.search(e.uri.e.Ld))};
|
|
e.uri.e.Cq=function(a,c){var d=a.search(e.uri.e.Ld),f=e.uri.e.Kd(a,0,c,d);if(0>f)return null;var g=a.indexOf("&",f);if(0>g||g>d)g=d;f+=c.length+1;return e.c.Ad(a.substr(f,g-f))};e.uri.e.Dq=function(a,c){for(var d=a.search(e.uri.e.Ld),f=0,g,h=[];0<=(g=e.uri.e.Kd(a,f,c,d));){f=a.indexOf("&",g);if(0>f||f>d)f=d;g+=c.length+1;h.push(e.c.Ad(a.substr(g,f-g)))}return h};e.uri.e.fk=/[?&]($|#)/;
|
|
e.uri.e.Gi=function(a,c){for(var d=a.search(e.uri.e.Ld),f=0,g,h=[];0<=(g=e.uri.e.Kd(a,f,c,d));)h.push(a.substring(f,g)),f=Math.min(a.indexOf("&",g)+1||d,d);h.push(a.substr(f));return h.join("").replace(e.uri.e.fk,"$1")};e.uri.e.pk=function(a){var c=e.uri.e.hg.gg,d=e.c.bg();return e.uri.e.Fi(e.uri.e.Gi(a,c),c,d)};e.uri.e.zp=function(a,c){e.uri.e.Hi(a);e.c.Ji(a)&&(a=a.substr(0,a.length-1));e.c.xd(c,"/")&&(c=c.substr(1));return e.c.Ii(a,"/",c)};e.uri.e.hg={gg:"zx"};e.uri.e.Ll=function(a){return e.uri.e.pk(a)};e.g={};e.g.Ka={NO_ERROR:0,Fj:1,Jj:2,Ij:3,Gj:4,Hj:5,Kj:6,We:7,TIMEOUT:8,Wg:9};
|
|
e.g.Ka.wq=function(a){switch(a){case e.g.Ka.NO_ERROR:return"No Error";case e.g.Ka.Fj:return"Access denied to content document";case e.g.Ka.Jj:return"File not found";case e.g.Ka.Ij:return"Firefox silently errored";case e.g.Ka.Gj:return"Application custom error";case e.g.Ka.Hj:return"An exception occurred";case e.g.Ka.Kj:return"Http response at 400 or 500 level";case e.g.Ka.We:return"Request was aborted";case e.g.Ka.TIMEOUT:return"Request timed out";case e.g.Ka.Wg:return"The resource is not available offline";
|
|
default:return"Unrecognized error code"}};e.g.ra={jb:"complete",Di:"success",dh:"error",We:"abort",Qb:"ready",Ci:"readystatechange",TIMEOUT:"timeout",hn:"incrementaldata",Do:"progress"};e.g.$a={tm:100,Xo:101,Zj:200,Wj:201,Vj:202,fo:203,Yj:204,Lo:205,$j:206,bo:300,Kn:301,Um:302,Ro:303,Xj:304,kp:305,Yo:307,am:400,gp:401,ro:402,Tm:403,jo:404,En:405,io:406,Fo:407,Jo:408,pm:409,Wm:410,rn:411,Bo:412,Ho:413,Ko:414,jp:415,Io:416,Nm:417,kn:500,ko:501,$l:502,Uo:503,Vm:504,dn:505,ak:1223};e.g.$a.Ae=function(a){switch(a){case e.g.$a.Zj:case e.g.$a.Wj:case e.g.$a.Vj:case e.g.$a.Yj:case e.g.$a.$j:case e.g.$a.Xj:case e.g.$a.ak:return!0;default:return!1}};e.g.pe=function(){};e.g.pe.prototype.Qg=null;e.g.pe.prototype.tc=function(){var a;(a=this.Qg)||(a={},A(this)&&(a[e.g.L.Hd.qg]=!0,a[e.g.L.Hd.eg]=!0),a=this.Qg=a);return a};e.g.ae=function(a,c){this.dl=a;this.cl=c};e.D(e.g.ae,e.g.pe);e.g.ae.prototype.ye=function(){return this.dl()};e.g.ae.prototype.tc=function(){return this.cl()};e.g.L=function(){return e.g.L.Pg.ye()};e.g.L.Nj=!1;e.g.L.tc=function(){return e.g.L.Pg.tc()};e.g.L.Hd={qg:0,eg:1};e.g.L.ac={ij:0,LOADING:1,fg:2,jl:3,jb:4};e.g.L.Or=function(a,c){e.g.L.bh(new e.g.ae(a,c))};e.g.L.bh=function(a){e.g.L.Pg=a};e.g.Kf=function(){};e.D(e.g.Kf,e.g.pe);e.g.Kf.prototype.ye=function(){var a=A(this);return a?new ActiveXObject(a):new XMLHttpRequest};
|
|
var A=function(a){if(e.g.L.Nj)return"";if(!a.eh&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var c=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],d=0;d<c.length;d++){var f=c[d];try{return new ActiveXObject(f),a.eh=f}catch(g){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.eh};e.g.L.bh(new e.g.Kf);e.g.t=function(a){e.b.Ea.call(this);this.headers=new e.n.Z;this.qd=a||null;this.fb=!1;this.md=this.F=null;this.rc=this.Of=this.ld="";this.wb=this.ue=this.nd=this.te=!1;this.Rb=0;this.od=null;this.Pf=e.g.t.oi.ni;this.pd=this.Nf=!1};e.D(e.g.t,e.b.Ea);e.g.t.oi={ni:"",nl:"text",fl:"document",fm:"blob",ARRAY_BUFFER:"arraybuffer"};e.g.t.prototype.va=e.log.jc("goog.net.XhrIo");e.g.t.Uf="Content-Type";e.g.t.ui=/^https?$/i;e.g.t.hi=["POST","PUT"];e.g.t.gi="application/x-www-form-urlencoded;charset=utf-8";
|
|
e.g.t.Rf="timeout";e.g.t.we="ontimeout";e.g.t.Le=[];e.g.t.send=function(a,c,d,f,g,h,k){var l=new e.g.t;e.g.t.Le.push(l);c&&l.Vb(e.g.ra.jb,c);l.Bd(e.g.ra.Qb,l.aj);h&&(l.Rb=Math.max(0,h));k&&(l.Nf=k);l.send(a,d,f,g)};e.g.t.Wp=function(){for(var a=e.g.t.Le;a.length;)a.pop().Bb()};e.g.t.Dr=function(a){e.g.t.prototype.Oc=a.ti(e.g.t.prototype.Oc)};e.g.t.prototype.aj=function(){this.Bb();e.a.remove(e.g.t.Le,this)};
|
|
e.g.t.prototype.send=function(a,c,d,f){if(this.F)throw Error("[goog.net.XhrIo] Object is active with another request="+this.ld+"; newUri="+a);c=c?c.toUpperCase():"GET";this.ld=a;this.rc="";this.Of=c;this.te=!1;this.fb=!0;this.F=this.qd?this.qd.ye():e.g.L();this.md=this.qd?this.qd.tc():e.g.L.tc();this.F.onreadystatechange=e.bind(this.Sf,this);try{e.log.wa(this.va,B(this,"Opening Xhr")),this.ue=!0,this.F.open(c,a,!0),this.ue=!1}catch(g){e.log.wa(this.va,B(this,"Error opening Xhr: "+g.message));C(this,
|
|
g);return}a=d||"";var h=this.headers.ea();f&&e.n.forEach(f,function(a,c){h.set(c,a)});f=e.a.find(h.ia(),e.g.t.ii);d=e.global.FormData&&a instanceof e.global.FormData;!e.a.contains(e.g.t.hi,c)||f||d||h.set(e.g.t.Uf,e.g.t.gi);e.n.forEach(h,function(a,c){this.F.setRequestHeader(c,a)},this);this.Pf&&(this.F.responseType=this.Pf);e.object.gb(this.F,"withCredentials")&&(this.F.withCredentials=this.Nf);try{D(this),0<this.Rb&&(this.pd=e.g.t.ji(this.F),e.log.wa(this.va,B(this,"Will abort after "+this.Rb+"ms if incomplete, xhr2 "+
|
|
this.pd)),this.pd?(this.F[e.g.t.Rf]=this.Rb,this.F[e.g.t.we]=e.bind(this.Vf,this)):this.od=e.X.tb(this.Vf,this.Rb,this)),e.log.wa(this.va,B(this,"Sending request")),this.nd=!0,this.F.send(a),this.nd=!1}catch(k){e.log.wa(this.va,B(this,"Send error: "+k.message)),C(this,k)}};e.g.t.ji=function(a){return e.userAgent.Ia&&e.userAgent.Qa(9)&&e.aa(a[e.g.t.Rf])&&e.W(a[e.g.t.we])};e.g.t.ii=function(a){return e.c.dk(a)};
|
|
e.g.t.prototype.Vf=function(){"undefined"!=typeof e&&this.F&&(this.rc="Timed out after "+this.Rb+"ms, aborting",e.log.wa(this.va,B(this,this.rc)),this.dispatchEvent(e.g.ra.TIMEOUT),this.abort(e.g.Ka.TIMEOUT))};var C=function(a,c){a.fb=!1;a.F&&(a.wb=!0,a.F.abort(),a.wb=!1);a.rc=c;E(a);F(a)},E=function(a){a.te||(a.te=!0,a.dispatchEvent(e.g.ra.jb),a.dispatchEvent(e.g.ra.dh))};
|
|
e.g.t.prototype.abort=function(){this.F&&this.fb&&(e.log.wa(this.va,B(this,"Aborting")),this.fb=!1,this.wb=!0,this.F.abort(),this.wb=!1,this.dispatchEvent(e.g.ra.jb),this.dispatchEvent(e.g.ra.We),F(this))};e.g.t.prototype.Za=function(){this.F&&(this.fb&&(this.fb=!1,this.wb=!0,this.F.abort(),this.wb=!1),F(this,!0));e.g.t.ya.Za.call(this)};e.g.t.prototype.Sf=function(){this.ne()||(this.ue||this.nd||this.wb?G(this):this.Oc())};e.g.t.prototype.Oc=function(){G(this)};
|
|
var G=function(a){if(a.fb&&"undefined"!=typeof e)if(a.md[e.g.L.Hd.eg]&&H(a)==e.g.L.ac.jb&&2==I(a))e.log.wa(a.va,B(a,"Local request error detected and ignored"));else if(a.nd&&H(a)==e.g.L.ac.jb)e.X.tb(a.Sf,0,a);else if(a.dispatchEvent(e.g.ra.Ci),H(a)==e.g.L.ac.jb){e.log.wa(a.va,B(a,"Request complete"));a.fb=!1;try{if(a.Ae())a.dispatchEvent(e.g.ra.jb),a.dispatchEvent(e.g.ra.Di);else{var c;try{c=H(a)>e.g.L.ac.fg?a.F.statusText:""}catch(d){e.log.wa(a.va,"Can not get status: "+d.message),c=""}a.rc=c+" ["+
|
|
I(a)+"]";E(a)}}finally{F(a)}}},F=function(a,c){if(a.F){D(a);var d=a.F,f=a.md[e.g.L.Hd.qg]?e.ug:null;a.F=null;a.md=null;c||a.dispatchEvent(e.g.ra.Qb);try{d.onreadystatechange=f}catch(g){e.log.error(a.va,"Problem encountered resetting onreadystatechange: "+g.message)}}},D=function(a){a.F&&a.pd&&(a.F[e.g.t.we]=null);e.aa(a.od)&&(e.X.clear(a.od),a.od=null)};e.g.t.prototype.Ae=function(){var a=I(this),c;if(!(c=e.g.$a.Ae(a))){if(a=0===a)a=e.uri.e.vi(String(this.ld)),a=!e.g.t.ui.test(a);c=a}return c};
|
|
var H=function(a){return a.F?a.F.readyState:e.g.L.ac.ij},I=function(a){try{return H(a)>e.g.L.ac.fg?a.F.status:-1}catch(c){return e.log.cf(a.va,"Can not get status: "+c.message),-1}};e.g.t.prototype.dg=function(){try{return this.F?this.F.responseText:""}catch(a){return e.log.wa(this.va,"Can not get responseText: "+a.message),""}};var B=function(a,c){return c+" ["+a.Of+" "+a.ld+" "+I(a)+"]"};e.debug.ha.ei(function(a){e.g.t.prototype.Oc=a(e.g.t.prototype.Oc)});e.m=function(a,c){var d;a instanceof e.m?(this.Ha=e.W(c)?c:a.Ha,J(this,a.vc()),K(this,a.wd()),L(this,a.uc()),M(this,a.vd()),N(this,a.Sb()),O(this,a.ag().ea()),P(this,a.ud())):a&&(d=e.uri.e.split(String(a)))?(this.Ha=!!c,J(this,d[e.uri.e.G.Ac]||"",!0),K(this,d[e.uri.e.G.Ie]||"",!0),L(this,d[e.uri.e.G.zb]||"",!0),M(this,d[e.uri.e.G.Ab]),N(this,d[e.uri.e.G.Je]||"",!0),O(this,d[e.uri.e.G.Ke]||"",!0),P(this,d[e.uri.e.G.Zf]||"",!0)):(this.Ha=!!c,this.Ua=new e.m.oa(null,0,this.Ha))};e.m.yk=!1;e.m.$i=e.uri.e.hg.gg;
|
|
b=e.m.prototype;b.ic="";b.kf="";b.Cc="";b.Ud=null;b.Td="";b.hf="";b.Kl=!1;b.Ha=!1;b.toString=function(){var a=[],c=this.vc();c&&a.push(e.m.Fc(c,e.m.jg),":");if(c=this.uc()){a.push("//");var d=this.wd();d&&a.push(e.m.Fc(d,e.m.jg),"@");a.push(e.c.wc(c));c=this.vd();null!=c&&a.push(":",String(c))}if(c=this.Sb())this.Cc&&"/"!=c.charAt(0)&&a.push("/"),a.push(e.m.Fc(c,"/"==c.charAt(0)?e.m.Ki:e.m.Mi));(c=this.Ua.toString())&&a.push("?",c);(c=this.ud())&&a.push("#",e.m.Fc(c,e.m.Li));return a.join("")};
|
|
b.vh=function(a){var c=this.ea(),d=!!a.ic;d?J(c,a.vc()):d=!!a.kf;d?K(c,a.wd()):d=!!a.Cc;d?L(c,a.uc()):d=null!=a.Ud;var f=a.Sb();if(d)M(c,a.vd());else if(d=!!a.Td){if("/"!=f.charAt(0))if(this.Cc&&!this.Td)f="/"+f;else{var g=c.Sb().lastIndexOf("/");-1!=g&&(f=c.Sb().substr(0,g+1)+f)}f=e.m.jj(f)}d?N(c,f):d=""!==a.Ua.toString();d?O(c,e.m.hc(a.Ua.toString())):d=!!a.hf;d&&P(c,a.ud());return c};b.ea=function(){return new e.m(this)};b.vc=function(){return this.ic};
|
|
var J=function(a,c,d){Q(a);a.ic=d?e.m.hc(c):c;a.ic&&(a.ic=a.ic.replace(/:$/,""))};e.m.prototype.wd=function(){return this.kf};var K=function(a,c,d){Q(a);a.kf=d?e.m.hc(c):c};e.m.prototype.uc=function(){return this.Cc};var L=function(a,c,d){Q(a);a.Cc=d?e.m.hc(c):c};e.m.prototype.vd=function(){return this.Ud};var M=function(a,c){Q(a);if(c){c=Number(c);if(isNaN(c)||0>c)throw Error("Bad port number "+c);a.Ud=c}else a.Ud=null};e.m.prototype.Sb=function(){return this.Td};
|
|
var N=function(a,c,d){Q(a);a.Td=d?e.m.hc(c):c},O=function(a,c,d){Q(a);c instanceof e.m.oa?(a.Ua=c,a.Ua.uf(a.Ha)):(d||(c=e.m.Fc(c,e.m.wk)),a.Ua=new e.m.oa(c,0,a.Ha))};e.m.prototype.ag=function(){return this.Ua};e.m.prototype.ud=function(){return this.hf};var P=function(a,c,d){Q(a);a.hf=d?e.m.hc(c):c};e.m.prototype.Ll=function(){Q(this);var a=e.m.$i,c=e.c.bg();Q(this);this.Ua.set(a,c);return this};var Q=function(a){if(a.Kl)throw Error("Tried to modify a read-only Uri");};
|
|
e.m.prototype.uf=function(a){this.Ha=a;this.Ua&&this.Ua.uf(a);return this};e.m.parse=function(a,c){return a instanceof e.m?a.ea():new e.m(a,c)};e.m.create=function(a,c,d,f,g,h,k,l){l=new e.m(null,l);a&&J(l,a);c&&K(l,c);d&&L(l,d);f&&M(l,f);g&&N(l,g);h&&O(l,h);k&&P(l,k);return l};e.m.vh=function(a,c){a instanceof e.m||(a=e.m.parse(a));c instanceof e.m||(c=e.m.parse(c));return a.vh(c)};
|
|
e.m.jj=function(a){if(".."==a||"."==a)return"";if(e.c.contains(a,"./")||e.c.contains(a,"/.")){var c=e.c.xd(a,"/");a=a.split("/");for(var d=[],f=0;f<a.length;){var g=a[f++];"."==g?c&&f==a.length&&d.push(""):".."==g?((1<d.length||1==d.length&&""!=d[0])&&d.pop(),c&&f==a.length&&d.push("")):(d.push(g),c=!0)}return d.join("/")}return a};e.m.hc=function(a){return a?decodeURIComponent(a):""};e.m.Fc=function(a,c){return e.p(a)?encodeURI(a).replace(c,e.m.vk):null};
|
|
e.m.vk=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};e.m.jg=/[#\/\?@]/g;e.m.Mi=/[\#\?:]/g;e.m.Ki=/[\#\?]/g;e.m.wk=/[\#\?@]/g;e.m.Li=/#/g;e.m.Hl=function(a,c){var d=e.uri.e.split(a),f=e.uri.e.split(c);return d[e.uri.e.G.zb]==f[e.uri.e.G.zb]&&d[e.uri.e.G.Ab]==f[e.uri.e.G.Ab]};e.m.oa=function(a,c,d){this.Aa=a||null;this.Ha=!!d};
|
|
var S=function(a){if(!a.Y&&(a.Y=new e.n.Z,a.Q=0,a.Aa))for(var c=a.Aa.split("&"),d=0;d<c.length;d++){var f=c[d].indexOf("="),g=null,h=null;0<=f?(g=c[d].substring(0,f),h=c[d].substring(f+1)):g=c[d];g=e.c.Ad(g);g=R(a,g);a.add(g,h?e.c.Ad(h):"")}};e.m.oa.gq=function(a,c,d){c=e.n.ia(a);if("undefined"==typeof c)throw Error("Keys are undefined");d=new e.m.oa(null,0,d);a=e.n.P(a);for(var f=0;f<c.length;f++){var g=c[f],h=a[f];e.isArray(h)?T(d,g,h):d.add(g,h)}return d};
|
|
e.m.oa.fq=function(a,c,d,f){if(a.length!=c.length)throw Error("Mismatched lengths for keys/values");d=new e.m.oa(null,0,f);for(f=0;f<a.length;f++)d.add(a[f],c[f]);return d};b=e.m.oa.prototype;b.Y=null;b.Q=null;b.Ca=function(){S(this);return this.Q};b.add=function(a,c){S(this);this.Aa=null;a=R(this,a);var d=this.Y.get(a);d||this.Y.set(a,d=[]);d.push(c);this.Q++;return this};b.remove=function(a){S(this);a=R(this,a);return this.Y.gb(a)?(this.Aa=null,this.Q-=this.Y.get(a).length,this.Y.remove(a)):!1};
|
|
b.clear=function(){this.Y=this.Aa=null;this.Q=0};b.ma=function(){S(this);return 0==this.Q};b.gb=function(a){S(this);a=R(this,a);return this.Y.gb(a)};b.cc=function(a){var c=this.P();return e.a.contains(c,a)};b.ia=function(){S(this);for(var a=this.Y.P(),c=this.Y.ia(),d=[],f=0;f<c.length;f++)for(var g=a[f],h=0;h<g.length;h++)d.push(c[f]);return d};
|
|
b.P=function(a){S(this);var c=[];if(e.p(a))this.gb(a)&&(c=e.a.concat(c,this.Y.get(R(this,a))));else{a=this.Y.P();for(var d=0;d<a.length;d++)c=e.a.concat(c,a[d])}return c};b.set=function(a,c){S(this);this.Aa=null;a=R(this,a);this.gb(a)&&(this.Q-=this.Y.get(a).length);this.Y.set(a,[c]);this.Q++;return this};b.get=function(a,c){var d=a?this.P(a):[];return e.m.yk?0<d.length?d[0]:c:0<d.length?String(d[0]):c};var T=function(a,c,d){a.remove(c);0<d.length&&(a.Aa=null,a.Y.set(R(a,c),e.a.ea(d)),a.Q+=d.length)};
|
|
e.m.oa.prototype.toString=function(){if(this.Aa)return this.Aa;if(!this.Y)return"";for(var a=[],c=this.Y.ia(),d=0;d<c.length;d++)for(var f=c[d],g=e.c.wc(f),f=this.P(f),h=0;h<f.length;h++){var k=g;""!==f[h]&&(k+="="+e.c.wc(f[h]));a.push(k)}return this.Aa=a.join("&")};e.m.oa.prototype.ea=function(){var a=new e.m.oa;a.Aa=this.Aa;this.Y&&(a.Y=this.Y.ea(),a.Q=this.Q);return a};var R=function(a,c){var d=String(c);a.Ha&&(d=d.toLowerCase());return d};
|
|
e.m.oa.prototype.uf=function(a){a&&!this.Ha&&(S(this),this.Aa=null,e.n.forEach(this.Y,function(a,d){var f=d.toLowerCase();d!=f&&(this.remove(d),T(this,f,a))},this));this.Ha=a};e.m.oa.prototype.extend=function(a){for(var c=0;c<arguments.length;c++)e.n.forEach(arguments[c],function(a,c){this.add(c,a)},this)};var U={data:{}};U.data.Jd=null;U.data.lc=null;U.data.w=!1;U.data.mg=0;U.data.Ek="/api";U.data.Fk="https://earthengine.googleapis.com";U.data.v=function(a,c){e.Ra(a)?U.data.Jd=a:U.data.w||(U.data.Jd=U.data.Ek);e.Ra(c)?U.data.lc=c:U.data.w||(U.data.lc=U.data.Fk);U.data.w=!0};U.data.reset=function(){U.data.Jd=null;U.data.lc=null;U.data.w=!1};U.data.Nr=function(a){U.data.mg=a};
|
|
U.data.La=function(a,c){window&&window.console&&window.console.error&&window.console.error("ee.data.getInfo is DEPRECATED. Use ee.data.getValue() instead.");return U.data.Ma("/info",(new e.m.oa).add("id",a),c)};U.data.Fl=function(a,c){var d=U.data.cb(a);return U.data.Ma("/list",d,c)};U.data.Hf=function(a,c){a.json_format="v2";return U.data.Ma("/mapid",U.data.cb(a),c)};U.data.Kq=function(a,c,d,f){var g=Math.pow(2,f);c%=g;0>c&&(c+=g);return[U.data.lc,"map",a.mapid,f,c,d].join("/")+"?token="+a.token};
|
|
U.data.Ih=function(a,c){a.json_format="v2";return U.data.Ma("/value",U.data.cb(a),c)};U.data.Fh=function(a,c){a.json_format="v2";e.isArray(a.size)&&(a.size=a.size.join("x"));var d=U.data.cb(a).add("getid","1");return U.data.Ma("/thumb",d,c)};U.data.Hh=function(a){return U.data.lc+"/api/thumb?thumbid="+a.thumbid+"&token="+a.token};U.data.Eh=function(a,c){a.json_format="v2";return U.data.Ma("/download",U.data.cb(a),c)};
|
|
U.data.Gh=function(a){return U.data.lc+"/api/download?docid="+a.docid+"&token="+a.token};U.data.mh=function(a){return U.data.Ma("/algorithms",null,a,"GET")};U.data.eq=function(a,c,d){a={value:a,json_format:"v2"};void 0!==c&&(a.id=c);return U.data.Ma("/create",U.data.cb(a),d)};U.data.tr=function(a,c){var d={};e.aa(a)&&(d.count=a);return U.data.Ma("/newtaskid",U.data.cb(d),c)};
|
|
U.data.Jq=function(a,c){if(e.p(a))a=[a];else if(!e.isArray(a))throw Error("Invalid task_id: expected a string or an array of strings.");var d="/taskstatus?q="+a.join();return U.data.Ma(d,null,c,"GET")};U.data.Br=function(a,c,d){c.tid=a;return U.data.Ma("/prepare",U.data.cb(c),d)};U.data.$r=function(a,c,d){c.id=a;return U.data.Ma("/processingrequest",U.data.cb(c),d)};
|
|
U.data.Ma=function(a,c,d,f){function g(a,c){var d=!1;try{var f=e.ca.parse(a),g=f.data}catch(h){d=!0}var r=void 0;d||!("data"in f||"error"in f)?r="Malformed response: "+a:"error"in f&&(r=f.error.message);if(c)c(g,r);else{if(!r)return g;throw Error(r);}}U.data.v();f=f||"POST";a=U.data.Jd+a;c=c?c.toString():"";if(d)e.g.t.send(a,function(a){return g(a.target.dg(),d)},f,c,{"Content-Type":"application/x-www-form-urlencoded"},U.data.mg);else{var h=e.g.L();h.open(f,a,!1);h.setRequestHeader("Content-Type",
|
|
"application/x-www-form-urlencoded");h.send(c);return g(h.responseText,null)}};U.data.cb=function(a){var c=new e.m.oa,d;for(d in a)c.set(d,a[d]);return c};
|
|
U.data.Tr=function(a){var c=a||{};e.g.t.send=function(a,d,h,k){var l=new function(){};l.target={};l.target.dg=function(){return a in c?e.p(c[a])?c[a]:c[a](a,d,h,k):'{"error": {}}'};setTimeout(e.bind(d,l,l),0)};var d=function(){};d.prototype.open=function(a,c){this.url=c;this.method=a};d.prototype.setRequestHeader=function(){};d.prototype.send=function(a){this.responseText=this.url in c?e.p(c[this.url])?c[this.url]:c[this.url](this.url,this.method,a):e.ca.ka({data:{url:this.url,method:this.method,
|
|
data:a}})};e.g.L=function(){return new d}};e.N("ee.data",U.data);e.k(U.data,"getInfo",U.data.La);e.k(U.data,"getList",U.data.Fl);e.k(U.data,"getMapId",U.data.Hf);e.k(U.data,"getValue",U.data.Ih);e.k(U.data,"getThumbId",U.data.Fh);e.k(U.data,"makeThumbUrl",U.data.Hh);e.k(U.data,"getDownloadId",U.data.Eh);e.k(U.data,"makeDownloadUrl",U.data.Gh);U.ub=function(){};e.Pb={};e.Pb.il=function(){};e.Pb.oe=function(){this.la=Array(4);this.xk=Array(64);this.Zd=this.Uc=0;this.reset()};e.D(e.Pb.oe,e.Pb.il);e.Pb.oe.prototype.reset=function(){this.la[0]=1732584193;this.la[1]=4023233417;this.la[2]=2562383102;this.la[3]=271733878;this.Zd=this.Uc=0};
|
|
var V=function(a,c,d){d||(d=0);var f=Array(16);if(e.p(c))for(var g=0;16>g;++g)f[g]=c.charCodeAt(d++)|c.charCodeAt(d++)<<8|c.charCodeAt(d++)<<16|c.charCodeAt(d++)<<24;else for(g=0;16>g;++g)f[g]=c[d++]|c[d++]<<8|c[d++]<<16|c[d++]<<24;c=a.la[0];d=a.la[1];var g=a.la[2],h=a.la[3],k=0,k=c+(h^d&(g^h))+f[0]+3614090360&4294967295;c=d+(k<<7&4294967295|k>>>25);k=h+(g^c&(d^g))+f[1]+3905402710&4294967295;h=c+(k<<12&4294967295|k>>>20);k=g+(d^h&(c^d))+f[2]+606105819&4294967295;g=h+(k<<17&4294967295|k>>>15);k=d+
|
|
(c^g&(h^c))+f[3]+3250441966&4294967295;d=g+(k<<22&4294967295|k>>>10);k=c+(h^d&(g^h))+f[4]+4118548399&4294967295;c=d+(k<<7&4294967295|k>>>25);k=h+(g^c&(d^g))+f[5]+1200080426&4294967295;h=c+(k<<12&4294967295|k>>>20);k=g+(d^h&(c^d))+f[6]+2821735955&4294967295;g=h+(k<<17&4294967295|k>>>15);k=d+(c^g&(h^c))+f[7]+4249261313&4294967295;d=g+(k<<22&4294967295|k>>>10);k=c+(h^d&(g^h))+f[8]+1770035416&4294967295;c=d+(k<<7&4294967295|k>>>25);k=h+(g^c&(d^g))+f[9]+2336552879&4294967295;h=c+(k<<12&4294967295|k>>>
|
|
20);k=g+(d^h&(c^d))+f[10]+4294925233&4294967295;g=h+(k<<17&4294967295|k>>>15);k=d+(c^g&(h^c))+f[11]+2304563134&4294967295;d=g+(k<<22&4294967295|k>>>10);k=c+(h^d&(g^h))+f[12]+1804603682&4294967295;c=d+(k<<7&4294967295|k>>>25);k=h+(g^c&(d^g))+f[13]+4254626195&4294967295;h=c+(k<<12&4294967295|k>>>20);k=g+(d^h&(c^d))+f[14]+2792965006&4294967295;g=h+(k<<17&4294967295|k>>>15);k=d+(c^g&(h^c))+f[15]+1236535329&4294967295;d=g+(k<<22&4294967295|k>>>10);k=c+(g^h&(d^g))+f[1]+4129170786&4294967295;c=d+(k<<5&4294967295|
|
|
k>>>27);k=h+(d^g&(c^d))+f[6]+3225465664&4294967295;h=c+(k<<9&4294967295|k>>>23);k=g+(c^d&(h^c))+f[11]+643717713&4294967295;g=h+(k<<14&4294967295|k>>>18);k=d+(h^c&(g^h))+f[0]+3921069994&4294967295;d=g+(k<<20&4294967295|k>>>12);k=c+(g^h&(d^g))+f[5]+3593408605&4294967295;c=d+(k<<5&4294967295|k>>>27);k=h+(d^g&(c^d))+f[10]+38016083&4294967295;h=c+(k<<9&4294967295|k>>>23);k=g+(c^d&(h^c))+f[15]+3634488961&4294967295;g=h+(k<<14&4294967295|k>>>18);k=d+(h^c&(g^h))+f[4]+3889429448&4294967295;d=g+(k<<20&4294967295|
|
|
k>>>12);k=c+(g^h&(d^g))+f[9]+568446438&4294967295;c=d+(k<<5&4294967295|k>>>27);k=h+(d^g&(c^d))+f[14]+3275163606&4294967295;h=c+(k<<9&4294967295|k>>>23);k=g+(c^d&(h^c))+f[3]+4107603335&4294967295;g=h+(k<<14&4294967295|k>>>18);k=d+(h^c&(g^h))+f[8]+1163531501&4294967295;d=g+(k<<20&4294967295|k>>>12);k=c+(g^h&(d^g))+f[13]+2850285829&4294967295;c=d+(k<<5&4294967295|k>>>27);k=h+(d^g&(c^d))+f[2]+4243563512&4294967295;h=c+(k<<9&4294967295|k>>>23);k=g+(c^d&(h^c))+f[7]+1735328473&4294967295;g=h+(k<<14&4294967295|
|
|
k>>>18);k=d+(h^c&(g^h))+f[12]+2368359562&4294967295;d=g+(k<<20&4294967295|k>>>12);k=c+(d^g^h)+f[5]+4294588738&4294967295;c=d+(k<<4&4294967295|k>>>28);k=h+(c^d^g)+f[8]+2272392833&4294967295;h=c+(k<<11&4294967295|k>>>21);k=g+(h^c^d)+f[11]+1839030562&4294967295;g=h+(k<<16&4294967295|k>>>16);k=d+(g^h^c)+f[14]+4259657740&4294967295;d=g+(k<<23&4294967295|k>>>9);k=c+(d^g^h)+f[1]+2763975236&4294967295;c=d+(k<<4&4294967295|k>>>28);k=h+(c^d^g)+f[4]+1272893353&4294967295;h=c+(k<<11&4294967295|k>>>21);k=g+(h^
|
|
c^d)+f[7]+4139469664&4294967295;g=h+(k<<16&4294967295|k>>>16);k=d+(g^h^c)+f[10]+3200236656&4294967295;d=g+(k<<23&4294967295|k>>>9);k=c+(d^g^h)+f[13]+681279174&4294967295;c=d+(k<<4&4294967295|k>>>28);k=h+(c^d^g)+f[0]+3936430074&4294967295;h=c+(k<<11&4294967295|k>>>21);k=g+(h^c^d)+f[3]+3572445317&4294967295;g=h+(k<<16&4294967295|k>>>16);k=d+(g^h^c)+f[6]+76029189&4294967295;d=g+(k<<23&4294967295|k>>>9);k=c+(d^g^h)+f[9]+3654602809&4294967295;c=d+(k<<4&4294967295|k>>>28);k=h+(c^d^g)+f[12]+3873151461&4294967295;
|
|
h=c+(k<<11&4294967295|k>>>21);k=g+(h^c^d)+f[15]+530742520&4294967295;g=h+(k<<16&4294967295|k>>>16);k=d+(g^h^c)+f[2]+3299628645&4294967295;d=g+(k<<23&4294967295|k>>>9);k=c+(g^(d|~h))+f[0]+4096336452&4294967295;c=d+(k<<6&4294967295|k>>>26);k=h+(d^(c|~g))+f[7]+1126891415&4294967295;h=c+(k<<10&4294967295|k>>>22);k=g+(c^(h|~d))+f[14]+2878612391&4294967295;g=h+(k<<15&4294967295|k>>>17);k=d+(h^(g|~c))+f[5]+4237533241&4294967295;d=g+(k<<21&4294967295|k>>>11);k=c+(g^(d|~h))+f[12]+1700485571&4294967295;c=d+
|
|
(k<<6&4294967295|k>>>26);k=h+(d^(c|~g))+f[3]+2399980690&4294967295;h=c+(k<<10&4294967295|k>>>22);k=g+(c^(h|~d))+f[10]+4293915773&4294967295;g=h+(k<<15&4294967295|k>>>17);k=d+(h^(g|~c))+f[1]+2240044497&4294967295;d=g+(k<<21&4294967295|k>>>11);k=c+(g^(d|~h))+f[8]+1873313359&4294967295;c=d+(k<<6&4294967295|k>>>26);k=h+(d^(c|~g))+f[15]+4264355552&4294967295;h=c+(k<<10&4294967295|k>>>22);k=g+(c^(h|~d))+f[6]+2734768916&4294967295;g=h+(k<<15&4294967295|k>>>17);k=d+(h^(g|~c))+f[13]+1309151649&4294967295;
|
|
d=g+(k<<21&4294967295|k>>>11);k=c+(g^(d|~h))+f[4]+4149444226&4294967295;c=d+(k<<6&4294967295|k>>>26);k=h+(d^(c|~g))+f[11]+3174756917&4294967295;h=c+(k<<10&4294967295|k>>>22);k=g+(c^(h|~d))+f[2]+718787259&4294967295;g=h+(k<<15&4294967295|k>>>17);k=d+(h^(g|~c))+f[9]+3951481745&4294967295;a.la[0]=a.la[0]+c&4294967295;a.la[1]=a.la[1]+(g+(k<<21&4294967295|k>>>11))&4294967295;a.la[2]=a.la[2]+g&4294967295;a.la[3]=a.la[3]+h&4294967295};
|
|
e.Pb.oe.prototype.update=function(a,c){e.W(c)||(c=a.length);for(var d=c-64,f=this.xk,g=this.Uc,h=0;h<c;){if(0==g)for(;h<=d;)V(this,a,h),h+=64;if(e.p(a))for(;h<c;){if(f[g++]=a.charCodeAt(h++),64==g){V(this,f);g=0;break}}else for(;h<c;)if(f[g++]=a[h++],64==g){V(this,f);g=0;break}}this.Uc=g;this.Zd+=c};
|
|
var ba=function(){var a=U.B.Ee,c=Array((56>a.Uc?64:128)-a.Uc);c[0]=128;for(var d=1;d<c.length-8;++d)c[d]=0;for(var f=8*a.Zd,d=c.length-8;d<c.length;++d)c[d]=f&255,f/=256;a.update(c);c=Array(16);for(d=f=0;4>d;++d)for(var g=0;32>g;g+=8)c[f++]=a.la[d]>>>g&255;return c};U.B=function(a){this.Cd="__ee_hash__";this.Ge=!1!==a;this.Wb=[];this.kb={}};U.B.He=new e.ca.B;U.B.Ee=new e.Pb.oe;U.B.ja=function(a){return W(new U.B(!0),a)};U.B.toJSON=function(a){return U.B.He.ka(U.B.ja(a))};U.B.Ch=function(a){a=W(new U.B(!1),a);return"JSON"in window?window.JSON.stringify(a,null," "):U.B.He.ka(a)};
|
|
var W=function(a,c){var d=a.Dd(c);if(a.Ge){d=e.qa(d)&&"ValueRef"==d.type&&1==a.Wb.length?a.Wb[0][1]:{type:"CompoundValue",scope:a.Wb,value:d};a.Wb=[];for(var f in a.kb)delete a.kb[f].object[a.Cd];a.kb={}}return d};
|
|
U.B.prototype.Dd=function(a){if(!e.W(a))throw Error("Can't encode an undefined value.");var c,d=e.qa(a)?a[this.Cd]:null;if(this.Ge&&null!=d&&this.kb[d])return{type:"ValueRef",value:this.kb[d].name};if(null===a||e.ve(a)||e.aa(a)||e.p(a))return a;if(e.ri(a))return{type:"Date",value:Math.floor(1E3*a.getTime())};if(a instanceof U.ub){if(c=a.ja(e.bind(this.Dd,this)),!e.qa(c)||"ArgumentRef"==c.type)return c}else if(e.isArray(a))c=e.a.map(a,function(a){return this.Dd(a)},this);else if(e.qa(a)&&!e.ua(a))c=
|
|
e.object.map(a,function(a){if(!e.ua(a))return this.Dd(a)},this),e.object.remove(c,this.Cd),c={type:"Dictionary",value:c};else throw Error("Can't encode object: "+a);if(this.Ge){U.B.Ee.reset();U.B.Ee.update(U.B.He.ka(c));var d=ba(),f;this.kb[d]?f=this.kb[d].name:(f=String(this.Wb.length),this.Wb.push([f,c]),this.kb[d]={name:f,object:a});a[this.Cd]=d;return{type:"ValueRef",value:f}}return c};e.N("ee.Serializer",U.B);e.N("ee.Serializer.toJSON",U.B.toJSON);e.N("ee.Serializer.toReadableJSON",U.B.Ch);U.r=function(a,c){if(!(this instanceof U.r))return new U.r(a,c);this.ta=a;this.Pa=c};e.D(U.r,U.ub);b=U.r.prototype;b.La=function(a){return U.data.Ih({json:this.ka()},a)};b.ja=function(a){var c={},d;for(d in this.Pa)e.W(this.Pa[d])&&(c[d]=a(this.Pa[d]));c={type:"Invocation",arguments:c};a=a(this.ta);c[e.p(a)?"functionName":"function"]=a;return c};b.ka=function(){return U.B.toJSON(this)};b.toString=function(){return"ee."+this.name()+"("+U.B.Ch(this)+")"};b.name=function(){return"ComputedObject"};
|
|
e.N("ee.ComputedObject",U.r);e.k(U.r.prototype,"getInfo",U.r.prototype.La);e.k(U.r.prototype,"serialize",U.r.prototype.ka);e.k(U.r.prototype,"toString",U.r.prototype.toString);U.ba=function(){if(!(this instanceof U.ba))return new U.ba};e.D(U.ba,U.ub);U.ba.yf=e.K.Mg;U.ba.Nl=function(){U.ba.yf=U.Uk};U.ba.prototype.call=function(a){return this.apply(X(this,Array.prototype.slice.call(arguments,0)))};U.ba.prototype.apply=function(a){a=new U.r(this,ca(this,a));return U.ba.yf(a,this.Sa().returns)};
|
|
var ca=function(a,c){for(var d=a.Sa().args,f={},g={},h=0;h<d.length;h++){var k=d[h].name;if(k in c&&e.W(c[k]))f[k]=U.ba.yf(c[k],d[h].type);else if(!d[h].optional)throw Error("Required argument ("+k+") missing to function: "+a);g[k]=!0}var d=[],l;for(l in c)g[l]||d.push(l);if(0<d.length)throw Error("Unrecognized arguments ("+d+") to function: "+a);return f},X=function(a,c){var d=a.Sa().args;if(d.length<c.length)throw Error("Too many ("+c.length+") arguments to function: "+a);for(var f={},g=0;g<c.length;g++)f[d[g].name]=
|
|
c[g];return f};U.ba.prototype.toString=function(a,c){var d=this.Sa(),f=[];f.push(a||d.name);f.push("(");f.push(e.a.map(d.args.slice(1),function(a){return a.name}).join(", "));f.push(")\n");d.description&&(f.push("\n"),f.push(d.description),f.push("\n"));if(d.args.length){f.push("\nArgs:\n");for(var g=0;g<d.args.length;g++){c&&0==g?f.push(" this:"):f.push("\n ");var h=d.args[g];f.push(h.name);f.push(" (");f.push(h.type);h.optional&&f.push(", optional");f.push("): ");f.push(h.description)}}return f.join("")};
|
|
U.ba.prototype.ka=function(){return U.B.toJSON(this)};U.C={};U.C.uh="__EE_VAR_TYPE";U.C.Ff={};U.C.Og=function(){U.C.Ff=U};U.C.Ck=function(a){return a in U.C.Ff?U.C.Ff[a]:null};U.C.Ri=function(a){return a.prototype instanceof U.r?a.prototype.name.call(null):a==Number?"Number":a==String?"String":a==Array?"Array":a==Date?"Date":"Object"};
|
|
U.C.tg=function(a,c){if(c==a)return!0;switch(a){case "EEObject":return"Image"==c||"Feature"==c||"Collection"==c||"EECollection"==c||"ImageCollection"==c||"FeatureCollection"==c;case "FeatureCollection":case "EECollection":case "Collection":return"Collection"==c||"EECollection"==c||"ImageCollection"==c||"FeatureCollection"==c;case "Object":return!0;default:return!1}};U.C.aa=function(a){return e.aa(a)||U.C.rd(a,Number)};U.C.p=function(a){return e.p(a)||U.C.rd(a,String)};
|
|
U.C.isArray=function(a){return e.isArray(a)||U.C.rd(a,Array)};U.C.rd=function(a,c){if(a instanceof U.ub){var d=a[U.C.uh];return d&&(d==c||d.prototype instanceof c)}return!1};U.i=function(a,c){if(!e.W(c))return U.i.qc(a);if(!(this instanceof U.i))return new U.i(a,c);this.Zb=e.object.Lg(c);this.Zb.name=a};e.D(U.i,U.ba);U.i.O=function(a,c){return U.ba.prototype.call.apply(U.i.qc(a),Array.prototype.slice.call(arguments,1))};U.i.$b=function(a,c){return U.i.qc(a).apply(c)};U.i.prototype.ja=function(){return this.Zb.name};U.i.prototype.Sa=function(){return this.Zb};U.i.Eb=null;U.i.af={};U.i.Oj=function(){U.i.v();return e.object.map(U.i.Eb,function(a){return a.Sa()})};
|
|
U.i.Ni=function(){U.i.v();return e.object.filter(U.i.Eb,function(a,c){return!U.i.af[c]})};U.i.qc=function(a){U.i.v();var c=U.i.Eb[a];if(!c)throw Error("Unknown built-in function name: "+a);return c};U.i.v=function(a,c){if(!U.i.Eb){var d=function(d,g){g?c&&c(Error(g)):(U.i.Eb=e.object.map(d,function(a,c){a.returns=a.returns.replace(/<.*>/,"");for(var d=0;d<a.args.length;d++)a.args[d].type=a.args[d].type.replace(/<.*>/,"");return new U.i(c,a)}),a&&a())};a?U.data.mh(d):d(U.data.mh())}};
|
|
U.i.reset=function(){U.i.Eb=null;U.i.af={}};
|
|
U.i.Da=function(a,c,d,f){U.i.v();var g=f||"";e.object.forEach(U.i.Eb,function(f,k){var l=k.split(".");if(2==l.length&&l[0]==c){var n=g+l[1],q=f.Sa();U.i.af[k]=!0;var v=!1;q.args.length&&(l=q.args[0].type,v="Object"!=l&&U.C.tg(l,d));l=v?a.prototype:a;n in l&&(n+="_");l[n]=function(a){var c=Array.prototype.slice.call(arguments,0);if(1==c.length&&c[0].constructor==Object){if(c=e.object.ea(c[0]),v){var d=q.args[0].name;if(d in c)throw Error("Named args for "+n+" can't contain keyword "+d);c[d]=this}}else c=
|
|
X(f,v?[this].concat(c):c);return f.apply(c)};l[n].toString=e.bind(f.toString,f,n,v);l[n].signature=q}})};U.i.Ya=function(a){var c=function(a){for(var c in a)e.ua(a[c])&&a[c].signature&&delete a[c]};c(a);c(a.prototype)};U.Fa=function(a,c){if(!(this instanceof U.Fa))return new U.Fa(a,c);for(var d=[],f=a.args,g=0;g<f.length;g++){var h=f[g];d.push(U.Fa.Tf(U.C.Ck(h.type),h.name))}this.rg=c.apply(null,d);this.Zb=U.Fa.Dk(a,d,this.rg)};e.D(U.Fa,U.ba);U.Fa.prototype.ja=function(a){return{type:"Function",argumentNames:e.a.map(this.Zb.args,function(a){return a.name}),body:a(this.rg)}};U.Fa.prototype.Sa=function(){return this.Zb};
|
|
U.Fa.Tf=function(a,c){var d=function(){};a=a||Object;d.prototype=a.prototype instanceof U.ub?a.prototype:U.ub.prototype;d=new d;d.lb=c;d.ja=function(){return{type:"ArgumentRef",value:this.lb}};d[U.C.uh]=a;return d};
|
|
U.Fa.Dk=function(a,c,d){for(var f=[],g=0;g<c.length;g++)e.pc(c[g].lb)&&f.push(g);if(0==f.length)return a;var h=function(a){var c=0;e.qa(a)&&!e.ua(a)&&("ArgumentRef"!=a.type||e.pc(a.value)?e.object.forEach(a,function(a){c+=h(a)}):c++);return c},g=U.B.ja(d);d="_MAPPING_VAR_"+h(g)+"_";for(g=0;g<f.length;g++){var k=f[g],l=d+g;c[k].lb=l;a.args[k].name=l}return a};U.d=function(a){if(!(this instanceof U.d))return new U.d(a);if(a instanceof U.d)return a;U.d.v();if(e.isArray(a)){if(0==a.length)throw Error("Empty list specified for ee.Filter().");if(1==a.length)return new U.d(a[0]);U.r.call(this,new U.i("Filter.and"),{filters:a});this.xc=a}else if(a instanceof U.r)U.r.call(this,a.ta,a.Pa),this.xc=[a];else{if(e.W(a))throw Error("Invalid argument specified for ee.Filter(): "+a);U.r.call(this,null,null);this.xc=[]}};e.D(U.d,U.r);U.d.w=!1;
|
|
U.d.v=function(){U.d.w||(U.i.Da(U.d,"Filter","Filter"),U.d.w=!0)};U.d.reset=function(){U.i.Ya(U.d);U.d.w=!1};U.d.Yf={equals:"equals",less_than:"lessThan",greater_than:"greaterThan",contains:"stringContains",starts_with:"stringStartsWith",ends_with:"stringEndsWith"};U.d.prototype.length=function(){return this.xc.length};var Y=function(a,c){var d=a.xc.slice(0);c instanceof U.d?e.a.extend(d,c.xc):c instanceof Array?e.a.extend(d,c):d.push(c);return new U.d(d)};
|
|
U.d.prototype.ib=function(){return U.i.O("Filter.not",this)};U.d.nk=function(a,c,d){c=c.toLowerCase();var f=!1;e.c.xd(c,"not_")&&(f=!0,c=c.substring(4));if(!(c in U.d.Yf))throw Error("Unknown filtering operator: "+c);a=U.i.O("Filter."+U.d.Yf[c],a,d);return f?a.ib():a};U.d.Xc=function(a,c){return U.i.O("Filter.equals",a,c)};U.d.fe=function(a,c){return U.d.Xc(a,c).ib()};U.d.Zc=function(a,c){return U.i.O("Filter.lessThan",a,c)};U.d.ce=function(a,c){return U.d.Zc(a,c).ib()};
|
|
U.d.Yc=function(a,c){return U.i.O("Filter.greaterThan",a,c)};U.d.ee=function(a,c){return U.d.Yc(a,c).ib()};U.d.contains=function(a,c){return U.i.O("Filter.stringContains",a,c)};U.d.ge=function(a,c){return U.d.contains(a,c).ib()};U.d.$c=function(a,c){return U.i.O("Filter.stringStartsWith",a,c)};U.d.ie=function(a,c){return U.d.$c(a,c).ib()};U.d.Wc=function(a,c){return U.i.O("Filter.stringEndsWith",a,c)};U.d.he=function(a,c){return U.d.Wc(a,c).ib()};
|
|
U.d.ed=function(a){var c=Array.prototype.slice.call(arguments);return U.i.O("Filter.and",c)};U.d.di=function(a){var c=Array.prototype.slice.call(arguments);return U.i.O("Filter.or",c)};U.d.dd=function(a,c){e.W(c)||(c=0xffffffffffff);var d=U.i.O("DateRange",a,c);return U.i.$b("Filter.dateRangeContains",{leftValue:d,rightField:"system:time_start"})};U.d.de=function(a,c,d,f){return U.i.$b("Filter.listContains",{leftField:d,rightValue:f,rightField:a,leftValue:c})};
|
|
U.d.cd=function(a,c){return U.i.$b("Filter.intersects",{leftField:".all",rightValue:U.i.O("Feature",a),maxError:c})};b=U.d.prototype;b.Xc=function(){return Y(this,U.d.Xc.apply(null,[].slice.call(arguments)))};b.fe=function(){return Y(this,U.d.fe.apply(null,[].slice.call(arguments)))};b.Zc=function(){return Y(this,U.d.Zc.apply(null,[].slice.call(arguments)))};b.ce=function(){return Y(this,U.d.ce.apply(null,[].slice.call(arguments)))};b.Yc=function(){return Y(this,U.d.Yc.apply(null,[].slice.call(arguments)))};
|
|
b.ee=function(){return Y(this,U.d.ee.apply(null,[].slice.call(arguments)))};b.contains=function(){return Y(this,U.d.contains.apply(null,[].slice.call(arguments)))};b.ge=function(){return Y(this,U.d.ge.apply(null,[].slice.call(arguments)))};b.$c=function(){return Y(this,U.d.$c.apply(null,[].slice.call(arguments)))};b.ie=function(){return Y(this,U.d.ie.apply(null,[].slice.call(arguments)))};b.Wc=function(){return Y(this,U.d.Wc.apply(null,[].slice.call(arguments)))};
|
|
b.he=function(){return Y(this,U.d.he.apply(null,[].slice.call(arguments)))};b.ed=function(){return Y(this,U.d.ed.apply(null,[].slice.call(arguments)))};b.dd=function(){return Y(this,U.d.dd.apply(null,[].slice.call(arguments)))};b.de=function(){return Y(this,U.d.de.apply(null,[].slice.call(arguments)))};b.cd=function(){return Y(this,U.d.cd.apply(null,[].slice.call(arguments)))};b.name=function(){return"Filter"};e.N("ee.Filter",U.d);e.k(U.d.prototype,"length",U.d.prototype.length);
|
|
e.k(U.d.prototype,"and",U.d.prototype.ed);e.k(U.d.prototype,"eq",U.d.prototype.Xc);e.k(U.d.prototype,"neq",U.d.prototype.fe);e.k(U.d.prototype,"lt",U.d.prototype.Zc);e.k(U.d.prototype,"gte",U.d.prototype.ce);e.k(U.d.prototype,"gt",U.d.prototype.Yc);e.k(U.d.prototype,"lte",U.d.prototype.ee);e.k(U.d.prototype,"contains",U.d.prototype.contains);e.k(U.d.prototype,"not_contains",U.d.prototype.ge);e.k(U.d.prototype,"starts_with",U.d.prototype.$c);e.k(U.d.prototype,"not_starts_with",U.d.prototype.ie);
|
|
e.k(U.d.prototype,"ends_with",U.d.prototype.Wc);e.k(U.d.prototype,"not_ends_with",U.d.prototype.he);e.k(U.d.prototype,"bounds",U.d.prototype.cd);e.k(U.d.prototype,"inList",U.d.prototype.de);e.k(U.d.prototype,"date",U.d.prototype.dd);e.k(U.d.prototype,"serialize",U.d.prototype.ka);e.k(U.d.prototype,"toString",U.d.prototype.toString);e.k(U.d,"and",U.d.ed);e.k(U.d,"or",U.d.di);e.k(U.d,"eq",U.d.Xc);e.k(U.d,"neq",U.d.fe);e.k(U.d,"lt",U.d.Zc);e.k(U.d,"gte",U.d.ce);e.k(U.d,"gt",U.d.Yc);e.k(U.d,"lte",U.d.ee);
|
|
e.k(U.d,"contains",U.d.contains);e.k(U.d,"not_contains",U.d.ge);e.k(U.d,"starts_with",U.d.$c);e.k(U.d,"not_starts_with",U.d.ie);e.k(U.d,"ends_with",U.d.Wc);e.k(U.d,"not_ends_with",U.d.he);e.k(U.d,"bounds",U.d.cd);e.k(U.d,"inList",U.d.de);e.k(U.d,"date",U.d.dd);U.u=function(a,c){U.r.call(this,a,c);U.u.v()};e.D(U.u,U.r);U.u.w=!1;U.u.v=function(){U.u.w||(U.i.Da(U.u,"Collection","Collection"),U.i.Da(U.u,"AggregateFeatureCollection","Collection","aggregate_"),U.u.w=!0)};U.u.reset=function(){U.i.Ya(U.u);U.u.w=!1};b=U.u.prototype;b.filter=function(a){if(!a)throw Error("Empty filters.");return Z(this,U.i.O("Collection.filter",this,a))};b.Al=function(a,c,d){return this.filter(U.d.nk(a,c,d))};b.yl=function(a){return this.filter(U.d.cd(a))};
|
|
b.zl=function(a,c){return this.filter(U.d.dd(a,c))};b.Ye=function(a,c,d){return Z(this,U.i.O("Collection.limit",this,a,c,d))};b.sort=function(a,c){return Z(this,U.i.O("Collection.limit",this,void 0,a,c))};var Z=function(a,c){return c instanceof a.constructor?c:new a.constructor(c)};U.u.prototype.name=function(){return"Collection"};
|
|
var $=function(a,c,d,f,g,h){if(e.ua(d)){if(f)throw Error("Can't use dynamicArgs with a mapped JS function.");c=U.C.Ri(c);d=new U.Fa({name:"",returns:c,args:[{name:null,type:c}]},d)}else if(e.p(d))d=new U.i(d);else if(!(d instanceof U.ba))throw Error("Can't map non-callable object: "+d);c={collection:a,baseAlgorithm:d};f?c.dynamicArgs=f:(d=d.Sa().args[0].name,c.dynamicArgs=e.object.create(d,".all"));g&&(c.constantArgs=g);h&&(c.destination=h);return Z(a,U.i.$b("Collection.map",c))};
|
|
U.u.prototype.map=function(a,c,d,f){return $(this,U.r,a,c,d,f)};U.u.cg=function(a,c){e.object.forEach(c.prototype,function(d,f){e.ua(d)&&d.signature&&(a.prototype["map_"+f]=function(){var a=null;U.C.tg("EEObject",d.signature.returns)||(a=f);var h=Array.prototype.slice.call(arguments,0);return $(this,c,function(a){return d.apply(a,h)},null,null,a)})})};e.N("ee.Collection",U.u);e.k(U.u.prototype,"filter",U.u.prototype.filter);e.k(U.u.prototype,"filterMetadata",U.u.prototype.Al);
|
|
e.k(U.u.prototype,"filterBounds",U.u.prototype.yl);e.k(U.u.prototype,"filterDate",U.u.prototype.zl);e.k(U.u.prototype,"limit",U.u.prototype.Ye);e.k(U.u.prototype,"sort",U.u.prototype.sort);U.f=function(a,c,d){if(!(this instanceof U.f))return new U.f(a,c,d);U.f.v();var f=e.Ra(c)||e.Ra(d);if(a instanceof U.r&&Boolean(a.ta)){if(f)throw Error("Setting the CRS or geodesic on a computed Geometry is not suported. Use Geometry.transform().");U.r.call(this,a.ta,a.Pa)}else{a instanceof U.f&&(a=a.ja());if(3<arguments.length)throw Error("The Geometry constructor takes at most 3 arguments ("+arguments.length+" given)");if(!U.f.Xf(a))throw Error("Invalid GeoJSON geometry: "+JSON.stringify(a));U.r.call(this,
|
|
null,null);this.Wf=a.type;this.pi=a.coordinates||null;this.qi=a.geometries||null;if(e.Ra(c))this.Ce=c;else if("crs"in a)if(e.qa(a.crs)&&"name"==a.crs.type&&e.qa(a.crs.properties)&&e.p(a.crs.properties.name))this.Ce=a.crs.properties.name;else throw Error("Invalid CRS declaration in GeoJSON: "+(new e.ca.B).ka(a.crs));this.Be=d;!e.W(d)&&"geodesic"in a&&(this.Be=Boolean(a.geodesic))}};e.D(U.f,U.r);U.f.w=!1;U.f.v=function(){U.f.w||(U.i.Da(U.f,"Geometry","Geometry"),U.f.w=!0)};
|
|
U.f.reset=function(){U.i.Ya(U.f);U.f.w=!1};U.f.Mb=function(a,c){if(!(this instanceof U.f.Mb))return U.f.Fb(U.f.Mb,arguments);if(2<arguments.length)throw Error("The Geometry.Point constructor takes at most 2 arguments ("+arguments.length+" given)");if(1==arguments.length&&e.isArray(arguments[0])&&2==arguments[0].length){var d=arguments[0];a=d[0];c=d[1]}U.f.call(this,{type:"Point",coordinates:[a,c]})};e.D(U.f.Mb,U.f);
|
|
U.f.Jb=function(a){if(!(this instanceof U.f.Jb))return U.f.Fb(U.f.Jb,arguments);U.f.call(this,{type:"MultiPoint",coordinates:U.f.fc(a,2,arguments)})};e.D(U.f.Jb,U.f);U.f.Nb=function(a,c,d,f){if(!(this instanceof U.f.Nb))return new U.f.Nb(a,c,d,f);if(4<arguments.length)throw Error("The Geometry.Rectangle constructor takes at most 4 arguments ("+arguments.length+" given)");if(e.isArray(a)){var g=a;a=g[0];c=g[1];d=g[2];f=g[3]}U.f.call(this,{type:"Polygon",coordinates:[[[a,f],[a,c],[d,c],[d,f]]]})};
|
|
e.D(U.f.Nb,U.f);U.f.Hb=function(a){if(!(this instanceof U.f.Hb))return U.f.Fb(U.f.Hb,arguments);U.f.call(this,{type:"LineString",coordinates:U.f.fc(a,2,arguments)})};e.D(U.f.Hb,U.f);U.f.Ib=function(a){if(!(this instanceof U.f.Ib))return U.f.Fb(U.f.Ib,arguments);U.f.call(this,{type:"LinearRing",coordinates:U.f.fc(a,2,arguments)})};e.D(U.f.Ib,U.f);U.f.bd=function(a){if(!(this instanceof U.f.bd))return U.f.Fb(U.f.bd,arguments);U.f.call(this,{type:"MultiLineString",coordinates:U.f.fc(a,3,arguments)})};
|
|
e.D(U.f.bd,U.f);U.f.Lb=function(a){if(!(this instanceof U.f.Lb))return U.f.Fb(U.f.Lb,arguments);U.f.call(this,{type:"Polygon",coordinates:U.f.fc(a,3,arguments)})};e.D(U.f.Lb,U.f);U.f.Kb=function(a){if(!(this instanceof U.f.Kb))return U.f.Fb(U.f.Kb,arguments);U.f.call(this,{type:"MultiPolygon",coordinates:U.f.fc(a,4,arguments)})};e.D(U.f.Kb,U.f);b=U.f.prototype;
|
|
b.ja=function(a){if(this.ta){if(!a)throw Error("Must specify an encode function when encoding a computed geometry.");return U.r.prototype.ja.call(this,a)}a={type:this.Wf};"GeometryCollection"==this.Wf?a.geometries=this.qi:a.coordinates=this.pi;e.Ra(this.Ce)&&(a.crs={type:"name",properties:{name:this.Ce}});e.Ra(this.Be)&&(a.geodesic=this.Be);return a};b.oh=function(){if(this.ta)throw Error("Can't convert a computed Geometry to GeoJSON. Use getInfo() instead.");return this.ja()};
|
|
b.fi=function(){if(this.ta)throw Error("Can't convert a computed Geometry to GeoJSON. Use getInfo() instead.");return(new e.ca.B).ka(this.oh())};b.ka=function(){return U.B.toJSON(this)};b.toString=function(){return"ee.Geometry("+this.fi()+")"};
|
|
U.f.Xf=function(a){var c=a.type;if("GeometryCollection"==c){c=a.geometries;if(!e.isArray(c))return!1;for(a=0;a<c.length;a++)if(!U.f.Xf(c[a]))return!1;return!0}a=U.f.Yd(a.coordinates);return"Point"==c&&1==a||"MultiPoint"==c&&2==a||"LineString"==c&&2==a||"LinearRing"==c&&2==a||"MultiLineString"==c&&3==a||"Polygon"==c&&3==a||"MultiPolygon"==c&&4==a};
|
|
U.f.Yd=function(a){if(!e.isArray(a))return-1;if(e.isArray(a[0])){for(var c=U.f.Yd(a[0]),d=1;d<a.length;d++)if(U.f.Yd(a[d])!=c)return-1;return c+1}for(d=0;d<a.length;d++)if(!e.aa(a[d]))return-1;return 0==a.length%2?1:-1};U.f.sk=function(a){if("number"==typeof a[0]){if(0!=a.length%2)throw Error("Invalid number of coordinates: "+a.length);for(var c=[],d=0;d<a.length;d+=2)c.push([a[d],a[d+1]]);a=c}return a};
|
|
U.f.fc=function(a,c,d){if(2>c||4<c)throw Error("Unexpected nesting level.");!e.isArray(a)&&d&&(a=U.f.sk(Array.prototype.slice.call(d)));d=a;for(var f=0;e.isArray(d);)d=d[0],f++;for(;f<c;)a=[a],f++;if(U.f.Yd(a)!=c)throw Error("Invalid geometry");return a};U.f.Fb=function(a,c){var d=function(){};d.prototype=a.prototype;var d=new d,f=a.apply(d,c);return void 0!==f?f:d};U.f.prototype.name=function(){return"Geometry"};e.N("ee.Geometry",U.f);e.k(U.f,"Point",U.f.Mb);e.k(U.f,"MultiPoint",U.f.Jb);
|
|
e.k(U.f,"Rectangle",U.f.Nb);e.k(U.f,"LineString",U.f.Hb);e.k(U.f,"LinearRing",U.f.Ib);e.k(U.f,"MultiLineString",U.f.bd);e.k(U.f,"Polygon",U.f.Lb);e.k(U.f,"MultiPolygon",U.f.Kb);e.k(U.f.prototype,"toGeoJSON",U.f.prototype.oh);e.k(U.f.prototype,"toGeoJSONString",U.f.prototype.fi);e.k(U.f.prototype,"toString",U.f.prototype.toString);U.sa=function(){};U.sa.Dl=function(a){return U.sa.Bh(e.ca.parse(a))};U.sa.Bh=function(a){var c={};if(e.qa(a)&&"CompoundValue"==a.type){for(var d=a.scope,f=0;f<d.length;f++){var g=d[f][0],h=d[f][1];if(g in c)throw Error('Duplicate scope key "'+g+'" in scope #'+f+".");c[g]=U.sa.vb(h,c)}a=a.value}return U.sa.vb(a,c)};
|
|
U.sa.vb=function(a,c){if(e.pc(a)||e.aa(a)||e.ve(a)||e.p(a))return a;if(e.isArray(a))return e.a.map(a,function(a){return U.sa.vb(a,c)});if(!e.qa(a)||e.ua(a))throw Error("Cannot decode object: "+a);var d=a.type;switch(d){case "ValueRef":if(a.value in c)return c[a.value];throw Error("Unknown ValueRef: "+a);case "ArgumentRef":d=a.value;if(!e.p(d))throw Error("Invalid variable name: "+d);return U.Fa.Tf(Object,d);case "Date":d=a.value;if(!e.aa(d))throw Error("Invalid date value: "+d);return new Date(d/
|
|
1E3);case "Bytes":return d=new U.ub,d.ja=function(){return a},d;case "Invocation":var d="functionName"in a?U.i.qc(a.functionName):U.sa.vb(a["function"],c),f=e.object.map(a.arguments,function(a){return U.sa.vb(a,c)});if(d instanceof U.ba)return d.apply(f);if(d instanceof U.r)return new U.r(d,f);throw Error("Invalid function value: "+a["function"]);case "Dictionary":return e.object.map(a.value,function(a){return U.sa.vb(a,c)});case "Function":var g=U.sa.vb(a.body,c),d={name:"",args:e.a.map(a.argumentNames,
|
|
function(a){return{name:a,type:"Object",optional:!1}}),returns:"Object"};return new U.Fa(d,function(){return g});case "Point":case "MultiPoint":case "LineString":case "MultiLineString":case "Polygon":case "MultiPolygon":case "LinearRing":case "GeometryCollection":return new U.f(a);case "CompoundValue":throw Error("Nested CompoundValues are disallowed.");default:throw Error("Unknown encoded object type: "+d);}};e.N("ee.Deserializer",U.sa);e.N("ee.Deserializer.decode",U.sa.Bh);
|
|
e.N("ee.Deserializer.fromJSON",U.sa.Dl);U.s=function(a,c){if(!(this instanceof U.s))return new U.s(a,c);if(a instanceof U.s){if(c)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)");U.s.v();a instanceof U.f||null===a?U.r.call(this,new U.i("Feature"),{geometry:a,metadata:c||null}):a instanceof U.r?U.r.call(this,a.ta,a.Pa):"Feature"==a.type?U.r.call(this,new U.i("Feature"),{geometry:new U.f(a.geometry),
|
|
metadata:a.properties||null}):U.r.call(this,new U.i("Feature"),{geometry:new U.f(a),metadata:c||null})};e.D(U.s,U.r);U.s.w=!1;U.s.v=function(){U.s.w||(U.i.Da(U.s,"Feature","Feature"),U.s.w=!0)};U.s.reset=function(){U.i.Ya(U.s);U.s.w=!1};U.s.prototype.La=function(a){return U.s.ya.La.call(this,a)};U.s.prototype.Na=function(a,c){return U.i.O("Collection",[this]).Na(a,c)};U.s.Mb=function(a,c){return U.f.Mb.apply(null,arguments)};U.s.Jb=function(a){return U.f.Jb.apply(null,arguments)};
|
|
U.s.Nb=function(a,c,d,f){return new U.f.Nb(a,c,d,f)};U.s.Hb=function(a){return U.f.Hb.apply(null,arguments)};U.s.Ib=function(a){return U.f.Ib.apply(null,arguments)};U.s.ll=function(a){return U.f.bd.apply(null,arguments)};U.s.Lb=function(a){return U.f.Lb.apply(null,arguments)};U.s.Kb=function(a){return U.f.Kb.apply(null,arguments)};U.s.prototype.name=function(){return"Feature"};e.N("ee.Feature",U.s);e.k(U.s,"Point",U.s.Mb);e.k(U.s,"MultiPoint",U.s.Jb);e.k(U.s,"Rectangle",U.s.Nb);
|
|
e.k(U.s,"LineString",U.s.Hb);e.k(U.s,"LinearRing",U.s.Ib);e.k(U.s,"MultiLine",U.s.ll);e.k(U.s,"Polygon",U.s.Lb);e.k(U.s,"MultiPolygon",U.s.Kb);e.k(U.s,"getMap",U.s.prototype.Na);U.I=function(a,c){if(!(this instanceof U.I))return new U.I(a,c);if(a instanceof U.I)return a;if(2<arguments.length)throw Error("The FeatureCollection constructor takes at most 2 arguments ("+arguments.length+" given)");U.I.v();a instanceof U.f&&(a=new U.s(a));a instanceof U.s&&(a=[a]);if(U.C.aa(a)||U.C.p(a)){var d={tableId:a};c&&(d.geometryColumn=c);U.u.call(this,new U.i("Collection.loadTable"),d)}else if(e.isArray(a))U.u.call(this,new U.i("Collection"),{features:e.a.map(a,function(a){return new U.s(a)})});
|
|
else if(a instanceof U.r)U.u.call(this,a.ta,a.Pa);else throw Error("Unrecognized argument type to convert to a FeatureCollection: "+a);};e.D(U.I,U.u);U.I.w=!1;U.I.v=function(){U.I.w||(U.i.Da(U.I,"FeatureCollection","FeatureCollection"),U.u.cg(U.I,U.s),U.I.w=!0)};U.I.reset=function(){U.i.Ya(U.I);U.I.w=!1};U.I.prototype.Na=function(a,c){var d=U.i.$b("Collection.draw",{collection:this,color:(a||{}).color||"000000"});if(c)d.Na(null,c);else return d.Na()};
|
|
U.I.prototype.La=function(a){return U.I.ya.La.call(this,a)};U.I.prototype.map=function(a,c,d,f){return $(this,U.s,a,c,d,f)};U.I.prototype.name=function(){return"FeatureCollection"};e.N("ee.FeatureCollection",U.I);e.k(U.I.prototype,"map",U.I.prototype.map);e.k(U.I.prototype,"getMap",U.I.prototype.Na);U.o=function(a){if(!(this instanceof U.o))return new U.o(a);if(a instanceof U.o)return a;U.o.v();var c=arguments.length;if(0==c||1==c&&!e.W(a))U.r.call(this,new U.i("Image.mask"),{image:new U.o(0),mask:new U.o(0)});else if(1==c)if(U.C.aa(a))U.r.call(this,new U.i("Image.constant"),{value:a});else if(U.C.p(a))U.r.call(this,new U.i("Image.load"),{id:a});else{if(e.isArray(a))return U.o.ze(e.a.map(a,function(a){return new U.o(a)}));if(a instanceof U.r)U.r.call(this,a.ta,a.Pa);else throw Error("Unrecognized argument type to convert to an Image: "+
|
|
a);}else if(2==c){var c=arguments[0],d=arguments[1];if(U.C.p(c)&&U.C.aa(d))U.r.call(this,new U.i("Image.load"),{id:c,version:d});else throw Error("Unrecognized argument types to convert to an Image: "+arguments);}else throw Error("The Image constructor takes at most 2 arguments ("+c+" given)");};e.D(U.o,U.r);U.o.w=!1;U.o.v=function(){U.o.w||(U.i.Da(U.o,"Image","Image"),U.i.Da(U.o,"Window","Image","focal_"),U.o.w=!0)};U.o.reset=function(){U.i.Ya(U.o);U.o.w=!1};
|
|
U.o.prototype.La=function(a){return U.o.ya.La.call(this,a)};U.o.prototype.Na=function(a,c){var d=a||{};d.image=this.ka();if(c)U.data.Hf(d,e.bind(function(a,d){a&&(a.image=this);c(a,d)},this));else return d=U.data.Hf(d),d.image=this,d};U.o.prototype.El=function(a){a=a||{};a.image=this.ka();a=U.data.Eh(a);return U.data.Gh(a)};U.o.prototype.Gl=function(a){a=a||{};a.image=this.ka();return U.data.Hh(U.data.Fh(a))};U.o.Pl=function(a,c,d){return U.o.ze([a,c,d],["vis-red","vis-green","vis-blue"])};
|
|
U.o.ql=function(a){var c=Array.prototype.slice.call(arguments);return U.o.ze(c,null)};U.o.ze=function(a,c){if(0==a.length)throw Error("Can't combine 0 images.");for(var d=new U.o(a[0]),f=1;f<a.length;f++)d=U.i.O("Image.addBands",d,a[f]);c&&(d=d.select([".*"],c));return d};
|
|
U.o.prototype.select=function(a,c){var d={input:this,bandSelectors:a};if(e.isArray(a))c&&(d.newNames=c);else{a=Array.prototype.slice.call(arguments);for(var f=0;f<a.length;f++)if(!e.p(a[f])&&!e.aa(a[f]))throw Error("Illegal argument to select(): "+a[f]);d.bandSelectors=a}return U.i.$b("Image.select",d)};
|
|
U.o.prototype.xl=function(a,c){var d=U.i.O("Image.parseExpression",a,"DEFAULT_EXPRESSION_IMAGE"),f=["DEFAULT_EXPRESSION_IMAGE"],g={DEFAULT_EXPRESSION_IMAGE:this};if(c)for(var h in c)f.push(h),g[h]=new U.o(c[h]);h=new U.ba;h.ja=function(a){return d.ja(a)};h.Sa=function(){return{name:"",args:e.a.map(f,function(a){return{name:a,type:"Image",optional:!1}},this),returns:"Image"}};return h.apply(g)};U.o.prototype.clip=function(a){try{a=new U.f(a)}catch(c){}return U.i.O("Image.clip",this,a)};
|
|
U.o.prototype.name=function(){return"Image"};e.N("ee.Image",U.o);e.k(U.o.prototype,"getInfo",U.o.prototype.La);e.k(U.o.prototype,"getDownloadURL",U.o.prototype.El);e.k(U.o.prototype,"getThumbURL",U.o.prototype.Gl);e.k(U.o.prototype,"getMap",U.o.prototype.Na);e.k(U.o.prototype,"select",U.o.prototype.select);e.k(U.o.prototype,"expression",U.o.prototype.xl);e.k(U.o.prototype,"clip",U.o.prototype.clip);e.k(U.o,"cat",U.o.ql);e.k(U.o,"rgb",U.o.Pl);e.k(U.o,"toString",U.o.toString);U.J=function(a){if(!(this instanceof U.J))return new U.J(a);if(a instanceof U.J)return a;if(1!=arguments.length)throw Error("The ImageCollection constructor takes exactly 1 argument ("+arguments.length+" given)");U.J.v();a instanceof U.o&&(a=[a]);if(U.C.p(a))U.u.call(this,new U.i("ImageCollection.load"),{id:a});else if(e.isArray(a))U.u.call(this,new U.i("ImageCollection.fromImages"),{images:e.a.map(a,function(a){return new U.o(a)})});else if(a instanceof U.r)U.u.call(this,a.ta,a.Pa);else throw Error("Unrecognized argument type to convert to an ImageCollection: "+
|
|
a);};e.D(U.J,U.u);U.J.w=!1;U.J.v=function(){U.J.w||(U.i.Da(U.J,"ImageCollection","ImageCollection"),U.i.Da(U.J,"reduce","ImageCollection"),U.u.cg(U.J,U.o),U.J.w=!0)};U.J.reset=function(){U.i.Ya(U.J);U.J.w=!1};U.J.prototype.Na=function(a,c){var d=U.i.O("ImageCollection.mosaic",this);if(c)d.Na(a,c);else return d.Na(a)};U.J.prototype.La=function(a){return U.J.ya.La.call(this,a)};U.J.prototype.map=function(a,c,d,f){return $(this,U.o,a,c,d,f)};U.J.prototype.name=function(){return"ImageCollection"};
|
|
e.N("ee.ImageCollection",U.J);e.k(U.J.prototype,"map",U.J.prototype.map);e.k(U.J.prototype,"getMap",U.J.prototype.Na);U.T=function(a){if(!(this instanceof U.T))return new U.T(a);if(a instanceof U.T)return a;U.T.v();if(e.p(a))U.r.call(this,null,null);else if(a instanceof U.r)U.r.call(this,a.ta,a.Pa);else throw Error("Invalid argument specified for ee.String(): "+a);this.bf=a};e.D(U.T,U.r);U.T.w=!1;U.T.v=function(){U.T.w||(U.i.Da(U.T,"String","String"),U.T.w=!0)};U.T.reset=function(){U.i.Ya(U.T);U.T.w=!1};U.T.prototype.ja=function(a){return e.p(this.bf)?this.bf:this.bf.ja(a)};U.T.prototype.name=function(){return"String"};
|
|
e.N("ee.String",U.T);e.k(U.T.prototype,"encode",U.T.prototype.ja);U.v=function(a,c,d,f){if(U.Xa!=U.xa.Qb||a||c){var g=e.Ra(d);if(f)if(g)U.sd.push(f);else throw Error("Can't pass an error callback without a success callback.");if(U.Xa==U.xa.LOADING&&g)U.sc.push(d);else if(U.Xa=U.xa.LOADING,U.data.v(a,c),g)U.sc.push(d),U.i.v(U.Bg,U.xe);else try{U.i.v(),U.Bg()}catch(h){throw U.xe(h),h;}}else d&&d()};
|
|
U.reset=function(){U.Xa=U.xa.td;U.data.reset();U.i.reset();U.o.reset();U.s.reset();U.u.reset();U.J.reset();U.I.reset();U.d.reset();U.f.reset();U.T.reset();U.ki();U.Qf={}};U.xa={td:"not_ready",LOADING:"loading",Qb:"ready"};U.Xa=U.xa.td;U.sc=[];U.sd=[];U.ol=256;U.Wd=[];U.Qf={};U.Ml=function(){return U.Xa};U.call=function(a,c){e.p(a)&&(a=new U.i(a));var d=Array.prototype.slice.call(arguments,1);return U.ba.prototype.call.apply(a,d)};U.apply=function(a,c){e.p(a)&&(a=new U.i(a));return a.apply(c)};
|
|
U.Bg=function(){if(U.Xa==U.xa.LOADING){try{U.o.v(),U.s.v(),U.u.v(),U.J.v(),U.I.v(),U.d.v(),U.f.v(),U.T.v(),U.li(),U.mi()}catch(a){U.xe(a);return}U.Xa=U.xa.Qb;for(U.sd=[];0<U.sc.length;)U.sc.shift()()}};U.xe=function(a){if(U.Xa==U.xa.LOADING)for(U.Xa=U.xa.td,U.sc=[];0<U.sd.length;)U.sd.shift()(a)};
|
|
U.Uk=function(a,c){if(e.pc(a))return null;if(e.W(a))switch(c){case "Image":return new U.o(a);case "ImageCollection":return new U.J(a);case "Feature":case "EEObject":return a instanceof U.u?U.i.O("Feature",U.i.O("Collection.geometry",a)):"EEObject"==c&&a instanceof U.o?a:new U.s(a);case "Geometry":return a instanceof U.I?U.i.O("Collection.geometry",a):new U.f(a);case "FeatureCollection":case "EECollection":case "Collection":return a instanceof U.u?a:new U.I(a);case "Filter":return new U.d(a);case "ErrorMargin":return e.aa(a)?
|
|
U.i.O("ErrorMargin",a,"meters"):a;case "Algorithm":return e.p(a)?new U.i(a):a;case "Date":if(e.p(a))return new Date(a);if(e.aa(a))return new Date(a);if(a instanceof U.r){var d=U.i.qc("Date");return new U.r(d,ca(d,X(d,[a])))}return a;case "Dictionary":return c in U?a instanceof U[c]?a:a instanceof U.r?new U[c](a):a:a;case "String":return U.C.p(a)||a instanceof U.T||a instanceof U.r||U.C.rd(a,U.T)?new U.T(a):a;case "List":return a;default:if(c in U&&a){if(a instanceof U[c])return a;if(e.p(a)){if(!(a in
|
|
U[c]))throw Error("Unknown algorithm: "+c+"."+a);return U[c][a].call()}return new U[c](a)}return a}};U.mi=function(){e.object.forEach(U.i.Ni(),function(a,c){var d=a.Sa();if(!d.hidden){for(var f=c.split("."),g=U.Qf;1<f.length;){var h=f[0];h in g||(g[h]={signature:{}});g=g[h];f=e.a.slice(f,1)}h=e.bind(a.call,a);h.signature=d;h.toString=e.bind(a.toString,a);g[f[0]]=h}})};
|
|
U.li=function(){var a=U.i.Oj(),c={},d={},f;for(f in a){if(-1!=f.indexOf(".")){var g=f.slice(0,f.indexOf("."));c[g]=!0}g=a[f].returns.replace(/<.*>/,"");d[g]=!0}var a=["List"],h;for(h in a)c[h]&&delete c[h];for(var k in c)k in d&&!(k in U)&&(U[k]=U.Qj(k),U.Wd.push(k));U.C.Og()};U.ki=function(){for(var a=0;a<U.Wd.length;a++){var c=U.Wd[a];U.i.Ya(U[c]);delete U[c]}U.Wd=[];U.C.Og()};
|
|
U.Qj=function(a){var c=function(c){var f=Array.prototype.slice.apply(arguments);f[0]instanceof U.r&&1==f.length?f=f[0]:(f.unshift(a),f=U.i.O.apply(null,f));if(this instanceof U[a])U.r.call(this,f.ta,f.Pa);else return new U[a](f)};e.D(c,U.r);U.i.Da(c,a,a);return c};U.ba.Nl();e.N("ee.initialize",U.v);e.N("ee.reset",U.reset);e.N("ee.InitState",U.xa);e.N("ee.InitState.NOT_READY",U.xa.td);e.N("ee.InitState.LOADING",U.xa.LOADING);e.N("ee.InitState.READY",U.xa.Qb);e.N("ee.ready",U.Ml);e.N("ee.call",U.call);
|
|
e.N("ee.apply",U.apply);e.N("ee.TILE_SIZE",U.ol);})();
|
|
//# sourceMappingURL=ee_api_js.sourcemap
|