// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.7/esri/copyright.txt for details. //>>built define("require exports ../core/tsSupport/generatorHelper ../core/tsSupport/awaiterHelper ../core/Error ../core/promiseUtils ./schema".split(" "),function(X,n,m,k,r,g,h){function Y(b,c){if(c.properties){if("layerType"in c.properties)return c.properties.layerType.enum[0];if("type"in c.properties)return c.properties.type.enum[0]}switch(b){case "multipoint_geometry_schema.json":return"multipoint";case "point_geometry_schema.json":return"point";case "polyline_geometry_schema.json":return"polyline";case "polygon_geometry_schema.json":return"polygon"; case "extent_schema.json":return"extent"}}function Z(b,c){var a={cnt:b.length,refsCnt:0,typesCnt:0,distinctTypes:[],summary:""};c=new Set;for(var d in b){var e=b[d];e.$ref?a.refsCnt++:e.type&&(a.typesCnt++,c.add(e.type))}c.forEach(function(b){return a.distinctTypes.push(b)});a.refsCnt===a.cnt?a.summary="refs":2===a.cnt&&0/.test(a)?a=a.replace("?TYPE?",l):a.indexOf("\x3c?TYPE?\x3e")&&(a=a.replace("\x3c?TYPE?\x3e",""));d.classPaths&&(d.classPaths[a]=b);if(!(0c.schemaPath.length?!1:"pointCloudLayer_schema.json/layerDefinition_schema.json/drawingInfo_schema.json/renderer_schema.json"===c.schemaPath.slice(c.schemaPath.length-4).join("/");return a?b.filter(function(a){return d===("pointCloudRenderer_schema.json"=== a.$ref)}):b}function t(b,c,a){return k(this,void 0,void 0,function(){var d,e,l,q,y,k,h,g,n,p,r,z,F,A,G,u,w,x,N,O,v,P,B,H,I,C,Q,R,D,S,E,J,T,U,V,W,K,L;return m(this,function(f){switch(f.label){case 0:d=[];e=a.filteredProperties;a.filteredProperties=null;if("array"!==b.type)return[3,2];q=(l=d).concat;return[4,t(b.items,c+"[]",a)];case 1:return d=q.apply(l,[f.sent()]),[3,24];case 2:if(!("properties"in b))return[3,7];y=[];for(k in b.properties)y.push(k);h=0;f.label=3;case 3:if(!(h