PageSourceSearch

https://www.bouyguestelecom.fr/statics/landingpages/_next/static/chunks/2703.61dd4220003d991f.js

js bouyguestelecom.fr collected 2026-09-24 08:40:24 UTC 37,909 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2703],{25004:(e,t,i)=>{i.d(t,{F:()=>s});let s={supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!0,supportsCacheHint:!0,supportsDistance:!0,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!0,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByAnonymous:!0,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,standardMaxRecordCount:void 0,tileMaxRecordCount:void 0}},42703:(e,t,i)=>{i.d(t,{d:()=>eu});var s=i(62242),a=i(55114),r=i(40496),l=i(13356),n=i(88284),u=i(85314),o=i(12079),h=i(42398),d=i(53908),c=i(54249),p=i(64789),f=i(20996),m=i(34698),y=i(75149),g=i(52004),x=i(92297),_=i(8035);class F{constructor(e,t){this._cache=new x.q(e),this._invalidCache=new x.q(t)}get(e,t){let i=`${t.uid}:${e}`,s=this._cache.get(i);if(s)return s;if(null!=this._invalidCache.get(i))return null;try{let s=_.WhereClause.create(e,{fieldsIndex:t});return this._cache.put(i,s),s}catch(e){return this._invalidCache.put(i,e),null}}getError(e,t){let i=`${t.uid}:${e}`;return this._invalidCache.get(i)??null}}var w=i(64413);let S=new F(50,500),I="unsupported-query",v=" as ",T=new Set(["esriFieldTypeOID","esriFieldTypeSmallInteger","esriFieldTypeBigInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong"]),R=new Set(["esriFieldTypeDate","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]),A=new Set(["esriFieldTypeString","esriFieldTypeGUID","esriFieldTypeGlobalID",...T,...R]);function b(e,t,i={}){let s=C(t,e);if(!s){let i=S.getError(t,e);throw new a.A(I,"invalid SQL expression",{expression:t,error:i})}let r=i.expressionName||"expression";if(i.validateStandardized&&!s.isStandardized)throw new a.A(I,`${r} is not standard`,{expression:t});if(i.validateAggregate&&!s.isAggregate)throw new a.A(I,`${r} does not contain a valid aggregate function`,{expression:t});return s.fieldNames}function C(e,t){return e?S.get(e,t):null}function M(e){return/\((.*?)\)/.test(e)?e:e.split(v)[0]}function E(e,t,i,s={}){let r=new Map;if(function(e,t,i,s,a){for(let r of a.includes("*")?[...i,...a.filter(e=>"*"!==e)]:a)if(t.get(r))q(e,t,i,s,r);else try{for(let a of b(t,M(r),{validateStandardized:!0}))q(e,t,i,s,a)}catch(t){e.set(r,{type:"expression-error",expression:r,error:t})}}(r,e,t,s.allowedFieldTypes??A,i),r.size){let e=s.expressionName??"expression";throw new a.A(I,`${e} contains invalid or missing fields`,{errors:Array.from(r.values()),query:s.query})}}function q(e,t,i,s,a){let r=t.get(a);r?i.has(r.name)?"all"!==s&&!1===s?.has(r.type)&&e.set(a,{type:"invalid-type",fieldName:r.name,fieldType:w.m.fromJSON(r.type),allowedFieldTypes:Array.from(s,e=>w.m.fromJSON(e))}):e.set(a,{type:"missing-field",fieldName:r.name}):e.set(a,{type:"invalid-field",fieldName:a})}var V=i(32733),z=i(45252);class Q{constructor(){this._storage=new Map,this._purgeInterval=5,this._sweep=()=>{if(this._timer=void 0,!this._storage)return;let e=1e3*this._purgeInterval,t=performance.now()-e;for(let[i,s]of this._storage){if(!(s.time<t))return void(this._storage.size>0&&(this._timer=setTimeout(this._sweep,e)));this._storage.delete(i)}}}destroy(){this._storage?.clear(),this._storage=null,clearTimeout(this._timer)}get size(){return this._storage?.size??0}put(e,t){this._storage?.set(e,new N(t)),this._scheduleSweep()}get(e){if(!this._storage)return;let t=this._storage?.get(e);return t?(this._storage?.delete(e),t.time=performance.now(),this._storage?.set(e,t),t.items):void 0}clear(){this._storage?.clear()}_scheduleSweep(){this._storage&&(this._timer??=setTimeout(this._sweep,1e3*this._purgeInterval))}}let D=0;class N{constructor(e){this.items=e,this.time=performance.now(),this.id=D++}}var P=i(25004),G=i(47861),O=i(81678),Z=i(74753),j=i(47174),B=i(72407),k=i(35093),L=i(70610);class H{constructor(e,t,i){this._fieldDataCache=new Map,this._returnDistinctMap=new Map,this.returnDistinctValues=e.returnDistinctValues??!1,this.fieldsIndex=i,this.featureAdapter=t;let s=e.outFields;if(s&&!s.includes("*")){this.outFields=s;let e=0;for(let t of s){let s=M(t),a=this.fieldsIndex.get(s),r=a?null:C(s,i),l=a?a.name:t.split(v)[1]||"FIELD_EXP_"+e++;this._fieldDataCache.set(t,{alias:l,clause:r})}}}countDistinctValues(e){return this.returnDistinctValues?(e.forEach(e
1=>this.getAttributes(e)),this._returnDistinctMap.size):e.length}getAttributes(e){let t=this._processAttributesForOutFields(e);return this._processAttributesForDistinctValues(t)}getFieldValue(e,t,i){let s=i?i.name:t,a=null;return this._fieldDataCache.has(s)?a=this._fieldDataCache.get(s)?.clause:i||(a=C(t,this.fieldsIndex),this._fieldDataCache.set(s,{alias:s,clause:a})),i?this.featureAdapter.getAttribute(e,s):a?.calculateValue(e,this.featureAdapter)}getDataValues(e,t,i=!0){let s=t.normalizationType,a=t.normalizationTotal,r=this.fieldsIndex.get(t.field),l=(0,j.zD)(r)||(0,j.Ah)(r),n=(0,j.OH)(r);return e.map(e=>{let r=t.field&&this.getFieldValue(e,t.field,this.fieldsIndex.get(t.field));if(t.field2?(r=`${(0,k.gJ)(r)}${t.fieldDelimiter}${(0,k.gJ)(this.getFieldValue(e,t.field2,this.fieldsIndex.get(t.field2)))}`,t.field3&&(r=`${r}${t.fieldDelimiter}${(0,k.gJ)(this.getFieldValue(e,t.field3,this.fieldsIndex.get(t.field3)))}`)):"string"==typeof r&&i&&(l?r=r?new Date(r).getTime():null:n&&(r=r?(0,B.rb)(r):null)),s&&Number.isFinite(r)){let i="field"===s&&t.normalizationField?this.getFieldValue(e,t.normalizationField,this.fieldsIndex.get(t.normalizationField)):null;r=(0,k.zS)(r,s,i,a)}return r})}async getExpressionValues(e,t,i,s,a){let{arcadeUtils:r}=await (0,L.lw)(),l=r.hasGeometryOperations(t);l&&await r.enableGeometryOperations();let n=r.createFunction(t),u=r.getViewInfo(i),o={fields:this.fieldsIndex.fields};return e.map(e=>{let t={attributes:this.featureAdapter.getAttributes(e),layer:o,geometry:l?{...(0,V.pL)(s.geometryType,s.hasZ,s.hasM,this.featureAdapter.getGeometry(e)),spatialReference:i?.spatialReference}:null},h=r.createExecContext(t,u,a);return r.executeFunction(n,h)})}validateItem(e,t){return this._fieldDataCache.has(t)||this._fieldDataCache.set(t,{alias:t,clause:C(t,this.fieldsIndex)}),this._fieldDataCache.get(t)?.clause?.testFeature(e,this.featureAdapter)??!1}validateItems(e,t){return this._fieldDataCache.has(t)||this._fieldDataCache.set(t,{alias:t,clause:C(t,this.fieldsIndex)}),this._fieldDataCache.get(t)?.clause?.testSet(e,this.featureAdapter)??!1}_processAttributesForOutFields(e){let t=this.outFields;if(!t?.length)return this.featureAdapter.getAttributes(e);let i={};for(let s of t){let{alias:t,clause:a}=this._fieldDataCache.get(s);i[t]=a?a.calculateValue(e,this.featureAdapter):this.featureAdapter.getAttribute(e,t)}return i}_processAttributesForDistinctValues(e){if(null==e||!this.returnDistinctValues)return e;let t=this.outFields,i=[];if(t)for(let s of t){let{alias:t}=this._fieldDataCache.get(s);i.push(e[t])}else for(let t in e)i.push(e[t]);let s=`${(t||["*"]).join(",")}=${i.join(",")}`,a=this._returnDistinctMap.get(s)||0;return this._returnDistinctMap.set(s,++a),a>1?null:e}}function $(e,t,i){return{objectId:e,target:t,distance:i,type:"vertex"}}class U{constructor(e,t,i){this.items=e,this.query=t,this.geometryType=i.geometryType,this.hasM=i.hasM,this.hasZ=i.hasZ,this.fieldsIndex=i.fieldsIndex,this.objectIdField=i.objectIdField,this.spatialReference=i.spatialReference,this.featureAdapter=i.featureAdapter}get size(){return this.items.length}createQueryResponseForCount(){let e=new H(this.query,this.featureAdapter,this.fieldsIndex);if(!this.query.outStatistics)return e.countDistinctValues(this.items);let{groupByFieldsForStatistics:t,having:i,outStatistics:s}=this.query;if(!t?.length)return 1;let a=new Map,r=new Map,l=new Set;for(let n of s){let{statisticType:s}=n,u="exceedslimit"!==s?n.onStatisticField:void 0;if(!r.has(u)){let i=[];for(let s of t){let t=this._getAttributeValues(e,s,a);i.push(t)}r.set(u,this._calculateUniqueValues(i,e.returnDistinctValues))}let o=r.get(u);for(let t in o){let{data:s,items:a}=o[t],r=s.join(",");i&&!e.validateItems(a,i)||l.add(r)}}return l.size}async createQueryResponse(){let e;if(e=this.query.outStatistics?this.query.outStatistics.some(e=>"exceedslimit"===e.statisticType)?this._createExceedsLimitQueryResponse(this.query):await this._createStatisticsQueryResponse(this.query):this._createFeatureQueryResponse(this.query),this.query.returnQueryGeometry){let t=this.query.geometry;(0,y.fn)(this.query.outSR)&&!(0,y.aI)(t.spatialReference,this.query.outSR)?e.queryGeometry=(0,V.ag)({spatialReference:this.query.outSR,...(0,z.Cv)(t,t.spatialReference,this.query.outSR)}):e.queryGeometry=(0,V.ag)({spatialReference:this.query.outSR,...t})}return e}createSnappingResponse(e,t){let i=this.featureAdapter,s=J(this.hasZ,this.hasM),{point:a,mode:r}=e,l="number"==typeof e.distance?e.distance:e.distance.x,n="number"==typeof e.distance?e.distance:e.distance.y,u={candidates:[]},o="esriGeometryPolygon"===this.geometryType,h=this._getPointCreator(r,this.spatialReference,t),d=new W(null,0),c=new W(null,0),p={x:0,y:0,z:0};for(let t of this.items){let r=i.getGeometry(t);if(null==r)continue;let{coords:x,lengths:_}=r;if(d.coords=x,c.coords=x,e.returnEdge){let e=0;for(let r=0;r<_.length;r++){let o=_[r];for(let r=0;r<o;r++,e+=s)if(d.coordsIndex=e,r!==o-1){c.coordsIndex=e+s;var f=p,m=a,y=d,g=c;let r=g.x-y.x,o=g.y-y.y,x=Math.min(1,Math.max(0,((m.x-y.x)*r+(m.y-y.y)*o)/(r*r+o*o)));f.x=y.x+r*x,f.y=y.y+o*x;let _=(a.x-p.x)/l,F=(a.y-p.y)/n,w=_*_+F*F;w<=1&&u.candidates.push(function(e,t,i,s,a,r=!1){return{objectId:e,target:t,distance:i,type:"edge",start:s,end:a,draped:r}}(i.getObjectId(t),h(p),Math.sqrt(w),h(d),h(c)))}}}if("none"!==e.vertexMode){let r=o?x.length-s:x.length;if("all"===e.vertexMode)for(let e=0;e<r;e+=s){d.coordsIndex=e;let s=(a.x-d.x)/l,r=(a.y-d.y)/n,o=s*s+r*r;o<=1&&u.candidates.push($(i.getObjectId(t),h(d),Math.sqrt(o)))}else if("ends"===e.vertexMode){let e=[0];for(let r of(o||e.push(x.length-s),e)){d.coordsIndex=r;let e=(a.x-d.x)/l,s=(a.y-d.y)/n,o=e*e+s*s;o<=1&&u.candidates.push($(i.getObjectId(t),h(d),Math.sqrt(o)))}}}}return u.candidates.sort((e,t)=>
1e.distance-t.distance),u}_getPointCreator(e,t,i){let s=null==i||(0,y.aI)(t,i)?e=>e:e=>(0,z.Cv)(e,t,i),{hasZ:a}=this;return"3d"===e?a?({x:e,y:t,z:i})=>s({x:e,y:t,z:i}):({x:e,y:t})=>s({x:e,y:t,z:0}):({x:e,y:t})=>s({x:e,y:t})}async createSummaryStatisticsResponse(e){let{field:t,valueExpression:i,normalizationField:s,normalizationType:a,normalizationTotal:r,minValue:l,maxValue:n,scale:u,timeZone:o,outStatisticTypes:h}=e,d=this.fieldsIndex.get(t),c=(0,j.vE)(d)||(0,j.zD)(d)||(0,j.Ah)(d),p=await this._getDataValues({field:t,valueExpression:i,normalizationField:s,normalizationType:a,normalizationTotal:r,scale:u,timeZone:o}),f=(0,k.Vb)({normalizationType:a,normalizationField:s,minValue:l,maxValue:n}),m={value:.5,fieldType:d?.type},y=(0,j.yM)(d)?(0,k.z9)({values:p,supportsNullCount:f,percentileParams:m,outStatisticTypes:h}):(0,k.G_)({values:p,minValue:l,maxValue:n,useSampleStdDev:!a,supportsNullCount:f,percentileParams:m,outStatisticTypes:h});return(0,k.oZ)(y,h,c)}async createUniqueValuesResponse(e){let{field:t,valueExpression:i,domains:s,returnAllCodedValues:a,scale:r,timeZone:l}=e,n=await this._getDataValues({field:t,field2:e.field2,field3:e.field3,fieldDelimiter:e.fieldDelimiter,valueExpression:i,scale:r,timeZone:l},!1),u=(0,k.b3)(n);return(0,k.lv)(u,s,a,e.fieldDelimiter)}async createClassBreaksResponse(e){let{field:t,valueExpression:i,normalizationField:s,normalizationType:a,normalizationTotal:r,classificationMethod:l,standardDeviationInterval:n,minValue:u,maxValue:o,numClasses:h,scale:d,timeZone:c}=e,p=await this._getDataValues({field:t,valueExpression:i,normalizationField:s,normalizationType:a,normalizationTotal:r,scale:d,timeZone:c}),f=(0,k.Rw)(p,{field:t,normalizationField:s,normalizationType:a,normalizationTotal:r,classificationMethod:l,standardDeviationInterval:n,minValue:u,maxValue:o,numClasses:h});return(0,k.jM)(f,l)}async createHistogramResponse(e){let{field:t,valueExpression:i,normalizationField:s,normalizationType:a,normalizationTotal:r,classificationMethod:l,standardDeviationInterval:n,minValue:u,maxValue:o,numBins:h,scale:d,timeZone:c}=e,p=await this._getDataValues({field:t,valueExpression:i,normalizationField:s,normalizationType:a,normalizationTotal:r,scale:d,timeZone:c});return(0,k.$y)(p,{field:t,normalizationField:s,normalizationType:a,normalizationTotal:r,classificationMethod:l,standardDeviationInterval:n,minValue:u,maxValue:o,numBins:h})}_sortFeatures(e,t,i){if(e.length>1&&t?.length)for(let s of t.reverse()){let t=s.split(" "),a=t[0],r=this.fieldsIndex.get(a),l=!!t[1]&&"desc"===t[1].toLowerCase(),n=(0,k.FM)(r?.type,l);e.sort((e,t)=>n(i(e,a,r),i(t,a,r)))}}_createFeatureQueryResponse(e){let t=this.items,{geometryType:i,hasM:s,hasZ:a,objectIdField:r,spatialReference:l}=this,{outFields:n,outSR:u,quantizationParameters:o,resultRecordCount:h,resultOffset:d,returnZ:c,returnM:p}=e,f=null!=h&&t.length>(d||0)+h,m=n&&(n.includes("*")?[...this.fieldsIndex.fields]:n.map(e=>this.fieldsIndex.get(e)));return{exceededTransferLimit:f,features:this._createFeatures(e,t),fields:m,geometryType:i,hasM:s&&p,hasZ:a&&c,objectIdFieldName:r,spatialReference:(0,V.ag)(u||l),transform:o&&(0,Z.VV)(o)||null}}_createFeatures(e,t){let i=new H(e,this.featureAdapter,this.fieldsIndex),{hasM:s,hasZ:a}=this,{orderByFields:r,quantizationParameters:l,returnGeometry:n,returnCentroid:u,maxAllowableOffset:o,resultOffset:h,resultRecordCount:d,returnZ:c=!1,returnM:p=!1}=e,f=a&&c,m=s&&p,y=[],g=0,x=[...t];if(this._sortFeatures(x,r,(e,t,s)=>i.getFieldValue(e,t,s)),this.geometryType&&(n||u)){let e=(0,Z.VV)(l)??void 0,t="esriGeometryPolygon"===this.geometryType||"esriGeometryPolyline"===this.geometryType;if(n&&!u)for(let s of x){let a=this.featureAdapter.getGeometry(s),r={attributes:i.getAttributes(s),geometry:(0,V.pL)(this.geometryType,this.hasZ,this.hasM,a,o,e,f,m)};t&&a&&!r.geometry&&(r.centroid=(0,V.LQ)(this,this.featureAdapter.getCentroid(s,this),e)),y[g++]=r}else if(!n&&u)for(let t of x)y[g++]={attributes:i.getAttributes(t),centroid:(0,V.LQ)(this,this.featureAdapter.getCentroid(t,this),e)};else for(let t of x)y[g++]={attributes:i.getAttributes(t),centroid:(0,V.LQ)(this,this.featureAdapter.getCentroid(t,this),e),geometry:(0,V.pL)(this.geometryType,this.hasZ,this.hasM,this.featureAdapter.getGeometry(t),o,e,f,m)}}else for(let e of x){let t=i.getAttributes(e);t&&(y[g++]={attributes:t})}let _=h||0;if(null!=d){let e=_+d;y=y.slice(_,Math.min(y.length,e))}return y}_createExceedsLimitQueryResponse(e){let t=!1,i=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY,a=Number.POSITIVE_INFINITY;for(let t of e.outStatistics??[])if("exceedslimit"===t.statisticType){i=null!=t.maxPointCount?t.maxPointCount:Number.POSITIVE_INFINITY,s=null!=t.maxRecordCount?t.maxRecordCount:Number.POSITIVE_INFINITY,a=null!=t.maxVertexCount?t.maxVertexCount:Number.POSITIVE_INFINITY;break}if("esriGeometryPoint"===this.geometryType)t=this.items.length>i;else if(this.items.length>s)t=!0;else{let e=J(this.hasZ,this.hasM),i=this.featureAdapter;t=this.items.reduce((e,t)=>
1{let s=i.getGeometry(t);return e+(null!=s&&s.coords.length||0)},0)/e>a}return{fields:[{name:"exceedslimit",type:"esriFieldTypeInteger",alias:"exceedslimit",sqlType:"sqlTypeInteger",domain:null,defaultValue:null}],features:[{attributes:{exceedslimit:Number(t)}}]}}async _createStatisticsQueryResponse(e){let t={attributes:{}},i=[],s=new Map,a=new Map,r=new Map,l=new Map,n=new H(e,this.featureAdapter,this.fieldsIndex),u=e.outStatistics,{groupByFieldsForStatistics:o,having:h,orderByFields:d,resultRecordCount:c}=e,p=o?.length,f=!!p,m=f?o[0]:null,y=f&&!this.fieldsIndex.get(m);for(let e of u??[]){let{outStatisticFieldName:u,statisticType:d}=e,c="exceedslimit"!==d?e.onStatisticField:void 0,g="percentile_disc"===d||"percentile_cont"===d,x="EnvelopeAggregate"===d||"CentroidAggregate"===d||"ConvexHullAggregate"===d,_=f&&1===p&&(c===m||y)&&"count"===d;if(f){if(!r.has(c)){let e=[];for(let t of o){let i=this._getAttributeValues(n,t,s);e.push(i)}r.set(c,this._calculateUniqueValues(e,!x&&n.returnDistinctValues))}let t=r.get(c);if(!t)continue;for(let i of Object.keys(t)){let{count:a,data:r,items:d,itemPositions:p}=t[i],f=r.join(",");if(!h||n.validateItems(d,h)){let t=l.get(f)||{attributes:{}};if(x){t.aggregateGeometries||(t.aggregateGeometries={});let{aggregateGeometries:i,outStatisticFieldName:s}=await this._getAggregateGeometry(e,d);t.aggregateGeometries[s]=i}else{let i=null;if(_)i=a;else{let t=this._getAttributeValues(n,c,s),a=p.map(e=>t[e]);i=g&&"statisticParameters"in e?this._getPercentileValue(e,a):this._getStatisticValue(e,a,null,n.returnDistinctValues)}t.attributes[u]=i}let i=0;o.forEach((e,s)=>t.attributes[this.fieldsIndex.get(e)?e:"EXPR_"+ ++i]=r[s]),l.set(f,t)}}}else if(x){t.aggregateGeometries||(t.aggregateGeometries={});let{aggregateGeometries:i,outStatisticFieldName:s}=await this._getAggregateGeometry(e,this.items);t.aggregateGeometries[s]=i}else{let i=this._getAttributeValues(n,c,s);t.attributes[u]=g&&"statisticParameters"in e?this._getPercentileValue(e,i):this._getStatisticValue(e,i,a,n.returnDistinctValues)}let F=("min"===d||"max"===d)&&((0,j.yM)(this.fieldsIndex.get(c))||this._isAnyDateField(c))?this.fieldsIndex.get(c)?.type:null;i.push({name:u,alias:u,type:F||"esriFieldTypeDouble"})}let g=f?Array.from(l.values()):[t];return this._sortFeatures(g,d,(e,t)=>e.attributes[t]),c&&(g.length=Math.min(c,g.length)),{fields:i,features:g}}_isAnyDateField(e){let t=this.fieldsIndex.get(e);return(0,j.vE)(t)||(0,j.zD)(t)||(0,j.Ah)(t)||(0,j.OH)(t)}async _getAggregateGeometry(e,t){let{convexHull:s,union:a}=await Promise.all([i.e(4484),i.e(9044)]).then(i.bind(i,72645)),{statisticType:r,outStatisticFieldName:l}=e,{featureAdapter:n,spatialReference:u,geometryType:o,hasZ:h,hasM:d}=this,c=t.map(e=>(0,V.pL)(o,h,d,n.getGeometry(e))),p=s(u,c,!0)[0],f={aggregateGeometries:null,outStatisticFieldName:null};if("EnvelopeAggregate"===r)f.aggregateGeometries={...p?(0,O.v)(p):(0,O.HA)(a(u,c)),spatialReference:u},f.outStatisticFieldName=l||"extent";else if("CentroidAggregate"===r){let e=p?(0,G.l8)(p):(0,G.Z4)((0,O.HA)(a(u,c)));f.aggregateGeometries={x:e[0],y:e[1],spatialReference:u},f.outStatisticFieldName=l||"centroid"}else"ConvexHullAggregate"===r&&(f.aggregateGeometries=p,f.outStatisticFieldName=l||"convexHull");return f}_getStatisticValue(e,t,i,s){let{onStatisticField:a,statisticType:r}=e,l=null;return l=i?.has(a)?i.get(a):(0,j.yM)(this.fieldsIndex.get(a))||this._isAnyDateField(a)?(0,k.z9)({values:t,returnDistinct:s}):(0,k.G_)({values:s?[...new Set(t)]:t,minValue:null,maxValue:null,useSampleStdDev:!0}),i&&i.set(a,l),l["var"===r?"variance":r]}_getPercentileValue(e,t){let{onStatisticField:i,statisticParameters:s,statisticType:a}=e,{value:r,orderBy:l}=s,n=this.fieldsIndex.get(i);return(0,k.qg)(t,{value:r,orderBy:l,fieldType:n?.type,isDiscrete:"percentile_disc"===a})}_getAttributeValues(e,t,i){if(i.has(t))return i.get(t);let s=this.fieldsIndex.get(t),a=this.items.map(i=>e.getFieldValue(i,t,s));return i.set(t,a),a}_calculateUniqueValues(e,t){let i={},s=this.items,a=s.length;for(let r=0;r<a;r++){let a=s[r],l=[];for(let t of e)l.push(t[r]);let n=l.join(",");null==i[n]?i[n]={count:1,data:l,items:[a],itemPositions:[r]}:(t||i[n].count++,i[n].items.push(a),i[n].itemPositions.push(r))}return i}async _getDataValues(e,t=!0){let i=new H(this.query,this.featureAdapter,this.fieldsIndex),{valueExpression:s,scale:a,timeZone:r}=e;return s?i.getExpressionValues(this.items,s,{viewingMode:"map",scale:a,spatialReference:this.query.outSR||this.spatialReference},{geometryType:this.geometryType,hasZ:this.hasZ,hasM:this.hasM},r):i.getDataValues(this.items,(0,l.o8)(e),t)}}function J(e,t){return e?t?4:3:t?3:2}class W{constructor(e,t){this.coords=e,this.coordsIndex=t}get x(){return this.coords[this.coordsIndex]}get y(){return this.coords[this.coordsIndex+1]}get z(){return this.coords[this.coordsIndex+2]}}var Y=i(92797),K=i(43954);let X="unsupported-query";async function ee(e,{fieldsIndex:t,geometryType:i,spatialReference:s,availableFields:r}){if((e.distance??0)<0||null!=e.geometryPrecision||e.multipatchOption&&"xyFootprint"!==e.multipatchOption||e.pixelSize||e.relationParam||e.text)throw new a.A(X,"Unsupported query options",{query:e});
1return et(t,r,e),function(e,t,i){let{outStatistics:s,groupByFieldsForStatistics:r,having:l}=i,n=r?.length,u=s?.length;if(l){if(!n||!u)throw new a.A(X,"outStatistics and groupByFieldsForStatistics should be specified with having",{query:i});!function(e,t,i,s,r){if(!i)return;let l="having clause",n=b(e,i,{validateAggregate:!0,expressionName:l});E(e,t,n,{expressionName:l,query:r});let u=C(i,e);if(!u?.getExpressions().every(t=>{let{aggregateType:i,field:a}=t,r=e.get(a)?.name;return s.some(t=>{let{onStatisticField:s,statisticType:a}=t;return e.get(s)?.name===r&&a.toLowerCase().trim()===i})}))throw new a.A(I,"expressions in having clause should also exist in outStatistics",{having:i})}(e,t,l,s,i)}if(u){var o;if(!(null!=(o=s)&&o.every(e=>"exceedslimit"!==e.statisticType)))return;for(let l of(E(e,t,s.map(e=>e.onStatisticField).filter(Boolean),{expressionName:"onStatisticFields",query:i}),n&&E(e,t,r,{expressionName:"groupByFieldsForStatistics",query:i}),s)){let{onStatisticField:s,statisticType:r}=l;if(("percentile_disc"===r||"percentile_cont"===r)&&"statisticParameters"in l){let{statisticParameters:e}=l;if(!e)throw new a.A(X,"statisticParameters should be set for percentile type",{definition:l,query:i})}else e.get(s)&&"count"!==r&&"min"!==r&&"max"!==r&&E(e,t,[s],{expressionName:`outStatistics with '${r}' statistic type`,allowedFieldTypes:ei,query:i})}}}(t,r,e),Promise.all([(0,K.c0)(e,i,s),(0,z.Nk)(s,e.outSR)]).then(()=>e)}function et(e,t,i){let{outFields:s,orderByFields:r,returnDistinctValues:l,outStatistics:n}=i,u=n?n.map(e=>e.outStatisticFieldName&&e.outStatisticFieldName.toLowerCase()).filter(Boolean):[];if(r&&r.length>0){let s=" asc",a=" desc";E(e,t,r.map(e=>{let t=e.toLowerCase();return t.includes(s)?t.split(s)[0]:t.includes(a)?t.split(a)[0]:e}).filter(e=>!u.includes(e)),{expressionName:"orderByFields",query:i})}if(s&&s.length>0)E(e,t,s,{expressionName:"outFields",query:i,allowedFieldTypes:"all"});else if(l)throw new a.A(X,"outFields should be specified for returnDistinctValues",{query:i});!function(e,t,i,s){if(!i)return;let a="where clause";E(e,t,b(e,i,{validateStandardized:!0,expressionName:a}),{expressionName:a,query:s})}(e,t,i.where,i)}let ei=new Set([...T,...R]);async function es(e,t,{fieldsIndex:i,geometryType:s,spatialReference:r,availableFields:l}){if((e.distance??0)<0||null!=e.geometryPrecision||e.multipatchOption||e.pixelSize||e.relationParam||e.text||e.outStatistics||e.groupByFieldsForStatistics||e.having||e.orderByFields)throw new a.A(X,"Unsupported query options",{query:e});return et(i,l,e),Promise.all([ea(i,l,t,e),(0,K.c0)(e,s,r),(0,z.Nk)(r,e.outSR)]).then(()=>e)}async function ea(e,t,i,s){let r=[];if(i.valueExpression){let{arcadeUtils:e}=await (0,L.lw)();r=e.extractFieldNames(i.valueExpression)}if(i.field&&r.push(i.field),i.field2&&r.push(i.field2),i.field3&&r.push(i.field3),i.normalizationField&&r.push(i.normalizationField),!r.length&&!i.valueExpression)throw new a.A(X,"field or valueExpression is required",{params:i});E(e,t,r,{expressionName:"statistics",query:s})}var er=i(79312),el=i(80414),en=i(80132);class eu{constructor(e){this._cache=new Q,this._changeHandle=null,this.capabilities={query:P.F},this.geometryType=e.geometryType,this.hasM=!!e.hasM,this.hasZ=!!e.hasZ,this.objectIdField=e.objectIdField,this.spatialReference=e.spatialReference,this.definitionExpression=e.definitionExpression,this.featureStore=e.featureStore,this.aggregateAdapter=e.aggregateAdapter,this._changeHandle=this.featureStore.events.on("changed",()=>this.clearCache()),this.timeInfo=e.timeInfo,this.fieldsIndex=(0,r.Wj)(e.fieldsIndex)?e.fieldsIndex:el.A.fromJSON(e.fieldsIndex),e.availableFields&&(1!==e.availableFields.length||"*"!==e.availableFields[0])?this.availableFields=new Set(e.availableFields.map(e=>this.fieldsIndex.get(e)?.name).filter(e=>null!=e)):this.availableFields=new Set(this.fieldsIndex.fields.map(e=>e.name)),e.scheduler&&e.priority&&(this._frameTask=e.scheduler.registerTask(e.priority))}destroy(){this._frameTask=(0,n.xt)(this._frameTask),this.clearCache(),(0,n.pR)(this._cache),this._changeHandle=(0,n.xt)(this._changeHandle)}get featureAdapter(){return this.featureStore.featureAdapter}clearCache(){this._cache.clear(),this._allFeaturesPromise=null,this._timeExtentPromise=null,this._fullExtentPromise=null}async executeQuery(e,t){let i=(0,u.Mq)(t);try{let t=await this._executeQuery(e,{},i);return await t.createQueryResponse()}catch(t){if(t!==Y.v8)throw t;return new U([],e,this).createQueryResponse()}}async executeQueryForCount(e={},t){let i=(0,u.Mq)(t);try{return(await this._executeQuery(e,{returnGeometry:!1,returnCentroid:!1,outSR:null},i)).createQueryResponseForCount()}catch(e){if(e!==Y.v8)throw e;return 0}}async executeQueryForExtent(e,t){let i=(0,u.Mq)(t),s=e.outSR;try{let t=await this._executeQuery(e,{returnGeometry:!0,returnCentroid:!1,outSR:null},i),a=t.size;if(!a)return{count:0,extent:null};
1return{count:a,extent:await this._getBounds(t.items,t.spatialReference,s||this.spatialReference)}}catch(e){if(e===Y.v8)return{count:0,extent:null};throw e}}async executeQueryForIds(e,t){return this.executeQueryForIdSet(e,t).then(e=>Array.from(e))}async executeQueryForIdSet(e,t){let i=(0,u.Mq)(t);try{let t=await this._executeQuery(e,{returnGeometry:!0,returnCentroid:!1,outSR:null},i),s=t.items,a=new Set;return await this._reschedule(()=>{for(let e of s)a.add(t.featureAdapter.getObjectId(e))},i),a}catch(e){if(e===Y.v8)return new Set;throw e}}async executeQueryForSnapping(e,t){let i=(0,u.Mq)(t),{point:s,distance:a,returnEdge:r,vertexMode:n}=e;if(!r&&"none"===n)return{candidates:[]};let o=(0,l.o8)(e.query);o=await this._schedule(()=>(0,Y.T2)(o,this.definitionExpression,this.spatialReference),i),o=await this._reschedule(()=>ee(o,{availableFields:this.availableFields,fieldsIndex:this.fieldsIndex,geometryType:this.geometryType,spatialReference:this.spatialReference}),i);let h=!(0,y.aI)(s.spatialReference,this.spatialReference);h&&await (0,z.Nk)(s.spatialReference,this.spatialReference);let d="number"==typeof a?a:a.x,c="number"==typeof a?a:a.y,p={xmin:s.x-d,xmax:s.x+d,ymin:s.y-c,ymax:s.y+c,spatialReference:s.spatialReference},g=h?(0,z.Cv)(p,this.spatialReference):p;if(!g)return{candidates:[]};let x=(await (0,m.el)((0,f.rS)(s),null,{signal:i}))[0],_=(await (0,m.el)((0,f.rS)(g),null,{signal:i}))[0];if(null==x||null==_)return{candidates:[]};let F=new U(await this._reschedule(()=>this._searchFeatures(eo(_.toJSON())),i),o,this);await this._reschedule(()=>this._executeObjectIdsQuery(F),i),await this._reschedule(()=>this._executeTimeQuery(F),i),await this._reschedule(()=>this._executeAttributesQuery(F),i),await this._reschedule(()=>this._executeGeometryQueryForSnapping(F,i),i);let w=x.toJSON(),S=h?(0,z.Cv)(w,this.spatialReference):w,I=h?Math.max(g.xmax-g.xmin,g.ymax-g.ymin)/2:a;return F.createSnappingResponse({...e,point:S,distance:I},s.spatialReference)}async executeQueryForLatestObservations(e,t){let i=(0,u.Mq)(t);if(!this.timeInfo?.trackIdField)throw new a.A("unsupported-query","Missing timeInfo or timeInfo.trackIdField",{query:e,timeInfo:this.timeInfo});try{let t=await this._executeQuery(e,{},i);return await this._reschedule(()=>this._filterLatest(t),i),await t.createQueryResponse()}catch(t){if(t!==Y.v8)throw t;return new U([],e,this).createQueryResponse()}}async executeQueryForSummaryStatistics(e={},t,i){let s=(0,u.Mq)(i),{field:a,normalizationField:r,valueExpression:l}=t;return(await this._executeQueryForStatistics(e,{field:a,normalizationField:r,valueExpression:l},s)).createSummaryStatisticsResponse(t)}async executeQueryForUniqueValues(e={},t,i){let s=(0,u.Mq)(i),{field:a,field2:r,field3:l,valueExpression:n}=t;return(await this._executeQueryForStatistics(e,{field:a,field2:r,field3:l,valueExpression:n},s)).createUniqueValuesResponse(t)}async executeQueryForClassBreaks(e={},t,i){let s=(0,u.Mq)(i),{field:a,normalizationField:r,valueExpression:l}=t;return(await this._executeQueryForStatistics(e,{field:a,normalizationField:r,valueExpression:l},s)).createClassBreaksResponse(t)}async executeQueryForHistogram(e={},t,i){let s=(0,u.Mq)(i),{field:a,normalizationField:r,valueExpression:l}=t;return(await this._executeQueryForStatistics(e,{field:a,normalizationField:r,valueExpression:l},s)).createHistogramResponse(t)}async fetchRecomputedExtents(e){let t=(0,u.Mq)(e);this._timeExtentPromise||=(0,er.W)(this.timeInfo,this.featureStore);let[i,s]=await Promise.all([this._getFullExtent(),this._timeExtentPromise]);return(0,u.Te)(t),{fullExtent:i,timeExtent:s}}async _getBounds(e,t,i){let s=(0,d.hZ)((0,d.vt)(),d.qv);await this.featureStore.forEachBounds(e,e=>(0,d.RF)(s,e));let a={xmin:s[0],ymin:s[1],xmax:s[3],ymax:s[4],spatialReference:(0,V.ag)(this.spatialReference)};this.hasZ&&isFinite(s[2])&&isFinite(s[5])&&(a.zmin=s[2],a.zmax=s[5],a.hasZ=!0);let r=(0,z.Cv)(a,t,i);if(r.spatialReference=(0,V.ag)(i),r.xmax-r.xmin==0){let e=(0,o.GA)(r.spatialReference);r.xmin-=e,r.xmax+=e}if(r.ymax-r.ymin==0){let e=(0,o.GA)(r.spatialReference);r.ymin-=e,r.ymax+=e}if(this.hasZ&&null!=r.zmin&&null!=r.zmax&&r.zmax-r.zmin==0){let e=(0,o.GA)(r.spatialReference);r.zmin-=e,r.zmax+=e}return r}_getFullExtent(){return this._fullExtentPromise||="getFullExtent"in this.featureStore&&this.featureStore.getFullExtent?Promise.resolve(this.featureStore.getFullExtent(this.spatialReference)):this._getAllFeatures().then(e=>this._getBounds(e,this.spatialReference,this.spatialReference)),this._fullExtentPromise}async _schedule(e,t){return null!=this._frameTask?this._frameTask.schedule(e,t):e(en.Bb)}async _reschedule(e,t){return null!=this._frameTask?this._frameTask.reschedule(e,t):e(en.Bb)}async _getAllFeaturesQueryEngineResult(e){return new U(await this._getAllFeatures(),e,this)}async _getAllFeatures(){if(null==this._allFeaturesPromise){let e=[];this._allFeaturesPromise=(async()=>{await this.featureStore.forEach(t=>e.push(t))})().then(()=>e)}let e=this._allFeaturesPromise,t=await e;return e===this._allFeaturesPromise?t.slice():this._getAllFeatures()}async _executeQuery(e,t,i){e=(0,l.o8)(e),e=await this._schedule(()=>(0,Y.GC)(e,this.definitionExpression,this.spatialReference),i),e={...e=await this._reschedule(()=>ee(e,{availableFields:this.availableFields,fieldsIndex:this.fieldsIndex,geometryType:this.geometryType,spatialReference:this.spatialReference}),i),...t};let s=await this._reschedule(()=>this._executeSceneFilterQuery(e,i),i),a=await this._reschedule(()=>this._executeGeometryQuery(e,s,i),i);return await this._reschedule(()=>this._executeAggregateIdsQuery(a),i),await this._reschedule(()=>this._executeObjectIdsQuery(a),i),await this._reschedule(()=>this._executeTimeQuery(a),i),await this._reschedule(()=>this._executeAttributesQuery(a),i),a}async _executeSceneFilterQuery(e,t){if(null==e.sceneFilter)return null;let{outSR:i,returnGeometry:s,returnCentroid:a}=e,r=this.featureStore.featureSpatialReference,l=e.sceneFilter.geometry,n=null==r||(0,y.aI)(r,l.spatialReference)?l:(0,z.Cv)(l,r);if(!n)return null;let u=(0,y.fn)(i)&&!(0,y.aI)(this.spatialReference,i)&&(s||a)?async e=>this._project(e,i):e=>e,o=this.featureAdapter,h=await this._reschedule(()=>this._searchFeatures(eo(n)),t);
1if("disjoint"===e.sceneFilter.spatialRelationship){if(!h.length)return null;let i=new Set;for(let e of h)i.add(o.getObjectId(e));let s=await this._reschedule(()=>this._getAllFeatures(),t);return u(await this._reschedule(async()=>{let a=await (0,K.xt)("esriSpatialRelDisjoint",n,this.geometryType,this.hasZ,this.hasM);return new U(await this._runSpatialFilter(s,e=>!i.has(o.getObjectId(e))||a(o.getGeometry(e)),t),e,this)},t))}if(!h.length)return new U([],e,this);if(this._canExecuteSinglePass(n,e))return u(new U(h,e,this));let d=await (0,K.xt)("esriSpatialRelContains",n,this.geometryType,this.hasZ,this.hasM);return u(new U(await this._runSpatialFilter(h,e=>d(o.getGeometry(e)),t),e,this))}async _executeGeometryQuery(e,t,i){if(null!=t&&0===t.items.length)return t;let{geometry:a,outSR:r,spatialRel:l,returnGeometry:n,returnCentroid:u}=e=null!=t?t.query:e,o=this.featureStore.featureSpatialReference,h=!a||null==o||(0,y.aI)(o,a.spatialReference)?a:(0,z.Cv)(a,o),d=n||u,c=(0,y.fn)(r)&&!(0,y.aI)(this.spatialReference,r),p=null==t?this._getCacheKey(e):null,f=p?this._cache.get(p):null;if(null!=f)return new U(f,e,this);let m=async e=>(c&&d&&await this._project(e,r),p&&this._cache.put(p,e.items),e);if(!h)return m(null!=t?t:await this._getAllFeaturesQueryEngineResult(e));let g=this.featureAdapter,x=await this._reschedule(()=>this._searchFeatures(eo(a)),i);if("esriSpatialRelDisjoint"===l){if(!x.length)return m(null!=t?t:await this._getAllFeaturesQueryEngineResult(e));let s=new Set;for(let e of x)s.add(g.getObjectId(e));let a=null!=t?t.items:await this._reschedule(()=>this._getAllFeatures(),i);return m(await this._reschedule(async()=>{let t=await (0,K.xt)(l,h,this.geometryType,this.hasZ,this.hasM);return new U(await this._runSpatialFilter(a,e=>!s.has(g.getObjectId(e))||t(g.getGeometry(e)),i),e,this)},i))}if(null!=t){let e=new s.vW;x=x.filter(i=>(0,s.qh)(t.items,i,t.items.length,e)>=0)}if(!x.length){let t=new U([],e,this);return p&&this._cache.put(p,t.items),t}if(this._canExecuteSinglePass(h,e))return m(new U(x,e,this));let _=await (0,K.xt)(l,h,this.geometryType,this.hasZ,this.hasM);return m(new U(await this._runSpatialFilter(x,e=>_(g.getGeometry(e)),i),e,this))}async _executeGeometryQueryForSnapping(e,t){let{query:i}=e,{spatialRel:s}=i;if(!e?.items?.length||!i.geometry||!s)return;let a=await (0,K.xt)(s,i.geometry,this.geometryType,this.hasZ,this.hasM),r=await this._runSpatialFilter(e.items,e=>a(e.geometry),t);e.items=r}_executeAggregateIdsQuery(e){if(0===e.items.length||!e.query.aggregateIds?.length||null==this.aggregateAdapter)return;let t=new Set;for(let i of e.query.aggregateIds)this.aggregateAdapter.getFeatureObjectIds(i).forEac
1h(e=>t.add(e));let i=this.featureAdapter.getObjectId;e.items=e.items.filter(e=>t.has(i(e)))}_executeObjectIdsQuery(e){if(0===e.items.length||!e.query.objectIds?.length)return;let t=new Set(e.query.objectIds),i=this.featureAdapter.getObjectId;e.items=e.items.filter(e=>t.has(i(e)))}_executeTimeQuery(e){if(0===e.items.length)return;let t=(0,er.I)(this.timeInfo,e.query.timeExtent,this.featureAdapter);null!=t&&(e.items=e.items.filter(t))}_executeAttributesQuery(e){if(0===e.items.length)return;let t=C(e.query.where,this.fieldsIndex);if(t){if(!t.isStandardized)throw TypeError("Where clause is not standardized");e.items=e.items.filter(e=>t.testFeature(e,this.featureAdapter))}}async _runSpatialFilter(e,t,i){if(!t)return e;if(null==this._frameTask)return e.filter(e=>t(e));let s=0,a=[],r=async l=>{for(;s<e.length;){let n=e[s++];t(n)&&(a.push(n),l.madeProgress()),l.done&&await this._reschedule(e=>r(e),i)}};return this._reschedule(e=>r(e),i).then(()=>a)}_filterLatest(e){let{trackIdField:t,startTimeField:i,endTimeField:s}=this.timeInfo,a=s||i,r=new Map,l=this.featureAdapter.getAttribute;for(let i of e.items){let e=l(i,t),s=l(i,a),n=r.get(e);(!n||s>l(n,a))&&r.set(e,i)}e.items=Array.from(r.values())}_getCacheKey(e){let{geometry:t,spatialRel:i,returnGeometry:s,returnCentroid:a,outSR:r,resultType:l,cacheHint:n}=e;return"tile"===l||n?(0,y.fn)(r)&&!(0,y.aI)(this.spatialReference,r)&&(s||a)?JSON.stringify([t,i,r]):JSON.stringify([t,i]):null}_canExecuteSinglePass(e,t){let{spatialRel:i}=t;return(0,K.tC)(e)&&("esriSpatialRelEnvelopeIntersects"===i||"esriGeometryPoint"===this.geometryType&&("esriSpatialRelIntersects"===i||"esriSpatialRelContains"===i))}async _project(e,t){let i;if(!t||(0,y.aI)(this.spatialReference,t))return e;let s=this.featureAdapter;try{let e=await this._getFullExtent();i=(0,h.getTransformation)(this.spatialReference,t,e)}catch{}let a=await (0,z.lK)(e.items.map(e=>(0,V.pL)(this.geometryType,this.hasZ,this.hasM,s.getGeometry(e))),this.spatialReference,t,i);return e.items=a.map((t,i)=>s.cloneWithGeometry(e.items[i],(0,g.Ux)(t,this.hasZ,this.hasM))),e}async _searchFeatures(e){let t=new Set;await Promise.all(e.map(e=>this.featureStore.forEachInBounds(e,e=>t.add(e))));let i=Array.from(t.values());return t.clear(),i}async _executeQueryForStatistics(e,t,i){e=(0,l.o8)(e);try{e=await this._schedule(()=>(0,Y.GC)(e,this.definitionExpression,this.spatialReference),i),e=await this._reschedule(()=>es(e,t,{availableFields:this.availableFields,fieldsIndex:this.fieldsIndex,geometryType:this.geometryType,spatialReference:this.spatialReference}),i);let s=await this._reschedule(()=>this._executeSceneFilterQuery(e,i),i),a=await this._reschedule(()=>this._executeGeometryQuery(e,s,i),i);return await this._reschedule(()=>this._executeAggregateIdsQuery(a),i),await this._reschedule(()=>this._executeObjectIdsQuery(a),i),await this._reschedule(()=>this._executeTimeQuery(a),i),await this._reschedule(()=>this._executeAttributesQuery(a),i),a}catch(t){if(t!==Y.v8)throw t;return new U([],e,this)}}}function eo(e){if((0,K.tC)(e)){if((0,f.ZC)(e))return[(0,c.fA)(Math.min(e.xmin,e.xmax),Math.min(e.ymin,e.ymax),Math.max(e.xmin,e.xmax),Math.max(e.ymin,e.ymax))];if((0,f.Bi)(e))return e.rings.map(e=>(0,c.fA)(Math.min(e[0][0],e[2][0]),Math.min(e[0][1],e[2][1]),Math.max(e[0][0],e[2][0]),Math.max(e[0][1],e[2][1])))}return[(0,p.Rg)((0,c.vt)(),e)]}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.