define(["./createTaskProcessorWorker","./Resource-8ae1a924","./Cartesian3-e0307675","./ModelPointDrawer","./snappyJs","./when-422ea0ae","./ScanLine","./ElevationTool","./Cache","./defaultValue-81eec7ed","./Check-741c5f3c","./combine-3c023bda","./Math-e73894ab","./RuntimeError-26acdd3b","./LinkedQueue"],(function(e,t,r,n,l,o,i,a,f,h,s,u,c,g,p){"use strict";let y,d,m,w=512,v="",S={},b={},x=new f(1e5);function C(e){let t=1e3,r=0;for(let n=0;nr&&(r=n),e++}}return{ymax:r,ymin:t}}function A(e,t){let n=t.rectangle;for(var l=[],o=0;o191&&l<224){let o=e[r++];t[n++]=(31&l)<<6|63&o}else if(l>239&&l<365){let o=((7&l)<<18|(63&e[r++])<<12|(63&e[r++])<<6|63&e[r++])-65536;t[n++]=55296+(o>>10),t[n++]=56320+(1023&o)}else{let o=e[r++],i=e[r++];t[n++]=(15&l)<<12|(63&o)<<6|63&i}}let l=[],o=0,i=0,a=0,f=5e4,h=t.length/f-1;for(o=0;on&&(n=a),e++,l<0||l>w-1||a<0||a>w-1)continue;let f=a*w+l,h=0;for(let e in t){h+=t[e].data[f]}h>i&&(i=h)}}-2e4==i&&(i=0),x.set(l.properties.id,i)}l.terrainHeight=i,l.totalHeight=i+l.height}}}(o,t[1]);let f=function(e,t){let r=new Int32Array(t*t);for(let n in e){let l=e[n];for(let e=0;e