define(["./snappyJs","./CodeTool","./LayerContentModel","./GisTools"],(function(e,t,r,a){"use strict";return class{constructor(e,t,r){this.headerLength=t,this.proSizeObj=r,this.intLength=4,this.vectorName="vector",this.gTypeKey="gType",this.encoding="utf8",this.featureSpace="#@",this.vectorVarintBuffer=e,this.layerMap=new Object,this.vectorHeaderProMap=new Object,this.layerHeaderProMap=new Object,this.layerHeaderProBuffer=new Object,this.geometyTypeMap=new Object,this.featureMap=new Object,this.featureArrayMap=new Object,this.offsetBufferMap=new Object,this.offsetArrayMap=new Object,this.varintMap=new Object,this._parseVector(e)}getVectorHeaderProMap(){return this.vectorHeaderProMap}getLayerHeaderProMap(){return this.layerHeaderProMap}getLayerBuffer(e){return this.layerMap[e]}getLayerProByFilter(e,t){let a,s,i,h=[],n=this.offsetArrayMap[e],o=this._lazyParseFeature(e),l=[];this.proSizeObj[e];for(let r=0;r0))return this.featureArrayMap[e]=[],[];s=a.Utf8ArrayToStr(this.featureMap[e]).split(this.featureSpace);let i=[],h=(s.length-1)/r;t=[];let n=0,o=n;for(let e=0;e>7&1,0===a&&o>0&&(o>0&&o<=5?(u?(s=t.varintToInt(h)+f,n.push(s/r),u=!1,f=s):(i=t.varintToInt(h)+p,n.push(i/r),u=!0,p=i),o=0,h=[]):o>5&&(f=0,p=0,o=0,h=[],l.push(n),n=[])),y!==e.length?(h.push(e[y]),o++):n.length>0&&l.push(n);return l}}}));