@google/earthengine 0.1.382 → 0.1.383
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.tmp/BUILD +2 -2
- package/.tmp/METADATA +4 -4
- package/.tmp/VERSION_BUILD +2 -2
- package/build/browser.js +131 -100
- package/build/ee_api_js.js +16 -16
- package/build/ee_api_js_debug.js +109 -78
- package/build/ee_api_js_npm.js +131 -100
- package/build/main.js +131 -100
- package/package.json +1 -1
- package/src/apiclient.js +1 -1
- package/src/batch.js +19 -0
- package/src/data.js +47 -0
package/build/ee_api_js.js
CHANGED
|
@@ -448,7 +448,7 @@ Wc(p,f[m]))});return b?b(l):l};return this.callback?(Gj(d,null,function(f,l){ret
|
|
|
448
448
|
Hj.prototype.send=function(a,b){var c=[a.B+" "+a.path+" HTTP/1.1"];c.push("Content-Type: application/json; charset=utf-8");var d=Jj();null!=d&&c.push("Authorization: "+d);a=a.body?JSON.stringify(a.body):"";return[c.join("\r\n")+"\r\n\r\n"+a,b]};
|
|
449
449
|
var Kj=function(a,b,c){a=n(b.split("--"+a.split("; boundary=")[1]));for(b=a.next();!b.done;b=a.next())if(b=b.value.split("\r\n\r\n"),!(3>b.length)){var d=b[0].match(/\r\nContent-ID: <response-([^>]*)>/)[1],e=Number(b[1].match(/^HTTP\S*\s(\d+)\s/)[1]);c(d,e,b.slice(2).join("\r\n\r\n"))}},Ej=function(){var a=Lj.replace(/\/api$/,"");return"window"in r&&!a.match(/^https?:\/\/content-/)?a.replace(/^(https?:\/\/)(.*\.googleapis\.com)$/,"$1content-$2"):a},Nj=function(a,b,c){var d=[];a&&(d=d.concat(Mj));
|
|
450
450
|
b&&d.push("https://www.googleapis.com/auth/devstorage.read_write");a=d=d.concat(c);c=b=0;for(var e={};c<a.length;){var g=a[c++],f=t(g)?"o"+Ca(g):(typeof g).charAt(0)+g;Object.prototype.hasOwnProperty.call(e,f)||(e[f]=!0,a[b++]=g)}a.length=b;return d},Tj=function(a,b,c){Oj&&Pj&&Oj({client_id:String(Pj),immediate:!0,scope:Qj.join(" "),plugin_name:"earthengine"},function(d){if("immediate_failed"==d.error&&c)c();else if("window"in r)try{Rj(function(){try{r.gapi.client.setToken(d),Sj(a,b,d)}catch(e){b(e.toString())}})}catch(e){b(e.toString())}else Sj(a,
|
|
451
|
-
b,d)})},Jj=function(){Uj&&0<=Date.now()-Uj&&Vj();return Wj},Vj=function(){Uj=Wj=null},Bj=function(a,b,c,d){null!=a?Lj=a:Xj||(Lj="https://earthengine.googleapis.com/api");null!=b?Yj=b:Xj||(Yj="https://earthengine.googleapis.com");void 0!==c&&(Zj=c);Aj=null!=d?d:Aj||"earthengine-legacy";Xj=!0},Gj=function(a,b,c,d,e,g,f){Bj();var l=ak,m="application/x-www-form-urlencoded";e&&(m="application/json",d&&d.startsWith("multipart")&&(m=d,d="POST"));d=d||"POST";m={"Content-Type":m};var p="0.1.
|
|
451
|
+
b,d)})},Jj=function(){Uj&&0<=Date.now()-Uj&&Vj();return Wj},Vj=function(){Uj=Wj=null},Bj=function(a,b,c,d){null!=a?Lj=a:Xj||(Lj="https://earthengine.googleapis.com/api");null!=b?Yj=b:Xj||(Yj="https://earthengine.googleapis.com");void 0!==c&&(Zj=c);Aj=null!=d?d:Aj||"earthengine-legacy";Xj=!0},Gj=function(a,b,c,d,e,g,f){Bj();var l=ak,m="application/x-www-form-urlencoded";e&&(m="application/json",d&&d.startsWith("multipart")&&(m=d,d="POST"));d=d||"POST";m={"Content-Type":m};var p="0.1.383";"0.1.383"===
|
|
452
452
|
p&&(p="latest");m["x-goog-api-client"]="ee-js/"+p;p=Jj();if(null!=p)m.Authorization=p;else if(c&&Oj&&Pj)return Tj(function(){bk(l,function(){Gj(a,b,c,d)})}),null;b=b?b.clone():new Ed;null!=ck&&b.add("key",ck);l&&(m["X-Earth-Engine-Computation-Profiling"]="1");Aj&&"earthengine-legacy"!==Aj&&(m["X-Goog-User-Project"]=Aj);b=dk(b,a);null!=Zj&&(m["X-XSRF-Token"]=Zj);null!=ek&&(m["X-Earth-Engine-App-ID-Token"]=ek);p=e||null;var v=b?b.toString():"";"POST"===d&&void 0===e?p=v:/^[\s\xa0]*$/.test(v)||(a+=-1!=
|
|
453
453
|
a.indexOf("?")?"&":"?",a+=v);e=a.startsWith("/")?Lj+a:a;if(c)return fk.push(gk(e,c,d,p,m,g,f)),hk.pf(),null;v=function(Q,oa){this.setRequestHeader&&this.setRequestHeader(oa,Q)};var z=0;for(g=null!=g?g:5;;){var C=Vi(Ti);C.open(d,e,!1);Fb(m,v,C);C.send(p);if(429!=C.status||z>g)break;z++}return ik(C.status,function(Q){try{return C.getResponseHeader(Q)}catch(oa){return null}},C.responseText,l,void 0,e,d,f)},gk=function(a,b,c,d,e,g,f){var l=0,m={url:a,method:c,content:d,headers:e},p=ak,v=null!=g?g:10;
|
|
454
454
|
m.callback=function(z){z=z.target;if(429==z.getStatus()&&l<v)return l++,setTimeout(function(){fk.push(m);hk.pf()},Math.min(12E4,1E3*Math.pow(2,l))),null;var C=ik,Q=z.getStatus(),oa=u(z.getResponseHeader,z);try{var S=z.o?z.o.responseText:""}catch(Aa){Oi(z.ba,"Can not get responseText: "+Aa.message),S=""}return C(Q,oa,S,p,b,a,c,f)};return m},bk=function(a,b){var c=ak;try{ak=a,b.call(void 0)}finally{ak=c}},ik=function(a,b,c,d,e,g,f,l){var m=d?b("X-Earth-Engine-Computation-Profile"):"";m&&d&&d(m);var p=
|
|
@@ -699,18 +699,18 @@ h.Dl=function(){if(!this.kc){var a=u(function(d){this.kc||(xq(this.ga,this.fa,d)
|
|
|
699
699
|
h.Ri=null;h.Ja=null;h.ri=null;var Wq=["load","abort","error"],Xq=function(){y.call(this);this.Ea=!1};q(Xq,y);Xq.prototype.setActive=function(a){this.Ea=a};Xq.prototype.isActive=function(){return this.Ea};var Sq=function(a,b){Nq.call(this,a,b)};q(Sq,Nq);Sq.prototype.af=function(){return new Xq};Sq.prototype.Bd=function(a){a.Ra()};Sq.prototype.Rf=function(a){return!a.Sa&&!a.isActive()};var Yq=function(a,b,c,d,e){Nc.call(this,a,b,c,d,e);this.minZoom=d.minZoom||0;this.maxZoom=d.maxZoom||20;if(!window.google||!window.google.maps)throw Error("Google Maps API hasn't been initialized.");this.tileSize=d.tileSize||new google.maps.Size(256,256);this.name=d.name;this.xg=new Ic;this.Sf=1;this.ua=e||null};q(Yq,Nc);h=Yq.prototype;h.Ne=function(a){return bc(this,"tileevent",a)};h.cg=function(a){jc(a)};
|
|
700
700
|
h.getTile=function(a,b,c){if(b<this.minZoom||0>a.y||a.y>=1<<b)return a=c.createElement("IMG"),a.style.width="0px",a.style.height="0px",a;b=Oc(this,a,b);a=[this.url,b].join("/")+"?token="+this.token;this.ua&&this.ua.isEnabled()&&(a+="&profiling=1");b=[b,this.yb,this.token].join("/");this.yb+=1;c=kh("DIV",{id:b});var d=(new Date).getTime()/1E3;this.Ab.push(b);Ml(Tq).send(b,a,d,u(this.dl,this,c,b));Vp(this);return c};h.Kc=function(){return this.Ab.length};
|
|
701
701
|
h.releaseTile=function(a){Ml(Tq).abort(a.id);if(void 0!==a.firstElementChild)var b=a.firstElementChild;else for(b=a.firstChild;b&&1!=b.nodeType;)b=b.nextSibling;this.xg.remove(b);""!==a.id&&(this.wg.remove(a.id),this.ua&&this.ua.ul(a.id))};h.setOpacity=function(a){this.Sf=a;var b=this.xg.Da();uc(b,function(c){fq(c,a)})};
|
|
702
|
-
h.dl=function(a,b,c,d){"error"==c.type?(ab(this.Ab,b),this.wg.add(b),this.dispatchEvent(c)):(ab(this.Ab,b),c.target&&"load"==c.type&&(c=c.target,this.xg.add(c),1!=this.Sf&&fq(c,this.Sf),a.appendChild(c)),Vp(this));this.ua&&null!==d&&this.ua.Rk(b,d)};w("ee.MapLayerOverlay",Yq);Yq.prototype.removeTileCallback=Yq.prototype.cg;Yq.prototype.addTileCallback=Yq.prototype.Ne;Yq.prototype.getTile=Yq.prototype.getTile;Yq.prototype.setOpacity=Yq.prototype.setOpacity;Yq.prototype.releaseTile=Yq.prototype.releaseTile;(function(){var a={},b="ee.ApiFunction.
|
|
703
|
-
c=[["name"],["name"
|
|
704
|
-
"collection opt_description
|
|
705
|
-
"
|
|
706
|
-
"
|
|
707
|
-
["opt_callback"],["
|
|
708
|
-
"
|
|
709
|
-
["
|
|
710
|
-
"
|
|
711
|
-
["
|
|
712
|
-
|
|
713
|
-
"
|
|
714
|
-
["
|
|
715
|
-
|
|
716
|
-
|
|
702
|
+
h.dl=function(a,b,c,d){"error"==c.type?(ab(this.Ab,b),this.wg.add(b),this.dispatchEvent(c)):(ab(this.Ab,b),c.target&&"load"==c.type&&(c=c.target,this.xg.add(c),1!=this.Sf&&fq(c,this.Sf),a.appendChild(c)),Vp(this));this.ua&&null!==d&&this.ua.Rk(b,d)};w("ee.MapLayerOverlay",Yq);Yq.prototype.removeTileCallback=Yq.prototype.cg;Yq.prototype.addTileCallback=Yq.prototype.Ne;Yq.prototype.getTile=Yq.prototype.getTile;Yq.prototype.setOpacity=Yq.prototype.setOpacity;Yq.prototype.releaseTile=Yq.prototype.releaseTile;(function(){var a={},b="ee.ApiFunction._apply ee.ApiFunction.lookup ee.ApiFunction._call ee.batch.Export.image.toCloudStorage ee.batch.Export.videoMap.toCloudStorage ee.batch.Export.table.toFeatureView ee.batch.Export.table.toBigQuery ee.batch.Export.image.toDrive ee.batch.Export.map.toCloudStorage ee.batch.Export.video.toCloudStorage ee.batch.Export.table.toAsset ee.batch.Export.video.toDrive ee.batch.Export.image.toAsset ee.batch.Export.table.toCloudStorage ee.batch.Export.classifier.toAsset ee.batch.Export.table.toDrive ee.Collection.prototype.limit ee.Collection.prototype.sort ee.Collection.prototype.filterMetadata ee.Collection.prototype.filterBounds ee.Collection.prototype.filter ee.Collection.prototype.filterDate ee.Collection.prototype.map ee.Collection.prototype.iterate ee.ComputedObject.prototype.aside ee.ComputedObject.prototype.evaluate ee.ComputedObject.prototype.getInfo ee.ComputedObject.prototype.serialize ee.data.cancelTask ee.data.getThumbId ee.data.getVideoThumbId ee.data.getFilmstripThumbId ee.data.startIngestion ee.data.getTaskStatus ee.data.setAssetAcl ee.data.updateTask ee.data.createFolder ee.data.startProcessing ee.data.getList ee.data.listAssets ee.data.makeThumbUrl ee.data.renameAsset ee.data.setAssetProperties ee.data.authenticateViaOauth ee.data.getMapId ee.data.getTaskList ee.data.copyAsset ee.data.getAssetRootQuota ee.data.authenticate ee.data.getDownloadId ee.data.startTableIngestion ee.data.makeDownloadUrl ee.data.deleteAsset ee.data.getTileUrl ee.data.listImages ee.data.getWorkloadTag ee.data.getTaskListWithLimit ee.data.cancelOperation ee.data.listOperations ee.data.listBuckets ee.data.getAssetAcl ee.data.getTableDownloadId ee.data.getAsset ee.data.makeTableDownloadUrl ee.data.authenticateViaPopup ee.data.getFeatureViewTilesKey ee.data.setWorkloadTag ee.data.getAssetRoots ee.data.getInfo ee.data.listFeatures ee.data.setDefaultWorkloadTag ee.data.getOperation ee.data.createAssetHome ee.data.newTaskId ee.data.authenticateViaPrivateKey ee.data.resetWorkloadTag ee.data.createAsset ee.data.computeValue ee.data.updateAsset ee.Date ee.Deserializer.fromCloudApiJSON ee.Deserializer.decodeCloudApi ee.Deserializer.decode ee.Deserializer.fromJSON ee.Dictionary ee.TILE_SIZE ee.initialize ee.call ee.reset ee.Algorithms ee.apply ee.InitState ee.Element.prototype.set ee.Encodable.SourceFrame ee.Feature.prototype.getMap ee.Feature.prototype.getInfo ee.Feature.prototype.getMapId ee.Feature ee.FeatureCollection.prototype.getMapId ee.FeatureCollection.prototype.getDownloadURL ee.FeatureCollection.prototype.getMap ee.FeatureCollection.prototype.getInfo ee.FeatureCollection.prototype.select ee.FeatureCollection ee.Filter.lt ee.Filter.gt ee.Filter.or ee.Filter.lte ee.Filter.gte ee.Filter ee.Filter.eq ee.Filter.date ee.Filter.metadata ee.Filter.and ee.Filter.bounds ee.Filter.inList ee.Filter.prototype.not ee.Filter.neq ee.Function.prototype.call ee.Function.prototype.apply ee.Geometry.MultiLineString ee.Geometry ee.Geometry.Point ee.Geometry.LinearRing ee.Geometry.BBox ee.Geometry.MultiPoint ee.Geometry.LineString ee.Geometry.MultiPolygon ee.Geometry.Rectangle ee.Geometry.prototype.serialize ee.Geometry.prototype.toGeoJSON ee.Geometry.prototype.toGeoJSONString ee.Geometry.Polygon ee.Image.prototype.clip ee.Image ee.Image.prototype.expression ee.Image.prototype.getMap ee.Image.prototype.getThumbURL ee.Image.rgb ee.Image.cat ee.Image.prototype.getMapId ee.Image.prototype.select ee.Image.prototype.getInfo ee.Image.prototype.rename ee.Image.prototype.getDownloadURL ee.Image.prototype.getThumbId ee.ImageCollection.prototype.getFilmstripThumbURL ee.ImageCollection ee.ImageCollection.prototype.getMap ee.ImageCollection.prototype.getMapId ee.ImageCollection.prototype.first ee.ImageCollection.prototype.getInfo ee.ImageCollection.prototype.select ee.ImageCollection.prototype.linkCollection ee.ImageCollection.prototype.getVideoThumbURL ee.List ee.Number ee.Serializer.toReadableCloudApiJSON ee.Serializer.encodeCloudApiPretty ee.Serializer.encode ee.Serializer.toJSON ee.Serializer.encodeCloudApi ee.Serializer.toCloudApiJSON ee.Serializer.toReadableJSON ee.String ee.Terrain".split(" "),
|
|
703
|
+
c=[["name","namedArgs"],["name"],["name","var_args"],"image opt_description opt_bucket opt_fileNamePrefix opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize opt_fileDimensions opt_skipEmptyTiles opt_fileFormat opt_formatOptions".split(" "),"collection opt_description opt_bucket opt_fileNamePrefix opt_framesPerSecond opt_writePublicTiles opt_minZoom opt_maxZoom opt_scale opt_region opt_skipEmptyTiles opt_minTimeMachineZoomSubset opt_maxTimeMachineZoomSubset opt_tileWidth opt_tileHeight opt_tileStride opt_videoFormat opt_version opt_mapsApiKey opt_bucketCorsUris".split(" "),
|
|
704
|
+
"collection opt_description opt_assetId opt_maxFeaturesPerTile opt_thinningStrategy opt_thinningRanking opt_zOrderRanking".split(" "),"collection opt_description opt_table opt_overwrite opt_append opt_selectors opt_maxVertices".split(" "),"image opt_description opt_folder opt_fileNamePrefix opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize opt_fileDimensions opt_skipEmptyTiles opt_fileFormat opt_formatOptions".split(" "),"image opt_description opt_bucket opt_fileFormat opt_path opt_writePublicTiles opt_scale opt_maxZoom opt_minZoom opt_region opt_skipEmptyTiles opt_mapsApiKey opt_bucketCorsUris".split(" "),
|
|
705
|
+
"collection opt_description opt_bucket opt_fileNamePrefix opt_framesPerSecond opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_maxFrames".split(" "),["collection","opt_description","opt_assetId","opt_maxVertices"],"collection opt_description opt_folder opt_fileNamePrefix opt_framesPerSecond opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_maxFrames".split(" "),"image opt_description opt_assetId opt_pyramidingPolicy opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize".split(" "),
|
|
706
|
+
"collection opt_description opt_bucket opt_fileNamePrefix opt_fileFormat opt_selectors opt_maxVertices".split(" "),["classifier","opt_description","opt_assetId"],"collection opt_description opt_folder opt_fileNamePrefix opt_fileFormat opt_selectors opt_maxVertices".split(" "),["max","opt_property","opt_ascending"],["property","opt_ascending"],["name","operator","value"],["geometry"],["filter"],["start","opt_end"],["algorithm","opt_dropNulls"],["algorithm","opt_first"],["func","var_args"],["callback"],
|
|
707
|
+
["opt_callback"],["legacy"],["taskId","opt_callback"],["params","opt_callback"],["params","opt_callback"],["params","opt_callback"],["taskId","request","opt_callback"],["taskId","opt_callback"],["assetId","aclUpdate","opt_callback"],["taskId","action","opt_callback"],["path","opt_force","opt_callback"],["taskId","params","opt_callback"],["params","opt_callback"],["parent","opt_params","opt_callback"],["id"],["sourceId","destinationId","opt_callback"],["assetId","properties","opt_callback"],"clientId success opt_error opt_extraScopes opt_onImmediateFailed opt_suppressDefaultScopes".split(" "),
|
|
708
|
+
["params","opt_callback"],["opt_callback"],["sourceId","destinationId","opt_overwrite","opt_callback"],["rootId","opt_callback"],["clientId","success","opt_error","opt_extraScopes","opt_onImmediateFailed"],["params","opt_callback"],["taskId","request","opt_callback"],["id"],["assetId","opt_callback"],["id","x","y","z"],["parent","opt_params","opt_callback"],[],["opt_limit","opt_callback"],["operationName","opt_callback"],["opt_limit","opt_callback"],["project","opt_callback"],["assetId","opt_callback"],
|
|
709
|
+
["params","opt_callback"],["id","opt_callback"],["id"],["opt_success","opt_error"],["params","opt_callback"],["tag"],["opt_callback"],["id","opt_callback"],["asset","params","opt_callback"],["tag"],["operationName","opt_callback"],["requestedId","opt_callback"],["opt_count","opt_callback"],["privateKey","opt_success","opt_error","opt_extraScopes","opt_suppressDefaultScopes"],["opt_resetDefault"],["value","opt_path","opt_force","opt_properties","opt_callback"],["obj","opt_callback"],["assetId","asset",
|
|
710
|
+
"updateFields","opt_callback"],["date","opt_tz"],["json"],["json"],["json"],["json"],["opt_dict"],[],"opt_baseurl opt_tileurl opt_successCallback opt_errorCallback opt_xsrfToken opt_project".split(" "),["func","var_args"],[],[],["func","namedArgs"],[],["var_args"],[],["opt_visParams","opt_callback"],["opt_callback"],["opt_visParams","opt_callback"],["geometry","opt_properties"],["opt_visParams","opt_callback"],["opt_format","opt_selectors","opt_filename","opt_callback"],["opt_visParams","opt_callback"],
|
|
711
|
+
["opt_callback"],["propertySelectors","opt_newProperties","opt_retainGeometry"],["args","opt_column"],["name","value"],["name","value"],["var_args"],["name","value"],["name","value"],["opt_filter"],["name","value"],["start","opt_end"],["name","operator","value"],["var_args"],["geometry","opt_errorMargin"],["opt_leftField","opt_rightValue","opt_rightField","opt_leftValue"],[],["name","value"],["var_args"],["namedArgs"],["coords","opt_proj","opt_geodesic","opt_maxError"],["geoJson","opt_proj","opt_geodesic",
|
|
712
|
+
"opt_evenOdd"],["coords","opt_proj"],["coords","opt_proj","opt_geodesic","opt_maxError"],["west","south","east","north"],["coords","opt_proj"],["coords","opt_proj","opt_geodesic","opt_maxError"],["coords","opt_proj","opt_geodesic","opt_maxError","opt_evenOdd"],["coords","opt_proj","opt_geodesic","opt_evenOdd"],["legacy"],[],[],["coords","opt_proj","opt_geodesic","opt_maxError","opt_evenOdd"],["geometry"],["opt_args"],["expression","opt_map"],["opt_visParams","opt_callback"],["params","opt_callback"],
|
|
713
|
+
["r","g","b"],["var_args"],["opt_visParams","opt_callback"],["var_args"],["opt_callback"],["var_args"],["params","opt_callback"],["params","opt_callback"],["params","opt_callback"],["args"],["opt_visParams","opt_callback"],["opt_visParams","opt_callback"],[],["opt_callback"],["selectors","opt_names"],["imageCollection","opt_linkedBands","opt_linkedProperties","opt_matchPropertyName"],["params","opt_callback"],["list"],["number"],["obj"],["obj"],["obj","opt_isCompound"],["obj"],["obj"],["obj"],["obj"],
|
|
714
|
+
["string"],[]];[qn,pn,P,Qo,$o,Wo,Xo,Ro,So,Yo,Vo,Zo,Oo,To,ap,Uo,W.prototype.limit,W.prototype.sort,W.prototype.nf,W.prototype.yh,W.prototype.filter,W.prototype.mf,W.prototype.map,W.prototype.Nh,N.prototype.Hg,N.prototype.evaluate,N.prototype.V,N.prototype.va,sm,$l,am,bm,Dm,lm,Vm,rm,Pm,zm,Im,Jm,cm,Qm,Wm,Ol,Vl,nm,Rm,Xm,Pl,em,Fm,fm,Sm,Wl,Km,Tl,mm,pm,om,Lm,Tm,gm,Gm,hm,Nl,Xl,Zm,Mm,Gm,Yl,$m,qm,Nm,im,Ql,an,Om,Zl,Um,rp,Ap,wp,up,vp,Bp,256,Kp,Pp,Np,Mp,Qp,Op,T.prototype.set,lk,X.prototype.getMap,X.prototype.V,
|
|
715
|
+
X.prototype.S,X,Y.prototype.S,Y.prototype.sb,Y.prototype.getMap,Y.prototype.V,Y.prototype.select,Y,fo,ho,ko,io,go,V,co,lo,oo,jo,no,mo,V.prototype.sc,eo,kn.prototype.call,kn.prototype.apply,Tn,U,Jn,Sn,On,Mn,Rn,Vn,Nn,U.prototype.va,U.prototype.me,U.prototype.zg,Un,M.prototype.clip,M,M.prototype.l,M.prototype.getMap,M.prototype.wf,Bo,Co,M.prototype.S,M.prototype.select,M.prototype.V,M.prototype.wi,M.prototype.sb,M.prototype.Jd,Z.prototype.uf,Z,Z.prototype.getMap,Z.prototype.S,Z.prototype.first,Z.prototype.V,
|
|
716
|
+
Z.prototype.select,Z.prototype.Gf,Z.prototype.xf,Do,hp,sl,ql,gl,hl,ml,rl,jl,kp,Ep].forEach(function(d,e){d&&(a[d.toString()]={name:b[e],paramNames:c[e]})});r.EXPORTED_FN_INFO=a})();}).call(this);
|
package/build/ee_api_js_debug.js
CHANGED
|
@@ -1248,6 +1248,7 @@ goog.readToggleInternalDoNotCallDirectly = function(name) {
|
|
|
1248
1248
|
};
|
|
1249
1249
|
goog.TOGGLE_VAR_ = "_F_toggles";
|
|
1250
1250
|
goog.TOGGLES_ = goog.global[goog.TOGGLE_VAR_] || [];
|
|
1251
|
+
goog.LEGACY_NAMESPACE_OBJECT_ = goog.global;
|
|
1251
1252
|
goog.provide = function(name) {
|
|
1252
1253
|
if (goog.isInModuleLoader_()) {
|
|
1253
1254
|
throw Error("goog.provide cannot be used within a module.");
|
|
@@ -1256,7 +1257,7 @@ goog.provide = function(name) {
|
|
|
1256
1257
|
};
|
|
1257
1258
|
goog.constructNamespace_ = function(name, object, overwriteImplicit) {
|
|
1258
1259
|
var namespace;
|
|
1259
|
-
goog.exportPath_(name, object, overwriteImplicit);
|
|
1260
|
+
goog.exportPath_(name, object, overwriteImplicit, goog.LEGACY_NAMESPACE_OBJECT_);
|
|
1260
1261
|
};
|
|
1261
1262
|
goog.NONCE_PATTERN_ = /^[\w+/_-]+[=]{0,2}$/;
|
|
1262
1263
|
goog.getScriptNonce_ = function(opt_window) {
|
|
@@ -1314,7 +1315,7 @@ goog.isInEs6ModuleLoader_ = function() {
|
|
|
1314
1315
|
if (goog.moduleLoaderState_ && goog.moduleLoaderState_.type == goog.ModuleType.ES6) {
|
|
1315
1316
|
return !0;
|
|
1316
1317
|
}
|
|
1317
|
-
var jscomp = goog.
|
|
1318
|
+
var jscomp = goog.LEGACY_NAMESPACE_OBJECT_.$jscomp;
|
|
1318
1319
|
return jscomp ? "function" != typeof jscomp.getCurrentModulePath ? !1 : !!jscomp.getCurrentModulePath() : !1;
|
|
1319
1320
|
};
|
|
1320
1321
|
goog.module.declareLegacyNamespace = function() {
|
|
@@ -1324,7 +1325,7 @@ goog.declareModuleId = function(namespace) {
|
|
|
1324
1325
|
if (goog.moduleLoaderState_) {
|
|
1325
1326
|
goog.moduleLoaderState_.moduleName = namespace;
|
|
1326
1327
|
} else {
|
|
1327
|
-
var jscomp = goog.
|
|
1328
|
+
var jscomp = goog.LEGACY_NAMESPACE_OBJECT_.$jscomp;
|
|
1328
1329
|
if (!jscomp || "function" != typeof jscomp.getCurrentModulePath) {
|
|
1329
1330
|
throw Error('Module with namespace "' + namespace + '" has been loaded incorrectly.');
|
|
1330
1331
|
}
|
|
@@ -2978,8 +2979,8 @@ goog.flags.USE_USER_AGENT_CLIENT_HINTS = module$exports$closure$flags$flags$2eto
|
|
|
2978
2979
|
goog.flags.ASYNC_THROW_ON_UNICODE_TO_BYTE = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__async_throw_on_unicode_to_byte__enable : goog.readFlagInternalDoNotUseOrElse(899588437, !1);
|
|
2979
2980
|
goog.flags.CLIENT_ONLY_WIZ_ATTRIBUTE_SANITIZATION = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__override_disable_toggles || !module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__client_only_wiz_attribute_sanitization__disable : goog.readFlagInternalDoNotUseOrElse(533565600, !0);
|
|
2980
2981
|
goog.flags.CLIENT_ONLY_WIZ_HOOK_CONTEXT_FIX = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__client_only_wiz_hook_context_fix__enable : goog.readFlagInternalDoNotUseOrElse(563486499, !1);
|
|
2981
|
-
goog.flags.JSPB_DISABLE_SERIALIZING_EMPTY_REPEATED_AND_MAP_FIELDS = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ?
|
|
2982
|
-
|
|
2982
|
+
goog.flags.JSPB_DISABLE_SERIALIZING_EMPTY_REPEATED_AND_MAP_FIELDS = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__override_disable_toggles || !module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_disable_serializing_empty_repeated_and_map_fields__disable : goog.readFlagInternalDoNotUseOrElse(572417392,
|
|
2983
|
+
!0);
|
|
2983
2984
|
goog.flags.TESTONLY_DISABLED_FLAG = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_disabled_flag__enable : goog.readFlagInternalDoNotUseOrElse(2147483644, !1);
|
|
2984
2985
|
goog.flags.TESTONLY_DEBUG_FLAG = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? goog.DEBUG || module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_debug_flag__enable : goog.readFlagInternalDoNotUseOrElse(2147483645, goog.DEBUG);
|
|
2985
2986
|
goog.flags.TESTONLY_STAGING_FLAG = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? goog.FLAGS_STAGING_DEFAULT && (module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__override_disable_toggles || !module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_staging_flag__disable) : goog.readFlagInternalDoNotUseOrElse(2147483646, module$contents$goog$flags_STAGING);
|
|
@@ -6061,7 +6062,7 @@ module$exports$eeapiclient$domain_object.strictDeserialize = function(type, raw)
|
|
|
6061
6062
|
};
|
|
6062
6063
|
var module$contents$eeapiclient$domain_object_CopyValueGetter, module$contents$eeapiclient$domain_object_CopyValueSetter, module$contents$eeapiclient$domain_object_CopyConstructor, module$contents$eeapiclient$domain_object_CopyInstanciator;
|
|
6063
6064
|
function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter, valueSetter, copyInstanciator, targetConstructor) {
|
|
6064
|
-
for (var target = copyInstanciator(targetConstructor), metadata = module$contents$eeapiclient$domain_object_deepCopyMetadata(source, target), arrays = metadata.arrays || {}, objects = metadata.objects || {}, objectMaps = metadata.objectMaps || {}, $jscomp$iter$19 = $jscomp.makeIterator(metadata.keys || []), $jscomp$key$key = $jscomp$iter$19.next(), $jscomp$loop$
|
|
6065
|
+
for (var target = copyInstanciator(targetConstructor), metadata = module$contents$eeapiclient$domain_object_deepCopyMetadata(source, target), arrays = metadata.arrays || {}, objects = metadata.objects || {}, objectMaps = metadata.objectMaps || {}, $jscomp$iter$19 = $jscomp.makeIterator(metadata.keys || []), $jscomp$key$key = $jscomp$iter$19.next(), $jscomp$loop$m192531680$0 = {}; !$jscomp$key$key.done; $jscomp$loop$m192531680$0 = {mapMetadata:$jscomp$loop$m192531680$0.mapMetadata},
|
|
6065
6066
|
$jscomp$key$key = $jscomp$iter$19.next()) {
|
|
6066
6067
|
var key = $jscomp$key$key.value, value = valueGetter(key, source);
|
|
6067
6068
|
if (null != value) {
|
|
@@ -6074,11 +6075,11 @@ function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter,
|
|
|
6074
6075
|
} else if (objects.hasOwnProperty(key)) {
|
|
6075
6076
|
copy = module$contents$eeapiclient$domain_object_deepCopyValue(value, valueGetter, valueSetter, copyInstanciator, !1, !0, objects[key]);
|
|
6076
6077
|
} else if (objectMaps.hasOwnProperty(key)) {
|
|
6077
|
-
$jscomp$loop$
|
|
6078
|
+
$jscomp$loop$m192531680$0.mapMetadata = objectMaps[key], copy = $jscomp$loop$m192531680$0.mapMetadata.isPropertyArray ? value.map(function($jscomp$loop$m192531680$0) {
|
|
6078
6079
|
return function(v) {
|
|
6079
|
-
return module$contents$eeapiclient$domain_object_deepCopyObjectMap(v, $jscomp$loop$
|
|
6080
|
+
return module$contents$eeapiclient$domain_object_deepCopyObjectMap(v, $jscomp$loop$m192531680$0.mapMetadata, valueGetter, valueSetter, copyInstanciator);
|
|
6080
6081
|
};
|
|
6081
|
-
}($jscomp$loop$
|
|
6082
|
+
}($jscomp$loop$m192531680$0)) : module$contents$eeapiclient$domain_object_deepCopyObjectMap(value, $jscomp$loop$m192531680$0.mapMetadata, valueGetter, valueSetter, copyInstanciator);
|
|
6082
6083
|
} else if (Array.isArray(value)) {
|
|
6083
6084
|
if (metadata.emptyArrayIsUnset && 0 === value.length) {
|
|
6084
6085
|
continue;
|
|
@@ -6124,39 +6125,39 @@ function module$contents$eeapiclient$domain_object_deepEquals(serializable1, ser
|
|
|
6124
6125
|
if (!(module$contents$eeapiclient$domain_object_sameKeys(keys1, metadata2.keys || []) && module$contents$eeapiclient$domain_object_sameKeys(arrays1, arrays2) && module$contents$eeapiclient$domain_object_sameKeys(objects1, objects2) && module$contents$eeapiclient$domain_object_sameKeys(objectMaps1, objectMaps2))) {
|
|
6125
6126
|
return !1;
|
|
6126
6127
|
}
|
|
6127
|
-
for (var $jscomp$iter$21 = $jscomp.makeIterator(keys1), $jscomp$key$key = $jscomp$iter$21.next(), $jscomp$loop$
|
|
6128
|
+
for (var $jscomp$iter$21 = $jscomp.makeIterator(keys1), $jscomp$key$key = $jscomp$iter$21.next(), $jscomp$loop$m192531680$1 = {}; !$jscomp$key$key.done; $jscomp$loop$m192531680$1 = {value2$jscomp$7:$jscomp$loop$m192531680$1.value2$jscomp$7, mapMetadata$jscomp$2:$jscomp$loop$m192531680$1.mapMetadata$jscomp$2}, $jscomp$key$key = $jscomp$iter$21.next()) {
|
|
6128
6129
|
var key = $jscomp$key$key.value, has1 = module$contents$eeapiclient$domain_object_hasAndIsNotEmptyArray(serializable1, key, metadata1), has2 = module$contents$eeapiclient$domain_object_hasAndIsNotEmptyArray(serializable2, key, metadata2);
|
|
6129
6130
|
if (has1 !== has2) {
|
|
6130
6131
|
return !1;
|
|
6131
6132
|
}
|
|
6132
6133
|
if (has1) {
|
|
6133
6134
|
var value1 = serializable1.Serializable$get(key);
|
|
6134
|
-
$jscomp$loop$
|
|
6135
|
+
$jscomp$loop$m192531680$1.value2$jscomp$7 = serializable2.Serializable$get(key);
|
|
6135
6136
|
if (arrays1.hasOwnProperty(key)) {
|
|
6136
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
6137
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$1.value2$jscomp$7, !0, !0)) {
|
|
6137
6138
|
return !1;
|
|
6138
6139
|
}
|
|
6139
6140
|
} else if (objects1.hasOwnProperty(key)) {
|
|
6140
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
6141
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$1.value2$jscomp$7, !1, !0)) {
|
|
6141
6142
|
return !1;
|
|
6142
6143
|
}
|
|
6143
6144
|
} else if (objectMaps1.hasOwnProperty(key)) {
|
|
6144
|
-
if ($jscomp$loop$
|
|
6145
|
-
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, $jscomp$loop$
|
|
6145
|
+
if ($jscomp$loop$m192531680$1.mapMetadata$jscomp$2 = objectMaps1[key], $jscomp$loop$m192531680$1.mapMetadata$jscomp$2.isPropertyArray) {
|
|
6146
|
+
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, $jscomp$loop$m192531680$1.value2$jscomp$7) || value1.some(function($jscomp$loop$m192531680$1) {
|
|
6146
6147
|
return function(v1, i) {
|
|
6147
|
-
return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap(v1, $jscomp$loop$
|
|
6148
|
+
return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap(v1, $jscomp$loop$m192531680$1.value2$jscomp$7[i], $jscomp$loop$m192531680$1.mapMetadata$jscomp$2);
|
|
6148
6149
|
};
|
|
6149
|
-
}($jscomp$loop$
|
|
6150
|
+
}($jscomp$loop$m192531680$1))) {
|
|
6150
6151
|
return !1;
|
|
6151
6152
|
}
|
|
6152
|
-
} else if (!module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, $jscomp$loop$
|
|
6153
|
+
} else if (!module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, $jscomp$loop$m192531680$1.value2$jscomp$7, $jscomp$loop$m192531680$1.mapMetadata$jscomp$2)) {
|
|
6153
6154
|
return !1;
|
|
6154
6155
|
}
|
|
6155
6156
|
} else if (Array.isArray(value1)) {
|
|
6156
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
6157
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$1.value2$jscomp$7, !0, !1)) {
|
|
6157
6158
|
return !1;
|
|
6158
6159
|
}
|
|
6159
|
-
} else if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
6160
|
+
} else if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$1.value2$jscomp$7, !1, !1)) {
|
|
6160
6161
|
return !1;
|
|
6161
6162
|
}
|
|
6162
6163
|
}
|
|
@@ -6556,9 +6557,9 @@ goog.string.Const.prototype.implementsGoogStringTypedString = !0;
|
|
|
6556
6557
|
goog.string.Const.prototype.getTypedStringValue = function() {
|
|
6557
6558
|
return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_;
|
|
6558
6559
|
};
|
|
6559
|
-
goog.
|
|
6560
|
+
goog.string.Const.prototype.toString = function() {
|
|
6560
6561
|
return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_;
|
|
6561
|
-
}
|
|
6562
|
+
};
|
|
6562
6563
|
goog.string.Const.unwrap = function(stringConst) {
|
|
6563
6564
|
if (stringConst instanceof goog.string.Const && stringConst.constructor === goog.string.Const && stringConst.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_ === goog.string.Const.TYPE_MARKER_) {
|
|
6564
6565
|
return stringConst.stringConstValueWithSecurityContract__googStringSecurityPrivate_;
|
|
@@ -7172,9 +7173,6 @@ module$contents$goog$html$SafeHtml_SafeHtml.htmlEscapePreservingNewlinesAndSpace
|
|
|
7172
7173
|
var html = module$contents$goog$html$SafeHtml_SafeHtml.htmlEscape(textOrHtml);
|
|
7173
7174
|
return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.whitespaceEscape(module$contents$goog$html$SafeHtml_SafeHtml.unwrap(html)));
|
|
7174
7175
|
};
|
|
7175
|
-
module$contents$goog$html$SafeHtml_SafeHtml.comment = function(text) {
|
|
7176
|
-
return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("\x3c!--" + goog.string.internal.htmlEscape(text) + "--\x3e");
|
|
7177
|
-
};
|
|
7178
7176
|
module$contents$goog$html$SafeHtml_SafeHtml.create = function(tagName, attributes, content) {
|
|
7179
7177
|
module$contents$goog$html$SafeHtml_SafeHtml.verifyTagName(String(tagName));
|
|
7180
7178
|
return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse(String(tagName), attributes, content);
|
|
@@ -17540,8 +17538,8 @@ function module$contents$safevalues$internals$attribute_impl_unwrapAttributePref
|
|
|
17540
17538
|
throw Error(message);
|
|
17541
17539
|
}
|
|
17542
17540
|
module$exports$safevalues$internals$attribute_impl.unwrapAttributePrefix = module$contents$safevalues$internals$attribute_impl_unwrapAttributePrefix;
|
|
17543
|
-
var $jscomp$templatelit$
|
|
17544
|
-
["\\0"]), $jscomp$templatelit$
|
|
17541
|
+
var $jscomp$templatelit$1274514361$0 = $jscomp.createTemplateTagFirstArg([""]), $jscomp$templatelit$1274514361$1 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"], ["\\0"]), $jscomp$templatelit$1274514361$2 = $jscomp.createTemplateTagFirstArgWithRaw(["\n"], ["\\n"]), $jscomp$templatelit$1274514361$3 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"], ["\\u0000"]), $jscomp$templatelit$1274514361$4 = $jscomp.createTemplateTagFirstArg([""]), $jscomp$templatelit$1274514361$5 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"],
|
|
17542
|
+
["\\0"]), $jscomp$templatelit$1274514361$6 = $jscomp.createTemplateTagFirstArgWithRaw(["\n"], ["\\n"]), $jscomp$templatelit$1274514361$7 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"], ["\\u0000"]), module$contents$safevalues$internals$string_literal_module = module$contents$safevalues$internals$string_literal_module || {id:"third_party/javascript/safevalues/internals/string_literal.closure.js"};
|
|
17545
17543
|
function module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, numExprs) {
|
|
17546
17544
|
if (!module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) || numExprs + 1 !== templateObj.length) {
|
|
17547
17545
|
throw new TypeError("\n ############################## ERROR ##############################\n\n It looks like you are trying to call a template tag function (fn`...`)\n using the normal function syntax (fn(...)), which is not supported.\n\n The functions in the safevalues library are not designed to be called\n like normal functions, and doing so invalidates the security guarantees\n that safevalues provides.\n\n If you are stuck and not sure how to proceed, please reach out to us\n instead through:\n - go/ise-hardening-yaqs (preferred) // LINE-INTERNAL\n - g/ise-hardening // LINE-INTERNAL\n - https://github.com/google/safevalues/issues\n\n ############################## ERROR ##############################");
|
|
@@ -17555,14 +17553,14 @@ function module$contents$safevalues$internals$string_literal_checkTranspiled(fn)
|
|
|
17555
17553
|
return -1 === fn.toString().indexOf("`");
|
|
17556
17554
|
}
|
|
17557
17555
|
var module$contents$safevalues$internals$string_literal_isTranspiled = module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
17558
|
-
return tag($jscomp$templatelit$
|
|
17556
|
+
return tag($jscomp$templatelit$1274514361$0);
|
|
17559
17557
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
17560
|
-
return tag($jscomp$templatelit$
|
|
17558
|
+
return tag($jscomp$templatelit$1274514361$1);
|
|
17561
17559
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
17562
|
-
return tag($jscomp$templatelit$
|
|
17560
|
+
return tag($jscomp$templatelit$1274514361$2);
|
|
17563
17561
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
17564
|
-
return tag($jscomp$templatelit$
|
|
17565
|
-
}), module$contents$safevalues$internals$string_literal_frozenTSA = module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$
|
|
17562
|
+
return tag($jscomp$templatelit$1274514361$3);
|
|
17563
|
+
}), module$contents$safevalues$internals$string_literal_frozenTSA = module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$1274514361$4) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$1274514361$5) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$1274514361$6) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$1274514361$7);
|
|
17566
17564
|
function module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) {
|
|
17567
17565
|
return Array.isArray(templateObj) && Array.isArray(templateObj.raw) && templateObj.length === templateObj.raw.length && (module$contents$safevalues$internals$string_literal_isTranspiled || templateObj !== templateObj.raw) && (module$contents$safevalues$internals$string_literal_isTranspiled && !module$contents$safevalues$internals$string_literal_frozenTSA || module$contents$safevalues$internals$string_literal_checkFrozen(templateObj)) ?
|
|
17568
17566
|
!0 : !1;
|
|
@@ -17588,7 +17586,43 @@ function module$contents$safevalues$builders$document_fragment_builders_safeFrag
|
|
|
17588
17586
|
goog.DEBUG && module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, 0);
|
|
17589
17587
|
return document.createRange().createContextualFragment(module$contents$safevalues$internals$html_impl_unwrapHtml(module$contents$safevalues$internals$html_impl_createHtmlInternal(templateObj[0])));
|
|
17590
17588
|
}
|
|
17591
|
-
;var module$contents$safevalues$
|
|
17589
|
+
;var module$exports$safevalues$builders$style_sheet_builders = {}, module$contents$safevalues$builders$style_sheet_builders_module = module$contents$safevalues$builders$style_sheet_builders_module || {id:"third_party/javascript/safevalues/builders/style_sheet_builders.closure.js"}, module$contents$safevalues$builders$style_sheet_builders_Primitive;
|
|
17590
|
+
module$exports$safevalues$builders$style_sheet_builders.safeStyleRule = function(templateObj) {
|
|
17591
|
+
var rest = $jscomp.getRestArguments.apply(1, arguments);
|
|
17592
|
+
goog.DEBUG && module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, rest.length);
|
|
17593
|
+
for (var stringifiedRule = templateObj[0], i = 0; i < templateObj.length - 1; i++) {
|
|
17594
|
+
stringifiedRule += String(rest[i]), stringifiedRule += templateObj[i + 1];
|
|
17595
|
+
}
|
|
17596
|
+
var doc = document.implementation.createHTMLDocument(""), styleEl = doc.createElement("style");
|
|
17597
|
+
doc.head.appendChild(styleEl);
|
|
17598
|
+
var styleSheet = styleEl.sheet;
|
|
17599
|
+
styleSheet.insertRule(stringifiedRule, 0);
|
|
17600
|
+
if (1 !== styleSheet.cssRules.length) {
|
|
17601
|
+
if (goog.DEBUG) {
|
|
17602
|
+
throw Error("safeStyleRule can be used to construct only 1 CSSStyleRule at a time. Use the concatStyle function to create sheet with several rules. Tried to parse: " + stringifiedRule + ("which has " + styleSheet.cssRules.length + " rules: " + styleSheet.cssRules[0].cssText + " #$% " + styleSheet.cssRules[1].cssText + "."));
|
|
17603
|
+
}
|
|
17604
|
+
} else {
|
|
17605
|
+
var styleSheetRule = styleSheet.cssRules[0];
|
|
17606
|
+
if (styleSheetRule instanceof CSSStyleRule) {
|
|
17607
|
+
return module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal(styleSheetRule.cssText.replace(/</g, "\\3C "));
|
|
17608
|
+
}
|
|
17609
|
+
if (goog.DEBUG) {
|
|
17610
|
+
throw Error("safeStyleRule can be used to construct a CSSStyleRule. @-rules should be constructed with the safeStyleSheet builder. Tried to parse: " + stringifiedRule);
|
|
17611
|
+
}
|
|
17612
|
+
}
|
|
17613
|
+
};
|
|
17614
|
+
module$exports$safevalues$builders$style_sheet_builders.safeStyleSheet = function(templateObj) {
|
|
17615
|
+
goog.DEBUG && module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, 0);
|
|
17616
|
+
var styleSheet = templateObj[0];
|
|
17617
|
+
if (goog.DEBUG && /</.test(styleSheet)) {
|
|
17618
|
+
throw Error("'<' character is forbidden in styleSheet string: " + styleSheet);
|
|
17619
|
+
}
|
|
17620
|
+
return module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal(styleSheet);
|
|
17621
|
+
};
|
|
17622
|
+
module$exports$safevalues$builders$style_sheet_builders.concatStyleSheets = function(sheets) {
|
|
17623
|
+
return module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal(sheets.map(module$contents$safevalues$internals$style_sheet_impl_unwrapStyleSheet).join(""));
|
|
17624
|
+
};
|
|
17625
|
+
var module$contents$safevalues$internals$pure_module = module$contents$safevalues$internals$pure_module || {id:"third_party/javascript/safevalues/internals/pure.closure.js"};
|
|
17592
17626
|
function module$contents$safevalues$internals$pure_pure(valueOf) {
|
|
17593
17627
|
return {valueOf:valueOf}.valueOf();
|
|
17594
17628
|
}
|
|
@@ -17651,7 +17685,9 @@ function module$contents$safevalues$builders$url_builders_trySanitizeUrl(url, al
|
|
|
17651
17685
|
module$exports$safevalues$builders$url_builders.trySanitizeUrl = module$contents$safevalues$builders$url_builders_trySanitizeUrl;
|
|
17652
17686
|
function module$contents$safevalues$builders$url_builders_sanitizeUrl(url, allowedSchemes) {
|
|
17653
17687
|
allowedSchemes = void 0 === allowedSchemes ? module$contents$safevalues$builders$url_builders_DEFAULT_SCHEMES : allowedSchemes;
|
|
17654
|
-
|
|
17688
|
+
var sanitizedUrl = module$contents$safevalues$builders$url_builders_trySanitizeUrl(url, allowedSchemes);
|
|
17689
|
+
void 0 === sanitizedUrl && module$contents$safevalues$builders$url_builders_triggerCallbacks(url.toString());
|
|
17690
|
+
return sanitizedUrl || goog.html.SafeUrl.INNOCUOUS_URL;
|
|
17655
17691
|
}
|
|
17656
17692
|
module$exports$safevalues$builders$url_builders.sanitizeUrl = module$contents$safevalues$builders$url_builders_sanitizeUrl;
|
|
17657
17693
|
function module$contents$safevalues$builders$url_builders_objectUrlFromSafeSource(source) {
|
|
@@ -17792,7 +17828,11 @@ module$exports$safevalues$builders$html_builders.scriptUrlToHtml = function(src,
|
|
|
17792
17828
|
options = void 0 === options ? {} : options;
|
|
17793
17829
|
var unwrappedSrc = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(src).toString(), stringTag = '<script src="' + module$contents$safevalues$builders$html_builders_htmlEscapeToString(unwrappedSrc) + '"';
|
|
17794
17830
|
options.async && (stringTag += " async");
|
|
17831
|
+
options.customElement && (stringTag += ' custom-element="' + module$contents$safevalues$builders$html_builders_htmlEscapeToString(options.customElement) + '"');
|
|
17832
|
+
options.defer && (stringTag += " defer");
|
|
17833
|
+
options.id && (stringTag += ' id="' + module$contents$safevalues$builders$html_builders_htmlEscapeToString(options.id) + '"');
|
|
17795
17834
|
options.nonce && (stringTag += ' nonce="' + module$contents$safevalues$builders$html_builders_htmlEscapeToString(options.nonce) + '"');
|
|
17835
|
+
options.type && (stringTag += ' type="' + module$contents$safevalues$builders$html_builders_htmlEscapeToString(options.type) + '"');
|
|
17796
17836
|
return module$contents$safevalues$internals$html_impl_createHtmlInternal(stringTag + ">\x3c/script>");
|
|
17797
17837
|
};
|
|
17798
17838
|
function module$contents$safevalues$builders$html_builders_htmlEscapeToString(text) {
|
|
@@ -17846,6 +17886,23 @@ module$exports$safevalues$builders$html_builders.createHtml = function(tagName,
|
|
|
17846
17886
|
}
|
|
17847
17887
|
return module$contents$safevalues$internals$html_impl_createHtmlInternal(result);
|
|
17848
17888
|
};
|
|
17889
|
+
module$exports$safevalues$builders$html_builders.styleSheetToHtml = function(styleSheet, attributes) {
|
|
17890
|
+
var combinedAttributes = {};
|
|
17891
|
+
if (attributes) {
|
|
17892
|
+
for (var customAttrNames = Object.keys(attributes), i = 0; i < customAttrNames.length; i++) {
|
|
17893
|
+
var name = customAttrNames[i];
|
|
17894
|
+
if ("type" === name.toLowerCase()) {
|
|
17895
|
+
throw Error(goog.DEBUG ? "Cannot override the 'type' attribute with value " + attributes[name] + "." : "");
|
|
17896
|
+
}
|
|
17897
|
+
combinedAttributes[name] = attributes[name];
|
|
17898
|
+
}
|
|
17899
|
+
}
|
|
17900
|
+
combinedAttributes.type = "text/css";
|
|
17901
|
+
var stringifiedAttributes = module$contents$safevalues$builders$html_builders_stringifyAttributes("style", combinedAttributes);
|
|
17902
|
+
Array.isArray(styleSheet) && (styleSheet = (0,module$exports$safevalues$builders$style_sheet_builders.concatStyleSheets)(styleSheet));
|
|
17903
|
+
var styleContent = module$contents$safevalues$internals$style_sheet_impl_unwrapStyleSheet(styleSheet);
|
|
17904
|
+
return module$contents$safevalues$internals$html_impl_createHtmlInternal("<style " + stringifiedAttributes + ">" + styleContent + "</style>");
|
|
17905
|
+
};
|
|
17849
17906
|
function module$contents$safevalues$builders$html_builders_stringifyAttributes(tagName, attributes) {
|
|
17850
17907
|
for (var result = "", attrNames = Object.keys(attributes), i = 0; i < attrNames.length; i++) {
|
|
17851
17908
|
var name = attrNames[i], value = attributes[name];
|
|
@@ -18152,7 +18209,7 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
18152
18209
|
return !0;
|
|
18153
18210
|
}
|
|
18154
18211
|
for (var $jscomp$iter$34 = $jscomp.makeIterator(conditions), $jscomp$key$ = $jscomp$iter$34.next(); !$jscomp$key$.done; $jscomp$key$ = $jscomp$iter$34.next()) {
|
|
18155
|
-
var $jscomp$destructuring$var35 = $jscomp.makeIterator($jscomp$key$.value), attrName__tsickle_destructured_1 = $jscomp$destructuring$var35.next().value, expectedValues = $jscomp$destructuring$var35.next().value, $jscomp$optchain$
|
|
18212
|
+
var $jscomp$destructuring$var35 = $jscomp.makeIterator($jscomp$key$.value), attrName__tsickle_destructured_1 = $jscomp$destructuring$var35.next().value, expectedValues = $jscomp$destructuring$var35.next().value, $jscomp$optchain$tmpm1803429925$0 = void 0, value = null == ($jscomp$optchain$tmpm1803429925$0 = attrs.getNamedItem(attrName__tsickle_destructured_1)) ? void 0 : $jscomp$optchain$tmpm1803429925$0.value;
|
|
18156
18213
|
if (value && !expectedValues.has(value)) {
|
|
18157
18214
|
return !1;
|
|
18158
18215
|
}
|
|
@@ -18395,8 +18452,16 @@ function module$contents$safevalues$builders$resource_url_builders_toAbsoluteRes
|
|
|
18395
18452
|
module$exports$safevalues$builders$resource_url_builders.toAbsoluteResourceUrl = module$contents$safevalues$builders$resource_url_builders_toAbsoluteResourceUrl;
|
|
18396
18453
|
var module$exports$safevalues$builders$script_builders = {}, module$contents$safevalues$builders$script_builders_module = module$contents$safevalues$builders$script_builders_module || {id:"third_party/javascript/safevalues/builders/script_builders.closure.js"}, module$contents$safevalues$builders$script_builders_Primitive, module$contents$safevalues$builders$script_builders_Serializable;
|
|
18397
18454
|
function module$contents$safevalues$builders$script_builders_safeScript(templateObj) {
|
|
18398
|
-
|
|
18399
|
-
|
|
18455
|
+
var emptyArgs = $jscomp.getRestArguments.apply(1, arguments);
|
|
18456
|
+
if (goog.DEBUG) {
|
|
18457
|
+
if (emptyArgs.some(function(a) {
|
|
18458
|
+
return "" !== a;
|
|
18459
|
+
})) {
|
|
18460
|
+
throw Error("safeScript only allows empty string expressions to enable inline comments.");
|
|
18461
|
+
}
|
|
18462
|
+
module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, emptyArgs.length);
|
|
18463
|
+
}
|
|
18464
|
+
return module$contents$safevalues$internals$script_impl_createScriptInternal(templateObj.join(""));
|
|
18400
18465
|
}
|
|
18401
18466
|
module$exports$safevalues$builders$script_builders.safeScript = module$contents$safevalues$builders$script_builders_safeScript;
|
|
18402
18467
|
function module$contents$safevalues$builders$script_builders_concatScripts(scripts) {
|
|
@@ -18453,42 +18518,6 @@ function module$contents$safevalues$builders$style_builders_concatStyles(styles)
|
|
|
18453
18518
|
return module$contents$safevalues$internals$style_impl_createStyleInternal(styles.map(module$contents$safevalues$internals$style_impl_unwrapStyle).join(""));
|
|
18454
18519
|
}
|
|
18455
18520
|
module$exports$safevalues$builders$style_builders.concatStyles = module$contents$safevalues$builders$style_builders_concatStyles;
|
|
18456
|
-
var module$exports$safevalues$builders$style_sheet_builders = {}, module$contents$safevalues$builders$style_sheet_builders_module = module$contents$safevalues$builders$style_sheet_builders_module || {id:"third_party/javascript/safevalues/builders/style_sheet_builders.closure.js"}, module$contents$safevalues$builders$style_sheet_builders_Primitive;
|
|
18457
|
-
module$exports$safevalues$builders$style_sheet_builders.safeStyleRule = function(templateObj) {
|
|
18458
|
-
var rest = $jscomp.getRestArguments.apply(1, arguments);
|
|
18459
|
-
goog.DEBUG && module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, rest.length);
|
|
18460
|
-
for (var stringifiedRule = templateObj[0], i = 0; i < templateObj.length - 1; i++) {
|
|
18461
|
-
stringifiedRule += String(rest[i]), stringifiedRule += templateObj[i + 1];
|
|
18462
|
-
}
|
|
18463
|
-
var doc = document.implementation.createHTMLDocument(""), styleEl = doc.createElement("style");
|
|
18464
|
-
doc.head.appendChild(styleEl);
|
|
18465
|
-
var styleSheet = styleEl.sheet;
|
|
18466
|
-
styleSheet.insertRule(stringifiedRule, 0);
|
|
18467
|
-
if (1 !== styleSheet.cssRules.length) {
|
|
18468
|
-
if (goog.DEBUG) {
|
|
18469
|
-
throw Error("safeStyleRule can be used to construct only 1 CSSStyleRule at a time. Use the concatStyle function to create sheet with several rules. Tried to parse: " + stringifiedRule + ("which has " + styleSheet.cssRules.length + " rules: " + styleSheet.cssRules[0].cssText + " #$% " + styleSheet.cssRules[1].cssText + "."));
|
|
18470
|
-
}
|
|
18471
|
-
} else {
|
|
18472
|
-
var styleSheetRule = styleSheet.cssRules[0];
|
|
18473
|
-
if (styleSheetRule instanceof CSSStyleRule) {
|
|
18474
|
-
return module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal(styleSheetRule.cssText.replace(/</g, "\\3C "));
|
|
18475
|
-
}
|
|
18476
|
-
if (goog.DEBUG) {
|
|
18477
|
-
throw Error("safeStyleRule can be used to construct a CSSStyleRule. @-rules should be constructed with the safeStyleSheet builder. Tried to parse: " + stringifiedRule);
|
|
18478
|
-
}
|
|
18479
|
-
}
|
|
18480
|
-
};
|
|
18481
|
-
module$exports$safevalues$builders$style_sheet_builders.safeStyleSheet = function(templateObj) {
|
|
18482
|
-
goog.DEBUG && module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, 0);
|
|
18483
|
-
var styleSheet = templateObj[0];
|
|
18484
|
-
if (goog.DEBUG && /</.test(styleSheet)) {
|
|
18485
|
-
throw Error("'<' character is forbidden in styleSheet string: " + styleSheet);
|
|
18486
|
-
}
|
|
18487
|
-
return module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal(styleSheet);
|
|
18488
|
-
};
|
|
18489
|
-
module$exports$safevalues$builders$style_sheet_builders.concatStyleSheets = function(sheets) {
|
|
18490
|
-
return module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal(sheets.map(module$contents$safevalues$internals$style_sheet_impl_unwrapStyleSheet).join(""));
|
|
18491
|
-
};
|
|
18492
18521
|
var module$exports$safevalues$reporting$reporting = {}, module$contents$safevalues$reporting$reporting_module = module$contents$safevalues$reporting$reporting_module || {id:"third_party/javascript/safevalues/reporting/reporting.closure.js"}, module$contents$safevalues$reporting$reporting_REPORTING_ID_PREFIX_TO_SAMPLING_RATE = {0:1, 1:1}, module$contents$safevalues$reporting$reporting_REPORTING_ID_PREFIX_TO_HEARTBEAT_RATE =
|
|
18493
18522
|
{0:.1, 1:.1};
|
|
18494
18523
|
module$exports$safevalues$reporting$reporting.ReportingOptions = function() {
|
|
@@ -18529,12 +18558,12 @@ function module$contents$safevalues$reporting$reporting_isChangedBySanitizing(s,
|
|
|
18529
18558
|
}
|
|
18530
18559
|
try {
|
|
18531
18560
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_lenientlySanitizeHtmlAssertUnchanged(s);
|
|
18532
|
-
} catch ($jscomp$unused$catch$
|
|
18561
|
+
} catch ($jscomp$unused$catch$442189172$0) {
|
|
18533
18562
|
return module$contents$safevalues$reporting$reporting_reportLegacyConversion(options, module$contents$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_RELAXED_SANITIZING), !0;
|
|
18534
18563
|
}
|
|
18535
18564
|
try {
|
|
18536
18565
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtmlAssertUnchanged(s);
|
|
18537
|
-
} catch ($jscomp$unused$catch$
|
|
18566
|
+
} catch ($jscomp$unused$catch$442189172$1) {
|
|
18538
18567
|
return module$contents$safevalues$reporting$reporting_reportLegacyConversion(options, module$contents$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_SANITIZING), !0;
|
|
18539
18568
|
}
|
|
18540
18569
|
return !1;
|
|
@@ -18619,6 +18648,7 @@ module$exports$safevalues$index.unwrapUrl = module$contents$safevalues$internals
|
|
|
18619
18648
|
module$exports$safevalues$index.reportOnlyHtmlPassthrough = module$contents$safevalues$reporting$reporting_reportOnlyHtmlPassthrough;
|
|
18620
18649
|
module$exports$safevalues$index.HtmlFormatter = module$exports$safevalues$builders$html_formatter.HtmlFormatter;
|
|
18621
18650
|
module$exports$safevalues$index.createHtml = module$exports$safevalues$builders$html_builders.createHtml;
|
|
18651
|
+
module$exports$safevalues$index.styleSheetToHtml = module$exports$safevalues$builders$html_builders.styleSheetToHtml;
|
|
18622
18652
|
module$exports$safevalues$index.safeStyleRule = module$exports$safevalues$builders$style_sheet_builders.safeStyleRule;
|
|
18623
18653
|
safevalues.safeAttrPrefix = module$contents$safevalues$builders$attribute_builders_safeAttrPrefix;
|
|
18624
18654
|
safevalues.safeFragment = module$contents$safevalues$builders$document_fragment_builders_safeFragment;
|
|
@@ -18684,12 +18714,13 @@ safevalues.unwrapUrl = module$contents$safevalues$internals$url_impl_unwrapUrl;
|
|
|
18684
18714
|
safevalues.reportOnlyHtmlPassthrough = module$contents$safevalues$reporting$reporting_reportOnlyHtmlPassthrough;
|
|
18685
18715
|
safevalues.HtmlFormatter = module$exports$safevalues$builders$html_formatter.HtmlFormatter;
|
|
18686
18716
|
safevalues.createHtml = module$exports$safevalues$index.createHtml;
|
|
18717
|
+
safevalues.styleSheetToHtml = module$exports$safevalues$index.styleSheetToHtml;
|
|
18687
18718
|
safevalues.safeStyleRule = module$exports$safevalues$index.safeStyleRule;
|
|
18688
18719
|
var $jscomp$templatelit$294235699$0 = $jscomp.createTemplateTagFirstArg(["https://apis.google.com/js/client.js?onload=", ""]);
|
|
18689
18720
|
ee.apiclient = {};
|
|
18690
18721
|
var module$contents$ee$apiclient_apiclient = {};
|
|
18691
18722
|
ee.apiclient.VERSION = module$exports$ee$apiVersion.V1;
|
|
18692
|
-
ee.apiclient.API_CLIENT_VERSION = "0.1.
|
|
18723
|
+
ee.apiclient.API_CLIENT_VERSION = "0.1.383";
|
|
18693
18724
|
ee.apiclient.NULL_VALUE = module$exports$eeapiclient$domain_object.NULL_VALUE;
|
|
18694
18725
|
ee.apiclient.PromiseRequestService = module$exports$eeapiclient$promise_request_service.PromiseRequestService;
|
|
18695
18726
|
ee.apiclient.MakeRequestParams = module$contents$eeapiclient$request_params_MakeRequestParams;
|
|
@@ -18980,8 +19011,8 @@ module$contents$ee$apiclient_apiclient.send = function(path, params, callback, m
|
|
|
18980
19011
|
var profileHookAtCallTime = module$contents$ee$apiclient_apiclient.profileHook_, contentType = "application/x-www-form-urlencoded";
|
|
18981
19012
|
body && (contentType = "application/json", method && method.startsWith("multipart") && (contentType = method, method = "POST"));
|
|
18982
19013
|
method = method || "POST";
|
|
18983
|
-
var headers = {"Content-Type":contentType}, version = "0.1.
|
|
18984
|
-
"0.1.
|
|
19014
|
+
var headers = {"Content-Type":contentType}, version = "0.1.383";
|
|
19015
|
+
"0.1.383" === version && (version = "latest");
|
|
18985
19016
|
headers[module$contents$ee$apiclient_apiclient.API_CLIENT_VERSION_HEADER] = "ee-js/" + version;
|
|
18986
19017
|
var authToken = module$contents$ee$apiclient_apiclient.getAuthToken();
|
|
18987
19018
|
if (null != authToken) {
|