From 5322d7c480a86a6236bd332db3c00875b4a8e173 Mon Sep 17 00:00:00 2001 From: Google Earth Engine Authors Date: Thu, 2 May 2024 20:36:39 +0000 Subject: [PATCH] v0.1.402 PiperOrigin-RevId: 630164461 --- demos/interactive-classifier/server.py | 2 +- javascript/build/ee_api_js.js | 1318 ++++++++++----------- javascript/build/ee_api_js_debug.js | 290 ++--- javascript/build/ee_api_js_npm.js | 334 +++--- javascript/package.json | 2 +- javascript/src/apiclient.js | 2 +- javascript/src/geometry.js | 28 +- javascript/src/layers/abstractoverlay.js | 12 +- python/ee/__init__.py | 2 +- python/ee/_helpers.py | 2 +- python/ee/apitestcase.py | 4 +- python/ee/dictionary.py | 2 +- python/ee/ee_array.py | 780 +++++++++++- python/ee/ee_list.py | 4 +- python/ee/tests/_helpers_test.py | 1 - python/ee/tests/algorithms.json | 20 +- python/ee/tests/classifier_test.py | 10 +- python/ee/tests/feature_test.py | 520 ++++++++ python/ee/tests/featurecollection_test.py | 12 +- python/pyproject.toml | 2 +- 20 files changed, 2271 insertions(+), 1076 deletions(-) diff --git a/demos/interactive-classifier/server.py b/demos/interactive-classifier/server.py index fb84a8979..12f6fb06a 100644 --- a/demos/interactive-classifier/server.py +++ b/demos/interactive-classifier/server.py @@ -126,7 +126,7 @@ def get(self): ) # Train a classifier using the aggregated data. - classifier = ee.Classifier.naiveBayes().train( + classifier = ee.Classifier.smileNaiveBayes().train( features=training, classProperty='label', inputProperties=landsat_composite.bandNames(), diff --git a/javascript/build/ee_api_js.js b/javascript/build/ee_api_js.js index f252c343a..3e67b6391 100644 --- a/javascript/build/ee_api_js.js +++ b/javascript/build/ee_api_js.js @@ -1,495 +1,493 @@ (function(){var h,aa=function(a){var b=0;return function(){return b>>0)+"_",d=0,e=function(g){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new b(c+(g||"")+"_"+d++,g)};return e}); -da("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c>>0)+"_",d=0,e=function(g){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new b(c+(g||"")+"_"+d++,g)};return e}); +fa("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;cb||1342177279>>=1)c+=c;return d}}); -var va=function(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c=e}});da("Array.prototype.entries",function(a){return a?a:function(){return va(this,function(b,c){return[b,c]})}}); -da("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=ua(this,b,"startsWith");b+="";var e=d.length,g=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var f=0;f=g}});da("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)la(b,d)&&c.push([d,b[d]]);return c}});da("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}}); -da("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));cb||1342177279>>=1)c+=c;return d}}); +var va=function(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c=e}});fa("Array.prototype.entries",function(a){return a?a:function(){return va(this,function(b,c){return[b,c]})}}); +fa("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=ua(this,b,"startsWith");b+="";var e=d.length,g=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var f=0;f=g}});fa("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)la(b,d)&&c.push([d,b[d]]);return c}});fa("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}}); +fa("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));c>>0),Ba=0,Da=function(a,b,c){return a.call.apply(a.bind, arguments)},Ea=function(a,b,c){if(!a)throw Error();if(2c&&(c=Math.max(0,a.length+c));if("string"===typeof a)return"string"!==typeof b|| 1!=b.length?-1:a.lastIndexOf(b,c);for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1},Ua=Array.prototype.forEach?function(a,b){B(null!=a.length);Array.prototype.forEach.call(a,b,void 0)}:function(a,b){for(var c=a.length,d="string"===typeof a?a.split(""):a,e=0;e=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)} -function fb(a){var b=[];if(0>a-0)return[];for(var c=0;c>>0),cc=function(a){B(a,"Listener can not be null.");if("function"===typeof a)return a;B(a.handleEvent,"An object listener must have handleEvent method.");a[kc]||(a[kc]=function(b){return a.handleEvent(b)}); -return a[kc]};var D=function(){y.call(this);this.Ia=new Vb(this);this.Lk=this;this.Uf=null};x(D,y);D.prototype[Ab]=!0;h=D.prototype;h.addEventListener=function(a,b,c,d){bc(this,a,b,c,d)};h.removeEventListener=function(a,b,c,d){ic(this,a,b,c,d)}; -h.dispatchEvent=function(a){lc(this);var b=this.Uf;if(b){var c=[];for(var d=1;b;b=b.Uf)c.push(b),B(1E3>++d,"infinite loop")}b=this.Lk;d=a.type||a;if("string"===typeof a)a=new z(a,b);else if(a instanceof z)a.target=a.target||b;else{var e=a;a=new z(d,b);Ub(a,e)}e=!0;if(c)for(var g=c.length-1;!a.ed&&0<=g;g--){var f=a.currentTarget=c[g];e=mc(f,d,!0,a)&&e}a.ed||(f=a.currentTarget=b,e=mc(f,d,!0,a)&&e,a.ed||(e=mc(f,d,!1,a)&&e));if(c)for(g=0;!a.ed&&g=a.length)return sc;if(b in a)return{value:a[b++],done:!1};b++}};return c}throw Error("Not implemented");},uc=function(a,b){if(ya(a))Ua(a,b);else for(a=tc(a);;){var c=a.next();if(c.done)break;b.call(void 0,c.value,void 0,a)}};var yc=function(a){if(a instanceof vc||a instanceof wc||a instanceof xc)return a;if("function"==typeof a.next)return new vc(function(){return a});if("function"==typeof a[Symbol.iterator])return new vc(function(){return a[Symbol.iterator]()});if("function"==typeof a.Da)return new vc(function(){return a.Da()});throw Error("Not an iterator or iterable.");},vc=function(a){this.uf=a};vc.prototype.Da=function(){return new wc(this.uf())};vc.prototype[Symbol.iterator]=function(){return new xc(this.uf())}; -vc.prototype.xg=function(){return new xc(this.uf())};var wc=function(a){this.Sc=a};q(wc,rc);wc.prototype.next=function(){return this.Sc.next()};wc.prototype[Symbol.iterator]=function(){return new xc(this.Sc)};wc.prototype.xg=function(){return new xc(this.Sc)};var xc=function(a){vc.call(this,function(){return a});this.Sc=a};q(xc,vc);xc.prototype.next=function(){return this.Sc.next()};var zc=function(a,b){this.A={};this.K=[];this.qd=this.size=0;var c=arguments.length;if(12*this.size&&Ac(this),!0):!1};var Ac=function(a){if(a.size!=a.K.length){for(var b=0,c=0;b=d.K.length)return sc;var g=d.K[b++];return{value:a?g:d.A[g],done:!1}};return e};h.mb=function(a){this.size=a};var Bc=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var Dc=function(a){if(a.R&&"function"==typeof a.R)a=a.R();else if(ya(a)||"string"===typeof a)a=a.length;else{var b=0,c;for(c in a)b++;a=b}return a},Ec=function(a){if(a.aa&&"function"==typeof a.aa)return a.aa();if("undefined"!==typeof Map&&a instanceof Map||"undefined"!==typeof Set&&a instanceof Set)return Array.from(a.values());if("string"===typeof a)return a.split("");if(ya(a)){for(var b=[],c=a.length,d=0;dc)return!1;!(b instanceof Ic)&&5e&&(e+=d);return[a.jl,c,e,b.y].join("/")};Nc.prototype.Nc=function(){return this.Ab.length};var Pc=function(a){z.call(this,"tileevent");this.count=a};x(Pc,z);var Qc=function(){},Rc=new Qc;function Sc(a){return Object.assign({},{P:{},Pl:{},keys:[],Ma:{},s:{},H:{},sh:!1},a)}var E=function(){this.h={}},F=function(a,b){return a.h.hasOwnProperty(b)?a.h[b]:null},G=function(a,b){return null!=a.h[b]};function Tc(a,b){return F(b,a)}function Uc(a,b,c){b[a]=c}function Vc(){return{}}function Wc(a,b){var c=new a;return null==b?c:Xc(b,Yc,Zc,$c,a)}function Yc(a,b){return b[a]}function Zc(a,b,c){b.h[a]=c} -function $c(a){if(null==a)throw Error("Cannot deserialize, target constructor was null.");return new a} -function Xc(a,b,c,d,e){e=d(e);for(var g=ad(a,e),f=g.P||{},l=g.s||{},m=g.Ma||{},p=n(g.keys||[]),v=p.next(),A={};!v.done;A={Wd:void 0},v=p.next()){v=v.value;var C=b(v,a);if(null!=C){var I=void 0;if(f.hasOwnProperty(v)){if(g.sh&&0===C.length)continue;I=bd(C,b,c,d,!0,!0,f[v])}else if(l.hasOwnProperty(v))I=bd(C,b,c,d,!1,!0,l[v]);else if(m.hasOwnProperty(v))A.Wd=m[v],I=A.Wd.pa?C.map(function(fa){return function(X){return cd(X,fa.Wd,b,c,d)}}(A)):cd(C,A.Wd,b,c,d);else if(Array.isArray(C)){if(g.sh&&0===C.length)continue; -I=bd(C,b,c,d,!0,!1)}else I=C instanceof Qc?null:C;c(v,e,I)}}return e}function cd(a,b,c,d,e){for(var g={},f=n(Object.keys(a)),l=f.next();!l.done;l=f.next()){l=l.value;var m=a[l];null!=m&&(g[l]=bd(m,c,d,e,b.ra,b.qa,b.ka))}return g} -function bd(a,b,c,d,e,g,f){if(g&&null==f)throw Error("Cannot deserialize a reference object without a constructor.");return null==a?a:e&&g?a.map(function(l){return Xc(l,b,c,d,f)}):e&&!g?a.map(function(l){return l}):!e&&g?Xc(a,b,c,d,f):a instanceof Qc?null:"object"===typeof a?JSON.parse(JSON.stringify(a)):a}function ad(a,b){if(b instanceof E)a=Sc(b.i());else if(a instanceof E)a=Sc(a.i());else throw Error("Cannot find ClassMetadata.");return a};var dd;var fd=function(a,b){if(b!==ed)throw Error("TrustedResourceUrl is not meant to be built directly");this.ki=a};fd.prototype.toString=function(){return this.ki+""}; -var gd=function(a){if(a instanceof fd&&a.constructor===fd)return a.ki;Na("expected object of type TrustedResourceUrl, got '%s' of type %s",a,xa(a));return"type_error:TrustedResourceUrl"},ed={},hd=function(a){if(void 0===dd){var b=null;var c=r.trustedTypes;if(c&&c.createPolicy)try{b=c.createPolicy("goog#html",{createHTML:Ga,createScript:Ga,createScriptURL:Ga})}catch(d){r.console&&r.console.error(d.message)}dd=b}a=(b=dd)?b.createScriptURL(a):a;return new fd(a,ed)};/* +function fb(a){var b=[];if(0>a-0)return[];for(var c=0;c>>0),Tb=function(a){B(a,"Listener can not be null.");if("function"===typeof a)return a;B(a.handleEvent,"An object listener must have handleEvent method.");a[ac]||(a[ac]=function(b){return a.handleEvent(b)}); +return a[ac]};var D=function(){y.call(this);this.Ia=new Lb(this);this.Kk=this;this.Tf=null};x(D,y);D.prototype[qb]=!0;h=D.prototype;h.addEventListener=function(a,b,c,d){Sb(this,a,b,c,d)};h.removeEventListener=function(a,b,c,d){Zb(this,a,b,c,d)}; +h.dispatchEvent=function(a){bc(this);var b=this.Tf;if(b){var c=[];for(var d=1;b;b=b.Tf)c.push(b),B(1E3>++d,"infinite loop")}b=this.Kk;d=a.type||a;if("string"===typeof a)a=new z(a,b);else if(a instanceof z)a.target=a.target||b;else{var e=a;a=new z(d,b);Kb(a,e)}e=!0;if(c)for(var g=c.length-1;!a.dd&&0<=g;g--){var f=a.currentTarget=c[g];e=cc(f,d,!0,a)&&e}a.dd||(f=a.currentTarget=b,e=cc(f,d,!0,a)&&e,a.dd||(e=cc(f,d,!1,a)&&e));if(c)for(g=0;!a.dd&&g=a.length)return ic;if(b in a)return{value:a[b++],done:!1};b++}};return c}throw Error("Not implemented");},kc=function(a,b){if(ya(a))Ua(a,b);else for(a=jc(a);;){var c=a.next();if(c.done)break;b.call(void 0,c.value,void 0,a)}};var oc=function(a){if(a instanceof lc||a instanceof mc||a instanceof nc)return a;if("function"==typeof a.next)return new lc(function(){return a});if("function"==typeof a[Symbol.iterator])return new lc(function(){return a[Symbol.iterator]()});if("function"==typeof a.Da)return new lc(function(){return a.Da()});throw Error("Not an iterator or iterable.");},lc=function(a){this.tf=a};lc.prototype.Da=function(){return new mc(this.tf())};lc.prototype[Symbol.iterator]=function(){return new nc(this.tf())}; +lc.prototype.wg=function(){return new nc(this.tf())};var mc=function(a){this.Rc=a};q(mc,hc);mc.prototype.next=function(){return this.Rc.next()};mc.prototype[Symbol.iterator]=function(){return new nc(this.Rc)};mc.prototype.wg=function(){return new nc(this.Rc)};var nc=function(a){lc.call(this,function(){return a});this.Rc=a};q(nc,lc);nc.prototype.next=function(){return this.Rc.next()};var pc=function(a,b){this.A={};this.K=[];this.pd=this.size=0;var c=arguments.length;if(12*this.size&&qc(this),!0):!1};var qc=function(a){if(a.size!=a.K.length){for(var b=0,c=0;b=d.K.length)return ic;var g=d.K[b++];return{value:a?g:d.A[g],done:!1}};return e};h.mb=function(a){this.size=a};var rc=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var tc=function(a){if(a.R&&"function"==typeof a.R)a=a.R();else if(ya(a)||"string"===typeof a)a=a.length;else{var b=0,c;for(c in a)b++;a=b}return a},uc=function(a){if(a.aa&&"function"==typeof a.aa)return a.aa();if("undefined"!==typeof Map&&a instanceof Map||"undefined"!==typeof Set&&a instanceof Set)return Array.from(a.values());if("string"===typeof a)return a.split("");if(ya(a)){for(var b=[],c=a.length,d=0;dc)return!1;!(b instanceof yc)&&5e&&(e+=d);return[a.il,c,e,b.y].join("/")};Dc.prototype.Mc=function(){return this.Ab.length};var Fc=function(a){z.call(this,"tileevent");this.count=a};x(Fc,z);var Gc=function(){},Hc=new Gc;function Ic(a){return Object.assign({},{P:{},Ol:{},keys:[],Ma:{},o:{},H:{},rh:!1},a)}var E=function(){this.h={}},F=function(a,b){return a.h.hasOwnProperty(b)?a.h[b]:null},G=function(a,b){return null!=a.h[b]};function Jc(a,b){return F(b,a)}function Kc(a,b,c){b[a]=c}function Lc(){return{}}function Mc(a,b){var c=new a;return null==b?c:Nc(b,Oc,Pc,Qc,a)}function Oc(a,b){return b[a]}function Pc(a,b,c){b.h[a]=c} +function Qc(a){if(null==a)throw Error("Cannot deserialize, target constructor was null.");return new a} +function Nc(a,b,c,d,e){e=d(e);for(var g=Rc(a,e),f=g.P||{},l=g.o||{},m=g.Ma||{},p=n(g.keys||[]),v=p.next(),A={};!v.done;A={Vd:void 0},v=p.next()){v=v.value;var C=b(v,a);if(null!=C){var I=void 0;if(f.hasOwnProperty(v)){if(g.rh&&0===C.length)continue;I=Sc(C,b,c,d,!0,!0,f[v])}else if(l.hasOwnProperty(v))I=Sc(C,b,c,d,!1,!0,l[v]);else if(m.hasOwnProperty(v))A.Vd=m[v],I=A.Vd.pa?C.map(function(ea){return function(X){return Tc(X,ea.Vd,b,c,d)}}(A)):Tc(C,A.Vd,b,c,d);else if(Array.isArray(C)){if(g.rh&&0===C.length)continue; +I=Sc(C,b,c,d,!0,!1)}else I=C instanceof Gc?null:C;c(v,e,I)}}return e}function Tc(a,b,c,d,e){for(var g={},f=n(Object.keys(a)),l=f.next();!l.done;l=f.next()){l=l.value;var m=a[l];null!=m&&(g[l]=Sc(m,c,d,e,b.ra,b.qa,b.ka))}return g} +function Sc(a,b,c,d,e,g,f){if(g&&null==f)throw Error("Cannot deserialize a reference object without a constructor.");return null==a?a:e&&g?a.map(function(l){return Nc(l,b,c,d,f)}):e&&!g?a.map(function(l){return l}):!e&&g?Nc(a,b,c,d,f):a instanceof Gc?null:"object"===typeof a?JSON.parse(JSON.stringify(a)):a}function Rc(a,b){if(b instanceof E)a=Ic(b.i());else if(a instanceof E)a=Ic(a.i());else throw Error("Cannot find ClassMetadata.");return a};var Uc;var Wc=function(a,b){if(b!==Vc)throw Error("TrustedResourceUrl is not meant to be built directly");this.ji=a};Wc.prototype.toString=function(){return this.ji+""}; +var Xc=function(a){if(a instanceof Wc&&a.constructor===Wc)return a.ji;Na("expected object of type TrustedResourceUrl, got '%s' of type %s",a,xa(a));return"type_error:TrustedResourceUrl"},Vc={},Yc=function(a){if(void 0===Uc){var b=null;var c=r.trustedTypes;if(c&&c.createPolicy)try{b=c.createPolicy("goog#html",{createHTML:Ga,createScript:Ga,createScriptURL:Ga})}catch(d){r.console&&r.console.error(d.message)}Uc=b}a=(b=Uc)?b.createScriptURL(a):a;return new Wc(a,Vc)};/* SPDX-License-Identifier: Apache-2.0 */ -var id=ia([""]),jd=ja(["\x00"],["\\0"]),kd=ja(["\n"],["\\n"]),ld=ja(["\x00"],["\\u0000"]),md=ia([""]),nd=ja(["\x00"],["\\0"]),od=ja(["\n"],["\\n"]),pd=ja(["\x00"],["\\u0000"]);function qd(a){return Object.isFrozen(a)&&Object.isFrozen(a.raw)}function rd(a){return-1===a.toString().indexOf("`")}var sd=rd(function(a){return a(id)})||rd(function(a){return a(jd)})||rd(function(a){return a(kd)})||rd(function(a){return a(ld)}),td=qd(md)&&qd(nd)&&qd(od)&&qd(pd);var ud={};var vd=function(a){if(ud!==ud)throw Error("Bad secret");this.li=a};vd.prototype.toString=function(){return this.li};new vd("about:blank");var wd=new vd("about:invalid#zClosurez");function xd(a){if(a instanceof vd)return a.li;throw Error("Unexpected type when unwrapping SafeUrl, got '"+a+"' of type '"+typeof a+"'");};function yd(a){if("undefined"!==typeof MediaSource&&a instanceof MediaSource)return new vd(URL.createObjectURL(a));var b=a.type.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i);if(2!==(null==b?void 0:b.length)||!(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(b[1])||/^video\/(?:mpeg|mp4|ogg|webm|x-matroska|quicktime|x-ms-wmv)$/i.test(b[1])||/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(b[1])||/^font\/\w+/i.test(b[1])))throw Error("unsafe blob MIME type: "+ -a.type);return new vd(URL.createObjectURL(a))}var zd=[],Ad=function(a){console.warn("A URL with content '"+a+"' was sanitized away.")};-1===zd.indexOf(Ad)&&zd.push(Ad);var Bd={},Cd=function(){if(Bd!==Bd)throw Error("SafeStyle is not meant to be built directly");this.rl=""};Cd.prototype.toString=function(){return this.rl.toString()};new Cd;var Dd={},Ed=function(){if(Dd!==Dd)throw Error("SafeStyleSheet is not meant to be built directly");this.ql=""};Ed.prototype.toString=function(){return this.ql.toString()};new Ed;var Fd={},Gd=function(){var a=r.trustedTypes&&r.trustedTypes.emptyHTML||"";if(Fd!==Fd)throw Error("SafeHtml is not meant to be built directly");this.pl=a};Gd.prototype.toString=function(){return this.pl.toString()};new Gd;var Hd=function(a,b){this.name=a;this.value=b};Hd.prototype.toString=function(){return this.name};var Id=new Hd("OFF",Infinity),Jd=new Hd("SEVERE",1E3),Kd=new Hd("CONFIG",700),Ld=new Hd("FINE",500),Md=function(){this.Dd=0;this.clear()},Nd;Md.prototype.clear=function(){this.Ad=Array(this.Dd);this.kh=-1;this.Kh=!1};var Od=function(a,b,c){this.reset(a||Id,b,c,void 0,void 0)};Od.prototype.reset=function(){}; -var Pd=function(a,b){this.level=null;this.al=[];this.parent=(void 0===b?null:b)||null;this.children=[];this.hl={wf:function(){return a}}},Qd=function(a){if(a.level)return a.level;if(a.parent)return Qd(a.parent);Na("Root logger has no level set.");return Id},Rd=function(a,b){for(;a;)a.al.forEach(function(c){c(b)}),a=a.parent},Sd=function(){this.entries={};var a=new Pd("");a.level=Kd;this.entries[""]=a},Td,Ud=function(a,b){var c=a.entries[b];if(c)return c;c=Ud(a,b.slice(0,Math.max(b.lastIndexOf("."), -0)));var d=new Pd(b,c);a.entries[b]=d;c.children.push(d);return d},Vd=function(){Td||(Td=new Sd);return Td},Wd=function(a,b,c){var d;if(d=a)if(d=a&&b){d=b.value;var e=a?Qd(Ud(Vd(),a.wf())):Id;d=d>=e.value}if(d){b=b||Id;d=Ud(Vd(),a.wf());"function"===typeof c&&(c=c());Nd||(Nd=new Md);e=Nd;a=a.wf();if(0b)throw Error("Bad port number "+b);a.vc=b}else a.vc=null};ce.prototype.getPath=function(){return this.Zb};ce.prototype.setPath=function(a,b){fe(this);this.Zb=b?ie(a,!0):a;return this};var he=function(a,b,c){fe(a);b instanceof je?(a.Ba=b,a.Ba.hg(a.za)):(c||(b=ke(b,pe)),a.Ba=new je(b,a.za))};ce.prototype.getQuery=function(){return this.Ba.toString()}; -ce.prototype.removeParameter=function(a){fe(this);this.Ba.remove(a);return this};var fe=function(a){if(a.dl)throw Error("Tried to modify a read-only Uri");};ce.prototype.hg=function(a){this.za=a;this.Ba&&this.Ba.hg(a)}; -var qe=function(a){return a instanceof ce?a.clone():new ce(a)},ie=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},ke=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,re),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},re=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},le=/[#\/\?@]/g,ne=/[#\?:]/g,me=/[#\?]/g,pe=/[#\?@]/g,oe=/#/g,je=function(a,b){this.Y=this.N=null;this.ta=a||null;this.za=!!b},se= -function(a){a.N||(a.N=new Map,a.Y=0,a.ta&&be(a.ta,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))};h=je.prototype;h.R=function(){se(this);return this.Y};h.add=function(a,b){se(this);this.ta=null;a=te(this,a);var c=this.N.get(a);c||this.N.set(a,c=[]);c.push(b);this.Y=Oa(this.Y)+1;return this};h.remove=function(a){se(this);a=te(this,a);return this.N.has(a)?(this.ta=null,this.Y=Oa(this.Y)-this.N.get(a).length,this.N.delete(a)):!1};h.clear=function(){this.N=this.ta=null;this.Y=0}; -h.isEmpty=function(){se(this);return 0==this.Y};h.Pb=function(a){se(this);a=te(this,a);return this.N.has(a)};h.Ic=function(a){var b=this.aa();return $a(b,a)};h.forEach=function(a,b){se(this);this.N.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};h.tb=function(){se(this);for(var a=Array.from(this.N.values()),b=Array.from(this.N.keys()),c=[],d=0;d